Hi @Jojo,
first, regarding the second issue: textNode.areaBox
handles this: https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#Text-areaBox. You should be able to just set some value for it and have some area text
.
textNode.areaBox = { width: 300, height: 300 };
For groups, you can use one of the bounds
-properties (localBounds
, boundsInParent
, etc.). Usually, you’ll want to use localBounds
, which “respects” or “pre-applies” transformations of the node and node’s parents:
console.log(groupNode.localBounds.width);
console.log(groupNode.localBounds.height);
cf. https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#scenenodelocalbounds--bounds
I hope this helps 