ooxml-core 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +3 -0
- package/README.md +125 -0
- package/THIRD-PARTY-LICENSES +26 -0
- package/dist/collab/assets.d.ts +42 -0
- package/dist/collab/assets.d.ts.map +1 -0
- package/dist/collab/awareness.d.ts +65 -0
- package/dist/collab/awareness.d.ts.map +1 -0
- package/dist/collab/binding.d.ts +36 -0
- package/dist/collab/binding.d.ts.map +1 -0
- package/dist/collab/codec.d.ts +37 -0
- package/dist/collab/codec.d.ts.map +1 -0
- package/dist/collab/emitter.d.ts +11 -0
- package/dist/collab/emitter.d.ts.map +1 -0
- package/dist/collab/external-provider.d.ts +50 -0
- package/dist/collab/external-provider.d.ts.map +1 -0
- package/dist/collab/identity.d.ts +48 -0
- package/dist/collab/identity.d.ts.map +1 -0
- package/dist/collab/index.cjs +1328 -0
- package/dist/collab/index.d.ts +18 -0
- package/dist/collab/index.d.ts.map +1 -0
- package/dist/collab/index.mjs +1225 -0
- package/dist/collab/lifecycle.d.ts +62 -0
- package/dist/collab/lifecycle.d.ts.map +1 -0
- package/dist/collab/memory-transport.d.ts +19 -0
- package/dist/collab/memory-transport.d.ts.map +1 -0
- package/dist/collab/ordering.d.ts +53 -0
- package/dist/collab/ordering.d.ts.map +1 -0
- package/dist/collab/policy.d.ts +39 -0
- package/dist/collab/policy.d.ts.map +1 -0
- package/dist/collab/presence.d.ts +61 -0
- package/dist/collab/presence.d.ts.map +1 -0
- package/dist/collab/provider.d.ts +55 -0
- package/dist/collab/provider.d.ts.map +1 -0
- package/dist/collab/session.d.ts +70 -0
- package/dist/collab/session.d.ts.map +1 -0
- package/dist/collab/transport-provider.d.ts +13 -0
- package/dist/collab/transport-provider.d.ts.map +1 -0
- package/dist/collab/validation.d.ts +38 -0
- package/dist/collab/validation.d.ts.map +1 -0
- package/dist/collab/websocket-transport.d.ts +33 -0
- package/dist/collab/websocket-transport.d.ts.map +1 -0
- package/dist/color/color-linear.d.ts +5 -0
- package/dist/color/color-linear.d.ts.map +1 -0
- package/dist/color/color-primitives.d.ts +183 -0
- package/dist/color/color-primitives.d.ts.map +1 -0
- package/dist/color/index.cjs +177 -0
- package/dist/color/index.d.ts +3 -0
- package/dist/color/index.d.ts.map +1 -0
- package/dist/color/index.mjs +161 -0
- package/dist/diagram/attributes.d.ts +12 -0
- package/dist/diagram/attributes.d.ts.map +1 -0
- package/dist/diagram/data-model.d.ts +18 -0
- package/dist/diagram/data-model.d.ts.map +1 -0
- package/dist/diagram/definitions.d.ts +14 -0
- package/dist/diagram/definitions.d.ts.map +1 -0
- package/dist/diagram/dom.d.ts +15 -0
- package/dist/diagram/dom.d.ts.map +1 -0
- package/dist/diagram/drawing-color.d.ts +28 -0
- package/dist/diagram/drawing-color.d.ts.map +1 -0
- package/dist/diagram/drawing-fill.d.ts +9 -0
- package/dist/diagram/drawing-fill.d.ts.map +1 -0
- package/dist/diagram/drawing-geometry.d.ts +23 -0
- package/dist/diagram/drawing-geometry.d.ts.map +1 -0
- package/dist/diagram/drawing-text.d.ts +5 -0
- package/dist/diagram/drawing-text.d.ts.map +1 -0
- package/dist/diagram/drawing.d.ts +7 -0
- package/dist/diagram/drawing.d.ts.map +1 -0
- package/dist/diagram/index.cjs +1193 -0
- package/dist/diagram/index.d.ts +14 -0
- package/dist/diagram/index.d.ts.map +1 -0
- package/dist/diagram/index.mjs +1161 -0
- package/dist/diagram/layout-category.d.ts +8 -0
- package/dist/diagram/layout-category.d.ts.map +1 -0
- package/dist/diagram/load.d.ts +36 -0
- package/dist/diagram/load.d.ts.map +1 -0
- package/dist/diagram/relationships.d.ts +35 -0
- package/dist/diagram/relationships.d.ts.map +1 -0
- package/dist/diagram/types.d.ts +306 -0
- package/dist/diagram/types.d.ts.map +1 -0
- package/dist/docx/block-parser.d.ts +13 -0
- package/dist/docx/block-parser.d.ts.map +1 -0
- package/dist/docx/bookmarks.d.ts +18 -0
- package/dist/docx/bookmarks.d.ts.map +1 -0
- package/dist/docx/breaks.d.ts +11 -0
- package/dist/docx/breaks.d.ts.map +1 -0
- package/dist/docx/character-styles.d.ts +4 -0
- package/dist/docx/character-styles.d.ts.map +1 -0
- package/dist/docx/comment-spans.d.ts +19 -0
- package/dist/docx/comment-spans.d.ts.map +1 -0
- package/dist/docx/comments.d.ts +4 -0
- package/dist/docx/comments.d.ts.map +1 -0
- package/dist/docx/core-properties.d.ts +18 -0
- package/dist/docx/core-properties.d.ts.map +1 -0
- package/dist/docx/default-styles.d.ts +8 -0
- package/dist/docx/default-styles.d.ts.map +1 -0
- package/dist/docx/defined-props.d.ts +9 -0
- package/dist/docx/defined-props.d.ts.map +1 -0
- package/dist/docx/diagram-document.d.ts +9 -0
- package/dist/docx/diagram-document.d.ts.map +1 -0
- package/dist/docx/diagram-theme.d.ts +8 -0
- package/dist/docx/diagram-theme.d.ts.map +1 -0
- package/dist/docx/diagram.d.ts +89 -0
- package/dist/docx/diagram.d.ts.map +1 -0
- package/dist/docx/docpr-ids.d.ts +14 -0
- package/dist/docx/docpr-ids.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +18 -0
- package/dist/docx/document-parts.d.ts.map +1 -0
- package/dist/docx/drawing.d.ts +13 -0
- package/dist/docx/drawing.d.ts.map +1 -0
- package/dist/docx/element-order.d.ts +13 -0
- package/dist/docx/element-order.d.ts.map +1 -0
- package/dist/docx/embedded.cjs +7646 -0
- package/dist/docx/embedded.d.ts +5 -0
- package/dist/docx/embedded.d.ts.map +1 -0
- package/dist/docx/embedded.mjs +7639 -0
- package/dist/docx/expect-defined.d.ts +3 -0
- package/dist/docx/expect-defined.d.ts.map +1 -0
- package/dist/docx/field-date.d.ts +10 -0
- package/dist/docx/field-date.d.ts.map +1 -0
- package/dist/docx/field-runs.d.ts +10 -0
- package/dist/docx/field-runs.d.ts.map +1 -0
- package/dist/docx/generated/wml-simple-types.d.ts +298 -0
- package/dist/docx/generated/wml-simple-types.d.ts.map +1 -0
- package/dist/docx/heading-list-kinds.d.ts +10 -0
- package/dist/docx/heading-list-kinds.d.ts.map +1 -0
- package/dist/docx/highlight.d.ts +5 -0
- package/dist/docx/highlight.d.ts.map +1 -0
- package/dist/docx/hyperlink.d.ts +8 -0
- package/dist/docx/hyperlink.d.ts.map +1 -0
- package/dist/docx/index.cjs +9784 -0
- package/dist/docx/index.d.ts +40 -0
- package/dist/docx/index.d.ts.map +1 -0
- package/dist/docx/index.mjs +9456 -0
- package/dist/docx/inline-model.d.ts +68 -0
- package/dist/docx/inline-model.d.ts.map +1 -0
- package/dist/docx/language.d.ts +3 -0
- package/dist/docx/language.d.ts.map +1 -0
- package/dist/docx/layout/adapt-drop-cap.d.ts +10 -0
- package/dist/docx/layout/adapt-drop-cap.d.ts.map +1 -0
- package/dist/docx/layout/adapt-floats.d.ts +8 -0
- package/dist/docx/layout/adapt-floats.d.ts.map +1 -0
- package/dist/docx/layout/adapt-notes.d.ts +13 -0
- package/dist/docx/layout/adapt-notes.d.ts.map +1 -0
- package/dist/docx/layout/adapt-paragraph-box.d.ts +12 -0
- package/dist/docx/layout/adapt-paragraph-box.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table.d.ts +12 -0
- package/dist/docx/layout/adapt-table.d.ts.map +1 -0
- package/dist/docx/layout/adapter.d.ts +5 -0
- package/dist/docx/layout/adapter.d.ts.map +1 -0
- package/dist/docx/layout/floats.d.ts +20 -0
- package/dist/docx/layout/floats.d.ts.map +1 -0
- package/dist/docx/layout/flow-paragraph.d.ts +26 -0
- package/dist/docx/layout/flow-paragraph.d.ts.map +1 -0
- package/dist/docx/layout/flow-table.d.ts +12 -0
- package/dist/docx/layout/flow-table.d.ts.map +1 -0
- package/dist/docx/layout/fonts.d.ts +3 -0
- package/dist/docx/layout/fonts.d.ts.map +1 -0
- package/dist/docx/layout/index.cjs +2537 -0
- package/dist/docx/layout/index.d.ts +20 -0
- package/dist/docx/layout/index.d.ts.map +1 -0
- package/dist/docx/layout/index.mjs +2503 -0
- package/dist/docx/layout/input.d.ts +206 -0
- package/dist/docx/layout/input.d.ts.map +1 -0
- package/dist/docx/layout/keep-rules.d.ts +24 -0
- package/dist/docx/layout/keep-rules.d.ts.map +1 -0
- package/dist/docx/layout/layout.d.ts +9 -0
- package/dist/docx/layout/layout.d.ts.map +1 -0
- package/dist/docx/layout/ligatures.d.ts +4 -0
- package/dist/docx/layout/ligatures.d.ts.map +1 -0
- package/dist/docx/layout/line-metrics.d.ts +21 -0
- package/dist/docx/layout/line-metrics.d.ts.map +1 -0
- package/dist/docx/layout/measure.d.ts +34 -0
- package/dist/docx/layout/measure.d.ts.map +1 -0
- package/dist/docx/layout/page-cursor.d.ts +45 -0
- package/dist/docx/layout/page-cursor.d.ts.map +1 -0
- package/dist/docx/layout/page-flow.d.ts +7 -0
- package/dist/docx/layout/page-flow.d.ts.map +1 -0
- package/dist/docx/layout/paragraph-fragments.d.ts +6 -0
- package/dist/docx/layout/paragraph-fragments.d.ts.map +1 -0
- package/dist/docx/layout/paragraph-layout.d.ts +37 -0
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -0
- package/dist/docx/layout/paragraph-tokens.d.ts +27 -0
- package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -0
- package/dist/docx/layout/result.d.ts +139 -0
- package/dist/docx/layout/result.d.ts.map +1 -0
- package/dist/docx/layout/tab-stops.d.ts +14 -0
- package/dist/docx/layout/tab-stops.d.ts.map +1 -0
- package/dist/docx/layout/table-layout.d.ts +30 -0
- package/dist/docx/layout/table-layout.d.ts.map +1 -0
- package/dist/docx/layout/test-helpers.d.ts +3 -0
- package/dist/docx/layout/test-helpers.d.ts.map +1 -0
- package/dist/docx/layout/text-breaks.d.ts +56 -0
- package/dist/docx/layout/text-breaks.d.ts.map +1 -0
- package/dist/docx/layout/units.d.ts +17 -0
- package/dist/docx/layout/units.d.ts.map +1 -0
- package/dist/docx/layout/wrap.d.ts +22 -0
- package/dist/docx/layout/wrap.d.ts.map +1 -0
- package/dist/docx/ligatures.d.ts +9 -0
- package/dist/docx/ligatures.d.ts.map +1 -0
- package/dist/docx/load/detect.d.ts +6 -0
- package/dist/docx/load/detect.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +8869 -0
- package/dist/docx/load/index.d.ts +3 -0
- package/dist/docx/load/index.d.ts.map +1 -0
- package/dist/docx/load/index.mjs +8860 -0
- package/dist/docx/load/legacy-doc.d.ts +7 -0
- package/dist/docx/load/legacy-doc.d.ts.map +1 -0
- package/dist/docx/model-paragraph.d.ts +100 -0
- package/dist/docx/model-paragraph.d.ts.map +1 -0
- package/dist/docx/model-run.d.ts +110 -0
- package/dist/docx/model-run.d.ts.map +1 -0
- package/dist/docx/model.d.ts +114 -0
- package/dist/docx/model.d.ts.map +1 -0
- package/dist/docx/notes.d.ts +9 -0
- package/dist/docx/notes.d.ts.map +1 -0
- package/dist/docx/numbering-editing.d.ts +30 -0
- package/dist/docx/numbering-editing.d.ts.map +1 -0
- package/dist/docx/numbering-format.d.ts +17 -0
- package/dist/docx/numbering-format.d.ts.map +1 -0
- package/dist/docx/numbering-model.d.ts +73 -0
- package/dist/docx/numbering-model.d.ts.map +1 -0
- package/dist/docx/numbering-package.d.ts +12 -0
- package/dist/docx/numbering-package.d.ts.map +1 -0
- package/dist/docx/numbering-parse.d.ts +8 -0
- package/dist/docx/numbering-parse.d.ts.map +1 -0
- package/dist/docx/numbering-parts.d.ts +4 -0
- package/dist/docx/numbering-parts.d.ts.map +1 -0
- package/dist/docx/numbering-text.d.ts +20 -0
- package/dist/docx/numbering-text.d.ts.map +1 -0
- package/dist/docx/numbering-write.d.ts +5 -0
- package/dist/docx/numbering-write.d.ts.map +1 -0
- package/dist/docx/package-parts.d.ts +4 -0
- package/dist/docx/package-parts.d.ts.map +1 -0
- package/dist/docx/page-background.d.ts +9 -0
- package/dist/docx/page-background.d.ts.map +1 -0
- package/dist/docx/page-borders.d.ts +9 -0
- package/dist/docx/page-borders.d.ts.map +1 -0
- package/dist/docx/paragraph-alignment.d.ts +21 -0
- package/dist/docx/paragraph-alignment.d.ts.map +1 -0
- package/dist/docx/paragraph-styles.d.ts +15 -0
- package/dist/docx/paragraph-styles.d.ts.map +1 -0
- package/dist/docx/parse-diagnostics.d.ts +10 -0
- package/dist/docx/parse-diagnostics.d.ts.map +1 -0
- package/dist/docx/parse-revisions.d.ts +36 -0
- package/dist/docx/parse-revisions.d.ts.map +1 -0
- package/dist/docx/parse-table.d.ts +5 -0
- package/dist/docx/parse-table.d.ts.map +1 -0
- package/dist/docx/parse-warnings.d.ts +9 -0
- package/dist/docx/parse-warnings.d.ts.map +1 -0
- package/dist/docx/parse.d.ts +13 -0
- package/dist/docx/parse.d.ts.map +1 -0
- package/dist/docx/part-relationships.d.ts +12 -0
- package/dist/docx/part-relationships.d.ts.map +1 -0
- package/dist/docx/relationship-allocator.d.ts +32 -0
- package/dist/docx/relationship-allocator.d.ts.map +1 -0
- package/dist/docx/relationships.d.ts +3 -0
- package/dist/docx/relationships.d.ts.map +1 -0
- package/dist/docx/resolve-table.d.ts +8 -0
- package/dist/docx/resolve-table.d.ts.map +1 -0
- package/dist/docx/revision-commands.d.ts +27 -0
- package/dist/docx/revision-commands.d.ts.map +1 -0
- package/dist/docx/revision-ids.d.ts +10 -0
- package/dist/docx/revision-ids.d.ts.map +1 -0
- package/dist/docx/run-formatting.d.ts +16 -0
- package/dist/docx/run-formatting.d.ts.map +1 -0
- package/dist/docx/run-properties.d.ts +5 -0
- package/dist/docx/run-properties.d.ts.map +1 -0
- package/dist/docx/run-style-model.d.ts +21 -0
- package/dist/docx/run-style-model.d.ts.map +1 -0
- package/dist/docx/save.d.ts +5 -0
- package/dist/docx/save.d.ts.map +1 -0
- package/dist/docx/section-model.d.ts +97 -0
- package/dist/docx/section-model.d.ts.map +1 -0
- package/dist/docx/sections.d.ts +18 -0
- package/dist/docx/sections.d.ts.map +1 -0
- package/dist/docx/settings.d.ts +11 -0
- package/dist/docx/settings.d.ts.map +1 -0
- package/dist/docx/simple-types.d.ts +37 -0
- package/dist/docx/simple-types.d.ts.map +1 -0
- package/dist/docx/style-numbering-package.d.ts +11 -0
- package/dist/docx/style-numbering-package.d.ts.map +1 -0
- package/dist/docx/tab-stops.d.ts +8 -0
- package/dist/docx/tab-stops.d.ts.map +1 -0
- package/dist/docx/table-borders.d.ts +15 -0
- package/dist/docx/table-borders.d.ts.map +1 -0
- package/dist/docx/table-cell-write.d.ts +12 -0
- package/dist/docx/table-cell-write.d.ts.map +1 -0
- package/dist/docx/table-defaults.d.ts +20 -0
- package/dist/docx/table-defaults.d.ts.map +1 -0
- package/dist/docx/table-model.d.ts +101 -0
- package/dist/docx/table-model.d.ts.map +1 -0
- package/dist/docx/table-of-contents.d.ts +67 -0
- package/dist/docx/table-of-contents.d.ts.map +1 -0
- package/dist/docx/table-of-figures.d.ts +10 -0
- package/dist/docx/table-of-figures.d.ts.map +1 -0
- package/dist/docx/table-styles.d.ts +4 -0
- package/dist/docx/table-styles.d.ts.map +1 -0
- package/dist/docx/table-visuals.d.ts +22 -0
- package/dist/docx/table-visuals.d.ts.map +1 -0
- package/dist/docx/test-support/access.d.ts +14 -0
- package/dist/docx/test-support/access.d.ts.map +1 -0
- package/dist/docx/test-support/heading-numbering-fixture.d.ts +5 -0
- package/dist/docx/test-support/heading-numbering-fixture.d.ts.map +1 -0
- package/dist/docx/test-support/restart-fixture.d.ts +17 -0
- package/dist/docx/test-support/restart-fixture.d.ts.map +1 -0
- package/dist/docx/test-support/schema-validation.d.ts +24 -0
- package/dist/docx/test-support/schema-validation.d.ts.map +1 -0
- package/dist/docx/theme-color.d.ts +16 -0
- package/dist/docx/theme-color.d.ts.map +1 -0
- package/dist/docx/theme-model.d.ts +31 -0
- package/dist/docx/theme-model.d.ts.map +1 -0
- package/dist/docx/theme.d.ts +6 -0
- package/dist/docx/theme.d.ts.map +1 -0
- package/dist/docx/underline.d.ts +5 -0
- package/dist/docx/underline.d.ts.map +1 -0
- package/dist/docx/units.d.ts +2 -0
- package/dist/docx/units.d.ts.map +1 -0
- package/dist/docx/validate-issues.d.ts +40 -0
- package/dist/docx/validate-issues.d.ts.map +1 -0
- package/dist/docx/validate-model.d.ts +8 -0
- package/dist/docx/validate-model.d.ts.map +1 -0
- package/dist/docx/validate-paragraph.d.ts +10 -0
- package/dist/docx/validate-paragraph.d.ts.map +1 -0
- package/dist/docx/validate-structure.d.ts +10 -0
- package/dist/docx/validate-structure.d.ts.map +1 -0
- package/dist/docx/watermark.d.ts +14 -0
- package/dist/docx/watermark.d.ts.map +1 -0
- package/dist/docx/write-comments.d.ts +12 -0
- package/dist/docx/write-comments.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts +12 -0
- package/dist/docx/write-drawing.d.ts.map +1 -0
- package/dist/docx/write-header-footer.d.ts +21 -0
- package/dist/docx/write-header-footer.d.ts.map +1 -0
- package/dist/docx/write-inline.d.ts +23 -0
- package/dist/docx/write-inline.d.ts.map +1 -0
- package/dist/docx/write-notes.d.ts +5 -0
- package/dist/docx/write-notes.d.ts.map +1 -0
- package/dist/docx/write-paragraph-decoration.d.ts +5 -0
- package/dist/docx/write-paragraph-decoration.d.ts.map +1 -0
- package/dist/docx/write-paragraph-properties.d.ts +4 -0
- package/dist/docx/write-paragraph-properties.d.ts.map +1 -0
- package/dist/docx/write-paragraph.d.ts +8 -0
- package/dist/docx/write-paragraph.d.ts.map +1 -0
- package/dist/docx/write-ranges.d.ts +42 -0
- package/dist/docx/write-ranges.d.ts.map +1 -0
- package/dist/docx/write-revisions.d.ts +10 -0
- package/dist/docx/write-revisions.d.ts.map +1 -0
- package/dist/docx/write-run-extra.d.ts +5 -0
- package/dist/docx/write-run-extra.d.ts.map +1 -0
- package/dist/docx/write-run-validation.d.ts +4 -0
- package/dist/docx/write-run-validation.d.ts.map +1 -0
- package/dist/docx/write-run.d.ts +7 -0
- package/dist/docx/write-run.d.ts.map +1 -0
- package/dist/docx/write-sections.d.ts +10 -0
- package/dist/docx/write-sections.d.ts.map +1 -0
- package/dist/docx/write-table-properties.d.ts +13 -0
- package/dist/docx/write-table-properties.d.ts.map +1 -0
- package/dist/docx/write-table.d.ts +9 -0
- package/dist/docx/write-table.d.ts.map +1 -0
- package/dist/docx/write-text-box.d.ts +15 -0
- package/dist/docx/write-text-box.d.ts.map +1 -0
- package/dist/docx/write.d.ts +25 -0
- package/dist/docx/write.d.ts.map +1 -0
- package/dist/docx/xml.d.ts +14 -0
- package/dist/docx/xml.d.ts.map +1 -0
- package/dist/docx/zip-parts.d.ts +5 -0
- package/dist/docx/zip-parts.d.ts.map +1 -0
- package/dist/geometry/adjustment-aware-shapes.d.ts +63 -0
- package/dist/geometry/adjustment-aware-shapes.d.ts.map +1 -0
- package/dist/geometry/callout-geometry.d.ts +65 -0
- package/dist/geometry/callout-geometry.d.ts.map +1 -0
- package/dist/geometry/cloud-bezier-paths.d.ts +55 -0
- package/dist/geometry/cloud-bezier-paths.d.ts.map +1 -0
- package/dist/geometry/com-avlst-ground-truth.d.ts +48 -0
- package/dist/geometry/com-avlst-ground-truth.d.ts.map +1 -0
- package/dist/geometry/connector-elbow-geometry.d.ts +41 -0
- package/dist/geometry/connector-elbow-geometry.d.ts.map +1 -0
- package/dist/geometry/guide-formula-api.d.ts +55 -0
- package/dist/geometry/guide-formula-api.d.ts.map +1 -0
- package/dist/geometry/guide-formula-eval.d.ts +85 -0
- package/dist/geometry/guide-formula-eval.d.ts.map +1 -0
- package/dist/geometry/index.cjs +15031 -0
- package/dist/geometry/index.d.ts +80 -0
- package/dist/geometry/index.d.ts.map +1 -0
- package/dist/geometry/index.mjs +14897 -0
- package/dist/geometry/indexed.d.ts +6 -0
- package/dist/geometry/indexed.d.ts.map +1 -0
- package/dist/geometry/preset-clip-paths-core.d.ts +20 -0
- package/dist/geometry/preset-clip-paths-core.d.ts.map +1 -0
- package/dist/geometry/preset-clip-paths-extended.d.ts +19 -0
- package/dist/geometry/preset-clip-paths-extended.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-action-buttons.d.ts +14 -0
- package/dist/geometry/preset-connection-sites-action-buttons.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-arrows-curved.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-arrows-curved.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-arrows-misc.d.ts +13 -0
- package/dist/geometry/preset-connection-sites-arrows-misc.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-arrows.d.ts +13 -0
- package/dist/geometry/preset-connection-sites-arrows.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-basic-a.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-basic-a.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-basic-b.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-basic-b.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-braces.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-braces.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-callouts-arrow.d.ts +14 -0
- package/dist/geometry/preset-connection-sites-callouts-arrow.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-callouts-basic.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-callouts-basic.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-circular-arrow.d.ts +14 -0
- package/dist/geometry/preset-connection-sites-circular-arrow.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-flowchart.d.ts +19 -0
- package/dist/geometry/preset-connection-sites-flowchart.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-gear9.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-gear9.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-left-circular-arrow.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-left-circular-arrow.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-left-right-circular-arrow.d.ts +13 -0
- package/dist/geometry/preset-connection-sites-left-right-circular-arrow.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-math.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-math.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-misc.d.ts +14 -0
- package/dist/geometry/preset-connection-sites-misc.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-polygons.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-polygons.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-quads.d.ts +14 -0
- package/dist/geometry/preset-connection-sites-quads.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-rects.d.ts +14 -0
- package/dist/geometry/preset-connection-sites-rects.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-ribbons.d.ts +12 -0
- package/dist/geometry/preset-connection-sites-ribbons.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-stars.d.ts +13 -0
- package/dist/geometry/preset-connection-sites-stars.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-table.d.ts +23 -0
- package/dist/geometry/preset-connection-sites-table.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-tabs.d.ts +11 -0
- package/dist/geometry/preset-connection-sites-tabs.d.ts.map +1 -0
- package/dist/geometry/preset-connection-sites-types.d.ts +52 -0
- package/dist/geometry/preset-connection-sites-types.d.ts.map +1 -0
- package/dist/geometry/preset-geometry-names.d.ts +53 -0
- package/dist/geometry/preset-geometry-names.d.ts.map +1 -0
- package/dist/geometry/preset-shape-clip-paths.d.ts +13 -0
- package/dist/geometry/preset-shape-clip-paths.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-action-buttons.d.ts +45 -0
- package/dist/geometry/preset-shape-definitions-action-buttons.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-arrow-callouts.d.ts +55 -0
- package/dist/geometry/preset-shape-definitions-arrow-callouts.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-arrows-refined.d.ts +45 -0
- package/dist/geometry/preset-shape-definitions-arrows-refined.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-arrows.d.ts +52 -0
- package/dist/geometry/preset-shape-definitions-arrows.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-chart-marks.d.ts +23 -0
- package/dist/geometry/preset-shape-definitions-chart-marks.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-cloud-callout.d.ts +28 -0
- package/dist/geometry/preset-shape-definitions-cloud-callout.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-connectors-brackets.d.ts +37 -0
- package/dist/geometry/preset-shape-definitions-connectors-brackets.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-curved-arrows-connectors.d.ts +43 -0
- package/dist/geometry/preset-shape-definitions-curved-arrows-connectors.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-curved-arrows-exact.d.ts +30 -0
- package/dist/geometry/preset-shape-definitions-curved-arrows-exact.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-flowchart.d.ts +29 -0
- package/dist/geometry/preset-shape-definitions-flowchart.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-gear6.d.ts +38 -0
- package/dist/geometry/preset-shape-definitions-gear6.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-gear9.d.ts +24 -0
- package/dist/geometry/preset-shape-definitions-gear9.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-misc.d.ts +38 -0
- package/dist/geometry/preset-shape-definitions-misc.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-rects-snips.d.ts +28 -0
- package/dist/geometry/preset-shape-definitions-rects-snips.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-scrolls-accent-callouts.d.ts +45 -0
- package/dist/geometry/preset-shape-definitions-scrolls-accent-callouts.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-table.d.ts +121 -0
- package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-tabs-decorations.d.ts +48 -0
- package/dist/geometry/preset-shape-definitions-tabs-decorations.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions.d.ts +28 -0
- package/dist/geometry/preset-shape-definitions.d.ts.map +1 -0
- package/dist/geometry/preset-shape-paths.d.ts +13 -0
- package/dist/geometry/preset-shape-paths.d.ts.map +1 -0
- package/dist/geometry/preset-shape-types.d.ts +33 -0
- package/dist/geometry/preset-shape-types.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-action-buttons.d.ts +13 -0
- package/dist/geometry/preset-text-rect-action-buttons.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-arrows.d.ts +3 -0
- package/dist/geometry/preset-text-rect-arrows.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-braces.d.ts +3 -0
- package/dist/geometry/preset-text-rect-braces.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-callouts.d.ts +3 -0
- package/dist/geometry/preset-text-rect-callouts.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-circular-arrows.d.ts +3 -0
- package/dist/geometry/preset-text-rect-circular-arrows.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-flowchart.d.ts +3 -0
- package/dist/geometry/preset-text-rect-flowchart.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-misc-a.d.ts +3 -0
- package/dist/geometry/preset-text-rect-misc-a.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-misc-b.d.ts +3 -0
- package/dist/geometry/preset-text-rect-misc-b.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-polygons.d.ts +3 -0
- package/dist/geometry/preset-text-rect-polygons.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-quads.d.ts +3 -0
- package/dist/geometry/preset-text-rect-quads.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-ribbons.d.ts +3 -0
- package/dist/geometry/preset-text-rect-ribbons.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-stars.d.ts +3 -0
- package/dist/geometry/preset-text-rect-stars.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-table.d.ts +20 -0
- package/dist/geometry/preset-text-rect-table.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-tabs.d.ts +3 -0
- package/dist/geometry/preset-text-rect-tabs.d.ts.map +1 -0
- package/dist/geometry/preset-text-rect-types.d.ts +46 -0
- package/dist/geometry/preset-text-rect-types.d.ts.map +1 -0
- package/dist/geometry/shape-boolean-clipping.d.ts +70 -0
- package/dist/geometry/shape-boolean-clipping.d.ts.map +1 -0
- package/dist/geometry/shape-boolean-ops.d.ts +142 -0
- package/dist/geometry/shape-boolean-ops.d.ts.map +1 -0
- package/dist/geometry/shape-boolean-svg.d.ts +31 -0
- package/dist/geometry/shape-boolean-svg.d.ts.map +1 -0
- package/dist/geometry/shape-boolean-types.d.ts +91 -0
- package/dist/geometry/shape-boolean-types.d.ts.map +1 -0
- package/dist/geometry/shape-boolean-union.d.ts +79 -0
- package/dist/geometry/shape-boolean-union.d.ts.map +1 -0
- package/dist/geometry/shape-boolean.d.ts +22 -0
- package/dist/geometry/shape-boolean.d.ts.map +1 -0
- package/dist/geometry/shape-definitions-extended.d.ts +18 -0
- package/dist/geometry/shape-definitions-extended.d.ts.map +1 -0
- package/dist/geometry/shape-definitions-primary.d.ts +19 -0
- package/dist/geometry/shape-definitions-primary.d.ts.map +1 -0
- package/dist/index.cjs +16618 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +16611 -0
- package/dist/opc/content-types.d.ts +14 -0
- package/dist/opc/content-types.d.ts.map +1 -0
- package/dist/opc/index.cjs +228 -0
- package/dist/opc/index.d.ts +6 -0
- package/dist/opc/index.d.ts.map +1 -0
- package/dist/opc/index.mjs +212 -0
- package/dist/opc/package.d.ts +14 -0
- package/dist/opc/package.d.ts.map +1 -0
- package/dist/opc/relationship-types.d.ts +34 -0
- package/dist/opc/relationship-types.d.ts.map +1 -0
- package/dist/opc/relationships.d.ts +29 -0
- package/dist/opc/relationships.d.ts.map +1 -0
- package/dist/opc/safe-href.d.ts +3 -0
- package/dist/opc/safe-href.d.ts.map +1 -0
- package/dist/pptx/chunks/index-CojJtI77.d.ts +9627 -0
- package/dist/pptx/chunks/index-CojJtI77.d.ts.map +1 -0
- package/dist/pptx/chunks/signature-inspection-status-Bh2oap7B.d.ts +220 -0
- package/dist/pptx/chunks/signature-inspection-status-Bh2oap7B.d.ts.map +1 -0
- package/dist/pptx/chunks/text-operations-IlJiffp7.d.ts +11122 -0
- package/dist/pptx/chunks/text-operations-IlJiffp7.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +138457 -0
- package/dist/pptx/cli/index.d.ts +139 -0
- package/dist/pptx/cli/index.d.ts.map +1 -0
- package/dist/pptx/cli/index.mjs +138424 -0
- package/dist/pptx/converter/index.cjs +32084 -0
- package/dist/pptx/converter/index.d.ts +2 -0
- package/dist/pptx/converter/index.mjs +32060 -0
- package/dist/pptx/index.cjs +172307 -0
- package/dist/pptx/index.d.ts +9692 -0
- package/dist/pptx/index.d.ts.map +1 -0
- package/dist/pptx/index.mjs +171623 -0
- package/dist/pptx/signature-node/index.cjs +1299 -0
- package/dist/pptx/signature-node/index.d.ts +172 -0
- package/dist/pptx/signature-node/index.d.ts.map +1 -0
- package/dist/pptx/signature-node/index.mjs +1236 -0
- package/dist/units/constants.d.ts +13 -0
- package/dist/units/constants.d.ts.map +1 -0
- package/dist/units/index.cjs +76 -0
- package/dist/units/index.d.ts +3 -0
- package/dist/units/index.d.ts.map +1 -0
- package/dist/units/index.mjs +45 -0
- package/dist/units/units.d.ts +52 -0
- package/dist/units/units.d.ts.map +1 -0
- package/dist/xml/index.cjs +98 -0
- package/dist/xml/index.d.ts +3 -0
- package/dist/xml/index.d.ts.map +1 -0
- package/dist/xml/index.mjs +85 -0
- package/dist/xml/namespaces.d.ts +47 -0
- package/dist/xml/namespaces.d.ts.map +1 -0
- package/dist/xml/xml.d.ts +31 -0
- package/dist/xml/xml.d.ts.map +1 -0
- package/package.json +192 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-comments.d.ts","sourceRoot":"","sources":["../../src/docx/write-comments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAA6B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAW,MAAM,UAAU,CAAC;AA6DjG;;;GAGG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BlF;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,CAI9E;AACD,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,EAAE,CAQ/E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InlineImage } from './model.js';
|
|
2
|
+
import type { RelationshipAllocator } from './relationship-allocator.js';
|
|
3
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
4
|
+
export declare function findDrawingChild(run: XmlElement | undefined): XmlElement | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Builds or reuses the run for an inline image. Reuses the original drawing XML verbatim
|
|
7
|
+
* (patching only extent/alt text) when the run is recognizably the same picture; synthesizes a
|
|
8
|
+
* minimal, valid `wp:inline` drawing for a newly inserted picture. Refuses to swap one picture's
|
|
9
|
+
* relationship for another in place rather than silently dropping the original XML.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createImageRun(doc: XmlDocument, image: InlineImage, base: InlineImage | undefined, old: XmlElement | undefined, allocator?: RelationshipAllocator): XmlElement;
|
|
12
|
+
//# sourceMappingURL=write-drawing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-drawing.d.ts","sourceRoot":"","sources":["../../src/docx/write-drawing.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAI9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAMN,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,MAAM,UAAU,CAAC;AAOlB,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAKpF;AA6ID;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,GAAG,EAAE,UAAU,GAAG,SAAS,EAC3B,SAAS,CAAC,EAAE,qBAAqB,GAC/B,UAAU,CAiDZ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type JSZip from 'jszip';
|
|
2
|
+
import type { DocumentModel, PendingMediaPart, SectionProperties } from './model.js';
|
|
3
|
+
import type { DocPrIdAllocator } from './docpr-ids.js';
|
|
4
|
+
type Kind = 'headers' | 'footers';
|
|
5
|
+
/** Header/footer parts the model references that the loaded package does not contain yet. */
|
|
6
|
+
export declare function newHeaderFooterParts(model: DocumentModel, base: DocumentModel | undefined): Array<{
|
|
7
|
+
partName: string;
|
|
8
|
+
kind: Kind;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates every header/footer part the model added: an empty part, its content-type override and
|
|
12
|
+
* its document relationship. Returns the relationship id of each new part so `w:sectPr` can
|
|
13
|
+
* reference it. The part's blocks are written afterwards by `applyHeaderFooterEdits`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createHeaderFooterParts(zip: JSZip, model: DocumentModel, base: DocumentModel | undefined, docPrIds?: DocPrIdAllocator): Promise<Map<string, string>>;
|
|
16
|
+
/** Sections with header/footer content reduced to part references, for comparing layout only. */
|
|
17
|
+
export declare function sectionLayout(sections: SectionProperties[] | undefined): unknown;
|
|
18
|
+
/** Rewrites every header/footer part whose blocks differ from the loaded baseline. */
|
|
19
|
+
export declare function applyHeaderFooterEdits(zip: JSZip, model: DocumentModel, base: DocumentModel, pendingMedia?: ReadonlyMap<string, PendingMediaPart>, docPrIds?: DocPrIdAllocator): Promise<void>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=write-header-footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-header-footer.d.ts","sourceRoot":"","sources":["../../src/docx/write-header-footer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAEX,aAAa,EAEb,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,YAAY,CAAC;AAMpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKvD,KAAK,IAAI,GAAG,SAAS,GAAG,SAAS,CAAC;AA4BlC,6FAA6F;AAC7F,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,aAAa,GAAG,SAAS,GAC7B,KAAK,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAUzC;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC5C,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,aAAa,GAAG,SAAS,EAC/B,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CA+C9B;AAED,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,iBAAiB,EAAE,GAAG,SAAS,GAAG,OAAO,CAYhF;AAED,sFAAsF;AACtF,wBAAsB,sBAAsB,CAC3C,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,aAAa,EACnB,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EACpD,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,IAAI,CAAC,CAgCf"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TextRun } from './model.js';
|
|
2
|
+
import type { RelationshipAllocator } from './relationship-allocator.js';
|
|
3
|
+
import { type ParagraphRanges } from './write-ranges.js';
|
|
4
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
5
|
+
/**
|
|
6
|
+
* One modeled run's source element, with the hyperlink or simple field that wrapped it (if any).
|
|
7
|
+
* A simple field without a cached result has a slot with no element.
|
|
8
|
+
*/
|
|
9
|
+
export interface InlineSlot {
|
|
10
|
+
element?: XmlElement;
|
|
11
|
+
container?: XmlElement;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Collects the paragraph's modeled runs in the same order the parser produced them. Returns
|
|
15
|
+
* `undefined` when the paragraph holds inline content this editor cannot safely regenerate.
|
|
16
|
+
* `w:pPr` and bookmarks are handled by the caller.
|
|
17
|
+
*/
|
|
18
|
+
export declare function collectInlineSlots(paragraph: XmlElement): InlineSlot[] | undefined;
|
|
19
|
+
/** Top-level paragraph children that `buildInlineContent` output replaces. */
|
|
20
|
+
export declare function replaceableInlineChildren(paragraph: XmlElement): XmlElement[];
|
|
21
|
+
/** Builds the paragraph's ordered top-level inline nodes from the model's flat run list. */
|
|
22
|
+
export declare function buildInlineContent(doc: XmlDocument, runs: TextRun[], base: TextRun[] | undefined, slots: InlineSlot[], allocator?: RelationshipAllocator, ranges?: ParagraphRanges): XmlElement[];
|
|
23
|
+
//# sourceMappingURL=write-inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-inline.d.ts","sourceRoot":"","sources":["../../src/docx/write-inline.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAiB,OAAO,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAIN,KAAK,eAAe,EAEpB,MAAM,mBAAmB,CAAC;AAW3B,OAAO,EAON,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,MAAM,WAAW,UAAU;IAC1B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AA4DD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,SAAS,CAyBlF;AAED,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,UAAU,GAAG,UAAU,EAAE,CAU7E;AAmDD,4FAA4F;AAC5F,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,OAAO,EAAE,EACf,IAAI,EAAE,OAAO,EAAE,GAAG,SAAS,EAC3B,KAAK,EAAE,UAAU,EAAE,EACnB,SAAS,CAAC,EAAE,qBAAqB,EACjC,MAAM,CAAC,EAAE,eAAe,GACtB,UAAU,EAAE,CA+Cd"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type JSZip from 'jszip';
|
|
2
|
+
import type { DocumentModel, PendingMediaPart } from './model.js';
|
|
3
|
+
import type { DocPrIdAllocator } from './docpr-ids.js';
|
|
4
|
+
export declare function applyNoteEdits(zip: JSZip, model: DocumentModel, base: DocumentModel, pendingMedia?: ReadonlyMap<string, PendingMediaPart>, docPrIds?: DocPrIdAllocator): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=write-notes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-notes.d.ts","sourceRoot":"","sources":["../../src/docx/write-notes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAQ,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAExE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA+BvD,wBAAsB,cAAc,CACnC,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,aAAa,EACnB,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EACpD,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,IAAI,CAAC,CAmCf"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Paragraph } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
/** Applies changed shading and borders to `w:pPr`; the caller re-sorts the properties. */
|
|
4
|
+
export declare function writeParagraphDecoration(doc: XmlDocument, props: XmlElement, paragraph: Paragraph, base?: Paragraph): void;
|
|
5
|
+
//# sourceMappingURL=write-paragraph-decoration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-paragraph-decoration.d.ts","sourceRoot":"","sources":["../../src/docx/write-paragraph-decoration.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAA4B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AA8DvF,0FAA0F;AAC1F,wBAAgB,wBAAwB,CACvC,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,EACpB,IAAI,CAAC,EAAE,SAAS,GACd,IAAI,CAGN"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Paragraph } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
export declare function writeParagraphProperties(doc: XmlDocument, props: XmlElement, paragraph: Paragraph, base?: Paragraph): void;
|
|
4
|
+
//# sourceMappingURL=write-paragraph-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-paragraph-properties.d.ts","sourceRoot":"","sources":["../../src/docx/write-paragraph-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAW,MAAM,UAAU,CAAC;AAuJ9F,wBAAgB,wBAAwB,CACvC,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,EACpB,IAAI,CAAC,EAAE,SAAS,GACd,IAAI,CAwBN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Paragraph } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
import type { CommentSpans } from './write-ranges.js';
|
|
4
|
+
import type { RelationshipAllocator } from './relationship-allocator.js';
|
|
5
|
+
export declare function setAttribute(element: XmlElement, local: string, value: string): void;
|
|
6
|
+
export declare function writeParagraphImpl(doc: XmlDocument, paragraph: Paragraph, node: XmlElement, base: Paragraph | undefined, allocator: RelationshipAllocator | undefined, spans?: CommentSpans): XmlElement;
|
|
7
|
+
export declare function createParagraph(doc: XmlDocument, paragraph: Paragraph, allocator: RelationshipAllocator | undefined, spans?: CommentSpans): XmlElement;
|
|
8
|
+
//# sourceMappingURL=write-paragraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-paragraph.d.ts","sourceRoot":"","sources":["../../src/docx/write-paragraph.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAmC,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAI9F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,wBAAgB,YAAY,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAEpF;AAsBD,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,SAAS,GAAG,SAAS,EAC3B,SAAS,EAAE,qBAAqB,GAAG,SAAS,EAC5C,KAAK,CAAC,EAAE,YAAY,GAClB,UAAU,CAkFZ;AAED,wBAAgB,eAAe,CAC9B,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,qBAAqB,GAAG,SAAS,EAC5C,KAAK,CAAC,EAAE,YAAY,GAClB,UAAU,CAGZ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Block, TextRun } from './model.js';
|
|
2
|
+
import { type CommentContinuation } from './comment-spans.js';
|
|
3
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
4
|
+
/** How this paragraph's comment and move ranges continue across paragraphs, plus new range ids. */
|
|
5
|
+
export interface ParagraphRanges extends CommentContinuation {
|
|
6
|
+
/** `w:id`s for move ranges that have none yet (new moves), by range key. */
|
|
7
|
+
rangeIds: ReadonlyMap<string, string>;
|
|
8
|
+
}
|
|
9
|
+
/** Comment range continuations in the blocks being written and in the part as loaded. */
|
|
10
|
+
export interface CommentSpans {
|
|
11
|
+
next: Map<string, CommentContinuation>;
|
|
12
|
+
original: Map<string, CommentContinuation>;
|
|
13
|
+
/** Fresh `w:id`s for move ranges created in the editor (their runs carry no range id yet). */
|
|
14
|
+
rangeIds: Map<string, string>;
|
|
15
|
+
/** Allocates `w:id`s for new annotations such as bookmarks. */
|
|
16
|
+
nextId: () => string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Hands out annotation `w:id`s (bookmarks, move ranges) after the largest id already in the part
|
|
20
|
+
* or among the model's revisions, so new markers never collide with existing ones.
|
|
21
|
+
*/
|
|
22
|
+
export declare function annotationIdAllocator(doc: XmlDocument, blocks: Block[]): () => string;
|
|
23
|
+
/** `w:id`s for move ranges created in the editor, whose runs carry no range id yet. */
|
|
24
|
+
export declare function newMoveRangeIds(blocks: Block[], nextId: () => string): Map<string, string>;
|
|
25
|
+
/** A range marker to emit around a run: a comment anchor or a move range. */
|
|
26
|
+
export type RangeEdge = {
|
|
27
|
+
kind: 'comment';
|
|
28
|
+
id: string;
|
|
29
|
+
} | {
|
|
30
|
+
kind: 'moveFrom' | 'moveTo';
|
|
31
|
+
name: string;
|
|
32
|
+
rangeId: string;
|
|
33
|
+
revision: TextRun['revision'];
|
|
34
|
+
};
|
|
35
|
+
export declare function rangeStartNodes(doc: XmlDocument, edge: RangeEdge): XmlElement[];
|
|
36
|
+
export declare function rangeEndNodes(doc: XmlDocument, edge: RangeEdge): XmlElement[];
|
|
37
|
+
/** Range edges per run index: where each comment or move range opens and closes in this paragraph. */
|
|
38
|
+
export declare function rangeEdges(runs: TextRun[], ranges: ParagraphRanges | undefined): {
|
|
39
|
+
opens: Map<number, RangeEdge[]>;
|
|
40
|
+
closes: Map<number, RangeEdge[]>;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=write-ranges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-ranges.d.ts","sourceRoot":"","sources":["../../src/docx/write-ranges.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAa,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,EAAwB,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAMnF,mGAAmG;AACnG,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC3D,4EAA4E;IAC5E,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED,yFAAyF;AACzF,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IACvC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC3C,8FAA8F;IAC9F,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,+DAA+D;IAC/D,MAAM,EAAE,MAAM,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAmBrF;AAQD,uFAAuF;AACvF,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAU1F;AAED,6EAA6E;AAC7E,MAAM,MAAM,SAAS,GAClB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;CAAE,CAAC;AAEjG,wBAAgB,eAAe,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,GAAG,UAAU,EAAE,CAQ/E;AACD,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,GAAG,UAAU,EAAE,CAK7E;AAED,sGAAsG;AACtG,wBAAgB,UAAU,CACzB,IAAI,EAAE,OAAO,EAAE,EACf,MAAM,EAAE,eAAe,GAAG,SAAS,GACjC;IAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAA;CAAE,CAqCvE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Paragraph, Revision } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
export declare const isRevisionWrapperElement: (element: XmlElement) => boolean;
|
|
4
|
+
export declare const isCommentAnchorElement: (element: XmlElement) => boolean;
|
|
5
|
+
export declare function revisionWrapper(doc: XmlDocument, revision: Revision, content: XmlElement): XmlElement;
|
|
6
|
+
/** Deleted/moved-from text is stored as `w:delText` rather than `w:t`. */
|
|
7
|
+
export declare function convertToDeleteText(doc: XmlDocument, run: XmlElement): void;
|
|
8
|
+
/** Writes/clears the paragraph mark's own tracked insertion/deletion (`w:pPr/w:rPr/w:ins|w:del`). */
|
|
9
|
+
export declare function writeParagraphMarkRevision(doc: XmlDocument, pPr: XmlElement, paragraph: Paragraph, base?: Paragraph): void;
|
|
10
|
+
//# sourceMappingURL=write-revisions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-revisions.d.ts","sourceRoot":"","sources":["../../src/docx/write-revisions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAW,MAAM,UAAU,CAAC;AAmB9F,eAAO,MAAM,wBAAwB,GAAI,SAAS,UAAU,KAAG,OAChB,CAAC;AAChD,eAAO,MAAM,sBAAsB,GAAI,SAAS,UAAU,KAAG,OAChB,CAAC;AAiB9C,wBAAgB,eAAe,CAC9B,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,UAAU,GACjB,UAAU,CAOZ;AACD,0EAA0E;AAC1E,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI,CAQ3E;AAED,qGAAqG;AACrG,wBAAgB,0BAA0B,CACzC,GAAG,EAAE,WAAW,EAChB,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,SAAS,EACpB,IAAI,CAAC,EAAE,SAAS,GACd,IAAI,CAqBN"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TextRun } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
/** Writes the run properties added for character styles, theming and table fidelity. */
|
|
4
|
+
export declare function setExtendedRunProperties(doc: XmlDocument, props: XmlElement, run: TextRun, base?: TextRun): void;
|
|
5
|
+
//# sourceMappingURL=write-run-extra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-run-extra.d.ts","sourceRoot":"","sources":["../../src/docx/write-run-extra.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAmB,KAAK,WAAW,EAAE,KAAK,UAAU,EAAW,MAAM,UAAU,CAAC;AAwBvF,wFAAwF;AACxF,wBAAgB,wBAAwB,CACvC,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,OAAO,EACZ,IAAI,CAAC,EAAE,OAAO,GACZ,IAAI,CAmDN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-run-validation.d.ts","sourceRoot":"","sources":["../../src/docx/write-run-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,UAAU,EAAW,MAAM,UAAU,CAAC;AA+D3E,8FAA8F;AAC9F,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAwEhE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TextRun } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
import type { RelationshipAllocator } from './relationship-allocator.js';
|
|
4
|
+
/** Writes a toggle property: on, explicitly off (`w:val="0"`, which cancels a style), or absent. */
|
|
5
|
+
export declare function setToggle(doc: XmlDocument, props: XmlElement, local: string, value: boolean | undefined): void;
|
|
6
|
+
export declare function createRun(doc: XmlDocument, run: TextRun, base?: TextRun, old?: XmlElement, allocator?: RelationshipAllocator): XmlElement;
|
|
7
|
+
//# sourceMappingURL=write-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-run.d.ts","sourceRoot":"","sources":["../../src/docx/write-run.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAW,MAAM,UAAU,CAAC;AAI9F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAQzE,oGAAoG;AACpG,wBAAgB,SAAS,CACxB,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,OAAO,GAAG,SAAS,GACxB,IAAI,CAMN;AA2LD,wBAAgB,SAAS,CACxB,GAAG,EAAE,WAAW,EAChB,GAAG,EAAE,OAAO,EACZ,IAAI,CAAC,EAAE,OAAO,EACd,GAAG,CAAC,EAAE,UAAU,EAChB,SAAS,CAAC,EAAE,qBAAqB,GAC/B,UAAU,CAmDZ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Block, SectionProperties } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
/**
|
|
4
|
+
* Applies `sections` to a body already rewritten for `blocks`. `base` is the loaded section list
|
|
5
|
+
* (empty for new documents); unchanged sections are left byte-identical.
|
|
6
|
+
*/
|
|
7
|
+
export declare function applySectionEdits(doc: XmlDocument, body: XmlElement, blocks: Block[], sections: SectionProperties[], base: SectionProperties[],
|
|
8
|
+
/** Relationship ids of header/footer parts created for this save, by part name. */
|
|
9
|
+
references?: ReadonlyMap<string, string>): void;
|
|
10
|
+
//# sourceMappingURL=write-sections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-sections.d.ts","sourceRoot":"","sources":["../../src/docx/write-sections.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAqB,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAI9E,OAAO,EAAmC,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAkO9F;;;GAGG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,KAAK,EAAE,EACf,QAAQ,EAAE,iBAAiB,EAAE,EAC7B,IAAI,EAAE,iBAAiB,EAAE;AACzB,mFAAmF;AACnF,UAAU,GAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAa,GACjD,IAAI,CAsDN"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Table } from './model.js';
|
|
2
|
+
import type { TableBorders, TableRowProperties } from './table-model.js';
|
|
3
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
4
|
+
/** Changes only modeled row fields, preserving unmodeled trPr children and attributes. */
|
|
5
|
+
export declare function patchRowProperties(doc: XmlDocument, tr: XmlElement, next: TableRowProperties | undefined, base: TableRowProperties | undefined): void;
|
|
6
|
+
/** Updates table defaults without replacing borders, style, look or extension XML. */
|
|
7
|
+
export declare function patchTableMargins(doc: XmlDocument, table: Table, node: XmlElement, base?: Table): void;
|
|
8
|
+
/**
|
|
9
|
+
* Changes only the cell border sides that differ from `base`, keeping every other `tcPr` child
|
|
10
|
+
* (width, shading, margins, extensions) and untouched sides exactly as they were.
|
|
11
|
+
*/
|
|
12
|
+
export declare function patchCellBorders(doc: XmlDocument, tc: XmlElement, next: TableBorders | undefined, base: TableBorders | undefined): void;
|
|
13
|
+
//# sourceMappingURL=write-table-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-table-properties.d.ts","sourceRoot":"","sources":["../../src/docx/write-table-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAIzE,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAwCrF,0FAA0F;AAC1F,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,WAAW,EAChB,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,kBAAkB,GAAG,SAAS,EACpC,IAAI,EAAE,kBAAkB,GAAG,SAAS,GAClC,IAAI,CAmBN;AAED,sFAAsF;AACtF,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,UAAU,EAChB,IAAI,CAAC,EAAE,KAAK,GACV,IAAI,CAqBN;AAyBD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,GAAG,EAAE,WAAW,EAChB,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,IAAI,EAAE,YAAY,GAAG,SAAS,GAC5B,IAAI,CA0BN"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Paragraph, Table } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
type ParagraphWriter = (doc: XmlDocument, paragraph: Paragraph, node: XmlElement, base?: Paragraph) => XmlElement;
|
|
4
|
+
type SlotsWriter = (doc: XmlDocument, parent: XmlElement, old: XmlElement[], next: XmlElement[]) => void;
|
|
5
|
+
/** Structural edits are restricted to plain rectangular tables with no hidden inline content. */
|
|
6
|
+
export declare function canEditTableStructure(table: XmlElement): boolean;
|
|
7
|
+
export declare function writeTable(doc: XmlDocument, table: Table, node: XmlElement, base: Table | undefined, writeParagraph: ParagraphWriter, replaceSlots: SlotsWriter): XmlElement;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=write-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-table.d.ts","sourceRoot":"","sources":["../../src/docx/write-table.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAa,MAAM,YAAY,CAAC;AAM9D,OAAO,EAMN,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,MAAM,UAAU,CAAC;AAElB,KAAK,eAAe,GAAG,CACtB,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,UAAU,EAChB,IAAI,CAAC,EAAE,SAAS,KACZ,UAAU,CAAC;AAChB,KAAK,WAAW,GAAG,CAClB,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,UAAU,EAAE,EACjB,IAAI,EAAE,UAAU,EAAE,KACd,IAAI,CAAC;AAEV,iGAAiG;AACjG,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAiChE;AAgED,wBAAgB,UAAU,CACzB,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,KAAK,GAAG,SAAS,EACvB,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,WAAW,GACvB,UAAU,CAqHZ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InlineImage } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
export declare const SHAPE_GRAPHIC_URI = "http://schemas.microsoft.com/office/word/2010/wordprocessingShape";
|
|
4
|
+
/** A new inline text box drawing with `image.textBoxText` as its paragraphs. */
|
|
5
|
+
export declare function buildTextBoxDrawing(doc: XmlDocument, image: InlineImage, docPrId: string): XmlElement;
|
|
6
|
+
/**
|
|
7
|
+
* Whether a text box is the simple form this module writes: not floating, with paragraphs that hold
|
|
8
|
+
* only plain runs of text. Such a box can have its text, size and outline edited without losing XML.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isSimpleTextBox(graphicData: XmlElement | undefined, anchored: boolean): boolean;
|
|
11
|
+
/** Whether the shape draws an outline (`a:ln` that is not `a:noFill`). */
|
|
12
|
+
export declare function textBoxHasBorder(graphicData: XmlElement | undefined): boolean;
|
|
13
|
+
/** Applies edited text, size and outline to an existing simple text box drawing in place. */
|
|
14
|
+
export declare function patchTextBox(doc: XmlDocument, drawing: XmlElement, image: InlineImage, base: InlineImage): void;
|
|
15
|
+
//# sourceMappingURL=write-text-box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-text-box.d.ts","sourceRoot":"","sources":["../../src/docx/write-text-box.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAA4B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAMvF,eAAO,MAAM,iBAAiB,sEAAS,CAAC;AAqCxC,gFAAgF;AAChF,wBAAgB,mBAAmB,CAClC,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,MAAM,GACb,UAAU,CAiEZ;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAgB/F;AAED,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAI7E;AAED,6FAA6F;AAC7F,wBAAgB,YAAY,CAC3B,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,WAAW,GACf,IAAI,CA4BN"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Block, DocumentModel, SectionProperties } from './model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
import type { DocPrIdAllocator } from './docpr-ids.js';
|
|
4
|
+
import { RelationshipAllocator, type NewRelationship } from './relationship-allocator.js';
|
|
5
|
+
/**
|
|
6
|
+
* Applies `blocks` to the paragraphs and tables directly inside `container` (the document body, or
|
|
7
|
+
* a header, footer or note root), rewriting only blocks that changed relative to `original`.
|
|
8
|
+
* Without an allocator, new pictures and external links are rejected (their relationships would
|
|
9
|
+
* belong to a different package part).
|
|
10
|
+
*/
|
|
11
|
+
export declare function applyBlocks(doc: XmlDocument, container: XmlElement, blocks: Block[], original: Block[], allocator: RelationshipAllocator | undefined, contentWidthTwips: number, anchor?: XmlElement | null): void;
|
|
12
|
+
export interface ApplyModelResult {
|
|
13
|
+
/** New hyperlink/image relationships save.ts must add to word/_rels/document.xml.rels. */
|
|
14
|
+
newRelationships: readonly NewRelationship[];
|
|
15
|
+
}
|
|
16
|
+
export declare function applyModel(doc: XmlDocument, model: DocumentModel, original: Block[],
|
|
17
|
+
/** Relationship ids already declared in word/_rels/document.xml.rels (styles, numbering, ...). */
|
|
18
|
+
reservedRelationshipIds?: Iterable<string>,
|
|
19
|
+
/** The loaded document's sections, so unchanged sections stay byte-identical. */
|
|
20
|
+
baseSections?: SectionProperties[],
|
|
21
|
+
/** Package-wide `wp:docPr` id allocator shared with header, footer and note parts. */
|
|
22
|
+
docPrIds?: DocPrIdAllocator,
|
|
23
|
+
/** Relationship ids of header/footer parts created for this save, by part name. */
|
|
24
|
+
headerFooterReferences?: ReadonlyMap<string, string>): ApplyModelResult;
|
|
25
|
+
//# sourceMappingURL=write.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../src/docx/write.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAa,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACrF,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAW,MAAM,UAAU,CAAC;AAS9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EACN,qBAAqB,EAErB,KAAK,eAAe,EACpB,MAAM,6BAA6B,CAAC;AAmErC;;;;;GAKG;AACH,wBAAgB,WAAW,CAC1B,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,UAAU,EACrB,MAAM,EAAE,KAAK,EAAE,EACf,QAAQ,EAAE,KAAK,EAAE,EACjB,SAAS,EAAE,qBAAqB,GAAG,SAAS,EAC5C,iBAAiB,EAAE,MAAM,EACzB,MAAM,GAAE,UAAU,GAAG,IAAW,GAC9B,IAAI,CA6CN;AAED,MAAM,WAAW,gBAAgB;IAChC,0FAA0F;IAC1F,gBAAgB,EAAE,SAAS,eAAe,EAAE,CAAC;CAC7C;AAED,wBAAgB,UAAU,CACzB,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,KAAK,EAAE;AACjB,kGAAkG;AAClG,uBAAuB,GAAE,QAAQ,CAAC,MAAM,CAAM;AAC9C,iFAAiF;AACjF,YAAY,GAAE,iBAAiB,EAAO;AACtC,sFAAsF;AACtF,QAAQ,CAAC,EAAE,gBAAgB;AAC3B,mFAAmF;AACnF,sBAAsB,GAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAa,GAC7D,gBAAgB,CAyDlB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { buildXml, elements, isElement, makeNS, textContent, type XmlDocument, type XmlElement, type XmlNode } from '../xml/index.js';
|
|
2
|
+
export declare const WORD_NS: "http://schemas.openxmlformats.org/wordprocessingml/2006/main";
|
|
3
|
+
/** OOXML relationships namespace used for `r:id`/`r:embed` attributes on drawings and hyperlinks. */
|
|
4
|
+
export declare const REL_NS: "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
5
|
+
export type { XmlDocument, XmlElement, XmlNode };
|
|
6
|
+
export declare const parseXml: (xml: string) => XmlDocument;
|
|
7
|
+
export { buildXml, elements, isElement, makeNS, textContent };
|
|
8
|
+
export declare const named: (element: XmlElement | null | undefined, local: string) => boolean;
|
|
9
|
+
export declare const children: (parent: ParentNode, local: string) => XmlElement[];
|
|
10
|
+
export declare const first: (parent: ParentNode | null | undefined, local: string) => XmlElement | undefined;
|
|
11
|
+
export declare const getW: (element: XmlElement | null | undefined, local: string) => string | undefined;
|
|
12
|
+
export declare const getR: (element: XmlElement | null | undefined, local: string) => string | undefined;
|
|
13
|
+
export declare const makeW: (doc: XmlDocument, local: string) => XmlElement;
|
|
14
|
+
//# sourceMappingURL=xml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../src/docx/xml.ts"],"names":[],"mappings":"AAGA,OAAO,EAGN,QAAQ,EAER,QAAQ,EAER,SAAS,EACT,MAAM,EAIN,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,OAAO,gEAAO,CAAC;AAC5B,qGAAqG;AACrG,eAAO,MAAM,MAAM,uEAAO,CAAC;AAC3B,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AAEjD,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,KAAG,WAAiD,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAE9D,eAAO,MAAM,KAAK,GAAI,SAAS,UAAU,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,MAAM,KAAG,OAC7C,CAAC;AAClC,eAAO,MAAM,QAAQ,GAAI,QAAQ,UAAU,EAAE,OAAO,MAAM,KAAG,UAAU,EACpC,CAAC;AACpC,eAAO,MAAM,KAAK,GACjB,QAAQ,UAAU,GAAG,IAAI,GAAG,SAAS,EACrC,OAAO,MAAM,KACX,UAAU,GAAG,SAA4C,CAAC;AAC7D,eAAO,MAAM,IAAI,GAAI,SAAS,UAAU,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,MAAM,KAAG,MAAM,GAAG,SACnD,CAAC;AACpC,eAAO,MAAM,IAAI,GAAI,SAAS,UAAU,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,MAAM,KAAG,MAAM,GAAG,SAC9D,CAAC;AACzB,eAAO,MAAM,KAAK,GAAI,KAAK,WAAW,EAAE,OAAO,MAAM,KAAG,UACb,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type JSZip from 'jszip';
|
|
2
|
+
export { ensureContentTypeOverride } from '../opc/index.js';
|
|
3
|
+
/** Returns the relationship id for `target`, creating the relationship (and rels part) if needed. */
|
|
4
|
+
export declare const ensureDocumentRelationship: (zip: JSZip, type: string, target: string) => Promise<string>;
|
|
5
|
+
//# sourceMappingURL=zip-parts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zip-parts.d.ts","sourceRoot":"","sources":["../../src/docx/zip-parts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAI5D,qGAAqG;AACrG,eAAO,MAAM,0BAA0B,GAAI,KAAK,KAAK,EAAE,MAAM,MAAM,EAAE,QAAQ,MAAM,oBACzB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adjustment-aware geometry for shapes whose silhouette depends on the
|
|
3
|
+
* source PPTX's `shapeAdjustments` values.
|
|
4
|
+
*
|
|
5
|
+
* The static `PRESET_SHAPE_CLIP_PATHS` table renders every shape at its
|
|
6
|
+
* default adjustment values. This module supplements that table for the
|
|
7
|
+
* subset of shapes where ignoring the adjustments produces a visibly wrong
|
|
8
|
+
* outline (callouts, pies, donuts, block-arcs, etc.).
|
|
9
|
+
*
|
|
10
|
+
* Adjustment encodings (per ECMA-376 §20.1.9 / DrawingML preset shapes):
|
|
11
|
+
* - **Distance** adjustments (`adjN` for callout pointer X/Y, donut hole,
|
|
12
|
+
* band thickness, arrow head) are stored as 1/100,000ths of the body's
|
|
13
|
+
* width or height. A pointer X of 25000 means 25% of width.
|
|
14
|
+
* - **Angle** adjustments (`adjN` for sweep angles on pie/arc/blockArc/
|
|
15
|
+
* circularArrow) are stored as 1/60,000ths of a degree. An angle value
|
|
16
|
+
* of 16,200,000 corresponds to 270°.
|
|
17
|
+
*
|
|
18
|
+
* Default adjustment values are sourced from the `avLst` block of each
|
|
19
|
+
* shape's `presetShapeDefinitions` entry in ECMA-376 Annex E. The defaults
|
|
20
|
+
* applied here are documented inline.
|
|
21
|
+
*
|
|
22
|
+
* The exported {@link getAdjustmentAwareClipPath} returns a CSS
|
|
23
|
+
* `clip-path` string (always a `polygon(...)` for cross-browser safety —
|
|
24
|
+
* Firefox <105 lacks `path()` clip-path support). Returns `undefined`
|
|
25
|
+
* when the shape isn't in the supported set, allowing callers to fall
|
|
26
|
+
* back to the static preset polygon.
|
|
27
|
+
*
|
|
28
|
+
* @module adjustment-aware-shapes
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Convert an OOXML angle adjustment value (60,000ths of a degree) to radians.
|
|
32
|
+
* Falls back to {@link defaultUnits} when {@link value} is non-finite.
|
|
33
|
+
*/
|
|
34
|
+
declare function angleAdjToRadians(value: number | undefined, defaultUnits: number): number;
|
|
35
|
+
/**
|
|
36
|
+
* Convert an OOXML distance adjustment value (100,000ths of a fraction)
|
|
37
|
+
* to a unit fraction in [-2, 2]. Negative or oversized values are clamped
|
|
38
|
+
* to a sane range that keeps the resulting polygon finite.
|
|
39
|
+
*/
|
|
40
|
+
declare function distanceAdjToFraction(value: number | undefined, defaultUnits: number): number;
|
|
41
|
+
/** Build a polygon clip-path string from a list of [xFrac, yFrac] points. */
|
|
42
|
+
declare function polygonFromFractions(points: ReadonlyArray<readonly [number, number]>): string;
|
|
43
|
+
/**
|
|
44
|
+
* Build a CSS `clip-path` value for {@link shapeType} that incorporates
|
|
45
|
+
* the supplied `shapeAdjustments`. Returns `undefined` for shapes that
|
|
46
|
+
* are not in the adjustment-aware table — callers should fall back to
|
|
47
|
+
* the static preset polygon.
|
|
48
|
+
*
|
|
49
|
+
* @param shapeType The OOXML preset geometry name (e.g. `"pie"`).
|
|
50
|
+
* @param width The element width in pixels.
|
|
51
|
+
* @param height The element height in pixels.
|
|
52
|
+
* @param adjustments Optional adjustment record from `PptxElement.shapeAdjustments`.
|
|
53
|
+
* Keys are `adj`, `adj1`, `adj2`, etc.
|
|
54
|
+
* @returns A CSS `clip-path` polygon expression, or `undefined`.
|
|
55
|
+
*/
|
|
56
|
+
export declare function getAdjustmentAwareClipPath(shapeType: string, width: number, height: number, adjustments?: Record<string, number>): string | undefined;
|
|
57
|
+
export declare const _internalForTests: {
|
|
58
|
+
polygonFromFractions: typeof polygonFromFractions;
|
|
59
|
+
angleAdjToRadians: typeof angleAdjToRadians;
|
|
60
|
+
distanceAdjToFraction: typeof distanceAdjToFraction;
|
|
61
|
+
};
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=adjustment-aware-shapes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adjustment-aware-shapes.d.ts","sourceRoot":"","sources":["../../src/geometry/adjustment-aware-shapes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAqBH;;;GAGG;AACH,iBAAS,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAIlF;AAED;;;;GAIG;AACH,iBAAS,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAUtF;AA2BD,6EAA6E;AAC7E,iBAAS,oBAAoB,CAAC,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAGtF;AA4rBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CACzC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,MAAM,GAAG,SAAS,CAuCpB;AAID,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** A 2D point in pixel coordinates relative to the shape's top-left origin. */
|
|
2
|
+
export interface CalloutPoint {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
/** The result of computing callout leader line geometry. */
|
|
7
|
+
export interface CalloutLeaderLineGeometry {
|
|
8
|
+
/**
|
|
9
|
+
* Ordered list of points forming the callout leader line.
|
|
10
|
+
* For callout1: 2 points (start, end).
|
|
11
|
+
* For callout2: 3 points (start, bend, end).
|
|
12
|
+
* For callout3: 4 points (start, bend1, bend2, end).
|
|
13
|
+
*/
|
|
14
|
+
points: CalloutPoint[];
|
|
15
|
+
/** Whether the shape variant has a visible border (bordercallout, accentbordercallout). */
|
|
16
|
+
hasBorder: boolean;
|
|
17
|
+
/** Whether the shape variant has an accent bar (accentcallout, accentbordercallout). */
|
|
18
|
+
hasAccent: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given shape type name is a callout shape with a leader line.
|
|
22
|
+
*
|
|
23
|
+
* @param shapeType - The OOXML preset geometry name (case-insensitive).
|
|
24
|
+
*/
|
|
25
|
+
export declare function isCalloutShape(shapeType: string | undefined): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the tier (1, 2, or 3) for the callout shape, indicating the number
|
|
28
|
+
* of line segments. Returns 0 if the shape type is not a callout.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getCalloutTier(shapeType: string): 0 | 1 | 2 | 3;
|
|
31
|
+
/**
|
|
32
|
+
* Computes the callout leader line geometry for a given callout shape element.
|
|
33
|
+
*
|
|
34
|
+
* @param shapeType - The OOXML preset geometry name.
|
|
35
|
+
* @param width - Shape width in pixels.
|
|
36
|
+
* @param height - Shape height in pixels.
|
|
37
|
+
* @param adjustments - Shape adjustment values record (from `shapeAdjustments`).
|
|
38
|
+
* @returns The computed leader line geometry, or `null` if not a callout shape.
|
|
39
|
+
*/
|
|
40
|
+
export declare function getCalloutLeaderLineGeometry(shapeType: string, width: number, height: number, adjustments?: Record<string, number>): CalloutLeaderLineGeometry | null;
|
|
41
|
+
/**
|
|
42
|
+
* Builds an SVG path `d` attribute string for the callout leader line.
|
|
43
|
+
*
|
|
44
|
+
* @param geometry - The computed callout leader line geometry.
|
|
45
|
+
* @returns An SVG path data string (e.g. "M 10 20 L 30 40 L 50 60").
|
|
46
|
+
*/
|
|
47
|
+
export declare function buildCalloutLeaderLineSvgPath(geometry: CalloutLeaderLineGeometry): string;
|
|
48
|
+
/**
|
|
49
|
+
* Computes the SVG viewBox bounds for a callout shape including the leader line.
|
|
50
|
+
* The leader line can extend beyond the shape boundary (negative coordinates
|
|
51
|
+
* or coordinates > width/height), so the viewBox must be expanded.
|
|
52
|
+
*
|
|
53
|
+
* @param width - Shape width in pixels.
|
|
54
|
+
* @param height - Shape height in pixels.
|
|
55
|
+
* @param geometry - The callout leader line geometry.
|
|
56
|
+
* @param padding - Extra padding in pixels around the bounds (default 2).
|
|
57
|
+
* @returns The viewBox bounds as `{ minX, minY, viewWidth, viewHeight }`.
|
|
58
|
+
*/
|
|
59
|
+
export declare function getCalloutViewBoxBounds(width: number, height: number, geometry: CalloutLeaderLineGeometry, padding?: number): {
|
|
60
|
+
minX: number;
|
|
61
|
+
minY: number;
|
|
62
|
+
viewWidth: number;
|
|
63
|
+
viewHeight: number;
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=callout-geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-geometry.d.ts","sourceRoot":"","sources":["../../src/geometry/callout-geometry.ts"],"names":[],"mappings":"AAgCA,+EAA+E;AAC/E,MAAM,WAAW,YAAY;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACzC;;;;;OAKG;IACH,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,2FAA2F;IAC3F,SAAS,EAAE,OAAO,CAAC;IACnB,wFAAwF;IACxF,SAAS,EAAE,OAAO,CAAC;CACnB;AAqED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAKrE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAY/D;AAwCD;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAC3C,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,yBAAyB,GAAG,IAAI,CA8ClC;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,yBAAyB,GAAG,MAAM,CAWzF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,yBAAyB,EACnC,OAAO,SAAI,GACT;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CA2BvE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* High-DPI Bezier-curve clip-paths for `cloud` and `cloudCallout` presets.
|
|
3
|
+
*
|
|
4
|
+
* The static polygon entries in {@link CLIP_PATHS_EXTENDED} approximate the
|
|
5
|
+
* cumulus silhouette with 32 vertices, which becomes visibly faceted on
|
|
6
|
+
* Retina/4K displays. These helpers return CSS `path('M…Z')` expressions
|
|
7
|
+
* built from cubic-Bezier lobes, so the outline stays smooth at any DPI.
|
|
8
|
+
*
|
|
9
|
+
* `path()` in CSS does not accept percentage units, so callers must supply
|
|
10
|
+
* pixel dimensions and re-compute on resize. Use {@link getCloudPathForRendering}
|
|
11
|
+
* (in `shape-geometry.ts`) for the shape-aware wrapper.
|
|
12
|
+
*
|
|
13
|
+
* Browser support: Chrome 109+, Safari 15.4+, Firefox 105+.
|
|
14
|
+
*
|
|
15
|
+
* @module cloud-bezier-paths
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Produce a CSS `clip-path: path('…')` expression for the `cloud` preset.
|
|
19
|
+
*
|
|
20
|
+
* The body centre is the bounding-box centre. 8 cubic-Bezier lobes are
|
|
21
|
+
* walked clockwise; each lobe is rendered as a near-circular bump using
|
|
22
|
+
* two cubic-Bezier segments connected by a transition arc back toward the
|
|
23
|
+
* next lobe's start. The path is closed with `Z`.
|
|
24
|
+
*
|
|
25
|
+
* @param width - Element width in pixels.
|
|
26
|
+
* @param height - Element height in pixels.
|
|
27
|
+
* @returns A CSS `path('M…Z')` expression suitable for `clip-path`.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getCloudClipPath(width: number, height: number): string;
|
|
30
|
+
/**
|
|
31
|
+
* Produce a CSS `clip-path: path('…')` expression for the `cloudCallout`
|
|
32
|
+
* preset. Combines the 8-lobe cumulus body with the spec-default 3-bump
|
|
33
|
+
* tail trailing toward the lower-left.
|
|
34
|
+
*
|
|
35
|
+
* The body is shrunk to ~75% of the bounding box (centred slightly toward
|
|
36
|
+
* the upper-right) so the tail bumps fit within the 100% box. Adjustment-
|
|
37
|
+
* driven repositioning of the pointer tip is handled by Agent B in
|
|
38
|
+
* `adjustment-aware-shapes.ts`; this helper uses the spec defaults.
|
|
39
|
+
*
|
|
40
|
+
* @param width - Element width in pixels.
|
|
41
|
+
* @param height - Element height in pixels.
|
|
42
|
+
* @returns A CSS `path('M…Z')` expression suitable for `clip-path`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getCloudCalloutClipPath(width: number, height: number): string;
|
|
45
|
+
/**
|
|
46
|
+
* Lobe count exposed for tests and downstream consumers that want to
|
|
47
|
+
* verify the spec-correct number of cumulus piles.
|
|
48
|
+
*/
|
|
49
|
+
export declare const CLOUD_LOBE_COUNT: number;
|
|
50
|
+
/**
|
|
51
|
+
* Tail bump count exposed for tests; matches the spec default for the
|
|
52
|
+
* `cloudCallout` pointer trail.
|
|
53
|
+
*/
|
|
54
|
+
export declare const CLOUD_CALLOUT_TAIL_COUNT: number;
|
|
55
|
+
//# sourceMappingURL=cloud-bezier-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-bezier-paths.d.ts","sourceRoot":"","sources":["../../src/geometry/cloud-bezier-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAsIH;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CA6CtE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAwD7E;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAqB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAA4B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerPoint COM ground truth for `avLst` adjustment-guide names/defaults,
|
|
3
|
+
* gathered 2026-09-05 for the W3-F geometry audit.
|
|
4
|
+
*
|
|
5
|
+
* Method: `Presentation.Slides(1).Shapes.AddShape(<MsoAutoShapeType>, 0, 0,
|
|
6
|
+
* 200, 100)` for each id below, then `Shape.Adjustments.Count` and
|
|
7
|
+
* `Shape.Adjustments.Item(i)` read back BEFORE saving (PowerPoint omits
|
|
8
|
+
* `<a:avLst>` entirely from the saved file when every guide is still at its
|
|
9
|
+
* built-in default, so the file itself is NOT a usable source for this - the
|
|
10
|
+
* live COM object's `Adjustments` collection is). `Adjustments.Item(i)`
|
|
11
|
+
* returns the guide's value as a plain 0..1 fraction; multiplying by 100000
|
|
12
|
+
* recovers the OOXML `<a:gd fmla="val …"/>` integer (cross-checked against
|
|
13
|
+
* `roundRect`, whose known-correct default of 16667 read back as exactly
|
|
14
|
+
* `0.16667`). Adjustment guide NAMES are positional by ECMA-376 convention
|
|
15
|
+
* (`"adj"` alone for a single guide, else `"adj1"..."adjN"` in order), which
|
|
16
|
+
* this repo's own spec-accurate `gear9` CONNECTION-SITES table
|
|
17
|
+
* (`preset-connection-sites-gear9.ts`, transcribed independently from
|
|
18
|
+
* `presetShapeDefinitions.xml` for hit-testing, not for this render path)
|
|
19
|
+
* independently confirms for gear9's `adj1`/`adj2` names and defaults.
|
|
20
|
+
*
|
|
21
|
+
* `preset-shape-definitions-tabs-decorations-test.ts` and
|
|
22
|
+
* `preset-shape-definitions-action-buttons.test.ts` assert the corresponding
|
|
23
|
+
* `PRESET_SHAPE_GEOMETRY_TABLE` entries directly; this file's own test
|
|
24
|
+
* (`com-avlst-ground-truth.test.ts`) diffs the FULL table against every
|
|
25
|
+
* preset recorded here, so a future edit that silently reintroduces a wrong
|
|
26
|
+
* guide count/name/default fails immediately instead of waiting for another
|
|
27
|
+
* COM audit to notice.
|
|
28
|
+
*
|
|
29
|
+
* This is NOT a full 187-preset sweep (that would require either a reliable
|
|
30
|
+
* ECMA-name -> MsoAutoShapeType mapping for all 187 presets, which this repo
|
|
31
|
+
* does not have catalogued anywhere, or per-preset raw-XML probing; both are
|
|
32
|
+
* out of scope for this pass) - it covers the three preset families the W3-F
|
|
33
|
+
* brief flagged as known-wrong (`actionButton*`, `gear6`, `gear9`) plus a
|
|
34
|
+
* couple of already-correct presets kept in as regression anchors so the
|
|
35
|
+
* diff test itself is proven to catch a real mismatch, not just an absent
|
|
36
|
+
* one.
|
|
37
|
+
*/
|
|
38
|
+
/** `msoAutoShapeType` id -> the COM-verified `avLst` ground truth. */
|
|
39
|
+
export interface ComAvLstGroundTruthEntry {
|
|
40
|
+
/** ECMA-376 `ST_ShapeType` / `a:prstGeom/@prst` name. */
|
|
41
|
+
prst: string;
|
|
42
|
+
/** `Shape.Adjustments.Count`. */
|
|
43
|
+
count: number;
|
|
44
|
+
/** Guide name -> default value in the OOXML `1/100000` integer scale. */
|
|
45
|
+
guides: Record<string, number>;
|
|
46
|
+
}
|
|
47
|
+
export declare const COM_AVLST_GROUND_TRUTH: ComAvLstGroundTruthEntry[];
|
|
48
|
+
//# sourceMappingURL=com-avlst-ground-truth.d.ts.map
|