Skip to content
Document Authoring DA  API Docs v1.18.0
npmGitHub

ShapeGeometry

ShapeGeometry:

type ShapeGeometry =

The geometry of a Shape.

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'
}