@mocanvas/editor · interface
interface Geometry2dFiltersWhich parts of a shape's geometry a caller wants to see.
A shape's geometry is not all one kind of thing: a note has an outline and a label, a frame has an outline and a header, and some pieces exist only to make something draggable. A hit test wants all of it; an export wants none of the scaffolding.
SEMANTICS-ASSUMED: the docs name the four presets but not the shape of the object behind them. Two independent flags — internal and label — reproduce all four presets exactly, with "non-standard" meaning "either of those".
Properties · 2
includeInternal: booleanInclude geometry that exists for interaction rather than for drawing.
includeLabels: booleanInclude the geometry of a shape's text label.
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.