ooxml-core 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/dist/{PptxHandler-75LOVF7I.mjs → PptxHandler-SJTINPU4.mjs} +3 -3
- package/dist/automation/index.cjs +6550 -4115
- package/dist/automation/index.mjs +6550 -4115
- 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 +3065 -139
- package/dist/chart/index.d.ts +7 -0
- package/dist/chart/index.d.ts.map +1 -1
- package/dist/chart/index.mjs +3045 -140
- 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-75LA7H3F.mjs → chunk-CQQAPUAG.mjs} +27440 -27402
- package/dist/{chunk-Q27H4HFS.mjs → chunk-FI4RSJ24.mjs} +1 -1
- package/dist/{chunk-OJI3N5AY.cjs → chunk-FRUB573B.cjs} +2 -0
- package/dist/{chunk-OMGH6IKY.mjs → chunk-TEOAOAIF.mjs} +42 -5
- package/dist/{chunk-RFX7AJDZ.mjs → chunk-VYTA2OUN.mjs} +2 -2
- package/dist/{chunk-LA7D6ZYQ.mjs → chunk-XCZ7U3GZ.mjs} +3569 -2075
- package/dist/{chunk-2C72N64G.cjs → chunk-XROY25LN.cjs} +12 -0
- 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 +4042 -683
- package/dist/docx/index.d.ts +2 -0
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +4038 -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 +2672 -88
- package/dist/docx/layout/index.mjs +2673 -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 +2600 -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 +2599 -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 +34835 -18367
- package/dist/index.mjs +34831 -18367
- 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 +9023 -7151
- 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 +8702 -6830
- 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 +9345 -7304
- 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 +3778 -1999
- package/dist/teams/index.d.ts +1 -0
- package/dist/teams/index.d.ts.map +1 -1
- package/dist/teams/index.mjs +3777 -1999
- 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/external.d.ts +28 -0
- package/dist/xlsx/edit/external.d.ts.map +1 -0
- 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 +7 -0
- 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/types.d.ts +14 -1
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/formula/engine.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/tokenizer.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +4599 -2399
- package/dist/xlsx/index.mjs +4589 -2400
- 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 +7 -4
- 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/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 +3036 -1286
- package/dist/xlsx/load/index.mjs +3036 -1286
- 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 +1127 -559
- package/dist/xlsx/ui/index.mjs +1127 -560
- 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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The drawing transform of a laid-out node. A layout box is the node's
|
|
3
|
+
* footprint on the canvas; a `dgm:shape rot` of 90 or 270 degrees stands the
|
|
4
|
+
* shape on its side inside that footprint, so the unrotated shape (what a
|
|
5
|
+
* DrawingML `a:xfrm` records before applying `rot`) has the footprint's width
|
|
6
|
+
* and height swapped about the same centre.
|
|
7
|
+
*/
|
|
8
|
+
import type { Box, EngineNode } from './engine-node.js';
|
|
9
|
+
export interface ShapeTransform extends Box {
|
|
10
|
+
/** Clockwise rotation in degrees, normalised to [0, 360). */
|
|
11
|
+
rotation: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function shapeTransform(node: EngineNode): ShapeTransform | undefined;
|
|
14
|
+
//# sourceMappingURL=shape-transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-transform.d.ts","sourceRoot":"","sources":["../../../diagram/engine/shape-transform.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,cAAe,SAAQ,GAAG;IAC1C,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc,GAAG,SAAS,CAa3E"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A `snake` whose cells a `dgm:rule` may shrink (ECMA-376 Part 1, 21.4.2.x
|
|
3
|
+
* `dgm:rule`: "Meet the Team"'s `<dgm:rule type="w" for="ch"
|
|
4
|
+
* forName="compNode" val="50"/>`), and whose cells grow to their content
|
|
5
|
+
* (`<dgm:rule type="h" val="INF"/>` on the cell). Such a grid does not scale
|
|
6
|
+
* uniformly: the cell's photo scales with its width but its name and role
|
|
7
|
+
* lines are fixed millimetre heights, so the grid is re-laid at each
|
|
8
|
+
* candidate width.
|
|
9
|
+
*
|
|
10
|
+
* PowerPoint finds the width by bisection between the rule's `val` and the
|
|
11
|
+
* cell's constrained width, FIVE probes, keeping the last probe that fits
|
|
12
|
+
* (or the rule's `val` when none does), breaking lines when the canvas edge
|
|
13
|
+
* is reached (`bkpt="endCnv"`, the default). Measured on the gallery's
|
|
14
|
+
* cached drawings, EMU-exact: "Meet the Team" flat3 (3 cells from 100mm:
|
|
15
|
+
* probes 75, 62.5, 68.75, 71.88, 73.44mm, kept 73.44mm = 2643750 EMU) and
|
|
16
|
+
* hier5 (4 cells from the 650pt frame width: the fifth probe, 2001719 EMU,
|
|
17
|
+
* is the first that fits, one row of four); hier8 (6 cells) never fits a
|
|
18
|
+
* probe and lands on the 50mm floor, two rows of four and two.
|
|
19
|
+
*/
|
|
20
|
+
import type { Box, EngineNode } from './engine-node.js';
|
|
21
|
+
export interface SnakeCellFit {
|
|
22
|
+
cellW: number;
|
|
23
|
+
cellH: number;
|
|
24
|
+
along: number;
|
|
25
|
+
across: number;
|
|
26
|
+
cols: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The cell size and line length a rule-shrunk snake settles on, or
|
|
30
|
+
* `undefined` when the node has no such rule (or its cells do not grow), for
|
|
31
|
+
* the uniform-scale path in `alg-snake.ts`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function fitSnakeByRule(node: EngineNode, box: Box, cells: EngineNode[], spacers: EngineNode[], row: boolean): SnakeCellFit | undefined;
|
|
34
|
+
//# sourceMappingURL=snake-rule-fit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snake-rule-fit.d.ts","sourceRoot":"","sources":["../../../diagram/engine/snake-rule-fit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQrD,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb;AAwFD;;;;GAIG;AACH,wBAAgB,cAAc,CAC7B,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,UAAU,EAAE,EACnB,OAAO,EAAE,UAAU,EAAE,EACrB,GAAG,EAAE,OAAO,GACV,YAAY,GAAG,SAAS,CAmC1B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The presentation style label (`presStyleLbl`) of an engine node: the label
|
|
3
|
+
* PowerPoint records on the node's presentation point, and the quick-style /
|
|
4
|
+
* colour-transform label its shape is styled with.
|
|
5
|
+
*
|
|
6
|
+
* A layout node's own `@styleLbl` wins, then the nearest ancestor's. Most
|
|
7
|
+
* built-in layouts declare none on their main shapes, and PowerPoint then
|
|
8
|
+
* derives one from the point the node presents (checked against every
|
|
9
|
+
* presentation point of the 3D ground-truth deck's eight layouts):
|
|
10
|
+
*
|
|
11
|
+
* - a content point at data depth `d` (the diagram's top-level items are depth
|
|
12
|
+
* 1) is `node<d>`: Basic Pyramid's `level` is `node1`, Organization Chart's
|
|
13
|
+
* second-level `rootText` is `node2`;
|
|
14
|
+
* - a sibling transition is `sibTrans2D1` (or `sibTrans1D1` for a 1-D
|
|
15
|
+
* connector): Basic Process / Basic Cycle arrows and their `connectorText`;
|
|
16
|
+
* - a parent transition is `parChTrans<dim><d>`, `d` being the child's depth:
|
|
17
|
+
* Organization Chart's and Basic Radial's lines are `parChTrans1D2`.
|
|
18
|
+
*
|
|
19
|
+
* Labels are capped at 4, the deepest level a quick style defines.
|
|
20
|
+
*/
|
|
21
|
+
import type { EngineNode } from './engine-node.js';
|
|
22
|
+
/** The style label of an engine node's shape, or `undefined` when none applies. */
|
|
23
|
+
export declare function engineStyleLabel(node: EngineNode): string | undefined;
|
|
24
|
+
//# sourceMappingURL=style-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-label.d.ts","sourceRoot":"","sources":["../../../diagram/engine/style-label.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAyChD,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAOrE"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-node text fitting for the per-point layout engine's output stage
|
|
3
|
+
* (ECMA-376 Part 1, 21.4.2.x: a `tx` node's `primFontSz` constraint is the
|
|
4
|
+
* STARTING size, and a `dgm:rule type="primFontSz"` lets PowerPoint shrink
|
|
5
|
+
* it, down to the rule's `val`, until the node's text fits its own text
|
|
6
|
+
* box). Equalisation across nodes (`op="equ"` groups, `op="lte"` links)
|
|
7
|
+
* happens one level up, in `font-groups.ts`; this module answers the
|
|
8
|
+
* single-node question "what is the largest whole point this node's text
|
|
9
|
+
* fits at?".
|
|
10
|
+
*
|
|
11
|
+
* All arithmetic is in POINTS, matching the engine's internal coordinate
|
|
12
|
+
* space. The paragraph model itself (line pitch, folded descendants,
|
|
13
|
+
* spacing) lives in `text-measure.ts`; this module supplies the node-level
|
|
14
|
+
* inputs: the preset's text rectangle, the margins and the size bounds.
|
|
15
|
+
*/
|
|
16
|
+
import type { EngineNode } from './engine-node.js';
|
|
17
|
+
import type { NodeText, TextMetrics } from './text-measure.js';
|
|
18
|
+
export type { NodeText, TextMetrics } from './text-measure.js';
|
|
19
|
+
export { sizingVariable } from './layout-font.js';
|
|
20
|
+
/** Starting size (points) for a text node with no `primFontSz` constraint. */
|
|
21
|
+
export declare const DEFAULT_START_PT = 65;
|
|
22
|
+
/** Another node's current font size, for a margin that references it (undefined: use the fitted node's own). */
|
|
23
|
+
export type FontSizeOf = (node: EngineNode) => number | undefined;
|
|
24
|
+
/** Whole-point bounds a node's size may take before any cross-node equalisation. */
|
|
25
|
+
export interface FontBoundsPt {
|
|
26
|
+
start: number;
|
|
27
|
+
floor: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The node's starting size (its `primFontSz` constraint value, capped by any
|
|
31
|
+
* literal `op="lte"` bound) and its shrink floor (the lowest `primFontSz`
|
|
32
|
+
* rule reaching it). With no rule, PowerPoint does not shrink the text at
|
|
33
|
+
* all, so the floor is the start itself.
|
|
34
|
+
*/
|
|
35
|
+
export declare function nodeFontBounds(node: EngineNode): FontBoundsPt;
|
|
36
|
+
export declare function nodeTextBox(node: EngineNode): {
|
|
37
|
+
w: number;
|
|
38
|
+
h: number;
|
|
39
|
+
} | undefined;
|
|
40
|
+
/** {@link nodeTextBox} for a `w` x `h` footprint (a size the node is being grown to). */
|
|
41
|
+
export declare function textBoxAt(node: EngineNode, boxW: number, boxH: number): {
|
|
42
|
+
w: number;
|
|
43
|
+
h: number;
|
|
44
|
+
};
|
|
45
|
+
type MarginSide = 'lMarg' | 'rMarg' | 'tMarg' | 'bMarg';
|
|
46
|
+
/**
|
|
47
|
+
* Per-side margins (points) at candidate size `sizePt`: a margin referencing
|
|
48
|
+
* a font size (`refType="primFontSz"`, or `"secFontSz"` on a node whose text
|
|
49
|
+
* follows its `secFontSz`) scales with that font (`fact x size`, where a
|
|
50
|
+
* reference to ANOTHER node reads that node's size via `refSize`: "Circle
|
|
51
|
+
* Arrow Process"'s 18pt child boxes inset `0.05 x` their 23pt parent's
|
|
52
|
+
* size, 1.15pt, not 0.9pt), a literal one is
|
|
53
|
+
* fixed, and a node declaring none gets PowerPoint's default proportional
|
|
54
|
+
* inset.
|
|
55
|
+
*/
|
|
56
|
+
export declare function nodeMarginsPt(node: EngineNode, sizePt: number, refSize?: FontSizeOf): Record<MarginSide, number>;
|
|
57
|
+
/** Whether `text` fits `node`'s text box at whole-point size `sizePt`. */
|
|
58
|
+
export declare function textFitsAt(node: EngineNode, text: NodeText, sizePt: number, metrics: TextMetrics, refSize?: FontSizeOf): boolean;
|
|
59
|
+
/** Largest whole point in `[bounds.floor, bounds.start]` at which `text` fits (the floor when nothing does). */
|
|
60
|
+
export declare function fitNodeFontPt(node: EngineNode, text: NodeText, bounds: FontBoundsPt, metrics: TextMetrics, refSize?: FontSizeOf): number;
|
|
61
|
+
//# sourceMappingURL=text-fit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-fit.d.ts","sourceRoot":"","sources":["../../../diagram/engine/text-fit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG5D,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAgBnC,gHAAgH;AAChH,MAAM,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,MAAM,GAAG,SAAS,CAAC;AAElE,oFAAoF;AACpF,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AA2BD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,YAAY,CAmB7D;AAkBD,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAYlF;AAED,yFAAyF;AACzF,wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAchG;AAED,KAAK,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAGxD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC5B,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,UAAU,GAClB,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAgB5B;AAED,0EAA0E;AAC1E,wBAAgB,UAAU,CACzB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW,EACpB,OAAO,CAAC,EAAE,UAAU,GAClB,OAAO,CAYT;AAED,gHAAgH;AAChH,wBAAgB,aAAa,CAC5B,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,WAAW,EACpB,OAAO,CAAC,EAAE,UAAU,GAClB,MAAM,CAOR"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text-driven node sizing (ECMA-376 Part 1, 21.4.2.x `dgm:rule`): a `tx`
|
|
3
|
+
* node whose rule list lets its height grow (`<dgm:rule type="h"
|
|
4
|
+
* val="INF"/>`) is as tall as its constraints make it OR as its text needs
|
|
5
|
+
* at the size the layout is being built around, whichever is larger.
|
|
6
|
+
* "Vertical Bullet List"'s `parentText` is `0.52 x primFontSz` tall until a
|
|
7
|
+
* wrapped label needs more; "Vertical Box List"'s `childText` grows past its
|
|
8
|
+
* `0.7 x primFontSz` for a child line under its `1.64 x primFontSz` top
|
|
9
|
+
* margin.
|
|
10
|
+
*
|
|
11
|
+
* The grown height is the text's measured height (`text-measure.ts`) plus
|
|
12
|
+
* its margins, inside the preset's own text rectangle, plus a small
|
|
13
|
+
* `GROW_SLACK_EM`: across the cached drawings a grown box is 0.03-0.06em
|
|
14
|
+
* taller than the fitted text's own block (single lines at 30, 35 and 46pt:
|
|
15
|
+
* 0.043, 0.040, 0.040em; two lines at 40pt 0.033em; two bullet paragraphs at
|
|
16
|
+
* 27pt 0.040em).
|
|
17
|
+
*
|
|
18
|
+
* Only runs inside a font search (the node's font must be known); see
|
|
19
|
+
* `font-search.ts`.
|
|
20
|
+
*/
|
|
21
|
+
import type { EngineNode } from './engine-node.js';
|
|
22
|
+
import type { Size } from './preferred-size.js';
|
|
23
|
+
export declare const GROW_SLACK_EM = 0.04;
|
|
24
|
+
/** Whether a rule reaching `node` lets its `type` grow without bound. */
|
|
25
|
+
export declare function canGrow(node: EngineNode, type: 'w' | 'h'): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The height `node`'s text needs at width `w`, or `undefined` when its font
|
|
28
|
+
* is not known yet, it has no text, or a word is wider than its line.
|
|
29
|
+
*/
|
|
30
|
+
export declare function textNeedHeight(node: EngineNode, w: number, h: number): number | undefined;
|
|
31
|
+
/** `size` grown to fit `node`'s text where its rules allow (see module doc). */
|
|
32
|
+
export declare function grownSize(node: EngineNode, size: Size): Size;
|
|
33
|
+
//# sourceMappingURL=text-grow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-grow.d.ts","sourceRoot":"","sources":["../../../diagram/engine/text-grow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,yEAAyE;AACzE,wBAAgB,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,OAAO,CAqBlE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA8BzF;AAED,gFAAgF;AAChF,wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAS5D"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paragraph measurement for the per-point engine's text fit: does a node's
|
|
3
|
+
* text, at a candidate whole-point size, fit a given width and height?
|
|
4
|
+
*
|
|
5
|
+
* The model, each part measured against the gallery corpus's cached
|
|
6
|
+
* drawings or PowerPoint itself (COM):
|
|
7
|
+
*
|
|
8
|
+
* - Glyph advances come from the COM-measured tables
|
|
9
|
+
* (`font-advance-widths.generated.ts`), greedy word-wrapped per paragraph
|
|
10
|
+
* (`smartart-text-wrap-fit.ts`), in CSS pixels so each advance snaps to
|
|
11
|
+
* PowerPoint's 1/6-px hinting grid.
|
|
12
|
+
* - Line pitch: `lnSpc 90%` of the font's own line height, plus a fixed
|
|
13
|
+
* extra per text block (`smartart-line-pitch.ts` has the COM numbers).
|
|
14
|
+
* - A folded descendant renders at `round(0.78 x size)` in a hanging-indented
|
|
15
|
+
* column (`descendantIndentPt`); paragraphs are separated by their
|
|
16
|
+
* `spcAft` (35% after the node's own, 15% after a folded descendant, 20% in
|
|
17
|
+
* a descendant-only box), never after the last paragraph.
|
|
18
|
+
*/
|
|
19
|
+
import type { FontAdvanceTable } from '../../text/font-metrics/font-advance-widths.generated';
|
|
20
|
+
/** A folded descendant paragraph's size relative to the node's own text (cached corpus: 54/56 pairs). */
|
|
21
|
+
export declare const DESCENDANT_FONT_SCALE = 0.78;
|
|
22
|
+
/**
|
|
23
|
+
* The text one rendered node shows, as PowerPoint lays it out. Paragraph
|
|
24
|
+
* levels follow the `tx` algorithm's parameters (ECMA-376 21.4.2.x):
|
|
25
|
+
* `stBulletLvl` is the first (1-based) level drawn as a bullet, default 2,
|
|
26
|
+
* `0` meaning none; an anchored node's own paragraph is level 1 and every
|
|
27
|
+
* folded descendant level 2, a descendant-only box's paragraphs are all
|
|
28
|
+
* level 1. `lnSpAfParP`/`lnSpAfChP` are the percent spacing after a plain
|
|
29
|
+
* and a bullet paragraph (defaults 35 and 15). Cached corpus: "Basic Block
|
|
30
|
+
* List" (defaults: bullets at 0.78x after a 35% gap), "Vertical Bullet
|
|
31
|
+
* List"'s `childText` (`stBulletLvl=1`, `lnSpAfChP=20`: every paragraph a
|
|
32
|
+
* bullet), "Descending Block List"'s `childText` (default: level-1 plain
|
|
33
|
+
* paragraphs, no indent), "Vertical Action List" (`stBulletLvl=0`).
|
|
34
|
+
*/
|
|
35
|
+
export interface NodeText {
|
|
36
|
+
/** The node's own (level 1) paragraph, when its `presOf` includes the point itself. */
|
|
37
|
+
own?: string;
|
|
38
|
+
descendants: string[];
|
|
39
|
+
/** `tx` `stBulletLvl` (default 2; 0 = no bullets). */
|
|
40
|
+
bulletLevel?: number | undefined;
|
|
41
|
+
/** Percent `spcAft` after a plain / a bullet paragraph. */
|
|
42
|
+
spaceAfterParent?: number | undefined;
|
|
43
|
+
spaceAfterChild?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* `secFontSz` as a multiple of `primFontSz`: 0.78 by default (cached
|
|
46
|
+
* corpus, 54 of 56 folded pairs), 1 where the node declares
|
|
47
|
+
* `primFontSz refType="secFontSz"` and is sized by `secFontSz` itself.
|
|
48
|
+
*/
|
|
49
|
+
secondaryScale?: number | undefined;
|
|
50
|
+
}
|
|
51
|
+
/** Font metrics a fit runs against. */
|
|
52
|
+
export interface TextMetrics {
|
|
53
|
+
table: FontAdvanceTable;
|
|
54
|
+
/** Line height in em before the 90% SmartArt line spacing. */
|
|
55
|
+
lineEm: number;
|
|
56
|
+
}
|
|
57
|
+
/** Metrics for text measured with `table` (see `smartart-line-pitch.ts` for the line height). */
|
|
58
|
+
export declare function textMetricsFor(table: FontAdvanceTable): TextMetrics;
|
|
59
|
+
/**
|
|
60
|
+
* Bullet paragraphs and every folded descendant render at the node's
|
|
61
|
+
* `secFontSz`, plain level-1 paragraphs at its `primFontSz`: "Gear"'s child
|
|
62
|
+
* box (`stBulletLvl=1`, equalised with the gear at 17pt) draws its bullets
|
|
63
|
+
* at 13pt, "Circle Arrow Process"'s bulleted children 18pt under a 23pt cap,
|
|
64
|
+
* while "Descending Block List"'s unbulleted child text stays at 33pt.
|
|
65
|
+
*/
|
|
66
|
+
export declare function paragraphSizesPt(text: NodeText, sizePt: number): {
|
|
67
|
+
first: number;
|
|
68
|
+
secondary: number;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* The height (points) `text` takes at `sizePt` wrapped to `availW` points,
|
|
72
|
+
* or `undefined` when a word is wider than the line (no wrap can fit it).
|
|
73
|
+
*/
|
|
74
|
+
export declare function paragraphsHeight(text: NodeText, sizePt: number, availW: number, metrics: TextMetrics): number | undefined;
|
|
75
|
+
/** Whether `text` at `sizePt` fits `availW` x `availH` points (net of margins). */
|
|
76
|
+
export declare function paragraphsFit(text: NodeText, sizePt: number, availW: number, availH: number, metrics: TextMetrics): boolean;
|
|
77
|
+
//# sourceMappingURL=text-measure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-measure.d.ts","sourceRoot":"","sources":["../../../diagram/engine/text-measure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAW9F,yGAAyG;AACzG,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,QAAQ;IACxB,uFAAuF;IACvF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAMD,uCAAuC;AACvC,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,gBAAgB,CAAC;IACxB,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;CACf;AAED,iGAAiG;AACjG,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW,CAEnE;AASD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,GACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAMtC;AAuBD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW,GAClB,MAAM,GAAG,SAAS,CAkBpB;AAED,mFAAmF;AACnF,wBAAgB,aAAa,CAC5B,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW,GAClB,OAAO,CAGT"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { arrangeHierarchy } from './smartart-layout-interpreter-hierarchy.js';
|
|
2
|
+
export { resolveHierarchyDispatchChAlign, resolveHierarchyDispatchLinDir, resolveHierarchyRootAlign, } from './smartart-hierarchy-dispatch-lindir.js';
|
|
3
|
+
export { resolveHierarchyGenerationTemplates, type HierarchyGenerationTemplate, type HierarchyGenerationTemplates, type HierarchyRootTemplate, } from './smartart-hierarchy-generation-templates.js';
|
|
4
|
+
export { tailedHierarchyDeclaresChAlign } from './smartart-hierarchy-tailed-transpose.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../diagram/hierarchy/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EACN,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,GACzB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,mCAAmC,EACnC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,GAC1B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartArt DiagramML interpreter - hierarchy fan/generation axis pitch.
|
|
3
|
+
*
|
|
4
|
+
* Split out of `smartart-layout-interpreter-hierarchy.ts` (the file-size
|
|
5
|
+
* budget): the `cellW`/`cellH` derivation itself (`compositeFanPitch`/
|
|
6
|
+
* `computeAxisPitch` wiring), alongside the doc comments explaining WHY the
|
|
7
|
+
* two axes use genuinely different models. `cellW`/`cellH` as a naive
|
|
8
|
+
* `dimension/count` split distributes leftover space EQUALLY on both ends
|
|
9
|
+
* ("space-around"); real PowerPoint treats the two axes DIFFERENTLY instead:
|
|
10
|
+
* generation axis - fixed leading margin (top), trailing edge flush against
|
|
11
|
+
* the far box edge; fan axis - CENTRED (no margin, a fixed `sibSp` gap,
|
|
12
|
+
* slack split evenly). `pitch` plugs in as `cellW`/`cellH`; `shift` corrects
|
|
13
|
+
* the position afterwards via `translateResult`.
|
|
14
|
+
*
|
|
15
|
+
* Pure geometry; no framework code, no DOM.
|
|
16
|
+
*/
|
|
17
|
+
import type { HierarchyHangShape } from './smartart-hierarchy-hang-depth.js';
|
|
18
|
+
import type { HierarchyOrientation } from './smartart-hierarchy-orientation.js';
|
|
19
|
+
import type { AxisPitch } from './smartart-hierarchy-pitch.js';
|
|
20
|
+
import type { BoundingBox } from '../layout/smartart-layout-types.js';
|
|
21
|
+
export interface HierarchyAxisPitches {
|
|
22
|
+
xPitch: AxisPitch;
|
|
23
|
+
yPitch: AxisPitch;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Resolve the fan-axis (`x`) and generation-axis (`y`) pitch/shift together.
|
|
27
|
+
*
|
|
28
|
+
* A TRANSPOSED hierarchy needs no GENERATION-axis leading margin (its item
|
|
29
|
+
* size already fills the box edge-to-edge, so a nonzero margin double-counts
|
|
30
|
+
* space that was never there - measured regression:
|
|
31
|
+
* `horizontal-hierarchy--flat3.pptx`'s root rendered 61px off the box's left
|
|
32
|
+
* edge instead of flush). `tailed` mode: a pitch fill against the WHOLE
|
|
33
|
+
* `effectiveBox` assumes `totalLeaves`/`depth` items genuinely span it -
|
|
34
|
+
* true for `std` (every generation fans), false here (only
|
|
35
|
+
* `fannedGenerations` rows fan; the REST is reserved for the hanging tail
|
|
36
|
+
* via its own separate `vGap`/indent mechanism, already sized via
|
|
37
|
+
* `fitItemBox`'s own `maxHangDepth` term). Filling the WHOLE box using only
|
|
38
|
+
* the fanned count double-reserves that space as one giant inter-row gap
|
|
39
|
+
* (COM-verified regression: `organization-chart--hier5.pptx`'s own
|
|
40
|
+
* generation-1 row rendered ~200px too far down) - scoped to just the
|
|
41
|
+
* FAN-share instead. `fanHeight` reserves `maxHangRows` rows (the tallest
|
|
42
|
+
* hanging branch's own ROW count, not `maxHangDepth`'s hop count - see
|
|
43
|
+
* `HierarchyHangShape.maxHangRows`'s doc comment in `smartart-hierarchy-
|
|
44
|
+
* hang-depth.ts`), matching `fitItemBox`'s own height-axis term.
|
|
45
|
+
*
|
|
46
|
+
* The FAN axis is CENTRED (`compositeFanPitch`), not a leading-margin/
|
|
47
|
+
* trailing-flush pack (`compositeWidthFactor` is `undefined` for
|
|
48
|
+
* `tailedPitch` mode: org-chart's own `rootText1` is never shrunk relative
|
|
49
|
+
* to its own composite wrapper - see `smartart-hierarchy-composite-
|
|
50
|
+
* child.ts`). Used UNCONDITIONALLY for `tailedPitch` too: empirically
|
|
51
|
+
* byte-identical to the OLD `computeAxisPitch(fanWidth, 0, boxW,
|
|
52
|
+
* totalLeaves)` fill-exactly formula across all 7 org-chart-family fixtures
|
|
53
|
+
* - a real equivalence, not a guess; the remaining org-chart residual is
|
|
54
|
+
* therefore NOT a fan-axis bug, see `smartart-track-r-successor.md`'s own
|
|
55
|
+
* SESSION 9.
|
|
56
|
+
*
|
|
57
|
+
* `orientation.generationGapRatio` (COM-verified fixed ratio - see
|
|
58
|
+
* `smartart-hierarchy-generation-gap.ts`) replaces the OLD "solve to fill
|
|
59
|
+
* the box" GENERATION-axis gap ONLY for plain, non-transposed, non-tailed
|
|
60
|
+
* "Hierarchy": `transposed`/`tailed` are unchanged, not yet re-measured
|
|
61
|
+
* against this same fixed-vs-solved distinction (see `smartart-track-r-
|
|
62
|
+
* successor.md`'s SESSION 10).
|
|
63
|
+
*/
|
|
64
|
+
export declare function computeHierarchyAxisPitches(effectiveBox: BoundingBox, orientation: HierarchyOrientation, boxW: number, boxH: number, totalLeaves: number, depth: number, hangShape: HierarchyHangShape, tailedPitch: boolean, cascadeReserveOffsetPx?: number): HierarchyAxisPitches;
|
|
65
|
+
//# sourceMappingURL=smartart-hierarchy-axis-pitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartart-hierarchy-axis-pitch.d.ts","sourceRoot":"","sources":["../../../diagram/hierarchy/smartart-hierarchy-axis-pitch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAO5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IACpC,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,SAAS,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,2BAA2B,CAC1C,YAAY,EAAE,WAAW,EACzB,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,kBAAkB,EAC7B,WAAW,EAAE,OAAO,EACpB,sBAAsB,CAAC,EAAE,MAAM,GAC7B,oBAAoB,CAwKtB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartArt DiagramML interpreter - re-derive `HierarchyOrientation`'s
|
|
3
|
+
* axis-relative fields for the "centred-on-children, axis-swapped"
|
|
4
|
+
* construct (`smartart-hierarchy-centered-fan-axis.ts`).
|
|
5
|
+
*
|
|
6
|
+
* `resolveHierarchyOrientation`'s STD branch resolves `aspectRatio` as a
|
|
7
|
+
* plain real-space "h:w" ratio, and `generationGapRatio`/
|
|
8
|
+
* `compositeGenerationGapRatio`/`hangHeightRatio` by searching for a `sp`
|
|
9
|
+
* constraint declared relative to the item's own HEIGHT (`'h'`) - both
|
|
10
|
+
* correct for the classic (fan=X, generation=Y) convention that branch
|
|
11
|
+
* assumes. `arrangeHierarchy`'s `axisSwapped` mode runs the SAME
|
|
12
|
+
* std-branch-sized algorithm but through the SAME `effectiveBox`-swap +
|
|
13
|
+
* `transposeResult` post-pass `orientation.transposed` already uses for the
|
|
14
|
+
* unrelated "Horizontal Hierarchy" family (see that field's own module doc
|
|
15
|
+
* comment) - which means the item's LOGICAL width (pre-swap) becomes its
|
|
16
|
+
* FINAL height, and vice versa. Two fields need re-deriving for this reason:
|
|
17
|
+
*
|
|
18
|
+
* - `aspectRatio` must be INVERTED (mirroring
|
|
19
|
+
* `resolveHierarchyOrientation`'s own transposed-branch `1 / hToW`): the
|
|
20
|
+
* STD branch's `h = aspectRatio * w` becomes, after the swap,
|
|
21
|
+
* `w_final = h_logical = aspectRatio * w_logical = aspectRatio *
|
|
22
|
+
* h_final` - backwards. Feeding `1 / aspectRatio` into the LOGICAL solve
|
|
23
|
+
* restores the intended real-space relationship after the swap.
|
|
24
|
+
* - `generationGapRatio`/`compositeGenerationGapRatio`/`hangHeightRatio`
|
|
25
|
+
* search for a `sp` constraint on the item's STACKING axis - the STD
|
|
26
|
+
* branch always searches `'h'` (its own generation axis, in real
|
|
27
|
+
* terms), but `horizontal-labeled-hierarchy--hier5.pptx`'s own layout
|
|
28
|
+
* declares this gap relative to `'w'` instead (`<dgm:constr type="sp"
|
|
29
|
+
* for="des" refType="w" refFor="des" refForName="level1Shape"
|
|
30
|
+
* fact="0.4"/>`, on an ancestor `mainComposite` wrapper) - because ITS
|
|
31
|
+
* generation axis's real-space extent IS the item's width (the whole
|
|
32
|
+
* point of the construct). Re-resolved here with stacking axis `'w'`
|
|
33
|
+
* via the SAME general `resolveGenerationGapRatio` (including its own
|
|
34
|
+
* ancestor-index fallback, `smartart-hierarchy-generation-gap.ts`), not
|
|
35
|
+
* a per-layout special case.
|
|
36
|
+
*
|
|
37
|
+
* `marginXRatio`/`marginYRatio`/`sibSpRatio`/`compositeWidthFactor`/
|
|
38
|
+
* `compositeHeightFactor`/`cardOffsetXRatio`/`compositeChainHeightRatio` need
|
|
39
|
+
* NO adjustment: `fitItemBox`'s own "X" parameter role is always the FAN
|
|
40
|
+
* axis regardless of which real-space axis that maps to (see
|
|
41
|
+
* `smartart-layout-interpreter-hierarchy.ts`'s own module doc comment), and
|
|
42
|
+
* `sibSpRatio`/the composite factors are plain declared ratios, not tied to
|
|
43
|
+
* a specific real `w`/`h` label.
|
|
44
|
+
*
|
|
45
|
+
* No `compositeChild`-aware correction (unlike `resolveHierarchyOrientation`'s
|
|
46
|
+
* own calls): no corpus fixture reaching this construct declares a
|
|
47
|
+
* `composite` wrapper around its item template yet (`horizontal-labeled-
|
|
48
|
+
* hierarchy--hier5.pptx`'s own `level1Shape`/`level2Shape` nest directly
|
|
49
|
+
* under their `hierRoot`) - a successor adding one can re-derive
|
|
50
|
+
* `compositeChild` the same way `resolveHierarchyOrientation` does and
|
|
51
|
+
* thread it through, generalising this function rather than special-casing.
|
|
52
|
+
*
|
|
53
|
+
* Pure geometry/constraint reading; no framework code.
|
|
54
|
+
*/
|
|
55
|
+
import type { DiagramLayoutNode } from '../model/index.js';
|
|
56
|
+
import type { ConstraintIndex } from '../layout/smartart-constraint-solver.js';
|
|
57
|
+
import type { HierarchyOrientation } from './smartart-hierarchy-orientation-types.js';
|
|
58
|
+
/**
|
|
59
|
+
* Adjust `orientation` (already resolved by `resolveHierarchyOrientation`'s
|
|
60
|
+
* STD branch) for the axis-swapped construct - see the module doc comment.
|
|
61
|
+
* Returns `orientation` unchanged when it is already `transposed` (the
|
|
62
|
+
* "Horizontal Hierarchy" branch resolves its own ratios for its own later
|
|
63
|
+
* swap; this construct's own gate, `hierarchyDeclaresCenteredFanAxisSwap`,
|
|
64
|
+
* never fires for that family anyway, but this keeps the function safe to
|
|
65
|
+
* call unconditionally).
|
|
66
|
+
*/
|
|
67
|
+
export declare function adjustOrientationForAxisSwap(orientation: HierarchyOrientation, algorithmNode: DiagramLayoutNode | undefined, index: ConstraintIndex, itemShapeName: string | undefined): HierarchyOrientation;
|
|
68
|
+
//# sourceMappingURL=smartart-hierarchy-axis-swap-orientation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartart-hierarchy-axis-swap-orientation.d.ts","sourceRoot":"","sources":["../../../diagram/hierarchy/smartart-hierarchy-axis-swap-orientation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAC3C,WAAW,EAAE,oBAAoB,EACjC,aAAa,EAAE,iBAAiB,GAAG,SAAS,EAC5C,KAAK,EAAE,eAAe,EACtB,aAAa,EAAE,MAAM,GAAG,SAAS,GAC/B,oBAAoB,CAuBtB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartArt DiagramML interpreter - hierarchy `hierBranch`/`linDir`/`chPref`
|
|
3
|
+
* mode resolution.
|
|
4
|
+
*
|
|
5
|
+
* Split out of `smartart-layout-interpreter-hierarchy.ts` (the file-size
|
|
6
|
+
* budget): pure decision helpers deciding WHICH placement mode
|
|
7
|
+
* (`std`/`tailed`/`hanging`), tail direction, and per-row size
|
|
8
|
+
* `arrangeHierarchy` should use, all read from `presLayoutVars`/`linDir` -
|
|
9
|
+
* see that module's own doc comment for the full derivation and the
|
|
10
|
+
* genuine-fixture measurements behind each rule.
|
|
11
|
+
*
|
|
12
|
+
* Pure decision logic; no framework code, no DOM.
|
|
13
|
+
*/
|
|
14
|
+
import type { DiagramPresLayoutVars } from '../model/index.js';
|
|
15
|
+
import type { HangDirection } from './smartart-hierarchy-hanging.js';
|
|
16
|
+
/**
|
|
17
|
+
* `std`: literal ECMA-376 standard branch, no hanging tail anywhere (every
|
|
18
|
+
* generation fans). Reachable only from an explicit hand-built
|
|
19
|
+
* `hierarchyBranch: 'std'` - see the module doc comment.
|
|
20
|
+
* `tailed`: the root's own children fan out (same as `std`), but every
|
|
21
|
+
* deeper generation hangs. Selected by `init`/`hang`/`l`/`r`.
|
|
22
|
+
* `hanging`: the WHOLE tree hangs, including the root's own children. Only
|
|
23
|
+
* reached via the `linDir` fallback (no `presLayoutVars.hierBranch` at
|
|
24
|
+
* all) - see the module doc comment.
|
|
25
|
+
*/
|
|
26
|
+
export type BranchMode = 'std' | 'tailed' | 'hanging';
|
|
27
|
+
export declare function branchMode(presLayoutVars: DiagramPresLayoutVars | undefined, linDir: string | undefined): BranchMode;
|
|
28
|
+
/**
|
|
29
|
+
* Tail direction for `tailed` mode (the root's own children are unaffected).
|
|
30
|
+
*
|
|
31
|
+
* `l`/`hang`/`r`/`init` all measure identically as 'right' against genuine
|
|
32
|
+
* PowerPoint output - see `smartart-layout-interpreter-hierarchy.ts`'s module
|
|
33
|
+
* doc comment and `HIER_TAIL_OFFSET_RATIO` in `smartart-hierarchy-shared.ts`.
|
|
34
|
+
* Kept as a function (rather than a bare constant) so a future genuine-fixture
|
|
35
|
+
* measurement that DOES find a real per-branch difference has a single place
|
|
36
|
+
* to encode it.
|
|
37
|
+
*/
|
|
38
|
+
export declare function tailDirection(_presLayoutVars: DiagramPresLayoutVars | undefined): HangDirection;
|
|
39
|
+
/**
|
|
40
|
+
* Direction for `hanging` mode, reached ONLY via the `linDir` fallback (no
|
|
41
|
+
* `presLayoutVars.hierBranch` at all): `fromR` grows the tree leftward
|
|
42
|
+
* (children lead away from the right edge), `fromL` grows it rightward.
|
|
43
|
+
*/
|
|
44
|
+
export declare function linDirHangDirection(linDir: string | undefined): HangDirection;
|
|
45
|
+
/**
|
|
46
|
+
* Resolve `chPref`/`chMax` into one per-row size (`Infinity` = unbounded).
|
|
47
|
+
* `<= 1` is treated as unbounded: `hierarchy--hier8.pptx` declares `chPref
|
|
48
|
+
* val="1"` (root-scoped, not scoped to the generation that fans 5-wide two
|
|
49
|
+
* levels down) yet cached output fans all 5 in ONE row, not five 1-item
|
|
50
|
+
* rows - a literal "wrap to 1" would be worse than a hanging column, which
|
|
51
|
+
* `std` never selects. Every existing wrapping unit test uses `>= 2`.
|
|
52
|
+
*/
|
|
53
|
+
export declare function resolveRowSize(presLayoutVars: DiagramPresLayoutVars | undefined): number;
|
|
54
|
+
//# sourceMappingURL=smartart-hierarchy-branch-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartart-hierarchy-branch-mode.d.ts","sourceRoot":"","sources":["../../../diagram/hierarchy/smartart-hierarchy-branch-mode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;AAoBtD,wBAAgB,UAAU,CACzB,cAAc,EAAE,qBAAqB,GAAG,SAAS,EACjD,MAAM,EAAE,MAAM,GAAG,SAAS,GACxB,UAAU,CASZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,eAAe,EAAE,qBAAqB,GAAG,SAAS,GAAG,aAAa,CAE/F;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,CAE7E;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAAG,MAAM,CAUxF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartArt DiagramML interpreter - the declared "cascade" hierarchy shape
|
|
3
|
+
* (SESSION 28).
|
|
4
|
+
*
|
|
5
|
+
* Split out of `smartart-layout-interpreter-hierarchy.ts` (the file-size
|
|
6
|
+
* budget): `half-circle-organization-chart`/`name-and-title-organization-
|
|
7
|
+
* chart` declare a `composite` wrapper whose own height genuinely differs
|
|
8
|
+
* from the rendered item's (`orientation.compositeHeightFactor`, `smartart-
|
|
9
|
+
* hierarchy-orientation.ts`) AND a `sp` (generation gap) relative to that
|
|
10
|
+
* SAME composite width - together, the layout's own declared constraints
|
|
11
|
+
* describe an EVEN, box-filling cascade across every generation (root,
|
|
12
|
+
* fanned children, and the row past that), not a fanned-row-plus-
|
|
13
|
+
* independent-hanging-tail shape: local-coordinate analysis of `half-circle-
|
|
14
|
+
* organization-chart--hier5.pptx`'s own cached `dsp:sp` geometry (867x533
|
|
15
|
+
* box, `Node One`/`Two`+`Three`/`Four`+`Five`) shows THREE rows an equal
|
|
16
|
+
* ~197px pitch apart, spanning almost the full box height with zero
|
|
17
|
+
* leading/trailing margin - not the smaller, independently-sized
|
|
18
|
+
* `HANG_HEIGHT_RATIO` gap `placeAt`'s `hangingPlacer` branch applies to
|
|
19
|
+
* every other `tailed` layout, and a FIXED `alignOff`-driven rightward
|
|
20
|
+
* nudge (`dgm:constr type="alignOff" val="0.65"`, declared identically on
|
|
21
|
+
* every `hierRoot` branch past the root itself) for the row past the fan,
|
|
22
|
+
* not the mirrored per-branch-direction indent `HIER_TAIL_OFFSET_RATIO`
|
|
23
|
+
* models for every other `tailed` layout.
|
|
24
|
+
*
|
|
25
|
+
* Detected structurally (`compositeHeightFactor` only exists for this
|
|
26
|
+
* declared shape, corpus-checked to be unique to these two fixtures), not by
|
|
27
|
+
* layout name: reusing the SAME `cellH` pitch for the row past the fan
|
|
28
|
+
* (instead of routing it through `hangingPlacer`), plus the fixed rightward
|
|
29
|
+
* nudge, reproduces `half-circle-organization-chart--hier5.pptx`'s own
|
|
30
|
+
* geometry to within measurement rounding (full corpus regen:
|
|
31
|
+
* `maxDeltaFraction` 0.0844 -> 0.0646, zero regressions elsewhere -
|
|
32
|
+
* `name-and-title-organization-chart--hier5.pptx` itself never actually
|
|
33
|
+
* engages `heightFactor`/this plan, see `smartart-hierarchy-composite-
|
|
34
|
+
* child.ts`'s own `hasCompoundTextRole` guard).
|
|
35
|
+
*
|
|
36
|
+
* Pure geometry/decision logic; no framework code, no DOM.
|
|
37
|
+
*/
|
|
38
|
+
import type { HierarchyHangShape } from './smartart-hierarchy-hang-depth.js';
|
|
39
|
+
import type { HierarchyOrientation } from './smartart-hierarchy-orientation.js';
|
|
40
|
+
export interface CascadePlan {
|
|
41
|
+
/** True only for the declared cascade shape - every other layout is unaffected. */
|
|
42
|
+
active: boolean;
|
|
43
|
+
/** `depth` for `computeHierarchyAxisPitches`: the row past the fan counts as its own generation when `active`. */
|
|
44
|
+
pitchDepth: number;
|
|
45
|
+
/** `hangShape` for `computeHierarchyAxisPitches`: no separate hang-row reservation when `active` (the row past the fan is a NORMAL pitch row). */
|
|
46
|
+
pitchHangShape: HierarchyHangShape;
|
|
47
|
+
/** `StandardOptions.cascadeOffsetX` - `undefined` when not `active`. */
|
|
48
|
+
cascadeOffsetX?: {
|
|
49
|
+
fromLevel: number;
|
|
50
|
+
offsetPx: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Resolve whether the declared cascade shape applies, and every value its
|
|
55
|
+
* two call sites (`computeHierarchyAxisPitches`, `StandardOptions`) need.
|
|
56
|
+
*/
|
|
57
|
+
export declare function resolveCascadePlan(mode: 'std' | 'tailed' | 'hanging', orientation: HierarchyOrientation, depth: number, hangShape: HierarchyHangShape, boxW: number): CascadePlan;
|
|
58
|
+
//# sourceMappingURL=smartart-hierarchy-cascade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartart-hierarchy-cascade.d.ts","sourceRoot":"","sources":["../../../diagram/hierarchy/smartart-hierarchy-cascade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,WAAW,WAAW;IAC3B,mFAAmF;IACnF,MAAM,EAAE,OAAO,CAAC;IAChB,kHAAkH;IAClH,UAAU,EAAE,MAAM,CAAC;IACnB,kJAAkJ;IAClJ,cAAc,EAAE,kBAAkB,CAAC;IACnC,wEAAwE;IACxE,cAAc,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,EAClC,WAAW,EAAE,oBAAoB,EACjC,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,kBAAkB,EAC7B,IAAI,EAAE,MAAM,GACV,WAAW,CAcb"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartArt DiagramML interpreter - the declared "centred-on-children,
|
|
3
|
+
* axis-swapped" hierarchy arrangement mode (`hierAlign="lCtrCh"/"rCtrCh"`).
|
|
4
|
+
*
|
|
5
|
+
* `horizontal-labeled-hierarchy--hier5.pptx` (and any layoutDef sharing the
|
|
6
|
+
* same structural shape) declares a REAL fanned hierarchy tree - the SAME
|
|
7
|
+
* `std`-mode fan/generation MACHINERY as the plain "Hierarchy" family (a
|
|
8
|
+
* parent centred over the span of its own children - `placeStandardTree`'s
|
|
9
|
+
* own existing default behaviour, `cx = (xOffset + spanW / 2) * cellW`) -
|
|
10
|
+
* but rendered with the fan and generation axes SWAPPED: generations run
|
|
11
|
+
* left-to-right (not top-to-bottom), and each generation's own siblings fan
|
|
12
|
+
* top-to-bottom (not side-to-side).
|
|
13
|
+
*
|
|
14
|
+
* COM-verified against the cached drawing: three GENERATION columns at
|
|
15
|
+
* x=53/372/691 (an 867-wide box), each generation's own siblings fanned
|
|
16
|
+
* along y (a 533-tall box) - `Node One` (the sole gen-0 root) sits
|
|
17
|
+
* vertically CENTRED on the y-span its two gen-1 children (`Node Two`/
|
|
18
|
+
* `Node Three`, y=264/395) occupy, exactly matching `placeStandardTree`'s
|
|
19
|
+
* own "parent centred over its fan" behaviour, rotated 90 degrees. Before
|
|
20
|
+
* this module existed, the interpreter placed this tree with the un-swapped
|
|
21
|
+
* axes (generations stacking Y, siblings fanning X) - a structurally
|
|
22
|
+
* coherent but WRONG tree shape, `maxDeltaFraction` 0.4787.
|
|
23
|
+
*
|
|
24
|
+
* Distinct from BOTH the plain fanning family (no `hierAlign` declared at
|
|
25
|
+
* all - X is already the fan axis, no swap needed) and the "Horizontal
|
|
26
|
+
* Hierarchy" family (`resolveHierarchyOrientation`'s own `transposed`
|
|
27
|
+
* branch, triggered by an UNSCOPED `sibSp refType="h"` - a genuinely
|
|
28
|
+
* different declared shape whose own margin/aspect ratios are calibrated
|
|
29
|
+
* for ITS OWN simple, directly-declared `w`/`h`/`sibSp` constraint set, not
|
|
30
|
+
* this family's font-driven, autofit item sizing): this construct keeps the
|
|
31
|
+
* STD branch's own ratio/margin resolution entirely unchanged (its own item
|
|
32
|
+
* SIZE is already close to correct under that resolution, measured: a
|
|
33
|
+
* 3.2%/3.7% w/h residual, versus 38-48% x/y residuals from the wrong axis
|
|
34
|
+
* assignment alone) and swaps ONLY the two axes' final placement, via the
|
|
35
|
+
* SAME `effectiveBox`-swap + `transposeResult` post-pass `arrangeHierarchy`
|
|
36
|
+
* already runs for `orientation.transposed`, for the unrelated reason above.
|
|
37
|
+
*
|
|
38
|
+
* `hierarchyDeclaresCenteredFanAxisSwap` is the gate: narrow and
|
|
39
|
+
* structural, not a per-layout name check, mirroring `resolveCornerHangPlan`'s
|
|
40
|
+
* own two-part discipline (`smartart-hierarchy-corner-plan.ts`):
|
|
41
|
+
*
|
|
42
|
+
* 1. the tree's own root item declares `hierAlign="lCtrCh"`/`"rCtrCh"`
|
|
43
|
+
* (never `tL`/`tR` - the corner-anchored single-column construct that
|
|
44
|
+
* module owns - or absent, the plain fanning family, already correctly
|
|
45
|
+
* on the X-fan axis with no swap needed);
|
|
46
|
+
* 2. root's own nested `hierChild` (the "children of root" generation)
|
|
47
|
+
* declares a VERTICAL `linDir` (`fromT`/`fromB` - "this generation
|
|
48
|
+
* runs top-to-bottom", i.e. the fan axis this construct swaps onto Y).
|
|
49
|
+
*
|
|
50
|
+
* No third "distinct root template" gate (unlike `resolveCornerHangPlan`'s
|
|
51
|
+
* own gate 3): this construct's root uses the SAME item template as every
|
|
52
|
+
* other generation (`horizontal-labeled-hierarchy--hier5.pptx`'s own
|
|
53
|
+
* `level1Shape`/`level2Shape` are structurally identical plain `tx` leaves,
|
|
54
|
+
* sized entirely by autofit, no distinct root size declared) -
|
|
55
|
+
* `resolveHierarchyGenerationTemplates` correctly returns no `root` entry
|
|
56
|
+
* for it, so gating on that would wrongly EXCLUDE this construct rather
|
|
57
|
+
* than include it.
|
|
58
|
+
*/
|
|
59
|
+
import type { RawXmlView } from '../layout/smartart-choose-xml.js';
|
|
60
|
+
import type { DiagramLayoutNode, DiagramPresLayoutVars } from '../model/index.js';
|
|
61
|
+
/** See the module doc comment. `true` only when both conditions hold. */
|
|
62
|
+
export declare function hierarchyDeclaresCenteredFanAxisSwap<R>(view: RawXmlView<R>, algorithmNode: DiagramLayoutNode<R> | undefined, nodeCount: number, presLayoutVars: DiagramPresLayoutVars | undefined): boolean;
|
|
63
|
+
//# sourceMappingURL=smartart-hierarchy-centered-fan-axis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartart-hierarchy-centered-fan-axis.d.ts","sourceRoot":"","sources":["../../../diagram/hierarchy/smartart-hierarchy-centered-fan-axis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AASzE,yEAAyE;AACzE,wBAAgB,oCAAoC,CAAC,CAAC,EACrD,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EACnB,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,EAC/C,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAC/C,OAAO,CAUT"}
|