@mocanvas/mocanvas · interface
interface GeoPathOptionsOptions GeoTypeDefinition.getPath is given beyond the box.
Properties · 4
flipX?: boolean | undefinedMirror the silhouette left-to-right inside its own box. The box, the bounds and the label do not move; only the outline turns over.
A custom geo type that ignores these draws unflipped, which is the right failure for a silhouette that is symmetric anyway.
flipY?: boolean | undefinedMirror the silhouette top-to-bottom; see GeoPathOptions.flipX.
isFilled?: booleanWhether the interior is painted, and so whether it is hit-testable.
strokeWidth?: numberThe width the outline will be stroked at, when the type needs it.
Only a mark that *ends on* the outline does: a stroke is centred on its path and its round cap reaches half a width past the last point, so a line drawn corner to corner of the box pokes out beyond the very outline it is supposed to sit inside. The x-box's diagonals are the case. A type whose marks stay clear of the edge can ignore it.
Mentioned here
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.