# Statistics plugin and plugin developer utilities

**URL:** <https://forums.creativeclouddeveloper.com/t/statistics-plugin-and-plugin-developer-utilities/621>\
**Category:** UXP Plugin API\
**Tags:** tips-and-tricks\
**Created:** [February 6, 2019, 6:57pm UTC](https://forums.creativeclouddeveloper.com/t/statistics-plugin-and-plugin-developer-utilities/621 "2019-02-06T18:57:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [November 20, 2019, 11:16pm UTC](https://forums.creativeclouddeveloper.com/t/statistics-plugin-and-plugin-developer-utilities/621/5 "2019-11-20T23:16:54Z")

</div>

I have an update for the [log](https://github.com/velara3/xd-examples/blob/master/statistics/log.js) 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](https://github.com/AdobeXD/plugin-samples/blob/master/ui-panel-show-renditions/main.js)) 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** :

> **[GitHub - velara3/xd-examples: A repository for plugins and plugin utilities for...](https://github.com/velara3/xd-examples)**
>
> A repository for plugins and plugin utilities for Adobe XD

> <https://github.com/velara3/xd-examples/blob/master/statistics/log.js>

**base64ArrrayBuffer** - [source](https://github.com/AdobeXD/plugin-samples/blob/e242f9f49fd7942f2862a061a42ddf2dd30df8ca/ui-panel-show-renditions/main.js#L97)

**Disclaimer** :  
Standard open source license applies. Use at your own risk, etc

> **[Legal Disclaimer and Notices](https://opensource.guide/notices/)**
>
> Learn how to launch and grow your project.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/statistics-plugin-and-plugin-developer-utilities/621)._
