@mocanvas/editor · interface

TLRenderingShape

interface TLRenderingShape

One shape, with everything the renderer needs to place it.


Properties · 7

backgroundIndex: number

Paint order for the shape's background layer, when its util provides one. Always below index, so a frame's fill sits under its own children.

id: ShapeId
index: number

Paint order for the shape itself; higher is nearer the viewer.

isCulled: boolean

Whether the renderer may skip this shape this frame.

opacity: number

The shape's opacity multiplied by every ancestor's.

shape: UnknownShape
util: ShapeUtil

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.