@mocanvas/mocanvas · function

getGeoTypeDefinition

declare function getGeoTypeDefinition(geo: string, customGeoTypes?: Readonly<Record<string, GeoTypeDefinition>> | undefined): GeoTypeDefinition | undefined

The definition for a geo type, or undefined when nothing defines it.

customGeoTypes wins over the built-in table, so an app may replace a built-in silhouette as well as add to it — the same override order GeoShapeUtil itself uses when it draws.

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.