@mocanvas/mocanvas · interface

GeoPathOptions

interface GeoPathOptions

Options GeoTypeDefinition.getPath is given beyond the box.


Properties · 4

flipX?: boolean | undefined

Mirror 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 | undefined

Mirror the silhouette top-to-bottom; see GeoPathOptions.flipX.

isFilled?: boolean

Whether the interior is painted, and so whether it is hit-testable.

strokeWidth?: number

The 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.