Updated renderOptions to add direction property

This commit is contained in:
saurabhg772244
2024-09-18 13:10:07 +05:30
parent 3f5afe8daf
commit be9123ee2b
5 changed files with 6 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ export const render = async (
// Add the element to the DOM
if (!node.isGroup) {
const childNodeEl = await insertNode(nodeEl, node, { config });
const childNodeEl = await insertNode(nodeEl, node, { config, dir: node.dir });
boundingBox = childNodeEl.node().getBBox();
child.domId = childNodeEl;
child.width = boundingBox.width;