Skip to content

Documentation / @ripl/core / createShape

Function: createShape() ​

createShape(...options): Shape2D<Partial<BaseState>>

Defined in: packages/core/src/core/shape.ts:112

Factory function that creates a new Shape2D instance.

Parameters ​

ParameterType
...options[string, Shape2DOptions<Partial<BaseState>>]

Returns ​

Shape2D<Partial<BaseState>>