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, themeColorRefFromColorChoice, formatAutoNumberMarker, cloneXmlObject, parseParagraphSpacingPx, parseOoxmlPercent, picturePercentage, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, orderedPathCommandEntries, ooxmlArcToSvg, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, openPptxZip, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseXml, elements, parseDataUrlToBytes, base64Decode, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, 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, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, booleanAttribute, parseDrawingColorIn, drawingColorXml, applyDiagramRelationshipIds, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, customGeometryPathsToXml, ensureArrayValue, lookupPresetShape, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, restorePathListCommandOrder, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, mergeSmartArtPointXml, mergeSmartArtConnectionXml, applySmartArtLayoutDefinition, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, DEFAULT_ROW_HEIGHT_EMU, createDefaultXmlCell, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, tableCellTextBodyMatches, 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, themeColorRefFromColorChoice, formatAutoNumberMarker, cloneXmlObject, parseParagraphSpacingPx, parseOoxmlPercent, picturePercentage, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, orderedPathCommandEntries, ooxmlArcToSvg, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, openPptxZip, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseXml, elements, parseDataUrlToBytes, base64Decode, 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, ensureXmlChild, 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, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, booleanAttribute, parseDrawingColorIn, drawingColorXml, applyDiagramRelationshipIds, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, customGeometryPathsToXml, ensureArrayValue, lookupPresetShape, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, restorePathListCommandOrder, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, mergeSmartArtPointXml, mergeSmartArtConnectionXml, applySmartArtLayoutDefinition, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, DEFAULT_ROW_HEIGHT_EMU, createDefaultXmlCell, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, relAttr, tableCellTextBodyMatches, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, openZip, attr, parseDrawingEffects, drawingEffectsXml, readChartManualLayoutValues, buildEffectDagTreeFromXml, resolveDrawingColor, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, readPictureEffect, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, detectStrictConformance, normalizeStrictXml, relayoutSmartArt, patchDrawingColorIn, themeColorRefToSolidFillWithOpacity, FONT_ADVANCE_TABLES, DEFAULT_FONT_ADVANCE_TABLE, measureTextWidth, applyDrawingColorTransforms, applyThemeToData, detectFileFormat, parseOle2, EncryptedFileError, decryptPptx, encryptPptx, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, encodeXmlAttributeValue, encodeXmlTextValue, svgToCustomGeometryPaths, IncorrectPasswordError, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, supportsChartGradientFill, DEFAULT_CHART_GRADIENT_ANGLE, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, stripXmlOrderMarkers, 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, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, deriveSlideTitles, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, cloneSlide, parseDrawingFraction, scrgbLinearToSrgb8, parseDrawingHueDegrees, hslToRgb, themeColorRefToXml, effectChild, mergeEffectNode, mergeAttributeEffectNode, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, estimateMediaDurationMs, parseVmlElements, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, formatSchemeKey, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, guardZip, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, themeColorRefFromSchemeClr, ZipBombError, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, blendColorOntoWhite } from './chunk-O7SVHLD7.mjs';
|
|
2
2
|
import { hasShapeProperties, hasTextProperties } from './chunk-GXHKNSZX.mjs';
|
|
3
3
|
import { EMU_PER_PX, EMU_PER_PIXEL, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, OOXML_PERCENT_UNITS, EMU_PER_POINT } from './chunk-CA7KCNL3.mjs';
|
|
4
4
|
import JSZip2 from 'jszip';
|
|
@@ -2403,7 +2403,8 @@ var ConnectorXmlFactory = class {
|
|
|
2403
2403
|
const { element: element2 } = init;
|
|
2404
2404
|
const geometry = element2.shapeType && element2.shapeType !== "line" ? this.context.normalizePresetGeometry(element2.shapeType) : "straightConnector1";
|
|
2405
2405
|
const strokeColor = element2.shapeStyle?.strokeColor || "#1F2937";
|
|
2406
|
-
const
|
|
2406
|
+
const requestedWidth = element2.shapeStyle?.strokeWidth;
|
|
2407
|
+
const strokeWidth = requestedWidth !== void 0 && requestedWidth > 0 ? requestedWidth : 1;
|
|
2407
2408
|
const lineNode = {
|
|
2408
2409
|
"@_w": String(Math.round(strokeWidth * this.context.emuPerPx))
|
|
2409
2410
|
};
|
|
@@ -6519,6 +6520,7 @@ function buildReflectionXml(style, context) {
|
|
|
6519
6520
|
const numericValues = [
|
|
6520
6521
|
style.reflectionBlurRadius,
|
|
6521
6522
|
style.reflectionStartOpacity,
|
|
6523
|
+
style.reflectionEndOpacity,
|
|
6522
6524
|
style.reflectionDistance
|
|
6523
6525
|
];
|
|
6524
6526
|
if (!numericValues.some((value) => typeof value === "number" && Number.isFinite(value) && value > 0)) {
|
|
@@ -57001,6 +57003,50 @@ function rebuildShowProperties(existingShowPr, properties) {
|
|
|
57001
57003
|
return result;
|
|
57002
57004
|
}
|
|
57003
57005
|
|
|
57006
|
+
// pptx/core/utils/cust-data-list-dom.ts
|
|
57007
|
+
var CSLD_ROOTS = /* @__PURE__ */ new Set(["sld", "notes", "sldLayout", "sldMaster", "handoutMaster"]);
|
|
57008
|
+
var PRESENTATION_INSERT_BEFORE = /* @__PURE__ */ new Set([
|
|
57009
|
+
"kinsoku",
|
|
57010
|
+
"defaultTextStyle",
|
|
57011
|
+
"modifyVerifier",
|
|
57012
|
+
"extLst"
|
|
57013
|
+
]);
|
|
57014
|
+
var CSLD_INSERT_BEFORE = /* @__PURE__ */ new Set(["controls", "extLst"]);
|
|
57015
|
+
function custDataContainer(doc) {
|
|
57016
|
+
const root = doc.documentElement;
|
|
57017
|
+
if (!root || root.namespaceURI !== NS.p) {
|
|
57018
|
+
return void 0;
|
|
57019
|
+
}
|
|
57020
|
+
if (root.localName === "presentation") {
|
|
57021
|
+
return root;
|
|
57022
|
+
}
|
|
57023
|
+
return CSLD_ROOTS.has(root.localName) ? first(root, "cSld", NS.p) : void 0;
|
|
57024
|
+
}
|
|
57025
|
+
function createPresentationElement(doc, container, local) {
|
|
57026
|
+
return doc.createElementNS(NS.p, container.prefix ? `${container.prefix}:${local}` : local);
|
|
57027
|
+
}
|
|
57028
|
+
function ensureCustDataList(doc, container) {
|
|
57029
|
+
const existing = first(container, "custDataLst", NS.p);
|
|
57030
|
+
if (existing) {
|
|
57031
|
+
return existing;
|
|
57032
|
+
}
|
|
57033
|
+
const insertBefore4 = container.localName === "presentation" ? PRESENTATION_INSERT_BEFORE : CSLD_INSERT_BEFORE;
|
|
57034
|
+
const list2 = createPresentationElement(doc, container, "custDataLst");
|
|
57035
|
+
const before = elements(container).find(
|
|
57036
|
+
(child17) => child17.namespaceURI === NS.p && insertBefore4.has(child17.localName)
|
|
57037
|
+
);
|
|
57038
|
+
container.insertBefore(list2, before ?? null);
|
|
57039
|
+
return list2;
|
|
57040
|
+
}
|
|
57041
|
+
function listChildren(list2, local) {
|
|
57042
|
+
return elements(list2).filter((child17) => child17.namespaceURI === NS.p && child17.localName === local);
|
|
57043
|
+
}
|
|
57044
|
+
function removeIfEmpty(list2) {
|
|
57045
|
+
if (elements(list2).length === 0) {
|
|
57046
|
+
list2.parentNode?.removeChild(list2);
|
|
57047
|
+
}
|
|
57048
|
+
}
|
|
57049
|
+
|
|
57004
57050
|
// pptx/core/utils/customer-data-package.ts
|
|
57005
57051
|
var CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml";
|
|
57006
57052
|
var DEFAULT_CONTENT_TYPE = "application/xml";
|
|
@@ -57012,9 +57058,9 @@ async function writeCustomerDataScopes(zip, scopes, codec) {
|
|
|
57012
57058
|
if (!sourceXml) {
|
|
57013
57059
|
continue;
|
|
57014
57060
|
}
|
|
57015
|
-
const
|
|
57016
|
-
const container =
|
|
57017
|
-
if (!container) {
|
|
57061
|
+
const sourceDoc = parseXml(sourceXml, { label: scope.sourcePartPath });
|
|
57062
|
+
const container = custDataContainer(sourceDoc);
|
|
57063
|
+
if (!container || !matchesLocation(container, scope.location)) {
|
|
57018
57064
|
continue;
|
|
57019
57065
|
}
|
|
57020
57066
|
const relsPath2 = relsForSourcePart(scope.sourcePartPath);
|
|
@@ -57049,12 +57095,10 @@ async function writeCustomerDataScopes(zip, scopes, codec) {
|
|
|
57049
57095
|
authoredEntries.push(rawEntry);
|
|
57050
57096
|
contentTypes2.set(path3, entry2.contentType);
|
|
57051
57097
|
}
|
|
57052
|
-
|
|
57053
|
-
existingList["p:custData"] = authoredEntries;
|
|
57054
|
-
placeCustomerDataList(container, existingList, scope.location);
|
|
57098
|
+
replaceCustomerDataEntries(sourceDoc, container, authoredEntries, codec);
|
|
57055
57099
|
relsRoot["Relationship"] = relationships2;
|
|
57056
57100
|
zip.file(relsPath2, codec.build(relsData));
|
|
57057
|
-
zip.file(scope.sourcePartPath,
|
|
57101
|
+
zip.file(scope.sourcePartPath, buildXml(sourceDoc));
|
|
57058
57102
|
}
|
|
57059
57103
|
await upsertContentTypes(zip, codec, contentTypes2);
|
|
57060
57104
|
}
|
|
@@ -57076,12 +57120,9 @@ async function resolveContentType(zip, codec, path3) {
|
|
|
57076
57120
|
);
|
|
57077
57121
|
return fallback?.["@_ContentType"] ? String(fallback["@_ContentType"]) : void 0;
|
|
57078
57122
|
}
|
|
57079
|
-
function
|
|
57080
|
-
|
|
57081
|
-
|
|
57082
|
-
}
|
|
57083
|
-
const slide = data["p:sld"];
|
|
57084
|
-
return slide?.["p:cSld"];
|
|
57123
|
+
function matchesLocation(container, location) {
|
|
57124
|
+
const rootName = container.ownerDocument?.documentElement?.localName;
|
|
57125
|
+
return rootName === (location === "presentation" ? "presentation" : "sld");
|
|
57085
57126
|
}
|
|
57086
57127
|
function upsertRelationship(relationships2, entry2, target) {
|
|
57087
57128
|
let relationship2 = relationships2.find(
|
|
@@ -57101,27 +57142,27 @@ function upsertRelationship(relationships2, entry2, target) {
|
|
|
57101
57142
|
function isCustomXmlRelationship(value) {
|
|
57102
57143
|
return String(value ?? "").endsWith("/relationships/customXml");
|
|
57103
57144
|
}
|
|
57104
|
-
function
|
|
57105
|
-
const
|
|
57106
|
-
const
|
|
57107
|
-
|
|
57108
|
-
for (const [key2, value] of Object.entries(container)) {
|
|
57109
|
-
if (key2 === "p:custDataLst") {
|
|
57110
|
-
continue;
|
|
57111
|
-
}
|
|
57112
|
-
if (!inserted && insertBefore4.has(key2)) {
|
|
57113
|
-
rebuilt["p:custDataLst"] = list2;
|
|
57114
|
-
inserted = true;
|
|
57115
|
-
}
|
|
57116
|
-
rebuilt[key2] = value;
|
|
57145
|
+
function replaceCustomerDataEntries(doc, container, entries, codec) {
|
|
57146
|
+
const list2 = ensureCustDataList(doc, container);
|
|
57147
|
+
for (const stale of listChildren(list2, "custData")) {
|
|
57148
|
+
list2.removeChild(stale);
|
|
57117
57149
|
}
|
|
57118
|
-
|
|
57119
|
-
|
|
57120
|
-
|
|
57121
|
-
for (const key2 of Object.keys(container)) {
|
|
57122
|
-
delete container[key2];
|
|
57150
|
+
const anchor = listChildren(list2, "tags")[0] ?? null;
|
|
57151
|
+
for (const entry2 of entries) {
|
|
57152
|
+
list2.insertBefore(customerDataElement(doc, entry2, codec), anchor);
|
|
57123
57153
|
}
|
|
57124
|
-
|
|
57154
|
+
removeIfEmpty(list2);
|
|
57155
|
+
}
|
|
57156
|
+
function customerDataElement(doc, entry2, codec) {
|
|
57157
|
+
const root = doc.documentElement;
|
|
57158
|
+
const declarations = Array.from(root.attributes).filter((attribute2) => attribute2.name === "xmlns" || attribute2.name.startsWith("xmlns:")).map((attribute2) => `${attribute2.name}="${attribute2.value}"`).join(" ");
|
|
57159
|
+
const fragment = parseXml(
|
|
57160
|
+
`<wrap ${declarations}>${codec.build({ "p:custData": entry2 })}</wrap>`,
|
|
57161
|
+
{
|
|
57162
|
+
label: "p:custData"
|
|
57163
|
+
}
|
|
57164
|
+
);
|
|
57165
|
+
return doc.importNode(fragment.documentElement.firstChild, true);
|
|
57125
57166
|
}
|
|
57126
57167
|
async function upsertContentTypes(zip, codec, contentTypes2) {
|
|
57127
57168
|
const xml = await zip.file("[Content_Types].xml")?.async("string");
|
|
@@ -57175,84 +57216,55 @@ function ensureArray9(value) {
|
|
|
57175
57216
|
}
|
|
57176
57217
|
|
|
57177
57218
|
// pptx/core/utils/tag-package-owning-element.ts
|
|
57178
|
-
|
|
57179
|
-
|
|
57180
|
-
"p:kinsoku",
|
|
57181
|
-
"p:defaultTextStyle",
|
|
57182
|
-
"p:modifyVerifier",
|
|
57183
|
-
"p:extLst"
|
|
57184
|
-
]);
|
|
57185
|
-
var CSLD_INSERT_BEFORE = /* @__PURE__ */ new Set(["p:controls", "p:extLst"]);
|
|
57186
|
-
function resolveTagsContainer(data) {
|
|
57187
|
-
const presentation = data["p:presentation"];
|
|
57188
|
-
if (presentation) {
|
|
57189
|
-
return { container: presentation, insertBefore: PRESENTATION_INSERT_BEFORE };
|
|
57190
|
-
}
|
|
57191
|
-
for (const rootKey of CSLD_ROOTS) {
|
|
57192
|
-
const root = data[rootKey];
|
|
57193
|
-
if (root) {
|
|
57194
|
-
const cSld = root["p:cSld"] ??= {};
|
|
57195
|
-
return { container: cSld, insertBefore: CSLD_INSERT_BEFORE };
|
|
57196
|
-
}
|
|
57197
|
-
}
|
|
57198
|
-
return void 0;
|
|
57219
|
+
function tagsElements(doc) {
|
|
57220
|
+
return Array.from(doc.getElementsByTagNameNS(NS.p, "tags"));
|
|
57199
57221
|
}
|
|
57200
|
-
function
|
|
57201
|
-
|
|
57202
|
-
let inserted = false;
|
|
57203
|
-
for (const [childKey2, childValue] of Object.entries(container)) {
|
|
57204
|
-
if (childKey2 === key2) {
|
|
57205
|
-
continue;
|
|
57206
|
-
}
|
|
57207
|
-
if (!inserted && insertBefore4.has(childKey2)) {
|
|
57208
|
-
rebuilt[key2] = value;
|
|
57209
|
-
inserted = true;
|
|
57210
|
-
}
|
|
57211
|
-
rebuilt[childKey2] = childValue;
|
|
57212
|
-
}
|
|
57213
|
-
if (!inserted) {
|
|
57214
|
-
rebuilt[key2] = value;
|
|
57215
|
-
}
|
|
57216
|
-
for (const existingKey of Object.keys(container)) {
|
|
57217
|
-
delete container[existingKey];
|
|
57218
|
-
}
|
|
57219
|
-
Object.assign(container, rebuilt);
|
|
57222
|
+
function mentionsTagsId(xml, relationshipId) {
|
|
57223
|
+
return xml.includes("tags") && xml.includes(`"${relationshipId}"`);
|
|
57220
57224
|
}
|
|
57221
|
-
async function upsertTagsOwningElement(zip,
|
|
57225
|
+
async function upsertTagsOwningElement(zip, sourcePartPath, relationshipId) {
|
|
57222
57226
|
const xml = await zip.file(sourcePartPath)?.async("string");
|
|
57223
57227
|
if (!xml) {
|
|
57224
57228
|
return;
|
|
57225
57229
|
}
|
|
57226
|
-
const
|
|
57227
|
-
|
|
57228
|
-
if (!resolved) {
|
|
57230
|
+
const doc = parseXml(xml, { label: sourcePartPath });
|
|
57231
|
+
if (mentionsTagsId(xml, relationshipId) && tagsElements(doc).some((tags2) => relAttr(tags2, "id") === relationshipId)) {
|
|
57229
57232
|
return;
|
|
57230
57233
|
}
|
|
57231
|
-
const
|
|
57232
|
-
|
|
57233
|
-
list2["p:tags"] = { "@_r:id": relationshipId };
|
|
57234
|
-
placeAtKey(container, "p:custDataLst", list2, insertBefore4);
|
|
57235
|
-
zip.file(sourcePartPath, codec.build(data));
|
|
57236
|
-
}
|
|
57237
|
-
async function removeTagsOwningElement(zip, codec, sourcePartPath) {
|
|
57238
|
-
const xml = await zip.file(sourcePartPath)?.async("string");
|
|
57239
|
-
if (!xml) {
|
|
57234
|
+
const container = custDataContainer(doc);
|
|
57235
|
+
if (!container) {
|
|
57240
57236
|
return;
|
|
57241
57237
|
}
|
|
57242
|
-
const
|
|
57243
|
-
const
|
|
57244
|
-
|
|
57238
|
+
const list2 = ensureCustDataList(doc, container);
|
|
57239
|
+
for (const stale of listChildren(list2, "tags")) {
|
|
57240
|
+
list2.removeChild(stale);
|
|
57241
|
+
}
|
|
57242
|
+
const tags = createPresentationElement(doc, container, "tags");
|
|
57243
|
+
tags.setAttributeNS(NS.r, "r:id", relationshipId);
|
|
57244
|
+
list2.appendChild(tags);
|
|
57245
|
+
zip.file(sourcePartPath, buildXml(doc));
|
|
57246
|
+
}
|
|
57247
|
+
async function removeTagsOwningElement(zip, sourcePartPath, relationshipId) {
|
|
57248
|
+
const xml = await zip.file(sourcePartPath)?.async("string");
|
|
57249
|
+
if (!xml || relationshipId !== void 0 && !mentionsTagsId(xml, relationshipId)) {
|
|
57245
57250
|
return;
|
|
57246
57251
|
}
|
|
57247
|
-
const
|
|
57248
|
-
|
|
57252
|
+
const doc = parseXml(xml, { label: sourcePartPath });
|
|
57253
|
+
const container = custDataContainer(doc);
|
|
57254
|
+
const owned = tagsElements(doc).filter(
|
|
57255
|
+
(tags) => relationshipId === void 0 ? tags.parentNode?.parentNode === container : relAttr(tags, "id") === relationshipId
|
|
57256
|
+
);
|
|
57257
|
+
if (owned.length === 0) {
|
|
57249
57258
|
return;
|
|
57250
57259
|
}
|
|
57251
|
-
|
|
57252
|
-
|
|
57253
|
-
|
|
57260
|
+
for (const tags of owned) {
|
|
57261
|
+
const list2 = tags.parentNode;
|
|
57262
|
+
list2?.removeChild(tags);
|
|
57263
|
+
if (list2) {
|
|
57264
|
+
removeIfEmpty(list2);
|
|
57265
|
+
}
|
|
57254
57266
|
}
|
|
57255
|
-
zip.file(sourcePartPath,
|
|
57267
|
+
zip.file(sourcePartPath, buildXml(doc));
|
|
57256
57268
|
}
|
|
57257
57269
|
|
|
57258
57270
|
// pptx/core/utils/tag-package.ts
|
|
@@ -57324,12 +57336,7 @@ async function writeTagCollections(zip, collections, codec) {
|
|
|
57324
57336
|
collection.rawXml = { ...collection.rawXml ?? {}, "p:tagLst": root };
|
|
57325
57337
|
zip.file(collection.path, codec.build(collection.rawXml));
|
|
57326
57338
|
await upsertTagRelationship(zip, codec, collection);
|
|
57327
|
-
await upsertTagsOwningElement(
|
|
57328
|
-
zip,
|
|
57329
|
-
codec,
|
|
57330
|
-
collection.sourcePartPath,
|
|
57331
|
-
collection.relationshipId
|
|
57332
|
-
);
|
|
57339
|
+
await upsertTagsOwningElement(zip, collection.sourcePartPath, collection.relationshipId);
|
|
57333
57340
|
writtenPaths.add(collection.path);
|
|
57334
57341
|
}
|
|
57335
57342
|
await upsertTagContentTypes(zip, codec, writtenPaths);
|
|
@@ -57338,7 +57345,7 @@ async function removeTagCollection(zip, codec, collection) {
|
|
|
57338
57345
|
if (!collection.path || !collection.sourcePartPath) {
|
|
57339
57346
|
return;
|
|
57340
57347
|
}
|
|
57341
|
-
await removeTagsOwningElement(zip,
|
|
57348
|
+
await removeTagsOwningElement(zip, collection.sourcePartPath, collection.relationshipId);
|
|
57342
57349
|
await removeTagRelationship(zip, codec, collection);
|
|
57343
57350
|
zip.remove(collection.path);
|
|
57344
57351
|
await removeTagContentTypeOverride(zip, codec, collection.path);
|
|
@@ -75136,14 +75143,13 @@ function writeLineJoin(spPr, shapeStyle, owns) {
|
|
|
75136
75143
|
}
|
|
75137
75144
|
function writeShapeStroke(spPr, shapeStyle, ctx) {
|
|
75138
75145
|
const owns = createLineStyleGate(shapeStyle);
|
|
75139
|
-
if (
|
|
75146
|
+
if (typeof shapeStyle.strokeWidth === "number" && shapeStyle.strokeWidth > 0 && owns("strokeWidth")) {
|
|
75147
|
+
ensureLineNode(spPr)["@_w"] = String(Math.round(shapeStyle.strokeWidth * ctx.emuPerPx));
|
|
75148
|
+
}
|
|
75149
|
+
if ((shapeStyle.strokeColor !== void 0 || shapeStyle.strokeFillMode === "gradient" || shapeStyle.strokeFillMode === "pattern") && // The paint still waits on the width: `writeLineFill` turns a zero width
|
|
75140
75150
|
// into `a:noFill`, so the two cannot be decided apart.
|
|
75141
75151
|
owns("strokeColor", "strokeOpacity", "strokeFillMode", "strokeWidth")) {
|
|
75142
|
-
|
|
75143
|
-
if (typeof shapeStyle.strokeWidth === "number" && shapeStyle.strokeWidth > 0 && owns("strokeWidth")) {
|
|
75144
|
-
lineNode["@_w"] = String(Math.round(shapeStyle.strokeWidth * ctx.emuPerPx));
|
|
75145
|
-
}
|
|
75146
|
-
writeLineFill(lineNode, shapeStyle, ctx.parseColor);
|
|
75152
|
+
writeLineFill(ensureLineNode(spPr), shapeStyle, ctx.parseColor);
|
|
75147
75153
|
}
|
|
75148
75154
|
if (shapeStyle.strokeDash !== void 0 && owns("strokeDash")) {
|
|
75149
75155
|
applyDrawingLineDash(ensureLineNode(spPr), shapeStyle);
|
|
@@ -75162,6 +75168,10 @@ function writeShapeStroke(spPr, shapeStyle, ctx) {
|
|
|
75162
75168
|
if (ctx.lineEffectListXml && spPr["a:ln"]) {
|
|
75163
75169
|
spPr["a:ln"]["a:effectLst"] = ctx.lineEffectListXml;
|
|
75164
75170
|
}
|
|
75171
|
+
const lineNode = spPr["a:ln"];
|
|
75172
|
+
if (lineNode && typeof lineNode === "object" && !Array.isArray(lineNode)) {
|
|
75173
|
+
spPr["a:ln"] = reorderObjectKeysByLocalName(lineNode, LN_CHILD_ORDER);
|
|
75174
|
+
}
|
|
75165
75175
|
}
|
|
75166
75176
|
function writeShapeFillAndStroke(spPr, shapeStyle, ctx) {
|
|
75167
75177
|
resetSpPrFormattingForStyleMatrix(spPr, shapeStyle);
|
|
@@ -79915,20 +79925,6 @@ var BORDER_SIDE_ORDER = [
|
|
|
79915
79925
|
"a:tl2br",
|
|
79916
79926
|
"a:tr2bl"
|
|
79917
79927
|
];
|
|
79918
|
-
var LN_CHILD_ORDER = [
|
|
79919
|
-
"a:noFill",
|
|
79920
|
-
"a:solidFill",
|
|
79921
|
-
"a:gradFill",
|
|
79922
|
-
"a:pattFill",
|
|
79923
|
-
"a:prstDash",
|
|
79924
|
-
"a:custDash",
|
|
79925
|
-
"a:round",
|
|
79926
|
-
"a:bevel",
|
|
79927
|
-
"a:miter",
|
|
79928
|
-
"a:headEnd",
|
|
79929
|
-
"a:tailEnd",
|
|
79930
|
-
"a:extLst"
|
|
79931
|
-
];
|
|
79932
79928
|
var LN_FILL_KEYS = ["a:noFill", "a:solidFill", "a:gradFill", "a:pattFill"];
|
|
79933
79929
|
function mergeBorderSideXml(border, existingSide) {
|
|
79934
79930
|
const existing = existingSide && typeof existingSide === "object" && !Array.isArray(existingSide) ? existingSide : {};
|
|
@@ -97472,12 +97468,9 @@ function applyChartInputLayout(element2, input) {
|
|
|
97472
97468
|
}
|
|
97473
97469
|
}
|
|
97474
97470
|
|
|
97475
|
-
// pptx/core/builders/sdk/
|
|
97476
|
-
var
|
|
97477
|
-
|
|
97478
|
-
idCounter += 1;
|
|
97479
|
-
return `${prefix}_${Date.now().toString(36)}_${idCounter}`;
|
|
97480
|
-
}
|
|
97471
|
+
// pptx/core/builders/sdk/shape-style-input.ts
|
|
97472
|
+
var DASH_UNITS_PER_WIDTH = 1e5;
|
|
97473
|
+
var MITER_UNITS_PER_RATIO = 1e5;
|
|
97481
97474
|
function mapFillToShapeStyle(fill3) {
|
|
97482
97475
|
if (!fill3) {
|
|
97483
97476
|
return {};
|
|
@@ -97493,18 +97486,24 @@ function mapFillToShapeStyle(fill3) {
|
|
|
97493
97486
|
case "gradient":
|
|
97494
97487
|
return {
|
|
97495
97488
|
fillMode: "gradient",
|
|
97496
|
-
fillGradientType: fill3.gradientType ?? "linear",
|
|
97489
|
+
fillGradientType: fill3.path ? "radial" : fill3.gradientType ?? "linear",
|
|
97497
97490
|
fillGradientAngle: fill3.angle ?? 0,
|
|
97498
97491
|
fillGradientStops: fill3.stops.map((s) => ({
|
|
97499
97492
|
color: s.color,
|
|
97500
97493
|
position: s.position,
|
|
97501
97494
|
opacity: s.opacity
|
|
97502
|
-
}))
|
|
97495
|
+
})),
|
|
97496
|
+
...fill3.path ? { fillGradientPathType: fill3.path } : {},
|
|
97497
|
+
...fill3.focus ? { fillGradientFillToRect: { ...fill3.focus } } : {},
|
|
97498
|
+
...fill3.tile ? { fillGradientTileRect: { ...fill3.tile } } : {},
|
|
97499
|
+
...fill3.scaled !== void 0 ? { fillGradientScaled: fill3.scaled } : {},
|
|
97500
|
+
...fill3.rotWithShape !== void 0 ? { fillGradientRotWithShape: fill3.rotWithShape } : {}
|
|
97503
97501
|
};
|
|
97504
97502
|
case "pattern":
|
|
97505
97503
|
return {
|
|
97506
97504
|
fillMode: "pattern",
|
|
97507
97505
|
fillPatternPreset: fill3.preset,
|
|
97506
|
+
...fill3.foreground !== void 0 ? { fillColor: fill3.foreground } : {},
|
|
97508
97507
|
fillPatternBackgroundColor: fill3.background
|
|
97509
97508
|
};
|
|
97510
97509
|
case "image":
|
|
@@ -97519,18 +97518,64 @@ function mapFillToShapeStyle(fill3) {
|
|
|
97519
97518
|
return {};
|
|
97520
97519
|
}
|
|
97521
97520
|
}
|
|
97521
|
+
function customDashSegments(lengths, width) {
|
|
97522
|
+
const values = lengths.length % 2 === 1 ? [...lengths, ...lengths] : lengths;
|
|
97523
|
+
const segments = [];
|
|
97524
|
+
for (let i = 0; i + 1 < values.length; i += 2) {
|
|
97525
|
+
segments.push({
|
|
97526
|
+
dash: Math.max(0, Math.round(values[i] / width * DASH_UNITS_PER_WIDTH)),
|
|
97527
|
+
space: Math.max(0, Math.round(values[i + 1] / width * DASH_UNITS_PER_WIDTH))
|
|
97528
|
+
});
|
|
97529
|
+
}
|
|
97530
|
+
return segments;
|
|
97531
|
+
}
|
|
97532
|
+
function mapStrokeDash(stroke) {
|
|
97533
|
+
if (!Array.isArray(stroke.dash)) {
|
|
97534
|
+
return { strokeDash: stroke.dash };
|
|
97535
|
+
}
|
|
97536
|
+
const width = stroke.width !== void 0 && stroke.width > 0 ? stroke.width : 1;
|
|
97537
|
+
return {
|
|
97538
|
+
strokeDash: "custom",
|
|
97539
|
+
customDashSegments: customDashSegments(stroke.dash, width)
|
|
97540
|
+
};
|
|
97541
|
+
}
|
|
97522
97542
|
function mapStrokeToShapeStyle(stroke) {
|
|
97523
97543
|
if (!stroke) {
|
|
97524
97544
|
return {};
|
|
97525
97545
|
}
|
|
97546
|
+
const lineJoin = stroke.join ?? (stroke.miterLimit !== void 0 ? "miter" : void 0);
|
|
97547
|
+
const miterLimit = lineJoin === "miter" ? stroke.miterLimit : void 0;
|
|
97526
97548
|
return {
|
|
97527
97549
|
strokeColor: stroke.color,
|
|
97528
97550
|
strokeWidth: stroke.width,
|
|
97529
|
-
|
|
97551
|
+
...mapStrokeDash(stroke),
|
|
97530
97552
|
strokeOpacity: stroke.opacity,
|
|
97531
|
-
lineJoin
|
|
97553
|
+
lineJoin,
|
|
97532
97554
|
lineCap: stroke.cap,
|
|
97533
|
-
...stroke.themeColorRef ? { strokeColorRef: stroke.themeColorRef } : {}
|
|
97555
|
+
...stroke.themeColorRef ? { strokeColorRef: stroke.themeColorRef } : {},
|
|
97556
|
+
...miterLimit !== void 0 ? { miterLimit: Math.round(miterLimit * MITER_UNITS_PER_RATIO) } : {},
|
|
97557
|
+
...stroke.compound ? { compoundLine: stroke.compound } : {},
|
|
97558
|
+
...stroke.align ? { lineAlignment: stroke.align } : {},
|
|
97559
|
+
...stroke.headEnd ? {
|
|
97560
|
+
connectorStartArrow: stroke.headEnd.type,
|
|
97561
|
+
connectorStartArrowWidth: stroke.headEnd.width,
|
|
97562
|
+
connectorStartArrowLength: stroke.headEnd.length
|
|
97563
|
+
} : {},
|
|
97564
|
+
...stroke.tailEnd ? {
|
|
97565
|
+
connectorEndArrow: stroke.tailEnd.type,
|
|
97566
|
+
connectorEndArrowWidth: stroke.tailEnd.width,
|
|
97567
|
+
connectorEndArrowLength: stroke.tailEnd.length
|
|
97568
|
+
} : {}
|
|
97569
|
+
};
|
|
97570
|
+
}
|
|
97571
|
+
function connectorLineEndOverride(end, type) {
|
|
97572
|
+
if (type === void 0) {
|
|
97573
|
+
return {};
|
|
97574
|
+
}
|
|
97575
|
+
return {
|
|
97576
|
+
[`connector${end}Arrow`]: type,
|
|
97577
|
+
[`connector${end}ArrowWidth`]: void 0,
|
|
97578
|
+
[`connector${end}ArrowLength`]: void 0
|
|
97534
97579
|
};
|
|
97535
97580
|
}
|
|
97536
97581
|
function mapShadowToShapeStyle(shadow) {
|
|
@@ -97545,14 +97590,71 @@ function mapShadowToShapeStyle(shadow) {
|
|
|
97545
97590
|
shadowOpacity: shadow.opacity ?? 0.4
|
|
97546
97591
|
};
|
|
97547
97592
|
}
|
|
97593
|
+
function mapInnerShadowToShapeStyle(shadow) {
|
|
97594
|
+
if (!shadow) {
|
|
97595
|
+
return {};
|
|
97596
|
+
}
|
|
97597
|
+
return {
|
|
97598
|
+
innerShadowColor: shadow.color ?? "#000000",
|
|
97599
|
+
innerShadowBlur: shadow.blur,
|
|
97600
|
+
innerShadowOffsetX: shadow.offsetX,
|
|
97601
|
+
innerShadowOffsetY: shadow.offsetY,
|
|
97602
|
+
innerShadowOpacity: shadow.opacity
|
|
97603
|
+
};
|
|
97604
|
+
}
|
|
97605
|
+
function mapGlowToShapeStyle(glow) {
|
|
97606
|
+
if (!glow) {
|
|
97607
|
+
return {};
|
|
97608
|
+
}
|
|
97609
|
+
return { glowColor: glow.color, glowRadius: glow.radius, glowOpacity: glow.opacity ?? 1 };
|
|
97610
|
+
}
|
|
97611
|
+
function mapReflectionToShapeStyle(reflection) {
|
|
97612
|
+
if (!reflection) {
|
|
97613
|
+
return {};
|
|
97614
|
+
}
|
|
97615
|
+
return {
|
|
97616
|
+
reflectionBlurRadius: reflection.blur,
|
|
97617
|
+
reflectionDistance: reflection.distance,
|
|
97618
|
+
reflectionStartOpacity: reflection.startOpacity ?? 0.5,
|
|
97619
|
+
reflectionEndOpacity: reflection.endOpacity ?? 0,
|
|
97620
|
+
reflectionEndPosition: reflection.endPosition ?? 0.9,
|
|
97621
|
+
// PowerPoint's reflection presets: a mirror image below the shape.
|
|
97622
|
+
reflectionDirection: 90,
|
|
97623
|
+
reflectionScaleY: -1e5,
|
|
97624
|
+
reflectionAlignment: "bl",
|
|
97625
|
+
reflectionRotateWithShape: false
|
|
97626
|
+
};
|
|
97627
|
+
}
|
|
97548
97628
|
function buildShapeStyle(opts) {
|
|
97549
97629
|
const parts = {
|
|
97550
97630
|
...mapFillToShapeStyle(opts.fill),
|
|
97551
97631
|
...mapStrokeToShapeStyle(opts.stroke),
|
|
97552
|
-
...mapShadowToShapeStyle(opts.shadow)
|
|
97632
|
+
...mapShadowToShapeStyle(opts.shadow),
|
|
97633
|
+
...mapInnerShadowToShapeStyle(opts.innerShadow),
|
|
97634
|
+
...mapGlowToShapeStyle(opts.glow),
|
|
97635
|
+
...opts.softEdge !== void 0 ? { softEdgeRadius: opts.softEdge } : {},
|
|
97636
|
+
...mapReflectionToShapeStyle(opts.reflection)
|
|
97553
97637
|
};
|
|
97554
97638
|
return Object.keys(parts).length > 0 ? parts : void 0;
|
|
97555
97639
|
}
|
|
97640
|
+
|
|
97641
|
+
// pptx/core/builders/sdk/ElementFactory.ts
|
|
97642
|
+
var idCounter = 0;
|
|
97643
|
+
function generateId(prefix) {
|
|
97644
|
+
idCounter += 1;
|
|
97645
|
+
return `${prefix}_${Date.now().toString(36)}_${idCounter}`;
|
|
97646
|
+
}
|
|
97647
|
+
function effectInputs(options2, fill3) {
|
|
97648
|
+
return {
|
|
97649
|
+
fill: fill3,
|
|
97650
|
+
stroke: options2?.stroke,
|
|
97651
|
+
shadow: options2?.shadow,
|
|
97652
|
+
innerShadow: options2?.innerShadow,
|
|
97653
|
+
glow: options2?.glow,
|
|
97654
|
+
softEdge: options2?.softEdge,
|
|
97655
|
+
reflection: options2?.reflection
|
|
97656
|
+
};
|
|
97657
|
+
}
|
|
97556
97658
|
function mapTextStyleInput(opts) {
|
|
97557
97659
|
if (!opts) {
|
|
97558
97660
|
return {};
|
|
@@ -97664,11 +97766,7 @@ function createTextElement(text, options2) {
|
|
|
97664
97766
|
text: plainText,
|
|
97665
97767
|
textStyle: mapTextStyleInput(textStyleBase),
|
|
97666
97768
|
textSegments: buildTextSegments(text, textStyleBase),
|
|
97667
|
-
shapeStyle: buildShapeStyle(
|
|
97668
|
-
fill: options2?.fill,
|
|
97669
|
-
stroke: options2?.stroke,
|
|
97670
|
-
shadow: options2?.shadow
|
|
97671
|
-
})
|
|
97769
|
+
shapeStyle: buildShapeStyle(effectInputs(options2, options2?.fill))
|
|
97672
97770
|
};
|
|
97673
97771
|
}
|
|
97674
97772
|
function createShapeElement(shapeType, options2) {
|
|
@@ -97681,11 +97779,9 @@ function createShapeElement(shapeType, options2) {
|
|
|
97681
97779
|
opacity: options2?.opacity,
|
|
97682
97780
|
shapeType,
|
|
97683
97781
|
shapeAdjustments: options2?.adjustments,
|
|
97684
|
-
shapeStyle: buildShapeStyle(
|
|
97685
|
-
|
|
97686
|
-
|
|
97687
|
-
shadow: options2?.shadow
|
|
97688
|
-
})
|
|
97782
|
+
shapeStyle: buildShapeStyle(
|
|
97783
|
+
effectInputs(options2, options2?.fill ?? { type: "solid", color: "#4472C4" })
|
|
97784
|
+
)
|
|
97689
97785
|
};
|
|
97690
97786
|
if (options2?.text) {
|
|
97691
97787
|
el.text = options2.text;
|
|
@@ -97697,11 +97793,19 @@ function createShapeElement(shapeType, options2) {
|
|
|
97697
97793
|
function createConnectorElement(options2) {
|
|
97698
97794
|
const p = pos("connector", options2);
|
|
97699
97795
|
const connType = options2?.type === "bent" ? "bentConnector3" : options2?.type === "curved" ? "curvedConnector3" : "straightConnector1";
|
|
97796
|
+
const strokeInput = options2?.stroke;
|
|
97797
|
+
const stroke = mapStrokeToShapeStyle({
|
|
97798
|
+
...strokeInput,
|
|
97799
|
+
color: strokeInput?.color ?? "#000000",
|
|
97800
|
+
width: strokeInput?.width ?? 1
|
|
97801
|
+
});
|
|
97700
97802
|
const style = {
|
|
97701
|
-
...
|
|
97702
|
-
|
|
97703
|
-
|
|
97803
|
+
...stroke,
|
|
97804
|
+
...connectorLineEndOverride("Start", options2?.startArrow),
|
|
97805
|
+
...connectorLineEndOverride("End", options2?.endArrow)
|
|
97704
97806
|
};
|
|
97807
|
+
style.connectorStartArrow ??= "none";
|
|
97808
|
+
style.connectorEndArrow ??= "none";
|
|
97705
97809
|
if (options2?.from) {
|
|
97706
97810
|
style.connectorStartConnection = {
|
|
97707
97811
|
shapeId: options2.from.elementId,
|
|
@@ -97881,9 +97985,8 @@ function createFreeformElement(pathData, options2) {
|
|
|
97881
97985
|
pathHeight,
|
|
97882
97986
|
customGeometryPaths,
|
|
97883
97987
|
shapeStyle: buildShapeStyle({
|
|
97884
|
-
|
|
97885
|
-
stroke: options2?.stroke ?? { color: "#000000", width: 2 }
|
|
97886
|
-
shadow: options2?.shadow
|
|
97988
|
+
...effectInputs(options2, options2?.fill ?? { type: "none" }),
|
|
97989
|
+
stroke: options2?.stroke ?? { color: "#000000", width: 2 }
|
|
97887
97990
|
})
|
|
97888
97991
|
};
|
|
97889
97992
|
if (options2?.text) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-
|
|
1
|
+
import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-4R65YYAD.mjs';
|
|
2
2
|
|
|
3
3
|
// pptx/converter/media-context.ts
|
|
4
4
|
var MIME_TO_EXT = {
|