@mocanvas/mocanvas · interface

GeoShapeProps

interface GeoShapeProps

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


Properties · 18

align: DefaultHorizontalAlignStyle
color: DefaultColorStyle
dash: DefaultDashStyle
fill: DefaultFillStyle
flipX: boolean

Mirror the silhouette left-to-right inside the shape's own box.

Not a transform: x, y, w, h and the label are untouched, so a flipped shape covers exactly the same bounds and still reads right way up. Symmetric silhouettes (a rectangle, an ellipse) are unchanged by it.

flipY: boolean

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

font: DefaultFontStyle
geo: GeoShapeKind
growY: number
h: number
labelColor: DefaultColorStyle
richText: RichText

The label as a rich-text document; see NoteShapeProps.richText.

scale: number
size: DefaultSizeStyle
text?: string

The label as plain text — optional and derived; see NoteShapeProps.text.

url: string
verticalAlign: DefaultVerticalAlignStyle
w: number

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.