1.3.4 Diagrams

The last successful layout for a diagram is stored in documents as an extension by using a Diagram Layout part. The part is referenced by the relationship id attribute of a DataModelExt extension to the Data Model. For more information, see [ISO/IEC29500-1:2016] section 21.4.2.10. The content of the part contains XML as defined by Diagram Layout (section 2.1.3).

The DataModelExt contains a version URI that represents the minimum version required to run the layout. If an application version is insufficient to perform layout, the Diagram Layout can be used to display the diagram.

The recolorImg extension specifies recoloring images in the diagram according to the color style currently applied. This gives images a more integrated look.

The cNvPr extension adds non-visual drawing properties to points in the diagram. This enables adding hyperlinks and alternative text for use by assistive technologies or applications that do not display the diagram shapes.

The Diagram Layout captures the correct layout and shape properties of the last successful diagram rendering but does not capture all the text formatting for the individual shapes in the diagram. When a shape contains text, its style is determined by combining the information from the semantic elements in data.xml with the layout definition in layout.xml. Each semantic element can have zero or more presentation elements, which are defined in layout.xml. For any shape in drawing.xml, the corresponding presAssocID attribute ([ISO/IEC29500-1:2016] section L.4.15.2.1) can be found in data.xml. For a presAssocID attribute, all the corresponding presName ([ISO/IEC29500-1:2016] section 21.4.3.4) attributes are searched for the one which has a text algorithm <dgm:alg type="tx"> associated with it. The StyleLbl element ([ISO/IEC29500-1:2016] section 21.4.4.10) for this text node determines the final text format of this shape node.