Parse/render
<presentation:placeholder>and<presentation:notes>.
Module presentationStyle | Source packages/front/office/odf/src/odp/presentationStyle.js | Deps xml | Worker-safe yes
Models:
// placeholder
{ type: 'placeholder', objectType?, x?, y?, width?, height?, _extras? }
// notes
{ type: 'notes', styleName?, body: [ ...rawXml ], _extras? }
API
| Method | Description |
|---|---|
parsePlaceholder(el) |
Converts <presentation:placeholder> to a model. |
renderPlaceholder(p) |
Builds the XML element. |
parseNotes(el) |
Converts <presentation:notes> to a model. |
renderNotes(n) |
Builds the XML element. |
Notes
- The notes body (
body) is preserved as raw XML —textContentcan type it when reading. - Animations (
anim:*) and transitions are not typed here:odpAnimationsparses and rendersanim:*trees and the basicpresentation:transitionelement, and the opt-inanimationsSmilextra types everyanim:*element.