Skip to content

Interface: ShapeHost ​

The part-level surface a Shape resolves against.

Properties ​

opc ​

readonly opc: OpcPackage

The package the host belongs to, for reaching a referenced part (image, chart, …).


part ​

readonly part: Part

The OPC part holding the shape tree (p:sld / p:sldLayout / p:sldMaster).


partName ​

readonly partName: string

Partname of part.


relationships ​

readonly relationships: Relationships

part's relationships — image embeds, hyperlinks, chart references.

Methods ​

shapeByIdDeep() ​

shapeByIdDeep(id): AnyShape | undefined

The shape anywhere in this host's tree with the given drawing id, or undefined.

Parameters ​

ParameterType
idnumber

Returns ​

AnyShape | undefined


themeContext() ​

themeContext(): ThemeContext

The host's resolved colour/font context, backing every resolved* getter.

Returns ​

ThemeContext