ShapeGeometry
ShapeGeometry:
{}The geometry of a Shape.
Remarks
Section titled “Remarks”A union keyed on type. The only variant today is a built-in
ShapePreset ({ type: 'preset' }); custom (free-form) shape
paths are not yet available. Branch on type to read it:
const geometry = shape.geometry();if (geometry.type === 'preset') { console.log(geometry.preset); // e.g. 'ellipse'}Properties
Section titled “Properties”type:
"preset"
Discriminant for the geometry variant.
preset
Section titled “preset”preset:
ShapePreset
The built-in preset geometry name.