Skip to content

API reference / Common / Engine types / Shape

Interface: Shape ​

A shape (a:sp, CT_Shape): the common autoshape/text-box element — non-visual identity, visual properties, an optional theme style reference, and an optional text body.

Properties ​

PropertyDescription
id
string
The shape's stable [ShapeNodeId], which the tree and every edit address it by.
nonVisual
ShapeNonVisualProperties
a:nvSpPr/a:cNvPr — the shape's identity.
properties
ShapeProperties
a:spPr — geometry, fill, line, effects.
style
ShapeStyle | null
a:style — references into the theme's style matrix.
textBody
TextBody | null
a:txBody — the shape's rich-text body, if it holds text.
textTransform
ShapeTransform | null
"A 2-D transform to be applied to the text body of the shape" (MS-ODRAWXML §2.10.3.5) — dsp:sp/dsp:txXfrm, a diagram drawing's shape's alone.
diagramPoint
string | null
The diagram point the shape draws — dsp:sp/@modelId, resolved; a diagram drawing's shape's alone.