ooxml-core 1.1.0 → 1.2.1
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/README.md +18 -18
- package/dist/{PptxHandler-75LOVF7I.mjs → PptxHandler-VQQS4VS6.mjs} +3 -3
- package/dist/automation/index.cjs +7567 -4401
- package/dist/automation/index.mjs +7567 -4401
- package/dist/chart/bar-cluster-geometry.d.ts +6 -0
- package/dist/chart/bar-cluster-geometry.d.ts.map +1 -1
- package/dist/chart/color-palettes.d.ts +2 -2
- package/dist/chart/color-palettes.d.ts.map +1 -1
- package/dist/chart/data-cache.d.ts +6 -0
- package/dist/chart/data-cache.d.ts.map +1 -0
- package/dist/chart/gradient-coincident-stops.d.ts +17 -0
- package/dist/chart/gradient-coincident-stops.d.ts.map +1 -0
- package/dist/chart/gradient-definition.d.ts +3 -3
- package/dist/chart/gradient-definition.d.ts.map +1 -1
- package/dist/chart/index.cjs +3069 -140
- package/dist/chart/index.d.ts +7 -0
- package/dist/chart/index.d.ts.map +1 -1
- package/dist/chart/index.mjs +3048 -141
- package/dist/chart/model-chrome.d.ts +39 -0
- package/dist/chart/model-chrome.d.ts.map +1 -0
- package/dist/chart/model-series.d.ts +189 -0
- package/dist/chart/model-series.d.ts.map +1 -0
- package/dist/chart/model.d.ts +202 -0
- package/dist/chart/model.d.ts.map +1 -0
- package/dist/chart/parse-chrome.d.ts +16 -0
- package/dist/chart/parse-chrome.d.ts.map +1 -0
- package/dist/chart/parse-plot.d.ts +11 -0
- package/dist/chart/parse-plot.d.ts.map +1 -0
- package/dist/chart/parse-series.d.ts +8 -0
- package/dist/chart/parse-series.d.ts.map +1 -0
- package/dist/chart/parse-space.d.ts +8 -0
- package/dist/chart/parse-space.d.ts.map +1 -0
- package/dist/chart/parse-text.d.ts +12 -0
- package/dist/chart/parse-text.d.ts.map +1 -0
- package/dist/chart/parse-util.d.ts +42 -0
- package/dist/chart/parse-util.d.ts.map +1 -0
- package/dist/{xlsx/layout → chart/render}/chart-appearance.d.ts +4 -4
- package/dist/chart/render/chart-appearance.d.ts.map +1 -0
- package/dist/chart/render/chart-colors.d.ts +9 -0
- package/dist/chart/render/chart-colors.d.ts.map +1 -0
- package/dist/chart/render/chart-scale.d.ts.map +1 -0
- package/dist/chart/render/chart-spacing.d.ts +6 -0
- package/dist/chart/render/chart-spacing.d.ts.map +1 -0
- package/dist/{xlsx/layout → chart/render}/chart-svg-appearance.d.ts +1 -1
- package/dist/chart/render/chart-svg-appearance.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-bars.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-cartesian.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-legend.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-radial.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-text-metrics.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-title-text.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-util.d.ts.map +1 -0
- package/dist/chart/render/chart-svg.d.ts.map +1 -0
- package/dist/chart/render/chart-title-text.d.ts +14 -0
- package/dist/chart/render/chart-title-text.d.ts.map +1 -0
- package/dist/chart/render/chart-value-axis.d.ts +6 -0
- package/dist/chart/render/chart-value-axis.d.ts.map +1 -0
- package/dist/chart/render/chart-view.d.ts +71 -0
- package/dist/chart/render/chart-view.d.ts.map +1 -0
- package/dist/chart/render/index.d.ts +9 -0
- package/dist/chart/render/index.d.ts.map +1 -0
- package/dist/chart/render/render-space.d.ts +34 -0
- package/dist/chart/render/render-space.d.ts.map +1 -0
- package/dist/chart/render/summary-from-space.d.ts +15 -0
- package/dist/chart/render/summary-from-space.d.ts.map +1 -0
- package/dist/chart/render/summary.d.ts +51 -0
- package/dist/chart/render/summary.d.ts.map +1 -0
- package/dist/chart/render/theme-palette.d.ts +8 -0
- package/dist/chart/render/theme-palette.d.ts.map +1 -0
- package/dist/chart/style-definition.d.ts +7 -7
- package/dist/chart/style-definition.d.ts.map +1 -1
- package/dist/chart/write-axes.d.ts +5 -0
- package/dist/chart/write-axes.d.ts.map +1 -0
- package/dist/chart/write-chrome.d.ts +9 -0
- package/dist/chart/write-chrome.d.ts.map +1 -0
- package/dist/chart/write-plot.d.ts +7 -0
- package/dist/chart/write-plot.d.ts.map +1 -0
- package/dist/chart/write-series.d.ts +7 -0
- package/dist/chart/write-series.d.ts.map +1 -0
- package/dist/chart/write-shape.d.ts +21 -0
- package/dist/chart/write-shape.d.ts.map +1 -0
- package/dist/chart/write-space.d.ts +15 -0
- package/dist/chart/write-space.d.ts.map +1 -0
- package/dist/chart/write-text-body.d.ts +6 -0
- package/dist/chart/write-text-body.d.ts.map +1 -0
- package/dist/chart/write-text.d.ts +15 -0
- package/dist/chart/write-text.d.ts.map +1 -0
- package/dist/chart/write-util.d.ts +24 -0
- package/dist/chart/write-util.d.ts.map +1 -0
- package/dist/chart/xml-fragment.d.ts +13 -0
- package/dist/chart/xml-fragment.d.ts.map +1 -0
- package/dist/{chunk-HUBK4EOT.mjs → chunk-3IT6ZD7K.mjs} +2 -0
- package/dist/{chunk-TS3E27NK.mjs → chunk-3UMDVJRN.mjs} +12 -1
- package/dist/{chunk-P22OKTRK.mjs → chunk-54S5A5PZ.mjs} +208 -159
- package/dist/{chunk-OMGH6IKY.mjs → chunk-5U27IVB7.mjs} +42 -5
- package/dist/{chunk-RFX7AJDZ.mjs → chunk-5VLNF4OX.mjs} +2 -2
- package/dist/{chunk-OJI3N5AY.cjs → chunk-FRUB573B.cjs} +2 -0
- package/dist/{chunk-75LA7H3F.mjs → chunk-V2BIGIH4.mjs} +27504 -27464
- package/dist/{chunk-Q27H4HFS.mjs → chunk-XBNSBDNT.mjs} +1 -1
- package/dist/{chunk-2C72N64G.cjs → chunk-XROY25LN.cjs} +12 -0
- package/dist/{chunk-LA7D6ZYQ.mjs → chunk-XSFHGZFH.mjs} +3579 -2083
- package/dist/collab/index.cjs +1 -0
- package/dist/collab/index.mjs +1 -0
- package/dist/collab/transport-provider.d.ts.map +1 -1
- package/dist/color/hex-rgb.d.ts +5 -0
- package/dist/color/hex-rgb.d.ts.map +1 -0
- package/dist/color/index.cjs +12 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/color/index.d.ts.map +1 -1
- package/dist/color/index.mjs +11 -1
- package/dist/diagram/engine/alg-composite.d.ts +18 -0
- package/dist/diagram/engine/alg-composite.d.ts.map +1 -0
- package/dist/diagram/engine/alg-connector.d.ts +17 -0
- package/dist/diagram/engine/alg-connector.d.ts.map +1 -0
- package/dist/diagram/engine/alg-cycle.d.ts +28 -0
- package/dist/diagram/engine/alg-cycle.d.ts.map +1 -0
- package/dist/diagram/engine/alg-hier.d.ts +33 -0
- package/dist/diagram/engine/alg-hier.d.ts.map +1 -0
- package/dist/diagram/engine/alg-linear.d.ts +24 -0
- package/dist/diagram/engine/alg-linear.d.ts.map +1 -0
- package/dist/diagram/engine/alg-pyra.d.ts +117 -0
- package/dist/diagram/engine/alg-pyra.d.ts.map +1 -0
- package/dist/diagram/engine/alg-snake.d.ts +21 -0
- package/dist/diagram/engine/alg-snake.d.ts.map +1 -0
- package/dist/diagram/engine/axis.d.ts +24 -0
- package/dist/diagram/engine/axis.d.ts.map +1 -0
- package/dist/diagram/engine/conditions.d.ts +12 -0
- package/dist/diagram/engine/conditions.d.ts.map +1 -0
- package/dist/diagram/engine/connector-shape.d.ts +25 -0
- package/dist/diagram/engine/connector-shape.d.ts.map +1 -0
- package/dist/diagram/engine/connector-size.d.ts +30 -0
- package/dist/diagram/engine/connector-size.d.ts.map +1 -0
- package/dist/diagram/engine/constraint-eval.d.ts +37 -0
- package/dist/diagram/engine/constraint-eval.d.ts.map +1 -0
- package/dist/diagram/engine/constraint-fill-idiom.d.ts +61 -0
- package/dist/diagram/engine/constraint-fill-idiom.d.ts.map +1 -0
- package/dist/diagram/engine/constraint-units.d.ts +35 -0
- package/dist/diagram/engine/constraint-units.d.ts.map +1 -0
- package/dist/diagram/engine/data-points.d.ts +48 -0
- package/dist/diagram/engine/data-points.d.ts.map +1 -0
- package/dist/diagram/engine/engine-context.d.ts +21 -0
- package/dist/diagram/engine/engine-context.d.ts.map +1 -0
- package/dist/diagram/engine/engine-first-allowlist.d.ts +31 -0
- package/dist/diagram/engine/engine-first-allowlist.d.ts.map +1 -0
- package/dist/diagram/engine/engine-fonts.d.ts +26 -0
- package/dist/diagram/engine/engine-fonts.d.ts.map +1 -0
- package/dist/diagram/engine/engine-node.d.ts +72 -0
- package/dist/diagram/engine/engine-node.d.ts.map +1 -0
- package/dist/diagram/engine/engine-to-result.d.ts +43 -0
- package/dist/diagram/engine/engine-to-result.d.ts.map +1 -0
- package/dist/diagram/engine/engine.d.ts +18 -0
- package/dist/diagram/engine/engine.d.ts.map +1 -0
- package/dist/diagram/engine/font-groups.d.ts +33 -0
- package/dist/diagram/engine/font-groups.d.ts.map +1 -0
- package/dist/diagram/engine/font-length.d.ts +26 -0
- package/dist/diagram/engine/font-length.d.ts.map +1 -0
- package/dist/diagram/engine/font-search.d.ts +38 -0
- package/dist/diagram/engine/font-search.d.ts.map +1 -0
- package/dist/diagram/engine/hier-assistants.d.ts +47 -0
- package/dist/diagram/engine/hier-assistants.d.ts.map +1 -0
- package/dist/diagram/engine/hier-hang.d.ts +28 -0
- package/dist/diagram/engine/hier-hang.d.ts.map +1 -0
- package/dist/diagram/engine/hier-measure.d.ts +33 -0
- package/dist/diagram/engine/hier-measure.d.ts.map +1 -0
- package/dist/diagram/engine/hier-node-size.d.ts +23 -0
- package/dist/diagram/engine/hier-node-size.d.ts.map +1 -0
- package/dist/diagram/engine/hier-shape.d.ts +31 -0
- package/dist/diagram/engine/hier-shape.d.ts.map +1 -0
- package/dist/diagram/engine/index.d.ts +6 -0
- package/dist/diagram/engine/index.d.ts.map +1 -0
- package/dist/diagram/engine/layout-def-parse.d.ts +13 -0
- package/dist/diagram/engine/layout-def-parse.d.ts.map +1 -0
- package/dist/diagram/engine/layout-def-types.d.ts +118 -0
- package/dist/diagram/engine/layout-def-types.d.ts.map +1 -0
- package/dist/diagram/engine/layout-driver.d.ts +41 -0
- package/dist/diagram/engine/layout-driver.d.ts.map +1 -0
- package/dist/diagram/engine/layout-font.d.ts +27 -0
- package/dist/diagram/engine/layout-font.d.ts.map +1 -0
- package/dist/diagram/engine/move-with-merge.d.ts +49 -0
- package/dist/diagram/engine/move-with-merge.d.ts.map +1 -0
- package/dist/diagram/engine/node-text.d.ts +20 -0
- package/dist/diagram/engine/node-text.d.ts.map +1 -0
- package/dist/diagram/engine/ordered-xml.d.ts +30 -0
- package/dist/diagram/engine/ordered-xml.d.ts.map +1 -0
- package/dist/diagram/engine/preferred-size.d.ts +28 -0
- package/dist/diagram/engine/preferred-size.d.ts.map +1 -0
- package/dist/diagram/engine/pres-tree.d.ts +58 -0
- package/dist/diagram/engine/pres-tree.d.ts.map +1 -0
- package/dist/diagram/engine/registry.d.ts +7 -0
- package/dist/diagram/engine/registry.d.ts.map +1 -0
- package/dist/diagram/engine/render-filter.d.ts +43 -0
- package/dist/diagram/engine/render-filter.d.ts.map +1 -0
- package/dist/diagram/engine/shape-adjust.d.ts +16 -0
- package/dist/diagram/engine/shape-adjust.d.ts.map +1 -0
- package/dist/diagram/engine/shape-transform.d.ts +14 -0
- package/dist/diagram/engine/shape-transform.d.ts.map +1 -0
- package/dist/diagram/engine/snake-rule-fit.d.ts +34 -0
- package/dist/diagram/engine/snake-rule-fit.d.ts.map +1 -0
- package/dist/diagram/engine/style-label.d.ts +24 -0
- package/dist/diagram/engine/style-label.d.ts.map +1 -0
- package/dist/diagram/engine/text-fit.d.ts +61 -0
- package/dist/diagram/engine/text-fit.d.ts.map +1 -0
- package/dist/diagram/engine/text-grow.d.ts +33 -0
- package/dist/diagram/engine/text-grow.d.ts.map +1 -0
- package/dist/diagram/engine/text-measure.d.ts +77 -0
- package/dist/diagram/engine/text-measure.d.ts.map +1 -0
- package/dist/diagram/hierarchy/index.d.ts +5 -0
- package/dist/diagram/hierarchy/index.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-axis-pitch.d.ts +65 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-axis-pitch.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-axis-swap-orientation.d.ts +68 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-axis-swap-orientation.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-branch-mode.d.ts +54 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-branch-mode.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-cascade.d.ts +58 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-cascade.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-centered-fan-axis.d.ts +63 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-centered-fan-axis.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-child-order.d.ts +41 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-child-order.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-composite-child.d.ts +129 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-composite-child.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-constraint-lookup.d.ts +76 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-constraint-lookup.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-corner-plan.d.ts +49 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-corner-plan.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-dispatch-lindir.d.ts +58 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-dispatch-lindir.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fan-aware-width.d.ts +48 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fan-aware-width.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fan.d.ts +97 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fan.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fanned-hang-geometry.d.ts +42 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fanned-hang-geometry.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fanned-hang.d.ts +74 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fanned-hang.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fit-item-box.d.ts +111 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fit-item-box.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fold-depth.d.ts +44 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-fold-depth.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-generation-gap.d.ts +60 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-generation-gap.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-generation-templates.d.ts +106 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-generation-templates.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hang-depth.d.ts +133 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hang-depth.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hang-dispatch.d.ts +28 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hang-dispatch.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hanging-arrange.d.ts +28 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hanging-arrange.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hanging-box.d.ts +86 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hanging-box.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hanging-fold.d.ts +36 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hanging-fold.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hanging.d.ts +118 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-hanging.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-item-template.d.ts +64 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-item-template.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-orgchart-tree.d.ts +53 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-orgchart-tree.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-orientation-resolve.d.ts +36 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-orientation-resolve.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-orientation-types.d.ts +81 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-orientation-types.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-orientation.d.ts +78 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-orientation.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-pitch.d.ts +140 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-pitch.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-shared.d.ts +131 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-shared.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-standard-options.d.ts +91 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-standard-options.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-standard-rows.d.ts +21 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-standard-rows.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-standard.d.ts +36 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-standard.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-tailed-placer.d.ts +20 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-tailed-placer.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-tailed-transpose.d.ts +50 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-tailed-transpose.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-transpose.d.ts +23 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-transpose.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-transposed-orientation.d.ts +22 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-transposed-orientation.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-wrapped-groups.d.ts +93 -0
- package/dist/diagram/hierarchy/smartart-hierarchy-wrapped-groups.d.ts.map +1 -0
- package/dist/diagram/hierarchy/smartart-layout-interpreter-hierarchy.d.ts +49 -0
- package/dist/diagram/hierarchy/smartart-layout-interpreter-hierarchy.d.ts.map +1 -0
- package/dist/diagram/index.cjs +22537 -80
- package/dist/diagram/index.d.ts +4 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +22453 -81
- package/dist/diagram/layout/index.d.ts +38 -0
- package/dist/diagram/layout/index.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-choose-xml.d.ts +32 -0
- package/dist/diagram/layout/smartart-choose-xml.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-constraint-branch-index.d.ts +49 -0
- package/dist/diagram/layout/smartart-constraint-branch-index.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-constraint-declared-by.d.ts +64 -0
- package/dist/diagram/layout/smartart-constraint-declared-by.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-constraint-ratio-fallback.d.ts +18 -0
- package/dist/diagram/layout/smartart-constraint-ratio-fallback.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-constraint-resolve.d.ts +24 -0
- package/dist/diagram/layout/smartart-constraint-resolve.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-constraint-rules.d.ts +26 -0
- package/dist/diagram/layout/smartart-constraint-rules.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-constraint-sibling-roles.d.ts +100 -0
- package/dist/diagram/layout/smartart-constraint-sibling-roles.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-constraint-solver.d.ts +133 -0
- package/dist/diagram/layout/smartart-constraint-solver.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-constraint-values.d.ts +5 -0
- package/dist/diagram/layout/smartart-constraint-values.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-font-table.d.ts +14 -0
- package/dist/diagram/layout/smartart-font-table.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-interpreter-fold-text.d.ts +75 -0
- package/dist/diagram/layout/smartart-interpreter-fold-text.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-control-flow.d.ts +25 -0
- package/dist/diagram/layout/smartart-layout-control-flow.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-arranged-selection.d.ts +56 -0
- package/dist/diagram/layout/smartart-layout-interpreter-arranged-selection.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-arrangement-kind.d.ts +37 -0
- package/dist/diagram/layout/smartart-layout-interpreter-arrangement-kind.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-aux.d.ts +66 -0
- package/dist/diagram/layout/smartart-layout-interpreter-aux.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-axis-count.d.ts +128 -0
- package/dist/diagram/layout/smartart-layout-interpreter-axis-count.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-axis-depth.d.ts +73 -0
- package/dist/diagram/layout/smartart-layout-interpreter-axis-depth.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-axis-hop.d.ts +48 -0
- package/dist/diagram/layout/smartart-layout-interpreter-axis-hop.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-axis-range.d.ts +19 -0
- package/dist/diagram/layout/smartart-layout-interpreter-axis-range.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-algorithm.d.ts +60 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-algorithm.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-branch.d.ts +36 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-branch.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-composite.d.ts +42 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-composite.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-depth.d.ts +102 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-depth.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-resolve.d.ts +32 -0
- package/dist/diagram/layout/smartart-layout-interpreter-choose-resolve.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-alternative.d.ts +33 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-alternative.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-anchor.d.ts +95 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-anchor.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-aspect.d.ts +84 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-aspect.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-candidates.d.ts +60 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-candidates.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-children.d.ts +86 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-children.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-choose-groups.d.ts +44 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-choose-groups.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-choose.d.ts +109 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-choose.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-detect.d.ts +182 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-detect.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-fontfit.d.ts +60 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-fontfit.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-foreach.d.ts +36 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-foreach.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-group-slots.d.ts +92 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-group-slots.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-iteration.d.ts +45 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-iteration.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-nested-cycle.d.ts +57 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-nested-cycle.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-order-fallback.d.ts +24 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-order-fallback.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-order.d.ts +41 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-order.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-pairs.d.ts +34 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-pairs.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-render.d.ts +29 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-render.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-ring.d.ts +40 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-ring.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-slot-dim.d.ts +22 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-slot-dim.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-slots.d.ts +69 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite-slots.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite.d.ts +56 -0
- package/dist/diagram/layout/smartart-layout-interpreter-composite.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-conn-path.d.ts +42 -0
- package/dist/diagram/layout/smartart-layout-interpreter-conn-path.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-connector-order.d.ts +23 -0
- package/dist/diagram/layout/smartart-layout-interpreter-connector-order.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-constraints.d.ts +28 -0
- package/dist/diagram/layout/smartart-layout-interpreter-constraints.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-custom.d.ts +31 -0
- package/dist/diagram/layout/smartart-layout-interpreter-custom.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-boxes.d.ts +36 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-boxes.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-connectors.d.ts +21 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-connectors.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-constraints.d.ts +116 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-constraints.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-extension.d.ts +110 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-extension.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-fontfit.d.ts +50 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-fontfit.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-hub-detect.d.ts +66 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-hub-detect.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-hub-ratio-usersize.d.ts +81 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-hub-ratio-usersize.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-hub-ratio.d.ts +109 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-hub-ratio.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-item-aspect.d.ts +121 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-item-aspect.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-item-node.d.ts +57 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-item-node.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring-bulge.d.ts +34 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring-bulge.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring-item.d.ts +39 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring-item.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring-nested-hub.d.ts +22 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring-nested-hub.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring-offset.d.ts +43 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring-offset.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring.d.ts +76 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-ring.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-sibtrans.d.ts +40 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle-sibtrans.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle.d.ts +69 -0
- package/dist/diagram/layout/smartart-layout-interpreter-cycle.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-dispatch.d.ts +18 -0
- package/dist/diagram/layout/smartart-layout-interpreter-dispatch.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-flow-direction.d.ts +29 -0
- package/dist/diagram/layout/smartart-layout-interpreter-flow-direction.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-flow.d.ts +49 -0
- package/dist/diagram/layout/smartart-layout-interpreter-flow.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-hierarchy-descendant.d.ts +60 -0
- package/dist/diagram/layout/smartart-layout-interpreter-hierarchy-descendant.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-hierarchy-fontfit.d.ts +45 -0
- package/dist/diagram/layout/smartart-layout-interpreter-hierarchy-fontfit.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-hub-detect.d.ts +26 -0
- package/dist/diagram/layout/smartart-layout-interpreter-hub-detect.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-hub.d.ts +62 -0
- package/dist/diagram/layout/smartart-layout-interpreter-hub.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-compound.d.ts +36 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-compound.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-orientation.d.ts +80 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-orientation.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-shared.d.ts +102 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-shared.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-stack-columns.d.ts +23 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-stack-columns.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-stack-fields.d.ts +77 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-stack-fields.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-stack-rect.d.ts +20 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-stack-rect.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-stack.d.ts +53 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-stack.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-transition.d.ts +50 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-role-transition.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-roles-recursive.d.ts +87 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-roles-recursive.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-roles-unwrap.d.ts +57 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-roles-unwrap.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-roles.d.ts +109 -0
- package/dist/diagram/layout/smartart-layout-interpreter-item-roles.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-content-size.d.ts +42 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-content-size.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-item-aspect.d.ts +94 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-item-aspect.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-main-axis.d.ts +17 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-main-axis.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-shared.d.ts +21 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-shared.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-table.d.ts +76 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear-table.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear.d.ts +20 -0
- package/dist/diagram/layout/smartart-layout-interpreter-linear.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-model.d.ts +77 -0
- package/dist/diagram/layout/smartart-layout-interpreter-model.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-named-rules.d.ts +93 -0
- package/dist/diagram/layout/smartart-layout-interpreter-named-rules.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-position-family.d.ts +58 -0
- package/dist/diagram/layout/smartart-layout-interpreter-position-family.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-preset-node.d.ts +61 -0
- package/dist/diagram/layout/smartart-layout-interpreter-preset-node.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-presof-choose.d.ts +29 -0
- package/dist/diagram/layout/smartart-layout-interpreter-presof-choose.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-pyramid-bands.d.ts +41 -0
- package/dist/diagram/layout/smartart-layout-interpreter-pyramid-bands.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-pyramid.d.ts +100 -0
- package/dist/diagram/layout/smartart-layout-interpreter-pyramid.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-render.d.ts +86 -0
- package/dist/diagram/layout/smartart-layout-interpreter-render.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-snake.d.ts +18 -0
- package/dist/diagram/layout/smartart-layout-interpreter-snake.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-tree-location.d.ts +28 -0
- package/dist/diagram/layout/smartart-layout-interpreter-tree-location.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-when-numeric.d.ts +15 -0
- package/dist/diagram/layout/smartart-layout-interpreter-when-numeric.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-when-var.d.ts +12 -0
- package/dist/diagram/layout/smartart-layout-interpreter-when-var.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter-when.d.ts +69 -0
- package/dist/diagram/layout/smartart-layout-interpreter-when.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-interpreter.d.ts +80 -0
- package/dist/diagram/layout/smartart-layout-interpreter.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-item-font-role.d.ts +80 -0
- package/dist/diagram/layout/smartart-layout-item-font-role.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-item-font-size.d.ts +129 -0
- package/dist/diagram/layout/smartart-layout-item-font-size.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-item-font-tier-fit.d.ts +70 -0
- package/dist/diagram/layout/smartart-layout-item-font-tier-fit.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-item-font-tier.d.ts +139 -0
- package/dist/diagram/layout/smartart-layout-item-font-tier.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-item-tx-anchor.d.ts +105 -0
- package/dist/diagram/layout/smartart-layout-item-tx-anchor.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-shape-polygon.d.ts +17 -0
- package/dist/diagram/layout/smartart-layout-shape-polygon.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-shape-preset.d.ts +127 -0
- package/dist/diagram/layout/smartart-layout-shape-preset.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-snake-grid.d.ts +43 -0
- package/dist/diagram/layout/smartart-layout-snake-grid.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-style-helpers.d.ts +84 -0
- package/dist/diagram/layout/smartart-layout-style-helpers.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-layout-types.d.ts +253 -0
- package/dist/diagram/layout/smartart-layout-types.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-line-pitch.d.ts +29 -0
- package/dist/diagram/layout/smartart-line-pitch.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-node-role-colors.d.ts +30 -0
- package/dist/diagram/layout/smartart-node-role-colors.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-node-tree-axis.d.ts +91 -0
- package/dist/diagram/layout/smartart-node-tree-axis.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-text-wrap-fit.d.ts +84 -0
- package/dist/diagram/layout/smartart-text-wrap-fit.d.ts.map +1 -0
- package/dist/diagram/layout/smartart-tree.d.ts +33 -0
- package/dist/diagram/layout/smartart-tree.d.ts.map +1 -0
- package/dist/diagram/model/constraint-rules.d.ts +31 -0
- package/dist/diagram/model/constraint-rules.d.ts.map +1 -0
- package/dist/diagram/model/data.d.ts +109 -0
- package/dist/diagram/model/data.d.ts.map +1 -0
- package/dist/diagram/model/index.d.ts +7 -0
- package/dist/diagram/model/index.d.ts.map +1 -0
- package/dist/diagram/model/layout-definition.d.ts +276 -0
- package/dist/diagram/model/layout-definition.d.ts.map +1 -0
- package/dist/diagram/model/layout-primitives.d.ts +82 -0
- package/dist/diagram/model/layout-primitives.d.ts.map +1 -0
- package/dist/diagram/model/node.d.ts +194 -0
- package/dist/diagram/model/node.d.ts.map +1 -0
- package/dist/diagram/model/style-definition.d.ts +131 -0
- package/dist/diagram/model/style-definition.d.ts.map +1 -0
- package/dist/docx/chart-paint.d.ts +14 -0
- package/dist/docx/chart-paint.d.ts.map +1 -0
- package/dist/docx/chart.d.ts +43 -0
- package/dist/docx/chart.d.ts.map +1 -0
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +1393 -326
- package/dist/docx/embedded.mjs +1393 -326
- package/dist/docx/index.cjs +4044 -683
- package/dist/docx/index.d.ts +2 -0
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +4040 -684
- package/dist/docx/inline-model.d.ts +3 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +2674 -88
- package/dist/docx/layout/index.mjs +2675 -89
- package/dist/docx/layout/input.d.ts +5 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +1616 -549
- package/dist/docx/load/index.mjs +1616 -549
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/ui/chart-spec.d.ts +10 -0
- package/dist/docx/ui/chart-spec.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +2602 -186
- package/dist/docx/ui/index.d.ts +1 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +2601 -188
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
- package/dist/docx/ui/run-adapter.d.ts.map +1 -1
- package/dist/drawingml/write-line.d.ts +7 -0
- package/dist/drawingml/write-line.d.ts.map +1 -0
- package/dist/geometry/ooxml-arc.d.ts +31 -0
- package/dist/geometry/ooxml-arc.d.ts.map +1 -0
- package/dist/geometry/preset-shape-evaluator.d.ts +73 -0
- package/dist/geometry/preset-shape-evaluator.d.ts.map +1 -0
- package/dist/index.cjs +34839 -18368
- package/dist/index.mjs +34835 -18368
- package/dist/opc/embedded-packages.d.ts +11 -0
- package/dist/opc/embedded-packages.d.ts.map +1 -0
- package/dist/opc/index.cjs +365 -70
- package/dist/opc/index.d.ts +1 -0
- package/dist/opc/index.d.ts.map +1 -1
- package/dist/opc/index.mjs +353 -71
- package/dist/opc/properties/app.d.ts +9 -3
- package/dist/opc/properties/app.d.ts.map +1 -1
- package/dist/opc/properties/core.d.ts +5 -1
- package/dist/opc/properties/core.d.ts.map +1 -1
- package/dist/opc/properties/custom.d.ts +19 -0
- package/dist/opc/properties/custom.d.ts.map +1 -1
- package/dist/opc/properties/index.d.ts +6 -3
- package/dist/opc/properties/index.d.ts.map +1 -1
- package/dist/opc/properties/patch.d.ts +38 -0
- package/dist/opc/properties/patch.d.ts.map +1 -0
- package/dist/opc/properties/title-groups.d.ts +30 -0
- package/dist/opc/properties/title-groups.d.ts.map +1 -0
- package/dist/opc/properties/types.d.ts +15 -0
- package/dist/opc/properties/types.d.ts.map +1 -1
- package/dist/pptx/automation/index.cjs +9049 -7167
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +6 -6
- package/dist/pptx/chunks/{index-BYkdcS8J.d.ts → index-EZJZ7USt.d.ts} +907 -962
- package/dist/pptx/chunks/index-EZJZ7USt.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BHqL5KXH.d.ts → index-JNv7AJx5.d.ts} +163 -210
- package/dist/pptx/chunks/index-JNv7AJx5.d.ts.map +1 -0
- package/dist/pptx/chunks/{smart-art-CO2jmJFf.d.ts → smart-art-Q2kZQtHh.d.ts} +436 -374
- package/dist/pptx/chunks/smart-art-Q2kZQtHh.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-DEJ7alZR.d.ts → text-operations-DtCxXrMh.d.ts} +55 -4
- package/dist/pptx/chunks/text-operations-DtCxXrMh.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +8728 -6846
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +5 -5
- package/dist/pptx/converter/index.cjs +7124 -7136
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +3 -3
- package/dist/pptx/editor/render/table-cell-edit.cjs +7 -3
- package/dist/pptx/editor/render/table-cell-edit.d.ts +16 -1
- package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
- package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +7 -7
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +2 -2
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/table-merge.cjs +5 -5
- package/dist/pptx/editor/render/table-merge.mjs +1 -1
- package/dist/pptx/index.cjs +9300 -7249
- package/dist/pptx/index.d.ts +5 -5
- package/dist/pptx/index.mjs +6 -6
- package/dist/pptx/smartart-layouts/index.cjs +135 -106
- package/dist/pptx/smartart-layouts/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.mjs +1 -1
- package/dist/teams/content.d.ts.map +1 -1
- package/dist/teams/index.cjs +3931 -2077
- package/dist/teams/index.d.ts +1 -0
- package/dist/teams/index.d.ts.map +1 -1
- package/dist/teams/index.mjs +3930 -2077
- package/dist/teams/server-file-storage.d.ts +11 -0
- package/dist/teams/server-file-storage.d.ts.map +1 -0
- package/dist/teams/store.d.ts +2 -0
- package/dist/teams/store.d.ts.map +1 -1
- package/dist/teams/stored-file.d.ts.map +1 -1
- package/dist/{xlsx/layout/font-family.d.ts → text/css-font-family.d.ts} +1 -1
- package/dist/text/css-font-family.d.ts.map +1 -0
- package/dist/text/font-metrics/font-advance-widths-aptos-display.generated.d.ts +10 -0
- package/dist/text/font-metrics/font-advance-widths-aptos-display.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/font-advance-widths-aptos.generated.d.ts +10 -0
- package/dist/text/font-metrics/font-advance-widths-aptos.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/font-advance-widths-arial.generated.d.ts +10 -0
- package/dist/text/font-metrics/font-advance-widths-arial.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/font-advance-widths-calibri-light.generated.d.ts +10 -0
- package/dist/text/font-metrics/font-advance-widths-calibri-light.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/font-advance-widths-calibri.generated.d.ts +10 -0
- package/dist/text/font-metrics/font-advance-widths-calibri.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/font-advance-widths-segoe-ui.generated.d.ts +10 -0
- package/dist/text/font-metrics/font-advance-widths-segoe-ui.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/font-advance-widths-times-new-roman.generated.d.ts +10 -0
- package/dist/text/font-metrics/font-advance-widths-times-new-roman.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/font-advance-widths.generated.d.ts +48 -0
- package/dist/text/font-metrics/font-advance-widths.generated.d.ts.map +1 -0
- package/dist/text/font-metrics/font-kerning.d.ts +19 -0
- package/dist/text/font-metrics/font-kerning.d.ts.map +1 -0
- package/dist/visio/index.cjs +645 -119
- package/dist/visio/index.mjs +645 -119
- package/dist/visio/theme-color.d.ts +13 -3
- package/dist/visio/theme-color.d.ts.map +1 -1
- package/dist/visio/theme-resolve.d.ts +2 -1
- package/dist/visio/theme-resolve.d.ts.map +1 -1
- package/dist/visio/theme.d.ts +5 -2
- package/dist/visio/theme.d.ts.map +1 -1
- package/dist/xlsx/collab/adapter.d.ts +18 -0
- package/dist/xlsx/collab/adapter.d.ts.map +1 -0
- package/dist/xlsx/collab/apply.d.ts +8 -0
- package/dist/xlsx/collab/apply.d.ts.map +1 -0
- package/dist/xlsx/collab/bind.d.ts +34 -0
- package/dist/xlsx/collab/bind.d.ts.map +1 -0
- package/dist/xlsx/collab/codec.d.ts +35 -0
- package/dist/xlsx/collab/codec.d.ts.map +1 -0
- package/dist/xlsx/collab/dirty.d.ts +23 -0
- package/dist/xlsx/collab/dirty.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +1245 -0
- package/dist/xlsx/collab/index.d.ts +10 -0
- package/dist/xlsx/collab/index.d.ts.map +1 -0
- package/dist/xlsx/collab/index.mjs +1207 -0
- package/dist/xlsx/collab/lines.d.ts +22 -0
- package/dist/xlsx/collab/lines.d.ts.map +1 -0
- package/dist/xlsx/collab/names.d.ts +16 -0
- package/dist/xlsx/collab/names.d.ts.map +1 -0
- package/dist/xlsx/collab/presence.d.ts +31 -0
- package/dist/xlsx/collab/presence.d.ts.map +1 -0
- package/dist/xlsx/collab/schema.d.ts +30 -0
- package/dist/xlsx/collab/schema.d.ts.map +1 -0
- package/dist/xlsx/collab/sheets.d.ts +34 -0
- package/dist/xlsx/collab/sheets.d.ts.map +1 -0
- package/dist/xlsx/collab/styles.d.ts +26 -0
- package/dist/xlsx/collab/styles.d.ts.map +1 -0
- package/dist/xlsx/collab/write.d.ts +14 -0
- package/dist/xlsx/collab/write.d.ts.map +1 -0
- package/dist/xlsx/edit/chart-colors.d.ts +2 -2
- package/dist/xlsx/edit/chart-colors.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-element-fill.d.ts +3 -3
- package/dist/xlsx/edit/chart-element-fill.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-series-fill.d.ts +2 -2
- package/dist/xlsx/edit/chart-series-fill.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-series-gradient.d.ts +3 -3
- package/dist/xlsx/edit/chart-series-gradient.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-series-target.d.ts +15 -0
- package/dist/xlsx/edit/chart-series-target.d.ts.map +1 -0
- package/dist/xlsx/edit/chart-series-transparency.d.ts +2 -2
- package/dist/xlsx/edit/chart-series-transparency.d.ts.map +1 -1
- package/dist/xlsx/edit/context.d.ts +3 -1
- package/dist/xlsx/edit/context.d.ts.map +1 -1
- package/dist/xlsx/edit/external.d.ts +28 -0
- package/dist/xlsx/edit/external.d.ts.map +1 -0
- package/dist/xlsx/edit/history.d.ts +18 -0
- package/dist/xlsx/edit/history.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +1 -0
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/session-calc.d.ts +32 -3
- package/dist/xlsx/edit/session-calc.d.ts.map +1 -1
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/sheets.d.ts.map +1 -1
- package/dist/xlsx/edit/types.d.ts +37 -4
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/formula/engine-core.d.ts.map +1 -1
- package/dist/xlsx/formula/engine-host.d.ts +6 -2
- package/dist/xlsx/formula/engine-host.d.ts.map +1 -1
- package/dist/xlsx/formula/engine-prepare.d.ts +33 -0
- package/dist/xlsx/formula/engine-prepare.d.ts.map +1 -0
- package/dist/xlsx/formula/engine-structure.d.ts +40 -0
- package/dist/xlsx/formula/engine-structure.d.ts.map +1 -0
- package/dist/xlsx/formula/engine-types.d.ts +26 -0
- package/dist/xlsx/formula/engine-types.d.ts.map +1 -1
- package/dist/xlsx/formula/engine.d.ts.map +1 -1
- package/dist/xlsx/formula/formula-shape.d.ts +28 -0
- package/dist/xlsx/formula/formula-shape.d.ts.map +1 -0
- package/dist/xlsx/formula/graph-index.d.ts +3 -1
- package/dist/xlsx/formula/graph-index.d.ts.map +1 -1
- package/dist/xlsx/formula/graph.d.ts +5 -0
- package/dist/xlsx/formula/graph.d.ts.map +1 -1
- package/dist/xlsx/formula/lexemes.d.ts +6 -0
- package/dist/xlsx/formula/lexemes.d.ts.map +1 -1
- package/dist/xlsx/formula/parse-cache.d.ts +9 -0
- package/dist/xlsx/formula/parse-cache.d.ts.map +1 -0
- package/dist/xlsx/formula/parser.d.ts +3 -0
- package/dist/xlsx/formula/parser.d.ts.map +1 -1
- package/dist/xlsx/formula/ref-text.d.ts +14 -0
- package/dist/xlsx/formula/ref-text.d.ts.map +1 -0
- package/dist/xlsx/formula/references.d.ts.map +1 -1
- package/dist/xlsx/formula/shift-formula.d.ts +19 -0
- package/dist/xlsx/formula/shift-formula.d.ts.map +1 -0
- package/dist/xlsx/formula/shift-graph.d.ts +42 -0
- package/dist/xlsx/formula/shift-graph.d.ts.map +1 -0
- package/dist/xlsx/formula/tokenizer.d.ts.map +1 -1
- package/dist/xlsx/formula/transform.d.ts +2 -23
- package/dist/xlsx/formula/transform.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +5620 -2680
- package/dist/xlsx/index.mjs +5609 -2681
- package/dist/xlsx/layout/cell-view.d.ts.map +1 -1
- package/dist/xlsx/layout/chart-view.d.ts +3 -54
- package/dist/xlsx/layout/chart-view.d.ts.map +1 -1
- package/dist/xlsx/layout/colors.d.ts +1 -4
- package/dist/xlsx/layout/colors.d.ts.map +1 -1
- package/dist/xlsx/layout/index.d.ts +8 -5
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/remote-selections.d.ts +40 -0
- package/dist/xlsx/layout/remote-selections.d.ts.map +1 -0
- package/dist/xlsx/layout/sheet-queries.d.ts +7 -0
- package/dist/xlsx/layout/sheet-queries.d.ts.map +1 -1
- package/dist/xlsx/layout/sparkline-data.d.ts +19 -0
- package/dist/xlsx/layout/sparkline-data.d.ts.map +1 -0
- package/dist/xlsx/layout/sparkline-view.d.ts +52 -0
- package/dist/xlsx/layout/sparkline-view.d.ts.map +1 -0
- package/dist/xlsx/layout/tint.d.ts +3 -12
- package/dist/xlsx/layout/tint.d.ts.map +1 -1
- package/dist/xlsx/layout/types.d.ts +3 -0
- package/dist/xlsx/layout/types.d.ts.map +1 -1
- package/dist/xlsx/load/index.cjs +3124 -1312
- package/dist/xlsx/load/index.mjs +3124 -1312
- package/dist/xlsx/model-sparklines.d.ts +52 -0
- package/dist/xlsx/model-sparklines.d.ts.map +1 -0
- package/dist/xlsx/model.d.ts +10 -47
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/chart.d.ts +1 -4
- package/dist/xlsx/read/chart.d.ts.map +1 -1
- package/dist/xlsx/read/index.d.ts +1 -0
- package/dist/xlsx/read/index.d.ts.map +1 -1
- package/dist/xlsx/read/sheet-data-source.d.ts +10 -0
- package/dist/xlsx/read/sheet-data-source.d.ts.map +1 -0
- package/dist/xlsx/read/sparklines.d.ts +12 -0
- package/dist/xlsx/read/sparklines.d.ts.map +1 -0
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
- package/dist/xlsx/ui/context.d.ts +15 -1
- package/dist/xlsx/ui/context.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/cell-items.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/cell-paint.d.ts +1 -1
- package/dist/xlsx/ui/grid/cell-paint.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/view-cache.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +2165 -866
- package/dist/xlsx/ui/index.mjs +2165 -867
- package/dist/xlsx/ui/locales/de/collab.d.ts +2 -0
- package/dist/xlsx/ui/locales/de/collab.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/de/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/collab.d.ts +2 -0
- package/dist/xlsx/ui/locales/en/collab.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/en/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/collab.d.ts +2 -0
- package/dist/xlsx/ui/locales/es/collab.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/es/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/collab.d.ts +2 -0
- package/dist/xlsx/ui/locales/fr/collab.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/fr/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/collab.d.ts +2 -0
- package/dist/xlsx/ui/locales/zh-CN/collab.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/zh-CN/index.d.ts.map +1 -1
- package/dist/xlsx/ui/ribbon/icon-paths.d.ts.map +1 -1
- package/dist/xlsx/write/chart-colors.d.ts +3 -0
- package/dist/xlsx/write/chart-colors.d.ts.map +1 -1
- package/dist/xlsx/write/chart-space.d.ts +5 -0
- package/dist/xlsx/write/chart-space.d.ts.map +1 -0
- package/dist/xlsx/write/chart-title.d.ts +4 -1
- package/dist/xlsx/write/chart-title.d.ts.map +1 -1
- package/dist/xlsx/write/chart.d.ts +4 -1
- package/dist/xlsx/write/chart.d.ts.map +1 -1
- package/dist/xml/index.cjs +162 -0
- package/dist/xml/index.d.ts +1 -0
- package/dist/xml/index.d.ts.map +1 -1
- package/dist/xml/index.mjs +161 -1
- package/dist/xml/lite.d.ts +30 -0
- package/dist/xml/lite.d.ts.map +1 -0
- package/package.json +6 -1
- package/dist/pptx/chunks/index-BHqL5KXH.d.ts.map +0 -1
- package/dist/pptx/chunks/index-BYkdcS8J.d.ts.map +0 -1
- package/dist/pptx/chunks/smart-art-CO2jmJFf.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-DEJ7alZR.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-appearance.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-colors.d.ts +0 -9
- package/dist/xlsx/layout/chart-colors.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-scale.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-spacing.d.ts +0 -6
- package/dist/xlsx/layout/chart-spacing.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg-appearance.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg-bars.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg-cartesian.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg-legend.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg-radial.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg-text-metrics.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg-title-text.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg-util.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-svg.d.ts.map +0 -1
- package/dist/xlsx/layout/chart-title-text.d.ts +0 -14
- package/dist/xlsx/layout/chart-title-text.d.ts.map +0 -1
- package/dist/xlsx/layout/font-family.d.ts.map +0 -1
- /package/dist/{xlsx/layout → chart/render}/chart-scale.d.ts +0 -0
- /package/dist/{xlsx/layout → chart/render}/chart-svg-bars.d.ts +0 -0
- /package/dist/{xlsx/layout → chart/render}/chart-svg-cartesian.d.ts +0 -0
- /package/dist/{xlsx/layout → chart/render}/chart-svg-legend.d.ts +0 -0
- /package/dist/{xlsx/layout → chart/render}/chart-svg-radial.d.ts +0 -0
- /package/dist/{xlsx/layout → chart/render}/chart-svg-text-metrics.d.ts +0 -0
- /package/dist/{xlsx/layout → chart/render}/chart-svg-title-text.d.ts +0 -0
- /package/dist/{xlsx/layout → chart/render}/chart-svg-util.d.ts +0 -0
- /package/dist/{xlsx/layout → chart/render}/chart-svg.d.ts +0 -0
|
@@ -1,7 +1,636 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as PptxSmartArtNode, At as DiagramNumericRule, Bt as CustomGeometryPoint, D as PptxSmartArtLayoutNode, E as PptxSmartArtLayoutDefinition, F as PptxSmartArtQuickStyleLabel, Ft as DiagramStyleIntensity, Jt as TextSegment, Mt as DiagramConnection, N as PptxSmartArtPresLayoutVars, P as PptxSmartArtQuickStyle, Tt as DiagramConstraint, U as SmartArtNodeCustomLayout, Vt as CustomGeometryRawData, W as SmartArtRoleColorList, X as DiagramNode, Y as DiagramPresLayoutVars, Yt as TextStyle, a as SmartArtLayoutType, bn as XmlObject, d as PptxSmartArtColorStyleLabel, gn as PptxShapeLocks, hn as PptxDrawingGuide, j as PptxSmartArtNodeStyle, ln as Pptx3DScene, mt as DiagramLayoutNode, n as PptxSmartArtData, o as SmartArtStyle, pn as ConnectorArrowType, pt as DiagramLayoutDefinition, qt as TextOrientationMatrix, r as PptxSmartArtDrawingShape, t as PptxSmartArtConnection, u as PptxSmartArtColorListMetadata, vn as StrokeDashType, y as PptxSmartArtDefinitionMetadata, zt as CustomGeometryPath } from "./smart-art-Q2kZQtHh.js";
|
|
2
2
|
import { n as PptxThemeColorSchemeName, t as PptxThemeColorRef } from "./color-ref-DT599vEx.js";
|
|
3
|
-
import { $ as PptxThemeOption, $
|
|
4
|
-
import { $i as TableCellInput, $n as ResolveChartColor, Ba as ChartGradientInput, Bi as ChartOptions, Br as IPptxAnimationWriteService, Bt as PptxBuilderFactoryContext, Er as EncryptionOptions, Ft as IPptxXmlFactoryProvider, Gi as GroupOptions, Hi as ConnectorOptions, It as ITextShapeXmlFactory, Ki as ImageOptions, Mt as IConnectorXmlFactory, Nt as IMediaGraphicFrameXmlFactory, Pt as IPictureXmlFactory, Qi as StrokeInput, Ra as ChartAreaFormatInput, Rt as MediaGraphicFrameXmlFactoryInit, Vt as TextShapeXmlFactoryInit, Wi as FillInput, Xi as ShadowInput, Yi as PresentationThemeInput, Zi as ShapeOptions, aa as TextStyleInput, da as PptxChartAxisType, ea as TableInput, ia as TextSegmentInput, jt as ConnectorXmlFactoryInit, qi as MediaOptions, qr as OoxmlPresetMapping, ra as TextOptions, sa as ChartAxisEdit, ta as TableOptions, za as ChartGroupOptionsInput, zi as ChartInput, zt as PictureXmlFactoryInit } from "./index-
|
|
3
|
+
import { $ as PptxThemeOption, $t as PptxCustomProperty, Br as PptxChartData, Bt as Model3DSceneData, C as PptxSlide, Cn as PptxAnimationPreset, Cr as PptxTableCellStyle, Ct as PptxElement, D as PptxSmartTagsReference, Di as PptxChartUserShape, Dn as PptxAnimationTimelineAnchor, Dr as CreateTableStyleOptions, En as PptxAnimationTarget, Et as PptxElementWithText, Ft as TextPptxElement, Gr as PptxChartDataPoint, Hr as PptxChartDataLabelOptions, In as PptxNativeAnimation, J as PptxNotesMaster, Ji as PptxCropShape, Jt as PptxAppProperties, Kr as PptxChartDataTable, Lt as ZoomPptxElement, Mn as PptxElementAnimation, Mr as PptxBubbleChartOptions, Nn as PptxGraphicBuild, Nr as PptxChart3DSurface, Oi as PptxChartUserShapeGroupChild, Ot as PptxImageLikeElement, P as PptxViewProperties, Pr as PptxChartAxisFormatting, Pt as TablePptxElement, Q as PptxTextStyleLevels, Qt as PptxCoreProperties, S as PptxSection, Ti as PptxEmbeddedWorkbookData, Tr as PptxTableData, Tt as PptxElementWithShapeStyle, Vr as PptxChartDataLabel, W as PptxHandoutMaster, Xt as PptxCommentAuthor, Z as PptxSlideMaster, Zr as PptxChartErrBars, _ as PptxLayoutOption, _i as PptxChartTrendline, _r as ParsedTableStyleMap, _t as MediaPptxElement, ai as PptxChartLineStyle, an as ElementAction, at as PptxThemeFontScheme, b as PptxPhotoAlbum, bi as PptxChartType, bt as OlePptxElement, c as PptxCustomShow, d as PptxData, dn as PptxAudioCdPosition, dt as ConnectorPptxElement, ea as ShapeStyle, ei as PptxChartGradientFill, en as PptxModernCommentAuthor, et as PptxTheme, f as PptxEmbeddedFont, fn as PptxMediaReferenceKind, fr as ParsedTableStyleEntry, ft as ContentPartInkStroke, g as PptxKinsoku, gn as PptxAfterAnimationAction, gt as InkPptxElement, h as PptxHeaderFooter, ht as ImagePptxElement, jt as ShapePptxElement, l as PptxCustomXmlPart, mi as PptxChartShapeProps, mn as AnimationCondition, mt as GroupPptxElement, ni as PptxChartLayouts, nn as PptxTagCollection, oi as PptxChartManualLayout, s as PptxActiveXControl, si as PptxChartMarker, sn as PptxAction, tt as PptxThemeColorScheme, u as PptxCustomerData, ut as ChartPptxElement, vn as PptxAnimationEffectFilter, wr as PptxTableCellTextRun, x as PptxPresentationProperties, xi as PptxChartUpDownBars, y as PptxModifyVerifier, yt as OleObjectType } from "./text-operations-DtCxXrMh.js";
|
|
4
|
+
import { $i as TableCellInput, $n as ResolveChartColor, Ba as ChartGradientInput, Bi as ChartOptions, Br as IPptxAnimationWriteService, Bt as PptxBuilderFactoryContext, Er as EncryptionOptions, Ft as IPptxXmlFactoryProvider, Gi as GroupOptions, Hi as ConnectorOptions, It as ITextShapeXmlFactory, Ki as ImageOptions, Mt as IConnectorXmlFactory, Nt as IMediaGraphicFrameXmlFactory, Pt as IPictureXmlFactory, Qi as StrokeInput, Ra as ChartAreaFormatInput, Rt as MediaGraphicFrameXmlFactoryInit, Vt as TextShapeXmlFactoryInit, Wi as FillInput, Xi as ShadowInput, Yi as PresentationThemeInput, Zi as ShapeOptions, aa as TextStyleInput, da as PptxChartAxisType, ea as TableInput, ia as TextSegmentInput, jt as ConnectorXmlFactoryInit, qi as MediaOptions, qr as OoxmlPresetMapping, ra as TextOptions, sa as ChartAxisEdit, ta as TableOptions, za as ChartGroupOptionsInput, zi as ChartInput, zt as PictureXmlFactoryInit } from "./index-JNv7AJx5.js";
|
|
5
|
+
//#region diagram/layout/smartart-layout-types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* SmartArt DiagramML interpreter - pure geometry types.
|
|
8
|
+
*
|
|
9
|
+
* Describes the styled view-model geometry produced by the interpreter
|
|
10
|
+
* (`smartart-layout-interpreter.ts` and its arrangers). No framework code, no
|
|
11
|
+
* DOM. Consumed by:
|
|
12
|
+
* - the SVG-fallback preview path (re-exported from `pptx-viewer-shared` for
|
|
13
|
+
* the React/Vue/Angular/Svelte/Vanilla bindings), and
|
|
14
|
+
* - the save/decompose pipeline in this package (`smartart-decompose.ts`,
|
|
15
|
+
* `smartart-interpreter-drawing-bridge.ts`), which converts this geometry
|
|
16
|
+
* into `PptxElement[]` / `PptxSmartArtDrawingShape[]` for the fabricated
|
|
17
|
+
* cached diagram drawing.
|
|
18
|
+
*
|
|
19
|
+
* Moved here from `pptx-viewer-shared` so the same interpreter can be shared
|
|
20
|
+
* by the save pipeline: `pptx-viewer-core` cannot import `pptx-viewer-shared`
|
|
21
|
+
* (shared depends on core, not the other way around), so the single
|
|
22
|
+
* interpreter now lives in core and shared re-exports it.
|
|
23
|
+
*/
|
|
24
|
+
/** Axis-aligned rectangle. */
|
|
25
|
+
interface LayoutRect {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Per-node label styling resolved from `DiagramNode.style` (the overrides
|
|
33
|
+
* the inspector's node style bar writes).
|
|
34
|
+
*
|
|
35
|
+
* Every field is optional and every field has a documented binding default, so
|
|
36
|
+
* a renderer that ignores them keeps its historic output:
|
|
37
|
+
* `fontColor` -> `white`, `fontWeight` / `fontStyle` -> unset.
|
|
38
|
+
*/
|
|
39
|
+
interface RenderedNodeTextStyle {
|
|
40
|
+
/** Label colour. Default `white`. */
|
|
41
|
+
fontColor?: string | undefined;
|
|
42
|
+
/** SVG `font-weight` (`700` when the node is bold). Default unset. */
|
|
43
|
+
fontWeight?: number | undefined;
|
|
44
|
+
/** SVG `font-style`. Default unset. */
|
|
45
|
+
fontStyle?: 'italic' | undefined;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Fields shared by every rendered node kind, carrying the source data-model
|
|
49
|
+
* node identity and a final-transform rotation.
|
|
50
|
+
*
|
|
51
|
+
* `nodeId` lets a consumer (the manual `cust*`-override pass, or the
|
|
52
|
+
* save-pipeline bridge that needs the node's full untruncated text) join a
|
|
53
|
+
* rendered shape back to its `DiagramNode`. `rotation` is additive
|
|
54
|
+
* degrees applied by a `dgm:pt/dgm:prSet/@custAng` manual override; it is
|
|
55
|
+
* `undefined` (no rotation) unless such an override is present.
|
|
56
|
+
*/
|
|
57
|
+
interface RenderedNodeIdentity {
|
|
58
|
+
/** The `DiagramNode.id` this shape represents. */
|
|
59
|
+
nodeId?: string | undefined;
|
|
60
|
+
/** Additional rotation in degrees from a `custAng` manual override. */
|
|
61
|
+
rotation?: number | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Explicit DrawingML preset geometry name (`rect`, `roundRect`, ...) for
|
|
64
|
+
* the save-pipeline bridge (`smartart-interpreter-drawing-bridge.ts`) to
|
|
65
|
+
* use verbatim instead of its own kind-based default. Set by
|
|
66
|
+
* `smartart-layout-interpreter-item-roles.ts` when a per-item role
|
|
67
|
+
* template (e.g. a list layout's `childText`) declares its own `dgm:shape`
|
|
68
|
+
* distinct from the arranger's hardcoded family shape. `undefined` keeps
|
|
69
|
+
* the bridge's pre-existing behaviour.
|
|
70
|
+
*/
|
|
71
|
+
presetOverride?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Additional `DiagramNode.id`s whose text folds into THIS shape as
|
|
74
|
+
* extra paragraphs (see `projectFoldedNodeText` in the drawing bridge),
|
|
75
|
+
* pre-resolved by `smartart-layout-interpreter-item-roles.ts` for a
|
|
76
|
+
* `des`/`ch`-axis role that combines more than one descendant's text into
|
|
77
|
+
* one box. `undefined` keeps the bridge's own descendant-folding
|
|
78
|
+
* inference (nearest rendered ancestor absorbs any node without a box).
|
|
79
|
+
*/
|
|
80
|
+
foldedNodeIds?: string[] | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Pre-resolved, verbatim display text for a role bound to a TRANSITION
|
|
83
|
+
* point (`dgm:presOf ptType="sibTrans"|"parTrans"`) rather than a real
|
|
84
|
+
* data node - e.g. a numbered-badge layout's ordinal "1"/"2"/"3" text,
|
|
85
|
+
* which PowerPoint stores on the `sibTrans` point of the item's own
|
|
86
|
+
* `parOf` edge (`DiagramConnection.label`), not on any
|
|
87
|
+
* `DiagramNode` `nodeId` can resolve. Set by
|
|
88
|
+
* `smartart-layout-interpreter-item-roles.ts`. When present, the
|
|
89
|
+
* save-pipeline bridge (`smartart-interpreter-drawing-bridge.ts`) uses it
|
|
90
|
+
* verbatim instead of resolving `nodeId` against the node array (which
|
|
91
|
+
* would find nothing and render blank text).
|
|
92
|
+
*/
|
|
93
|
+
literalText?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* The `dgm:layoutNode/@name` of the per-item text role this entry was
|
|
96
|
+
* split from (e.g. a pyramid's `level` vs `acctTx`), set by
|
|
97
|
+
* `smartart-layout-interpreter-item-role-shared.ts`'s `stackRoleContent`
|
|
98
|
+
* for EVERY split entry (rect or polygon), not only ones an arranger
|
|
99
|
+
* needs to distinguish. A `polygon` split (`arrangePyramid`'s
|
|
100
|
+
* parent+child pyramid accent) starts as an unchanged copy of the
|
|
101
|
+
* original geometry per role - this is the one field an arranger-specific
|
|
102
|
+
* geometry pass can key off to reposition/resize each entry by name,
|
|
103
|
+
* since `stackRoleContent` itself has no generic way to split a
|
|
104
|
+
* polygon's own `points`. `undefined` on an unsplit node.
|
|
105
|
+
*/
|
|
106
|
+
itemRoleName?: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* The font size (px) a FOLDED descendant paragraph (`collectFoldedDescendants`
|
|
109
|
+
* in the drawing bridge) should render at, when it differs from this
|
|
110
|
+
* shape's own `fontSize` - see `smartart-layout-item-font-tier.ts`'s
|
|
111
|
+
* module doc comment for why a folded descendant renders SMALLER than its
|
|
112
|
+
* ancestor's own top-level text. `undefined` keeps the bridge's
|
|
113
|
+
* pre-existing behaviour of reusing `fontSize` for every folded paragraph.
|
|
114
|
+
*/
|
|
115
|
+
descendantFontSize?: number | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* The presentation style label (`presStyleLbl`) of the layout node this
|
|
118
|
+
* shape was laid out from (`node1`, `revTx`, `sibTrans2D1`, ...), when the
|
|
119
|
+
* engine knows it. A regenerated shape takes its quick-style 3D from this
|
|
120
|
+
* label (`smartart-quick-style-3d.ts`), so a decorative or transition shape
|
|
121
|
+
* that presents no node is not styled as `node1`.
|
|
122
|
+
*/
|
|
123
|
+
styleLabel?: string | undefined;
|
|
124
|
+
/** Preset adjustments (`a:avLst`) to cache, e.g. a connector arrow's `adj1`/`adj2`. */
|
|
125
|
+
shapeAdjustments?: Record<string, number> | undefined;
|
|
126
|
+
}
|
|
127
|
+
/** A node rendered as an SVG rect (rounded or flat). */
|
|
128
|
+
interface RenderedRectNode extends RenderedNodeTextStyle, RenderedNodeIdentity {
|
|
129
|
+
kind: 'rect';
|
|
130
|
+
key: string;
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
width: number;
|
|
134
|
+
height: number;
|
|
135
|
+
rx: number;
|
|
136
|
+
fill: string;
|
|
137
|
+
stroke: string;
|
|
138
|
+
strokeWidth: number;
|
|
139
|
+
opacity: number;
|
|
140
|
+
text: string;
|
|
141
|
+
fontSize: number;
|
|
142
|
+
/** Centre x for text anchor. */
|
|
143
|
+
textX: number;
|
|
144
|
+
/** Centre y for text anchor. */
|
|
145
|
+
textY: number;
|
|
146
|
+
}
|
|
147
|
+
/** A node rendered as an SVG circle. */
|
|
148
|
+
interface RenderedCircleNode extends RenderedNodeTextStyle, RenderedNodeIdentity {
|
|
149
|
+
kind: 'circle';
|
|
150
|
+
key: string;
|
|
151
|
+
cx: number;
|
|
152
|
+
cy: number;
|
|
153
|
+
r: number;
|
|
154
|
+
/**
|
|
155
|
+
* Optional independent horizontal/vertical radii for a genuinely elliptical
|
|
156
|
+
* node (e.g. the `cycle` arranger's "Basic Cycle" ring, whose real
|
|
157
|
+
* PowerPoint output is a non-circular ellipse - see
|
|
158
|
+
* `smartart-layout-interpreter-cycle.ts`). Additive: every existing
|
|
159
|
+
* producer that never sets these keeps rendering as the plain circle `r`
|
|
160
|
+
* always described; a consumer that does not know about `rx`/`ry` still
|
|
161
|
+
* gets a sensible circle (`r`) rather than an error. Only
|
|
162
|
+
* `smartart-interpreter-drawing-bridge.ts`'s geometry conversion currently
|
|
163
|
+
* reads them.
|
|
164
|
+
*/
|
|
165
|
+
rx?: number | undefined;
|
|
166
|
+
ry?: number | undefined;
|
|
167
|
+
fill: string;
|
|
168
|
+
stroke: string;
|
|
169
|
+
strokeWidth: number;
|
|
170
|
+
opacity: number;
|
|
171
|
+
text: string;
|
|
172
|
+
fontSize: number;
|
|
173
|
+
/**
|
|
174
|
+
* Label anchor x. Defaults to `cx`; set when the label sits away from the
|
|
175
|
+
* circle (target leader labels, timeline captions).
|
|
176
|
+
*/
|
|
177
|
+
textX?: number | undefined;
|
|
178
|
+
/** Label anchor y. Defaults to `cy`. */
|
|
179
|
+
textY?: number | undefined;
|
|
180
|
+
/** SVG `text-anchor` for the label. Defaults to `middle`. */
|
|
181
|
+
textAnchor?: 'start' | 'middle' | 'end' | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* How the label block sits relative to `textY`: `middle` centres it (the
|
|
184
|
+
* default), `bottom` puts the last baseline on `textY` (label above the
|
|
185
|
+
* node), `top` puts the first line's top on `textY` (label below).
|
|
186
|
+
*/
|
|
187
|
+
textBaseline?: 'top' | 'middle' | 'bottom' | undefined;
|
|
188
|
+
}
|
|
189
|
+
/** A node rendered as an SVG polygon (chevron, trapezoid, etc.). */
|
|
190
|
+
interface RenderedPolygonNode extends RenderedNodeTextStyle, RenderedNodeIdentity {
|
|
191
|
+
kind: 'polygon';
|
|
192
|
+
key: string;
|
|
193
|
+
points: string;
|
|
194
|
+
fill: string;
|
|
195
|
+
stroke: string;
|
|
196
|
+
strokeWidth: number;
|
|
197
|
+
opacity: number;
|
|
198
|
+
text: string;
|
|
199
|
+
fontSize: number;
|
|
200
|
+
/** Centre x for text anchor. */
|
|
201
|
+
textX: number;
|
|
202
|
+
/** Centre y for text anchor. */
|
|
203
|
+
textY: number;
|
|
204
|
+
}
|
|
205
|
+
type RenderedNode = RenderedRectNode | RenderedCircleNode | RenderedPolygonNode;
|
|
206
|
+
/**
|
|
207
|
+
* A connector line between two rendered nodes.
|
|
208
|
+
*
|
|
209
|
+
* The paint fields are optional and carry the values every binding already
|
|
210
|
+
* hardcodes, so a renderer that ignores them is unchanged:
|
|
211
|
+
* `stroke` -> `#94a3b8`, `strokeWidth` -> `1.5`, `opacity` -> `0.5`,
|
|
212
|
+
* `dash` -> solid.
|
|
213
|
+
*/
|
|
214
|
+
interface RenderedConnector {
|
|
215
|
+
key: string;
|
|
216
|
+
/** SVG path data string. */
|
|
217
|
+
d: string;
|
|
218
|
+
/** Stroke colour. Default `#94a3b8`. */
|
|
219
|
+
stroke?: string | undefined;
|
|
220
|
+
/** Stroke width. Default `1.5`. */
|
|
221
|
+
strokeWidth?: number | undefined;
|
|
222
|
+
/** Stroke opacity. Default `0.5`. */
|
|
223
|
+
opacity?: number | undefined;
|
|
224
|
+
/** SVG `stroke-dasharray`. Default solid. */
|
|
225
|
+
dash?: string | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* Connector label text, from a `dgm:pt/@type="parTrans"` transition
|
|
228
|
+
* point's `dgm:t` (`DiagramConnection.label`). PowerPoint's own
|
|
229
|
+
* diagram editor lets a user type text directly onto an org-chart
|
|
230
|
+
* relationship connector. `undefined` when the connector carries no text
|
|
231
|
+
* (the overwhelming majority).
|
|
232
|
+
*/
|
|
233
|
+
text?: string | undefined;
|
|
234
|
+
}
|
|
235
|
+
/** The layout family applied to a SmartArt element. */
|
|
236
|
+
type LayoutFamily = 'list' | 'process' | 'cycle' | 'hierarchy' | 'matrix' | 'radial' | 'pyramid' | 'venn' | 'funnel' | 'target' | 'gear' | 'timeline' | 'bending';
|
|
237
|
+
/** Complete layout output for a single SmartArt family. */
|
|
238
|
+
interface SmartArtLayoutResult {
|
|
239
|
+
/** Rendered geometry nodes. */
|
|
240
|
+
nodes: RenderedNode[];
|
|
241
|
+
/** Connector lines (may be empty). */
|
|
242
|
+
connectors: RenderedConnector[];
|
|
243
|
+
/** SVG filter string for drop shadows, e.g. `"drop-shadow(…)"`. */
|
|
244
|
+
shadowFilter: string | undefined;
|
|
245
|
+
/**
|
|
246
|
+
* Suggested viewBox string `"0 0 W H"`.
|
|
247
|
+
* Callers should use the element's actual pixel dimensions.
|
|
248
|
+
*/
|
|
249
|
+
viewBox: string;
|
|
250
|
+
/** The layout family that was applied. */
|
|
251
|
+
family: LayoutFamily;
|
|
252
|
+
}
|
|
253
|
+
/** Bounding box passed to every layout function. */
|
|
254
|
+
interface BoundingBox {
|
|
255
|
+
width: number;
|
|
256
|
+
height: number;
|
|
257
|
+
}
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region diagram/layout/smartart-layout-interpreter-when.d.ts
|
|
260
|
+
/**
|
|
261
|
+
* Extra evaluation context beyond the node count, letting {@link evaluateWhen}
|
|
262
|
+
* decide the `func` values ECMA-376 defines against a specific point's
|
|
263
|
+
* position/depth or the diagram's own `presLayoutVars`, when a caller has that
|
|
264
|
+
* context available. Every field is optional: `discoverArrangement`
|
|
265
|
+
* (`smartart-layout-interpreter-model.ts`) supplies the declaring layout
|
|
266
|
+
* node's own tree location (position among siblings, sibling count, depth,
|
|
267
|
+
* the tree's max depth) for every `choose` it walks, so `pos`/`revPos`/
|
|
268
|
+
* `posEven`/`posOdd`/`depth`/`maxDepth` are decidable in production, not just
|
|
269
|
+
* in unit tests. A caller with no tree location to offer (e.g. a bare
|
|
270
|
+
* `chooseAlgType` call from a test) simply omits these fields and those
|
|
271
|
+
* functions stay undecidable, exactly as before - no regression.
|
|
272
|
+
*/
|
|
273
|
+
interface WhenContext {
|
|
274
|
+
/** 1-based ordinal position of the point being evaluated, for `pos`/`revPos`/`posEven`/`posOdd`. */
|
|
275
|
+
position?: number | undefined;
|
|
276
|
+
/** Sibling count the position is measured against, for `revPos`. */
|
|
277
|
+
total?: number | undefined;
|
|
278
|
+
/** Depth of the point/node being evaluated, for `func="depth"`. */
|
|
279
|
+
depth?: number | undefined;
|
|
280
|
+
/** Maximum depth of the tree, for `func="maxDepth"`. */
|
|
281
|
+
maxDepth?: number | undefined;
|
|
282
|
+
/** Diagram presentation layout variables, for `func="var"` (`@arg` names the variable). */
|
|
283
|
+
presLayoutVars?: DiagramPresLayoutVars | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* The diagram's own flat data-model node array (`parentId`-linked), for a
|
|
286
|
+
* `func="cnt"` `dgm:if` whose `@axis` is declared at all - a single bare
|
|
287
|
+
* hop (`axis="ch"`, "the context point's own children"), a sub-range
|
|
288
|
+
* select (`@st`/`@cnt`), or a compound multi-hop chain (`axis="ch ch"`,
|
|
289
|
+
* "my first child's own children") - see {@link resolveAxisCount}.
|
|
290
|
+
* Omitted by a caller with no data-model tree to offer keeps the older,
|
|
291
|
+
* coarser `nodeCount`-only behaviour for `cnt` exactly as before (no
|
|
292
|
+
* regression for a caller that never had this).
|
|
293
|
+
*/
|
|
294
|
+
nodes?: DiagramNode[] | undefined;
|
|
295
|
+
/**
|
|
296
|
+
* The point(s) a `dgm:if`'s own enclosing `dgm:forEach` bound (its
|
|
297
|
+
* `DiagramLayoutNode.forEachOrigin`, already resolved to real data
|
|
298
|
+
* nodes), for a `func="maxDepth"` `dgm:if` whose `@axis` needs anchor-
|
|
299
|
+
* relative navigation rather than the diagram root - see {@link
|
|
300
|
+
* resolveAxisMaxDepth}'s own doc comment (`smartart-layout-interpreter-
|
|
301
|
+
* axis-depth.ts`) for the derivation. Omitted by a caller with no anchor
|
|
302
|
+
* to offer keeps the older `context.maxDepth`-only behaviour for
|
|
303
|
+
* `maxDepth` exactly as before (no regression for a caller that never had
|
|
304
|
+
* this - no existing caller populates this field yet).
|
|
305
|
+
*/
|
|
306
|
+
anchor?: DiagramNode[] | undefined;
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
309
|
+
//#region diagram/layout/smartart-constraint-rules.d.ts
|
|
310
|
+
/** Enumeration errors in a layout node's constraints and rules. */
|
|
311
|
+
declare function validateSmartArtConstraintRules(value: DiagramLayoutNode): string[];
|
|
312
|
+
//#endregion
|
|
313
|
+
//#region diagram/layout/smartart-constraint-resolve.d.ts
|
|
314
|
+
/**
|
|
315
|
+
* Resolve the value a role's constraint of `type` ultimately carries, walking
|
|
316
|
+
* any `refType`/`refFor`/`refForName` chain. Returns `undefined` when nothing
|
|
317
|
+
* declares it, a reference cannot be resolved, or resolution would cycle - the
|
|
318
|
+
* caller is expected to fall back to its own default in every such case.
|
|
319
|
+
*/
|
|
320
|
+
declare function resolveConstraint(index: ConstraintIndex, role: string, type: string): number | undefined;
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region diagram/layout/smartart-constraint-solver.d.ts
|
|
323
|
+
/** One `dgm:constr` plus the role that declared it. Exposed for
|
|
324
|
+
* `smartart-constraint-declared-by.ts`, which needs to filter candidates by
|
|
325
|
+
* `declaringRole` before running the same reference-walking logic. */
|
|
326
|
+
interface IndexedConstraint {
|
|
327
|
+
constraint: DiagramConstraint;
|
|
328
|
+
/** Name of the layoutNode whose `constrLst` declared this entry ("self"). */
|
|
329
|
+
declaringRole: string;
|
|
330
|
+
}
|
|
331
|
+
/** One-shot index over every `dgm:constr` in a layout definition. */
|
|
332
|
+
interface ConstraintIndex {
|
|
333
|
+
entries: Map<string, IndexedConstraint[]>;
|
|
334
|
+
rootRole: string;
|
|
335
|
+
}
|
|
336
|
+
/** True when a constraint carries any `ref*` attribute (a relative constraint). */
|
|
337
|
+
declare function hasReference(constraint: DiagramConstraint): boolean;
|
|
338
|
+
/** The role name a layoutNode's own constraints/references resolve under. */
|
|
339
|
+
declare function roleOf(node: DiagramLayoutNode | undefined): string;
|
|
340
|
+
/**
|
|
341
|
+
* An index over no constraints at all. Every arranger that consults a
|
|
342
|
+
* `ConstraintIndex` accepts this as its default, so adding the parameter
|
|
343
|
+
* never breaks an existing caller that arranges without one (it just gets
|
|
344
|
+
* exactly the pre-existing scalar-only behaviour: every lookup degrades).
|
|
345
|
+
*/
|
|
346
|
+
declare const EMPTY_CONSTRAINT_INDEX: ConstraintIndex;
|
|
347
|
+
/**
|
|
348
|
+
* Build a resolvable index of every `dgm:constr` in the whole layout tree.
|
|
349
|
+
*
|
|
350
|
+
* `nodeCount`/`context` (round 39) enable choose-AWARE selection for a node
|
|
351
|
+
* whose `constrLst` is genuinely branched (`node.constraintCandidates`, see
|
|
352
|
+
* `smartart-constraint-branch-index.ts`'s `selectConstraints`): when the
|
|
353
|
+
* live branch decides, only ITS constraints are indexed for that node,
|
|
354
|
+
* instead of blindly unioning every branch. Omit both (every pre-existing
|
|
355
|
+
* caller) to keep the old blind-union behaviour exactly as before - a
|
|
356
|
+
* caller with no diagram to evaluate against cannot decide a branch anyway.
|
|
357
|
+
*/
|
|
358
|
+
declare function buildConstraintIndex(definition: DiagramLayoutDefinition, nodeCount?: number, context?: WhenContext): ConstraintIndex;
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region diagram/layout/smartart-constraint-ratio-fallback.d.ts
|
|
361
|
+
/**
|
|
362
|
+
* Drop-in replacement for a bare `ratioConstraint(...)` call: tries the exact
|
|
363
|
+
* same literal scan first (so every already-passing behaviour is unchanged),
|
|
364
|
+
* then falls back to resolving a relative constraint declared for `role`
|
|
365
|
+
* before giving up to `fallback`.
|
|
366
|
+
*/
|
|
367
|
+
declare function resolveRatioConstraint(constraints: DiagramConstraint[] | undefined, index: ConstraintIndex, role: string, types: readonly string[], fallback: number, rules?: DiagramNumericRule[]): number;
|
|
368
|
+
//#endregion
|
|
369
|
+
//#region diagram/layout/smartart-layout-interpreter-constraints.d.ts
|
|
370
|
+
/** Find the first constraint of `type`, optionally restricted to a relationship. */
|
|
371
|
+
declare function findConstraint<C extends DiagramConstraint>(constraints: C[] | undefined, type: string, forRel?: DiagramConstraint['for']): C | undefined;
|
|
372
|
+
/** Clamp a ratio to a matching `dgm:ruleLst` numeric rule's `max`, when present. */
|
|
373
|
+
declare function clampByRules(value: number, rules: DiagramNumericRule[] | undefined, type: string): number;
|
|
374
|
+
/**
|
|
375
|
+
* Resolve a spacing/padding constraint to a *ratio* of the item extent.
|
|
376
|
+
*
|
|
377
|
+
* DiagramML commonly expresses sibling spacing and padding as a factor of a
|
|
378
|
+
* referenced dimension, e.g. `<dgm:constr type="sibSp" refType="w" fact="0.1"/>`.
|
|
379
|
+
* We surface that factor directly. When only a small absolute `val` (< 1) is
|
|
380
|
+
* present we treat it as a ratio too; otherwise the caller's default is used.
|
|
381
|
+
*
|
|
382
|
+
* A `for="ch"` constraint (the child-scoped form real diagrams use for sibling
|
|
383
|
+
* spacing / padding) is preferred over an unscoped one, and the result is capped
|
|
384
|
+
* by any matching `dgm:ruleLst` numeric rule `max` when `rules` is supplied.
|
|
385
|
+
*/
|
|
386
|
+
declare function ratioConstraint(constraints: DiagramConstraint[] | undefined, types: readonly string[], fallback: number, rules?: DiagramNumericRule[]): number;
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region diagram/layout/smartart-layout-interpreter-arrangement-kind.d.ts
|
|
389
|
+
/** Arrangement families the interpreter can execute. */
|
|
390
|
+
type ArrangementKind = 'linear' | 'cycle' | 'hierarchy' | 'pyramid' | 'snake' | 'composite' | 'conn' | 'spacer' | 'text';
|
|
391
|
+
/** The arranger `layoutNode` plus the resolved arrangement family. */
|
|
392
|
+
interface ArrangementPlan$1<R = unknown> {
|
|
393
|
+
kind: ArrangementKind;
|
|
394
|
+
/** The `layoutNode` carrying the arrangement algorithm + its constraints. */
|
|
395
|
+
node: DiagramLayoutNode<R>;
|
|
396
|
+
}
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region diagram/layout/smartart-layout-interpreter-flow-direction.d.ts
|
|
399
|
+
/** The first nested item `layoutNode` under an arranger (the per-point shape). */
|
|
400
|
+
declare function itemNode<R>(arranger: DiagramLayoutNode<R>): DiagramLayoutNode<R> | undefined;
|
|
401
|
+
/** Read an algorithm parameter value by its `dgm:param` type. */
|
|
402
|
+
declare function algorithmParam(node: DiagramLayoutNode, type: string): string | undefined;
|
|
403
|
+
/** Read a numeric algorithm parameter, returning `fallback` when absent/invalid. */
|
|
404
|
+
declare function numericParam(node: DiagramLayoutNode, type: string, fallback: number): number;
|
|
405
|
+
/** Orientation + ordering resolved from `linDir` and presentation variables. */
|
|
406
|
+
interface FlowDirection {
|
|
407
|
+
orientation: 'horizontal' | 'vertical';
|
|
408
|
+
reverse: boolean;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Resolve linear flow direction from the arranger's `linDir` param and the
|
|
412
|
+
* data model's `dgm:dir` (`presLayoutVars.direction`). `fromR`/`fromB` and a
|
|
413
|
+
* reversed direction both flip the placement order.
|
|
414
|
+
*/
|
|
415
|
+
declare function resolveFlowDirection(arranger: DiagramLayoutNode, presLayoutVars: DiagramPresLayoutVars | undefined): FlowDirection;
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region diagram/layout/smartart-layout-interpreter-flow.d.ts
|
|
418
|
+
/**
|
|
419
|
+
* Apply the driving `dgm:forEach` selection semantics (`st` / `cnt` / `step`) to
|
|
420
|
+
* the flat data-model points and, when the iterator declares `hideLastTrans`,
|
|
421
|
+
* drop the trailing slot. `st` is 1-based (DiagramML default 1); `cnt` of 0
|
|
422
|
+
* means "all"; `step` defaults to 1. Returns `flat` unchanged when the arranger
|
|
423
|
+
* node carries no iterator.
|
|
424
|
+
*
|
|
425
|
+
* When `node` declares MORE THAN ONE qualifying iterator ({@link
|
|
426
|
+
* qualifyingIterators}), or nests a `followSib`/`ptType="node"` iterator
|
|
427
|
+
* inside one iterator's own item template ({@link
|
|
428
|
+
* collectFollowSibNodeCounts}), the result is the UNION of every iterator's
|
|
429
|
+
* own selection, in data order - `Target List`'s 7 independent single-point
|
|
430
|
+
* ring iterators, and `Alternating Flow`'s `step="2"` primary paired with a
|
|
431
|
+
* nested `followSib` "next point" secondary, both resolve this way. The
|
|
432
|
+
* common case (exactly one iterator, no nested pairing) is unaffected: the
|
|
433
|
+
* union of one iterator's own indices is exactly its own selection, same as
|
|
434
|
+
* before this generalisation.
|
|
435
|
+
*
|
|
436
|
+
* @param roots The original (un-flattened) top-level nodes. When EVERY
|
|
437
|
+
* qualifying iterator's axis is exactly `ch` (see {@link isChildOnlyAxis}),
|
|
438
|
+
* selection runs over `roots` instead of the depth-first-flattened `flat`,
|
|
439
|
+
* so a node with children gets exactly one box; the caller
|
|
440
|
+
* (`interpretedLayoutToElements`) folds each unrendered descendant's text
|
|
441
|
+
* into its ancestor's box as additional paragraphs. Omit `roots` (or pass
|
|
442
|
+
* it equal to `flat`) to keep the previous flat-only behaviour, e.g. for
|
|
443
|
+
* callers with no tree to offer.
|
|
444
|
+
*/
|
|
445
|
+
declare function selectArrangedNodes<N extends DiagramNode>(node: DiagramLayoutNode, flat: N[], roots?: N[]): N[];
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region diagram/layout/smartart-tree.d.ts
|
|
448
|
+
/** One node of the forest and its child subtrees. */
|
|
449
|
+
interface TreeNode$1<S = unknown> {
|
|
450
|
+
node: DiagramNode<S>;
|
|
451
|
+
children: TreeNode$1<S>[];
|
|
452
|
+
}
|
|
453
|
+
/** Link a flat node list into trees through `parentId` (orphans become roots). */
|
|
454
|
+
declare function buildForest<S>(nodes: DiagramNode<S>[]): TreeNode$1<S>[];
|
|
455
|
+
/**
|
|
456
|
+
* Build a forest from a node array, accepting either input shape:
|
|
457
|
+
* - A flat list with `parentId` pointers (the format the parser emits for
|
|
458
|
+
* flat `<dgm:pt>` elements) - handled by delegating to {@link buildForest}.
|
|
459
|
+
* - An already-nested list where every root node carries a `children` array.
|
|
460
|
+
*
|
|
461
|
+
* The DiagramML interpreter's hierarchy arranger receives either shape
|
|
462
|
+
* depending on the caller, so it needs both branches; `buildForest` alone
|
|
463
|
+
* only handles the flat case.
|
|
464
|
+
*/
|
|
465
|
+
declare function buildTree<S>(nodes: DiagramNode<S>[]): TreeNode$1<S>[];
|
|
466
|
+
/** Leaf count of `t` (a leaf counts as one). */
|
|
467
|
+
declare function treeWidth<S>(t: TreeNode$1<S>, depth?: number): number;
|
|
468
|
+
/** Generation count of `t` (a leaf counts as one). */
|
|
469
|
+
declare function treeDepth<S>(t: TreeNode$1<S>, depth?: number): number;
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region diagram/layout/smartart-layout-interpreter-render.d.ts
|
|
472
|
+
/** Resolved stroke width / colour / shadow for a SmartArt style. */
|
|
473
|
+
interface StyleContext {
|
|
474
|
+
strokeWidth: number;
|
|
475
|
+
stroke: string;
|
|
476
|
+
shadow: string | undefined;
|
|
477
|
+
}
|
|
478
|
+
/** Derive the reusable stroke/shadow context for a style once per layout. */
|
|
479
|
+
declare function styleContext(style: DiagramStyleIntensity): StyleContext;
|
|
480
|
+
interface RectParams {
|
|
481
|
+
key: string;
|
|
482
|
+
x: number;
|
|
483
|
+
y: number;
|
|
484
|
+
width: number;
|
|
485
|
+
height: number;
|
|
486
|
+
node: DiagramNode;
|
|
487
|
+
index: number;
|
|
488
|
+
total: number;
|
|
489
|
+
palette: string[];
|
|
490
|
+
style: DiagramStyleIntensity;
|
|
491
|
+
ctx: StyleContext;
|
|
492
|
+
/** A font size shared by every item in the arranged set; see `presetBoxNode`. */
|
|
493
|
+
fontSizeOverride?: number | undefined;
|
|
494
|
+
/** See `RenderedNodeIdentity.descendantFontSize`'s doc comment. */
|
|
495
|
+
descendantFontSize?: number | undefined;
|
|
496
|
+
}
|
|
497
|
+
/** Build a styled rounded-rect node covering `[x,y,width,height]`. */
|
|
498
|
+
declare function rectNode(params: RectParams): RenderedRectNode;
|
|
499
|
+
interface CircleParams {
|
|
500
|
+
key: string;
|
|
501
|
+
cx: number;
|
|
502
|
+
cy: number;
|
|
503
|
+
r: number;
|
|
504
|
+
/** Independent horizontal/vertical radii for a genuine ellipse; see `RenderedCircleNode.rx`/`.ry`'s doc comment. */
|
|
505
|
+
rx?: number | undefined;
|
|
506
|
+
ry?: number | undefined;
|
|
507
|
+
node: DiagramNode;
|
|
508
|
+
index: number;
|
|
509
|
+
total: number;
|
|
510
|
+
palette: string[];
|
|
511
|
+
style: DiagramStyleIntensity;
|
|
512
|
+
ctx: StyleContext;
|
|
513
|
+
/** A font size shared by every item in the arranged set; see `presetBoxNode`. */
|
|
514
|
+
fontSizeOverride?: number | undefined;
|
|
515
|
+
/** See `RenderedNodeIdentity.descendantFontSize`'s doc comment. */
|
|
516
|
+
descendantFontSize?: number | undefined;
|
|
517
|
+
}
|
|
518
|
+
/** Build a styled circle node centred at `[cx,cy]`. */
|
|
519
|
+
declare function circleNode(params: CircleParams): RenderedCircleNode;
|
|
520
|
+
interface PolygonParams {
|
|
521
|
+
key: string;
|
|
522
|
+
points: string;
|
|
523
|
+
textX: number;
|
|
524
|
+
textY: number;
|
|
525
|
+
fontWidth: number;
|
|
526
|
+
fontHeight: number;
|
|
527
|
+
node: DiagramNode;
|
|
528
|
+
index: number;
|
|
529
|
+
total: number;
|
|
530
|
+
palette: string[];
|
|
531
|
+
style: DiagramStyleIntensity;
|
|
532
|
+
ctx: StyleContext;
|
|
533
|
+
/** A font size shared by every item in the arranged set; see `presetBoxNode`. */
|
|
534
|
+
fontSizeOverride?: number | undefined;
|
|
535
|
+
/** See `RenderedNodeIdentity.descendantFontSize`'s doc comment. */
|
|
536
|
+
descendantFontSize?: number | undefined;
|
|
537
|
+
}
|
|
538
|
+
/** Build a styled polygon node from an SVG points string. */
|
|
539
|
+
declare function polygonNode(params: PolygonParams): RenderedPolygonNode;
|
|
540
|
+
//#endregion
|
|
541
|
+
//#region diagram/layout/smartart-node-role-colors.d.ts
|
|
542
|
+
/** Per-styleLbl-role resolved colour lists (from a diagram colour transform). */
|
|
543
|
+
type SmartArtColorRoleMap = Record<string, {
|
|
544
|
+
fill: string[];
|
|
545
|
+
line: string[];
|
|
546
|
+
}>;
|
|
547
|
+
/**
|
|
548
|
+
* Overlay each node's own quick-style role fill colour onto the interpreter
|
|
549
|
+
* output. Returns `result` unchanged when `colorRoles` is empty/absent.
|
|
550
|
+
*/
|
|
551
|
+
declare function applySmartArtRoleColors(result: SmartArtLayoutResult, flat: DiagramNode[], colorRoles: SmartArtColorRoleMap | undefined): SmartArtLayoutResult;
|
|
552
|
+
//#endregion
|
|
553
|
+
//#region diagram/layout/smartart-layout-interpreter.d.ts
|
|
554
|
+
/** Inputs for a single interpreter run. */
|
|
555
|
+
interface InterpretLayoutInput {
|
|
556
|
+
/** Parsed layout definition (from `DiagramData.layoutDefinition`). */
|
|
557
|
+
layoutDefinition: DiagramLayoutDefinition | undefined;
|
|
558
|
+
/** Original (possibly nested) data-model nodes - used for hierarchy. */
|
|
559
|
+
nodes: DiagramNode[];
|
|
560
|
+
/** Depth-first flattened nodes - used for flat arrangements. */
|
|
561
|
+
flat: DiagramNode[];
|
|
562
|
+
box: BoundingBox;
|
|
563
|
+
palette: string[];
|
|
564
|
+
style: DiagramStyleIntensity;
|
|
565
|
+
elementId: string;
|
|
566
|
+
/** Presentation layout variables (direction / hierBranch / orgChart). */
|
|
567
|
+
presLayoutVars?: DiagramPresLayoutVars;
|
|
568
|
+
/**
|
|
569
|
+
* Per-styleLbl-role resolved colour lists (from
|
|
570
|
+
* `PptxSmartArtColorTransform.roleColors`): a node whose {@link
|
|
571
|
+
* DiagramNode.styleRole} matches a key gets that role's own cycled
|
|
572
|
+
* fill colour instead of the generic `palette` cycling - see
|
|
573
|
+
* `smartart-node-role-colors.ts`.
|
|
574
|
+
*/
|
|
575
|
+
colorRoles?: SmartArtColorRoleMap;
|
|
576
|
+
/**
|
|
577
|
+
* Data-model connections (from `DiagramData.connections`): labels a
|
|
578
|
+
* hierarchy `parOf` edge's connector from its `parTrans` text, and
|
|
579
|
+
* resolves a transition-bound item role's ordinal text (a numbered badge)
|
|
580
|
+
* from its `sibTrans`/`parTrans` text - via `connection.label`.
|
|
581
|
+
*/
|
|
582
|
+
connections?: DiagramConnection[];
|
|
583
|
+
/**
|
|
584
|
+
* The deck's own theme minor-Latin font (`DiagramData.themeMinorFont`),
|
|
585
|
+
* threaded through to every arranger's font-fit so text is measured
|
|
586
|
+
* against the REAL font PowerPoint renders it in. `undefined` falls back
|
|
587
|
+
* to the default in `smartart-layout-item-font-size.ts`.
|
|
588
|
+
*/
|
|
589
|
+
fontName?: string;
|
|
590
|
+
}
|
|
591
|
+
//#endregion
|
|
592
|
+
//#region diagram/layout/smartart-layout-interpreter-aux.d.ts
|
|
593
|
+
/**
|
|
594
|
+
* Execute the `sp` algorithm: a spacer that reserves layout space but draws
|
|
595
|
+
* nothing.
|
|
596
|
+
*
|
|
597
|
+
* Choice: we return a valid, empty `SmartArtLayoutResult` (no nodes, no
|
|
598
|
+
* connectors) rather than a transparent placeholder rect or `undefined`. The
|
|
599
|
+
* spacer is genuinely "applicable" (it is a recognised algorithm), so declining
|
|
600
|
+
* with `undefined` would wrongly send the caller to the legacy family
|
|
601
|
+
* approximation; emitting an invisible placeholder would add a stray hit-target
|
|
602
|
+
* and complicate node indexing. An empty result cleanly represents "consumed
|
|
603
|
+
* space, nothing drawn".
|
|
604
|
+
*/
|
|
605
|
+
declare function arrangeSpacer(_plan: ArrangementPlan$1, _nodes: DiagramNode[], box: BoundingBox, _palette: string[], style: DiagramStyleIntensity, _elementId: string): SmartArtLayoutResult | undefined;
|
|
606
|
+
/**
|
|
607
|
+
* Execute the `tx` algorithm: a single node filling the parent region with the
|
|
608
|
+
* point's text. Only the first point is placed (composite `tx` leaves describe
|
|
609
|
+
* one region). Returns `undefined` when there is no point to render.
|
|
610
|
+
*/
|
|
611
|
+
declare function arrangeText(plan: ArrangementPlan$1, nodes: DiagramNode[], box: BoundingBox, palette: string[], style: DiagramStyleIntensity, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, DiagramNode[]>, fontName?: string): SmartArtLayoutResult | undefined;
|
|
612
|
+
//#endregion
|
|
613
|
+
//#region diagram/layout/smartart-layout-interpreter-cycle.d.ts
|
|
614
|
+
/** Execute the `cycle` algorithm: points on a ring around the box centre. */
|
|
615
|
+
declare function arrangeCycle(plan: ArrangementPlan$1, nodes: DiagramNode[], box: BoundingBox, palette: string[], style: DiagramStyleIntensity, elementId: string, index?: ConstraintIndex, hubAlreadyStripped?: boolean, childrenOf?: Map<string, DiagramNode[]>, fontName?: string, declaringRoleChain?: readonly string[], sizeBox?: BoundingBox): SmartArtLayoutResult;
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region diagram/layout/smartart-layout-interpreter-snake.d.ts
|
|
618
|
+
/** Execute the `snake` algorithm: a grid honouring `grDir`/`flowDir`/`contDir`/`bkpt`. */
|
|
619
|
+
declare function arrangeSnake(plan: ArrangementPlan$1, nodes: DiagramNode[], box: BoundingBox, palette: string[], style: DiagramStyleIntensity, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, DiagramNode[]>, fontName?: string): SmartArtLayoutResult;
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region diagram/layout/smartart-layout-interpreter-pyramid.d.ts
|
|
622
|
+
/** Execute the `pyra` algorithm: stacked trapezoid bands (apex at top). */
|
|
623
|
+
declare function arrangePyramid(plan: ArrangementPlan$1, nodes: DiagramNode[], box: BoundingBox, palette: string[], style: DiagramStyleIntensity, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, DiagramNode[]>, fontName?: string): SmartArtLayoutResult;
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region diagram/layout/smartart-layout-interpreter-custom.d.ts
|
|
626
|
+
/**
|
|
627
|
+
* Apply every node's manual `cust*` layout override (if any) as a final
|
|
628
|
+
* transform over an already-computed layout result. A no-op when no node in
|
|
629
|
+
* `nodes` carries a `customLayout`, returning `result` unchanged (same
|
|
630
|
+
* reference) so callers can cheaply skip re-deriving anything downstream.
|
|
631
|
+
*/
|
|
632
|
+
declare function applyCustomLayoutOverrides(result: SmartArtLayoutResult, nodes: DiagramNode[], box: BoundingBox): SmartArtLayoutResult;
|
|
633
|
+
//#endregion
|
|
5
634
|
//#region pptx/core/types/smart-art-definition-header.d.ts
|
|
6
635
|
/** The three DiagramML definition-header catalog families. */
|
|
7
636
|
type PptxSmartArtDefinitionHeaderKind = 'layout' | 'style' | 'color';
|
|
@@ -1433,831 +2062,303 @@ declare function readOleNestedDeckFirstSlideTextLines(pptxBytes: Uint8Array): Pr
|
|
|
1433
2062
|
* element id, recursing into groups) and re-save the nested deck through
|
|
1434
2063
|
* its own full `PptxHandler.save` pipeline. Clears any rich `textSegments`
|
|
1435
2064
|
* on that shape so the plain overwrite is not immediately overridden by
|
|
1436
|
-
* stale styled runs, the same rule a plain-text edit anywhere else in this
|
|
1437
|
-
* codebase follows. Returns the original bytes unchanged when the slide
|
|
1438
|
-
* index is out of range or no such element exists on that slide.
|
|
1439
|
-
*/
|
|
1440
|
-
declare function writeOleNestedDeckElementText(pptxBytes: Uint8Array, slideIndex: number, elementId: string, text: string): Promise<Uint8Array>;
|
|
1441
|
-
//#endregion
|
|
1442
|
-
//#region ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/utils/png-encoder.d.ts
|
|
1443
|
-
/**
|
|
1444
|
-
* Encode an RGBA pixel buffer as a PNG file.
|
|
1445
|
-
*
|
|
1446
|
-
* @param width - Image width in pixels.
|
|
1447
|
-
* @param height - Image height in pixels.
|
|
1448
|
-
* @param rgba - Pixel data, `width * height * 4` bytes, row-major, RGBA8.
|
|
1449
|
-
* @returns The complete PNG file bytes.
|
|
1450
|
-
*/
|
|
1451
|
-
declare function encodePng(width: number, height: number, rgba: Uint8Array | Uint8ClampedArray): Uint8Array;
|
|
1452
|
-
/** Decode a PNG's `IHDR` width/height without decompressing pixel data. */
|
|
1453
|
-
declare function decodePngDimensions(png: Uint8Array): {
|
|
1454
|
-
width: number;
|
|
1455
|
-
height: number;
|
|
1456
|
-
} | undefined;
|
|
1457
|
-
//#endregion
|
|
1458
|
-
//#region pptx/core/utils/png-encoder-compressed.d.ts
|
|
1459
|
-
/**
|
|
1460
|
-
* RGBA -> PNG encoder with a DEFLATE-compressed `IDAT` and per-row adaptive
|
|
1461
|
-
* scanline filters (None / Sub / Up). `encodePng` (from `@christophervr/ole2`)
|
|
1462
|
-
* only emits stored blocks, which is fine for small icon rasters but makes a
|
|
1463
|
-
* large picture (a GIF frame in a `.ppt`) many times bigger than necessary.
|
|
1464
|
-
*
|
|
1465
|
-
* @module png-encoder-compressed
|
|
1466
|
-
*/
|
|
1467
|
-
/** Encode `width * height * 4` RGBA bytes as a PNG with a compressed `IDAT`. */
|
|
1468
|
-
declare function encodeCompressedPng(width: number, height: number, rgba: Uint8Array): Uint8Array;
|
|
1469
|
-
//#endregion
|
|
1470
|
-
//#region pptx/core/utils/deflate-encode.d.ts
|
|
1471
|
-
/**
|
|
1472
|
-
* Small, dependency-free, synchronous zlib (RFC 1950) compressor: LZ77 with a
|
|
1473
|
-
* hash-chain match finder, emitted as a single fixed-Huffman DEFLATE block
|
|
1474
|
-
* (RFC 1951 SS3.2.6). It is not as tight as zlib's dynamic-Huffman output, but
|
|
1475
|
-
* it shrinks flat or repetitive data (screenshots, GIF frames) by orders of
|
|
1476
|
-
* magnitude versus stored blocks, with no `node:zlib` (browser-safe) and no
|
|
1477
|
-
* extra dependency.
|
|
1478
|
-
*
|
|
1479
|
-
* @module deflate-encode
|
|
1480
|
-
*/
|
|
1481
|
-
/** Compress `data` into a zlib stream (2-byte header, fixed-Huffman DEFLATE, Adler-32). */
|
|
1482
|
-
declare function zlibDeflate(data: Uint8Array): Uint8Array;
|
|
1483
|
-
//#endregion
|
|
1484
|
-
//#region pptx/core/utils/raster-canvas.d.ts
|
|
1485
|
-
/**
|
|
1486
|
-
* Tiny DOM-free raster canvas: an RGBA pixel buffer plus rect / line / text
|
|
1487
|
-
* primitives, backing the OLE icon-caption and content-preview regeneration
|
|
1488
|
-
* (`ole-icon-raster.ts`, `ole-content-preview-raster.ts`). Runs identically
|
|
1489
|
-
* in the browser and in Node (MCP tools), which rules out `<canvas>` /
|
|
1490
|
-
* `OffscreenCanvas`.
|
|
1491
|
-
*
|
|
1492
|
-
* Text uses a built-in 5x7 bitmap font covering ASCII 0x20-0x7E; anything
|
|
1493
|
-
* outside that range renders as a placeholder box glyph so a caption never
|
|
1494
|
-
* silently disappears.
|
|
1495
|
-
*
|
|
1496
|
-
* @module raster-canvas
|
|
1497
|
-
*/
|
|
1498
|
-
/** RGBA colour as four 0-255 bytes. */
|
|
1499
|
-
interface RasterColor {
|
|
1500
|
-
r: number;
|
|
1501
|
-
g: number;
|
|
1502
|
-
b: number;
|
|
1503
|
-
a: number;
|
|
1504
|
-
}
|
|
1505
|
-
declare function rgb(r: number, g: number, b: number, a?: number): RasterColor;
|
|
1506
|
-
/** A DOM-free RGBA canvas with basic drawing primitives. */
|
|
1507
|
-
declare class RasterCanvas {
|
|
1508
|
-
readonly width: number;
|
|
1509
|
-
readonly height: number;
|
|
1510
|
-
readonly pixels: Uint8ClampedArray;
|
|
1511
|
-
constructor(width: number, height: number, background: RasterColor);
|
|
1512
|
-
private setPixel;
|
|
1513
|
-
fillRect(x: number, y: number, w: number, h: number, color: RasterColor): void;
|
|
1514
|
-
strokeRect(x: number, y: number, w: number, h: number, color: RasterColor, lineWidth?: number): void;
|
|
1515
|
-
drawLine(x1: number, y1: number, x2: number, y2: number, color: RasterColor, lineWidth?: number): void;
|
|
1516
|
-
/** Draw text at (x, y) as the top-left corner, scaled by `scale` (default 1 = 5x7px per glyph). */
|
|
1517
|
-
drawText(text: string, x: number, y: number, color: RasterColor, scale?: number): void;
|
|
1518
|
-
/** Measured pixel width of `text` at the given scale, matching {@link drawText}. */
|
|
1519
|
-
static measureText(text: string, scale?: number): number;
|
|
1520
|
-
/** Truncate `text` with a trailing ellipsis so it fits within `maxWidth` px at `scale`. */
|
|
1521
|
-
static truncateToWidth(text: string, maxWidth: number, scale?: number): string;
|
|
1522
|
-
}
|
|
1523
|
-
//#endregion
|
|
1524
|
-
//#region pptx/core/utils/ole-icon-raster.d.ts
|
|
1525
|
-
/** The six OLE application glyphs the placeholder icon can render. */
|
|
1526
|
-
type OleIconGlyph = 'excel' | 'word' | 'powerpoint' | 'pdf' | 'visio' | 'mathtype' | 'unknown';
|
|
1527
|
-
/** Options controlling the rasterised icon image. */
|
|
1528
|
-
interface OleIconRasterOptions {
|
|
1529
|
-
/** Overall image width in pixels (default 128). */
|
|
1530
|
-
width?: number;
|
|
1531
|
-
/** Overall image height in pixels (default 96). */
|
|
1532
|
-
height?: number;
|
|
1533
|
-
/** Which glyph to draw (default `'unknown'`). */
|
|
1534
|
-
glyph?: OleIconGlyph;
|
|
1535
|
-
/** Caption text drawn under the icon (typically the object name). */
|
|
1536
|
-
caption?: string;
|
|
1537
|
-
}
|
|
1538
|
-
/**
|
|
1539
|
-
* Render an OLE "show as icon" placeholder (glyph + caption) as a PNG.
|
|
1540
|
-
*
|
|
1541
|
-
* Deterministic and DOM-free: safe to call from a browser binding or from
|
|
1542
|
-
* the Node-hosted MCP tools. The caption is truncated with an ellipsis when
|
|
1543
|
-
* it would otherwise overflow the image width.
|
|
1544
|
-
*/
|
|
1545
|
-
declare function renderOleIconPng(options?: OleIconRasterOptions): Uint8Array;
|
|
1546
|
-
/** Map a resolved OLE object type (see `ole-utils.ts`) onto an icon glyph. */
|
|
1547
|
-
declare function oleObjectTypeToGlyph(oleObjectType: string | undefined): OleIconGlyph;
|
|
1548
|
-
//#endregion
|
|
1549
|
-
//#region pptx/core/utils/ole-content-preview-raster.d.ts
|
|
1550
|
-
/** Render a spreadsheet grid preview (rows/columns of cell text) as a PNG. */
|
|
1551
|
-
declare function renderOleSheetPreviewPng(grid: OleSheetGrid$1): Uint8Array;
|
|
1552
|
-
/** Render a word-processing document preview (wrapped paragraph text) as a PNG. */
|
|
1553
|
-
declare function renderOleDocumentPreviewPng(paragraphs: readonly string[]): Uint8Array;
|
|
1554
|
-
/**
|
|
1555
|
-
* Render a simplified preview of a nested PPTX deck's first slide: its
|
|
1556
|
-
* title and body text lines, stacked top to bottom. Not a visual replica of
|
|
1557
|
-
* the slide's real layout/design (that would require the full renderer,
|
|
1558
|
-
* which lives in each viewer binding, not core) -- just enough to show that
|
|
1559
|
-
* the preview reflects the edited deck's actual current text content.
|
|
1560
|
-
*/
|
|
1561
|
-
declare function renderOleDeckPreviewPng(firstSlideTextLines: readonly string[]): Uint8Array;
|
|
1562
|
-
//#endregion
|
|
1563
|
-
//#region pptx/core/utils/ole-edit-api.d.ts
|
|
1564
|
-
/**
|
|
1565
|
-
* Resolve which in-place editor applies to an OLE element's current
|
|
1566
|
-
* payload. `'file'` covers both a genuinely unsupported format and a
|
|
1567
|
-
* missing/unreadable payload (both fall back to Replace File).
|
|
1568
|
-
*/
|
|
1569
|
-
declare function resolveOleEditorKindFromPayload(element: OlePptxElement): Promise<OlePayloadEditorKind>;
|
|
1570
|
-
/** Read the spreadsheet grid for an Excel-payload OLE element (xlsx or legacy xls). */
|
|
1571
|
-
declare function getOleSheetGrid(element: OlePptxElement): Promise<OleSheetGrid$1 | undefined>;
|
|
1572
|
-
/** Read the paragraph text for a Word-payload OLE element (`.docx` or legacy binary `.doc`). */
|
|
1573
|
-
declare function getOleDocumentParagraphs(element: OlePptxElement): Promise<string[] | undefined>;
|
|
1574
|
-
/** Read the raw payload bytes of a nested-deck (embedded PowerPoint) OLE element, for `PptxHandler.load`. */
|
|
1575
|
-
declare function getOleNestedDeckBytes(element: OlePptxElement): Promise<Uint8Array | undefined>;
|
|
1576
|
-
/**
|
|
1577
|
-
* Read every slide's full text-element inventory for a nested-deck OLE
|
|
1578
|
-
* element: each slide's index and every text-bearing shape's id + current
|
|
1579
|
-
* text (including shapes inside groups), not just a "title" slot.
|
|
1580
|
-
*/
|
|
1581
|
-
declare function getOleNestedDeckDetail(element: OlePptxElement): Promise<OleNestedDeckSlideDetail[] | undefined>;
|
|
1582
|
-
/**
|
|
1583
|
-
* Replace ONE text-bearing shape's text on a nested-deck OLE element's
|
|
1584
|
-
* given slide (identified by its element id, per {@link getOleNestedDeckDetail}),
|
|
1585
|
-
* re-saving the nested deck through its own full `PptxHandler.save` and
|
|
1586
|
-
* writing the result back onto the OLE element.
|
|
1587
|
-
*/
|
|
1588
|
-
declare function applyOleNestedDeckElementTextEdit(element: OlePptxElement, slideIndex: number, elementId: string, text: string): Promise<OlePptxElement>;
|
|
1589
|
-
/** Apply one cell edit to an Excel-payload OLE element's first worksheet. */
|
|
1590
|
-
declare function applyOleSheetCellEdit(element: OlePptxElement, edit: {
|
|
1591
|
-
row: number;
|
|
1592
|
-
col: number;
|
|
1593
|
-
value: string;
|
|
1594
|
-
}): Promise<OlePptxElement>;
|
|
1595
|
-
/** Replace one paragraph's text in a Word-payload (`.docx` or legacy binary `.doc`) OLE element. */
|
|
1596
|
-
declare function applyOleDocumentParagraphEdit(element: OlePptxElement, paragraphIndex: number, text: string): Promise<OlePptxElement>;
|
|
1597
|
-
/** Replace a nested-deck OLE element's payload with a re-saved presentation's bytes. */
|
|
1598
|
-
declare function applyOleNestedDeckBytes(element: OlePptxElement, savedDeckBytes: Uint8Array): Promise<OlePptxElement>;
|
|
1599
|
-
/**
|
|
1600
|
-
* Replace an OLE element's payload wholesale with an arbitrary file (the
|
|
1601
|
-
* "Replace File" action available for every payload kind, and the only
|
|
1602
|
-
* edit available for a generic Packager object or an unsupported format).
|
|
1603
|
-
*/
|
|
1604
|
-
declare function replaceOleFile(element: OlePptxElement, fileBytes: Uint8Array, fileName?: string): Promise<OlePptxElement>;
|
|
1605
|
-
/**
|
|
1606
|
-
* Rename an OLE object's Object Name (`p:oleObj/@name`) and, when it is
|
|
1607
|
-
* displayed `showAsIcon`, regenerate the baked-in icon caption so the new
|
|
1608
|
-
* name is visible when the deck is reopened in real PowerPoint (which
|
|
1609
|
-
* renders the icon's `p:pic` blip as a static image, not a live label).
|
|
1610
|
-
*/
|
|
1611
|
-
declare function setOleObjectName(element: OlePptxElement, name: string): Promise<OlePptxElement>;
|
|
1612
|
-
//#endregion
|
|
1613
|
-
//#region pptx/core/utils/smartart-decompose-dispatch.d.ts
|
|
1614
|
-
/** The bounding box of the SmartArt graphic frame on the slide. */
|
|
1615
|
-
interface DrawingBounds {
|
|
1616
|
-
x: number;
|
|
1617
|
-
y: number;
|
|
1618
|
-
width: number;
|
|
1619
|
-
height: number;
|
|
1620
|
-
}
|
|
1621
|
-
//#endregion
|
|
1622
|
-
//#region pptx/core/utils/smartart-decompose.d.ts
|
|
1623
|
-
/**
|
|
1624
|
-
* Decompose a SmartArt data model into an array of standard PptxElements.
|
|
1625
|
-
*
|
|
1626
|
-
* @param smartArtData Parsed SmartArt data model from the PptxHandler.
|
|
1627
|
-
* @param containerBounds The bounding box of the SmartArt graphic frame on the slide.
|
|
1628
|
-
* @param themeColorMap Optional theme colour map (accent1-accent6 keys) for colour cycling.
|
|
1629
|
-
* @returns An array of PptxElements (shapes + connectors), or `undefined` when decomposition is not possible.
|
|
1630
|
-
*/
|
|
1631
|
-
declare function decomposeSmartArt(smartArtData: PptxSmartArtData, containerBounds: DrawingBounds, themeColorMap?: Record<string, string>): PptxElement[] | undefined;
|
|
1632
|
-
/**
|
|
1633
|
-
* Compute SmartArt shapes WITHOUT consulting `smartArtData.drawingShapes`:
|
|
1634
|
-
* the DiagramML interpreter when a recognised `layoutDefinition` is present,
|
|
1635
|
-
* falling back through the named/algorithmic/heuristic family approximation.
|
|
1636
|
-
*
|
|
1637
|
-
* Split out of {@link decomposeSmartArt} so `relayoutSmartArt` (recomputing
|
|
1638
|
-
* after a node is added/removed/reordered) can reuse the exact same
|
|
1639
|
-
* interpretation + fallback chain without also reprojecting whatever stale
|
|
1640
|
-
* `drawingShapes` happen to be on the data - `decomposeSmartArt`'s
|
|
1641
|
-
* drawing-shape branch is a REPROJECTION of cached geometry, not a "nothing
|
|
1642
|
-
* else worked" fallback, so `relayoutSmartArt` needs this narrower function
|
|
1643
|
-
* to keep its own "return the untouched existing shapes" fallback meaningful.
|
|
2065
|
+
* stale styled runs, the same rule a plain-text edit anywhere else in this
|
|
2066
|
+
* codebase follows. Returns the original bytes unchanged when the slide
|
|
2067
|
+
* index is out of range or no such element exists on that slide.
|
|
1644
2068
|
*/
|
|
1645
|
-
declare function
|
|
2069
|
+
declare function writeOleNestedDeckElementText(pptxBytes: Uint8Array, slideIndex: number, elementId: string, text: string): Promise<Uint8Array>;
|
|
1646
2070
|
//#endregion
|
|
1647
|
-
//#region
|
|
1648
|
-
interface ContainerBounds {
|
|
1649
|
-
x: number;
|
|
1650
|
-
y: number;
|
|
1651
|
-
width: number;
|
|
1652
|
-
height: number;
|
|
1653
|
-
}
|
|
1654
|
-
/** Reset the counter — useful in tests. */
|
|
1655
|
-
declare function resetDecomposeCounter(): void;
|
|
1656
|
-
interface TreeNode {
|
|
1657
|
-
node: PptxSmartArtNode;
|
|
1658
|
-
children: TreeNode[];
|
|
1659
|
-
}
|
|
1660
|
-
declare function buildForest(nodes: PptxSmartArtNode[]): TreeNode[];
|
|
2071
|
+
//#region ../../node_modules/.bun/@christophervr+ole2@0.12.0/node_modules/@christophervr/ole2/dist/utils/png-encoder.d.ts
|
|
1661
2072
|
/**
|
|
1662
|
-
*
|
|
1663
|
-
* - A flat list with `parentId` pointers (the format the parser emits for
|
|
1664
|
-
* flat `<dgm:pt>` elements) - handled by delegating to {@link buildForest}.
|
|
1665
|
-
* - An already-nested list where every root node carries a `children` array.
|
|
2073
|
+
* Encode an RGBA pixel buffer as a PNG file.
|
|
1666
2074
|
*
|
|
1667
|
-
*
|
|
1668
|
-
*
|
|
1669
|
-
*
|
|
2075
|
+
* @param width - Image width in pixels.
|
|
2076
|
+
* @param height - Image height in pixels.
|
|
2077
|
+
* @param rgba - Pixel data, `width * height * 4` bytes, row-major, RGBA8.
|
|
2078
|
+
* @returns The complete PNG file bytes.
|
|
1670
2079
|
*/
|
|
1671
|
-
declare function
|
|
1672
|
-
|
|
1673
|
-
declare function
|
|
2080
|
+
declare function encodePng(width: number, height: number, rgba: Uint8Array | Uint8ClampedArray): Uint8Array;
|
|
2081
|
+
/** Decode a PNG's `IHDR` width/height without decompressing pixel data. */
|
|
2082
|
+
declare function decodePngDimensions(png: Uint8Array): {
|
|
2083
|
+
width: number;
|
|
2084
|
+
height: number;
|
|
2085
|
+
} | undefined;
|
|
1674
2086
|
//#endregion
|
|
1675
|
-
//#region pptx/core/utils/
|
|
2087
|
+
//#region pptx/core/utils/png-encoder-compressed.d.ts
|
|
1676
2088
|
/**
|
|
1677
|
-
*
|
|
1678
|
-
*
|
|
1679
|
-
*
|
|
1680
|
-
* (
|
|
1681
|
-
* DOM. Consumed by:
|
|
1682
|
-
* - the SVG-fallback preview path (re-exported from `pptx-viewer-shared` for
|
|
1683
|
-
* the React/Vue/Angular/Svelte/Vanilla bindings), and
|
|
1684
|
-
* - the save/decompose pipeline in this package (`smartart-decompose.ts`,
|
|
1685
|
-
* `smartart-interpreter-drawing-bridge.ts`), which converts this geometry
|
|
1686
|
-
* into `PptxElement[]` / `PptxSmartArtDrawingShape[]` for the fabricated
|
|
1687
|
-
* cached diagram drawing.
|
|
2089
|
+
* RGBA -> PNG encoder with a DEFLATE-compressed `IDAT` and per-row adaptive
|
|
2090
|
+
* scanline filters (None / Sub / Up). `encodePng` (from `@christophervr/ole2`)
|
|
2091
|
+
* only emits stored blocks, which is fine for small icon rasters but makes a
|
|
2092
|
+
* large picture (a GIF frame in a `.ppt`) many times bigger than necessary.
|
|
1688
2093
|
*
|
|
1689
|
-
*
|
|
1690
|
-
* by the save pipeline: `pptx-viewer-core` cannot import `pptx-viewer-shared`
|
|
1691
|
-
* (shared depends on core, not the other way around), so the single
|
|
1692
|
-
* interpreter now lives in core and shared re-exports it.
|
|
2094
|
+
* @module png-encoder-compressed
|
|
1693
2095
|
*/
|
|
1694
|
-
/**
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
width: number;
|
|
1699
|
-
height: number;
|
|
1700
|
-
}
|
|
2096
|
+
/** Encode `width * height * 4` RGBA bytes as a PNG with a compressed `IDAT`. */
|
|
2097
|
+
declare function encodeCompressedPng(width: number, height: number, rgba: Uint8Array): Uint8Array;
|
|
2098
|
+
//#endregion
|
|
2099
|
+
//#region pptx/core/utils/deflate-encode.d.ts
|
|
1701
2100
|
/**
|
|
1702
|
-
*
|
|
1703
|
-
*
|
|
2101
|
+
* Small, dependency-free, synchronous zlib (RFC 1950) compressor: LZ77 with a
|
|
2102
|
+
* hash-chain match finder, emitted as a single fixed-Huffman DEFLATE block
|
|
2103
|
+
* (RFC 1951 SS3.2.6). It is not as tight as zlib's dynamic-Huffman output, but
|
|
2104
|
+
* it shrinks flat or repetitive data (screenshots, GIF frames) by orders of
|
|
2105
|
+
* magnitude versus stored blocks, with no `node:zlib` (browser-safe) and no
|
|
2106
|
+
* extra dependency.
|
|
1704
2107
|
*
|
|
1705
|
-
*
|
|
1706
|
-
* a renderer that ignores them keeps its historic output:
|
|
1707
|
-
* `fontColor` -> `white`, `fontWeight` / `fontStyle` -> unset.
|
|
2108
|
+
* @module deflate-encode
|
|
1708
2109
|
*/
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
fontWeight?: number;
|
|
1714
|
-
/** SVG `font-style`. Default unset. */
|
|
1715
|
-
fontStyle?: 'italic';
|
|
1716
|
-
}
|
|
2110
|
+
/** Compress `data` into a zlib stream (2-byte header, fixed-Huffman DEFLATE, Adler-32). */
|
|
2111
|
+
declare function zlibDeflate(data: Uint8Array): Uint8Array;
|
|
2112
|
+
//#endregion
|
|
2113
|
+
//#region pptx/core/utils/raster-canvas.d.ts
|
|
1717
2114
|
/**
|
|
1718
|
-
*
|
|
1719
|
-
*
|
|
2115
|
+
* Tiny DOM-free raster canvas: an RGBA pixel buffer plus rect / line / text
|
|
2116
|
+
* primitives, backing the OLE icon-caption and content-preview regeneration
|
|
2117
|
+
* (`ole-icon-raster.ts`, `ole-content-preview-raster.ts`). Runs identically
|
|
2118
|
+
* in the browser and in Node (MCP tools), which rules out `<canvas>` /
|
|
2119
|
+
* `OffscreenCanvas`.
|
|
1720
2120
|
*
|
|
1721
|
-
*
|
|
1722
|
-
*
|
|
1723
|
-
*
|
|
1724
|
-
*
|
|
1725
|
-
*
|
|
2121
|
+
* Text uses a built-in 5x7 bitmap font covering ASCII 0x20-0x7E; anything
|
|
2122
|
+
* outside that range renders as a placeholder box glyph so a caption never
|
|
2123
|
+
* silently disappears.
|
|
2124
|
+
*
|
|
2125
|
+
* @module raster-canvas
|
|
1726
2126
|
*/
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
nodeId?: string;
|
|
1730
|
-
/** Additional rotation in degrees from a `custAng` manual override. */
|
|
1731
|
-
rotation?: number;
|
|
1732
|
-
/**
|
|
1733
|
-
* Explicit DrawingML preset geometry name (`rect`, `roundRect`, ...) for
|
|
1734
|
-
* the save-pipeline bridge (`smartart-interpreter-drawing-bridge.ts`) to
|
|
1735
|
-
* use verbatim instead of its own kind-based default. Set by
|
|
1736
|
-
* `smartart-layout-interpreter-item-roles.ts` when a per-item role
|
|
1737
|
-
* template (e.g. a list layout's `childText`) declares its own `dgm:shape`
|
|
1738
|
-
* distinct from the arranger's hardcoded family shape. `undefined` keeps
|
|
1739
|
-
* the bridge's pre-existing behaviour.
|
|
1740
|
-
*/
|
|
1741
|
-
presetOverride?: string;
|
|
1742
|
-
/**
|
|
1743
|
-
* Additional `PptxSmartArtNode.id`s whose text folds into THIS shape as
|
|
1744
|
-
* extra paragraphs (see `projectFoldedNodeText` in the drawing bridge),
|
|
1745
|
-
* pre-resolved by `smartart-layout-interpreter-item-roles.ts` for a
|
|
1746
|
-
* `des`/`ch`-axis role that combines more than one descendant's text into
|
|
1747
|
-
* one box. `undefined` keeps the bridge's own descendant-folding
|
|
1748
|
-
* inference (nearest rendered ancestor absorbs any node without a box).
|
|
1749
|
-
*/
|
|
1750
|
-
foldedNodeIds?: string[];
|
|
1751
|
-
/**
|
|
1752
|
-
* Pre-resolved, verbatim display text for a role bound to a TRANSITION
|
|
1753
|
-
* point (`dgm:presOf ptType="sibTrans"|"parTrans"`) rather than a real
|
|
1754
|
-
* data node - e.g. a numbered-badge layout's ordinal "1"/"2"/"3" text,
|
|
1755
|
-
* which PowerPoint stores on the `sibTrans` point of the item's own
|
|
1756
|
-
* `parOf` edge (`PptxSmartArtConnection.label`), not on any
|
|
1757
|
-
* `PptxSmartArtNode` `nodeId` can resolve. Set by
|
|
1758
|
-
* `smartart-layout-interpreter-item-roles.ts`. When present, the
|
|
1759
|
-
* save-pipeline bridge (`smartart-interpreter-drawing-bridge.ts`) uses it
|
|
1760
|
-
* verbatim instead of resolving `nodeId` against the node array (which
|
|
1761
|
-
* would find nothing and render blank text).
|
|
1762
|
-
*/
|
|
1763
|
-
literalText?: string;
|
|
1764
|
-
/**
|
|
1765
|
-
* The `dgm:layoutNode/@name` of the per-item text role this entry was
|
|
1766
|
-
* split from (e.g. a pyramid's `level` vs `acctTx`), set by
|
|
1767
|
-
* `smartart-layout-interpreter-item-role-shared.ts`'s `stackRoleContent`
|
|
1768
|
-
* for EVERY split entry (rect or polygon), not only ones an arranger
|
|
1769
|
-
* needs to distinguish. A `polygon` split (`arrangePyramid`'s
|
|
1770
|
-
* parent+child pyramid accent) starts as an unchanged copy of the
|
|
1771
|
-
* original geometry per role - this is the one field an arranger-specific
|
|
1772
|
-
* geometry pass can key off to reposition/resize each entry by name,
|
|
1773
|
-
* since `stackRoleContent` itself has no generic way to split a
|
|
1774
|
-
* polygon's own `points`. `undefined` on an unsplit node.
|
|
1775
|
-
*/
|
|
1776
|
-
itemRoleName?: string;
|
|
1777
|
-
/**
|
|
1778
|
-
* The font size (px) a FOLDED descendant paragraph (`collectFoldedDescendants`
|
|
1779
|
-
* in the drawing bridge) should render at, when it differs from this
|
|
1780
|
-
* shape's own `fontSize` - see `smartart-layout-item-font-tier.ts`'s
|
|
1781
|
-
* module doc comment for why a folded descendant renders SMALLER than its
|
|
1782
|
-
* ancestor's own top-level text. `undefined` keeps the bridge's
|
|
1783
|
-
* pre-existing behaviour of reusing `fontSize` for every folded paragraph.
|
|
1784
|
-
*/
|
|
1785
|
-
descendantFontSize?: number;
|
|
1786
|
-
/**
|
|
1787
|
-
* The presentation style label (`presStyleLbl`) of the layout node this
|
|
1788
|
-
* shape was laid out from (`node1`, `revTx`, `sibTrans2D1`, ...), when the
|
|
1789
|
-
* engine knows it. A regenerated shape takes its quick-style 3D from this
|
|
1790
|
-
* label (`smartart-quick-style-3d.ts`), so a decorative or transition shape
|
|
1791
|
-
* that presents no node is not styled as `node1`.
|
|
1792
|
-
*/
|
|
1793
|
-
styleLabel?: string;
|
|
1794
|
-
/** Preset adjustments (`a:avLst`) to cache, e.g. a connector arrow's `adj1`/`adj2`. */
|
|
1795
|
-
shapeAdjustments?: Record<string, number>;
|
|
1796
|
-
}
|
|
1797
|
-
/** A node rendered as an SVG rect (rounded or flat). */
|
|
1798
|
-
interface RenderedRectNode extends RenderedNodeTextStyle, RenderedNodeIdentity {
|
|
1799
|
-
kind: 'rect';
|
|
1800
|
-
key: string;
|
|
1801
|
-
x: number;
|
|
1802
|
-
y: number;
|
|
1803
|
-
width: number;
|
|
1804
|
-
height: number;
|
|
1805
|
-
rx: number;
|
|
1806
|
-
fill: string;
|
|
1807
|
-
stroke: string;
|
|
1808
|
-
strokeWidth: number;
|
|
1809
|
-
opacity: number;
|
|
1810
|
-
text: string;
|
|
1811
|
-
fontSize: number;
|
|
1812
|
-
/** Centre x for text anchor. */
|
|
1813
|
-
textX: number;
|
|
1814
|
-
/** Centre y for text anchor. */
|
|
1815
|
-
textY: number;
|
|
1816
|
-
}
|
|
1817
|
-
/** A node rendered as an SVG circle. */
|
|
1818
|
-
interface RenderedCircleNode extends RenderedNodeTextStyle, RenderedNodeIdentity {
|
|
1819
|
-
kind: 'circle';
|
|
1820
|
-
key: string;
|
|
1821
|
-
cx: number;
|
|
1822
|
-
cy: number;
|
|
2127
|
+
/** RGBA colour as four 0-255 bytes. */
|
|
2128
|
+
interface RasterColor {
|
|
1823
2129
|
r: number;
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
* PowerPoint output is a non-circular ellipse - see
|
|
1828
|
-
* `smartart-layout-interpreter-cycle.ts`). Additive: every existing
|
|
1829
|
-
* producer that never sets these keeps rendering as the plain circle `r`
|
|
1830
|
-
* always described; a consumer that does not know about `rx`/`ry` still
|
|
1831
|
-
* gets a sensible circle (`r`) rather than an error. Only
|
|
1832
|
-
* `smartart-interpreter-drawing-bridge.ts`'s geometry conversion currently
|
|
1833
|
-
* reads them.
|
|
1834
|
-
*/
|
|
1835
|
-
rx?: number;
|
|
1836
|
-
ry?: number;
|
|
1837
|
-
fill: string;
|
|
1838
|
-
stroke: string;
|
|
1839
|
-
strokeWidth: number;
|
|
1840
|
-
opacity: number;
|
|
1841
|
-
text: string;
|
|
1842
|
-
fontSize: number;
|
|
1843
|
-
/**
|
|
1844
|
-
* Label anchor x. Defaults to `cx`; set when the label sits away from the
|
|
1845
|
-
* circle (target leader labels, timeline captions).
|
|
1846
|
-
*/
|
|
1847
|
-
textX?: number;
|
|
1848
|
-
/** Label anchor y. Defaults to `cy`. */
|
|
1849
|
-
textY?: number;
|
|
1850
|
-
/** SVG `text-anchor` for the label. Defaults to `middle`. */
|
|
1851
|
-
textAnchor?: 'start' | 'middle' | 'end';
|
|
1852
|
-
/**
|
|
1853
|
-
* How the label block sits relative to `textY`: `middle` centres it (the
|
|
1854
|
-
* default), `bottom` puts the last baseline on `textY` (label above the
|
|
1855
|
-
* node), `top` puts the first line's top on `textY` (label below).
|
|
1856
|
-
*/
|
|
1857
|
-
textBaseline?: 'top' | 'middle' | 'bottom';
|
|
2130
|
+
g: number;
|
|
2131
|
+
b: number;
|
|
2132
|
+
a: number;
|
|
1858
2133
|
}
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
/**
|
|
1871
|
-
|
|
1872
|
-
/**
|
|
1873
|
-
|
|
2134
|
+
declare function rgb(r: number, g: number, b: number, a?: number): RasterColor;
|
|
2135
|
+
/** A DOM-free RGBA canvas with basic drawing primitives. */
|
|
2136
|
+
declare class RasterCanvas {
|
|
2137
|
+
readonly width: number;
|
|
2138
|
+
readonly height: number;
|
|
2139
|
+
readonly pixels: Uint8ClampedArray;
|
|
2140
|
+
constructor(width: number, height: number, background: RasterColor);
|
|
2141
|
+
private setPixel;
|
|
2142
|
+
fillRect(x: number, y: number, w: number, h: number, color: RasterColor): void;
|
|
2143
|
+
strokeRect(x: number, y: number, w: number, h: number, color: RasterColor, lineWidth?: number): void;
|
|
2144
|
+
drawLine(x1: number, y1: number, x2: number, y2: number, color: RasterColor, lineWidth?: number): void;
|
|
2145
|
+
/** Draw text at (x, y) as the top-left corner, scaled by `scale` (default 1 = 5x7px per glyph). */
|
|
2146
|
+
drawText(text: string, x: number, y: number, color: RasterColor, scale?: number): void;
|
|
2147
|
+
/** Measured pixel width of `text` at the given scale, matching {@link drawText}. */
|
|
2148
|
+
static measureText(text: string, scale?: number): number;
|
|
2149
|
+
/** Truncate `text` with a trailing ellipsis so it fits within `maxWidth` px at `scale`. */
|
|
2150
|
+
static truncateToWidth(text: string, maxWidth: number, scale?: number): string;
|
|
2151
|
+
}
|
|
2152
|
+
//#endregion
|
|
2153
|
+
//#region pptx/core/utils/ole-icon-raster.d.ts
|
|
2154
|
+
/** The six OLE application glyphs the placeholder icon can render. */
|
|
2155
|
+
type OleIconGlyph = 'excel' | 'word' | 'powerpoint' | 'pdf' | 'visio' | 'mathtype' | 'unknown';
|
|
2156
|
+
/** Options controlling the rasterised icon image. */
|
|
2157
|
+
interface OleIconRasterOptions {
|
|
2158
|
+
/** Overall image width in pixels (default 128). */
|
|
2159
|
+
width?: number;
|
|
2160
|
+
/** Overall image height in pixels (default 96). */
|
|
2161
|
+
height?: number;
|
|
2162
|
+
/** Which glyph to draw (default `'unknown'`). */
|
|
2163
|
+
glyph?: OleIconGlyph;
|
|
2164
|
+
/** Caption text drawn under the icon (typically the object name). */
|
|
2165
|
+
caption?: string;
|
|
1874
2166
|
}
|
|
1875
|
-
type RenderedNode = RenderedRectNode | RenderedCircleNode | RenderedPolygonNode;
|
|
1876
2167
|
/**
|
|
1877
|
-
*
|
|
2168
|
+
* Render an OLE "show as icon" placeholder (glyph + caption) as a PNG.
|
|
1878
2169
|
*
|
|
1879
|
-
*
|
|
1880
|
-
*
|
|
1881
|
-
*
|
|
1882
|
-
* `dash` -> solid.
|
|
2170
|
+
* Deterministic and DOM-free: safe to call from a browser binding or from
|
|
2171
|
+
* the Node-hosted MCP tools. The caption is truncated with an ellipsis when
|
|
2172
|
+
* it would otherwise overflow the image width.
|
|
1883
2173
|
*/
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
d: string;
|
|
1888
|
-
/** Stroke colour. Default `#94a3b8`. */
|
|
1889
|
-
stroke?: string;
|
|
1890
|
-
/** Stroke width. Default `1.5`. */
|
|
1891
|
-
strokeWidth?: number;
|
|
1892
|
-
/** Stroke opacity. Default `0.5`. */
|
|
1893
|
-
opacity?: number;
|
|
1894
|
-
/** SVG `stroke-dasharray`. Default solid. */
|
|
1895
|
-
dash?: string;
|
|
1896
|
-
/**
|
|
1897
|
-
* Connector label text, from a `dgm:pt/@type="parTrans"` transition
|
|
1898
|
-
* point's `dgm:t` (`PptxSmartArtConnection.label`). PowerPoint's own
|
|
1899
|
-
* diagram editor lets a user type text directly onto an org-chart
|
|
1900
|
-
* relationship connector. `undefined` when the connector carries no text
|
|
1901
|
-
* (the overwhelming majority).
|
|
1902
|
-
*/
|
|
1903
|
-
text?: string;
|
|
1904
|
-
}
|
|
1905
|
-
/** The layout family applied to a SmartArt element. */
|
|
1906
|
-
type LayoutFamily = 'list' | 'process' | 'cycle' | 'hierarchy' | 'matrix' | 'radial' | 'pyramid' | 'venn' | 'funnel' | 'target' | 'gear' | 'timeline' | 'bending';
|
|
1907
|
-
/** Complete layout output for a single SmartArt family. */
|
|
1908
|
-
interface SmartArtLayoutResult {
|
|
1909
|
-
/** Rendered geometry nodes. */
|
|
1910
|
-
nodes: RenderedNode[];
|
|
1911
|
-
/** Connector lines (may be empty). */
|
|
1912
|
-
connectors: RenderedConnector[];
|
|
1913
|
-
/** SVG filter string for drop shadows, e.g. `"drop-shadow(…)"`. */
|
|
1914
|
-
shadowFilter: string | undefined;
|
|
1915
|
-
/**
|
|
1916
|
-
* Suggested viewBox string `"0 0 W H"`.
|
|
1917
|
-
* Callers should use the element's actual pixel dimensions.
|
|
1918
|
-
*/
|
|
1919
|
-
viewBox: string;
|
|
1920
|
-
/** The layout family that was applied. */
|
|
1921
|
-
family: LayoutFamily;
|
|
1922
|
-
}
|
|
1923
|
-
/** Bounding box passed to every layout function. */
|
|
1924
|
-
interface BoundingBox {
|
|
1925
|
-
width: number;
|
|
1926
|
-
height: number;
|
|
1927
|
-
}
|
|
2174
|
+
declare function renderOleIconPng(options?: OleIconRasterOptions): Uint8Array;
|
|
2175
|
+
/** Map a resolved OLE object type (see `ole-utils.ts`) onto an icon glyph. */
|
|
2176
|
+
declare function oleObjectTypeToGlyph(oleObjectType: string | undefined): OleIconGlyph;
|
|
1928
2177
|
//#endregion
|
|
1929
|
-
//#region pptx/core/utils/
|
|
1930
|
-
/**
|
|
1931
|
-
declare function
|
|
2178
|
+
//#region pptx/core/utils/ole-content-preview-raster.d.ts
|
|
2179
|
+
/** Render a spreadsheet grid preview (rows/columns of cell text) as a PNG. */
|
|
2180
|
+
declare function renderOleSheetPreviewPng(grid: OleSheetGrid$1): Uint8Array;
|
|
2181
|
+
/** Render a word-processing document preview (wrapped paragraph text) as a PNG. */
|
|
2182
|
+
declare function renderOleDocumentPreviewPng(paragraphs: readonly string[]): Uint8Array;
|
|
1932
2183
|
/**
|
|
1933
|
-
*
|
|
1934
|
-
*
|
|
2184
|
+
* Render a simplified preview of a nested PPTX deck's first slide: its
|
|
2185
|
+
* title and body text lines, stacked top to bottom. Not a visual replica of
|
|
2186
|
+
* the slide's real layout/design (that would require the full renderer,
|
|
2187
|
+
* which lives in each viewer binding, not core) -- just enough to show that
|
|
2188
|
+
* the preview reflects the edited deck's actual current text content.
|
|
1935
2189
|
*/
|
|
1936
|
-
declare function
|
|
2190
|
+
declare function renderOleDeckPreviewPng(firstSlideTextLines: readonly string[]): Uint8Array;
|
|
2191
|
+
//#endregion
|
|
2192
|
+
//#region pptx/core/utils/ole-edit-api.d.ts
|
|
1937
2193
|
/**
|
|
1938
|
-
* Resolve
|
|
1939
|
-
*
|
|
2194
|
+
* Resolve which in-place editor applies to an OLE element's current
|
|
2195
|
+
* payload. `'file'` covers both a genuinely unsupported format and a
|
|
2196
|
+
* missing/unreadable payload (both fall back to Replace File).
|
|
1940
2197
|
*/
|
|
1941
|
-
declare function
|
|
2198
|
+
declare function resolveOleEditorKindFromPayload(element: OlePptxElement): Promise<OlePayloadEditorKind>;
|
|
2199
|
+
/** Read the spreadsheet grid for an Excel-payload OLE element (xlsx or legacy xls). */
|
|
2200
|
+
declare function getOleSheetGrid(element: OlePptxElement): Promise<OleSheetGrid$1 | undefined>;
|
|
2201
|
+
/** Read the paragraph text for a Word-payload OLE element (`.docx` or legacy binary `.doc`). */
|
|
2202
|
+
declare function getOleDocumentParagraphs(element: OlePptxElement): Promise<string[] | undefined>;
|
|
2203
|
+
/** Read the raw payload bytes of a nested-deck (embedded PowerPoint) OLE element, for `PptxHandler.load`. */
|
|
2204
|
+
declare function getOleNestedDeckBytes(element: OlePptxElement): Promise<Uint8Array | undefined>;
|
|
1942
2205
|
/**
|
|
1943
|
-
*
|
|
1944
|
-
*
|
|
1945
|
-
*
|
|
1946
|
-
* into a `RenderedNode` leaves the binding defaults (white, no weight, no
|
|
1947
|
-
* italic) in place for an unstyled node.
|
|
2206
|
+
* Read every slide's full text-element inventory for a nested-deck OLE
|
|
2207
|
+
* element: each slide's index and every text-bearing shape's id + current
|
|
2208
|
+
* text (including shapes inside groups), not just a "title" slot.
|
|
1948
2209
|
*/
|
|
1949
|
-
declare function
|
|
1950
|
-
/** Compute a fading opacity for progressive nodes. */
|
|
1951
|
-
declare function nodeOpacity(index: number, total: number, style: SmartArtStyle): number;
|
|
1952
|
-
/** Drop-shadow filter string for the given style. */
|
|
1953
|
-
declare function styleShadow(style: SmartArtStyle): string | undefined;
|
|
1954
|
-
/** Stroke width for node outlines. */
|
|
1955
|
-
declare function styleStroke(style: SmartArtStyle): number;
|
|
1956
|
-
/** Truncate text at `max` chars, appending an ellipsis. */
|
|
1957
|
-
declare function truncate(text: string, max: number): string;
|
|
2210
|
+
declare function getOleNestedDeckDetail(element: OlePptxElement): Promise<OleNestedDeckSlideDetail[] | undefined>;
|
|
1958
2211
|
/**
|
|
1959
|
-
*
|
|
1960
|
-
*
|
|
2212
|
+
* Replace ONE text-bearing shape's text on a nested-deck OLE element's
|
|
2213
|
+
* given slide (identified by its element id, per {@link getOleNestedDeckDetail}),
|
|
2214
|
+
* re-saving the nested deck through its own full `PptxHandler.save` and
|
|
2215
|
+
* writing the result back onto the OLE element.
|
|
1961
2216
|
*/
|
|
1962
|
-
declare function
|
|
2217
|
+
declare function applyOleNestedDeckElementTextEdit(element: OlePptxElement, slideIndex: number, elementId: string, text: string): Promise<OlePptxElement>;
|
|
2218
|
+
/** Apply one cell edit to an Excel-payload OLE element's first worksheet. */
|
|
2219
|
+
declare function applyOleSheetCellEdit(element: OlePptxElement, edit: {
|
|
2220
|
+
row: number;
|
|
2221
|
+
col: number;
|
|
2222
|
+
value: string;
|
|
2223
|
+
}): Promise<OlePptxElement>;
|
|
2224
|
+
/** Replace one paragraph's text in a Word-payload (`.docx` or legacy binary `.doc`) OLE element. */
|
|
2225
|
+
declare function applyOleDocumentParagraphEdit(element: OlePptxElement, paragraphIndex: number, text: string): Promise<OlePptxElement>;
|
|
2226
|
+
/** Replace a nested-deck OLE element's payload with a re-saved presentation's bytes. */
|
|
2227
|
+
declare function applyOleNestedDeckBytes(element: OlePptxElement, savedDeckBytes: Uint8Array): Promise<OlePptxElement>;
|
|
1963
2228
|
/**
|
|
1964
|
-
*
|
|
1965
|
-
*
|
|
1966
|
-
*
|
|
1967
|
-
* @param x - Left edge.
|
|
1968
|
-
* @param y - Top edge.
|
|
1969
|
-
* @param w - Box width.
|
|
1970
|
-
* @param h - Box height.
|
|
1971
|
-
* @returns Space-separated `"x,y"` pairs.
|
|
2229
|
+
* Replace an OLE element's payload wholesale with an arbitrary file (the
|
|
2230
|
+
* "Replace File" action available for every payload kind, and the only
|
|
2231
|
+
* edit available for a generic Packager object or an unsupported format).
|
|
1972
2232
|
*/
|
|
1973
|
-
declare function
|
|
2233
|
+
declare function replaceOleFile(element: OlePptxElement, fileBytes: Uint8Array, fileName?: string): Promise<OlePptxElement>;
|
|
1974
2234
|
/**
|
|
1975
|
-
*
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1978
|
-
*
|
|
1979
|
-
* gear rides the existing `RenderedPolygonNode` contract every binding already
|
|
1980
|
-
* renders; the outline is identical either way because the teeth are straight
|
|
1981
|
-
* segments.
|
|
1982
|
-
*
|
|
1983
|
-
* @param cx - Centre x.
|
|
1984
|
-
* @param cy - Centre y.
|
|
1985
|
-
* @param outerR - Tooth-tip radius.
|
|
1986
|
-
* @param innerR - Tooth-valley radius.
|
|
1987
|
-
* @param teeth - Number of teeth.
|
|
1988
|
-
* @returns Space-separated `"x,y"` pairs.
|
|
2235
|
+
* Rename an OLE object's Object Name (`p:oleObj/@name`) and, when it is
|
|
2236
|
+
* displayed `showAsIcon`, regenerate the baked-in icon caption so the new
|
|
2237
|
+
* name is visible when the deck is reopened in real PowerPoint (which
|
|
2238
|
+
* renders the icon's `p:pic` blip as a static image, not a live label).
|
|
1989
2239
|
*/
|
|
1990
|
-
declare function
|
|
1991
|
-
/** Outline-stroke colour for a node given its computed stroke width. */
|
|
1992
|
-
declare function strokeFor(sw: number): string;
|
|
1993
|
-
/** Depth-first flatten of a nested node forest. */
|
|
1994
|
-
declare function flattenNodes(roots: PptxSmartArtNode[]): PptxSmartArtNode[];
|
|
2240
|
+
declare function setOleObjectName(element: OlePptxElement, name: string): Promise<OlePptxElement>;
|
|
1995
2241
|
//#endregion
|
|
1996
|
-
//#region pptx/core/utils/smartart-
|
|
1997
|
-
/**
|
|
1998
|
-
interface
|
|
1999
|
-
strokeWidth: number;
|
|
2000
|
-
stroke: string;
|
|
2001
|
-
shadow: string | undefined;
|
|
2002
|
-
}
|
|
2003
|
-
/** Derive the reusable stroke/shadow context for a style once per layout. */
|
|
2004
|
-
declare function styleContext(style: SmartArtStyle): StyleContext;
|
|
2005
|
-
interface RectParams {
|
|
2006
|
-
key: string;
|
|
2242
|
+
//#region pptx/core/utils/smartart-decompose-dispatch.d.ts
|
|
2243
|
+
/** The bounding box of the SmartArt graphic frame on the slide. */
|
|
2244
|
+
interface DrawingBounds {
|
|
2007
2245
|
x: number;
|
|
2008
2246
|
y: number;
|
|
2009
2247
|
width: number;
|
|
2010
2248
|
height: number;
|
|
2011
|
-
node: PptxSmartArtNode;
|
|
2012
|
-
index: number;
|
|
2013
|
-
total: number;
|
|
2014
|
-
palette: string[];
|
|
2015
|
-
style: SmartArtStyle;
|
|
2016
|
-
ctx: StyleContext;
|
|
2017
|
-
/** A font size shared by every item in the arranged set; see `presetBoxNode`. */
|
|
2018
|
-
fontSizeOverride?: number;
|
|
2019
|
-
/** See `RenderedNodeIdentity.descendantFontSize`'s doc comment. */
|
|
2020
|
-
descendantFontSize?: number;
|
|
2021
|
-
}
|
|
2022
|
-
/** Build a styled rounded-rect node covering `[x,y,width,height]`. */
|
|
2023
|
-
declare function rectNode(params: RectParams): RenderedRectNode;
|
|
2024
|
-
interface CircleParams {
|
|
2025
|
-
key: string;
|
|
2026
|
-
cx: number;
|
|
2027
|
-
cy: number;
|
|
2028
|
-
r: number;
|
|
2029
|
-
/** Independent horizontal/vertical radii for a genuine ellipse; see `RenderedCircleNode.rx`/`.ry`'s doc comment. */
|
|
2030
|
-
rx?: number;
|
|
2031
|
-
ry?: number;
|
|
2032
|
-
node: PptxSmartArtNode;
|
|
2033
|
-
index: number;
|
|
2034
|
-
total: number;
|
|
2035
|
-
palette: string[];
|
|
2036
|
-
style: SmartArtStyle;
|
|
2037
|
-
ctx: StyleContext;
|
|
2038
|
-
/** A font size shared by every item in the arranged set; see `presetBoxNode`. */
|
|
2039
|
-
fontSizeOverride?: number;
|
|
2040
|
-
/** See `RenderedNodeIdentity.descendantFontSize`'s doc comment. */
|
|
2041
|
-
descendantFontSize?: number;
|
|
2042
|
-
}
|
|
2043
|
-
/** Build a styled circle node centred at `[cx,cy]`. */
|
|
2044
|
-
declare function circleNode(params: CircleParams): RenderedCircleNode;
|
|
2045
|
-
interface PolygonParams {
|
|
2046
|
-
key: string;
|
|
2047
|
-
points: string;
|
|
2048
|
-
textX: number;
|
|
2049
|
-
textY: number;
|
|
2050
|
-
fontWidth: number;
|
|
2051
|
-
fontHeight: number;
|
|
2052
|
-
node: PptxSmartArtNode;
|
|
2053
|
-
index: number;
|
|
2054
|
-
total: number;
|
|
2055
|
-
palette: string[];
|
|
2056
|
-
style: SmartArtStyle;
|
|
2057
|
-
ctx: StyleContext;
|
|
2058
|
-
/** A font size shared by every item in the arranged set; see `presetBoxNode`. */
|
|
2059
|
-
fontSizeOverride?: number;
|
|
2060
|
-
/** See `RenderedNodeIdentity.descendantFontSize`'s doc comment. */
|
|
2061
|
-
descendantFontSize?: number;
|
|
2062
|
-
}
|
|
2063
|
-
/** Build a styled polygon node from an SVG points string. */
|
|
2064
|
-
declare function polygonNode(params: PolygonParams): RenderedPolygonNode;
|
|
2065
|
-
//#endregion
|
|
2066
|
-
//#region pptx/core/utils/smartart-layout-interpreter-arrangement-kind.d.ts
|
|
2067
|
-
/** Arrangement families the interpreter can execute. */
|
|
2068
|
-
type ArrangementKind = 'linear' | 'cycle' | 'hierarchy' | 'pyramid' | 'snake' | 'composite' | 'conn' | 'spacer' | 'text';
|
|
2069
|
-
/** The arranger `layoutNode` plus the resolved arrangement family. */
|
|
2070
|
-
interface ArrangementPlan {
|
|
2071
|
-
kind: ArrangementKind;
|
|
2072
|
-
/** The `layoutNode` carrying the arrangement algorithm + its constraints. */
|
|
2073
|
-
node: PptxSmartArtLayoutNode;
|
|
2074
2249
|
}
|
|
2075
2250
|
//#endregion
|
|
2076
|
-
//#region pptx/core/utils/smartart-
|
|
2077
|
-
/** Find the first constraint of `type`, optionally restricted to a relationship. */
|
|
2078
|
-
declare function findConstraint(constraints: PptxSmartArtConstraint[] | undefined, type: string, forRel?: PptxSmartArtConstraint['for']): PptxSmartArtConstraint | undefined;
|
|
2079
|
-
/** Clamp a ratio to a matching `dgm:ruleLst` numeric rule's `max`, when present. */
|
|
2080
|
-
declare function clampByRules(value: number, rules: PptxSmartArtNumericRule[] | undefined, type: string): number;
|
|
2251
|
+
//#region pptx/core/utils/smartart-decompose.d.ts
|
|
2081
2252
|
/**
|
|
2082
|
-
*
|
|
2253
|
+
* Decompose a SmartArt data model into an array of standard PptxElements.
|
|
2083
2254
|
*
|
|
2084
|
-
*
|
|
2085
|
-
*
|
|
2086
|
-
*
|
|
2087
|
-
*
|
|
2255
|
+
* @param smartArtData Parsed SmartArt data model from the PptxHandler.
|
|
2256
|
+
* @param containerBounds The bounding box of the SmartArt graphic frame on the slide.
|
|
2257
|
+
* @param themeColorMap Optional theme colour map (accent1-accent6 keys) for colour cycling.
|
|
2258
|
+
* @returns An array of PptxElements (shapes + connectors), or `undefined` when decomposition is not possible.
|
|
2259
|
+
*/
|
|
2260
|
+
declare function decomposeSmartArt(smartArtData: PptxSmartArtData, containerBounds: DrawingBounds, themeColorMap?: Record<string, string>): PptxElement[] | undefined;
|
|
2261
|
+
/**
|
|
2262
|
+
* Compute SmartArt shapes WITHOUT consulting `smartArtData.drawingShapes`:
|
|
2263
|
+
* the DiagramML interpreter when a recognised `layoutDefinition` is present,
|
|
2264
|
+
* falling back through the named/algorithmic/heuristic family approximation.
|
|
2088
2265
|
*
|
|
2089
|
-
*
|
|
2090
|
-
*
|
|
2091
|
-
*
|
|
2266
|
+
* Split out of {@link decomposeSmartArt} so `relayoutSmartArt` (recomputing
|
|
2267
|
+
* after a node is added/removed/reordered) can reuse the exact same
|
|
2268
|
+
* interpretation + fallback chain without also reprojecting whatever stale
|
|
2269
|
+
* `drawingShapes` happen to be on the data - `decomposeSmartArt`'s
|
|
2270
|
+
* drawing-shape branch is a REPROJECTION of cached geometry, not a "nothing
|
|
2271
|
+
* else worked" fallback, so `relayoutSmartArt` needs this narrower function
|
|
2272
|
+
* to keep its own "return the untouched existing shapes" fallback meaningful.
|
|
2092
2273
|
*/
|
|
2093
|
-
declare function
|
|
2274
|
+
declare function computeSmartArtElementsWithoutCache(smartArtData: PptxSmartArtData, containerBounds: DrawingBounds, themeColorMap?: Record<string, string>): PptxElement[] | undefined;
|
|
2094
2275
|
//#endregion
|
|
2095
|
-
//#region pptx/core/utils/smartart-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
declare function numericParam(node: PptxSmartArtLayoutNode, type: string, fallback: number): number;
|
|
2102
|
-
/** Orientation + ordering resolved from `linDir` and presentation variables. */
|
|
2103
|
-
interface FlowDirection {
|
|
2104
|
-
orientation: 'horizontal' | 'vertical';
|
|
2105
|
-
reverse: boolean;
|
|
2276
|
+
//#region pptx/core/utils/smartart-helpers.d.ts
|
|
2277
|
+
interface ContainerBounds {
|
|
2278
|
+
x: number;
|
|
2279
|
+
y: number;
|
|
2280
|
+
width: number;
|
|
2281
|
+
height: number;
|
|
2106
2282
|
}
|
|
2283
|
+
/** Reset the counter — useful in tests. */
|
|
2284
|
+
declare function resetDecomposeCounter(): void;
|
|
2285
|
+
/** A pptx SmartArt node and its child subtrees. */
|
|
2286
|
+
type TreeNode = TreeNode$1<TextStyle>;
|
|
2287
|
+
//#endregion
|
|
2288
|
+
//#region diagram/layout/smartart-layout-style-helpers.d.ts
|
|
2289
|
+
/** Pick a colour from the palette, cycling for any index. */
|
|
2290
|
+
declare function colour(index: number, palette: string[]): string;
|
|
2107
2291
|
/**
|
|
2108
|
-
* Resolve
|
|
2109
|
-
*
|
|
2110
|
-
* reversed direction both flip the placement order.
|
|
2292
|
+
* Resolve the effective fill for a node: an explicit per-node
|
|
2293
|
+
* `node.style.fillColor` override wins, otherwise the cycled palette colour.
|
|
2111
2294
|
*/
|
|
2112
|
-
declare function
|
|
2113
|
-
//#endregion
|
|
2114
|
-
//#region pptx/core/utils/smartart-layout-interpreter-model.d.ts
|
|
2295
|
+
declare function nodeFill(node: DiagramNode, index: number, palette: string[]): string;
|
|
2115
2296
|
/**
|
|
2116
|
-
*
|
|
2117
|
-
*
|
|
2118
|
-
* Precedence (highest first):
|
|
2119
|
-
* 1. hierarchy - any `hierRoot`/`hierChild` (org-chart / tree) always wins.
|
|
2120
|
-
* 2. choose - a `dgm:choose` decidable from `nodeCount` selects its branch's
|
|
2121
|
-
* structural algorithm instead of the blind first-found one (never a
|
|
2122
|
-
* pos-guarded child - see `smartart-layout-interpreter-position-
|
|
2123
|
-
* family.ts`). Undecidable chooses fall through, EXCEPT: (a) when the
|
|
2124
|
-
* node also independently qualifies as its own genuine composite (see
|
|
2125
|
-
* (3)) AND the result was found by tunnelling 2+ `dgm:layoutNode` levels
|
|
2126
|
-
* into one of its own child slots - `tunnelsPastOwnCompositeSlot`
|
|
2127
|
-
* (`smartart-layout-interpreter-choose-depth.ts`, corpus-measured,
|
|
2128
|
-
* monotonic) - the node's own composite identity wins instead; (b) when
|
|
2129
|
-
* the resolved branch's own subtree contains a REAL `hierChild`/
|
|
2130
|
-
* `hierRoot` construct - `hasHierarchyDescendant` (`smartart-layout-
|
|
2131
|
-
* interpreter-hierarchy-descendant.ts`, SESSION 24) - a shallow packing
|
|
2132
|
-
* wrapper (e.g. a labelled-hierarchy's own `hierFlow`) must not claim
|
|
2133
|
-
* the diagram away from the REAL nested hierarchy, found LATER in the
|
|
2134
|
-
* same walk but with no chance to compete once `chosen` is already set.
|
|
2135
|
-
* 3. composite - a `composite` whose child slots carry positioning
|
|
2136
|
-
* constraints (maps data points into fixed slots). A passive composite
|
|
2137
|
-
* wrapper is skipped so its inner arrangement wins.
|
|
2138
|
-
* 4. structural - the first `lin`/`cycle`/`pyra`/`snake` in document order.
|
|
2139
|
-
* 5. conn/sp/tx - only when they are the dominant/only algorithm (no
|
|
2140
|
-
* structural or slot-mapping composite present) and carry
|
|
2141
|
-
* constraints/children.
|
|
2142
|
-
*
|
|
2143
|
-
* `nodeCount` (the flat data-point count) is optional; when omitted the choose
|
|
2144
|
-
* step is skipped and the blind first-alg behaviour is preserved. Returns
|
|
2145
|
-
* `undefined` when nothing is recognised, so the caller keeps the legacy
|
|
2146
|
-
* family approximation.
|
|
2147
|
-
*
|
|
2148
|
-
* `presLayoutVars`, when supplied, lets a `func="var"` `dgm:if` decide its
|
|
2149
|
-
* branch. Every `dgm:choose` visited also gets its declaring node's sibling
|
|
2150
|
-
* position/count/depth/tree-max-depth, so `"pos"`/`"revPos"`/`"posEven"`/
|
|
2151
|
-
* `"posOdd"`/`"depth"`/`"maxDepth"` are decidable here too, not just `"cnt"`/
|
|
2152
|
-
* `"var"`. `flatNodes`, when supplied, additionally lets a `func="cnt"`
|
|
2153
|
-
* `dgm:if` whose `@axis` needs real compound navigation decide too (ECMA-376
|
|
2154
|
-
* 21.4.7.5 - see `smartart-layout-interpreter-when.ts`'s `resolveAxisCount`).
|
|
2155
|
-
* Each omitted parameter keeps the coarser pre-existing fallback.
|
|
2156
|
-
*
|
|
2157
|
-
* ROUND 42: a `dgm:choose`-flattened branch reached through one of an
|
|
2158
|
-
* ALREADY-resolved `compositeSlot`'s own named `dgm:forEach` children never
|
|
2159
|
-
* sets `chosen` - see `isMappedSlotAlternative`'s own doc comment.
|
|
2297
|
+
* Resolve the effective outline stroke for a node: an explicit per-node
|
|
2298
|
+
* `node.style.lineColor` override wins, otherwise the style-derived default.
|
|
2160
2299
|
*/
|
|
2161
|
-
declare function
|
|
2162
|
-
//#endregion
|
|
2163
|
-
//#region pptx/core/utils/smartart-layout-interpreter-when.d.ts
|
|
2300
|
+
declare function nodeStroke(node: DiagramNode, defaultStroke: string): string;
|
|
2164
2301
|
/**
|
|
2165
|
-
*
|
|
2166
|
-
*
|
|
2167
|
-
*
|
|
2168
|
-
*
|
|
2169
|
-
*
|
|
2170
|
-
* node's own tree location (position among siblings, sibling count, depth,
|
|
2171
|
-
* the tree's max depth) for every `choose` it walks, so `pos`/`revPos`/
|
|
2172
|
-
* `posEven`/`posOdd`/`depth`/`maxDepth` are decidable in production, not just
|
|
2173
|
-
* in unit tests. A caller with no tree location to offer (e.g. a bare
|
|
2174
|
-
* `chooseAlgType` call from a test) simply omits these fields and those
|
|
2175
|
-
* functions stay undecidable, exactly as before - no regression.
|
|
2302
|
+
* Resolve the per-node label styling from an explicit `node.style` override.
|
|
2303
|
+
*
|
|
2304
|
+
* Returns only the fields the node actually overrides, so spreading the result
|
|
2305
|
+
* into a `RenderedNode` leaves the binding defaults (white, no weight, no
|
|
2306
|
+
* italic) in place for an unstyled node.
|
|
2176
2307
|
*/
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
/** Diagram presentation layout variables, for `func="var"` (`@arg` names the variable). */
|
|
2187
|
-
presLayoutVars?: PptxSmartArtPresLayoutVars;
|
|
2188
|
-
/**
|
|
2189
|
-
* The diagram's own flat data-model node array (`parentId`-linked), for a
|
|
2190
|
-
* `func="cnt"` `dgm:if` whose `@axis` is declared at all - a single bare
|
|
2191
|
-
* hop (`axis="ch"`, "the context point's own children"), a sub-range
|
|
2192
|
-
* select (`@st`/`@cnt`), or a compound multi-hop chain (`axis="ch ch"`,
|
|
2193
|
-
* "my first child's own children") - see {@link resolveAxisCount}.
|
|
2194
|
-
* Omitted by a caller with no data-model tree to offer keeps the older,
|
|
2195
|
-
* coarser `nodeCount`-only behaviour for `cnt` exactly as before (no
|
|
2196
|
-
* regression for a caller that never had this).
|
|
2197
|
-
*/
|
|
2198
|
-
nodes?: PptxSmartArtNode[];
|
|
2199
|
-
/**
|
|
2200
|
-
* The point(s) a `dgm:if`'s own enclosing `dgm:forEach` bound (its
|
|
2201
|
-
* `PptxSmartArtLayoutNode.forEachOrigin`, already resolved to real data
|
|
2202
|
-
* nodes), for a `func="maxDepth"` `dgm:if` whose `@axis` needs anchor-
|
|
2203
|
-
* relative navigation rather than the diagram root - see {@link
|
|
2204
|
-
* resolveAxisMaxDepth}'s own doc comment (`smartart-layout-interpreter-
|
|
2205
|
-
* axis-depth.ts`) for the derivation. Omitted by a caller with no anchor
|
|
2206
|
-
* to offer keeps the older `context.maxDepth`-only behaviour for
|
|
2207
|
-
* `maxDepth` exactly as before (no regression for a caller that never had
|
|
2208
|
-
* this - no existing caller populates this field yet).
|
|
2209
|
-
*/
|
|
2210
|
-
anchor?: PptxSmartArtNode[];
|
|
2211
|
-
}
|
|
2212
|
-
//#endregion
|
|
2213
|
-
//#region pptx/core/utils/smartart-constraint-resolve.d.ts
|
|
2308
|
+
declare function nodeTextStyle(node: DiagramNode): RenderedNodeTextStyle;
|
|
2309
|
+
/** Compute a fading opacity for progressive nodes. */
|
|
2310
|
+
declare function nodeOpacity(index: number, total: number, style: DiagramStyleIntensity): number;
|
|
2311
|
+
/** Drop-shadow filter string for the given style. */
|
|
2312
|
+
declare function styleShadow(style: DiagramStyleIntensity): string | undefined;
|
|
2313
|
+
/** Stroke width for node outlines. */
|
|
2314
|
+
declare function styleStroke(style: DiagramStyleIntensity): number;
|
|
2315
|
+
/** Truncate text at `max` chars, appending an ellipsis. */
|
|
2316
|
+
declare function truncate(text: string, max: number): string;
|
|
2214
2317
|
/**
|
|
2215
|
-
*
|
|
2216
|
-
*
|
|
2217
|
-
* declares it, a reference cannot be resolved, or resolution would cycle - the
|
|
2218
|
-
* caller is expected to fall back to its own default in every such case.
|
|
2318
|
+
* Fit font size to available space.
|
|
2319
|
+
* Uses a 0.6 char-width heuristic; clamps to `minSize` (6pt by default).
|
|
2219
2320
|
*/
|
|
2220
|
-
declare function
|
|
2221
|
-
//#endregion
|
|
2222
|
-
//#region pptx/core/utils/smartart-constraint-solver.d.ts
|
|
2223
|
-
/** One `dgm:constr` plus the role that declared it. Exposed for
|
|
2224
|
-
* `smartart-constraint-declared-by.ts`, which needs to filter candidates by
|
|
2225
|
-
* `declaringRole` before running the same reference-walking logic. */
|
|
2226
|
-
interface IndexedConstraint {
|
|
2227
|
-
constraint: PptxSmartArtConstraint;
|
|
2228
|
-
/** Name of the layoutNode whose `constrLst` declared this entry ("self"). */
|
|
2229
|
-
declaringRole: string;
|
|
2230
|
-
}
|
|
2231
|
-
/** One-shot index over every `dgm:constr` in a layout definition. */
|
|
2232
|
-
interface ConstraintIndex {
|
|
2233
|
-
entries: Map<string, IndexedConstraint[]>;
|
|
2234
|
-
rootRole: string;
|
|
2235
|
-
}
|
|
2236
|
-
/** True when a constraint carries any `ref*` attribute (a relative constraint). */
|
|
2237
|
-
declare function hasReference(constraint: PptxSmartArtConstraint): boolean;
|
|
2238
|
-
/** The role name a layoutNode's own constraints/references resolve under. */
|
|
2239
|
-
declare function roleOf(node: PptxSmartArtLayoutNode | undefined): string;
|
|
2321
|
+
declare function fitFontSize(text: string, maxWidth: number, maxHeight: number, baseSize: number, minSize?: number): number;
|
|
2240
2322
|
/**
|
|
2241
|
-
*
|
|
2242
|
-
* `
|
|
2243
|
-
*
|
|
2244
|
-
*
|
|
2323
|
+
* SVG polygon `points` for a chevron / arrow inscribed in the box at (`x`, `y`)
|
|
2324
|
+
* sized `w` x `h`: a notch on the left edge and a tip on the right.
|
|
2325
|
+
*
|
|
2326
|
+
* @param x - Left edge.
|
|
2327
|
+
* @param y - Top edge.
|
|
2328
|
+
* @param w - Box width.
|
|
2329
|
+
* @param h - Box height.
|
|
2330
|
+
* @returns Space-separated `"x,y"` pairs.
|
|
2245
2331
|
*/
|
|
2246
|
-
declare
|
|
2332
|
+
declare function chevronPoints(x: number, y: number, w: number, h: number): string;
|
|
2247
2333
|
/**
|
|
2248
|
-
*
|
|
2334
|
+
* SVG polygon `points` for a cog wheel centred at (`cx`, `cy`).
|
|
2249
2335
|
*
|
|
2250
|
-
* `
|
|
2251
|
-
*
|
|
2252
|
-
*
|
|
2253
|
-
*
|
|
2254
|
-
*
|
|
2255
|
-
*
|
|
2256
|
-
*
|
|
2336
|
+
* Vertices alternate between `outerR` (tooth tip) and `innerR` (tooth valley),
|
|
2337
|
+
* two vertices per tooth. Emitted as polygon points rather than a path so the
|
|
2338
|
+
* gear rides the existing `RenderedPolygonNode` contract every binding already
|
|
2339
|
+
* renders; the outline is identical either way because the teeth are straight
|
|
2340
|
+
* segments.
|
|
2341
|
+
*
|
|
2342
|
+
* @param cx - Centre x.
|
|
2343
|
+
* @param cy - Centre y.
|
|
2344
|
+
* @param outerR - Tooth-tip radius.
|
|
2345
|
+
* @param innerR - Tooth-valley radius.
|
|
2346
|
+
* @param teeth - Number of teeth.
|
|
2347
|
+
* @returns Space-separated `"x,y"` pairs.
|
|
2257
2348
|
*/
|
|
2258
|
-
declare function
|
|
2349
|
+
declare function gearPoints(cx: number, cy: number, outerR: number, innerR: number, teeth: number): string;
|
|
2350
|
+
/** Outline-stroke colour for a node given its computed stroke width. */
|
|
2351
|
+
declare function strokeFor(sw: number): string;
|
|
2352
|
+
/** Depth-first flatten of a nested node forest. */
|
|
2353
|
+
declare function flattenNodes<S>(roots: DiagramNode<S>[]): DiagramNode<S>[];
|
|
2354
|
+
//#endregion
|
|
2355
|
+
//#region pptx/core/utils/smartart-layout-interpreter-model.d.ts
|
|
2356
|
+
/** The arranger a pptx layout definition resolves to (its node keeps the pptx raw slots). */
|
|
2357
|
+
type ArrangementPlan = ArrangementPlan$1<XmlObject>;
|
|
2358
|
+
/** Which arrangement algorithm drives the diagram (see the diagram module). */
|
|
2359
|
+
declare function discoverArrangement(definition: PptxSmartArtLayoutDefinition, nodeCount?: number, presLayoutVars?: PptxSmartArtPresLayoutVars, flatNodes?: PptxSmartArtNode[]): ArrangementPlan | undefined;
|
|
2259
2360
|
//#endregion
|
|
2260
|
-
//#region
|
|
2361
|
+
//#region diagram/layout/smartart-constraint-declared-by.d.ts
|
|
2261
2362
|
/**
|
|
2262
2363
|
* Resolve a role's constraint of `type`, considering ONLY declarations made
|
|
2263
2364
|
* by `declaringRole` (typically the ARRANGER itself, via its own `for="ch"
|
|
@@ -2281,207 +2382,28 @@ declare function buildConstraintIndex(definition: PptxSmartArtLayoutDefinition,
|
|
|
2281
2382
|
*/
|
|
2282
2383
|
declare function resolveConstraintDeclaredBy(index: ConstraintIndex, role: string, type: string, declaringRole: string): number | undefined;
|
|
2283
2384
|
//#endregion
|
|
2284
|
-
//#region pptx/core/utils/smartart-constraint-ratio-fallback.d.ts
|
|
2285
|
-
/**
|
|
2286
|
-
* Drop-in replacement for a bare `ratioConstraint(...)` call: tries the exact
|
|
2287
|
-
* same literal scan first (so every already-passing behaviour is unchanged),
|
|
2288
|
-
* then falls back to resolving a relative constraint declared for `role`
|
|
2289
|
-
* before giving up to `fallback`.
|
|
2290
|
-
*/
|
|
2291
|
-
declare function resolveRatioConstraint(constraints: PptxSmartArtConstraint[] | undefined, index: ConstraintIndex, role: string, types: readonly string[], fallback: number, rules?: PptxSmartArtNumericRule[]): number;
|
|
2292
|
-
//#endregion
|
|
2293
2385
|
//#region pptx/core/utils/smartart-layout-interpreter-choose-algorithm.d.ts
|
|
2294
|
-
/**
|
|
2295
|
-
* Resolve a decidable `dgm:choose` on `node` to the structural algorithm type
|
|
2296
|
-
* it selects, or `undefined` when no choose is decidable (in which case the
|
|
2297
|
-
* caller keeps the blind first-recognised-alg behaviour). Decidable on
|
|
2298
|
-
* `func="cnt"` from `nodeCount` alone, or on `func="var"` when `context`
|
|
2299
|
-
* carries `presLayoutVars`; `pos`/`revPos`/`posEven`/`posOdd`/`depth`/
|
|
2300
|
-
* `maxDepth` are decidable too when `context` supplies the declaring layout
|
|
2301
|
-
* node's own tree location (`discoverArrangement` in
|
|
2302
|
-
* `smartart-layout-interpreter-model.ts` now supplies it for every `choose`
|
|
2303
|
-
* it walks). `context` defaults to `{}` for source compatibility with
|
|
2304
|
-
* existing callers that don't have a tree location to offer (in which case
|
|
2305
|
-
* those functions stay undecidable, exactly as before).
|
|
2306
|
-
*/
|
|
2386
|
+
/** The structural algorithm type a decidable `dgm:choose` on `node` selects. */
|
|
2307
2387
|
declare function chooseAlgType(node: PptxSmartArtLayoutNode, nodeCount: number, context?: WhenContext): string | undefined;
|
|
2308
2388
|
//#endregion
|
|
2309
|
-
//#region pptx/core/utils/smartart-layout-interpreter-flow.d.ts
|
|
2310
|
-
/**
|
|
2311
|
-
* Apply the driving `dgm:forEach` selection semantics (`st` / `cnt` / `step`) to
|
|
2312
|
-
* the flat data-model points and, when the iterator declares `hideLastTrans`,
|
|
2313
|
-
* drop the trailing slot. `st` is 1-based (DiagramML default 1); `cnt` of 0
|
|
2314
|
-
* means "all"; `step` defaults to 1. Returns `flat` unchanged when the arranger
|
|
2315
|
-
* node carries no iterator.
|
|
2316
|
-
*
|
|
2317
|
-
* When `node` declares MORE THAN ONE qualifying iterator ({@link
|
|
2318
|
-
* qualifyingIterators}), or nests a `followSib`/`ptType="node"` iterator
|
|
2319
|
-
* inside one iterator's own item template ({@link
|
|
2320
|
-
* collectFollowSibNodeCounts}), the result is the UNION of every iterator's
|
|
2321
|
-
* own selection, in data order - `Target List`'s 7 independent single-point
|
|
2322
|
-
* ring iterators, and `Alternating Flow`'s `step="2"` primary paired with a
|
|
2323
|
-
* nested `followSib` "next point" secondary, both resolve this way. The
|
|
2324
|
-
* common case (exactly one iterator, no nested pairing) is unaffected: the
|
|
2325
|
-
* union of one iterator's own indices is exactly its own selection, same as
|
|
2326
|
-
* before this generalisation.
|
|
2327
|
-
*
|
|
2328
|
-
* @param roots The original (un-flattened) top-level nodes. When EVERY
|
|
2329
|
-
* qualifying iterator's axis is exactly `ch` (see {@link isChildOnlyAxis}),
|
|
2330
|
-
* selection runs over `roots` instead of the depth-first-flattened `flat`,
|
|
2331
|
-
* so a node with children gets exactly one box; the caller
|
|
2332
|
-
* (`interpretedLayoutToElements`) folds each unrendered descendant's text
|
|
2333
|
-
* into its ancestor's box as additional paragraphs. Omit `roots` (or pass
|
|
2334
|
-
* it equal to `flat`) to keep the previous flat-only behaviour, e.g. for
|
|
2335
|
-
* callers with no tree to offer.
|
|
2336
|
-
*/
|
|
2337
|
-
declare function selectArrangedNodes(node: PptxSmartArtLayoutNode, flat: PptxSmartArtNode[], roots?: PptxSmartArtNode[]): PptxSmartArtNode[];
|
|
2338
|
-
//#endregion
|
|
2339
|
-
//#region pptx/core/utils/smartart-layout-interpreter-snake.d.ts
|
|
2340
|
-
/** Execute the `snake` algorithm: a grid honouring `grDir`/`flowDir`/`contDir`/`bkpt`. */
|
|
2341
|
-
declare function arrangeSnake(plan: ArrangementPlan, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, PptxSmartArtNode[]>, fontName?: string): SmartArtLayoutResult;
|
|
2342
|
-
//#endregion
|
|
2343
2389
|
//#region pptx/core/utils/smartart-layout-interpreter-linear.d.ts
|
|
2344
|
-
/**
|
|
2345
|
-
declare function arrangeLinear(plan: ArrangementPlan, flow: FlowDirection, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, PptxSmartArtNode[]>, fontName?: string, presLayoutVars?: PptxSmartArtPresLayoutVars): SmartArtLayoutResult;
|
|
2346
|
-
//#endregion
|
|
2347
|
-
//#region pptx/core/utils/smartart-layout-interpreter-cycle.d.ts
|
|
2348
|
-
/** Execute the `cycle` algorithm: points on a ring around the box centre. */
|
|
2349
|
-
declare function arrangeCycle(plan: ArrangementPlan, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex, hubAlreadyStripped?: boolean, childrenOf?: Map<string, PptxSmartArtNode[]>, fontName?: string, declaringRoleChain?: readonly string[], sizeBox?: BoundingBox): SmartArtLayoutResult;
|
|
2390
|
+
/** Lay `nodes` out along one axis (see the diagram module). */
|
|
2391
|
+
declare function arrangeLinear(plan: ArrangementPlan$1, flow: FlowDirection, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, PptxSmartArtNode[]>, fontName?: string, presLayoutVars?: PptxSmartArtPresLayoutVars): SmartArtLayoutResult;
|
|
2350
2392
|
//#endregion
|
|
2351
2393
|
//#region pptx/core/utils/smartart-layout-interpreter-hierarchy.d.ts
|
|
2352
2394
|
/** Execute the hierarchy algorithm over the data-model node tree. */
|
|
2353
2395
|
declare function arrangeHierarchy(nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, presLayoutVars: PptxSmartArtPresLayoutVars | undefined, connectorLabels?: Map<string, string>, algorithmNode?: PptxSmartArtLayoutNode, index?: ConstraintIndex, childOrder?: Map<string, number>, fontName?: string): SmartArtLayoutResult;
|
|
2354
2396
|
//#endregion
|
|
2355
|
-
//#region pptx/core/utils/smartart-layout-interpreter-pyramid.d.ts
|
|
2356
|
-
/** Execute the `pyra` algorithm: stacked trapezoid bands (apex at top). */
|
|
2357
|
-
declare function arrangePyramid(plan: ArrangementPlan, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, PptxSmartArtNode[]>, fontName?: string): SmartArtLayoutResult;
|
|
2358
|
-
//#endregion
|
|
2359
2397
|
//#region pptx/core/utils/smartart-layout-interpreter-composite.d.ts
|
|
2360
|
-
/**
|
|
2361
|
-
|
|
2362
|
-
*
|
|
2363
|
-
* Returns `undefined` when the composite has no child that positions itself, so
|
|
2364
|
-
* the caller can fall back to its legacy family approximation.
|
|
2365
|
-
*
|
|
2366
|
-
* @param nodes The arranged top-level points (see the module doc comment for
|
|
2367
|
-
* how `self`/`des` slots consume them).
|
|
2368
|
-
* @param childrenOf Full data-model parent/child map (`smartArtChildrenOf`),
|
|
2369
|
-
* for folding a `des`-axis slot's content. Omit (defaults to empty) when
|
|
2370
|
-
* the caller has no tree to offer - `des` slots then simply render empty.
|
|
2371
|
-
* @param flat The diagram's full flat (depth-first) node list, for a
|
|
2372
|
-
* `dgm:choose`-guarded composite with no `self`-axis slot anywhere (see
|
|
2373
|
-
* {@link arrangeByChooseAwareSlots}). Omit (defaults to `nodes`) when the
|
|
2374
|
-
* caller has no fuller list to offer - a composite that never needs
|
|
2375
|
-
* root-relative resolution is unaffected either way.
|
|
2376
|
-
* @param presLayoutVars ROUND 42: threaded to `renderChildRepeaterOrNestedCycle`
|
|
2377
|
-
* so a choose-wrapped nested-cycle slot's `func="var"` can decide. Omit
|
|
2378
|
-
* when absent - a composite with no such slot is unaffected either way.
|
|
2379
|
-
*/
|
|
2380
|
-
declare function arrangeComposite(plan: ArrangementPlan, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, PptxSmartArtNode[]>, flat?: PptxSmartArtNode[], fontName?: string, presLayoutVars?: PptxSmartArtPresLayoutVars): SmartArtLayoutResult | undefined;
|
|
2398
|
+
/** Place `nodes` into a composite layout's declared slots (see the diagram module). */
|
|
2399
|
+
declare function arrangeComposite(plan: ArrangementPlan$1, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, PptxSmartArtNode[]>, flat?: PptxSmartArtNode[], fontName?: string, presLayoutVars?: PptxSmartArtPresLayoutVars): SmartArtLayoutResult | undefined;
|
|
2381
2400
|
//#endregion
|
|
2382
2401
|
//#region pptx/core/utils/smartart-layout-interpreter-aux.d.ts
|
|
2383
|
-
/**
|
|
2384
|
-
|
|
2385
|
-
* connector between each consecutive pair (N nodes -> N-1 connectors), honouring
|
|
2386
|
-
* `begSty`/`endSty` (arrowhead presence), `connRout` (straight/bend/curve),
|
|
2387
|
-
* `dim` (facing-edge vs centre-to-centre routing), and `linDir` ordering.
|
|
2388
|
-
*
|
|
2389
|
-
* Limitation: this is a standalone best-effort pass. A real `conn` node draws
|
|
2390
|
-
* against positions computed by the sibling arranger; without that shared
|
|
2391
|
-
* geometry we re-run the linear arrangement here. `presLayoutVars` direction is
|
|
2392
|
-
* not threaded through this signature, so only `linDir` reversal is honoured.
|
|
2393
|
-
* `bendPt`'s finer corner-routing variants collapse to one fixed midpoint elbow
|
|
2394
|
-
* (see `smartart-layout-interpreter-conn-path.ts`'s module doc).
|
|
2395
|
-
*/
|
|
2396
|
-
declare function arrangeConn(plan: ArrangementPlan, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex): SmartArtLayoutResult | undefined;
|
|
2397
|
-
/**
|
|
2398
|
-
* Execute the `sp` algorithm: a spacer that reserves layout space but draws
|
|
2399
|
-
* nothing.
|
|
2400
|
-
*
|
|
2401
|
-
* Choice: we return a valid, empty `SmartArtLayoutResult` (no nodes, no
|
|
2402
|
-
* connectors) rather than a transparent placeholder rect or `undefined`. The
|
|
2403
|
-
* spacer is genuinely "applicable" (it is a recognised algorithm), so declining
|
|
2404
|
-
* with `undefined` would wrongly send the caller to the legacy family
|
|
2405
|
-
* approximation; emitting an invisible placeholder would add a stray hit-target
|
|
2406
|
-
* and complicate node indexing. An empty result cleanly represents "consumed
|
|
2407
|
-
* space, nothing drawn".
|
|
2408
|
-
*/
|
|
2409
|
-
declare function arrangeSpacer(_plan: ArrangementPlan, _nodes: PptxSmartArtNode[], box: BoundingBox, _palette: string[], style: SmartArtStyle, _elementId: string): SmartArtLayoutResult | undefined;
|
|
2410
|
-
/**
|
|
2411
|
-
* Execute the `tx` algorithm: a single node filling the parent region with the
|
|
2412
|
-
* point's text. Only the first point is placed (composite `tx` leaves describe
|
|
2413
|
-
* one region). Returns `undefined` when there is no point to render.
|
|
2414
|
-
*/
|
|
2415
|
-
declare function arrangeText(plan: ArrangementPlan, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex, childrenOf?: Map<string, PptxSmartArtNode[]>, fontName?: string): SmartArtLayoutResult | undefined;
|
|
2416
|
-
//#endregion
|
|
2417
|
-
//#region pptx/core/utils/smartart-layout-interpreter-custom.d.ts
|
|
2418
|
-
/**
|
|
2419
|
-
* Apply every node's manual `cust*` layout override (if any) as a final
|
|
2420
|
-
* transform over an already-computed layout result. A no-op when no node in
|
|
2421
|
-
* `nodes` carries a `customLayout`, returning `result` unchanged (same
|
|
2422
|
-
* reference) so callers can cheaply skip re-deriving anything downstream.
|
|
2423
|
-
*/
|
|
2424
|
-
declare function applyCustomLayoutOverrides(result: SmartArtLayoutResult, nodes: PptxSmartArtNode[], box: BoundingBox): SmartArtLayoutResult;
|
|
2425
|
-
//#endregion
|
|
2426
|
-
//#region pptx/core/utils/smartart-node-role-colors.d.ts
|
|
2427
|
-
/** Per-styleLbl-role resolved colour lists (from a diagram colour transform). */
|
|
2428
|
-
type SmartArtColorRoleMap = Record<string, {
|
|
2429
|
-
fill: string[];
|
|
2430
|
-
line: string[];
|
|
2431
|
-
}>;
|
|
2432
|
-
/**
|
|
2433
|
-
* Overlay each node's own quick-style role fill colour onto the interpreter
|
|
2434
|
-
* output. Returns `result` unchanged when `colorRoles` is empty/absent.
|
|
2435
|
-
*/
|
|
2436
|
-
declare function applySmartArtRoleColors(result: SmartArtLayoutResult, flat: PptxSmartArtNode[], colorRoles: SmartArtColorRoleMap | undefined): SmartArtLayoutResult;
|
|
2402
|
+
/** Connector-only arrangement (see the diagram module). */
|
|
2403
|
+
declare function arrangeConn(plan: ArrangementPlan$1, nodes: PptxSmartArtNode[], box: BoundingBox, palette: string[], style: SmartArtStyle, elementId: string, index?: ConstraintIndex): SmartArtLayoutResult | undefined;
|
|
2437
2404
|
//#endregion
|
|
2438
2405
|
//#region pptx/core/utils/smartart-layout-interpreter.d.ts
|
|
2439
|
-
/**
|
|
2440
|
-
interface InterpretLayoutInput {
|
|
2441
|
-
/** Parsed layout definition (from `PptxSmartArtData.layoutDefinition`). */
|
|
2442
|
-
layoutDefinition: PptxSmartArtLayoutDefinition | undefined;
|
|
2443
|
-
/** Original (possibly nested) data-model nodes - used for hierarchy. */
|
|
2444
|
-
nodes: PptxSmartArtNode[];
|
|
2445
|
-
/** Depth-first flattened nodes - used for flat arrangements. */
|
|
2446
|
-
flat: PptxSmartArtNode[];
|
|
2447
|
-
box: BoundingBox;
|
|
2448
|
-
palette: string[];
|
|
2449
|
-
style: SmartArtStyle;
|
|
2450
|
-
elementId: string;
|
|
2451
|
-
/** Presentation layout variables (direction / hierBranch / orgChart). */
|
|
2452
|
-
presLayoutVars?: PptxSmartArtPresLayoutVars;
|
|
2453
|
-
/**
|
|
2454
|
-
* Per-styleLbl-role resolved colour lists (from
|
|
2455
|
-
* `PptxSmartArtColorTransform.roleColors`): a node whose {@link
|
|
2456
|
-
* PptxSmartArtNode.styleRole} matches a key gets that role's own cycled
|
|
2457
|
-
* fill colour instead of the generic `palette` cycling - see
|
|
2458
|
-
* `smartart-node-role-colors.ts`.
|
|
2459
|
-
*/
|
|
2460
|
-
colorRoles?: SmartArtColorRoleMap;
|
|
2461
|
-
/**
|
|
2462
|
-
* Data-model connections (from `PptxSmartArtData.connections`): labels a
|
|
2463
|
-
* hierarchy `parOf` edge's connector from its `parTrans` text, and
|
|
2464
|
-
* resolves a transition-bound item role's ordinal text (a numbered badge)
|
|
2465
|
-
* from its `sibTrans`/`parTrans` text - via `connection.label`.
|
|
2466
|
-
*/
|
|
2467
|
-
connections?: PptxSmartArtConnection[];
|
|
2468
|
-
/**
|
|
2469
|
-
* The deck's own theme minor-Latin font (`PptxSmartArtData.themeMinorFont`),
|
|
2470
|
-
* threaded through to every arranger's font-fit so text is measured
|
|
2471
|
-
* against the REAL font PowerPoint renders it in. `undefined` falls back
|
|
2472
|
-
* to the default in `smartart-layout-item-font-size.ts`.
|
|
2473
|
-
*/
|
|
2474
|
-
fontName?: string;
|
|
2475
|
-
}
|
|
2476
|
-
/**
|
|
2477
|
-
* Interpret the layout definition, or return `undefined` when it is not
|
|
2478
|
-
* understood (no recognised arrangement algorithm, or no nodes to place).
|
|
2479
|
-
*
|
|
2480
|
-
* When an arrangement is produced, every node's manual `dgm:pt/dgm:prSet`
|
|
2481
|
-
* `cust*` override (drag/resize/rotate/flip performed in PowerPoint's own
|
|
2482
|
-
* diagram editor) is applied as a final transform, so a manually-placed node
|
|
2483
|
-
* does not revert to its algorithmic position.
|
|
2484
|
-
*/
|
|
2406
|
+
/** Interpret a SmartArt layout definition into positioned, styled geometry. */
|
|
2485
2407
|
declare function interpretSmartArtLayout(input: InterpretLayoutInput): SmartArtLayoutResult | undefined;
|
|
2486
2408
|
//#endregion
|
|
2487
2409
|
//#region pptx/core/utils/smartart-data-model-attributes.d.ts
|
|
@@ -4776,9 +4698,7 @@ declare function validateSmartArtDefinitionHeaderList(list: PptxSmartArtDefiniti
|
|
|
4776
4698
|
//#endregion
|
|
4777
4699
|
//#region pptx/core/utils/smartart-constraint-rules.d.ts
|
|
4778
4700
|
type LocalName$1 = (key: string) => string;
|
|
4779
|
-
/** Parse the constraint and numeric-rule children of CT_LayoutNode. */
|
|
4780
4701
|
declare function parseSmartArtConstraintRules(node: XmlObject, localName: LocalName$1): Pick<PptxSmartArtLayoutNode, 'constraints' | 'rules'>;
|
|
4781
|
-
declare function validateSmartArtConstraintRules(value: PptxSmartArtLayoutNode): string[];
|
|
4782
4702
|
/** Merge typed constraints and rules without dropping foreign attributes or extension content. */
|
|
4783
4703
|
declare function applySmartArtConstraintRules(node: XmlObject, value: PptxSmartArtLayoutNode, localName: LocalName$1): boolean;
|
|
4784
4704
|
//#endregion
|
|
@@ -5969,7 +5889,7 @@ declare function isStShapeType(name: string | undefined): boolean;
|
|
|
5969
5889
|
*/
|
|
5970
5890
|
declare function normalizeStShapeType(name: string | undefined): string | undefined;
|
|
5971
5891
|
//#endregion
|
|
5972
|
-
//#region
|
|
5892
|
+
//#region geometry/preset-shape-evaluator.d.ts
|
|
5973
5893
|
/**
|
|
5974
5894
|
* One evaluated sub-path of a preset shape: its own SVG `d` string plus the
|
|
5975
5895
|
* `@fill`/`@stroke` flags declared on the `<a:path>`. Lets a renderer honour
|
|
@@ -5979,9 +5899,9 @@ interface PresetSubpathResult {
|
|
|
5979
5899
|
/** SVG path data for this single sub-path. */
|
|
5980
5900
|
d: string;
|
|
5981
5901
|
/** `<a:path>/@fill` (`'none' | 'norm' | ...`); `undefined` means default. */
|
|
5982
|
-
fill?: string;
|
|
5902
|
+
fill?: string | undefined;
|
|
5983
5903
|
/** `<a:path>/@stroke`; `undefined`/`true` means stroked, `false` unstroked. */
|
|
5984
|
-
stroke?: boolean;
|
|
5904
|
+
stroke?: boolean | undefined;
|
|
5985
5905
|
}
|
|
5986
5906
|
/**
|
|
5987
5907
|
* Result of evaluating a preset shape: the merged SVG path data and an
|
|
@@ -5994,7 +5914,7 @@ interface PresetShapeEvaluationResult {
|
|
|
5994
5914
|
t: number;
|
|
5995
5915
|
r: number;
|
|
5996
5916
|
b: number;
|
|
5997
|
-
};
|
|
5917
|
+
} | undefined;
|
|
5998
5918
|
/**
|
|
5999
5919
|
* Per-sub-path geometry with fill/stroke flags. `svgPath` is these `d`
|
|
6000
5920
|
* strings concatenated; this array additionally preserves the paint intent.
|
|
@@ -6599,6 +6519,12 @@ declare function evaluateGeometryPaths(pathNodes: ReadonlyArray<Record<string, u
|
|
|
6599
6519
|
pathWidth: number;
|
|
6600
6520
|
pathHeight: number;
|
|
6601
6521
|
} | null;
|
|
6522
|
+
//#endregion
|
|
6523
|
+
//#region geometry/ooxml-arc.d.ts
|
|
6524
|
+
/**
|
|
6525
|
+
* OOXML `a:arcTo` to SVG arc conversion, shared by the preset shape evaluator
|
|
6526
|
+
* and custom geometry. Moved from `pptx/core/geometry/guide-formula-paths.ts`.
|
|
6527
|
+
*/
|
|
6602
6528
|
/**
|
|
6603
6529
|
* Result of converting an OOXML `a:arcTo` command to SVG arc notation.
|
|
6604
6530
|
*/
|
|
@@ -9230,6 +9156,25 @@ declare function isEncryptedLegacyPpt(ole: Ole2File): boolean;
|
|
|
9230
9156
|
*/
|
|
9231
9157
|
declare function convertPptToPptx(ole: Ole2File, password?: string): Promise<ArrayBuffer>;
|
|
9232
9158
|
//#endregion
|
|
9159
|
+
//#region pptx/core/utils/suite-text.d.ts
|
|
9160
|
+
/** Bounded text-only inspection for hosts; binary media never enters the AI context. */
|
|
9161
|
+
declare function inspectPresentationText(bytes: Uint8Array): Promise<{
|
|
9162
|
+
slides: {
|
|
9163
|
+
index: number;
|
|
9164
|
+
elements: {
|
|
9165
|
+
id: string;
|
|
9166
|
+
type: "connector" | "shape" | "text";
|
|
9167
|
+
text: string;
|
|
9168
|
+
runs: {
|
|
9169
|
+
runIndex: number;
|
|
9170
|
+
text: string;
|
|
9171
|
+
}[] | undefined;
|
|
9172
|
+
}[];
|
|
9173
|
+
}[];
|
|
9174
|
+
}>;
|
|
9175
|
+
/** Change one existing run and preserve all other runs, styles and document parts. */
|
|
9176
|
+
declare function setPresentationRunText(bytes: Uint8Array, slideIndex: number, elementId: string, runIndex: number, text: string): Promise<Uint8Array<ArrayBufferLike>>;
|
|
9177
|
+
//#endregion
|
|
9233
9178
|
//#region pptx/core/core/runtime/element-paragraph-geometry.d.ts
|
|
9234
9179
|
/**
|
|
9235
9180
|
* Route the ELEMENT-scope paragraph geometry to the slot OOXML actually
|
|
@@ -9277,5 +9222,5 @@ declare function convertPptToPptx(ole: Ole2File, password?: string): Promise<Arr
|
|
|
9277
9222
|
*/
|
|
9278
9223
|
declare const ELEMENT_PARAGRAPH_GEOMETRY_KEYS: readonly ["align", "rtl", "paragraphMarginLeft", "paragraphMarginRight", "paragraphIndent", "defaultTabSize", "eaLineBreak", "latinLineBreak", "fontAlignment", "hangingPunctuation", "lineSpacing", "lineSpacingExactPt", "paragraphSpacingBefore", "paragraphSpacingAfter", "tabStops"];
|
|
9279
9224
|
//#endregion
|
|
9280
|
-
export { moveSlidesToSection as $, BLIP_FILL_ORDER as $a, parseSeriesTrendlines as $c, readOleDocParagraphs as $d, createTemplateShapeRawXml as $f, toHebrewNumeral as $i, SmartArtEffectIntensity as $l, getPresetTextRect as $n, parseSmartArtDefinitionMetadata as $o, mergeNativeSoundIntoEditorAnimations as $p, ConnectorGeometryType as $r, parseShapeId as $s, fragmentShapes as $t, nodeTextStyle as $u, inchesToEmu as A, parseChartUpDownBars as Aa, isParetoChartData as Ac, getOleNestedDeckDetail as Ad, InkTargetBox as Af, rebuildTableStructureInRawXml as Ai, deobfuscateFont as Al, PresetShapeCategory as An, mergeStyleParts as Ao, PptxGraphicBuildEntry as Ap, parseDrawingColorOpacity as Ar, parsePanoseBytes as As, createImageElement as At, FlowDirection as Au, ChartBuilder as B, applyChartLayouts as Ba, flattenChartUserShapes as Bc, renderOleIconPng as Bd, ooxmlGradientAngleToCssDegrees as Bf, chartGridAddCategory as Bi, addSmartArtNodeAsChild as Bl, getConnectorPathGeometry as Bn, AccessibilityIssueType as Bo, buildSingleEffectNode as Bp, clampUnitInterval as Br, LinkedTextBoxSegmentMap as Bs, ConnectorXmlFactory as Bt, StyleContext as Bu, ThemePresets as C, withThemePlaceholderColor as Ca, P15_GUIDE_URI as Cc, decomposeSmartArt as Cd, mimeTypeForOleFile as Cf, createTableStyleEntry as Ci, COLOR_MAP_ALIAS_KEYS as Cl, resolveCoordinate as Cn, ParsedTableStyle as Co, cloneSlide as Cp, getImageMaskStyle as Cr, PANOSE_WEIGHT_MAP as Cs, duplicateElement as Ct, ConstraintIndex as Cu, cmToEmu as D, applyDrawingMediaReference as Da, parsePresentationDrawingGuides as Dc, applyOleSheetCellEdit as Dd, parseInkMlContent as Df, updateCellTextInRawXml as Di, hasNonTrivialOverride as Dl, PRESET_SHAPE_DEFINITIONS as Dn, TableStylePartBorders as Do, deepCloneData as Dp, getShapeType as Dr, getSubstituteFontFamily as Ds, createConnectorElement as Dt, roleOf as Du, cm as E, ParsedDrawingMediaReference as Ea, guidePxToEmu as Ec, applyOleNestedDeckElementTextEdit as Ed, ParsedInkMlContent as Ef, DEFAULT_POWERPOINT_TABLE_STYLE_ID as Ei, buildClrMapOverrideXml as El, PRESET_SHAPE_CATEGORY_LABELS as En, TableStylePartBorder as Eo, cloneXmlObject as Ep, getShapeClipPathFromPreset as Er, getPanoseWeight as Es, createChartElement as Et, hasReference as Eu, EMU_PER_PIXEL as F, parseSmartArtDefinitionHeaderList as Fa, chartDataRemoveCategory as Fc, renderOleDeckPreviewPng as Fd, parseDataUrlToBytes as Ff, IPptxShapeIdValidator as Fi, obfuscateFont as Fl, getTextCompensationTransform as Fn, navigateCustomShow as Fo, parseCondition as Fp, themeColorRefToSolidFill as Fr, isSummaryZoomSlide as Fs, resetIdCounter as Ft, clampByRules as Fu, setElementLocked as G, isXmlNode as Ga, parseSeriesDataLabels as Gc, encodeCompressedPng as Gd, elementHasAction as Gf, chartGridSetCellValue as Gi, reorderSmartArtNodeToIndex as Gl, getAdjustmentAwareClipPath as Gn, checkMissingAltText as Go, CapturedPreset as Gp, parseDrawingFraction as Gr, parseBodyPrBooleanAttrs as Gs, getCalloutTier as Gt, chevronPoints as Gu, ImageBuilder as H, parseChartLayouts as Ha, parseChart3DSurfaces as Hc, RasterColor as Hd, getSvgStrokeDasharray as Hf, chartGridRemoveCategory as Hi, promoteSmartArtNode as Hl, CLOUD_LOBE_COUNT as Hn, checkComplexTables as Ho, applyAfterAnimationBehavior as Hp, hexToRgbChannels as Hr, distributeSegmentsAcrossChain as Hs, CalloutPoint as Ht, polygonNode as Hu, EMU_PER_POINT as I, serializeSmartArtDefinitionHeaderList as Ia, chartDataRemoveSeries as Ic, renderOleDocumentPreviewPng as Id, normalizePositiveFixedAngleDegrees as If, PptxShapeIdValidator as Ii, ReflowedNodePosition as Il, isTextOrientationMatrix as In, resolveCustomShowSlideIndices as Io, parseConditionList as Ip, themeColorRefToSolidFillWithOpacity as Ir, isZoomElement as Is, TextShapeXmlFactory as It, findConstraint as Iu, replaceShapeGeometry as J, xmlAttrNumber as Ja, parseSeriesExplosion as Jc, OleNestedDeckSlideDetail as Jd, colorsEqual as Jf, toArabicAbjadNumeral as Ji, SmartArtColorListDeps as Jl, applyCustomGeometryGuideOverrides as Jn, computeContrastRatio as Jo, getCapturedPreset as Jp, parseOoxmlPercent as Jr, isHeaderFooterPlaceholder as Js, FreeformPathBuilder as Jt, flattenNodes as Ju, interpolateShapeGeometry as K, xmlAttr as Ka, parseMarker as Kc, decodePngDimensions as Kd, pptxActionToElementAction as Kf, bijectiveLabel as Ki, resetSmartArtEditCounter as Kl, evaluateCustomGeometryPathData as Kn, checkMissingSlideTitle as Ko, capturedPresetIds as Kp, parseDrawingHueDegrees as Kr, writeBodyPrBooleanAttrs as Ks, getCalloutViewBoxBounds as Kt, colour as Ku, GroupBuilder as L, validateSmartArtDefinitionHeaderList as La, chartDataUpdatePoint as Lc, renderOleSheetPreviewPng as Ld, positiveFixedAngleAttribute as Lf, PptxLoadDataBuilder as Li, reflowSmartArtLayout as Ll, multiplyTextOrientationMatrices as Ln, AccessibilityCheckOptions as Lo, serializeCondition as Lp, themeColorRefToXml as Lr, shouldReturnToZoomSlide as Ls, PptxXmlFactoryProvider as Lt, ratioConstraint as Lu, pixelsToEmu as M, parseSmartArtConstraintRules as Ma, chartDataAddCategory as Mc, replaceOleFile as Md, inkLengthToPx as Mf, applyTableCellTextAndStyle as Mi, extractGuidFromPartName as Ml, TEXT_ORIENTATION_IDENTITY as Mn, findCustomShow as Mo, parseTimeTargetElement as Mp, resolveThemeColorRef as Mr, getSectionSlideRange as Ms, createShapeElement as Mt, itemNode as Mu, pt as N, validateSmartArtConstraintRules as Na, chartDataAddSeries as Nc, resolveOleEditorKindFromPayload as Nd, inkPointMapper as Nf, createTableCellXml as Ni, generateFontGuid as Nl, getElementOrientationMatrix as Nn, getCustomShowNames as No, serializeGraphicBuild as Np, themeColorRefFromColorChoice as Nr, getZoomElements as Ns, createTableElement as Nt, numericParam as Nu, emuToPixels as O, parseDrawingMediaReference as Oa, parseSlideDrawingGuides as Oc, getOleDocumentParagraphs as Od, buildInkMlContent as Of, updateCellTextStyleInRawXml as Oi, mergeThemeColorOverride as Ol, PRESET_SHAPE_CLIP_PATHS as On, TableStylePartFill as Oo, parseAnimEffectFilter as Op, parseDrawingColor as Or, getSubstituteFonts as Os, createFreeformElement as Ot, resolveConstraint as Ou, EMU_PER_INCH as P, SMART_ART_DEFINITION_PARTS as Pa, chartDataChangeType as Pc, setOleObjectName as Pd, fetchUrlToBytes as Pf, createTableGraphicFrameRawXml as Pi, guidToKey as Pl, getElementTransform as Pn, getCustomShowPositionLabel as Po, serializeTimeTargetElement as Pp, themeColorRefFromSchemeClr as Pr, getZoomTargetSlideIndexes as Ps, createTextElement as Pt, resolveFlowDirection as Pu, getSectionForSlide as Q, xmlText as Qa, parseSeriesErrBars as Qc, writeOleNestedDeckElementText as Qd, createTemplateConnectorRawXml as Qf, toFullWidthDigits as Qi, parseSmartArtColorListHexes as Ql, customGeometryPathsToSvgSubpaths as Qn, parseSmartArtColorStyleLabels as Qo, timingCurveToAccelDecel as Qp, CONNECTOR_GEOMETRY_OPTIONS as Qr, findCnvPrNode as Qs, combineShapes as Qt, nodeStroke as Qu, MediaBuilder as R, applyBubbleChartOptions as Ra, parseEmbeddedXlsx as Rc, OleIconGlyph as Rd, shadowOffsetToDistanceAndDirection as Rf, TableCellRunsContext as Ri, setSmartArtNodeStyle as Rl, ConnectorPathGeometry as Rn, AccessibilityIssue as Ro, serializeConditionList as Rp, applyDrawingColorTransforms as Rr, LinkedTextBoxChain as Rs, PictureXmlFactory as Rt, ArrangementKind as Ru, ThemePresetName as S, extractStyleReferenceColorXml as Sa, P14_GUIDE_URI as Sc, computeSmartArtElementsWithoutCache as Sd, inferOleExtensionFromTarget as Sf, addTableStyleToMap as Si, detectFileFormat as Sl, parseGuideDefinitions as Sn, EXIT_PRESETS as So, cloneShapeStyle as Sp, getCloudPathForRendering as Sr, PANOSE_SANS_SERIF_STYLES as Ss, setChartHelperLine as St, resolveConstraintDeclaredBy as Su, SlideSizes as T, parseDrawingLineDash as Ta, guideEmuToPx as Tc, applyOleNestedDeckBytes as Td, inkElementToStrokes as Tf, generateTableStyleGuid as Ti, DEFAULT_COLOR_MAP as Tl, GeometryGuide as Tn, TableStyleFlags as To, cloneTextStyle as Tp, getShapeClipPath as Tr, classifyPanose as Ts, resetCloneIdCounter as Tt, buildConstraintIndex as Tu, ShapeBuilder as U, parseChartManualLayout as Ua, parseChartAxes as Uc, rgb as Ud, normalizeStrokeDashType as Uf, chartGridRemoveSeries as Ui, removeSmartArtNode as Ul, getCloudCalloutClipPath as Un, checkDuplicateTitles as Uo, capturedPresetNativeAnimation as Up, hslToRgb as Ur, estimateTextBoxCapacity as Us, buildCalloutLeaderLineSvgPath as Ut, rectNode as Uu, TableBuilder as V, applyChartManualLayout as Va, parseCxChartSeries as Vc, RasterCanvas as Vd, getCssBorderDashStyle as Vf, chartGridAddSeries as Vi, demoteSmartArtNode as Vl, CLOUD_CALLOUT_TAIL_COUNT as Vn, checkBlankSlide as Vo, applySoundToEffectCTn as Vp, colorWithOpacity as Vr, buildLinkedTextBoxChains as Vs, CalloutLeaderLineGeometry as Vt, circleNode as Vu, TextBuilder as W, ensureXmlChild as Wa, parseChartDataLabelOptions as Wc, zlibDeflate as Wd, elementActionToPptxAction as Wf, chartGridSetCategoryLabel as Wi, reorderSmartArtNode as Wl, getCloudClipPath as Wn, checkLowContrast as Wo, CapturedBehaviorNode as Wp, normalizeHexColor as Wr, getLinkedTextBoxSegments as Ws, getCalloutLeaderLineGeometry as Wt, styleContext as Wu, serializeSvgPath as X, xmlChildren as Xa, parseDataTable as Xc, readOleNestedDeckDetail as Xd, serializeColorChoice as Xf, toDevanagariDigits as Xi, buildSmartArtColorLists as Xl, resolveCustomGeometryToken as Xn, relativeLuminance as Xo, resolveDirectionSubtype as Xp, toHex as Xr, parseKinsoku as Xs, douglasPeucker as Xt, nodeFill as Xu, replaceWithCustomGeometry as Y, xmlChild as Ya, parseShapeProps as Yc, OleNestedDeckTextElement as Yd, extractColorChoiceXml as Yf, toChineseNumeral as Yi, SmartArtColorLists as Yl, resolveCustomGeometryGuideContext as Yn, parseHexColor as Yo, getCapturedTree as Yp, rgbToHsl as Yr, applyKinsokuToXml as Ys, catmullRomToBezier as Yt, gearPoints as Yu, addSection as Z, xmlPath as Za, parseLineStyle as Zc, readOleNestedDeckFirstSlideTextLines as Zd, serializeColorChoiceWithRef as Zf, toEa1ChsNumeral as Zi, buildSmartArtColorRoleMap as Zl, CustomGeometrySubpathSvg as Zn, SmartArtStyleLabelRefs as Zo, PptxAnimationWriteService as Zp, CONNECTOR_ARROW_OPTIONS as Zr, MAX_SHAPE_ID as Zs, MergeShapeOperation as Zt, nodeOpacity as Zu, findOpenXmlCoverage as _, syncPictureShapeTypeWithCropShape as _a, isNamespaceSupported as _c, buildForest as _d, isOle2CompoundFile as _f, PRESET_COLOR_MAP as _i, verifyPassword as _l, PptxSmartArtDefinitionHeaderList as _m, evaluateGeometryPaths as _n, MOTION_PATH_PRESETS as _o, isTemplateElementId as _p, PresetPath as _r, ValidationIssue as _s, setChartGroupOptions as _t, arrangeLinear as _u, EncryptedPptError as a, HINDI_VOWELS as aa, parseActiveXControlsFromSlide as ac, LayoutFamily as ad, writeOleXlsNumericCellEdit as af, DEFAULT_STROKE_COLOR as ai, encodeXmlTextValue as al, ELEMENT_FIELD_KIND as am, subtractShapes as an, reorderObjectKeysByLocalName as ao, formatCommentTimestamp as ap, PresetConnectionSiteDefinition as ar, parseSmartArtLayoutDefinition as as, uniqueDisplayName as at, InterpretLayoutInput as au, summarizeOpenXmlCoverageByVocabulary as b, deriveSlideTitle as ba, switchSmartArtLayout as bc, treeDepth as bd, detectOleObjectType as bf, TableStylePartName as bi, EncryptedFileError as bl, PptxSmartArtHeaderText as bm, evaluateGuides as bn, getPresetsByCategory as bo, ungroupElements as bp, ImageMaskStyle as br, PANOSE_FAMILY_MAP as bs, setChartColorMapOverride as bt, chooseAlgType as bu, OPENXML_STRICT_SCHEMA_CONSTRUCT_IDS as c, repeatedLabel as ca, parseVmlElements as cc, RenderedConnector as cd, OleSheetRow$1 as cf, EMU_PER_PX as ci, resolveModifyVerifierAlgorithmName as cl, hasTextProperties as cm, unionShapes as cn, applySmartArtQuickStyle3d as co, getElementTextContent as cp, PresetShapeEvaluationResult as cr, reResolveElementFonts as cs, addChartUserShape as ct, applySmartArtRoleColors as cu, OpenXmlCoverageEvidence as d, TEXT_AUTONUMBER_SCHEMES as da, resolveModel3DMimeType as dc, RenderedNodeTextStyle as dd, OlePayloadEditorKind as df, MIN_TABLE_DIMENSION as di, parseOle2 as dl, isInkElement as dm, svgPathToPolygons as dn, regenerateSmartArtDrawingShapes as do, readFileAsDataUrl as dp, lookupPresetShape as dr, buildThemeColorMap as ds, listChartUserShapes as dt, arrangeSpacer as du, toThaiDigits as ea, remapElementShapeIds as ec, strokeFor as ed, writeOleDocParagraphEdit as ef, DEFAULT_CANVAS_HEIGHT as ei, WHITESPACE_PRESERVING_TAGS as el, applyConnectorShapeIds as em, intersectPolygons as en, EFFECT_LST_ORDER as eo, createArrayBufferCopy as ep, lookupPresetTextRectOverride as er, parseSmartArtQuickStyleLabels as es, removeSection as et, resolveSmartArtEffectIntensity as eu, OpenXmlCoverageFacet as f, alphaLabel as fa, parseModel3DScene as fc, RenderedPolygonNode as fd, detectOlePayloadEditorKind as ff, OOXML_ANGLE_UNITS_PER_DEGREE as fi, Ole2DirectoryEntry as fl, isShapeElement as fm, Vec2 as fn, relayoutSmartArt as fo, shouldRenderFallbackLabel as fp, PRESET_GEOMETRY_ALIASES as fr, reResolveElementColors as fs, removeChartUserShape as ft, arrangeText as fu, OpenXmlVocabulary as g, presetGeometryForCropShape as ga, isAlternateContentChoiceXmlSupported as gc, TreeNode as gd, decodeOle10Native as gf, SupportedShapeType as gi, encryptPptx as gl, PptxSmartArtDefinitionHeaderKind as gm, parseStructuredCustomGeometry as gn, EMPHASIS_PRESETS as go, groupElements as gp, PRESET_SHAPE_GEOMETRY_TABLE as gr, RepairResult as gs, setChartAreaFormat as gt, arrangeCycle as gu, OpenXmlCoverageSummary as h, cropShapeForPresetGeometry as ha, isAlternateContentChoiceSupported as hc, ContainerBounds as hd, OleUnwrapResult as hf, STROKE_DASH_OPTIONS as hi, decryptPptx as hl, PptxSmartArtDefinitionHeader as hm, buildCustomGeometryPathsFromNodes as hn, AnimationPresetInfo as ho, UngroupResult as hp, normalizeStShapeType as hr, validatePptx as hs, updateChartUserShapeAtPath as ht, arrangeHierarchy as hu, isLegacyPpt as i, HINDI_CONSONANTS as ia, buildActiveXControlNode as ic, BoundingBox as id, readOleXlsGrid as if, DEFAULT_SCHEME_COLOR_MAP as ii, encodeXmlAttributeValue as il, CollabFieldKind as im, subtractPolygons as in, reorderObjectKeys as io, ensureArrayValue as ip, lookupPresetConnectionSites as ir, applySmartArtLayoutDefinition as is, collectMasterNames as it, parseSmartArtPointCustomLayout as iu, mm as j, applySmartArtConstraintRules as ja, resolveDisplayedChartTypeName as jc, getOleSheetGrid as jd, inkBounds as jf, TableStructureEdit as ji, detectFontFormat as jl, PresetShapeDefinition as jn, resolveTableCellStyle as jo, extractGraphicBuilds as jp, isThemeColorSchemeName as jr, parsePanoseString as js, createMediaElement as jt, algorithmParam as ju, inches as k, applyChartUpDownBars as ka, ParetoDetectableChartData as kc, getOleNestedDeckBytes as kd, InkBounds as kf, updateMergeAttrsInRawXml as ki, themeColorSchemesEqual as kl, getPresetShapeClipPath as kn, TableStylePartText as ko, parseFilterToken as kp, parseDrawingColorChoice as kr, hasDirectSubstitution as ks, createGroupElement as kt, discoverArrangement as ku, OPENXML_COVERAGE as l, toCjkDigitString as la, Model3DTransform as lc, RenderedNode as ld, readOleSheetGrid as lf, MAX_TABLE_DIMENSION as li, verifyModifyPassword as ll, isConnectorElement as lm, unionSvgPaths as ln, isDefaultSmartArtLabelScene as lo, isEditableTextElement as lp, PresetSubpathResult as lr, reResolveSlideFonts as ls, addChartUserShapeGroupChild as lt, applyCustomLayoutOverrides as lu, OpenXmlCoverageLevel as m, romanNumeral as ma, getSupportedNamespaces as mc, SmartArtLayoutResult as md, replaceOleEmbedding as mf, POWERPOINT_PRESENCE_KEY as mi, Ole2ParseError as ml, isZoomElement$1 as mm, stripXmlOrderSuffix as mn, AnimationCategory as mo, UngroupOptions as mp, isStShapeType as mr, repairPptx as ms, updateChartUserShape as mt, arrangePyramid as mu, convertPptToPptx as n, ARABIC_HIJAI_LETTERS as na, visitXmlObjects as nc, styleStroke as nd, writeOleDocumentParagraphEdit as nf, DEFAULT_FILL_COLOR as ni, preservesXmlWhitespace as nl, remapEditorAnimationsToShapeIds as nm, intersectSvgPaths as nn, SP_PR_ORDER as no, createEditorId as np, EvaluatedPresetConnectionSite as nr, validateSmartArtColorStyleLabels as ns, resetSectionIdCounter as nt, resolveSmartArtNodeStyleRoles as nu, OPENXML_SCHEMA_CONSTRUCT_IDS as o, THAI_CONSONANTS as oa, VML_SHAPE_TAGS as oc, LayoutRect as od, OleSheetCell$1 as of, DEFAULT_TEXT_COLOR as oi, createModifyVerifier as ol, SLIDE_FIELD_KIND as om, subtractSvgPaths as on, LayoutDisplayNameInput as oo, getCommentMarkerPosition as op, PresetConnectionSiteToken as or, validateSmartArtLayoutDefinition as os, uniquePrefixedName as ot, interpretSmartArtLayout as ou, OpenXmlCoverageFacets as p, formatAutoNumberMarker as pa, areNamespacesSupported as pc, RenderedRectNode as pd, encodeOle10Native as pf, OOXML_PERCENT_UNITS as pi, Ole2File as pl, isTextElement as pm, orderedXmlKey as pn, ALL_ANIMATION_PRESETS as po, GroupResult as pp, ST_SHAPE_TYPE_VALUES as pr, reResolveSlideColors as ps, removeChartUserShapeAtPath as pt, arrangeComposite as pu, parseSvgPath as q, xmlAttrBool as qa, parseSeriesDataPoints as qc, encodePng as qd, buildSrgbColorChoice as qf, formatScriptAutoNumber as qi, updateSmartArtNodeText as ql, evaluateCustomGeometryPaths as qn, checkPresentation as qo, capturedSubtypes as qp, parseDrawingPercent as qr, inheritedPlaceholderFieldType as qs, isCalloutShape as qt, fitFontSize as qu, isEncryptedLegacyPpt as r, HEBREW_LETTERS as ra, applyActiveXControlsToSlide as rc, truncate as rd, writeOleXlsStringCellEdit as rf, DEFAULT_FONT_FAMILY as ri, decodeXmlEntities as rl, reconcileAnimationTargets as rm, mergeShapes as rn, TC_PR_BORDERS_ORDER as ro, createUniformTextSegments as rp, getPresetConnectionSites as rr, validateSmartArtDefinitionMetadata as rs, collectLayoutNames as rt, interpretedLayoutToElements as ru, OPENXML_TRANSITIONAL_SCHEMA_CONSTRUCT_IDS as s, hebrewAlphaLabel as sa, parseVmlElement as sc, RenderedCircleNode as sd, OleSheetGrid$1 as sf, DEFAULT_TEXT_FONT_SIZE as si, createSaltlessModifyVerifierForTesting as sl, hasShapeProperties as sm, unionPolygons as sn, resolveLayoutDisplayName as so, getElementLabel as sp, filterValidShapeAdjustmentEntries as sr, applyThemeOverrideToSlide as ss, ChartUserShapePath as st, SmartArtColorRoleMap as su, ELEMENT_PARAGRAPH_GEOMETRY_KEYS as t, ARABIC_ABJADI_LETTERS as ta, remapShapeIdReferences as tc, styleShadow as td, readOleDocumentParagraphs as tf, DEFAULT_CANVAS_WIDTH as ti, preservesSpreadsheetXmlWhitespace as tl, resolveConnectorShapeIds as tm, intersectShapes as tn, PRESENTATION_CHILD_ORDER as to, createDrawingObjectId as tp, PresetTextRectDefinition as tr, parseSmartArtStyleLabelRefs as ts, reorderSections as tt, resolveSmartArtNodeCoherent3DOff as tu, OpenXmlConstructCoverage as u, toEa1ChtNumeral as ua, extractModel3DTransform as uc, RenderedNodeIdentity as ud, writeOleSheetCellEdit as uf, MIN_ELEMENT_SIZE as ui, buildOle2 as ul, isImageLikeElement as um, polygonsToSvgPath as un, smartArtQuickStyleHas3d as uo, isTemplateElement as up, evaluatePresetShape as ur, applyThemeToData as us, getChartUserShapeAtPath as ut, arrangeConn as uu, listUnassessedOpenXmlCoverage as v, estimateMediaDurationMs as va, SWITCHABLE_LAYOUT_TYPES as vc, buildTree as vd, oleBytesToDataUrl as vf, SYSTEM_COLOR_MAP as vi, DataIntegrityError as vl, PptxSmartArtDefinitionPartDescriptor as vm, ooxmlArcToSvg as vn, getAnimationPresetInfo as vo, makeStoreAwareId as vp, PresetPathCommand as vr, ValidationResult as vs, setChartDataPointGradient as vt, arrangeSnake as vu, getThemePreset as w, applyDrawingLineDash as wa, buildGuideListExtension as wc, applyOleDocumentParagraphEdit as wd, stripParentDirSegments as wf, deleteTableStyleFromMap as wi, ColorMapAliasKey as wl, GeometryContext as wn, ParsedTableStylePart as wo, cloneTemplateElementsBySlideId as wp, getRoundRectRadiusPx as wr, buildFontFamilyString as ws, duplicateSlide as wt, EMPTY_CONSTRAINT_INDEX as wu, ThemePreset as x, deriveSlideTitles as xa, convertMetafileToDataUrl as xc, treeWidth as xd, getOleObjectTypeLabel as xf, normalizeTableStyleGuid as xi, FileFormatDetection as xl, parseAdjustmentValues as xn, ENTRANCE_PRESETS as xo, cloneElement as xp, getAdjustmentAwareShapeClipPath as xr, PANOSE_MONOSPACE_PROPORTION as xs, setChartDataPointStyle as xt, resolveRatioConstraint as xu, summarizeOpenXmlCoverage as y, sampleFirstPixelColorFromBytes as ya, isSwitchableLayoutType as yc, resetDecomposeCounter as yd, unwrapOleEmbedding as yf, TABLE_STYLE_PART_SEQUENCE as yi, IncorrectPasswordError as yl, PptxSmartArtHeaderCategory as ym, createBuiltinVariables as yn, getNativeAnimationPresetMetadata as yo, reassignDescendantIds as yp, PresetShapeGeometryDefinition as yr, FONT_SUBSTITUTION_MAP as ys, setChartSeriesGradient as yt, selectArrangedNodes as yu, ConnectorBuilder as z, parseBubbleChartOptions as za, ChartUserShapesChartBox as zc, oleObjectTypeToGlyph as zd, cssDegreesToOoxmlGradientAngle as zf, extractTableCellTextRuns as zi, addSmartArtNode as zl, getConnectorAdjustment as zn, AccessibilityIssueSeverity as zo, extractAfterAnimationFromSubTnLst as zp, HslColor as zr, LinkedTextBoxChainMember as zs, MediaGraphicFrameXmlFactory as zt, ArrangementPlan as zu };
|
|
9281
|
-
//# sourceMappingURL=index-
|
|
9225
|
+
export { addSection as $, xmlText as $a, parseSeriesErrBars as $c, elementActionToPptxAction as $d, CapturedBehaviorNode as $f, toEa1ChsNumeral as $i, parseSmartArtColorListHexes as $l, CustomGeometrySubpathSvg as $n, parseSmartArtColorStyleLabels as $o, resolveFlowDirection as $p, CONNECTOR_ARROW_OPTIONS as $r, findCnvPrNode as $s, MergeShapeOperation as $t, zlibDeflate as $u, emuToPixels as A, parseDrawingMediaReference as Aa, ParetoDetectableChartData as Ac, getOleObjectTypeLabel as Ad, cloneElement as Af, updateCellTextStyleInRawXml as Ai, themeColorSchemesEqual as Al, PRESET_SHAPE_CLIP_PATHS as An, TableStylePartText as Ao, applyCustomLayoutOverrides as Ap, parseDrawingColor as Ar, hasDirectSubstitution as As, createFreeformElement as At, resetDecomposeCounter as Au, MediaBuilder as B, parseBubbleChartOptions as Ba, ChartUserShapesChartBox as Bc, inkBounds as Bd, extractGraphicBuilds as Bf, TableCellRunsContext as Bi, addSmartArtNode as Bl, ConnectorPathGeometry as Bn, AccessibilityIssueSeverity as Bo, circleNode as Bp, applyDrawingColorTransforms as Br, LinkedTextBoxChainMember as Bs, PictureXmlFactory as Bt, getOleSheetGrid as Bu, ThemePreset as C, deriveSlideTitles as Ca, P14_GUIDE_URI as Cc, replaceOleEmbedding as Cd, UngroupOptions as Cf, normalizeTableStyleGuid as Ci, detectFileFormat as Cl, parseAdjustmentValues as Cn, EXIT_PRESETS as Co, isZoomElement$1 as Cp, getAdjustmentAwareShapeClipPath as Cr, PANOSE_SANS_SERIF_STYLES as Cs, setChartDataPointStyle as Ct, nodeTextStyle as Cu, SlideSizes as D, parseDrawingLineDash as Da, guidePxToEmu as Dc, oleBytesToDataUrl as Dd, makeStoreAwareId as Df, generateTableStyleGuid as Di, buildClrMapOverrideXml as Dl, GeometryGuide as Dn, TableStylePartBorder as Do, PptxSmartArtDefinitionPartDescriptor as Dp, getShapeClipPath as Dr, getPanoseWeight as Ds, resetCloneIdCounter as Dt, truncate as Du, getThemePreset as E, applyDrawingLineDash as Ea, guideEmuToPx as Ec, isOle2CompoundFile as Ed, isTemplateElementId as Ef, deleteTableStyleFromMap as Ei, DEFAULT_COLOR_MAP as El, GeometryContext as En, TableStyleFlags as Eo, PptxSmartArtDefinitionHeaderList as Ep, getRoundRectRadiusPx as Er, classifyPanose as Es, duplicateSlide as Et, styleStroke as Eu, pt as F, SMART_ART_DEFINITION_PARTS as Fa, chartDataChangeType as Fc, ParsedInkMlContent as Fd, cloneXmlObject as Ff, createTableCellXml as Fi, guidToKey as Fl, getElementOrientationMatrix as Fn, getCustomShowPositionLabel as Fo, arrangeText as Fp, themeColorRefFromColorChoice as Fr, getZoomTargetSlideIndexes as Fs, createTableElement as Ft, applyOleNestedDeckElementTextEdit as Fu, ShapeBuilder as G, ensureXmlChild as Ga, parseChartDataLabelOptions as Gc, normalizePositiveFixedAngleDegrees as Gd, parseConditionList as Gf, chartGridRemoveSeries as Gi, reorderSmartArtNode as Gl, getCloudCalloutClipPath as Gn, checkLowContrast as Go, buildTree as Gp, hslToRgb as Gr, getLinkedTextBoxSegments as Gs, buildCalloutLeaderLineSvgPath as Gt, renderOleDocumentPreviewPng as Gu, ChartBuilder as H, applyChartManualLayout as Ha, parseCxChartSeries as Hc, inkPointMapper as Hd, serializeGraphicBuild as Hf, chartGridAddCategory as Hi, demoteSmartArtNode as Hl, getConnectorPathGeometry as Hn, checkBlankSlide as Ho, rectNode as Hp, clampUnitInterval as Hr, buildLinkedTextBoxChains as Hs, ConnectorXmlFactory as Ht, resolveOleEditorKindFromPayload as Hu, EMU_PER_INCH as I, parseSmartArtDefinitionHeaderList as Ia, chartDataRemoveCategory as Ic, parseInkMlContent as Id, deepCloneData as If, createTableGraphicFrameRawXml as Ii, obfuscateFont as Il, getElementTransform as In, navigateCustomShow as Io, InterpretLayoutInput as Ip, themeColorRefFromSchemeClr as Ir, isSummaryZoomSlide as Is, createTextElement as It, applyOleSheetCellEdit as Iu, interpolateShapeGeometry as J, xmlAttrBool as Ja, parseSeriesDataPoints as Jc, cssDegreesToOoxmlGradientAngle as Jd, extractAfterAnimationFromSubTnLst as Jf, bijectiveLabel as Ji, updateSmartArtNodeText as Jl, evaluateCustomGeometryPathData as Jn, checkPresentation as Jo, selectArrangedNodes as Jp, parseDrawingHueDegrees as Jr, inheritedPlaceholderFieldType as Js, getCalloutViewBoxBounds as Jt, oleObjectTypeToGlyph as Ju, TextBuilder as K, isXmlNode as Ka, parseSeriesDataLabels as Kc, positiveFixedAngleAttribute as Kd, serializeCondition as Kf, chartGridSetCategoryLabel as Ki, reorderSmartArtNodeToIndex as Kl, getCloudClipPath as Kn, checkMissingAltText as Ko, treeDepth as Kp, normalizeHexColor as Kr, parseBodyPrBooleanAttrs as Ks, getCalloutLeaderLineGeometry as Kt, renderOleSheetPreviewPng as Ku, EMU_PER_PIXEL as L, serializeSmartArtDefinitionHeaderList as La, chartDataRemoveSeries as Lc, buildInkMlContent as Ld, parseAnimEffectFilter as Lf, IPptxShapeIdValidator as Li, ReflowedNodePosition as Ll, getTextCompensationTransform as Ln, resolveCustomShowSlideIndices as Lo, SmartArtColorRoleMap as Lp, themeColorRefToSolidFill as Lr, isZoomElement as Ls, resetIdCounter as Lt, getOleDocumentParagraphs as Lu, inchesToEmu as M, parseChartUpDownBars as Ma, resolveDisplayedChartTypeName as Mc, mimeTypeForOleFile as Md, cloneSlide as Mf, rebuildTableStructureInRawXml as Mi, detectFontFormat as Ml, PresetShapeCategory as Mn, resolveTableCellStyle as Mo, arrangeSnake as Mp, parseDrawingColorOpacity as Mr, parsePanoseString as Ms, createImageElement as Mt, decomposeSmartArt as Mu, mm as N, applySmartArtConstraintRules as Na, chartDataAddCategory as Nc, stripParentDirSegments as Nd, cloneTemplateElementsBySlideId as Nf, TableStructureEdit as Ni, extractGuidFromPartName as Nl, PresetShapeDefinition as Nn, findCustomShow as No, arrangeCycle as Np, isThemeColorSchemeName as Nr, getSectionSlideRange as Ns, createMediaElement as Nt, applyOleDocumentParagraphEdit as Nu, cm as O, ParsedDrawingMediaReference as Oa, parsePresentationDrawingGuides as Oc, unwrapOleEmbedding as Od, reassignDescendantIds as Of, DEFAULT_POWERPOINT_TABLE_STYLE_ID as Oi, hasNonTrivialOverride as Ol, PRESET_SHAPE_CATEGORY_LABELS as On, TableStylePartBorders as Oo, PptxSmartArtHeaderCategory as Op, getShapeClipPathFromPreset as Or, getSubstituteFontFamily as Os, createChartElement as Ot, ContainerBounds as Ou, pixelsToEmu as P, parseSmartArtConstraintRules as Pa, chartDataAddSeries as Pc, inkElementToStrokes as Pd, cloneTextStyle as Pf, applyTableCellTextAndStyle as Pi, generateFontGuid as Pl, TEXT_ORIENTATION_IDENTITY as Pn, getCustomShowNames as Po, arrangeSpacer as Pp, resolveThemeColorRef as Pr, getZoomElements as Ps, createShapeElement as Pt, applyOleNestedDeckBytes as Pu, serializeSvgPath as Q, xmlPath as Qa, parseLineStyle as Qc, normalizeStrokeDashType as Qd, capturedPresetNativeAnimation as Qf, toDevanagariDigits as Qi, buildSmartArtColorRoleMap as Ql, resolveCustomGeometryToken as Qn, SmartArtStyleLabelRefs as Qo, numericParam as Qp, toHex as Qr, MAX_SHAPE_ID as Qs, douglasPeucker as Qt, rgb as Qu, EMU_PER_POINT as R, validateSmartArtDefinitionHeaderList as Ra, chartDataUpdatePoint as Rc, InkBounds as Rd, parseFilterToken as Rf, PptxShapeIdValidator as Ri, reflowSmartArtLayout as Rl, isTextOrientationMatrix as Rn, AccessibilityCheckOptions as Ro, applySmartArtRoleColors as Rp, themeColorRefToSolidFillWithOpacity as Rr, shouldReturnToZoomSlide as Rs, TextShapeXmlFactory as Rt, getOleNestedDeckBytes as Ru, summarizeOpenXmlCoverageByVocabulary as S, deriveSlideTitle as Sa, convertMetafileToDataUrl as Sc, encodeOle10Native as Sd, GroupResult as Sf, TableStylePartName as Si, FileFormatDetection as Sl, SmartArtLayoutResult as Sm, evaluateGuides as Sn, ENTRANCE_PRESETS as So, isTextElement as Sp, ImageMaskStyle as Sr, PANOSE_MONOSPACE_PROPORTION as Ss, setChartColorMapOverride as St, nodeStroke as Su, ThemePresets as T, withThemePlaceholderColor as Ta, buildGuideListExtension as Tc, decodeOle10Native as Td, groupElements as Tf, createTableStyleEntry as Ti, ColorMapAliasKey as Tl, resolveCoordinate as Tn, ParsedTableStylePart as To, PptxSmartArtDefinitionHeaderKind as Tp, getImageMaskStyle as Tr, buildFontFamilyString as Ts, duplicateElement as Tt, styleShadow as Tu, TableBuilder as U, parseChartLayouts as Ua, parseChart3DSurfaces as Uc, fetchUrlToBytes as Ud, serializeTimeTargetElement as Uf, chartGridAddSeries as Ui, promoteSmartArtNode as Ul, CLOUD_CALLOUT_TAIL_COUNT as Un, checkComplexTables as Uo, styleContext as Up, colorWithOpacity as Ur, distributeSegmentsAcrossChain as Us, CalloutLeaderLineGeometry as Ut, setOleObjectName as Uu, ConnectorBuilder as V, applyChartLayouts as Va, flattenChartUserShapes as Vc, inkLengthToPx as Vd, parseTimeTargetElement as Vf, extractTableCellTextRuns as Vi, addSmartArtNodeAsChild as Vl, getConnectorAdjustment as Vn, AccessibilityIssueType as Vo, polygonNode as Vp, HslColor as Vr, LinkedTextBoxSegmentMap as Vs, MediaGraphicFrameXmlFactory as Vt, replaceOleFile as Vu, ImageBuilder as W, parseChartManualLayout as Wa, parseChartAxes as Wc, parseDataUrlToBytes as Wd, parseCondition as Wf, chartGridRemoveCategory as Wi, removeSmartArtNode as Wl, CLOUD_LOBE_COUNT as Wn, checkDuplicateTitles as Wo, buildForest as Wp, hexToRgbChannels as Wr, estimateTextBoxCapacity as Ws, CalloutPoint as Wt, renderOleDeckPreviewPng as Wu, replaceShapeGeometry as X, xmlChild as Xa, parseShapeProps as Xc, getCssBorderDashStyle as Xd, applySoundToEffectCTn as Xf, toArabicAbjadNumeral as Xi, SmartArtColorLists as Xl, applyCustomGeometryGuideOverrides as Xn, parseHexColor as Xo, algorithmParam as Xp, parseOoxmlPercent as Xr, applyKinsokuToXml as Xs, FreeformPathBuilder as Xt, RasterCanvas as Xu, parseSvgPath as Y, xmlAttrNumber as Ya, parseSeriesExplosion as Yc, ooxmlGradientAngleToCssDegrees as Yd, buildSingleEffectNode as Yf, formatScriptAutoNumber as Yi, SmartArtColorListDeps as Yl, evaluateCustomGeometryPaths as Yn, computeContrastRatio as Yo, FlowDirection as Yp, parseDrawingPercent as Yr, isHeaderFooterPlaceholder as Ys, isCalloutShape as Yt, renderOleIconPng as Yu, replaceWithCustomGeometry as Z, xmlChildren as Za, parseDataTable as Zc, getSvgStrokeDasharray as Zd, applyAfterAnimationBehavior as Zf, toChineseNumeral as Zi, buildSmartArtColorLists as Zl, resolveCustomGeometryGuideContext as Zn, relativeLuminance as Zo, itemNode as Zp, rgbToHsl as Zr, parseKinsoku as Zs, catmullRomToBezier as Zt, RasterColor as Zu, OpenXmlCoverageSummary as _, cropShapeForPresetGeometry as _a, isAlternateContentChoiceXmlSupported as _c, OleSheetRow$1 as _d, getElementTextContent as _f, STROKE_DASH_OPTIONS as _i, encryptPptx as _l, RenderedNode as _m, buildCustomGeometryPathsFromNodes as _n, EMPHASIS_PRESETS as _o, hasTextProperties as _p, normalizeStShapeType as _r, RepairResult as _s, updateChartUserShapeAtPath as _t, fitFontSize as _u, isEncryptedLegacyPpt as a, HEBREW_LETTERS as aa, buildActiveXControlNode as ac, readOleNestedDeckDetail as ad, serializeColorChoice as af, DEFAULT_FONT_FAMILY as ai, encodeXmlAttributeValue as al, ConstraintIndex as am, mergeShapes as an, reorderObjectKeys as ao, resolveDirectionSubtype as ap, getPresetConnectionSites as ar, applySmartArtLayoutDefinition as as, collectLayoutNames as at, parseSmartArtPointCustomLayout as au, listUnassessedOpenXmlCoverage as b, estimateMediaDurationMs as ba, isSwitchableLayoutType as bc, OlePayloadEditorKind as bd, readFileAsDataUrl as bf, SYSTEM_COLOR_MAP as bi, IncorrectPasswordError as bl, RenderedPolygonNode as bm, evaluateGeometryPaths as bn, getNativeAnimationPresetMetadata as bo, isInkElement as bp, PresetPathCommand as br, FONT_SUBSTITUTION_MAP as bs, setChartDataPointGradient as bt, nodeFill as bu, OPENXML_SCHEMA_CONSTRUCT_IDS as c, THAI_CONSONANTS as ca, parseVmlElement as cc, readOleDocParagraphs as cd, createTemplateShapeRawXml as cf, DEFAULT_TEXT_COLOR as ci, createSaltlessModifyVerifierForTesting as cl, hasReference as cm, subtractSvgPaths as cn, resolveLayoutDisplayName as co, mergeNativeSoundIntoEditorAnimations as cp, PresetConnectionSiteToken as cr, applyThemeOverrideToSlide as cs, uniquePrefixedName as ct, arrangeComposite as cu, OPENXML_COVERAGE as d, toCjkDigitString as da, extractModel3DTransform as dc, writeOleDocumentParagraphEdit as dd, createEditorId as df, MAX_TABLE_DIMENSION as di, buildOle2 as dl, validateSmartArtConstraintRules as dm, unionSvgPaths as dn, smartArtQuickStyleHas3d as do, remapEditorAnimationsToShapeIds as dp, PresetSubpathResult as dr, applyThemeToData as ds, addChartUserShapeGroupChild as dt, chooseAlgType as du, toFullWidthDigits as ea, parseShapeId as ec, encodeCompressedPng as ed, elementHasAction as ef, CONNECTOR_GEOMETRY_OPTIONS as ei, parseSeriesTrendlines as el, ArrangementKind as em, combineShapes as en, BLIP_FILL_ORDER as eo, CapturedPreset as ep, customGeometryPathsToSvgSubpaths as er, parseSmartArtDefinitionMetadata as es, getSectionForSlide as et, SmartArtEffectIntensity as eu, OpenXmlConstructCoverage as f, toEa1ChtNumeral as fa, resolveModel3DMimeType as fc, writeOleXlsStringCellEdit as fd, createUniformTextSegments as ff, MIN_ELEMENT_SIZE as fi, parseOle2 as fl, BoundingBox as fm, polygonsToSvgPath as fn, regenerateSmartArtDrawingShapes as fo, reconcileAnimationTargets as fp, evaluatePresetShape as fr, buildThemeColorMap as fs, getChartUserShapeAtPath as ft, resolveConstraintDeclaredBy as fu, OpenXmlCoverageLevel as g, romanNumeral as ga, isAlternateContentChoiceSupported as gc, OleSheetGrid$1 as gd, getElementLabel as gf, POWERPOINT_PRESENCE_KEY as gi, decryptPptx as gl, RenderedConnector as gm, stripXmlOrderSuffix as gn, AnimationPresetInfo as go, hasShapeProperties as gp, isStShapeType as gr, validatePptx as gs, updateChartUserShape as gt, colour as gu, OpenXmlCoverageFacets as h, formatAutoNumberMarker as ha, getSupportedNamespaces as hc, OleSheetCell$1 as hd, getCommentMarkerPosition as hf, OOXML_PERCENT_UNITS as hi, Ole2ParseError as hl, RenderedCircleNode as hm, orderedXmlKey as hn, AnimationCategory as ho, SLIDE_FIELD_KIND as hp, ST_SHAPE_TYPE_VALUES as hr, repairPptx as hs, removeChartUserShapeAtPath as ht, chevronPoints as hu, convertPptToPptx as i, ARABIC_HIJAI_LETTERS as ia, applyActiveXControlsToSlide as ic, OleNestedDeckTextElement as id, extractColorChoiceXml as if, DEFAULT_FILL_COLOR as ii, decodeXmlEntities as il, resolveRatioConstraint as im, intersectSvgPaths as in, TC_PR_BORDERS_ORDER as io, getCapturedTree as ip, EvaluatedPresetConnectionSite as ir, validateSmartArtDefinitionMetadata as is, resetSectionIdCounter as it, interpretedLayoutToElements as iu, inches as j, applyChartUpDownBars as ja, isParetoChartData as jc, inferOleExtensionFromTarget as jd, cloneShapeStyle as jf, updateMergeAttrsInRawXml as ji, deobfuscateFont as jl, getPresetShapeClipPath as jn, mergeStyleParts as jo, arrangePyramid as jp, parseDrawingColorChoice as jr, parsePanoseBytes as js, createGroupElement as jt, computeSmartArtElementsWithoutCache as ju, cmToEmu as k, applyDrawingMediaReference as ka, parseSlideDrawingGuides as kc, detectOleObjectType as kd, ungroupElements as kf, updateCellTextInRawXml as ki, mergeThemeColorOverride as kl, PRESET_SHAPE_DEFINITIONS as kn, TableStylePartFill as ko, PptxSmartArtHeaderText as kp, getShapeType as kr, getSubstituteFonts as ks, createConnectorElement as kt, TreeNode as ku, OPENXML_TRANSITIONAL_SCHEMA_CONSTRUCT_IDS as l, hebrewAlphaLabel as la, parseVmlElements as lc, writeOleDocParagraphEdit as ld, createArrayBufferCopy as lf, DEFAULT_TEXT_FONT_SIZE as li, resolveModifyVerifierAlgorithmName as ll, roleOf as lm, unionPolygons as ln, applySmartArtQuickStyle3d as lo, applyConnectorShapeIds as lp, filterValidShapeAdjustmentEntries as lr, reResolveElementFonts as ls, ChartUserShapePath as lt, arrangeHierarchy as lu, OpenXmlCoverageFacet as m, alphaLabel as ma, areNamespacesSupported as mc, writeOleXlsNumericCellEdit as md, formatCommentTimestamp as mf, OOXML_ANGLE_UNITS_PER_DEGREE as mi, Ole2File as ml, LayoutRect as mm, Vec2 as mn, ALL_ANIMATION_PRESETS as mo, ELEMENT_FIELD_KIND as mp, PRESET_GEOMETRY_ALIASES as mr, reResolveSlideColors as ms, removeChartUserShape as mt, discoverArrangement as mu, inspectPresentationText as n, toThaiDigits as na, remapShapeIdReferences as nc, encodePng as nd, buildSrgbColorChoice as nf, DEFAULT_CANVAS_HEIGHT as ni, preservesSpreadsheetXmlWhitespace as nl, findConstraint as nm, intersectPolygons as nn, PRESENTATION_CHILD_ORDER as no, capturedSubtypes as np, lookupPresetTextRectOverride as nr, parseSmartArtStyleLabelRefs as ns, removeSection as nt, resolveSmartArtNodeCoherent3DOff as nu, isLegacyPpt as o, HINDI_CONSONANTS as oa, parseActiveXControlsFromSlide as oc, readOleNestedDeckFirstSlideTextLines as od, serializeColorChoiceWithRef as of, DEFAULT_SCHEME_COLOR_MAP as oi, encodeXmlTextValue as ol, EMPTY_CONSTRAINT_INDEX as om, subtractPolygons as on, reorderObjectKeysByLocalName as oo, PptxAnimationWriteService as op, lookupPresetConnectionSites as or, parseSmartArtLayoutDefinition as os, collectMasterNames as ot, interpretSmartArtLayout as ou, OpenXmlCoverageEvidence as p, TEXT_AUTONUMBER_SCHEMES as pa, parseModel3DScene as pc, readOleXlsGrid as pd, ensureArrayValue as pf, MIN_TABLE_DIMENSION as pi, Ole2DirectoryEntry as pl, LayoutFamily as pm, svgPathToPolygons as pn, relayoutSmartArt as po, CollabFieldKind as pp, lookupPresetShape as pr, reResolveElementColors as ps, listChartUserShapes as pt, ArrangementPlan as pu, setElementLocked as q, xmlAttr as qa, parseMarker as qc, shadowOffsetToDistanceAndDirection as qd, serializeConditionList as qf, chartGridSetCellValue as qi, resetSmartArtEditCounter as ql, getAdjustmentAwareClipPath as qn, checkMissingSlideTitle as qo, treeWidth as qp, parseDrawingFraction as qr, writeBodyPrBooleanAttrs as qs, getCalloutTier as qt, OleIconGlyph as qu, setPresentationRunText as r, ARABIC_ABJADI_LETTERS as ra, visitXmlObjects as rc, OleNestedDeckSlideDetail as rd, colorsEqual as rf, DEFAULT_CANVAS_WIDTH as ri, preservesXmlWhitespace as rl, ratioConstraint as rm, intersectShapes as rn, SP_PR_ORDER as ro, getCapturedPreset as rp, PresetTextRectDefinition as rr, validateSmartArtColorStyleLabels as rs, reorderSections as rt, resolveSmartArtNodeStyleRoles as ru, EncryptedPptError as s, HINDI_VOWELS as sa, VML_SHAPE_TAGS as sc, writeOleNestedDeckElementText as sd, createTemplateConnectorRawXml as sf, DEFAULT_STROKE_COLOR as si, createModifyVerifier as sl, buildConstraintIndex as sm, subtractShapes as sn, LayoutDisplayNameInput as so, timingCurveToAccelDecel as sp, PresetConnectionSiteDefinition as sr, validateSmartArtLayoutDefinition as ss, uniqueDisplayName as st, arrangeConn as su, ELEMENT_PARAGRAPH_GEOMETRY_KEYS as t, toHebrewNumeral as ta, remapElementShapeIds as tc, decodePngDimensions as td, pptxActionToElementAction as tf, ConnectorGeometryType as ti, WHITESPACE_PRESERVING_TAGS as tl, clampByRules as tm, fragmentShapes as tn, EFFECT_LST_ORDER as to, capturedPresetIds as tp, getPresetTextRect as tr, parseSmartArtQuickStyleLabels as ts, moveSlidesToSection as tt, resolveSmartArtEffectIntensity as tu, OPENXML_STRICT_SCHEMA_CONSTRUCT_IDS as u, repeatedLabel as ua, Model3DTransform as uc, readOleDocumentParagraphs as ud, createDrawingObjectId as uf, EMU_PER_PX as ui, verifyModifyPassword as ul, resolveConstraint as um, unionShapes as un, isDefaultSmartArtLabelScene as uo, resolveConnectorShapeIds as up, PresetShapeEvaluationResult as ur, reResolveSlideFonts as us, addChartUserShape as ut, arrangeLinear as uu, OpenXmlVocabulary as v, presetGeometryForCropShape as va, isNamespaceSupported as vc, readOleSheetGrid as vd, isEditableTextElement as vf, SupportedShapeType as vi, verifyPassword as vl, RenderedNodeIdentity as vm, parseStructuredCustomGeometry as vn, MOTION_PATH_PRESETS as vo, isConnectorElement as vp, PRESET_SHAPE_GEOMETRY_TABLE as vr, ValidationIssue as vs, setChartAreaFormat as vt, flattenNodes as vu, ThemePresetName as w, extractStyleReferenceColorXml as wa, P15_GUIDE_URI as wc, OleUnwrapResult as wd, UngroupResult as wf, addTableStyleToMap as wi, COLOR_MAP_ALIAS_KEYS as wl, parseGuideDefinitions as wn, ParsedTableStyle as wo, PptxSmartArtDefinitionHeader as wp, getCloudPathForRendering as wr, PANOSE_WEIGHT_MAP as ws, setChartHelperLine as wt, strokeFor as wu, summarizeOpenXmlCoverage as x, sampleFirstPixelColorFromBytes as xa, switchSmartArtLayout as xc, detectOlePayloadEditorKind as xd, shouldRenderFallbackLabel as xf, TABLE_STYLE_PART_SEQUENCE as xi, EncryptedFileError as xl, RenderedRectNode as xm, createBuiltinVariables as xn, getPresetsByCategory as xo, isShapeElement as xp, PresetShapeGeometryDefinition as xr, PANOSE_FAMILY_MAP as xs, setChartSeriesGradient as xt, nodeOpacity as xu, findOpenXmlCoverage as y, syncPictureShapeTypeWithCropShape as ya, SWITCHABLE_LAYOUT_TYPES as yc, writeOleSheetCellEdit as yd, isTemplateElement as yf, PRESET_COLOR_MAP as yi, DataIntegrityError as yl, RenderedNodeTextStyle as ym, ooxmlArcToSvg as yn, getAnimationPresetInfo as yo, isImageLikeElement as yp, PresetPath as yr, ValidationResult as ys, setChartGroupOptions as yt, gearPoints as yu, GroupBuilder as z, applyBubbleChartOptions as za, parseEmbeddedXlsx as zc, InkTargetBox as zd, PptxGraphicBuildEntry as zf, PptxLoadDataBuilder as zi, setSmartArtNodeStyle as zl, multiplyTextOrientationMatrices as zn, AccessibilityIssue as zo, StyleContext as zp, themeColorRefToXml as zr, LinkedTextBoxChain as zs, PptxXmlFactoryProvider as zt, getOleNestedDeckDetail as zu };
|
|
9226
|
+
//# sourceMappingURL=index-EZJZ7USt.d.ts.map
|