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

Type declaration

  • OptionalendCondition?: 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
    
  • OptionalonTemporaryPointMoved?: ((shape: entities.Shape, position: Vector3) => void)

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

      • (shape, position): void
      • Parameters

        Returns void

  • Optionalpick?: PickCallback

    The optional custom picking function.

  • Optionalsignal?: AbortSignal

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