ooxml-core 1.24.2 → 1.25.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/dist/PptxHandler-AN42B3JR.mjs +4 -0
- package/dist/{PptxHandler-KFEE7O7W.cjs → PptxHandler-O25PF53M.cjs} +3 -3
- package/dist/{PptxHandler-5TWAQWPK.mjs → PptxHandler-UTNNU6PO.mjs} +3 -3
- package/dist/{PresentationBuilder-SXLRXYDI.cjs → PresentationBuilder-A4XU72IV.cjs} +5 -5
- package/dist/{PresentationBuilder-SCT5AQBP.mjs → PresentationBuilder-GTXNYSRI.mjs} +2 -2
- package/dist/{PresentationBuilder-SVHIKT4C.mjs → PresentationBuilder-TNMO5MPC.mjs} +3 -3
- package/dist/automation/index.cjs +10181 -6066
- package/dist/automation/index.mjs +10181 -6066
- package/dist/chart/data-sheet.d.ts +86 -0
- package/dist/chart/data-sheet.d.ts.map +1 -0
- package/dist/chart/edit/axes.d.ts +49 -0
- package/dist/chart/edit/axes.d.ts.map +1 -0
- package/dist/chart/edit/chartex-data.d.ts +15 -0
- package/dist/chart/edit/chartex-data.d.ts.map +1 -0
- package/dist/chart/edit/chartex.d.ts +61 -0
- package/dist/chart/edit/chartex.d.ts.map +1 -0
- package/dist/chart/edit/data-sheet.d.ts +10 -0
- package/dist/chart/edit/data-sheet.d.ts.map +1 -0
- package/dist/chart/edit/draft.d.ts +27 -0
- package/dist/chart/edit/draft.d.ts.map +1 -0
- package/dist/chart/edit/fill.d.ts +47 -0
- package/dist/chart/edit/fill.d.ts.map +1 -0
- package/dist/chart/edit/gradient.d.ts +44 -0
- package/dist/chart/edit/gradient.d.ts.map +1 -0
- package/dist/chart/edit/group-options.d.ts +14 -0
- package/dist/chart/edit/group-options.d.ts.map +1 -0
- package/dist/chart/edit/index.d.ts +23 -0
- package/dist/chart/edit/index.d.ts.map +1 -0
- package/dist/chart/edit/intent.d.ts +72 -0
- package/dist/chart/edit/intent.d.ts.map +1 -0
- package/dist/chart/edit/legend-labels.d.ts +34 -0
- package/dist/chart/edit/legend-labels.d.ts.map +1 -0
- package/dist/chart/edit/new-chart.d.ts +14 -0
- package/dist/chart/edit/new-chart.d.ts.map +1 -0
- package/dist/chart/edit/paint.d.ts +20 -0
- package/dist/chart/edit/paint.d.ts.map +1 -0
- package/dist/chart/edit/quick-layout.d.ts +16 -0
- package/dist/chart/edit/quick-layout.d.ts.map +1 -0
- package/dist/chart/edit/series-data.d.ts +8 -0
- package/dist/chart/edit/series-data.d.ts.map +1 -0
- package/dist/chart/edit/series.d.ts +57 -0
- package/dist/chart/edit/series.d.ts.map +1 -0
- package/dist/chart/edit/style.d.ts +18 -0
- package/dist/chart/edit/style.d.ts.map +1 -0
- package/dist/chart/edit/target-paint.d.ts +19 -0
- package/dist/chart/edit/target-paint.d.ts.map +1 -0
- package/dist/chart/edit/target.d.ts +31 -0
- package/dist/chart/edit/target.d.ts.map +1 -0
- package/dist/chart/edit/title.d.ts +24 -0
- package/dist/chart/edit/title.d.ts.map +1 -0
- package/dist/chart/edit/type-axes.d.ts +14 -0
- package/dist/chart/edit/type-axes.d.ts.map +1 -0
- package/dist/chart/edit/type-schema.d.ts +15 -0
- package/dist/chart/edit/type-schema.d.ts.map +1 -0
- package/dist/chart/edit/type.d.ts +16 -0
- package/dist/chart/edit/type.d.ts.map +1 -0
- package/dist/chart/ex/index.d.ts +4 -0
- package/dist/chart/ex/index.d.ts.map +1 -0
- package/dist/chart/ex/model.d.ts +291 -0
- package/dist/chart/ex/model.d.ts.map +1 -0
- package/dist/chart/ex/parse-axis.d.ts +6 -0
- package/dist/chart/ex/parse-axis.d.ts.map +1 -0
- package/dist/chart/ex/parse-series.d.ts +6 -0
- package/dist/chart/ex/parse-series.d.ts.map +1 -0
- package/dist/chart/ex/parse-text.d.ts +14 -0
- package/dist/chart/ex/parse-text.d.ts.map +1 -0
- package/dist/chart/ex/parse-util.d.ts +36 -0
- package/dist/chart/ex/parse-util.d.ts.map +1 -0
- package/dist/chart/ex/parse.d.ts +10 -0
- package/dist/chart/ex/parse.d.ts.map +1 -0
- package/dist/chart/ex/write-series.d.ts +13 -0
- package/dist/chart/ex/write-series.d.ts.map +1 -0
- package/dist/chart/ex/write-util.d.ts +23 -0
- package/dist/chart/ex/write-util.d.ts.map +1 -0
- package/dist/chart/ex/write.d.ts +24 -0
- package/dist/chart/ex/write.d.ts.map +1 -0
- package/dist/chart/index.cjs +7258 -3107
- package/dist/chart/index.d.ts +8 -0
- package/dist/chart/index.d.ts.map +1 -1
- package/dist/chart/index.mjs +7117 -3110
- package/dist/chart/keep-source.d.ts +11 -0
- package/dist/chart/keep-source.d.ts.map +1 -0
- package/dist/chart/keep-unmodelled.d.ts +6 -0
- package/dist/chart/keep-unmodelled.d.ts.map +1 -0
- package/dist/chart/model-series.d.ts +6 -0
- package/dist/chart/model-series.d.ts.map +1 -1
- package/dist/chart/model.d.ts +14 -0
- package/dist/chart/model.d.ts.map +1 -1
- package/dist/chart/parse-plot.d.ts.map +1 -1
- package/dist/chart/parse-series.d.ts +1 -1
- package/dist/chart/parse-series.d.ts.map +1 -1
- package/dist/chart/parse-util.d.ts +2 -0
- package/dist/chart/parse-util.d.ts.map +1 -1
- package/dist/chart/quick-layouts.d.ts +41 -0
- package/dist/chart/quick-layouts.d.ts.map +1 -0
- package/dist/chart/render/summary-from-chartex.d.ts +3 -0
- package/dist/chart/render/summary-from-chartex.d.ts.map +1 -1
- package/dist/chart/style-presets.d.ts +20 -0
- package/dist/chart/style-presets.d.ts.map +1 -0
- package/dist/chart/workbook/cellref.d.ts +53 -0
- package/dist/chart/workbook/cellref.d.ts.map +1 -0
- package/dist/chart/workbook/create.d.ts +6 -0
- package/dist/chart/workbook/create.d.ts.map +1 -0
- package/dist/chart/workbook/index.d.ts +10 -0
- package/dist/chart/workbook/index.d.ts.map +1 -0
- package/dist/chart/workbook/layout.d.ts +35 -0
- package/dist/chart/workbook/layout.d.ts.map +1 -0
- package/dist/chart/workbook/package-save.d.ts +48 -0
- package/dist/chart/workbook/package-save.d.ts.map +1 -0
- package/dist/chart/workbook/sheet-cells.d.ts +31 -0
- package/dist/chart/workbook/sheet-cells.d.ts.map +1 -0
- package/dist/chart/workbook/space-writes.d.ts +5 -0
- package/dist/chart/workbook/space-writes.d.ts.map +1 -0
- package/dist/chart/workbook/tables.d.ts +20 -0
- package/dist/chart/workbook/tables.d.ts.map +1 -0
- package/dist/chart/workbook/validation.d.ts +12 -0
- package/dist/chart/workbook/validation.d.ts.map +1 -0
- package/dist/chart/workbook/writer.d.ts +55 -0
- package/dist/chart/workbook/writer.d.ts.map +1 -0
- package/dist/chart/write-axes.d.ts.map +1 -1
- package/dist/chart/write-plot.d.ts.map +1 -1
- package/dist/chart/write-series.d.ts.map +1 -1
- package/dist/chart/write-shape.d.ts +2 -0
- package/dist/chart/write-shape.d.ts.map +1 -1
- package/dist/{chunk-NE7626A4.mjs → chunk-4IYYW3CX.mjs} +5 -5
- package/dist/{chunk-6IIMI5RS.mjs → chunk-6DHZZD5R.mjs} +1103 -1025
- package/dist/{chunk-GBKBR4CX.mjs → chunk-E2PYQQQV.mjs} +1 -1
- package/dist/{chunk-XK55DEUD.cjs → chunk-JE3DVWAJ.cjs} +4991 -2865
- package/dist/{chunk-7N7C5BNM.mjs → chunk-NBSJDA3B.mjs} +2236 -2096
- package/dist/{chunk-GVP262WE.mjs → chunk-QXWRJDVE.mjs} +4077 -1951
- package/dist/{chunk-4LZIUJI3.cjs → chunk-S5TGOEQX.cjs} +1108 -1029
- package/dist/{chunk-CWCDFPKN.mjs → chunk-VHGMYNWM.mjs} +1 -1
- package/dist/{chunk-ON7XVRHQ.mjs → chunk-X7IIABZ6.mjs} +3978 -1835
- package/dist/{chunk-KVKTHGIY.mjs → chunk-YWTKOZMT.mjs} +1 -1
- package/dist/crypto/detect.d.ts +5 -1
- package/dist/crypto/detect.d.ts.map +1 -1
- package/dist/crypto/index.cjs +1 -1
- package/dist/crypto/index.mjs +1 -1
- package/dist/diagram/approximate.d.ts +19 -0
- package/dist/diagram/approximate.d.ts.map +1 -0
- package/dist/diagram/builtin/catalog.d.ts +3 -0
- package/dist/diagram/builtin/catalog.d.ts.map +1 -0
- package/dist/diagram/builtin/data.d.ts +3 -0
- package/dist/diagram/builtin/data.d.ts.map +1 -0
- package/dist/diagram/builtin/definitions.d.ts +7 -0
- package/dist/diagram/builtin/definitions.d.ts.map +1 -0
- package/dist/diagram/builtin/index.cjs +1348 -0
- package/dist/diagram/builtin/index.d.ts +3 -0
- package/dist/diagram/builtin/index.d.ts.map +1 -0
- package/dist/diagram/builtin/index.mjs +1337 -0
- package/dist/diagram/builtin/layouts.d.ts +15 -0
- package/dist/diagram/builtin/layouts.d.ts.map +1 -0
- package/dist/diagram/builtin/types.d.ts +13 -0
- package/dist/diagram/builtin/types.d.ts.map +1 -0
- package/dist/diagram/catalogue.d.ts +51 -0
- package/dist/diagram/catalogue.d.ts.map +1 -0
- package/dist/diagram/data-model.d.ts.map +1 -1
- package/dist/diagram/drawing-from-views.d.ts +11 -0
- package/dist/diagram/drawing-from-views.d.ts.map +1 -0
- package/dist/diagram/drawing-resolve.d.ts +34 -0
- package/dist/diagram/drawing-resolve.d.ts.map +1 -0
- package/dist/diagram/drawing-view.d.ts +104 -0
- package/dist/diagram/drawing-view.d.ts.map +1 -0
- package/dist/diagram/drawing.d.ts.map +1 -1
- package/dist/diagram/edit/design-commands.d.ts +27 -0
- package/dist/diagram/edit/design-commands.d.ts.map +1 -0
- package/dist/diagram/edit/index.d.ts +15 -0
- package/dist/diagram/edit/index.d.ts.map +1 -0
- package/dist/diagram/edit/node-edit.d.ts +66 -0
- package/dist/diagram/edit/node-edit.d.ts.map +1 -0
- package/dist/diagram/edit/node-ops.d.ts +71 -0
- package/dist/diagram/edit/node-ops.d.ts.map +1 -0
- package/dist/diagram/edit/node-order.d.ts +28 -0
- package/dist/diagram/edit/node-order.d.ts.map +1 -0
- package/dist/diagram/edit/node-style.d.ts +42 -0
- package/dist/diagram/edit/node-style.d.ts.map +1 -0
- package/dist/diagram/edit/node-tree.d.ts +10 -0
- package/dist/diagram/edit/node-tree.d.ts.map +1 -0
- package/dist/diagram/edit/outline.d.ts +11 -0
- package/dist/diagram/edit/outline.d.ts.map +1 -0
- package/dist/diagram/edit/reflow-category.d.ts +18 -0
- package/dist/diagram/edit/reflow-category.d.ts.map +1 -0
- package/dist/diagram/edit/reflow-directional.d.ts +53 -0
- package/dist/diagram/edit/reflow-directional.d.ts.map +1 -0
- package/dist/diagram/edit/reflow-geometric.d.ts +59 -0
- package/dist/diagram/edit/reflow-geometric.d.ts.map +1 -0
- package/dist/diagram/edit/reflow-stacked.d.ts +32 -0
- package/dist/diagram/edit/reflow-stacked.d.ts.map +1 -0
- package/dist/diagram/edit/reflow.d.ts +48 -0
- package/dist/diagram/edit/reflow.d.ts.map +1 -0
- package/dist/diagram/edit/shape-match.d.ts +34 -0
- package/dist/diagram/edit/shape-match.d.ts.map +1 -0
- package/dist/diagram/edit/types.d.ts +31 -0
- package/dist/diagram/edit/types.d.ts.map +1 -0
- package/dist/diagram/index.cjs +3934 -910
- package/dist/diagram/index.d.ts +9 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +3860 -912
- package/dist/diagram/model/node.d.ts +10 -0
- package/dist/diagram/model/node.d.ts.map +1 -1
- package/dist/diagram/relationships.d.ts +8 -0
- package/dist/diagram/relationships.d.ts.map +1 -1
- package/dist/diagram/strings/de.d.ts +3 -0
- package/dist/diagram/strings/de.d.ts.map +1 -0
- package/dist/diagram/strings/en.d.ts +74 -0
- package/dist/diagram/strings/en.d.ts.map +1 -0
- package/dist/diagram/strings/es.d.ts +3 -0
- package/dist/diagram/strings/es.d.ts.map +1 -0
- package/dist/diagram/strings/fr.d.ts +3 -0
- package/dist/diagram/strings/fr.d.ts.map +1 -0
- package/dist/diagram/strings/index.d.ts +11 -0
- package/dist/diagram/strings/index.d.ts.map +1 -0
- package/dist/diagram/strings/zh-CN.d.ts +3 -0
- package/dist/diagram/strings/zh-CN.d.ts.map +1 -0
- package/dist/diagram/text/index.d.ts +5 -0
- package/dist/diagram/text/index.d.ts.map +1 -0
- package/dist/diagram/text/node-text-neutral.d.ts +29 -0
- package/dist/diagram/text/node-text-neutral.d.ts.map +1 -0
- package/dist/diagram/text/node-text-paragraphs.d.ts +6 -0
- package/dist/diagram/text/node-text-paragraphs.d.ts.map +1 -0
- package/dist/diagram/text/node-text-projection.d.ts +48 -0
- package/dist/diagram/text/node-text-projection.d.ts.map +1 -0
- package/dist/diagram/text/node-text-reconciliation.d.ts +4 -0
- package/dist/diagram/text/node-text-reconciliation.d.ts.map +1 -0
- package/dist/diagram/types.d.ts +12 -0
- package/dist/diagram/types.d.ts.map +1 -1
- package/dist/diagram/write/data-edit.d.ts +30 -0
- package/dist/diagram/write/data-edit.d.ts.map +1 -0
- package/dist/diagram/write/data.d.ts +62 -0
- package/dist/diagram/write/data.d.ts.map +1 -0
- package/dist/diagram/write/index.d.ts +4 -0
- package/dist/diagram/write/index.d.ts.map +1 -0
- package/dist/diagram/write/inserted.d.ts +14 -0
- package/dist/diagram/write/inserted.d.ts.map +1 -0
- package/dist/docx/chart-edit.d.ts +33 -0
- package/dist/docx/chart-edit.d.ts.map +1 -0
- package/dist/docx/chart-save.d.ts +14 -0
- package/dist/docx/chart-save.d.ts.map +1 -0
- package/dist/docx/chart.d.ts +5 -3
- package/dist/docx/chart.d.ts.map +1 -1
- package/dist/docx/diagram-edit.d.ts +50 -0
- package/dist/docx/diagram-edit.d.ts.map +1 -0
- package/dist/docx/diagram-nodes.d.ts +2 -0
- package/dist/docx/diagram-nodes.d.ts.map +1 -0
- package/dist/docx/diagram-save.d.ts +12 -0
- package/dist/docx/diagram-save.d.ts.map +1 -0
- package/dist/docx/diagram.d.ts +17 -9
- package/dist/docx/diagram.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +5191 -2423
- package/dist/docx/embedded.mjs +5191 -2423
- package/dist/docx/index.cjs +10063 -6083
- package/dist/docx/index.d.ts +4 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +10049 -6084
- package/dist/docx/load/index.cjs +5841 -3073
- package/dist/docx/load/index.mjs +5841 -3073
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/part-relationships.d.ts.map +1 -1
- package/dist/docx/relationship-allocator.d.ts +19 -0
- package/dist/docx/relationship-allocator.d.ts.map +1 -1
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/ui/chart-commands.d.ts +19 -0
- package/dist/docx/ui/chart-commands.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +1482 -655
- package/dist/docx/ui/index.d.ts +2 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +1479 -656
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/smartart-approximate.d.ts +5 -0
- package/dist/docx/ui/smartart-approximate.d.ts.map +1 -0
- package/dist/docx/write-chart-drawing.d.ts +12 -0
- package/dist/docx/write-chart-drawing.d.ts.map +1 -0
- package/dist/docx/write-diagram-drawing.d.ts +13 -0
- package/dist/docx/write-diagram-drawing.d.ts.map +1 -0
- package/dist/docx/write-drawing-patch.d.ts +8 -0
- package/dist/docx/write-drawing-patch.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/drawingml/index.cjs +863 -0
- package/dist/drawingml/index.d.ts +7 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +840 -1
- package/dist/drawingml/read-paragraph-properties.d.ts +8 -0
- package/dist/drawingml/read-paragraph-properties.d.ts.map +1 -0
- package/dist/drawingml/read-run-properties.d.ts +15 -0
- package/dist/drawingml/read-run-properties.d.ts.map +1 -0
- package/dist/drawingml/read-text-body.d.ts +13 -0
- package/dist/drawingml/read-text-body.d.ts.map +1 -0
- package/dist/drawingml/text-model.d.ts +210 -0
- package/dist/drawingml/text-model.d.ts.map +1 -0
- package/dist/drawingml/write-paragraph-properties.d.ts +12 -0
- package/dist/drawingml/write-paragraph-properties.d.ts.map +1 -0
- package/dist/drawingml/write-run-properties.d.ts +11 -0
- package/dist/drawingml/write-run-properties.d.ts.map +1 -0
- package/dist/drawingml/write-text-body.d.ts +18 -0
- package/dist/drawingml/write-text-body.d.ts.map +1 -0
- package/dist/drawingml/write-text-xml.d.ts +26 -0
- package/dist/drawingml/write-text-xml.d.ts.map +1 -0
- package/dist/index.cjs +10068 -2908
- package/dist/index.mjs +10068 -2908
- package/dist/pptx/automation/index.cjs +6849 -3889
- package/dist/pptx/automation/index.d.ts +9 -6
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +7 -7
- package/dist/pptx/chunks/{elements-iUzpAeqR.d.ts → elements-DhW764aK.d.ts} +23 -14
- package/dist/pptx/chunks/elements-DhW764aK.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-C3xhAMSa.d.ts → index-CX0RM1fF.d.ts} +4 -4
- package/dist/pptx/chunks/{index-C3xhAMSa.d.ts.map → index-CX0RM1fF.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-nKQ4s7FA.d.ts → index-CgjEEpfK.d.ts} +18 -9
- package/dist/pptx/chunks/index-CgjEEpfK.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-4FmgJajb.d.ts → index-DCbp5fOs.d.ts} +100 -95
- package/dist/pptx/chunks/index-DCbp5fOs.d.ts.map +1 -0
- package/dist/pptx/chunks/{smart-art-ENMMEbmW.d.ts → smart-art-BEEl0l8X.d.ts} +514 -306
- package/dist/pptx/chunks/smart-art-BEEl0l8X.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-CfLVZ7DK.d.ts → text-operations-CjalmJIi.d.ts} +2 -2
- package/dist/pptx/chunks/{text-operations-CfLVZ7DK.d.ts.map → text-operations-CjalmJIi.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +6333 -3375
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +5 -5
- package/dist/pptx/converter/index.cjs +107 -75
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +3 -3
- package/dist/pptx/editor/render/editor-history.cjs +3 -1
- package/dist/pptx/editor/render/editor-history.d.ts +9 -1
- package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
- package/dist/pptx/editor/render/editor-history.mjs +3 -2
- package/dist/pptx/editor/render/find-replace.cjs +14 -14
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +8 -8
- package/dist/pptx/editor/render/slide-operations.mjs +2 -2
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +7753 -4728
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +6 -6
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/signature-node/index.mjs +2 -2
- package/dist/pptx/smartart-layouts/index.cjs +26 -23
- package/dist/pptx/smartart-layouts/index.d.ts +7 -5
- package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
- package/dist/pptx/smartart-layouts/index.mjs +26 -23
- package/dist/teams/index.cjs +20165 -18388
- package/dist/teams/index.mjs +20165 -18388
- package/dist/text/index.cjs +106 -0
- package/dist/text/index.d.ts +2 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +103 -1
- package/dist/text/locale-number.d.ts +15 -0
- package/dist/text/locale-number.d.ts.map +1 -0
- package/dist/text/tsv.d.ts +8 -0
- package/dist/text/tsv.d.ts.map +1 -0
- package/dist/visio/index.cjs +3574 -1953
- package/dist/visio/index.mjs +3574 -1953
- package/dist/visio/ui/index.cjs +3562 -1941
- package/dist/visio/ui/index.mjs +3562 -1941
- 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-design.d.ts +11 -0
- package/dist/xlsx/edit/chart-design.d.ts.map +1 -0
- package/dist/xlsx/edit/chart-element-fill.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-series-fill.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-series-gradient.d.ts +6 -34
- package/dist/xlsx/edit/chart-series-gradient.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-series-transparency.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-space-patch.d.ts +13 -0
- package/dist/xlsx/edit/chart-space-patch.d.ts.map +1 -0
- package/dist/xlsx/edit/chart-space-series.d.ts +14 -0
- package/dist/xlsx/edit/chart-space-series.d.ts.map +1 -0
- package/dist/xlsx/edit/charts.d.ts +22 -6
- package/dist/xlsx/edit/charts.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard-text.d.ts +2 -7
- package/dist/xlsx/edit/clipboard-text.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +3 -1
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -1
- package/dist/xlsx/edit/smart-art.d.ts +32 -0
- package/dist/xlsx/edit/smart-art.d.ts.map +1 -0
- package/dist/xlsx/edit/types.d.ts +12 -1
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/embedded-chart-space.d.ts +19 -0
- package/dist/xlsx/embedded-chart-space.d.ts.map +1 -0
- package/dist/xlsx/index.cjs +6457 -3105
- package/dist/xlsx/index.d.ts +1 -0
- package/dist/xlsx/index.d.ts.map +1 -1
- package/dist/xlsx/index.mjs +6451 -3106
- package/dist/xlsx/load/index.cjs +5733 -3844
- package/dist/xlsx/load/index.mjs +5733 -3844
- package/dist/xlsx/model.d.ts +71 -15
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/chart.d.ts +10 -0
- package/dist/xlsx/read/chart.d.ts.map +1 -1
- package/dist/xlsx/read/drawing.d.ts.map +1 -1
- package/dist/xlsx/read/smart-art.d.ts.map +1 -1
- package/dist/xlsx/smart-art-notices.d.ts +6 -0
- package/dist/xlsx/smart-art-notices.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/contextual.d.ts +6 -1
- package/dist/xlsx/ui/commands/contextual.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/chart-series.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/core-features.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/smartart.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/smartart.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/icons.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +6664 -2907
- package/dist/xlsx/ui/index.mjs +6663 -2907
- package/dist/xlsx/ui/locales/de/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/de/smartart.d.ts +2 -0
- package/dist/xlsx/ui/locales/de/smartart.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/en/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/smartart.d.ts +2 -0
- package/dist/xlsx/ui/locales/en/smartart.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/es/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/smartart.d.ts +2 -0
- package/dist/xlsx/ui/locales/es/smartart.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/fr/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/smartart.d.ts +2 -0
- package/dist/xlsx/ui/locales/fr/smartart.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/zh-CN/index.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/smartart.d.ts +2 -0
- package/dist/xlsx/ui/locales/zh-CN/smartart.d.ts.map +1 -0
- package/dist/xlsx/write/chart-cache.d.ts.map +1 -1
- package/dist/xlsx/write/chart-colors.d.ts +1 -8
- package/dist/xlsx/write/chart-colors.d.ts.map +1 -1
- package/dist/xlsx/write/chart-space.d.ts +8 -0
- package/dist/xlsx/write/chart-space.d.ts.map +1 -1
- package/dist/xlsx/write/chart-title.d.ts +2 -2
- package/dist/xlsx/write/chart-title.d.ts.map +1 -1
- package/dist/xlsx/write/chart.d.ts +4 -3
- package/dist/xlsx/write/chart.d.ts.map +1 -1
- package/dist/xlsx/write/drawing.d.ts +10 -3
- package/dist/xlsx/write/drawing.d.ts.map +1 -1
- package/dist/xlsx/write/smart-art.d.ts +17 -0
- package/dist/xlsx/write/smart-art.d.ts.map +1 -0
- package/package.json +6 -1
- package/dist/PptxHandler-KBJ4TN3T.mjs +0 -4
- package/dist/pptx/chunks/elements-iUzpAeqR.d.ts.map +0 -1
- package/dist/pptx/chunks/index-4FmgJajb.d.ts.map +0 -1
- package/dist/pptx/chunks/index-nKQ4s7FA.d.ts.map +0 -1
- package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts.map +0 -1
- package/dist/xlsx/write/chart-patch.d.ts +0 -9
- package/dist/xlsx/write/chart-patch.d.ts.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DiagramLayoutPreset } from '../model/data.js';
|
|
2
|
+
import type { BuiltinSmartArtLayoutEntry } from './types.js';
|
|
3
|
+
export type { BuiltinSmartArtLayoutEntry } from './types.js';
|
|
4
|
+
export { BUILTIN_SMARTART_LAYOUTS } from './catalog.js';
|
|
5
|
+
/** The catalogue of built-in layouts (index only: no definition is inflated). */
|
|
6
|
+
export declare function listBuiltinSmartArtLayouts(): readonly BuiltinSmartArtLayoutEntry[];
|
|
7
|
+
/** The catalogue entry for a layout `uniqueId`, or `undefined` when it is not built in. */
|
|
8
|
+
export declare function findBuiltinSmartArtLayout(id: string): BuiltinSmartArtLayoutEntry | undefined;
|
|
9
|
+
/** The `dgm:layoutDef` XML of a built-in layout; throws for an unknown id. */
|
|
10
|
+
export declare function loadBuiltinSmartArtLayoutXml(id: string): string;
|
|
11
|
+
/** The `uniqueId` of the built-in layout for a category, or `undefined` when none is mapped. */
|
|
12
|
+
export declare function defaultBuiltinSmartArtLayoutId(category: string): string | undefined;
|
|
13
|
+
/** The `uniqueId` of the built-in layout an Insert SmartArt preset inserts. */
|
|
14
|
+
export declare function builtinLayoutIdForPreset(preset: DiagramLayoutPreset): string | undefined;
|
|
15
|
+
//# sourceMappingURL=layouts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layouts.d.ts","sourceRoot":"","sources":["../../../diagram/builtin/layouts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGzD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAE1D,YAAY,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,iFAAiF;AACjF,wBAAgB,0BAA0B,IAAI,SAAS,0BAA0B,EAAE,CAElF;AAED,2FAA2F;AAC3F,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,MAAM,GAAG,0BAA0B,GAAG,SAAS,CAE5F;AAUD,8EAA8E;AAC9E,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAW/D;AA0BD,gGAAgG;AAChG,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGnF;AAyCD,+EAA+E;AAC/E,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAExF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** One entry of the built-in SmartArt layout catalogue. */
|
|
2
|
+
export interface BuiltinSmartArtLayoutEntry {
|
|
3
|
+
/** The layout definition's `uniqueId` URN. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** The gallery name PowerPoint shows (en-US), e.g. `Basic Timeline`. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** The first `dgm:cat/@type` (`list`, `process`, `cycle`, `relationship`, ...). */
|
|
8
|
+
category: string;
|
|
9
|
+
/** Byte range of this layout's gzip member in the decoded data blob. */
|
|
10
|
+
offset: number;
|
|
11
|
+
length: number;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../diagram/builtin/types.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,MAAM,WAAW,0BAA0B;IAC1C,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { DiagramColorScheme, DiagramLayoutType, DiagramStyleIntensity } from './types.js';
|
|
2
|
+
import type { DiagramLayoutPreset } from './model/data.js';
|
|
3
|
+
/** The categories of the Insert SmartArt dialog, in display order. */
|
|
4
|
+
export type DiagramInsertCategory = 'list' | 'process' | 'cycle' | 'hierarchy' | 'relationship';
|
|
5
|
+
export interface DiagramInsertCategoryEntry {
|
|
6
|
+
id: DiagramInsertCategory;
|
|
7
|
+
/** English name. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** English description of what the category's layouts are for. */
|
|
10
|
+
description: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DIAGRAM_INSERT_CATEGORIES: readonly DiagramInsertCategoryEntry[];
|
|
13
|
+
/** One insertable layout of the Insert SmartArt dialog. */
|
|
14
|
+
export interface DiagramInsertPreset {
|
|
15
|
+
/** The layout the preset inserts. */
|
|
16
|
+
layout: DiagramLayoutPreset;
|
|
17
|
+
/** English name. */
|
|
18
|
+
label: string;
|
|
19
|
+
category: DiagramInsertCategory;
|
|
20
|
+
/** The node texts a new diagram starts with. */
|
|
21
|
+
defaultItems: string[];
|
|
22
|
+
/** The family a gallery tile draws for the preset. */
|
|
23
|
+
family: DiagramLayoutType;
|
|
24
|
+
}
|
|
25
|
+
/** Every insertable preset, in the order the dialog lists them within a category. */
|
|
26
|
+
export declare const DIAGRAM_INSERT_PRESETS: readonly DiagramInsertPreset[];
|
|
27
|
+
/** A colour scheme of the SmartArt Design > Change Colors gallery. */
|
|
28
|
+
export interface DiagramColorEntry {
|
|
29
|
+
id: DiagramColorScheme;
|
|
30
|
+
section: 'colorful' | 'accent1' | 'accent2';
|
|
31
|
+
/** PowerPoint's gallery name. */
|
|
32
|
+
name: string;
|
|
33
|
+
/** Theme accents the scheme fills nodes with, in cycle order. */
|
|
34
|
+
accents: ReadonlyArray<'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6'>;
|
|
35
|
+
}
|
|
36
|
+
export declare const DIAGRAM_COLOR_SECTIONS: ReadonlyArray<{
|
|
37
|
+
id: DiagramColorEntry['section'];
|
|
38
|
+
title: string;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const DIAGRAM_COLOR_ENTRIES: readonly DiagramColorEntry[];
|
|
41
|
+
/** `{{from}}`/`{{to}}` of a "Colorful Range" name, or `{{accent}}` of a "Colored Fill" one. */
|
|
42
|
+
export declare function diagramColorLabelParams(entry: DiagramColorEntry): Record<string, number> | undefined;
|
|
43
|
+
/** A style intensity of the SmartArt Styles gallery, named after its PowerPoint entry. */
|
|
44
|
+
export interface DiagramStyleEntry {
|
|
45
|
+
id: DiagramStyleIntensity;
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export declare const DIAGRAM_STYLE_ENTRIES: readonly DiagramStyleEntry[];
|
|
49
|
+
/** PowerPoint's gallery order for the built-in layouts' categories, with English headings. */
|
|
50
|
+
export declare const DIAGRAM_NAMED_LAYOUT_CATEGORIES: ReadonlyArray<readonly [string, string]>;
|
|
51
|
+
//# sourceMappingURL=catalogue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogue.d.ts","sourceRoot":"","sources":["../../diagram/catalogue.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,sEAAsE;AACtE,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,cAAc,CAAC;AAEhG,MAAM,WAAW,0BAA0B;IAC1C,EAAE,EAAE,qBAAqB,CAAC;IAC1B,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,yBAAyB,EAAE,SAAS,0BAA0B,EA0B1E,CAAC;AAEF,2DAA2D;AAC3D,MAAM,WAAW,mBAAmB;IACnC,qCAAqC;IACrC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,qBAAqB,CAAC;IAChC,gDAAgD;IAChD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,sDAAsD;IACtD,MAAM,EAAE,iBAAiB,CAAC;CAC1B;AAiDD,qFAAqF;AACrF,eAAO,MAAM,sBAAsB,EAAE,SAAS,mBAAmB,EAQhE,CAAC;AAEF,sEAAsE;AACtE,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,kBAAkB,CAAC;IACvB,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5C,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,OAAO,EAAE,aAAa,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;CAC9F;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC;IAClD,EAAE,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;CACd,CAIA,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAAS,iBAAiB,EA+B7D,CAAC;AAEF,+FAA+F;AAC/F,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,iBAAiB,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAIpC;AAED,0FAA0F;AAC1F,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,qBAAqB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,qBAAqB,EAAE,SAAS,iBAAiB,EAI7D,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,+BAA+B,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAYpF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-model.d.ts","sourceRoot":"","sources":["../../diagram/data-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAQN,KAAK,UAAU,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAA8B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"data-model.d.ts","sourceRoot":"","sources":["../../diagram/data-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAQN,KAAK,UAAU,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAA8B,MAAM,SAAS,CAAC;AAQ/F;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACtC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3D,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GACxB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAWrB;AAED,8FAA8F;AAC9F,wBAAgB,eAAe,CAC9B,UAAU,EAAE,iBAAiB,EAC7B,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACzC,MAAM,GAAG,SAAS,CAQpB;AAED,8FAA8F;AAC9F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,EAAE,CAOzE;AAmCD,oGAAoG;AACpG,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,MAAM,GAAG,WAAW,EAC5B,IAAI,CAAC,EAAE,MAAM,GACX,gBAAgB,CAgElB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DiagramShapeView } from './drawing-view.js';
|
|
2
|
+
import type { DiagramDrawing } from './types.js';
|
|
3
|
+
export interface DiagramDrawingFromViewsOptions {
|
|
4
|
+
/** EMU per view unit (9525 for CSS pixels). */
|
|
5
|
+
emuPerUnit?: number;
|
|
6
|
+
/** Scheme colours unfilled shapes cycle through; `accent1` alone by default. */
|
|
7
|
+
accents?: readonly string[];
|
|
8
|
+
}
|
|
9
|
+
/** The drawing the views describe, with resolved or themed colours. */
|
|
10
|
+
export declare function diagramDrawingFromViews(views: readonly DiagramShapeView[], options?: DiagramDrawingFromViewsOptions): DiagramDrawing;
|
|
11
|
+
//# sourceMappingURL=drawing-from-views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawing-from-views.d.ts","sourceRoot":"","sources":["../../diagram/drawing-from-views.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,SAAS,CAAC;AAEnE,MAAM,WAAW,8BAA8B;IAC9C,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gFAAgF;IAChF,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B;AASD,uEAAuE;AACvE,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,SAAS,gBAAgB,EAAE,EAClC,OAAO,GAAE,8BAAmC,GAC1C,cAAc,CA+ChB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type DrawingColorTheme, type ResolvedDrawingColor } from '../drawingml/drawing-color.js';
|
|
2
|
+
import type { XmlDocument } from '../xml/index.js';
|
|
3
|
+
import type { DiagramShapeView } from './drawing-view.js';
|
|
4
|
+
import type { DiagramColor, DiagramDrawingShape, DiagramIssue } from './types.js';
|
|
5
|
+
/** Resolves a DrawingML colour to hex and alpha; `undefined` when it cannot be determined. */
|
|
6
|
+
export type DiagramColorResolver = (color: DiagramColor) => ResolvedDrawingColor | undefined;
|
|
7
|
+
export interface DiagramShapeResolveOptions {
|
|
8
|
+
resolveColor: DiagramColorResolver;
|
|
9
|
+
/** EMU per output unit; defaults to EMU per CSS pixel (9525). */
|
|
10
|
+
emuPerPx?: number;
|
|
11
|
+
/** Label colour taken before the style matrix's `a:fontRef` when runs carry none. */
|
|
12
|
+
textColor?: string;
|
|
13
|
+
}
|
|
14
|
+
/** A colour resolver over a host theme, using the shared DrawingML colour pipeline. */
|
|
15
|
+
export declare const themeColorResolver: (theme: DrawingColorTheme) => DiagramColorResolver;
|
|
16
|
+
/** The laid-out view of one cached drawing shape. */
|
|
17
|
+
export declare function resolveDiagramDrawingShape(shape: DiagramDrawingShape, options: DiagramShapeResolveOptions): DiagramShapeView;
|
|
18
|
+
/**
|
|
19
|
+
* Whether a view keeps a drawable frame: a frame that rounds to zero width or height in the output
|
|
20
|
+
* unit is a stale producer extent (or a hairline below half a pixel), except for `line` geometry,
|
|
21
|
+
* whose rails and stems are cached with a zero height or width by design. The pptx reader applies
|
|
22
|
+
* the same rule to its pixel frames.
|
|
23
|
+
*/
|
|
24
|
+
export declare const isDrawableDiagramShapeView: (view: DiagramShapeView) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Reads a drawing part straight into laid-out views: the DOM reader (`parseDiagramDrawing`) with
|
|
27
|
+
* the host's colour resolver, without the frames `isDrawableDiagramShapeView` rejects. Issues the
|
|
28
|
+
* reader reports are returned alongside.
|
|
29
|
+
*/
|
|
30
|
+
export declare function readDiagramDrawingShapes(source: string | XmlDocument, options: DiagramShapeResolveOptions, part?: string): {
|
|
31
|
+
shapes: DiagramShapeView[];
|
|
32
|
+
issues: DiagramIssue[];
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=drawing-resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawing-resolve.d.ts","sourceRoot":"","sources":["../../diagram/drawing-resolve.ts"],"names":[],"mappings":"AAQA,OAAO,EAEN,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAe,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5F,8FAA8F;AAC9F,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,YAAY,KAAK,oBAAoB,GAAG,SAAS,CAAC;AAE7F,MAAM,WAAW,0BAA0B;IAC1C,YAAY,EAAE,oBAAoB,CAAC;IACnC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,uFAAuF;AACvF,eAAO,MAAM,kBAAkB,UACtB,iBAAiB,KAAG,oBAEM,CAAC;AAsJpC,qDAAqD;AACrD,wBAAgB,0BAA0B,CACzC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,0BAA0B,GACjC,gBAAgB,CAuClB;AAED;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,SAAU,gBAAgB,KAAG,OACH,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,MAAM,GAAG,WAAW,EAC5B,OAAO,EAAE,0BAA0B,EACnC,IAAI,CAAC,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAAC,MAAM,EAAE,YAAY,EAAE,CAAA;CAAE,CAQxD"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/** A gradient stop of a resolved fill. `position` is a percentage (0..100). */
|
|
2
|
+
export interface DiagramShapeGradientStop {
|
|
3
|
+
color: string;
|
|
4
|
+
position: number;
|
|
5
|
+
opacity?: number;
|
|
6
|
+
}
|
|
7
|
+
/** A SmartArt shape with resolved colours, in pixels (EMU / `emuPerPx`). */
|
|
8
|
+
export interface DiagramShapeView {
|
|
9
|
+
/** Shape id: the `dsp:sp/@modelId` presentation point, or `reflow-<kind>-<nodeId>`. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Preset geometry (`roundRect`, `ellipse`), or `custom`. */
|
|
12
|
+
shapeType?: string;
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
/** Rotation in degrees. */
|
|
18
|
+
rotation?: number;
|
|
19
|
+
/** Horizontal/vertical mirrors declared on the cached drawing transform. */
|
|
20
|
+
flipHorizontal?: boolean;
|
|
21
|
+
flipVertical?: boolean;
|
|
22
|
+
/** Skew along the X axis in degrees. */
|
|
23
|
+
skewX?: number;
|
|
24
|
+
/** Skew along the Y axis in degrees. */
|
|
25
|
+
skewY?: number;
|
|
26
|
+
/** Preset-geometry adjustment values from `a:prstGeom/a:avLst`. */
|
|
27
|
+
shapeAdjustments?: Record<string, number>;
|
|
28
|
+
/**
|
|
29
|
+
* The cached shape declares `a:noFill`. Renderers must leave it unpainted rather than
|
|
30
|
+
* substituting a palette colour, because these shapes usually sit on top of a painted shape
|
|
31
|
+
* whose fill has to stay visible.
|
|
32
|
+
*/
|
|
33
|
+
fillNone?: boolean;
|
|
34
|
+
/** Solid fill colour (hex). */
|
|
35
|
+
fillColor?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Opacity (0..1) of the solid fill, from the colour's `a:alpha` (Basic Venn paints its circles
|
|
38
|
+
* at 50% so overlaps blend). Absent when opaque.
|
|
39
|
+
*/
|
|
40
|
+
fillOpacity?: number;
|
|
41
|
+
/** Gradient fill stops when the cached shape uses `a:gradFill` (positions 0..100). */
|
|
42
|
+
fillGradientStops?: DiagramShapeGradientStop[];
|
|
43
|
+
/** Gradient geometry type (`linear` for `a:lin`, `radial` for `a:path`). */
|
|
44
|
+
fillGradientType?: 'linear' | 'radial';
|
|
45
|
+
/** Linear gradient angle in degrees (0..360). */
|
|
46
|
+
fillGradientAngle?: number;
|
|
47
|
+
/** Pattern fill preset name from `a:pattFill/@prst` (e.g. "pct50", "cross"). */
|
|
48
|
+
fillPatternPreset?: string;
|
|
49
|
+
/** Pattern fill foreground colour (hex) from `a:pattFill/a:fgClr`. */
|
|
50
|
+
fillPatternForegroundColor?: string;
|
|
51
|
+
/** Pattern fill background colour (hex) from `a:pattFill/a:bgClr`. */
|
|
52
|
+
fillPatternBackgroundColor?: string;
|
|
53
|
+
/** Relationship id of a picture (blip) fill's embedded image (`a:blip/@r:embed`). */
|
|
54
|
+
fillBlipEmbedId?: string;
|
|
55
|
+
/** Resolved data-URI/URL for a picture fill, when the host could resolve the image part. */
|
|
56
|
+
fillImageUrl?: string;
|
|
57
|
+
/** Whether the cached shape carries an outer-shadow effect (`a:effectLst`). */
|
|
58
|
+
hasShadow?: boolean;
|
|
59
|
+
/** Resolved outer-shadow colour (hex), when present. */
|
|
60
|
+
shadowColor?: string;
|
|
61
|
+
/** Stroke colour (hex). */
|
|
62
|
+
strokeColor?: string;
|
|
63
|
+
/** Stroke width in points. */
|
|
64
|
+
strokeWidth?: number;
|
|
65
|
+
/** Text content of the shape (paragraphs joined by a newline). */
|
|
66
|
+
text?: string;
|
|
67
|
+
/** Font size in CSS pixels. */
|
|
68
|
+
fontSize?: number;
|
|
69
|
+
/** Font colour (hex). */
|
|
70
|
+
fontColor?: string;
|
|
71
|
+
/** Authored font family from the first styled run. */
|
|
72
|
+
fontFamily?: string;
|
|
73
|
+
/** Authored font weight (400 or 700). */
|
|
74
|
+
fontWeight?: number;
|
|
75
|
+
/** Authored font style. */
|
|
76
|
+
fontStyle?: 'normal' | 'italic';
|
|
77
|
+
/** Absolute line height in CSS pixels from `a:spcPts`. */
|
|
78
|
+
lineHeight?: number;
|
|
79
|
+
/** Relative line height from `a:spcPct`. */
|
|
80
|
+
lineHeightRatio?: number;
|
|
81
|
+
/** Absolute spacing after a paragraph in CSS pixels. */
|
|
82
|
+
lineSpacingAfter?: number;
|
|
83
|
+
/** Relative spacing after a paragraph. */
|
|
84
|
+
lineSpacingAfterRatio?: number;
|
|
85
|
+
/** Text-body insets in CSS pixels. */
|
|
86
|
+
textInsetLeft?: number;
|
|
87
|
+
textInsetTop?: number;
|
|
88
|
+
textInsetRight?: number;
|
|
89
|
+
textInsetBottom?: number;
|
|
90
|
+
/** DiagramML text vertical anchor (`t`, `ctr`, or `b`). */
|
|
91
|
+
textVerticalAnchor?: string;
|
|
92
|
+
/** Independent DiagramML text-frame geometry from `dsp:txXfrm`. */
|
|
93
|
+
textFrameX?: number;
|
|
94
|
+
textFrameY?: number;
|
|
95
|
+
textFrameWidth?: number;
|
|
96
|
+
textFrameHeight?: number;
|
|
97
|
+
/**
|
|
98
|
+
* The presentation style label (`presStyleLbl`: `node1`, `revTx`, `sibTrans2D1`, ...) of the
|
|
99
|
+
* layout node a regenerated shape was laid out from, when the layout engine reports it;
|
|
100
|
+
* `undefined` on cached (parsed) shapes.
|
|
101
|
+
*/
|
|
102
|
+
styleLabel?: string;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=drawing-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawing-view.d.ts","sourceRoot":"","sources":["../../diagram/drawing-view.ts"],"names":[],"mappings":"AAMA,+EAA+E;AAC/E,MAAM,WAAW,wBAAwB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAChC,uFAAuF;IACvF,EAAE,EAAE,MAAM,CAAC;IACX,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAC/C,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACvC,iDAAiD;IACjD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sEAAsE;IACtE,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,sEAAsE;IACtE,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4FAA4F;IAC5F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawing.d.ts","sourceRoot":"","sources":["../../diagram/drawing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"drawing.d.ts","sourceRoot":"","sources":["../../diagram/drawing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAQ1D,OAAO,KAAK,EAAE,cAAc,EAAqC,MAAM,SAAS,CAAC;AAuGjF,gGAAgG;AAChG,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CA2B/F;AAED,sFAAsF;AACtF,eAAO,MAAM,YAAY,YAAa,cAAc,KAAG,OACX,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DiagramNodeEdit } from './node-edit.js';
|
|
2
|
+
/** A SmartArt Design command. */
|
|
3
|
+
export type DiagramDesignCommandKey = 'addAfter' | 'addBefore' | 'addAbove' | 'addBelow' | 'promote' | 'demote' | 'moveUp' | 'moveDown' | 'textPane' | 'changeLayout';
|
|
4
|
+
export interface DiagramDesignCommand {
|
|
5
|
+
key: DiagramDesignCommandKey;
|
|
6
|
+
/** English label (also the translation key). */
|
|
7
|
+
label: string;
|
|
8
|
+
/** `Create Graphic` or `Layouts`, as in Office. */
|
|
9
|
+
group: 'create' | 'layouts';
|
|
10
|
+
}
|
|
11
|
+
/** The tab's group labels (English, also translation keys). */
|
|
12
|
+
export declare const DIAGRAM_DESIGN_GROUPS: {
|
|
13
|
+
readonly create: 'Create Graphic';
|
|
14
|
+
readonly layouts: 'Layouts';
|
|
15
|
+
};
|
|
16
|
+
/** The Add Shape menu's label (English, also the translation key). */
|
|
17
|
+
export declare const DIAGRAM_ADD_SHAPE_LABEL = "Add Shape";
|
|
18
|
+
/** Every command in tab order. */
|
|
19
|
+
export declare const DIAGRAM_DESIGN_COMMANDS: readonly DiagramDesignCommand[];
|
|
20
|
+
/** The Add Shape menu's commands. */
|
|
21
|
+
export declare const DIAGRAM_ADD_SHAPE_COMMANDS: DiagramDesignCommand[];
|
|
22
|
+
/**
|
|
23
|
+
* The node edit a command applies to `nodeId` (the text pane's node, else the diagram's last), or
|
|
24
|
+
* undefined for the commands that are not node edits (`textPane`, `changeLayout`).
|
|
25
|
+
*/
|
|
26
|
+
export declare function diagramDesignEdit(key: DiagramDesignCommandKey, nodeId: string | undefined): DiagramNodeEdit | undefined;
|
|
27
|
+
//# sourceMappingURL=design-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-commands.d.ts","sourceRoot":"","sources":["../../../diagram/edit/design-commands.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,iCAAiC;AACjC,MAAM,MAAM,uBAAuB,GAChC,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,UAAU,GACV,cAAc,CAAC;AAElB,MAAM,WAAW,oBAAoB;IACpC,GAAG,EAAE,uBAAuB,CAAC;IAC7B,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,KAAK,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC5B;AAED,+DAA+D;AAC/D,eAAO,MAAM,qBAAqB;aAAK,MAAM,EAAE,gBAAgB;aAAE,OAAO,EAAE,SAAS;CAAW,CAAC;AAE/F,sEAAsE;AACtE,eAAO,MAAM,uBAAuB,cAAc,CAAC;AAEnD,kCAAkC;AAClC,eAAO,MAAM,uBAAuB,EAAE,SAAS,oBAAoB,EAWlE,CAAC;AAEF,qCAAqC;AACrC,eAAO,MAAM,0BAA0B,wBAEtC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,uBAAuB,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,GACxB,eAAe,GAAG,SAAS,CAsB7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './shape-match.js';
|
|
3
|
+
export * from './node-ops.js';
|
|
4
|
+
export * from './node-order.js';
|
|
5
|
+
export * from './node-style.js';
|
|
6
|
+
export * from './outline.js';
|
|
7
|
+
export * from './reflow.js';
|
|
8
|
+
export * from './reflow-category.js';
|
|
9
|
+
export * from './reflow-directional.js';
|
|
10
|
+
export * from './reflow-geometric.js';
|
|
11
|
+
export * from './reflow-stacked.js';
|
|
12
|
+
export * from './node-edit.js';
|
|
13
|
+
export * from './node-tree.js';
|
|
14
|
+
export * from './design-commands.js';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../diagram/edit/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { DiagramLayoutType } from '../types.js';
|
|
2
|
+
import type { DiagramNeutralTextParagraph } from '../text/node-text-neutral.js';
|
|
3
|
+
import type { DiagramEditOptions } from './types.js';
|
|
4
|
+
/** A content node as a host model keeps it: array order is tree order. */
|
|
5
|
+
export interface DiagramHostNode {
|
|
6
|
+
id: string;
|
|
7
|
+
text: string;
|
|
8
|
+
/** Model id of the parent content node, when the data model has one. */
|
|
9
|
+
parentId?: string;
|
|
10
|
+
/** The node's paragraphs on the neutral text model, kept while its text is unchanged. */
|
|
11
|
+
paragraphs?: DiagramNeutralTextParagraph[];
|
|
12
|
+
/** `asst` for an assistant point (org charts); absent for an ordinary node. */
|
|
13
|
+
nodeType?: 'asst';
|
|
14
|
+
}
|
|
15
|
+
/** One SmartArt Design or text pane command. */
|
|
16
|
+
export type DiagramNodeEdit = {
|
|
17
|
+
kind: 'add';
|
|
18
|
+
position: 'after' | 'before' | 'above' | 'below';
|
|
19
|
+
nodeId?: string;
|
|
20
|
+
text?: string;
|
|
21
|
+
} | {
|
|
22
|
+
kind: 'remove';
|
|
23
|
+
nodeId: string;
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'text';
|
|
26
|
+
nodeId: string;
|
|
27
|
+
text: string;
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'move';
|
|
30
|
+
nodeId: string;
|
|
31
|
+
direction: 1 | -1;
|
|
32
|
+
} | {
|
|
33
|
+
kind: 'promote';
|
|
34
|
+
nodeId: string;
|
|
35
|
+
} | {
|
|
36
|
+
kind: 'demote';
|
|
37
|
+
nodeId: string;
|
|
38
|
+
};
|
|
39
|
+
export interface DiagramNodeEditResult<N extends DiagramHostNode = DiagramHostNode> {
|
|
40
|
+
nodes: N[];
|
|
41
|
+
/** The node the command created, or the node it acted on (for selection). */
|
|
42
|
+
nodeId?: string;
|
|
43
|
+
/** False when the command did not apply (unknown node, first sibling demoted, ...). */
|
|
44
|
+
changed: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** Plain nodes again: the operations add bookkeeping fields host models do not keep. */
|
|
47
|
+
export declare function plainDiagramNodes(nodes: readonly DiagramHostNode[], before: readonly DiagramHostNode[]): DiagramHostNode[];
|
|
48
|
+
/**
|
|
49
|
+
* Applies one command to `nodes`. Returns them unchanged (`changed: false`) when the command does
|
|
50
|
+
* not apply; otherwise the edited nodes in tree order.
|
|
51
|
+
*/
|
|
52
|
+
export declare function applyDiagramNodeEdit(nodes: readonly DiagramHostNode[], edit: DiagramNodeEdit, options?: DiagramEditOptions): DiagramNodeEditResult;
|
|
53
|
+
/**
|
|
54
|
+
* The nodes of a new diagram (Insert SmartArt) with `items` as their texts: top-level nodes in
|
|
55
|
+
* order, or for a hierarchy one top node over the others, as Office's own Insert does.
|
|
56
|
+
*/
|
|
57
|
+
export declare function createDiagramNodes(items: readonly string[], family?: DiagramLayoutType, options?: DiagramEditOptions): DiagramHostNode[];
|
|
58
|
+
/** One text pane line: a node's text and its depth below the top level. */
|
|
59
|
+
export interface DiagramOutlineLine {
|
|
60
|
+
id: string;
|
|
61
|
+
text: string;
|
|
62
|
+
level: number;
|
|
63
|
+
}
|
|
64
|
+
/** The nodes (in tree order) as text pane lines. */
|
|
65
|
+
export declare function diagramNodeOutline(nodes: readonly DiagramHostNode[]): DiagramOutlineLine[];
|
|
66
|
+
//# sourceMappingURL=node-edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-edit.d.ts","sourceRoot":"","sources":["../../../diagram/edit/node-edit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAM7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,UAAU,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAC3C,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,gDAAgD;AAChD,MAAM,MAAM,eAAe,GACxB;IACA,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACb,GACD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9C;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe;IACjF,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,6EAA6E;IAC7E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uFAAuF;IACvF,OAAO,EAAE,OAAO,CAAC;CACjB;AAiCD,wFAAwF;AACxF,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,SAAS,eAAe,EAAE,EACjC,MAAM,EAAE,SAAS,eAAe,EAAE,GAChC,eAAe,EAAE,CAcnB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,SAAS,eAAe,EAAE,EACjC,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,kBAAkB,GAC1B,qBAAqB,CAiBvB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,CAAC,EAAE,iBAAiB,EAC1B,OAAO,CAAC,EAAE,kBAAkB,GAC1B,eAAe,EAAE,CAMnB;AAED,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd;AAED,oDAAoD;AACpD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,GAAG,kBAAkB,EAAE,CAG1F"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartArt node creation, removal and text edits over the neutral data model.
|
|
3
|
+
*
|
|
4
|
+
* Every operation is pure: it returns a new data object of the caller's own
|
|
5
|
+
* type (pptx: `PptxSmartArtData`) with the node list and `parOf` connections
|
|
6
|
+
* updated, `drawingDirty` set, and the drawing shapes either patched (text) or
|
|
7
|
+
* marked stale so the renderer falls back to the layout engine. Moved from
|
|
8
|
+
* `pptx/core/utils/smartart-editing-node-ops.ts` and made generic; the model id
|
|
9
|
+
* generator is injected (`DiagramEditOptions.createModelId`).
|
|
10
|
+
*
|
|
11
|
+
* @module diagram/edit/node-ops
|
|
12
|
+
*/
|
|
13
|
+
import type { DiagramConnection } from '../types.js';
|
|
14
|
+
import type { DiagramNode } from '../model/node.js';
|
|
15
|
+
import type { DiagramEditOptions, DiagramEditableData } from './types.js';
|
|
16
|
+
/** The new point's model id, through the host's generator when it supplies one. */
|
|
17
|
+
export declare const diagramModelId: (options?: DiagramEditOptions) => string;
|
|
18
|
+
/**
|
|
19
|
+
* The id nodes use as `parentId` when they have no visible parent within the
|
|
20
|
+
* array -- i.e. the diagram's root/doc point id. Existing top-level nodes
|
|
21
|
+
* (parsed from a real file) already carry this as their own `parentId`; a
|
|
22
|
+
* brand-new top-level node needs the same value so the save pipeline can
|
|
23
|
+
* anchor it under the same root when writing the diagram XML back out.
|
|
24
|
+
* Returns `undefined` when the diagram has no nodes yet to infer it from.
|
|
25
|
+
*/
|
|
26
|
+
export declare function findDiagramRootParentId(nodes: readonly DiagramNode[]): string | undefined;
|
|
27
|
+
/** Append a `parOf` connection from `parentId` to `childId` after the parent's other children. */
|
|
28
|
+
export declare function appendParentConnection(connections: DiagramConnection[], parentId: string, childId: string): void;
|
|
29
|
+
/** The edited data: new nodes (and connections), the drawing dirty and its shapes stale. */
|
|
30
|
+
export declare function withEditedStructure<D extends DiagramEditableData>(data: D, nodes: D['nodes'], connections?: DiagramConnection[]): D;
|
|
31
|
+
/**
|
|
32
|
+
* Add a new node after a given sibling (PowerPoint's Add Shape After). If
|
|
33
|
+
* `afterNodeId` is undefined or unknown, the node is appended at the end.
|
|
34
|
+
*/
|
|
35
|
+
export declare function addDiagramNodeAfter<D extends DiagramEditableData>(data: D, text: string, afterNodeId?: string, options?: DiagramEditOptions): D;
|
|
36
|
+
/**
|
|
37
|
+
* Add a new node before a given sibling (PowerPoint's Add Shape Before). If
|
|
38
|
+
* `beforeNodeId` is undefined or unknown, the node is appended at the end.
|
|
39
|
+
*/
|
|
40
|
+
export declare function addDiagramNodeBefore<D extends DiagramEditableData>(data: D, text: string, beforeNodeId?: string, options?: DiagramEditOptions): D;
|
|
41
|
+
/**
|
|
42
|
+
* Add a new node as a child of a given parent (PowerPoint's Add Shape Below).
|
|
43
|
+
*
|
|
44
|
+
* If `parentId` is undefined, the node is added as a root-level item, using
|
|
45
|
+
* the diagram's own root/doc id (inferred from an existing top-level node)
|
|
46
|
+
* so it ends up as a sibling of the other top-level items rather than an
|
|
47
|
+
* unparented node the save pipeline can't anchor into the diagram XML.
|
|
48
|
+
* If `text` is undefined, a default label is generated.
|
|
49
|
+
*/
|
|
50
|
+
export declare function addDiagramNodeBelow<D extends DiagramEditableData>(data: D, parentId?: string, text?: string, options?: DiagramEditOptions): D;
|
|
51
|
+
/**
|
|
52
|
+
* Add a new node above a given node (PowerPoint's Add Shape Above): the new
|
|
53
|
+
* node takes the target's place under the target's parent, and the target
|
|
54
|
+
* becomes its only child. Returns `data` unchanged for an unknown node.
|
|
55
|
+
*/
|
|
56
|
+
export declare function addDiagramNodeAbove<D extends DiagramEditableData>(data: D, nodeId: string, text: string, options?: DiagramEditOptions): D;
|
|
57
|
+
/**
|
|
58
|
+
* Remove a node by ID. Its children move up to the removed node's parent, the
|
|
59
|
+
* connections referencing it are dropped, and drawing shapes are marked stale.
|
|
60
|
+
*/
|
|
61
|
+
export declare function removeDiagramNode<D extends DiagramEditableData>(data: D, nodeId: string): D;
|
|
62
|
+
/**
|
|
63
|
+
* Update the text of a node by ID.
|
|
64
|
+
*
|
|
65
|
+
* When drawing shapes exist, updates the matching shape's text in-place so the
|
|
66
|
+
* renderer path does not change (avoids polygon-to-chevron downgrade that makes
|
|
67
|
+
* a pyramid look like stacked bars). When no drawing shapes are present the
|
|
68
|
+
* family renderer reads text directly from the node array.
|
|
69
|
+
*/
|
|
70
|
+
export declare function setDiagramNodeText<D extends DiagramEditableData>(data: D, nodeId: string, newText: string): D;
|
|
71
|
+
//# sourceMappingURL=node-ops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-ops.d.ts","sourceRoot":"","sources":["../../../diagram/edit/node-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEvE,mFAAmF;AACnF,eAAO,MAAM,cAAc,aAAc,kBAAkB,KAAG,MACf,CAAC;AAEhD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,GAAG,SAAS,CAQzF;AAED,kGAAkG;AAClG,wBAAgB,sBAAsB,CACrC,WAAW,EAAE,iBAAiB,EAAE,EAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACb,IAAI,CAWN;AAED,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,EAChE,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,EACjB,WAAW,CAAC,EAAE,iBAAiB,EAAE,GAC/B,CAAC,CAQH;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,EAChE,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kBAAkB,GAC1B,CAAC,CAEH;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,mBAAmB,EACjE,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,kBAAkB,GAC1B,CAAC,CAEH;AAuCD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,EAChE,IAAI,EAAE,CAAC,EACP,QAAQ,CAAC,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,kBAAkB,GAC1B,CAAC,CAaH;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,EAChE,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,kBAAkB,GAC1B,CAAC,CA+BH;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,mBAAmB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CA8B3F;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,mBAAmB,EAC/D,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACb,CAAC,CAWH"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartArt node reordering and level changes over the neutral data model:
|
|
3
|
+
* move up/down, move to an index, promote and demote. Pure, like the other
|
|
4
|
+
* node operations: each returns a new data object of the caller's type with
|
|
5
|
+
* the drawing marked dirty and its shapes stale. Moved from
|
|
6
|
+
* `pptx/core/utils/smartart-editing-node-ops.ts` and made generic.
|
|
7
|
+
*
|
|
8
|
+
* @module diagram/edit/node-order
|
|
9
|
+
*/
|
|
10
|
+
import type { DiagramEditableData } from './types.js';
|
|
11
|
+
/**
|
|
12
|
+
* Move a node to a different position within its sibling group.
|
|
13
|
+
* `direction` of 1 moves the node down/right, -1 moves it up/left.
|
|
14
|
+
*/
|
|
15
|
+
export declare function moveDiagramNode<D extends DiagramEditableData>(data: D, nodeId: string, direction: 1 | -1): D;
|
|
16
|
+
/**
|
|
17
|
+
* Move a node to a specific index within its sibling group.
|
|
18
|
+
*
|
|
19
|
+
* Siblings are all nodes sharing the same `parentId`.
|
|
20
|
+
* The node is removed from its current position among siblings and
|
|
21
|
+
* re-inserted at `newIndex` (clamped to valid range).
|
|
22
|
+
*/
|
|
23
|
+
export declare function moveDiagramNodeToIndex<D extends DiagramEditableData>(data: D, nodeId: string, newIndex: number): D;
|
|
24
|
+
/** Promote a child node to be a sibling of its parent. */
|
|
25
|
+
export declare function promoteDiagramNode<D extends DiagramEditableData>(data: D, nodeId: string): D;
|
|
26
|
+
/** Demote a node to become a child of its preceding sibling. */
|
|
27
|
+
export declare function demoteDiagramNode<D extends DiagramEditableData>(data: D, nodeId: string): D;
|
|
28
|
+
//# sourceMappingURL=node-order.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-order.d.ts","sourceRoot":"","sources":["../../../diagram/edit/node-order.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,mBAAmB,EAC5D,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,GACf,CAAC,CAyBH;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,mBAAmB,EACnE,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACd,CAAC,CAgCH;AAED,0DAA0D;AAC1D,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,mBAAmB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CA4B5F;AAED,gEAAgE;AAChE,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,mBAAmB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CA8B3F"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SmartArt per-node visual-override editing operation.
|
|
3
|
+
*
|
|
4
|
+
* Like the other node ops, the function here is pure and immutable: it returns
|
|
5
|
+
* a new data object of the caller's type and patches the matching drawing
|
|
6
|
+
* shape (or marks the shapes stale) so the renderer honours the per-node fill /
|
|
7
|
+
* font override. Moved from `pptx/core/utils/smartart-editing-node-style.ts`
|
|
8
|
+
* and made generic.
|
|
9
|
+
*
|
|
10
|
+
* @module diagram/edit/node-style
|
|
11
|
+
*/
|
|
12
|
+
import type { DiagramNode, DiagramNodeStyle } from '../model/node.js';
|
|
13
|
+
import type { DiagramEditShape, DiagramEditableData } from './types.js';
|
|
14
|
+
/** A style patch: present keys overwrite, keys set to `undefined` are removed. */
|
|
15
|
+
export type DiagramNodeStylePatch = {
|
|
16
|
+
[K in keyof DiagramNodeStyle]?: DiagramNodeStyle[K] | undefined;
|
|
17
|
+
};
|
|
18
|
+
/** The drawing-shape fields a node style override patches. */
|
|
19
|
+
export interface DiagramStyledShape extends DiagramEditShape {
|
|
20
|
+
fillColor?: string | undefined;
|
|
21
|
+
strokeColor?: string | undefined;
|
|
22
|
+
fontColor?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Set (merge) a per-node visual override on a SmartArt node by id.
|
|
26
|
+
*
|
|
27
|
+
* The `style` partial is shallow-merged onto the node's existing
|
|
28
|
+
* {@link DiagramNodeStyle}: present keys overwrite, keys explicitly set to
|
|
29
|
+
* `undefined` are removed. When the resulting style has no keys, the `style`
|
|
30
|
+
* field is dropped from the node entirely. `drawingShapes` is cleared so the
|
|
31
|
+
* renderer reflows and the new colours take effect.
|
|
32
|
+
*
|
|
33
|
+
* Returns a new data object; the input is never mutated. When `nodeId`
|
|
34
|
+
* matches no node, the original `data` reference is returned unchanged.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const next = setDiagramNodeStyle(data, "node-2", { fillColor: "#FF0000", bold: true });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare function setDiagramNodeStyle<D extends DiagramEditableData<DiagramNode, DiagramStyledShape>>(data: D, nodeId: string, style: DiagramNodeStylePatch): D;
|
|
42
|
+
//# sourceMappingURL=node-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-style.d.ts","sourceRoot":"","sources":["../../../diagram/edit/node-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErE,kFAAkF;AAClF,MAAM,MAAM,qBAAqB,GAAG;KAClC,CAAC,IAAI,MAAM,gBAAgB,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS;CAC/D,CAAC;AAEF,8DAA8D;AAC9D,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC3D,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAoBD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,CAAC,EACjG,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,qBAAqB,GAC1B,CAAC,CA4BH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DiagramDataModel } from '../types.js';
|
|
2
|
+
import type { DiagramHostNode } from './node-edit.js';
|
|
3
|
+
/** `nodes` reordered parent first, siblings in array order (a stable depth-first walk). */
|
|
4
|
+
export declare function treeOrderDiagramNodes<N extends {
|
|
5
|
+
id: string;
|
|
6
|
+
parentId?: string | undefined;
|
|
7
|
+
}>(nodes: readonly N[]): N[];
|
|
8
|
+
/** The model's content nodes, with text, paragraphs and parents, in tree order. */
|
|
9
|
+
export declare function diagramNodesInTreeOrder(data: DiagramDataModel): DiagramHostNode[];
|
|
10
|
+
//# sourceMappingURL=node-tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-tree.d.ts","sourceRoot":"","sources":["../../../diagram/edit/node-tree.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,2FAA2F;AAC3F,wBAAgB,qBAAqB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAC5F,KAAK,EAAE,SAAS,CAAC,EAAE,GACjB,CAAC,EAAE,CAuBL;AAED,mFAAmF;AACnF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,GAAG,eAAe,EAAE,CAuBjF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The text pane's view of a diagram: each node's depth below the top level. A top-level node is
|
|
3
|
+
* one without a parent or whose parent (the document point) is not in the list, the shape the
|
|
4
|
+
* loaders produce. Parents precede their children in document order.
|
|
5
|
+
*
|
|
6
|
+
* @module diagram/edit/outline
|
|
7
|
+
*/
|
|
8
|
+
import type { DiagramNode } from '../model/node.js';
|
|
9
|
+
/** Each node's depth, in list order: 0 for a top-level node, its parent's depth + 1 otherwise. */
|
|
10
|
+
export declare function diagramNodeLevels(nodes: readonly Pick<DiagramNode, 'id' | 'parentId'>[]): number[];
|
|
11
|
+
//# sourceMappingURL=outline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../../diagram/edit/outline.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,kGAAkG;AAClG,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,SAAS,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,UAAU,CAAC,EAAE,GACpD,MAAM,EAAE,CASV"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keyword resolution of a raw layout type string to the layout family a
|
|
3
|
+
* reflow uses. Moved from `pptx/core/utils/smartart-editing-reflow.ts`.
|
|
4
|
+
*
|
|
5
|
+
* @module diagram/edit/reflow-category
|
|
6
|
+
*/
|
|
7
|
+
import type { DiagramLayoutType } from '../types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Resolve a raw layout type string to a `DiagramLayoutType`.
|
|
10
|
+
*
|
|
11
|
+
* Matches keywords in the raw string to determine the most appropriate
|
|
12
|
+
* layout category. Falls back to `"list"` when no match is found.
|
|
13
|
+
*
|
|
14
|
+
* @param layoutType - Raw layout type string from the PPTX data model.
|
|
15
|
+
* @returns Resolved SmartArt layout type.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveDiagramReflowCategory(layoutType: string | undefined): DiagramLayoutType;
|
|
18
|
+
//# sourceMappingURL=reflow-category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflow-category.d.ts","sourceRoot":"","sources":["../../../diagram/edit/reflow-category.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,CAkD9F"}
|