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

ShapeOptions

ShapeOptions:

Options describing a Shape to insert with TextView.addShape.

Shapes are currently positioned inline within the text.

geometry: ShapeGeometry

Preset geometry of the shape, for example { type: 'preset', preset: 'rect' }.


extent: Extent

Display size of the shape.


optional fill: ShapeFill | null

Fill of the shape. Omit or pass null for no fill.


optional outline: ShapeOutline | null

Outline of the shape. Omit or pass null for no outline.