Skip to main content

Createable

Whether this component supports create and destroy operations. This generally applies for components that work with instances, such as clipping planes or dimensions.

Properties

cancelCreation()?

optional cancelCreation: (data) => void

Cancels the creation process of the component, going back to the state before starting to create.

Parameters

ParameterType
dataany

Returns

void


create()

create: (data) => void

Creates a new instance of an element (e.g. a new Dimension).

Parameters

ParameterType
dataany

Returns

void


delete()

delete: (data) => void

Deletes an existing instance of an element (e.g. a Dimension).

Parameters

ParameterType
dataany

Returns

void


endCreation()?

optional endCreation: (data) => void

Finish the creation process of the component, successfully creating an instance of whatever the component creates.

Parameters

ParameterType
dataany

Returns

void