@mocanvas/editor · type

ShapeCreate

type ShapeCreate<T extends UnknownShape = UnknownShape> = Omit<ShapePartial<T>, "id"> & {
    id?: ShapeId;
}

A shape partial without a required id (id and index are assigned on create).

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.