ooxml-core 1.30.1 → 1.32.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-KKLAYUGQ.mjs → PptxHandler-QY5VL3CY.mjs} +2 -2
- package/dist/PptxHandler-SJ5ZUIUX.mjs +4 -0
- package/dist/{PptxHandler-DHQPVTUI.cjs → PptxHandler-TESZUH66.cjs} +3 -3
- package/dist/{PresentationBuilder-YYZYCKTZ.mjs → PresentationBuilder-3CH5TR4W.mjs} +2 -2
- package/dist/{PresentationBuilder-JORMF5CP.cjs → PresentationBuilder-5NFBUP7Y.cjs} +5 -5
- package/dist/{PresentationBuilder-Q2Z33LLM.mjs → PresentationBuilder-S6HXHKEJ.mjs} +2 -2
- package/dist/automation/index.cjs +6446 -3410
- package/dist/automation/index.mjs +6446 -3410
- package/dist/automation/node.cjs +2 -1
- package/dist/automation/node.d.ts.map +1 -1
- package/dist/automation/node.mjs +2 -1
- package/dist/automation/tools/define.d.ts +2 -0
- package/dist/automation/tools/define.d.ts.map +1 -1
- package/dist/automation/tools/types.d.ts +6 -0
- package/dist/automation/tools/types.d.ts.map +1 -1
- package/dist/{chunk-GJDFCP2T.mjs → chunk-3H5UAJB3.mjs} +258 -155
- package/dist/{chunk-MKDONWNO.mjs → chunk-4R65YYAD.mjs} +32 -14
- package/dist/{chunk-KWJYMAEF.mjs → chunk-IOTGRLJH.mjs} +255 -152
- package/dist/{chunk-6FXOAMNL.mjs → chunk-N6424WKA.mjs} +1 -1
- package/dist/{chunk-WZJ25K7P.mjs → chunk-NAWLWKOJ.mjs} +1 -1
- package/dist/{chunk-DJ3CDTMX.mjs → chunk-O7SVHLD7.mjs} +23 -5
- package/dist/{chunk-CZXM4ZJH.cjs → chunk-Q6NM64J2.cjs} +23 -4
- package/dist/{chunk-FFJBOR2Y.mjs → chunk-UYMSFJQZ.mjs} +76 -4
- package/dist/{chunk-B4LXDHBX.cjs → chunk-X6VNUBES.cjs} +1419 -1316
- package/dist/collab/index.cjs +35 -4
- package/dist/collab/index.mjs +35 -4
- package/dist/collab/websocket-transport.d.ts +9 -1
- package/dist/collab/websocket-transport.d.ts.map +1 -1
- package/dist/diagram/index.cjs +8 -4
- package/dist/diagram/index.mjs +8 -4
- package/dist/docx/data-binding.d.ts +9 -0
- package/dist/docx/data-binding.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +1 -0
- package/dist/docx/document-parts.d.ts.map +1 -1
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +1391 -613
- package/dist/docx/embedded.mjs +1391 -613
- package/dist/docx/index.cjs +1402 -622
- package/dist/docx/index.mjs +1402 -622
- package/dist/docx/inline-model.d.ts +2 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/layout/adapt-floats.d.ts.map +1 -1
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/equation-object.d.ts +1 -1
- package/dist/docx/layout/equation-object.d.ts.map +1 -1
- package/dist/docx/layout/floats.d.ts +1 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/flow-paragraph.d.ts +4 -0
- package/dist/docx/layout/flow-paragraph.d.ts.map +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +460 -207
- package/dist/docx/layout/index.mjs +460 -207
- package/dist/docx/layout/input.d.ts +12 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/nested-frame-profile.d.ts +3 -1
- package/dist/docx/layout/nested-frame-profile.d.ts.map +1 -1
- package/dist/docx/layout/page-cursor.d.ts +11 -2
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-fragments.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-layout.d.ts +5 -0
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +4 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/section-flow.d.ts +2 -0
- package/dist/docx/layout/section-flow.d.ts.map +1 -1
- package/dist/docx/layout/table-layout.d.ts +4 -14
- package/dist/docx/layout/table-layout.d.ts.map +1 -1
- package/dist/docx/layout/table-merged-rows.d.ts +21 -0
- package/dist/docx/layout/table-merged-rows.d.ts.map +1 -0
- package/dist/docx/layout/table-row-split.d.ts +16 -0
- package/dist/docx/layout/table-row-split.d.ts.map +1 -0
- package/dist/docx/layout/wrap.d.ts +2 -0
- package/dist/docx/layout/wrap.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +1405 -627
- package/dist/docx/load/index.mjs +1405 -627
- package/dist/docx/model-paragraph.d.ts +4 -1
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +24 -1
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/paragraph-properties.d.ts.map +1 -1
- package/dist/docx/paragraph-styles.d.ts.map +1 -1
- package/dist/docx/parse-table.d.ts.map +1 -1
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/run-segmentation.d.ts.map +1 -1
- package/dist/docx/save-modified.d.ts +4 -0
- package/dist/docx/save-modified.d.ts.map +1 -0
- package/dist/docx/save.d.ts +2 -2
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/style-formatting-package.d.ts +9 -0
- package/dist/docx/style-formatting-package.d.ts.map +1 -0
- package/dist/docx/style-numbering-package.d.ts +4 -1
- package/dist/docx/style-numbering-package.d.ts.map +1 -1
- package/dist/docx/table-grid.d.ts +35 -0
- package/dist/docx/table-grid.d.ts.map +1 -0
- package/dist/docx/table-structure-cells.d.ts +19 -0
- package/dist/docx/table-structure-cells.d.ts.map +1 -0
- package/dist/docx/table-structure-check.d.ts +12 -0
- package/dist/docx/table-structure-check.d.ts.map +1 -0
- package/dist/docx/table-structure-merge.d.ts +28 -0
- package/dist/docx/table-structure-merge.d.ts.map +1 -0
- package/dist/docx/table-structure.d.ts +30 -0
- package/dist/docx/table-structure.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +725 -260
- package/dist/docx/ui/index.d.ts +4 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +711 -261
- 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/table-structure-guard.d.ts +2 -0
- package/dist/docx/ui/table-structure-guard.d.ts.map +1 -1
- package/dist/docx/word-content-control-docs.d.ts +5 -0
- package/dist/docx/word-content-control-docs.d.ts.map +1 -0
- package/dist/docx/word-corpus-gaps.d.ts +10 -0
- package/dist/docx/word-corpus-gaps.d.ts.map +1 -0
- package/dist/docx/word-measurer.d.ts +6 -0
- package/dist/docx/word-measurer.d.ts.map +1 -0
- package/dist/docx/word-spacing-docs.d.ts +12 -0
- package/dist/docx/word-spacing-docs.d.ts.map +1 -0
- package/dist/docx/word-table-docs.d.ts +9 -0
- package/dist/docx/word-table-docs.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-fallback.d.ts +5 -0
- package/dist/docx/write-fallback.d.ts.map +1 -0
- package/dist/docx/write-table-properties.d.ts +1 -0
- package/dist/docx/write-table-properties.d.ts.map +1 -1
- package/dist/docx/write-table-structure.d.ts +14 -0
- package/dist/docx/write-table-structure.d.ts.map +1 -0
- package/dist/docx/write-table.d.ts +3 -4
- package/dist/docx/write-table.d.ts.map +1 -1
- package/dist/geometry/index.cjs +16 -12
- package/dist/geometry/index.mjs +16 -12
- package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -1
- package/dist/index.cjs +38 -34
- package/dist/index.mjs +38 -34
- package/dist/math/index.cjs +22 -22
- package/dist/math/index.mjs +22 -22
- package/dist/math/omml-box-grouped.d.ts.map +1 -1
- package/dist/math/omml-box-layout.d.ts +3 -1
- package/dist/math/omml-box-layout.d.ts.map +1 -1
- package/dist/math/omml-box-structures.d.ts.map +1 -1
- package/dist/math/omml-box.d.ts +2 -0
- package/dist/math/omml-box.d.ts.map +1 -1
- package/dist/math/omml-svg.d.ts +6 -2
- package/dist/math/omml-svg.d.ts.map +1 -1
- package/dist/pptx/automation/index.cjs +295 -157
- package/dist/pptx/automation/index.d.ts +9 -3
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +6 -5
- package/dist/pptx/chunks/{index-PdM5zpmu.d.ts → index-D-FdgqrP.d.ts} +102 -3
- package/dist/pptx/chunks/index-D-FdgqrP.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BQDcu_0a.d.ts → index-DKybuHPT.d.ts} +51 -3
- package/dist/pptx/chunks/{index-BQDcu_0a.d.ts.map → index-DKybuHPT.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-CBV1oHN7.d.ts → index-DnWlmYCy.d.ts} +2 -2
- package/dist/pptx/chunks/{index-CBV1oHN7.d.ts.map → index-DnWlmYCy.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +294 -157
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +8 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/find-replace.cjs +14 -14
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- 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/index.cjs +380 -171
- package/dist/pptx/index.d.ts +4 -4
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/teams/chat-rooms.d.ts.map +1 -1
- package/dist/teams/chat-view.d.ts +10 -1
- package/dist/teams/chat-view.d.ts.map +1 -1
- package/dist/teams/chat.d.ts +7 -0
- package/dist/teams/chat.d.ts.map +1 -1
- package/dist/teams/files.d.ts +1 -1
- package/dist/teams/files.d.ts.map +1 -1
- package/dist/teams/index.cjs +3471 -1223
- package/dist/teams/index.d.ts +4 -0
- package/dist/teams/index.d.ts.map +1 -1
- package/dist/teams/index.mjs +3435 -1223
- package/dist/teams/message-transfer.d.ts +1 -1
- package/dist/teams/message-transfer.d.ts.map +1 -1
- package/dist/teams/presence-controller.d.ts +18 -3
- package/dist/teams/presence-controller.d.ts.map +1 -1
- package/dist/teams/presence-meetings.d.ts +21 -0
- package/dist/teams/presence-meetings.d.ts.map +1 -0
- package/dist/teams/presence.d.ts +40 -2
- package/dist/teams/presence.d.ts.map +1 -1
- package/dist/teams/protocol.d.ts +30 -0
- package/dist/teams/protocol.d.ts.map +1 -0
- package/dist/teams/schema.d.ts +59 -0
- package/dist/teams/schema.d.ts.map +1 -0
- package/dist/teams/server-config.d.ts +19 -2
- package/dist/teams/server-config.d.ts.map +1 -1
- package/dist/teams/server-file-storage.d.ts +11 -1
- package/dist/teams/server-file-storage.d.ts.map +1 -1
- package/dist/teams/server-session.d.ts +2 -0
- package/dist/teams/server-session.d.ts.map +1 -1
- package/dist/teams/signaling.d.ts +2 -0
- package/dist/teams/signaling.d.ts.map +1 -1
- package/dist/teams/store.d.ts +14 -0
- package/dist/teams/store.d.ts.map +1 -1
- package/dist/teams/stored-file.d.ts +1 -1
- package/dist/teams/stored-file.d.ts.map +1 -1
- package/dist/teams/sync-transport.d.ts.map +1 -1
- package/dist/teams/validate-members.d.ts +28 -0
- package/dist/teams/validate-members.d.ts.map +1 -0
- package/dist/teams/validate-owned.d.ts +20 -0
- package/dist/teams/validate-owned.d.ts.map +1 -0
- package/dist/teams/validate-update.d.ts +70 -0
- package/dist/teams/validate-update.d.ts.map +1 -0
- package/dist/teams/view.d.ts +5 -0
- package/dist/teams/view.d.ts.map +1 -1
- package/dist/teams/workspace.d.ts +17 -2
- package/dist/teams/workspace.d.ts.map +1 -1
- package/dist/visio/connector-route-walk.d.ts +2 -0
- package/dist/visio/connector-route-walk.d.ts.map +1 -1
- package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
- package/dist/visio/edit-connector.d.ts +2 -0
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-delete.d.ts.map +1 -1
- package/dist/visio/edit-duplicate-line.d.ts +40 -0
- package/dist/visio/edit-duplicate-line.d.ts.map +1 -0
- package/dist/visio/edit-duplicate.d.ts.map +1 -1
- package/dist/visio/edit-formatting-scope.d.ts +5 -1
- package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-instance-duplicate.d.ts +2 -1
- package/dist/visio/edit-instance-duplicate.d.ts.map +1 -1
- package/dist/visio/edit-master-move.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-index.d.ts +23 -0
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-text.d.ts +12 -0
- package/dist/visio/edit-recalculate-text.d.ts.map +1 -0
- package/dist/visio/edit-recalculate-values.d.ts.map +1 -1
- package/dist/visio/edit-recalculate.d.ts +15 -3
- package/dist/visio/edit-recalculate.d.ts.map +1 -1
- package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
- package/dist/visio/edit-stencil-connector-layout.d.ts +1 -1
- package/dist/visio/edit-stencil-connector-layout.d.ts.map +1 -1
- package/dist/visio/edit-text-scope.d.ts +4 -1
- package/dist/visio/edit-text-scope.d.ts.map +1 -1
- package/dist/visio/formula-analyze.d.ts +18 -0
- package/dist/visio/formula-analyze.d.ts.map +1 -0
- package/dist/visio/formula-bound.d.ts +4 -0
- package/dist/visio/formula-bound.d.ts.map +1 -0
- package/dist/visio/formula-evaluate.d.ts +2 -9
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/formula-extra-functions.d.ts +23 -0
- package/dist/visio/formula-extra-functions.d.ts.map +1 -0
- package/dist/visio/formula-indirect.d.ts +6 -0
- package/dist/visio/formula-indirect.d.ts.map +1 -0
- package/dist/visio/formula-master.d.ts +1 -0
- package/dist/visio/formula-master.d.ts.map +1 -1
- package/dist/visio/formula-operators.d.ts +6 -0
- package/dist/visio/formula-operators.d.ts.map +1 -0
- package/dist/visio/formula-text-functions.d.ts +5 -1
- package/dist/visio/formula-text-functions.d.ts.map +1 -1
- package/dist/visio/formula.d.ts +12 -0
- package/dist/visio/formula.d.ts.map +1 -1
- package/dist/visio/index.cjs +1359 -396
- package/dist/visio/index.mjs +1359 -396
- package/dist/visio/ui/index.cjs +1346 -383
- package/dist/visio/ui/index.mjs +1346 -383
- package/dist/xlsx/collab/apply.d.ts.map +1 -1
- package/dist/xlsx/collab/codec.d.ts +2 -0
- package/dist/xlsx/collab/codec.d.ts.map +1 -1
- package/dist/xlsx/collab/dirty.d.ts +4 -1
- package/dist/xlsx/collab/dirty.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +551 -106
- package/dist/xlsx/collab/index.mjs +551 -106
- package/dist/xlsx/collab/keyed.d.ts +36 -0
- package/dist/xlsx/collab/keyed.d.ts.map +1 -0
- package/dist/xlsx/collab/names.d.ts +2 -0
- package/dist/xlsx/collab/names.d.ts.map +1 -1
- package/dist/xlsx/collab/part-specs.d.ts +13 -0
- package/dist/xlsx/collab/part-specs.d.ts.map +1 -0
- package/dist/xlsx/collab/schema.d.ts +8 -0
- package/dist/xlsx/collab/schema.d.ts.map +1 -1
- package/dist/xlsx/collab/sheet-parts.d.ts +19 -0
- package/dist/xlsx/collab/sheet-parts.d.ts.map +1 -0
- package/dist/xlsx/collab/sheets.d.ts +6 -0
- package/dist/xlsx/collab/sheets.d.ts.map +1 -1
- package/dist/xlsx/collab/write.d.ts +3 -0
- package/dist/xlsx/collab/write.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard-areas.d.ts +17 -0
- package/dist/xlsx/edit/clipboard-areas.d.ts.map +1 -0
- package/dist/xlsx/edit/custom-views.d.ts +21 -0
- package/dist/xlsx/edit/custom-views.d.ts.map +1 -0
- package/dist/xlsx/edit/data-table.d.ts.map +1 -1
- package/dist/xlsx/edit/history.d.ts +1 -1
- package/dist/xlsx/edit/history.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +2 -0
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/paste-selection.d.ts.map +1 -1
- package/dist/xlsx/edit/scenario-merge.d.ts +7 -0
- package/dist/xlsx/edit/scenario-merge.d.ts.map +1 -0
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-data-tables.d.ts +7 -0
- package/dist/xlsx/edit/shift-data-tables.d.ts.map +1 -0
- package/dist/xlsx/edit/shift-scenarios.d.ts +7 -0
- package/dist/xlsx/edit/shift-scenarios.d.ts.map +1 -0
- package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -1
- package/dist/xlsx/edit/sparkline-grouping.d.ts +10 -0
- package/dist/xlsx/edit/sparkline-grouping.d.ts.map +1 -0
- package/dist/xlsx/edit/types.d.ts +21 -0
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/formula/ets-drift-compare.d.ts +19 -0
- package/dist/xlsx/formula/ets-drift-compare.d.ts.map +1 -0
- package/dist/xlsx/formula/ets-excel-compare.d.ts +36 -0
- package/dist/xlsx/formula/ets-excel-compare.d.ts.map +1 -0
- package/dist/xlsx/formula/ets-init-compare.d.ts +24 -0
- package/dist/xlsx/formula/ets-init-compare.d.ts.map +1 -0
- package/dist/xlsx/formula/ets-init-maps.d.ts +21 -0
- package/dist/xlsx/formula/ets-init-maps.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-core.d.ts +36 -0
- package/dist/xlsx/formula/functions/ets-core.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-grid.d.ts +15 -0
- package/dist/xlsx/formula/functions/ets-grid.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-chain.d.ts +11 -0
- package/dist/xlsx/formula/functions/ets-init-chain.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-four.d.ts +3 -0
- package/dist/xlsx/formula/functions/ets-init-four.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-short.d.ts +17 -0
- package/dist/xlsx/formula/functions/ets-init-short.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-states.d.ts +5 -0
- package/dist/xlsx/formula/functions/ets-init-states.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-three.d.ts +23 -0
- package/dist/xlsx/formula/functions/ets-init-three.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-threeplus.d.ts +13 -0
- package/dist/xlsx/formula/functions/ets-init-threeplus.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init.d.ts +33 -0
- package/dist/xlsx/formula/functions/ets-init.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-input.d.ts +13 -0
- package/dist/xlsx/formula/functions/ets-input.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-search-map.d.ts +24 -0
- package/dist/xlsx/formula/functions/ets-search-map.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-search.d.ts +17 -0
- package/dist/xlsx/formula/functions/ets-search.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-season.d.ts +6 -0
- package/dist/xlsx/formula/functions/ets-season.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-validate.d.ts +16 -0
- package/dist/xlsx/formula/functions/ets-validate.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/forecast-ets.d.ts +3 -0
- package/dist/xlsx/formula/functions/forecast-ets.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/statistical.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +5118 -2648
- package/dist/xlsx/index.mjs +5097 -2649
- package/dist/xlsx/layout/form-control-link.d.ts +20 -0
- package/dist/xlsx/layout/form-control-link.d.ts.map +1 -0
- package/dist/xlsx/layout/form-control-state.d.ts +49 -0
- package/dist/xlsx/layout/form-control-state.d.ts.map +1 -0
- package/dist/xlsx/layout/form-control-view.d.ts +11 -0
- package/dist/xlsx/layout/form-control-view.d.ts.map +1 -0
- package/dist/xlsx/layout/header-footer-edit.d.ts +4 -2
- package/dist/xlsx/layout/header-footer-edit.d.ts.map +1 -1
- package/dist/xlsx/layout/header-footer.d.ts +16 -0
- package/dist/xlsx/layout/header-footer.d.ts.map +1 -1
- package/dist/xlsx/layout/index.d.ts +5 -0
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/ref-evaluator.d.ts +6 -0
- package/dist/xlsx/layout/ref-evaluator.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-paint.d.ts +25 -0
- package/dist/xlsx/layout/shape-paint.d.ts.map +1 -0
- package/dist/xlsx/layout/shape-view.d.ts +15 -0
- package/dist/xlsx/layout/shape-view.d.ts.map +1 -0
- package/dist/xlsx/load/index.cjs +2667 -1163
- package/dist/xlsx/load/index.mjs +2667 -1163
- package/dist/xlsx/model-custom-views.d.ts +33 -0
- package/dist/xlsx/model-custom-views.d.ts.map +1 -0
- package/dist/xlsx/model-shapes.d.ts +78 -0
- package/dist/xlsx/model-shapes.d.ts.map +1 -0
- package/dist/xlsx/model.d.ts +38 -1
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/custom-views.d.ts +5 -0
- package/dist/xlsx/read/custom-views.d.ts.map +1 -0
- package/dist/xlsx/read/drawing.d.ts.map +1 -1
- package/dist/xlsx/read/form-control.d.ts +14 -0
- package/dist/xlsx/read/form-control.d.ts.map +1 -0
- package/dist/xlsx/read/header-footer-images.d.ts +5 -0
- package/dist/xlsx/read/header-footer-images.d.ts.map +1 -0
- package/dist/xlsx/read/load.d.ts.map +1 -1
- package/dist/xlsx/read/shape.d.ts +5 -0
- package/dist/xlsx/read/shape.d.ts.map +1 -0
- package/dist/xlsx/read/sheet-data.d.ts.map +1 -1
- package/dist/xlsx/read/workbook-part.d.ts +5 -1
- package/dist/xlsx/read/workbook-part.d.ts.map +1 -1
- package/dist/xlsx/read/worksheet-children.d.ts +3 -0
- package/dist/xlsx/read/worksheet-children.d.ts.map +1 -0
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/sparklines.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/what-if.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/what-if.d.ts +0 -1
- package/dist/xlsx/ui/commands/what-if.d.ts.map +1 -1
- package/dist/xlsx/ui/dialogs/forecast-sheet.d.ts +51 -0
- package/dist/xlsx/ui/dialogs/forecast-sheet.d.ts.map +1 -0
- package/dist/xlsx/ui/dialogs/scenario-summary.d.ts +15 -0
- package/dist/xlsx/ui/dialogs/scenario-summary.d.ts.map +1 -0
- package/dist/xlsx/ui/index.cjs +5088 -2399
- package/dist/xlsx/ui/index.d.ts +2 -0
- package/dist/xlsx/ui/index.d.ts.map +1 -1
- package/dist/xlsx/ui/index.mjs +5081 -2398
- package/dist/xlsx/ui/locales/de/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/grid.d.ts.map +1 -1
- package/dist/xlsx/write/custom-views.d.ts +4 -0
- package/dist/xlsx/write/custom-views.d.ts.map +1 -0
- package/dist/xlsx/write/drawing.d.ts.map +1 -1
- package/dist/xlsx/write/form-control.d.ts +4 -0
- package/dist/xlsx/write/form-control.d.ts.map +1 -0
- package/dist/xlsx/write/sheet-data.d.ts.map +1 -1
- package/dist/xlsx/write/workbook-part.d.ts.map +1 -1
- package/dist/xlsx/write/worksheet.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/PptxHandler-E4DDV3FQ.mjs +0 -4
- package/dist/pptx/chunks/index-PdM5zpmu.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NS, SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, picturePercentage, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseXml, elements, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, drawingLineXml, parseDrawingFill, parseDrawingLine, first, buildXml, setDrawingFillXml, fillElementOf, patchDrawingLine, drawingFillXml, children, applyChartManualLayout, chartTrendlineType, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, booleanAttribute, parseDrawingColorIn, drawingColorXml, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER,
|
|
1
|
+
import { NS, SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, picturePercentage, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseXml, elements, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, drawingLineXml, parseDrawingFill, parseDrawingLine, first, buildXml, setDrawingFillXml, fillElementOf, patchDrawingLine, drawingFillXml, children, applyChartManualLayout, chartTrendlineType, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, booleanAttribute, parseDrawingColorIn, drawingColorXml, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, formatCellAddress, childrenNamed, childNamed, parseCellAddress, attr, parseDrawingEffects, drawingEffectsXml, readChartManualLayoutValues, worksheetData, buildEffectDagTreeFromXml, resolveDrawingColor, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, readPictureEffect, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, CHART_ERROR_VALUE_TYPES, CHART_ERROR_BAR_TYPES, CHART_ERROR_BAR_DIRECTIONS, patchDrawingColorIn, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, parsePptxJson, pptxDataFromJsonDocument, applyImportedPptxData, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, escAttr, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, escText, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, OOXML_PERCENT_UNITS, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, emu, formatSchemeKey, gradFill, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-4R65YYAD.mjs';
|
|
2
2
|
import { openPptxZip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, openZip, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, guardZip, ZipBombError } from './chunk-EYCM7RVL.mjs';
|
|
3
3
|
import { resolveSmartArtLayoutCategory } from './chunk-3GXV5MPC.mjs';
|
|
4
4
|
import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-54S5A5PZ.mjs';
|
|
@@ -1281,7 +1281,8 @@ var ConnectorXmlFactory = class {
|
|
|
1281
1281
|
const { element: element2 } = init;
|
|
1282
1282
|
const geometry = element2.shapeType && element2.shapeType !== "line" ? this.context.normalizePresetGeometry(element2.shapeType) : "straightConnector1";
|
|
1283
1283
|
const strokeColor = element2.shapeStyle?.strokeColor || "#1F2937";
|
|
1284
|
-
const
|
|
1284
|
+
const requestedWidth = element2.shapeStyle?.strokeWidth;
|
|
1285
|
+
const strokeWidth = requestedWidth !== void 0 && requestedWidth > 0 ? requestedWidth : 1;
|
|
1285
1286
|
const lineNode = {
|
|
1286
1287
|
"@_w": String(Math.round(strokeWidth * this.context.emuPerPx))
|
|
1287
1288
|
};
|
|
@@ -5397,6 +5398,7 @@ function buildReflectionXml(style, context) {
|
|
|
5397
5398
|
const numericValues = [
|
|
5398
5399
|
style.reflectionBlurRadius,
|
|
5399
5400
|
style.reflectionStartOpacity,
|
|
5401
|
+
style.reflectionEndOpacity,
|
|
5400
5402
|
style.reflectionDistance
|
|
5401
5403
|
];
|
|
5402
5404
|
if (!numericValues.some((value) => typeof value === "number" && Number.isFinite(value) && value > 0)) {
|
|
@@ -56288,6 +56290,50 @@ function rebuildShowProperties(existingShowPr, properties) {
|
|
|
56288
56290
|
return result;
|
|
56289
56291
|
}
|
|
56290
56292
|
|
|
56293
|
+
// pptx/core/utils/cust-data-list-dom.ts
|
|
56294
|
+
var CSLD_ROOTS = /* @__PURE__ */ new Set(["sld", "notes", "sldLayout", "sldMaster", "handoutMaster"]);
|
|
56295
|
+
var PRESENTATION_INSERT_BEFORE = /* @__PURE__ */ new Set([
|
|
56296
|
+
"kinsoku",
|
|
56297
|
+
"defaultTextStyle",
|
|
56298
|
+
"modifyVerifier",
|
|
56299
|
+
"extLst"
|
|
56300
|
+
]);
|
|
56301
|
+
var CSLD_INSERT_BEFORE = /* @__PURE__ */ new Set(["controls", "extLst"]);
|
|
56302
|
+
function custDataContainer(doc) {
|
|
56303
|
+
const root = doc.documentElement;
|
|
56304
|
+
if (!root || root.namespaceURI !== NS.p) {
|
|
56305
|
+
return void 0;
|
|
56306
|
+
}
|
|
56307
|
+
if (root.localName === "presentation") {
|
|
56308
|
+
return root;
|
|
56309
|
+
}
|
|
56310
|
+
return CSLD_ROOTS.has(root.localName) ? first(root, "cSld", NS.p) : void 0;
|
|
56311
|
+
}
|
|
56312
|
+
function createPresentationElement(doc, container, local) {
|
|
56313
|
+
return doc.createElementNS(NS.p, container.prefix ? `${container.prefix}:${local}` : local);
|
|
56314
|
+
}
|
|
56315
|
+
function ensureCustDataList(doc, container) {
|
|
56316
|
+
const existing = first(container, "custDataLst", NS.p);
|
|
56317
|
+
if (existing) {
|
|
56318
|
+
return existing;
|
|
56319
|
+
}
|
|
56320
|
+
const insertBefore4 = container.localName === "presentation" ? PRESENTATION_INSERT_BEFORE : CSLD_INSERT_BEFORE;
|
|
56321
|
+
const list2 = createPresentationElement(doc, container, "custDataLst");
|
|
56322
|
+
const before = elements(container).find(
|
|
56323
|
+
(child17) => child17.namespaceURI === NS.p && insertBefore4.has(child17.localName)
|
|
56324
|
+
);
|
|
56325
|
+
container.insertBefore(list2, before ?? null);
|
|
56326
|
+
return list2;
|
|
56327
|
+
}
|
|
56328
|
+
function listChildren(list2, local) {
|
|
56329
|
+
return elements(list2).filter((child17) => child17.namespaceURI === NS.p && child17.localName === local);
|
|
56330
|
+
}
|
|
56331
|
+
function removeIfEmpty(list2) {
|
|
56332
|
+
if (elements(list2).length === 0) {
|
|
56333
|
+
list2.parentNode?.removeChild(list2);
|
|
56334
|
+
}
|
|
56335
|
+
}
|
|
56336
|
+
|
|
56291
56337
|
// pptx/core/utils/customer-data-package.ts
|
|
56292
56338
|
var CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml";
|
|
56293
56339
|
var DEFAULT_CONTENT_TYPE = "application/xml";
|
|
@@ -56299,9 +56345,9 @@ async function writeCustomerDataScopes(zip, scopes, codec) {
|
|
|
56299
56345
|
if (!sourceXml) {
|
|
56300
56346
|
continue;
|
|
56301
56347
|
}
|
|
56302
|
-
const
|
|
56303
|
-
const container =
|
|
56304
|
-
if (!container) {
|
|
56348
|
+
const sourceDoc = parseXml(sourceXml, { label: scope.sourcePartPath });
|
|
56349
|
+
const container = custDataContainer(sourceDoc);
|
|
56350
|
+
if (!container || !matchesLocation(container, scope.location)) {
|
|
56305
56351
|
continue;
|
|
56306
56352
|
}
|
|
56307
56353
|
const relsPath2 = relsForSourcePart(scope.sourcePartPath);
|
|
@@ -56336,12 +56382,10 @@ async function writeCustomerDataScopes(zip, scopes, codec) {
|
|
|
56336
56382
|
authoredEntries.push(rawEntry);
|
|
56337
56383
|
contentTypes2.set(path3, entry2.contentType);
|
|
56338
56384
|
}
|
|
56339
|
-
|
|
56340
|
-
existingList["p:custData"] = authoredEntries;
|
|
56341
|
-
placeCustomerDataList(container, existingList, scope.location);
|
|
56385
|
+
replaceCustomerDataEntries(sourceDoc, container, authoredEntries, codec);
|
|
56342
56386
|
relsRoot["Relationship"] = relationships2;
|
|
56343
56387
|
zip.file(relsPath2, codec.build(relsData));
|
|
56344
|
-
zip.file(scope.sourcePartPath,
|
|
56388
|
+
zip.file(scope.sourcePartPath, buildXml(sourceDoc));
|
|
56345
56389
|
}
|
|
56346
56390
|
await upsertContentTypes(zip, codec, contentTypes2);
|
|
56347
56391
|
}
|
|
@@ -56363,12 +56407,9 @@ async function resolveContentType(zip, codec, path3) {
|
|
|
56363
56407
|
);
|
|
56364
56408
|
return fallback?.["@_ContentType"] ? String(fallback["@_ContentType"]) : void 0;
|
|
56365
56409
|
}
|
|
56366
|
-
function
|
|
56367
|
-
|
|
56368
|
-
|
|
56369
|
-
}
|
|
56370
|
-
const slide = data["p:sld"];
|
|
56371
|
-
return slide?.["p:cSld"];
|
|
56410
|
+
function matchesLocation(container, location) {
|
|
56411
|
+
const rootName = container.ownerDocument?.documentElement?.localName;
|
|
56412
|
+
return rootName === (location === "presentation" ? "presentation" : "sld");
|
|
56372
56413
|
}
|
|
56373
56414
|
function upsertRelationship(relationships2, entry2, target) {
|
|
56374
56415
|
let relationship2 = relationships2.find(
|
|
@@ -56388,27 +56429,27 @@ function upsertRelationship(relationships2, entry2, target) {
|
|
|
56388
56429
|
function isCustomXmlRelationship(value) {
|
|
56389
56430
|
return String(value ?? "").endsWith("/relationships/customXml");
|
|
56390
56431
|
}
|
|
56391
|
-
function
|
|
56392
|
-
const
|
|
56393
|
-
const
|
|
56394
|
-
|
|
56395
|
-
for (const [key2, value] of Object.entries(container)) {
|
|
56396
|
-
if (key2 === "p:custDataLst") {
|
|
56397
|
-
continue;
|
|
56398
|
-
}
|
|
56399
|
-
if (!inserted && insertBefore4.has(key2)) {
|
|
56400
|
-
rebuilt["p:custDataLst"] = list2;
|
|
56401
|
-
inserted = true;
|
|
56402
|
-
}
|
|
56403
|
-
rebuilt[key2] = value;
|
|
56404
|
-
}
|
|
56405
|
-
if (!inserted) {
|
|
56406
|
-
rebuilt["p:custDataLst"] = list2;
|
|
56432
|
+
function replaceCustomerDataEntries(doc, container, entries, codec) {
|
|
56433
|
+
const list2 = ensureCustDataList(doc, container);
|
|
56434
|
+
for (const stale of listChildren(list2, "custData")) {
|
|
56435
|
+
list2.removeChild(stale);
|
|
56407
56436
|
}
|
|
56408
|
-
|
|
56409
|
-
|
|
56437
|
+
const anchor = listChildren(list2, "tags")[0] ?? null;
|
|
56438
|
+
for (const entry2 of entries) {
|
|
56439
|
+
list2.insertBefore(customerDataElement(doc, entry2, codec), anchor);
|
|
56410
56440
|
}
|
|
56411
|
-
|
|
56441
|
+
removeIfEmpty(list2);
|
|
56442
|
+
}
|
|
56443
|
+
function customerDataElement(doc, entry2, codec) {
|
|
56444
|
+
const root = doc.documentElement;
|
|
56445
|
+
const declarations = Array.from(root.attributes).filter((attribute2) => attribute2.name === "xmlns" || attribute2.name.startsWith("xmlns:")).map((attribute2) => `${attribute2.name}="${attribute2.value}"`).join(" ");
|
|
56446
|
+
const fragment = parseXml(
|
|
56447
|
+
`<wrap ${declarations}>${codec.build({ "p:custData": entry2 })}</wrap>`,
|
|
56448
|
+
{
|
|
56449
|
+
label: "p:custData"
|
|
56450
|
+
}
|
|
56451
|
+
);
|
|
56452
|
+
return doc.importNode(fragment.documentElement.firstChild, true);
|
|
56412
56453
|
}
|
|
56413
56454
|
async function upsertContentTypes(zip, codec, contentTypes2) {
|
|
56414
56455
|
const xml = await zip.file("[Content_Types].xml")?.async("string");
|
|
@@ -56462,84 +56503,55 @@ function ensureArray8(value) {
|
|
|
56462
56503
|
}
|
|
56463
56504
|
|
|
56464
56505
|
// pptx/core/utils/tag-package-owning-element.ts
|
|
56465
|
-
|
|
56466
|
-
|
|
56467
|
-
"p:kinsoku",
|
|
56468
|
-
"p:defaultTextStyle",
|
|
56469
|
-
"p:modifyVerifier",
|
|
56470
|
-
"p:extLst"
|
|
56471
|
-
]);
|
|
56472
|
-
var CSLD_INSERT_BEFORE = /* @__PURE__ */ new Set(["p:controls", "p:extLst"]);
|
|
56473
|
-
function resolveTagsContainer(data) {
|
|
56474
|
-
const presentation = data["p:presentation"];
|
|
56475
|
-
if (presentation) {
|
|
56476
|
-
return { container: presentation, insertBefore: PRESENTATION_INSERT_BEFORE };
|
|
56477
|
-
}
|
|
56478
|
-
for (const rootKey of CSLD_ROOTS) {
|
|
56479
|
-
const root = data[rootKey];
|
|
56480
|
-
if (root) {
|
|
56481
|
-
const cSld = root["p:cSld"] ??= {};
|
|
56482
|
-
return { container: cSld, insertBefore: CSLD_INSERT_BEFORE };
|
|
56483
|
-
}
|
|
56484
|
-
}
|
|
56485
|
-
return void 0;
|
|
56506
|
+
function tagsElements(doc) {
|
|
56507
|
+
return Array.from(doc.getElementsByTagNameNS(NS.p, "tags"));
|
|
56486
56508
|
}
|
|
56487
|
-
function
|
|
56488
|
-
|
|
56489
|
-
let inserted = false;
|
|
56490
|
-
for (const [childKey2, childValue] of Object.entries(container)) {
|
|
56491
|
-
if (childKey2 === key2) {
|
|
56492
|
-
continue;
|
|
56493
|
-
}
|
|
56494
|
-
if (!inserted && insertBefore4.has(childKey2)) {
|
|
56495
|
-
rebuilt[key2] = value;
|
|
56496
|
-
inserted = true;
|
|
56497
|
-
}
|
|
56498
|
-
rebuilt[childKey2] = childValue;
|
|
56499
|
-
}
|
|
56500
|
-
if (!inserted) {
|
|
56501
|
-
rebuilt[key2] = value;
|
|
56502
|
-
}
|
|
56503
|
-
for (const existingKey of Object.keys(container)) {
|
|
56504
|
-
delete container[existingKey];
|
|
56505
|
-
}
|
|
56506
|
-
Object.assign(container, rebuilt);
|
|
56509
|
+
function mentionsTagsId(xml, relationshipId) {
|
|
56510
|
+
return xml.includes("tags") && xml.includes(`"${relationshipId}"`);
|
|
56507
56511
|
}
|
|
56508
|
-
async function upsertTagsOwningElement(zip,
|
|
56512
|
+
async function upsertTagsOwningElement(zip, sourcePartPath, relationshipId) {
|
|
56509
56513
|
const xml = await zip.file(sourcePartPath)?.async("string");
|
|
56510
56514
|
if (!xml) {
|
|
56511
56515
|
return;
|
|
56512
56516
|
}
|
|
56513
|
-
const
|
|
56514
|
-
|
|
56515
|
-
if (!resolved) {
|
|
56517
|
+
const doc = parseXml(xml, { label: sourcePartPath });
|
|
56518
|
+
if (mentionsTagsId(xml, relationshipId) && tagsElements(doc).some((tags2) => relAttr(tags2, "id") === relationshipId)) {
|
|
56516
56519
|
return;
|
|
56517
56520
|
}
|
|
56518
|
-
const
|
|
56519
|
-
|
|
56520
|
-
list2["p:tags"] = { "@_r:id": relationshipId };
|
|
56521
|
-
placeAtKey(container, "p:custDataLst", list2, insertBefore4);
|
|
56522
|
-
zip.file(sourcePartPath, codec.build(data));
|
|
56523
|
-
}
|
|
56524
|
-
async function removeTagsOwningElement(zip, codec, sourcePartPath) {
|
|
56525
|
-
const xml = await zip.file(sourcePartPath)?.async("string");
|
|
56526
|
-
if (!xml) {
|
|
56521
|
+
const container = custDataContainer(doc);
|
|
56522
|
+
if (!container) {
|
|
56527
56523
|
return;
|
|
56528
56524
|
}
|
|
56529
|
-
const
|
|
56530
|
-
const
|
|
56531
|
-
|
|
56525
|
+
const list2 = ensureCustDataList(doc, container);
|
|
56526
|
+
for (const stale of listChildren(list2, "tags")) {
|
|
56527
|
+
list2.removeChild(stale);
|
|
56528
|
+
}
|
|
56529
|
+
const tags = createPresentationElement(doc, container, "tags");
|
|
56530
|
+
tags.setAttributeNS(NS.r, "r:id", relationshipId);
|
|
56531
|
+
list2.appendChild(tags);
|
|
56532
|
+
zip.file(sourcePartPath, buildXml(doc));
|
|
56533
|
+
}
|
|
56534
|
+
async function removeTagsOwningElement(zip, sourcePartPath, relationshipId) {
|
|
56535
|
+
const xml = await zip.file(sourcePartPath)?.async("string");
|
|
56536
|
+
if (!xml || relationshipId !== void 0 && !mentionsTagsId(xml, relationshipId)) {
|
|
56532
56537
|
return;
|
|
56533
56538
|
}
|
|
56534
|
-
const
|
|
56535
|
-
|
|
56539
|
+
const doc = parseXml(xml, { label: sourcePartPath });
|
|
56540
|
+
const container = custDataContainer(doc);
|
|
56541
|
+
const owned = tagsElements(doc).filter(
|
|
56542
|
+
(tags) => relationshipId === void 0 ? tags.parentNode?.parentNode === container : relAttr(tags, "id") === relationshipId
|
|
56543
|
+
);
|
|
56544
|
+
if (owned.length === 0) {
|
|
56536
56545
|
return;
|
|
56537
56546
|
}
|
|
56538
|
-
|
|
56539
|
-
|
|
56540
|
-
|
|
56547
|
+
for (const tags of owned) {
|
|
56548
|
+
const list2 = tags.parentNode;
|
|
56549
|
+
list2?.removeChild(tags);
|
|
56550
|
+
if (list2) {
|
|
56551
|
+
removeIfEmpty(list2);
|
|
56552
|
+
}
|
|
56541
56553
|
}
|
|
56542
|
-
zip.file(sourcePartPath,
|
|
56554
|
+
zip.file(sourcePartPath, buildXml(doc));
|
|
56543
56555
|
}
|
|
56544
56556
|
|
|
56545
56557
|
// pptx/core/utils/tag-package.ts
|
|
@@ -56611,12 +56623,7 @@ async function writeTagCollections(zip, collections, codec) {
|
|
|
56611
56623
|
collection.rawXml = { ...collection.rawXml ?? {}, "p:tagLst": root };
|
|
56612
56624
|
zip.file(collection.path, codec.build(collection.rawXml));
|
|
56613
56625
|
await upsertTagRelationship(zip, codec, collection);
|
|
56614
|
-
await upsertTagsOwningElement(
|
|
56615
|
-
zip,
|
|
56616
|
-
codec,
|
|
56617
|
-
collection.sourcePartPath,
|
|
56618
|
-
collection.relationshipId
|
|
56619
|
-
);
|
|
56626
|
+
await upsertTagsOwningElement(zip, collection.sourcePartPath, collection.relationshipId);
|
|
56620
56627
|
writtenPaths.add(collection.path);
|
|
56621
56628
|
}
|
|
56622
56629
|
await upsertTagContentTypes(zip, codec, writtenPaths);
|
|
@@ -56625,7 +56632,7 @@ async function removeTagCollection(zip, codec, collection) {
|
|
|
56625
56632
|
if (!collection.path || !collection.sourcePartPath) {
|
|
56626
56633
|
return;
|
|
56627
56634
|
}
|
|
56628
|
-
await removeTagsOwningElement(zip,
|
|
56635
|
+
await removeTagsOwningElement(zip, collection.sourcePartPath, collection.relationshipId);
|
|
56629
56636
|
await removeTagRelationship(zip, codec, collection);
|
|
56630
56637
|
zip.remove(collection.path);
|
|
56631
56638
|
await removeTagContentTypeOverride(zip, codec, collection.path);
|
|
@@ -74053,14 +74060,13 @@ function writeLineJoin(spPr, shapeStyle, owns) {
|
|
|
74053
74060
|
}
|
|
74054
74061
|
function writeShapeStroke(spPr, shapeStyle, ctx) {
|
|
74055
74062
|
const owns = createLineStyleGate(shapeStyle);
|
|
74056
|
-
if (
|
|
74063
|
+
if (typeof shapeStyle.strokeWidth === "number" && shapeStyle.strokeWidth > 0 && owns("strokeWidth")) {
|
|
74064
|
+
ensureLineNode(spPr)["@_w"] = String(Math.round(shapeStyle.strokeWidth * ctx.emuPerPx));
|
|
74065
|
+
}
|
|
74066
|
+
if ((shapeStyle.strokeColor !== void 0 || shapeStyle.strokeFillMode === "gradient" || shapeStyle.strokeFillMode === "pattern") && // The paint still waits on the width: `writeLineFill` turns a zero width
|
|
74057
74067
|
// into `a:noFill`, so the two cannot be decided apart.
|
|
74058
74068
|
owns("strokeColor", "strokeOpacity", "strokeFillMode", "strokeWidth")) {
|
|
74059
|
-
|
|
74060
|
-
if (typeof shapeStyle.strokeWidth === "number" && shapeStyle.strokeWidth > 0 && owns("strokeWidth")) {
|
|
74061
|
-
lineNode["@_w"] = String(Math.round(shapeStyle.strokeWidth * ctx.emuPerPx));
|
|
74062
|
-
}
|
|
74063
|
-
writeLineFill(lineNode, shapeStyle, ctx.parseColor);
|
|
74069
|
+
writeLineFill(ensureLineNode(spPr), shapeStyle, ctx.parseColor);
|
|
74064
74070
|
}
|
|
74065
74071
|
if (shapeStyle.strokeDash !== void 0 && owns("strokeDash")) {
|
|
74066
74072
|
applyDrawingLineDash(ensureLineNode(spPr), shapeStyle);
|
|
@@ -74079,6 +74085,10 @@ function writeShapeStroke(spPr, shapeStyle, ctx) {
|
|
|
74079
74085
|
if (ctx.lineEffectListXml && spPr["a:ln"]) {
|
|
74080
74086
|
spPr["a:ln"]["a:effectLst"] = ctx.lineEffectListXml;
|
|
74081
74087
|
}
|
|
74088
|
+
const lineNode = spPr["a:ln"];
|
|
74089
|
+
if (lineNode && typeof lineNode === "object" && !Array.isArray(lineNode)) {
|
|
74090
|
+
spPr["a:ln"] = reorderObjectKeysByLocalName(lineNode, LN_CHILD_ORDER);
|
|
74091
|
+
}
|
|
74082
74092
|
}
|
|
74083
74093
|
function writeShapeFillAndStroke(spPr, shapeStyle, ctx) {
|
|
74084
74094
|
resetSpPrFormattingForStyleMatrix(spPr, shapeStyle);
|
|
@@ -78832,20 +78842,6 @@ var BORDER_SIDE_ORDER = [
|
|
|
78832
78842
|
"a:tl2br",
|
|
78833
78843
|
"a:tr2bl"
|
|
78834
78844
|
];
|
|
78835
|
-
var LN_CHILD_ORDER = [
|
|
78836
|
-
"a:noFill",
|
|
78837
|
-
"a:solidFill",
|
|
78838
|
-
"a:gradFill",
|
|
78839
|
-
"a:pattFill",
|
|
78840
|
-
"a:prstDash",
|
|
78841
|
-
"a:custDash",
|
|
78842
|
-
"a:round",
|
|
78843
|
-
"a:bevel",
|
|
78844
|
-
"a:miter",
|
|
78845
|
-
"a:headEnd",
|
|
78846
|
-
"a:tailEnd",
|
|
78847
|
-
"a:extLst"
|
|
78848
|
-
];
|
|
78849
78845
|
var LN_FILL_KEYS = ["a:noFill", "a:solidFill", "a:gradFill", "a:pattFill"];
|
|
78850
78846
|
function mergeBorderSideXml(border, existingSide) {
|
|
78851
78847
|
const existing = existingSide && typeof existingSide === "object" && !Array.isArray(existingSide) ? existingSide : {};
|
|
@@ -96891,15 +96887,9 @@ function applyChartInputLayout(element2, input) {
|
|
|
96891
96887
|
}
|
|
96892
96888
|
}
|
|
96893
96889
|
|
|
96894
|
-
// pptx/core/builders/sdk/
|
|
96895
|
-
var
|
|
96896
|
-
|
|
96897
|
-
idCounter += 1;
|
|
96898
|
-
return `${prefix}_${Date.now().toString(36)}_${idCounter}`;
|
|
96899
|
-
}
|
|
96900
|
-
function resetIdCounter() {
|
|
96901
|
-
idCounter = 0;
|
|
96902
|
-
}
|
|
96890
|
+
// pptx/core/builders/sdk/shape-style-input.ts
|
|
96891
|
+
var DASH_UNITS_PER_WIDTH = 1e5;
|
|
96892
|
+
var MITER_UNITS_PER_RATIO = 1e5;
|
|
96903
96893
|
function mapFillToShapeStyle(fill3) {
|
|
96904
96894
|
if (!fill3) {
|
|
96905
96895
|
return {};
|
|
@@ -96915,18 +96905,24 @@ function mapFillToShapeStyle(fill3) {
|
|
|
96915
96905
|
case "gradient":
|
|
96916
96906
|
return {
|
|
96917
96907
|
fillMode: "gradient",
|
|
96918
|
-
fillGradientType: fill3.gradientType ?? "linear",
|
|
96908
|
+
fillGradientType: fill3.path ? "radial" : fill3.gradientType ?? "linear",
|
|
96919
96909
|
fillGradientAngle: fill3.angle ?? 0,
|
|
96920
96910
|
fillGradientStops: fill3.stops.map((s) => ({
|
|
96921
96911
|
color: s.color,
|
|
96922
96912
|
position: s.position,
|
|
96923
96913
|
opacity: s.opacity
|
|
96924
|
-
}))
|
|
96914
|
+
})),
|
|
96915
|
+
...fill3.path ? { fillGradientPathType: fill3.path } : {},
|
|
96916
|
+
...fill3.focus ? { fillGradientFillToRect: { ...fill3.focus } } : {},
|
|
96917
|
+
...fill3.tile ? { fillGradientTileRect: { ...fill3.tile } } : {},
|
|
96918
|
+
...fill3.scaled !== void 0 ? { fillGradientScaled: fill3.scaled } : {},
|
|
96919
|
+
...fill3.rotWithShape !== void 0 ? { fillGradientRotWithShape: fill3.rotWithShape } : {}
|
|
96925
96920
|
};
|
|
96926
96921
|
case "pattern":
|
|
96927
96922
|
return {
|
|
96928
96923
|
fillMode: "pattern",
|
|
96929
96924
|
fillPatternPreset: fill3.preset,
|
|
96925
|
+
...fill3.foreground !== void 0 ? { fillColor: fill3.foreground } : {},
|
|
96930
96926
|
fillPatternBackgroundColor: fill3.background
|
|
96931
96927
|
};
|
|
96932
96928
|
case "image":
|
|
@@ -96941,18 +96937,64 @@ function mapFillToShapeStyle(fill3) {
|
|
|
96941
96937
|
return {};
|
|
96942
96938
|
}
|
|
96943
96939
|
}
|
|
96940
|
+
function customDashSegments(lengths, width) {
|
|
96941
|
+
const values = lengths.length % 2 === 1 ? [...lengths, ...lengths] : lengths;
|
|
96942
|
+
const segments = [];
|
|
96943
|
+
for (let i = 0; i + 1 < values.length; i += 2) {
|
|
96944
|
+
segments.push({
|
|
96945
|
+
dash: Math.max(0, Math.round(values[i] / width * DASH_UNITS_PER_WIDTH)),
|
|
96946
|
+
space: Math.max(0, Math.round(values[i + 1] / width * DASH_UNITS_PER_WIDTH))
|
|
96947
|
+
});
|
|
96948
|
+
}
|
|
96949
|
+
return segments;
|
|
96950
|
+
}
|
|
96951
|
+
function mapStrokeDash(stroke) {
|
|
96952
|
+
if (!Array.isArray(stroke.dash)) {
|
|
96953
|
+
return { strokeDash: stroke.dash };
|
|
96954
|
+
}
|
|
96955
|
+
const width = stroke.width !== void 0 && stroke.width > 0 ? stroke.width : 1;
|
|
96956
|
+
return {
|
|
96957
|
+
strokeDash: "custom",
|
|
96958
|
+
customDashSegments: customDashSegments(stroke.dash, width)
|
|
96959
|
+
};
|
|
96960
|
+
}
|
|
96944
96961
|
function mapStrokeToShapeStyle(stroke) {
|
|
96945
96962
|
if (!stroke) {
|
|
96946
96963
|
return {};
|
|
96947
96964
|
}
|
|
96965
|
+
const lineJoin = stroke.join ?? (stroke.miterLimit !== void 0 ? "miter" : void 0);
|
|
96966
|
+
const miterLimit = lineJoin === "miter" ? stroke.miterLimit : void 0;
|
|
96948
96967
|
return {
|
|
96949
96968
|
strokeColor: stroke.color,
|
|
96950
96969
|
strokeWidth: stroke.width,
|
|
96951
|
-
|
|
96970
|
+
...mapStrokeDash(stroke),
|
|
96952
96971
|
strokeOpacity: stroke.opacity,
|
|
96953
|
-
lineJoin
|
|
96972
|
+
lineJoin,
|
|
96954
96973
|
lineCap: stroke.cap,
|
|
96955
|
-
...stroke.themeColorRef ? { strokeColorRef: stroke.themeColorRef } : {}
|
|
96974
|
+
...stroke.themeColorRef ? { strokeColorRef: stroke.themeColorRef } : {},
|
|
96975
|
+
...miterLimit !== void 0 ? { miterLimit: Math.round(miterLimit * MITER_UNITS_PER_RATIO) } : {},
|
|
96976
|
+
...stroke.compound ? { compoundLine: stroke.compound } : {},
|
|
96977
|
+
...stroke.align ? { lineAlignment: stroke.align } : {},
|
|
96978
|
+
...stroke.headEnd ? {
|
|
96979
|
+
connectorStartArrow: stroke.headEnd.type,
|
|
96980
|
+
connectorStartArrowWidth: stroke.headEnd.width,
|
|
96981
|
+
connectorStartArrowLength: stroke.headEnd.length
|
|
96982
|
+
} : {},
|
|
96983
|
+
...stroke.tailEnd ? {
|
|
96984
|
+
connectorEndArrow: stroke.tailEnd.type,
|
|
96985
|
+
connectorEndArrowWidth: stroke.tailEnd.width,
|
|
96986
|
+
connectorEndArrowLength: stroke.tailEnd.length
|
|
96987
|
+
} : {}
|
|
96988
|
+
};
|
|
96989
|
+
}
|
|
96990
|
+
function connectorLineEndOverride(end, type) {
|
|
96991
|
+
if (type === void 0) {
|
|
96992
|
+
return {};
|
|
96993
|
+
}
|
|
96994
|
+
return {
|
|
96995
|
+
[`connector${end}Arrow`]: type,
|
|
96996
|
+
[`connector${end}ArrowWidth`]: void 0,
|
|
96997
|
+
[`connector${end}ArrowLength`]: void 0
|
|
96956
96998
|
};
|
|
96957
96999
|
}
|
|
96958
97000
|
function mapShadowToShapeStyle(shadow) {
|
|
@@ -96967,14 +97009,74 @@ function mapShadowToShapeStyle(shadow) {
|
|
|
96967
97009
|
shadowOpacity: shadow.opacity ?? 0.4
|
|
96968
97010
|
};
|
|
96969
97011
|
}
|
|
97012
|
+
function mapInnerShadowToShapeStyle(shadow) {
|
|
97013
|
+
if (!shadow) {
|
|
97014
|
+
return {};
|
|
97015
|
+
}
|
|
97016
|
+
return {
|
|
97017
|
+
innerShadowColor: shadow.color ?? "#000000",
|
|
97018
|
+
innerShadowBlur: shadow.blur,
|
|
97019
|
+
innerShadowOffsetX: shadow.offsetX,
|
|
97020
|
+
innerShadowOffsetY: shadow.offsetY,
|
|
97021
|
+
innerShadowOpacity: shadow.opacity
|
|
97022
|
+
};
|
|
97023
|
+
}
|
|
97024
|
+
function mapGlowToShapeStyle(glow) {
|
|
97025
|
+
if (!glow) {
|
|
97026
|
+
return {};
|
|
97027
|
+
}
|
|
97028
|
+
return { glowColor: glow.color, glowRadius: glow.radius, glowOpacity: glow.opacity ?? 1 };
|
|
97029
|
+
}
|
|
97030
|
+
function mapReflectionToShapeStyle(reflection) {
|
|
97031
|
+
if (!reflection) {
|
|
97032
|
+
return {};
|
|
97033
|
+
}
|
|
97034
|
+
return {
|
|
97035
|
+
reflectionBlurRadius: reflection.blur,
|
|
97036
|
+
reflectionDistance: reflection.distance,
|
|
97037
|
+
reflectionStartOpacity: reflection.startOpacity ?? 0.5,
|
|
97038
|
+
reflectionEndOpacity: reflection.endOpacity ?? 0,
|
|
97039
|
+
reflectionEndPosition: reflection.endPosition ?? 0.9,
|
|
97040
|
+
// PowerPoint's reflection presets: a mirror image below the shape.
|
|
97041
|
+
reflectionDirection: 90,
|
|
97042
|
+
reflectionScaleY: -1e5,
|
|
97043
|
+
reflectionAlignment: "bl",
|
|
97044
|
+
reflectionRotateWithShape: false
|
|
97045
|
+
};
|
|
97046
|
+
}
|
|
96970
97047
|
function buildShapeStyle(opts) {
|
|
96971
97048
|
const parts = {
|
|
96972
97049
|
...mapFillToShapeStyle(opts.fill),
|
|
96973
97050
|
...mapStrokeToShapeStyle(opts.stroke),
|
|
96974
|
-
...mapShadowToShapeStyle(opts.shadow)
|
|
97051
|
+
...mapShadowToShapeStyle(opts.shadow),
|
|
97052
|
+
...mapInnerShadowToShapeStyle(opts.innerShadow),
|
|
97053
|
+
...mapGlowToShapeStyle(opts.glow),
|
|
97054
|
+
...opts.softEdge !== void 0 ? { softEdgeRadius: opts.softEdge } : {},
|
|
97055
|
+
...mapReflectionToShapeStyle(opts.reflection)
|
|
96975
97056
|
};
|
|
96976
97057
|
return Object.keys(parts).length > 0 ? parts : void 0;
|
|
96977
97058
|
}
|
|
97059
|
+
|
|
97060
|
+
// pptx/core/builders/sdk/ElementFactory.ts
|
|
97061
|
+
var idCounter = 0;
|
|
97062
|
+
function generateId(prefix) {
|
|
97063
|
+
idCounter += 1;
|
|
97064
|
+
return `${prefix}_${Date.now().toString(36)}_${idCounter}`;
|
|
97065
|
+
}
|
|
97066
|
+
function resetIdCounter() {
|
|
97067
|
+
idCounter = 0;
|
|
97068
|
+
}
|
|
97069
|
+
function effectInputs(options2, fill3) {
|
|
97070
|
+
return {
|
|
97071
|
+
fill: fill3,
|
|
97072
|
+
stroke: options2?.stroke,
|
|
97073
|
+
shadow: options2?.shadow,
|
|
97074
|
+
innerShadow: options2?.innerShadow,
|
|
97075
|
+
glow: options2?.glow,
|
|
97076
|
+
softEdge: options2?.softEdge,
|
|
97077
|
+
reflection: options2?.reflection
|
|
97078
|
+
};
|
|
97079
|
+
}
|
|
96978
97080
|
function mapTextStyleInput(opts) {
|
|
96979
97081
|
if (!opts) {
|
|
96980
97082
|
return {};
|
|
@@ -97086,11 +97188,7 @@ function createTextElement(text, options2) {
|
|
|
97086
97188
|
text: plainText,
|
|
97087
97189
|
textStyle: mapTextStyleInput(textStyleBase),
|
|
97088
97190
|
textSegments: buildTextSegments(text, textStyleBase),
|
|
97089
|
-
shapeStyle: buildShapeStyle(
|
|
97090
|
-
fill: options2?.fill,
|
|
97091
|
-
stroke: options2?.stroke,
|
|
97092
|
-
shadow: options2?.shadow
|
|
97093
|
-
})
|
|
97191
|
+
shapeStyle: buildShapeStyle(effectInputs(options2, options2?.fill))
|
|
97094
97192
|
};
|
|
97095
97193
|
}
|
|
97096
97194
|
function createShapeElement(shapeType, options2) {
|
|
@@ -97103,11 +97201,9 @@ function createShapeElement(shapeType, options2) {
|
|
|
97103
97201
|
opacity: options2?.opacity,
|
|
97104
97202
|
shapeType,
|
|
97105
97203
|
shapeAdjustments: options2?.adjustments,
|
|
97106
|
-
shapeStyle: buildShapeStyle(
|
|
97107
|
-
|
|
97108
|
-
|
|
97109
|
-
shadow: options2?.shadow
|
|
97110
|
-
})
|
|
97204
|
+
shapeStyle: buildShapeStyle(
|
|
97205
|
+
effectInputs(options2, options2?.fill ?? { type: "solid", color: "#4472C4" })
|
|
97206
|
+
)
|
|
97111
97207
|
};
|
|
97112
97208
|
if (options2?.text) {
|
|
97113
97209
|
el.text = options2.text;
|
|
@@ -97119,11 +97215,19 @@ function createShapeElement(shapeType, options2) {
|
|
|
97119
97215
|
function createConnectorElement(options2) {
|
|
97120
97216
|
const p = pos("connector", options2);
|
|
97121
97217
|
const connType = options2?.type === "bent" ? "bentConnector3" : options2?.type === "curved" ? "curvedConnector3" : "straightConnector1";
|
|
97218
|
+
const strokeInput = options2?.stroke;
|
|
97219
|
+
const stroke = mapStrokeToShapeStyle({
|
|
97220
|
+
...strokeInput,
|
|
97221
|
+
color: strokeInput?.color ?? "#000000",
|
|
97222
|
+
width: strokeInput?.width ?? 1
|
|
97223
|
+
});
|
|
97122
97224
|
const style = {
|
|
97123
|
-
...
|
|
97124
|
-
|
|
97125
|
-
|
|
97225
|
+
...stroke,
|
|
97226
|
+
...connectorLineEndOverride("Start", options2?.startArrow),
|
|
97227
|
+
...connectorLineEndOverride("End", options2?.endArrow)
|
|
97126
97228
|
};
|
|
97229
|
+
style.connectorStartArrow ??= "none";
|
|
97230
|
+
style.connectorEndArrow ??= "none";
|
|
97127
97231
|
if (options2?.from) {
|
|
97128
97232
|
style.connectorStartConnection = {
|
|
97129
97233
|
shapeId: options2.from.elementId,
|
|
@@ -97303,9 +97407,8 @@ function createFreeformElement(pathData, options2) {
|
|
|
97303
97407
|
pathHeight,
|
|
97304
97408
|
customGeometryPaths,
|
|
97305
97409
|
shapeStyle: buildShapeStyle({
|
|
97306
|
-
|
|
97307
|
-
stroke: options2?.stroke ?? { color: "#000000", width: 2 }
|
|
97308
|
-
shadow: options2?.shadow
|
|
97410
|
+
...effectInputs(options2, options2?.fill ?? { type: "none" }),
|
|
97411
|
+
stroke: options2?.stroke ?? { color: "#000000", width: 2 }
|
|
97309
97412
|
})
|
|
97310
97413
|
};
|
|
97311
97414
|
if (options2?.text) {
|