Documentation / @ripl/core / createShape
Function: createShape() ​
Defined in: packages/core/src/core/shape.ts:218
Factory function that creates a new Shape2D instance.
Parameters ​
| Parameter | Type |
|---|---|
...options | [string, Shape2DOptions<Partial<BaseState>>, Partial<Omit<Shape2DOptions<Partial<BaseState>>, "data" | "id" | "class">>] |