@mocanvas/editor · interface

Geometry2dOptions

interface Geometry2dOptions

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 8

debugColor?: string | undefined

Stroke colour for the geometry debug overlay. Has no effect on rendering.

excludeFromShapeBounds?: boolean | undefined

Keep this part out of the owning shape's bounds. A heading that hangs outside its container is still hit-testable, but must not inflate the bounds every zoom-to-fit, align and export reads.

ignore?: boolean | undefined

Skip this geometry entirely when hit-testing.

isClosed: boolean
isEmptyLabel?: boolean | undefined

The label is empty, so it should not be hit-tested as if it had text in it.

isFilled: boolean
isInternal?: boolean | undefined

This geometry exists to make something interactive, not to be drawn — a widened hit area, a drag target. Excluded by EXCLUDE_INTERNAL.

isLabel?: boolean | undefined

This geometry is a text label rather than part of the shape's outline.

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.