UtilsAPI

Utility helpers for working with the plugin API.

UtilsAPI interface

Utility helpers for working with the plugin API.

Signature:

interface UtilsAPI

Remarks

Provides type guards for narrowing unknown values into Layer, TransformableLayer or Shape unions. Useful when iterating over collections of mixed nodes (e.g. creator.selection.nodes).

Methods

Method

Description

isLayer(node)

Returns true if the given value is a Layer.

isShape(node)

Returns true if the given value is a Shape.

isTransformableLayer(node)

Returns true if the given value is a TransformableLayer.

Last updated: October 8, 2026 at 10:45 AMEdit this page