I have an update for the log utilities.
The inline debugger has had numerous bug fixes and improvements. Will post a video here soon.
The following new methods have been added:
- getAllArtboards() - returns all artboards excluding pasteboard items (for @pklaschka
)
- removeFromArray() - removes items from an array
- sleep() - waits the specified amount of time before continuing. must use
await sleep()
- getIsGraphicNode() - returns true if graphic node
- toggleLayerVisibility() - toggles layer visibility
- getIsGraphicNodeWithImageFilled()
- getComputedTranslation() - get translated values
- isPortrait() - returns if scene node is portrait
- isLandscape() - returns true if scene node is landscape
- getChildNodes() - get child nodes of a scene node
- getIsArtboard() - get is artboard
- getIsPasteboardItem() - get is pasteboard item
- addStrings() - add strings together separating by delimiter
- indentMultiline() - indents multiple lines
- getZeroPoint() - returns a zero point object
- getBase64FromSceneNode() - get base 64 string from layer
- getArrayBufferFromSceneNode() - get undecoded PNG array buffer of a layer
- getTempImageFromSceneNode() - get file reference of exported layer to PNG
- getBase64ArrayBuffer() - get base 64 array buffer of layer. method is originally from Adobe plugin example here) is required for methods listed above
Added positioning methods:
- moveTo(),
- centerLeft()
- center()
- centerRight()
- topLeft()
- topCenter()
- top()
- topRight()
- bottomLeft()
- bottom()
- bottomCenter()
- bottomRight()
- left()
- right()
- centerHorizontally()
- centerVertically()
- getBounds() - get the bounds of an scene node to it’s parent
Added sizing methods:
- anchorToEdges()
- anchorToVerticalEdges()
- anchorToHorizontalEdges()
Links:
base64ArrrayBuffer - source
Disclaimer:
Standard open source license applies. Use at your own risk, etc