geoShapeProps

See source code

Validation schema for geo shape properties.

geoShapeProps: RecordProps<TLGeoShape>;

Example

// Validate geo shape properties
const isValidGeo = geoShapeProps.geo.isValid("rectangle");
const isValidSize = geoShapeProps.w.isValid(100);
const isValidText = geoShapeProps.richText.isValid(toRichText("Hello"));
Prev
geoShapeMigrations
Next
groupShapeMigrations