UtilsAPI

Utility helpers for working with nodes in the Creator API.

UtilsAPI interface

Utility helpers for working with nodes in the Creator API. Available on creator.utils.

Signature:

interface UtilsAPI

Remarks

Type-guard helpers let you narrow Layer | Shape unions safely. Most useful when iterating over creator.selection.nodes, which can contain a mix of layers and shapes.

Methods

Method

Description

isLayer(node)

Type guard that returns true when the given node is a Layer.

isShape(node)

Type guard that returns true when the given node is a Shape.

Last updated: August 5, 2026 at 11:47 AMEdit this page