interface CommonCreationOptions {
    endCondition?: MouseCallback;
    onTemporaryPointMoved?: ((shape: entities.Shape<EntityUserData>, position: Vector3) => void);
    pick?: PickCallback<PickResult<unknown>>;
    signal?: AbortSignal;
}

Hierarchy (view full)

Properties

endCondition?: MouseCallback

The input required to finish drawing the shape. Does not apply to shapes that require a fixed number of points (i.e point, segment, etc).

right click
onTemporaryPointMoved?: ((shape: entities.Shape<EntityUserData>, position: Vector3) => void)

An optional callback to be called when a point has been moved.

Type declaration

pick?: PickCallback<PickResult<unknown>>

The optional custom picking function.

signal?: AbortSignal

The optional signal to listen to cancel the creation of a shape.