ShapeGeometry
ShapeGeometry:
type ShapeGeometry =The geometry of a Shape.
Remarks
Section titled “Remarks”A union keyed on type: either a ShapePresetGeometry or a
ShapeCustomGeometry. Branch on type to read it:
const geometry = shape.geometry();if (geometry.type === 'preset') { console.log(geometry.preset); // e.g. 'ellipse'}