Skip to content

Interface: DiagramDrawnShape ​

Where a point's text is drawn in the fallback drawing part: the second copy of every string a diagram carries, and the only one a renderer without a SmartArt layout engine paints. See DiagramPoint.drawnShape for how a point reaches it.

Properties ​

element_ ​

readonly element_: Element

Escape hatch: the underlying dsp:sp. After mutating it call part.markDirty().


modelId ​

readonly modelId: string

The pres point this shape draws (dsp:sp/@modelId), never the authored point's own id.


paragraphIndex ​

readonly paragraphIndex: number

Which paragraph of textFrame carries this point's text (the presOf edge's @destOrd).


part ​

readonly part: Part

The drawing part (/ppt/diagrams/drawing{N}.xml) the shape lives in.


textFrame ​

readonly textFrame: TextFrame

The shape's dsp:txBody, bound to the drawing part rather than the data part, so an edit made through it marks the part that actually changed.

One shape commonly draws several points (three of them in mixed.pptx), so writing textFrame.text here would delete the siblings' text. Replace paragraph paragraphIndex instead, which is what DiagramPoint.text's setter does.