@mocanvas/editor · type

TLOpacityType

type TLOpacityType = number

A shape's opacity: 0 to 1 inclusive.

Not a style prop even though the style panel edits it — every shape has one, whether or not its util declares any props at all, so it lives on the record beside x and rotation.

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.