ooxml-core 1.32.1 → 1.34.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-5UDSMCBG.cjs +14 -0
- package/dist/PptxHandler-TTRTAQAR.mjs +5 -0
- package/dist/PptxHandler-XCYX5DVX.mjs +7 -0
- package/dist/{PresentationBuilder-5NFBUP7Y.cjs → PresentationBuilder-HA56ZY23.cjs} +6 -5
- package/dist/{PresentationBuilder-S6HXHKEJ.mjs → PresentationBuilder-IVLUEB4K.mjs} +4 -4
- package/dist/{PresentationBuilder-3CH5TR4W.mjs → PresentationBuilder-JBTNOIL7.mjs} +3 -2
- package/dist/automation/index.cjs +47133 -42384
- package/dist/automation/index.mjs +47133 -42384
- package/dist/chart/funnel-geometry.d.ts +1 -1
- package/dist/chart/funnel-geometry.d.ts.map +1 -1
- package/dist/chart/index.cjs +5743 -3820
- package/dist/chart/index.mjs +5736 -3821
- package/dist/chart/region-map/alias.d.ts +12 -0
- package/dist/chart/region-map/alias.d.ts.map +1 -0
- package/dist/chart/region-map/cache.d.ts +20 -0
- package/dist/chart/region-map/cache.d.ts.map +1 -0
- package/dist/chart/region-map/colors.d.ts +4 -0
- package/dist/chart/region-map/colors.d.ts.map +1 -0
- package/dist/chart/region-map/data.d.ts +45 -0
- package/dist/chart/region-map/data.d.ts.map +1 -0
- package/dist/chart/region-map/geographic-projection.d.ts +4 -0
- package/dist/chart/region-map/geographic-projection.d.ts.map +1 -0
- package/dist/chart/region-map/geometry.d.ts +10 -0
- package/dist/chart/region-map/geometry.d.ts.map +1 -0
- package/dist/chart/region-map/index.cjs +892 -0
- package/dist/chart/region-map/index.d.ts +12 -0
- package/dist/chart/region-map/index.d.ts.map +1 -0
- package/dist/chart/region-map/index.mjs +870 -0
- package/dist/chart/region-map/projection.d.ts +19 -0
- package/dist/chart/region-map/projection.d.ts.map +1 -0
- package/dist/chart/region-map/types.d.ts +39 -0
- package/dist/chart/region-map/types.d.ts.map +1 -0
- package/dist/chart/region-map/value-color-positions.d.ts +4 -0
- package/dist/chart/region-map/value-color-positions.d.ts.map +1 -0
- package/dist/chart/region-map/value-colors.d.ts +4 -0
- package/dist/chart/region-map/value-colors.d.ts.map +1 -0
- package/dist/chart/region-map/world-regions.d.ts +22 -0
- package/dist/chart/region-map/world-regions.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-camera.d.ts +26 -0
- package/dist/chart/render/chart-3d-camera.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-layout.d.ts +27 -0
- package/dist/chart/render/chart-3d-layout.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-marks.d.ts +10 -0
- package/dist/chart/render/chart-3d-marks.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-mesh.d.ts +32 -0
- package/dist/chart/render/chart-3d-mesh.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-pie.d.ts +16 -0
- package/dist/chart/render/chart-3d-pie.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-projection.d.ts +37 -0
- package/dist/chart/render/chart-3d-projection.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-scene.d.ts +9 -0
- package/dist/chart/render/chart-3d-scene.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-shading.d.ts +10 -0
- package/dist/chart/render/chart-3d-shading.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-surface.d.ts +5 -0
- package/dist/chart/render/chart-3d-surface.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-svg.d.ts +7 -0
- package/dist/chart/render/chart-3d-svg.d.ts.map +1 -0
- package/dist/chart/render/chart-3d-walls.d.ts +13 -0
- package/dist/chart/render/chart-3d-walls.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-funnel.d.ts.map +1 -1
- package/dist/chart/render/chart-svg-region-map.d.ts +4 -0
- package/dist/chart/render/chart-svg-region-map.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-text-metrics.d.ts +2 -0
- package/dist/chart/render/chart-svg-text-metrics.d.ts.map +1 -1
- package/dist/chart/render/chart-svg.d.ts.map +1 -1
- package/dist/chart/render/chart-view.d.ts +5 -1
- package/dist/chart/render/chart-view.d.ts.map +1 -1
- package/dist/chart/render/index.d.ts +5 -0
- package/dist/chart/render/index.d.ts.map +1 -1
- package/dist/chart/render/render-space.d.ts.map +1 -1
- package/dist/chart/render/summary-ex-formatting.d.ts +5 -0
- package/dist/chart/render/summary-ex-formatting.d.ts.map +1 -0
- package/dist/chart/render/summary-ex-series.d.ts.map +1 -1
- package/dist/chart/render/summary-from-chartex.d.ts.map +1 -1
- package/dist/chart/render/summary-from-space.d.ts.map +1 -1
- package/dist/chart/render/summary.d.ts +5 -1
- package/dist/chart/render/summary.d.ts.map +1 -1
- package/dist/chunk-2N7RZQLC.mjs +8 -0
- package/dist/{chunk-Q6NM64J2.cjs → chunk-A27O7M5X.cjs} +4938 -1083
- package/dist/{chunk-4R65YYAD.mjs → chunk-EGBNPVBA.mjs} +6256 -2277
- package/dist/{chunk-3H5UAJB3.mjs → chunk-GNGL4BO7.mjs} +935 -568
- package/dist/chunk-LSO5SSFX.mjs +112 -0
- package/dist/chunk-MB3TYNMV.mjs +28 -0
- package/dist/{chunk-N6424WKA.mjs → chunk-MK2IBZU6.mjs} +1 -1
- package/dist/{chunk-X6VNUBES.cjs → chunk-PA5ADSTX.cjs} +2124 -1791
- package/dist/{chunk-IOTGRLJH.mjs → chunk-RI56PFGL.mjs} +933 -600
- package/dist/{chunk-NAWLWKOJ.mjs → chunk-RPJHMPEL.mjs} +2 -2
- package/dist/{chunk-UYMSFJQZ.mjs → chunk-TJXK4D4U.mjs} +5 -5
- package/dist/{chunk-O7SVHLD7.mjs → chunk-UQMAPY6D.mjs} +4901 -1077
- package/dist/{chunk-54S5A5PZ.mjs → chunk-VDUNZTJC.mjs} +36 -1
- package/dist/chunk-XF6ZRA2D.cjs +120 -0
- package/dist/crypto/index.cjs +23 -15
- package/dist/crypto/index.mjs +23 -15
- package/dist/diagram/drawing-resolve.d.ts.map +1 -1
- package/dist/diagram/drawing-view.d.ts +6 -0
- package/dist/diagram/drawing-view.d.ts.map +1 -1
- package/dist/diagram/engine/engine-to-result.d.ts.map +1 -1
- package/dist/diagram/index.cjs +786 -145
- package/dist/diagram/index.d.ts +1 -0
- package/dist/diagram/index.d.ts.map +1 -1
- package/dist/diagram/index.mjs +783 -147
- package/dist/diagram/layout/smartart-layout-types.d.ts +7 -0
- package/dist/diagram/layout/smartart-layout-types.d.ts.map +1 -1
- package/dist/diagram/layout-preview.d.ts +4 -0
- package/dist/diagram/layout-preview.d.ts.map +1 -1
- package/dist/diagram/layout-role-style.d.ts +4 -0
- package/dist/diagram/layout-role-style.d.ts.map +1 -0
- package/dist/diagram/load.d.ts.map +1 -1
- package/dist/diagram/picture-layout.d.ts +23 -0
- package/dist/diagram/picture-layout.d.ts.map +1 -0
- package/dist/diagram/types.d.ts +6 -0
- package/dist/diagram/types.d.ts.map +1 -1
- package/dist/diagram/write/cache.d.ts +1 -0
- package/dist/diagram/write/cache.d.ts.map +1 -1
- package/dist/digest/crc32.d.ts +2 -0
- package/dist/digest/crc32.d.ts.map +1 -0
- package/dist/digest/index.cjs +11 -0
- package/dist/digest/index.d.ts +1 -0
- package/dist/digest/index.d.ts.map +1 -1
- package/dist/digest/index.mjs +11 -1
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/diagram-cache.d.ts.map +1 -1
- package/dist/docx/diagram-save.d.ts.map +1 -1
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +1394 -366
- package/dist/docx/embedded.mjs +1394 -366
- package/dist/docx/find-pattern.d.ts +33 -0
- package/dist/docx/find-pattern.d.ts.map +1 -0
- package/dist/docx/find-replacement.d.ts +16 -0
- package/dist/docx/find-replacement.d.ts.map +1 -0
- package/dist/docx/find-syntax.d.ts +13 -0
- package/dist/docx/find-syntax.d.ts.map +1 -0
- package/dist/docx/find-wildcards.d.ts +8 -0
- package/dist/docx/find-wildcards.d.ts.map +1 -0
- package/dist/docx/form-field-model.d.ts +39 -0
- package/dist/docx/form-field-model.d.ts.map +1 -1
- package/dist/docx/index.cjs +6107 -1728
- package/dist/docx/index.d.ts +3 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +6103 -1729
- package/dist/docx/inline-model.d.ts +4 -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/adapter.d.ts.map +1 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +2338 -554
- package/dist/docx/layout/index.mjs +2338 -554
- package/dist/docx/layout/input.d.ts +5 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +3 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +7593 -1539
- package/dist/docx/load/index.mjs +7593 -1539
- package/dist/docx/load/legacy-doc/binary-save.d.ts +4 -0
- package/dist/docx/load/legacy-doc/binary-save.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/blocks.d.ts +19 -0
- package/dist/docx/load/legacy-doc/blocks.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/borders.d.ts +7 -0
- package/dist/docx/load/legacy-doc/borders.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/context.d.ts +65 -0
- package/dist/docx/load/legacy-doc/context.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/drawing.d.ts +15 -0
- package/dist/docx/load/legacy-doc/drawing.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/error.d.ts +5 -0
- package/dist/docx/load/legacy-doc/error.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/inline.d.ts +7 -0
- package/dist/docx/load/legacy-doc/inline.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/numbering-part.d.ts +3 -0
- package/dist/docx/load/legacy-doc/numbering-part.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/package.d.ts +8 -0
- package/dist/docx/load/legacy-doc/package.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/para-props.d.ts +6 -0
- package/dist/docx/load/legacy-doc/para-props.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/run-props.d.ts +8 -0
- package/dist/docx/load/legacy-doc/run-props.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/sections.d.ts +23 -0
- package/dist/docx/load/legacy-doc/sections.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/styles-part.d.ts +3 -0
- package/dist/docx/load/legacy-doc/styles-part.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/table.d.ts +6 -0
- package/dist/docx/load/legacy-doc/table.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc/xml.d.ts +21 -0
- package/dist/docx/load/legacy-doc/xml.d.ts.map +1 -0
- package/dist/docx/load/legacy-doc.d.ts +5 -4
- package/dist/docx/load/legacy-doc.d.ts.map +1 -1
- package/dist/docx/model-paragraph.d.ts +5 -0
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +3 -0
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/numbering-editing.d.ts +11 -1
- package/dist/docx/numbering-editing.d.ts.map +1 -1
- package/dist/docx/numbering-format.d.ts.map +1 -1
- package/dist/docx/numbering-model.d.ts +17 -0
- package/dist/docx/numbering-model.d.ts.map +1 -1
- package/dist/docx/numbering-package.d.ts +2 -2
- package/dist/docx/numbering-package.d.ts.map +1 -1
- package/dist/docx/numbering-parse.d.ts +2 -1
- package/dist/docx/numbering-parse.d.ts.map +1 -1
- package/dist/docx/numbering-picture-save.d.ts +13 -0
- package/dist/docx/numbering-picture-save.d.ts.map +1 -0
- package/dist/docx/numbering-picture.d.ts +18 -0
- package/dist/docx/numbering-picture.d.ts.map +1 -0
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/permission-markers.d.ts +19 -0
- package/dist/docx/permission-markers.d.ts.map +1 -0
- package/dist/docx/permissions.d.ts +11 -0
- package/dist/docx/permissions.d.ts.map +1 -0
- package/dist/docx/protection-legacy.d.ts +13 -0
- package/dist/docx/protection-legacy.d.ts.map +1 -0
- package/dist/docx/protection.d.ts +30 -0
- package/dist/docx/protection.d.ts.map +1 -0
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/settings.d.ts +6 -1
- package/dist/docx/settings.d.ts.map +1 -1
- package/dist/docx/ui/customization.d.ts.map +1 -1
- package/dist/docx/ui/edit-restriction.d.ts +53 -0
- package/dist/docx/ui/edit-restriction.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +3617 -1097
- 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 +3597 -1098
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
- package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
- 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/run-adapter.d.ts.map +1 -1
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-paragraph.d.ts.map +1 -1
- package/dist/drawingml/index.cjs +708 -111
- package/dist/drawingml/index.d.ts +7 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +698 -113
- package/dist/drawingml/picture-artistic.d.ts +14 -0
- package/dist/drawingml/picture-artistic.d.ts.map +1 -0
- package/dist/drawingml/picture-effects.d.ts +4 -1
- package/dist/drawingml/picture-effects.d.ts.map +1 -1
- package/dist/drawingml/picture-fill.d.ts.map +1 -1
- package/dist/drawingml/picture-hsl-pixels.d.ts +4 -0
- package/dist/drawingml/picture-hsl-pixels.d.ts.map +1 -0
- package/dist/drawingml/picture-layout.d.ts +25 -0
- package/dist/drawingml/picture-layout.d.ts.map +1 -0
- package/dist/drawingml/picture-standard-effects.d.ts +15 -0
- package/dist/drawingml/picture-standard-effects.d.ts.map +1 -0
- package/dist/drawingml/picture-transfer.d.ts +11 -0
- package/dist/drawingml/picture-transfer.d.ts.map +1 -0
- package/dist/drawingml/raster-image.d.ts +29 -0
- package/dist/drawingml/raster-image.d.ts.map +1 -0
- package/dist/drawingml/types.d.ts +1 -0
- package/dist/drawingml/types.d.ts.map +1 -1
- package/dist/drawingml/write-pattern-picture.d.ts.map +1 -1
- package/dist/drawingml/write-theme.d.ts +2 -0
- package/dist/drawingml/write-theme.d.ts.map +1 -1
- package/dist/geometry/index.cjs +38 -0
- package/dist/geometry/index.d.ts +1 -0
- package/dist/geometry/index.d.ts.map +1 -1
- package/dist/geometry/index.mjs +36 -1
- package/dist/geometry/picture-tile.d.ts +29 -0
- package/dist/geometry/picture-tile.d.ts.map +1 -0
- package/dist/index.cjs +15671 -12934
- package/dist/index.mjs +15671 -12934
- package/dist/pptx/automation/index.cjs +9313 -3688
- package/dist/pptx/automation/index.d.ts +40 -6
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +254 -12
- package/dist/pptx/automation/schemas/index.cjs +26 -0
- package/dist/pptx/automation/schemas/index.d.ts +26 -1
- package/dist/pptx/automation/schemas/index.d.ts.map +1 -0
- package/dist/pptx/automation/schemas/index.mjs +1 -1
- package/dist/pptx/chunks/{elements-mSCZ84Tc.d.ts → elements-f3UbFph-.d.ts} +7 -2
- package/dist/pptx/chunks/elements-f3UbFph-.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-DnWlmYCy.d.ts → index-BnH2QjYm.d.ts} +4 -4
- package/dist/pptx/chunks/{index-DnWlmYCy.d.ts.map → index-BnH2QjYm.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-D-FdgqrP.d.ts → index-Bp-1pGo1.d.ts} +4 -4
- package/dist/pptx/chunks/{index-D-FdgqrP.d.ts.map → index-Bp-1pGo1.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-DKybuHPT.d.ts → index-pLLN4OTz.d.ts} +62 -24
- package/dist/pptx/chunks/index-pLLN4OTz.d.ts.map +1 -0
- package/dist/pptx/chunks/{smart-art-DLumQo90.d.ts → smart-art-CmOrPLLQ.d.ts} +86 -2
- package/dist/pptx/chunks/smart-art-CmOrPLLQ.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-hyPODwIQ.d.ts → text-operations-D5sgspO6.d.ts} +2 -2
- package/dist/pptx/chunks/{text-operations-hyPODwIQ.d.ts.map → text-operations-D5sgspO6.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +7477 -2848
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +6 -6
- package/dist/pptx/converter/index.cjs +3895 -503
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +3 -3
- package/dist/pptx/editor/render/custom-show-operations.cjs +133 -0
- package/dist/pptx/editor/render/custom-show-operations.d.ts +42 -0
- package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -0
- package/dist/pptx/editor/render/custom-show-operations.mjs +119 -0
- package/dist/pptx/editor/render/find-replace.cjs +15 -14
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -1
- package/dist/pptx/editor/render/slide-operations.cjs +9 -8
- package/dist/pptx/editor/render/slide-operations.mjs +3 -2
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +1 -1
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +8447 -3693
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +7 -7
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.mjs +2 -2
- package/dist/teams/index.cjs +2176 -751
- package/dist/teams/index.mjs +2176 -751
- package/dist/text/index.cjs +241 -0
- package/dist/text/index.d.ts +2 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +240 -1
- package/dist/text/truetype/parse.d.ts +36 -0
- package/dist/text/truetype/parse.d.ts.map +1 -0
- package/dist/text/truetype/subset.d.ts +16 -0
- package/dist/text/truetype/subset.d.ts.map +1 -0
- package/dist/visio/cell-formula.d.ts +5 -1
- package/dist/visio/cell-formula.d.ts.map +1 -1
- package/dist/visio/collab/index.cjs +3 -1
- package/dist/visio/collab/index.mjs +3 -1
- package/dist/visio/container-relationships.d.ts +53 -0
- package/dist/visio/container-relationships.d.ts.map +1 -0
- package/dist/visio/data-connections.d.ts +32 -0
- package/dist/visio/data-connections.d.ts.map +1 -0
- package/dist/visio/data-recordsets.d.ts +7 -0
- package/dist/visio/data-recordsets.d.ts.map +1 -1
- package/dist/visio/data-refresh.d.ts +33 -0
- package/dist/visio/data-refresh.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +6 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-container-fit.d.ts +32 -0
- package/dist/visio/edit-container-fit.d.ts.map +1 -0
- package/dist/visio/edit-container-members.d.ts +33 -0
- package/dist/visio/edit-container-members.d.ts.map +1 -0
- package/dist/visio/edit-container-options.d.ts +33 -0
- package/dist/visio/edit-container-options.d.ts.map +1 -0
- package/dist/visio/edit-data-commands.d.ts +5 -0
- package/dist/visio/edit-data-commands.d.ts.map +1 -1
- package/dist/visio/edit-data-parts.d.ts +2 -0
- package/dist/visio/edit-data-parts.d.ts.map +1 -1
- package/dist/visio/edit-data.d.ts.map +1 -1
- package/dist/visio/edit-delete.d.ts.map +1 -1
- package/dist/visio/edit-diagram-parts-commands.d.ts +24 -1
- package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -1
- package/dist/visio/edit-diagram-parts.d.ts +11 -2
- package/dist/visio/edit-diagram-parts.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts +4 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-group-resize.d.ts.map +1 -1
- package/dist/visio/edit-instance-checks.d.ts.map +1 -1
- package/dist/visio/edit-package.d.ts.map +1 -1
- package/dist/visio/edit-page-theme-commands.d.ts +26 -0
- package/dist/visio/edit-page-theme-commands.d.ts.map +1 -1
- package/dist/visio/edit-page-theme-part.d.ts +6 -0
- package/dist/visio/edit-page-theme-part.d.ts.map +1 -0
- package/dist/visio/edit-page-theme.d.ts +9 -1
- package/dist/visio/edit-page-theme.d.ts.map +1 -1
- package/dist/visio/edit-picture-adjust.d.ts +32 -0
- package/dist/visio/edit-picture-adjust.d.ts.map +1 -0
- package/dist/visio/edit-recalculate-index.d.ts +13 -0
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-values.d.ts.map +1 -1
- 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-swimlane-commands.d.ts +91 -0
- package/dist/visio/edit-swimlane-commands.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-layout.d.ts +64 -0
- package/dist/visio/edit-swimlane-layout.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-ops.d.ts +11 -0
- package/dist/visio/edit-swimlane-ops.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-shapes.d.ts +42 -0
- package/dist/visio/edit-swimlane-shapes.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-turn.d.ts +9 -0
- package/dist/visio/edit-swimlane-turn.d.ts.map +1 -0
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/effects.d.ts +3 -2
- package/dist/visio/effects.d.ts.map +1 -1
- package/dist/visio/formula-analyze.d.ts +2 -0
- package/dist/visio/formula-analyze.d.ts.map +1 -1
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/formula-master.d.ts +1 -0
- package/dist/visio/formula-master.d.ts.map +1 -1
- package/dist/visio/geometry.d.ts +2 -1
- package/dist/visio/geometry.d.ts.map +1 -1
- package/dist/visio/index.cjs +12207 -7779
- package/dist/visio/index.d.ts +8 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +12201 -7780
- package/dist/visio/infinite-line.d.ts +17 -0
- package/dist/visio/infinite-line.d.ts.map +1 -0
- package/dist/visio/media.d.ts +4 -23
- package/dist/visio/media.d.ts.map +1 -1
- package/dist/visio/model.d.ts +46 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/package-common.d.ts +1 -1
- package/dist/visio/package-common.d.ts.map +1 -1
- package/dist/visio/package-kind.d.ts +34 -0
- package/dist/visio/package-kind.d.ts.map +1 -0
- package/dist/visio/page-theme.d.ts +7 -0
- package/dist/visio/page-theme.d.ts.map +1 -1
- package/dist/visio/parser.d.ts +2 -2
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/shadow.d.ts +2 -1
- package/dist/visio/shadow.d.ts.map +1 -1
- package/dist/visio/shape-structure.d.ts +19 -3
- package/dist/visio/shape-structure.d.ts.map +1 -1
- package/dist/visio/shapes.d.ts +7 -1
- package/dist/visio/shapes.d.ts.map +1 -1
- package/dist/visio/stencil-file.d.ts +2 -2
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/swimlane-stack.d.ts +65 -0
- package/dist/visio/swimlane-stack.d.ts.map +1 -0
- package/dist/visio/theme-builtins.d.ts +3 -0
- package/dist/visio/theme-builtins.d.ts.map +1 -1
- package/dist/visio/theme-effects.d.ts +19 -0
- package/dist/visio/theme-effects.d.ts.map +1 -0
- package/dist/visio/theme-font.d.ts +13 -0
- package/dist/visio/theme-font.d.ts.map +1 -0
- package/dist/visio/theme-line.d.ts.map +1 -1
- package/dist/visio/theme-write.d.ts.map +1 -1
- package/dist/visio/theme.d.ts +7 -0
- package/dist/visio/theme.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-config.d.ts +45 -0
- package/dist/visio/ui/data-graphic-config.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-rules.d.ts +7 -0
- package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
- package/dist/visio/ui/data-graphics.d.ts +9 -0
- package/dist/visio/ui/data-graphics.d.ts.map +1 -1
- package/dist/visio/ui/diagram-parts.d.ts +20 -2
- package/dist/visio/ui/diagram-parts.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/guides.d.ts +9 -1
- package/dist/visio/ui/guides.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +14266 -10008
- package/dist/visio/ui/index.d.ts +4 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +14231 -10009
- package/dist/visio/ui/org-chart.d.ts +75 -0
- package/dist/visio/ui/org-chart.d.ts.map +1 -0
- package/dist/visio/ui/resize-snap.d.ts +51 -0
- package/dist/visio/ui/resize-snap.d.ts.map +1 -0
- package/dist/visio/ui/sample-drawing.d.ts +26 -0
- package/dist/visio/ui/sample-drawing.d.ts.map +1 -1
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/selection-resize.d.ts +2 -2
- package/dist/visio/ui/selection-resize.d.ts.map +1 -1
- package/dist/visio/ui/shape-resize.d.ts +29 -1
- package/dist/visio/ui/shape-resize.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/swimlane.d.ts +37 -0
- package/dist/visio/ui/swimlane.d.ts.map +1 -0
- package/dist/visio/ui/templates.d.ts +26 -0
- package/dist/visio/ui/templates.d.ts.map +1 -0
- package/dist/xlsx/audit/ast-text.d.ts +12 -0
- package/dist/xlsx/audit/ast-text.d.ts.map +1 -0
- package/dist/xlsx/audit/error-check.d.ts +23 -0
- package/dist/xlsx/audit/error-check.d.ts.map +1 -0
- package/dist/xlsx/audit/evaluate-steps.d.ts +48 -0
- package/dist/xlsx/audit/evaluate-steps.d.ts.map +1 -0
- package/dist/xlsx/audit/index.d.ts +6 -0
- package/dist/xlsx/audit/index.d.ts.map +1 -0
- package/dist/xlsx/audit/trace.d.ts +59 -0
- package/dist/xlsx/audit/trace.d.ts.map +1 -0
- package/dist/xlsx/audit/watch.d.ts +17 -0
- package/dist/xlsx/audit/watch.d.ts.map +1 -0
- package/dist/xlsx/edit/cell-values.d.ts.map +1 -1
- package/dist/xlsx/edit/chart-ex.d.ts +1 -0
- package/dist/xlsx/edit/chart-ex.d.ts.map +1 -1
- package/dist/xlsx/edit/filter.d.ts +8 -1
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +5 -1
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/session-calc.d.ts +5 -0
- package/dist/xlsx/edit/session-calc.d.ts.map +1 -1
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/sort-choices.d.ts +23 -0
- package/dist/xlsx/edit/sort-choices.d.ts.map +1 -0
- package/dist/xlsx/edit/sort-keys.d.ts +49 -0
- package/dist/xlsx/edit/sort-keys.d.ts.map +1 -0
- package/dist/xlsx/edit/sort-reapply.d.ts +11 -0
- package/dist/xlsx/edit/sort-reapply.d.ts.map +1 -0
- package/dist/xlsx/edit/sort.d.ts +14 -12
- package/dist/xlsx/edit/sort.d.ts.map +1 -1
- package/dist/xlsx/edit/text-columns.d.ts +21 -0
- package/dist/xlsx/edit/text-columns.d.ts.map +1 -0
- package/dist/xlsx/edit/types.d.ts +10 -5
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/edit/view.d.ts +9 -1
- package/dist/xlsx/edit/view.d.ts.map +1 -1
- package/dist/xlsx/embedded-chart-ex-space.d.ts +18 -0
- package/dist/xlsx/embedded-chart-ex-space.d.ts.map +1 -0
- package/dist/xlsx/filter-criteria.d.ts +23 -0
- package/dist/xlsx/filter-criteria.d.ts.map +1 -0
- package/dist/xlsx/filter-dynamic.d.ts +8 -0
- package/dist/xlsx/filter-dynamic.d.ts.map +1 -0
- package/dist/xlsx/filter-menu.d.ts +49 -0
- package/dist/xlsx/filter-menu.d.ts.map +1 -0
- package/dist/xlsx/filter-rows.d.ts +4 -4
- package/dist/xlsx/filter-rows.d.ts.map +1 -1
- package/dist/xlsx/formula/engine-types.d.ts +8 -0
- package/dist/xlsx/formula/engine-types.d.ts.map +1 -1
- package/dist/xlsx/formula/engine.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +7259 -3079
- package/dist/xlsx/index.d.ts +5 -0
- package/dist/xlsx/index.d.ts.map +1 -1
- package/dist/xlsx/index.mjs +7213 -3079
- package/dist/xlsx/layout/index.d.ts +1 -0
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/split.d.ts +55 -0
- package/dist/xlsx/layout/split.d.ts.map +1 -0
- package/dist/xlsx/layout/viewport.d.ts +2 -0
- package/dist/xlsx/layout/viewport.d.ts.map +1 -1
- package/dist/xlsx/load/index.cjs +2170 -688
- package/dist/xlsx/load/index.mjs +2170 -688
- package/dist/xlsx/model-filter.d.ts +54 -0
- package/dist/xlsx/model-filter.d.ts.map +1 -0
- package/dist/xlsx/model-sort.d.ts +27 -0
- package/dist/xlsx/model-sort.d.ts.map +1 -0
- package/dist/xlsx/model.d.ts +81 -4
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/chart.d.ts.map +1 -1
- package/dist/xlsx/read/drawing.d.ts.map +1 -1
- package/dist/xlsx/read/filter-columns.d.ts +5 -0
- package/dist/xlsx/read/filter-columns.d.ts.map +1 -0
- package/dist/xlsx/read/ignored-errors.d.ts +4 -0
- package/dist/xlsx/read/ignored-errors.d.ts.map +1 -0
- package/dist/xlsx/read/shared-strings.d.ts +5 -3
- package/dist/xlsx/read/shared-strings.d.ts.map +1 -1
- package/dist/xlsx/read/sheet-data.d.ts.map +1 -1
- package/dist/xlsx/read/sheet-props.d.ts +2 -2
- package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/read/sort-state.d.ts +5 -0
- package/dist/xlsx/read/sort-state.d.ts.map +1 -0
- package/dist/xlsx/read/tables.d.ts +2 -2
- package/dist/xlsx/read/tables.d.ts.map +1 -1
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/sort-lists.d.ts +6 -0
- package/dist/xlsx/sort-lists.d.ts.map +1 -0
- package/dist/xlsx/ui/audit-state.d.ts +19 -0
- package/dist/xlsx/ui/audit-state.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/audit.d.ts +3 -0
- package/dist/xlsx/ui/commands/audit.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/formulas.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/audit.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/audit.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/filters.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/filters.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/rules.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/tools.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/icons.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/sort-filter.d.ts.map +1 -1
- package/dist/xlsx/ui/context.d.ts +6 -1
- package/dist/xlsx/ui/context.d.ts.map +1 -1
- package/dist/xlsx/ui/dialogs/grid-chart.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/geometry.d.ts +29 -1
- package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +9454 -5323
- package/dist/xlsx/ui/index.d.ts +1 -0
- package/dist/xlsx/ui/index.d.ts.map +1 -1
- package/dist/xlsx/ui/index.mjs +9448 -5324
- package/dist/xlsx/ui/ribbon/icon-paths.d.ts.map +1 -1
- package/dist/xlsx/ui/ribbon/tabs/review-view.d.ts.map +1 -1
- package/dist/xlsx/write/drawing.d.ts.map +1 -1
- package/dist/xlsx/write/filter-columns.d.ts +53 -0
- package/dist/xlsx/write/filter-columns.d.ts.map +1 -0
- package/dist/xlsx/write/ignored-errors.d.ts +3 -0
- package/dist/xlsx/write/ignored-errors.d.ts.map +1 -0
- package/dist/xlsx/write/shared-strings.d.ts +4 -4
- package/dist/xlsx/write/shared-strings.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-props.d.ts +2 -1
- package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/write/smart-art-cache.d.ts.map +1 -1
- package/dist/xlsx/write/smart-art.d.ts.map +1 -1
- package/dist/xlsx/write/sort-state.d.ts +55 -0
- package/dist/xlsx/write/sort-state.d.ts.map +1 -0
- package/dist/xlsx/write/table-patch.d.ts +2 -1
- package/dist/xlsx/write/table-patch.d.ts.map +1 -1
- package/dist/xlsx/write/tables.d.ts +2 -1
- package/dist/xlsx/write/tables.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 +7 -2
- package/dist/PptxHandler-QY5VL3CY.mjs +0 -7
- package/dist/PptxHandler-SJ5ZUIUX.mjs +0 -4
- package/dist/PptxHandler-TESZUH66.cjs +0 -13
- package/dist/chunk-3GXV5MPC.mjs +0 -41
- package/dist/chunk-MHNETXQB.mjs +0 -1
- package/dist/pptx/chunks/elements-mSCZ84Tc.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DKybuHPT.d.ts.map +0 -1
- package/dist/pptx/chunks/smart-art-DLumQo90.d.ts.map +0 -1
package/dist/diagram/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DOMParser, XMLSerializer } from '@xmldom/xmldom';
|
|
2
2
|
|
|
3
3
|
// diagram/engine/data-points.ts
|
|
4
4
|
function collectNodes(nodes, parentId, out) {
|
|
@@ -141,7 +141,7 @@ function isSpace(ch) {
|
|
|
141
141
|
return ch === " " || ch === " " || ch === "\n" || ch === "\r";
|
|
142
142
|
}
|
|
143
143
|
function parseAttributes(source2) {
|
|
144
|
-
const
|
|
144
|
+
const attrs2 = {};
|
|
145
145
|
let i = 0;
|
|
146
146
|
const n = source2.length;
|
|
147
147
|
while (i < n) {
|
|
@@ -176,9 +176,9 @@ function parseAttributes(source2) {
|
|
|
176
176
|
if (name === "xmlns" || name.startsWith("xmlns:")) {
|
|
177
177
|
continue;
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
attrs2[localName(name)] = decodeEntities(value);
|
|
180
180
|
}
|
|
181
|
-
return
|
|
181
|
+
return attrs2;
|
|
182
182
|
}
|
|
183
183
|
function tagEnd(xml, from) {
|
|
184
184
|
let quote = "";
|
|
@@ -304,14 +304,14 @@ function numOrNaN(value) {
|
|
|
304
304
|
function relation(value) {
|
|
305
305
|
return value === "ch" || value === "des" ? value : "self";
|
|
306
306
|
}
|
|
307
|
-
function parseIterator(
|
|
307
|
+
function parseIterator(attrs2) {
|
|
308
308
|
return {
|
|
309
|
-
axis: list(
|
|
310
|
-
ptType: list(
|
|
311
|
-
hideLastTrans: list(
|
|
312
|
-
st: numberList(
|
|
313
|
-
cnt: numberList(
|
|
314
|
-
step: numberList(
|
|
309
|
+
axis: list(attrs2.axis),
|
|
310
|
+
ptType: list(attrs2.ptType),
|
|
311
|
+
hideLastTrans: list(attrs2.hideLastTrans).map((v) => v === "1" || v === "true"),
|
|
312
|
+
st: numberList(attrs2.st),
|
|
313
|
+
cnt: numberList(attrs2.cnt),
|
|
314
|
+
step: numberList(attrs2.step)
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
function parseAlgorithm(element2) {
|
|
@@ -342,41 +342,41 @@ function parseShape(element2) {
|
|
|
342
342
|
adj
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
function parseConstraint(
|
|
346
|
-
const op =
|
|
345
|
+
function parseConstraint(attrs2) {
|
|
346
|
+
const op = attrs2.op;
|
|
347
347
|
return {
|
|
348
|
-
type:
|
|
349
|
-
for: relation(
|
|
350
|
-
forName:
|
|
351
|
-
ptType:
|
|
352
|
-
refType:
|
|
353
|
-
refFor: relation(
|
|
354
|
-
refForName:
|
|
355
|
-
refPtType:
|
|
348
|
+
type: attrs2.type ?? "none",
|
|
349
|
+
for: relation(attrs2.for),
|
|
350
|
+
forName: attrs2.forName || void 0,
|
|
351
|
+
ptType: attrs2.ptType ?? "all",
|
|
352
|
+
refType: attrs2.refType ?? "none",
|
|
353
|
+
refFor: relation(attrs2.refFor),
|
|
354
|
+
refForName: attrs2.refForName || void 0,
|
|
355
|
+
refPtType: attrs2.refPtType ?? "all",
|
|
356
356
|
op: op === "equ" || op === "gte" || op === "lte" ? op : "none",
|
|
357
|
-
val: num(
|
|
358
|
-
hasVal:
|
|
359
|
-
fact: num(
|
|
357
|
+
val: num(attrs2.val, 0),
|
|
358
|
+
hasVal: attrs2.val !== void 0,
|
|
359
|
+
fact: num(attrs2.fact, 1)
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
function parseRule(
|
|
362
|
+
function parseRule(attrs2) {
|
|
363
363
|
return {
|
|
364
|
-
type:
|
|
365
|
-
for: relation(
|
|
366
|
-
forName:
|
|
367
|
-
ptType:
|
|
368
|
-
val: numOrNaN(
|
|
369
|
-
fact: numOrNaN(
|
|
370
|
-
max: numOrNaN(
|
|
364
|
+
type: attrs2.type ?? "none",
|
|
365
|
+
for: relation(attrs2.for),
|
|
366
|
+
forName: attrs2.forName || void 0,
|
|
367
|
+
ptType: attrs2.ptType ?? "all",
|
|
368
|
+
val: numOrNaN(attrs2.val),
|
|
369
|
+
fact: numOrNaN(attrs2.fact),
|
|
370
|
+
max: numOrNaN(attrs2.max)
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function parseCondition(
|
|
373
|
+
function parseCondition(attrs2) {
|
|
374
374
|
return {
|
|
375
|
-
...parseIterator(
|
|
376
|
-
func:
|
|
377
|
-
arg:
|
|
378
|
-
op:
|
|
379
|
-
val:
|
|
375
|
+
...parseIterator(attrs2),
|
|
376
|
+
func: attrs2.func ?? "cnt",
|
|
377
|
+
arg: attrs2.arg,
|
|
378
|
+
op: attrs2.op ?? "equ",
|
|
379
|
+
val: attrs2.val ?? ""
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
382
|
function parseBody(element2, state) {
|
|
@@ -14005,7 +14005,13 @@ function buildRenderedNode(node, index, nodeById, palette, style, mergedSourceId
|
|
|
14005
14005
|
fontSize: 0,
|
|
14006
14006
|
textX: x + width / 2,
|
|
14007
14007
|
textY: y + height / 2,
|
|
14008
|
-
|
|
14008
|
+
// Picture roles often omit presOf: they present the current point's image, not its text.
|
|
14009
|
+
nodeId: primary?.id ?? (node.shape?.blipPhldr ? node.point.source?.id : void 0),
|
|
14010
|
+
picturePlaceholder: node.shape?.blipPhldr,
|
|
14011
|
+
layoutRole: node.name,
|
|
14012
|
+
contextNodeId: node.point.source?.id,
|
|
14013
|
+
textAlign: ["l", "ctr", "r"].includes(node.alg.params.parTxLTRAlign ?? "") ? node.alg.params.parTxLTRAlign : void 0,
|
|
14014
|
+
textVerticalAnchor: ["t", "ctr", "b"].includes(node.alg.params.txAnchorVert ?? "") ? node.alg.params.txAnchorVert : void 0,
|
|
14009
14015
|
rotation: transform.rotation === 0 ? void 0 : transform.rotation,
|
|
14010
14016
|
presetOverride: node.shape?.type ?? "roundRect",
|
|
14011
14017
|
foldedNodeIds: foldedNodeIds.length > 0 ? foldedNodeIds : void 0,
|
|
@@ -18053,10 +18059,10 @@ function resolvedShapeIsPlainRect(view, role, nodeCount, presLayoutVars) {
|
|
|
18053
18059
|
return true;
|
|
18054
18060
|
}
|
|
18055
18061
|
for (const choose of role.choose) {
|
|
18056
|
-
const
|
|
18057
|
-
if (
|
|
18058
|
-
const rotated =
|
|
18059
|
-
return !rotated && (
|
|
18062
|
+
const attrs2 = rawShapeAttributes(view(activeBranch(choose, nodeCount, { presLayoutVars })));
|
|
18063
|
+
if (attrs2) {
|
|
18064
|
+
const rotated = attrs2.rot !== void 0 && attrs2.rot !== "0";
|
|
18065
|
+
return !rotated && (attrs2.type === void 0 || attrs2.type === "rect");
|
|
18060
18066
|
}
|
|
18061
18067
|
}
|
|
18062
18068
|
return true;
|
|
@@ -22746,7 +22752,9 @@ var NS = {
|
|
|
22746
22752
|
/** Office 2007+ diagram drawing (`dsp`). */
|
|
22747
22753
|
dsp: "http://schemas.microsoft.com/office/drawing/2008/diagram",
|
|
22748
22754
|
/** Relationships (`r:id`, `r:embed`). */
|
|
22749
|
-
r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
22755
|
+
r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
22756
|
+
/** OPC relationships part. */
|
|
22757
|
+
rels: "http://schemas.openxmlformats.org/package/2006/relationships"};
|
|
22750
22758
|
var DEFAULT_XML_LIMITS = {
|
|
22751
22759
|
maxDepth: 512,
|
|
22752
22760
|
maxNodes: 5e6
|
|
@@ -23338,6 +23346,273 @@ var LIGHT_RIGS = /* @__PURE__ */ new Set([
|
|
|
23338
23346
|
]);
|
|
23339
23347
|
var LIGHT_DIRECTIONS = /* @__PURE__ */ new Set(["tl", "t", "tr", "l", "r", "bl", "b", "br"]);
|
|
23340
23348
|
|
|
23349
|
+
// drawingml/picture-artistic.ts
|
|
23350
|
+
var ARTISTIC_PRIMARY_ATTRIBUTE = {
|
|
23351
|
+
artisticBlur: "radius",
|
|
23352
|
+
artisticCement: "crackSpacing",
|
|
23353
|
+
artisticChalkSketch: "pressure",
|
|
23354
|
+
artisticCrisscrossEtching: "pressure",
|
|
23355
|
+
artisticCutout: "numberOfShades",
|
|
23356
|
+
artisticFilmGrain: "grainSize",
|
|
23357
|
+
artisticGlass: "scaling",
|
|
23358
|
+
artisticGlowDiffused: "intensity",
|
|
23359
|
+
artisticGlowEdges: "smoothness",
|
|
23360
|
+
artisticLightScreen: "gridSize",
|
|
23361
|
+
artisticLineDrawing: "pencilSize",
|
|
23362
|
+
artisticMarker: "size",
|
|
23363
|
+
// Spelled "Mosiaic" in the schema; Microsoft's typo is part of the format.
|
|
23364
|
+
artisticMosiaicBubbles: "pressure",
|
|
23365
|
+
artisticPaintBrush: "brushSize",
|
|
23366
|
+
artisticPaintStrokes: "intensity",
|
|
23367
|
+
artisticPastelsSmooth: "scaling",
|
|
23368
|
+
artisticPencilGrayscale: "pencilSize",
|
|
23369
|
+
artisticPencilSketch: "pressure",
|
|
23370
|
+
artisticPhotocopy: "detail",
|
|
23371
|
+
artisticPlasticWrap: "smoothness",
|
|
23372
|
+
artisticTexturizer: "scaling",
|
|
23373
|
+
artisticWatercolorSponge: "brushSize"
|
|
23374
|
+
};
|
|
23375
|
+
function parseArtisticPictureExtension(node) {
|
|
23376
|
+
if (node.namespaceURI !== NS.a || node.localName !== "extLst") return void 0;
|
|
23377
|
+
const found = [];
|
|
23378
|
+
const unhandled = [];
|
|
23379
|
+
const pending = [node];
|
|
23380
|
+
while (pending.length) {
|
|
23381
|
+
const item2 = pending.pop();
|
|
23382
|
+
if (item2 !== node && !(item2.namespaceURI === NS.a && item2.localName === "ext") && !(item2.namespaceURI === "http://schemas.microsoft.com/office/drawing/2010/main" && (["imgProps", "imgLayer", "imgEffect", "useLocalDpi"].includes(item2.localName) || ARTISTIC_PRIMARY_ATTRIBUTE[item2.localName])))
|
|
23383
|
+
unhandled.push(item2.localName);
|
|
23384
|
+
if (item2.namespaceURI === "http://schemas.microsoft.com/office/drawing/2010/main" && item2.localName.startsWith("artistic"))
|
|
23385
|
+
found.push(item2);
|
|
23386
|
+
pending.push(...elements(item2));
|
|
23387
|
+
}
|
|
23388
|
+
if (found.length !== 1) return void 0;
|
|
23389
|
+
const effect = found[0];
|
|
23390
|
+
const key = ARTISTIC_PRIMARY_ATTRIBUTE[effect.localName];
|
|
23391
|
+
if (!key) return void 0;
|
|
23392
|
+
const raw = key ? effect.getAttribute(key) : null;
|
|
23393
|
+
const n = raw === null ? 0 : Number(raw);
|
|
23394
|
+
if (!Number.isFinite(n)) return void 0;
|
|
23395
|
+
return {
|
|
23396
|
+
kind: "artistic",
|
|
23397
|
+
name: effect.localName,
|
|
23398
|
+
radius: effect.localName === "artisticBlur" ? n : n / 1e3,
|
|
23399
|
+
baked: true,
|
|
23400
|
+
...unhandled.length ? { unhandled } : {}
|
|
23401
|
+
};
|
|
23402
|
+
}
|
|
23403
|
+
|
|
23404
|
+
// drawingml/write-color.ts
|
|
23405
|
+
var ELEMENTS = {
|
|
23406
|
+
srgb: "srgbClr",
|
|
23407
|
+
scheme: "schemeClr",
|
|
23408
|
+
system: "sysClr",
|
|
23409
|
+
preset: "prstClr",
|
|
23410
|
+
scrgb: "scrgbClr",
|
|
23411
|
+
hsl: "hslClr"
|
|
23412
|
+
};
|
|
23413
|
+
function drawingColorXml(color) {
|
|
23414
|
+
const local = ELEMENTS[color.kind];
|
|
23415
|
+
const doc = parseXml(`<a:${local} xmlns:a="${NS.a}"/>`);
|
|
23416
|
+
const root = doc.documentElement;
|
|
23417
|
+
if (color.kind === "scrgb" || color.kind === "hsl") {
|
|
23418
|
+
const keys = color.kind === "scrgb" ? ["r", "g", "b"] : ["hue", "sat", "lum"];
|
|
23419
|
+
const values = color.value.split(",");
|
|
23420
|
+
keys.forEach((key, i) => root.setAttribute(key, values[i] ?? "0"));
|
|
23421
|
+
} else root.setAttribute("val", color.value);
|
|
23422
|
+
if (color.fallback !== void 0 && color.kind === "system")
|
|
23423
|
+
root.setAttribute("lastClr", color.fallback);
|
|
23424
|
+
for (const transform of color.transforms) {
|
|
23425
|
+
if (!/^[A-Za-z_][\w.-]*$/.test(transform.name))
|
|
23426
|
+
throw new Error(`Invalid DrawingML transform ${transform.name}`);
|
|
23427
|
+
const node = doc.createElementNS(NS.a, `a:${transform.name}`);
|
|
23428
|
+
if (transform.value !== "") node.setAttribute("val", transform.value);
|
|
23429
|
+
root.appendChild(node);
|
|
23430
|
+
}
|
|
23431
|
+
return buildXml(doc);
|
|
23432
|
+
}
|
|
23433
|
+
|
|
23434
|
+
// drawingml/patch-color.ts
|
|
23435
|
+
function patchDrawingColorIn(container, color) {
|
|
23436
|
+
const old = elements(container).find((node) => parseDrawingColor(node));
|
|
23437
|
+
const before = parseDrawingColorIn(container);
|
|
23438
|
+
if (!old || !before || before.kind !== color.kind) {
|
|
23439
|
+
const next = container.ownerDocument.importNode(
|
|
23440
|
+
parseXml(drawingColorXml(color)).documentElement,
|
|
23441
|
+
true
|
|
23442
|
+
);
|
|
23443
|
+
if (old) container.replaceChild(next, old);
|
|
23444
|
+
else container.insertBefore(next, container.firstChild);
|
|
23445
|
+
return;
|
|
23446
|
+
}
|
|
23447
|
+
if (before.value !== color.value) {
|
|
23448
|
+
if (color.kind === "scrgb" || color.kind === "hsl") {
|
|
23449
|
+
const keys = color.kind === "scrgb" ? ["r", "g", "b"] : ["hue", "sat", "lum"];
|
|
23450
|
+
const values = color.value.split(",");
|
|
23451
|
+
keys.forEach((key, index) => old.setAttribute(key, values[index] ?? "0"));
|
|
23452
|
+
} else old.setAttribute("val", color.value);
|
|
23453
|
+
}
|
|
23454
|
+
if (before.fallback !== color.fallback && color.kind === "system") {
|
|
23455
|
+
if (color.fallback === void 0) old.removeAttribute("lastClr");
|
|
23456
|
+
else old.setAttribute("lastClr", color.fallback);
|
|
23457
|
+
}
|
|
23458
|
+
const originals = elements(old);
|
|
23459
|
+
color.transforms.forEach((transform, index) => {
|
|
23460
|
+
const source2 = originals[index];
|
|
23461
|
+
if (source2?.localName === transform.name) {
|
|
23462
|
+
if (before.transforms[index]?.value !== transform.value) {
|
|
23463
|
+
if (transform.value === "") source2.removeAttribute("val");
|
|
23464
|
+
else source2.setAttribute("val", transform.value);
|
|
23465
|
+
}
|
|
23466
|
+
return;
|
|
23467
|
+
}
|
|
23468
|
+
if (!/^[A-Za-z_][\w.-]*$/u.test(transform.name))
|
|
23469
|
+
throw new Error("Invalid DrawingML colour transform");
|
|
23470
|
+
const next = old.ownerDocument.createElementNS(NS.a, `a:${transform.name}`);
|
|
23471
|
+
if (transform.value !== "") next.setAttribute("val", transform.value);
|
|
23472
|
+
if (source2) old.replaceChild(next, source2);
|
|
23473
|
+
else old.appendChild(next);
|
|
23474
|
+
});
|
|
23475
|
+
for (const extra of originals.slice(color.transforms.length)) old.removeChild(extra);
|
|
23476
|
+
}
|
|
23477
|
+
|
|
23478
|
+
// drawingml/picture-standard-effects.ts
|
|
23479
|
+
var attrs = {
|
|
23480
|
+
biLevel: { threshold: "thresh" },
|
|
23481
|
+
alphaRepl: { amount: "a" },
|
|
23482
|
+
alphaBiLevel: { threshold: "thresh" },
|
|
23483
|
+
hsl: { hue: "hue", saturation: "sat", luminance: "lum" },
|
|
23484
|
+
tint: { hue: "hue", amount: "amt" },
|
|
23485
|
+
blur: { radiusEmu: "rad" }
|
|
23486
|
+
};
|
|
23487
|
+
function parseStandardPictureEffect(node) {
|
|
23488
|
+
const name = node.localName;
|
|
23489
|
+
if (![
|
|
23490
|
+
"biLevel",
|
|
23491
|
+
"alphaInv",
|
|
23492
|
+
"alphaCeiling",
|
|
23493
|
+
"alphaFloor",
|
|
23494
|
+
"alphaRepl",
|
|
23495
|
+
"alphaBiLevel",
|
|
23496
|
+
"alphaMod",
|
|
23497
|
+
"duotone",
|
|
23498
|
+
"clrRepl",
|
|
23499
|
+
"clrChange",
|
|
23500
|
+
"hsl",
|
|
23501
|
+
"tint",
|
|
23502
|
+
"blur"
|
|
23503
|
+
].includes(name))
|
|
23504
|
+
return void 0;
|
|
23505
|
+
const values = {};
|
|
23506
|
+
for (const [key, attribute] of Object.entries(attrs[name] ?? {})) {
|
|
23507
|
+
const raw = node.getAttribute(attribute);
|
|
23508
|
+
if (raw === null) continue;
|
|
23509
|
+
const percent = raw.endsWith("%");
|
|
23510
|
+
const n = Number(percent ? raw.slice(0, -1) : raw) / (key === "hue" ? 6e4 : key === "radiusEmu" ? 1 : percent ? 100 : 1e5);
|
|
23511
|
+
if (!Number.isFinite(n) || key === "hue" && (n < 0 || n >= 360) || key === "threshold" && (n < 0 || n > 1) || key === "radiusEmu" && (!Number.isSafeInteger(n) || n < 0) || ["saturation", "luminance", "amount"].includes(key) && name !== "alphaMod" && (n < (name === "alphaRepl" ? 0 : -1) || n > 1))
|
|
23512
|
+
return void 0;
|
|
23513
|
+
values[key] = n;
|
|
23514
|
+
}
|
|
23515
|
+
if (["biLevel", "alphaBiLevel"].includes(name) && values.threshold === void 0)
|
|
23516
|
+
return void 0;
|
|
23517
|
+
if (name === "alphaRepl" && values.amount === void 0) return void 0;
|
|
23518
|
+
if (name === "alphaMod") {
|
|
23519
|
+
const cont = first(node, "cont", NS.a);
|
|
23520
|
+
const nested = cont ? elements(cont) : [];
|
|
23521
|
+
if (nested.length !== 1 || nested[0]?.localName !== "alphaModFix") return void 0;
|
|
23522
|
+
const raw = nested[0].getAttribute("amt") ?? "100000";
|
|
23523
|
+
const n = Number(raw.endsWith("%") ? raw.slice(0, -1) : raw) / (raw.endsWith("%") ? 100 : 1e5);
|
|
23524
|
+
if (!Number.isFinite(n) || n < 0) return void 0;
|
|
23525
|
+
values.amount = n;
|
|
23526
|
+
}
|
|
23527
|
+
let colors = [];
|
|
23528
|
+
if (name === "duotone") {
|
|
23529
|
+
const candidates = elements(node).filter(
|
|
23530
|
+
(item2) => item2.namespaceURI === NS.a && /Clr$/.test(item2.localName)
|
|
23531
|
+
);
|
|
23532
|
+
colors = candidates.map((item2) => parseDrawingColor(item2)).filter((item2) => Boolean(item2));
|
|
23533
|
+
if (colors.length !== 2) return void 0;
|
|
23534
|
+
}
|
|
23535
|
+
if (name === "clrRepl") {
|
|
23536
|
+
const color = parseDrawingColorIn(node);
|
|
23537
|
+
if (!color) return void 0;
|
|
23538
|
+
colors = [color];
|
|
23539
|
+
}
|
|
23540
|
+
if (name === "clrChange") {
|
|
23541
|
+
const from = parseDrawingColorIn(first(node, "clrFrom", NS.a)), to = parseDrawingColorIn(first(node, "clrTo", NS.a));
|
|
23542
|
+
if (!from || !to) return void 0;
|
|
23543
|
+
colors = [from, to];
|
|
23544
|
+
}
|
|
23545
|
+
if (name === "alphaInv") {
|
|
23546
|
+
const color = parseDrawingColorIn(node);
|
|
23547
|
+
if (color) colors = [color];
|
|
23548
|
+
}
|
|
23549
|
+
return {
|
|
23550
|
+
kind: "standard",
|
|
23551
|
+
name,
|
|
23552
|
+
...Object.keys(values).length ? { values } : {},
|
|
23553
|
+
...colors.length ? { colors } : {},
|
|
23554
|
+
...name === "clrChange" && node.hasAttribute("useA") ? { useAlpha: !["0", "false"].includes(node.getAttribute("useA") ?? "") } : {},
|
|
23555
|
+
...name === "blur" && node.hasAttribute("grow") ? { grow: !["0", "false"].includes(node.getAttribute("grow") ?? "") } : {}
|
|
23556
|
+
};
|
|
23557
|
+
}
|
|
23558
|
+
function applyStandardPictureEffect(node, effect) {
|
|
23559
|
+
const doc = node.ownerDocument, before = parseStandardPictureEffect(node);
|
|
23560
|
+
for (const [key, value] of Object.entries(effect.values ?? {})) {
|
|
23561
|
+
if (!Number.isFinite(value) || key === "hue" && (value < 0 || value >= 360) || key === "threshold" && (value < 0 || value > 1) || key === "radiusEmu" && (!Number.isSafeInteger(value) || value < 0) || key === "amount" && effect.name === "alphaMod" && value < 0 || ["saturation", "luminance", "amount"].includes(key) && effect.name !== "alphaMod" && (value < (effect.name === "alphaRepl" ? 0 : -1) || value > 1))
|
|
23562
|
+
throw new RangeError("Invalid picture effect values");
|
|
23563
|
+
}
|
|
23564
|
+
const count = effect.colors?.length ?? 0;
|
|
23565
|
+
if (["duotone", "clrChange"].includes(effect.name) && count !== 2 || effect.name === "clrRepl" && count !== 1 || effect.name === "alphaInv" && count > 1)
|
|
23566
|
+
throw new RangeError("Invalid picture effect colours");
|
|
23567
|
+
for (const [key, attribute] of Object.entries(attrs[effect.name] ?? {})) {
|
|
23568
|
+
const value = effect.values?.[key];
|
|
23569
|
+
if (value === before?.values?.[key]) continue;
|
|
23570
|
+
if (value === void 0) node.removeAttribute(attribute);
|
|
23571
|
+
else
|
|
23572
|
+
node.setAttribute(
|
|
23573
|
+
attribute,
|
|
23574
|
+
String(Math.round(value * (key === "hue" ? 6e4 : key === "radiusEmu" ? 1 : 1e5)))
|
|
23575
|
+
);
|
|
23576
|
+
}
|
|
23577
|
+
if (effect.name === "alphaMod" && effect.values?.amount !== before?.values?.amount) {
|
|
23578
|
+
const cont = first(node, "cont", NS.a) ?? doc.createElementNS(NS.a, "a:cont");
|
|
23579
|
+
const fix = first(cont, "alphaModFix", NS.a) ?? doc.createElementNS(NS.a, "a:alphaModFix");
|
|
23580
|
+
fix.setAttribute("amt", String(Math.round((effect.values?.amount ?? 1) * 1e5)));
|
|
23581
|
+
if (!fix.parentNode) cont.appendChild(fix);
|
|
23582
|
+
if (!cont.parentNode) node.appendChild(cont);
|
|
23583
|
+
}
|
|
23584
|
+
if (effect.useAlpha !== before?.useAlpha) {
|
|
23585
|
+
if (effect.useAlpha === void 0) node.removeAttribute("useA");
|
|
23586
|
+
else node.setAttribute("useA", effect.useAlpha ? "1" : "0");
|
|
23587
|
+
}
|
|
23588
|
+
if (effect.grow !== before?.grow) {
|
|
23589
|
+
if (effect.grow === void 0) node.removeAttribute("grow");
|
|
23590
|
+
else node.setAttribute("grow", effect.grow ? "1" : "0");
|
|
23591
|
+
}
|
|
23592
|
+
if (JSON.stringify(effect.colors) !== JSON.stringify(before?.colors)) {
|
|
23593
|
+
if (effect.name === "duotone") {
|
|
23594
|
+
const old = elements(node).filter(
|
|
23595
|
+
(item2) => item2.namespaceURI === NS.a && /Clr$/.test(item2.localName)
|
|
23596
|
+
);
|
|
23597
|
+
for (let i = 0; i < (effect.colors?.length ?? 0); i++) {
|
|
23598
|
+
const holder = doc.createElementNS(NS.a, "a:holder");
|
|
23599
|
+
if (old[i]) holder.appendChild(doc.importNode(old[i], true));
|
|
23600
|
+
patchDrawingColorIn(holder, effect.colors[i]);
|
|
23601
|
+
const next = elements(holder)[0];
|
|
23602
|
+
if (old[i]) node.replaceChild(next, old[i]);
|
|
23603
|
+
else node.insertBefore(next, first(node, "extLst", NS.a) ?? null);
|
|
23604
|
+
}
|
|
23605
|
+
} else if (effect.name === "clrChange") {
|
|
23606
|
+
for (const [i, name] of ["clrFrom", "clrTo"].entries()) {
|
|
23607
|
+
const holder = first(node, name, NS.a) ?? doc.createElementNS(NS.a, `a:${name}`);
|
|
23608
|
+
if (effect.colors?.[i]) patchDrawingColorIn(holder, effect.colors[i]);
|
|
23609
|
+
if (!holder.parentNode) node.insertBefore(holder, first(node, "extLst", NS.a) ?? null);
|
|
23610
|
+
}
|
|
23611
|
+
} else if (effect.colors?.[0]) patchDrawingColorIn(node, effect.colors[0]);
|
|
23612
|
+
}
|
|
23613
|
+
if (!parseStandardPictureEffect(node)) throw new RangeError("Invalid picture effect values");
|
|
23614
|
+
}
|
|
23615
|
+
|
|
23341
23616
|
// drawingml/picture-effects.ts
|
|
23342
23617
|
function picturePercentage(value) {
|
|
23343
23618
|
const text2 = String(value ?? "").trim();
|
|
@@ -23375,14 +23650,19 @@ function readPictureEffect(name, attribute) {
|
|
|
23375
23650
|
function parsePictureEffects(blip) {
|
|
23376
23651
|
if (!blip) return [];
|
|
23377
23652
|
return elements(blip).map((node) => ({
|
|
23378
|
-
...(node.namespaceURI === NS.a ? readPictureEffect(node.localName, (name) => node.getAttribute(name)) : void 0) ?? { kind: "unsupported", name: node.localName },
|
|
23653
|
+
...(node.namespaceURI === NS.a ? readPictureEffect(node.localName, (name) => node.getAttribute(name)) ?? parseStandardPictureEffect(node) ?? parseArtisticPictureExtension(node) : void 0) ?? { kind: "unsupported", name: node.localName },
|
|
23379
23654
|
sourceXml: buildXml(node)
|
|
23380
23655
|
}));
|
|
23381
23656
|
}
|
|
23382
23657
|
function applyPictureEffects(blip, effects) {
|
|
23383
23658
|
if (JSON.stringify(parsePictureEffects(blip)) === JSON.stringify(effects)) return;
|
|
23384
23659
|
const nodes = effects.map((effect) => {
|
|
23385
|
-
const name = effect.kind === "grayscale" ? "grayscl" : effect.kind === "luminance" ? "lum" : effect.kind === "unsupported" ? effect.name : effect.kind;
|
|
23660
|
+
const name = effect.kind === "grayscale" ? "grayscl" : effect.kind === "luminance" ? "lum" : effect.kind === "unsupported" ? effect.name : effect.kind === "artistic" ? "extLst" : effect.kind === "standard" ? effect.name : effect.kind;
|
|
23661
|
+
if (effect.kind === "artistic") {
|
|
23662
|
+
const before = effect.sourceXml ? parseArtisticPictureExtension(parseXml(effect.sourceXml).documentElement) : void 0;
|
|
23663
|
+
if (!effect.baked || !before || before.name !== effect.name || before.radius !== effect.radius)
|
|
23664
|
+
throw new Error("Artistic authoring requires a host-generated baked picture cache");
|
|
23665
|
+
}
|
|
23386
23666
|
const source2 = effect.sourceXml ? parseXml(effect.sourceXml).documentElement : void 0;
|
|
23387
23667
|
if (effect.kind === "unsupported" && !source2)
|
|
23388
23668
|
throw new Error("An unsupported picture effect needs source XML");
|
|
@@ -23409,6 +23689,7 @@ function applyPictureEffects(blip, effects) {
|
|
|
23409
23689
|
if (effect.amount < 0) throw new RangeError("Picture alpha must be nonnegative");
|
|
23410
23690
|
set("amt", effect.amount);
|
|
23411
23691
|
}
|
|
23692
|
+
if (effect.kind === "standard") applyStandardPictureEffect(node, effect);
|
|
23412
23693
|
return node;
|
|
23413
23694
|
});
|
|
23414
23695
|
for (const node of elements(blip)) blip.removeChild(node);
|
|
@@ -23526,6 +23807,117 @@ function parseDrawingFlatText3D(node) {
|
|
|
23526
23807
|
return { sourceXml: buildXml(node), ...Number.isSafeInteger(z) ? { z } : {} };
|
|
23527
23808
|
}
|
|
23528
23809
|
|
|
23810
|
+
// drawingml/picture-layout.ts
|
|
23811
|
+
function parsePictureLayout(fill) {
|
|
23812
|
+
const out = {};
|
|
23813
|
+
const rot = fill.getAttribute("rotWithShape");
|
|
23814
|
+
if (rot !== null) out.rotWithShape = rot !== "0" && rot !== "false";
|
|
23815
|
+
const dpi = Number(fill.getAttribute("dpi"));
|
|
23816
|
+
if (fill.hasAttribute("dpi") && Number.isFinite(dpi) && dpi > 0) out.dpi = dpi;
|
|
23817
|
+
const tile = first(fill, "tile", NS.a);
|
|
23818
|
+
if (tile) {
|
|
23819
|
+
const value = {};
|
|
23820
|
+
for (const [key, attr] of [
|
|
23821
|
+
["scaleX", "sx"],
|
|
23822
|
+
["scaleY", "sy"]
|
|
23823
|
+
]) {
|
|
23824
|
+
const n = picturePercentage(tile.getAttribute(attr));
|
|
23825
|
+
if (n !== void 0) value[key] = n;
|
|
23826
|
+
}
|
|
23827
|
+
for (const [key, attr] of [
|
|
23828
|
+
["offsetXEmu", "tx"],
|
|
23829
|
+
["offsetYEmu", "ty"]
|
|
23830
|
+
]) {
|
|
23831
|
+
const raw = tile.getAttribute(attr);
|
|
23832
|
+
const n = raw === null ? NaN : Number(raw);
|
|
23833
|
+
if (Number.isSafeInteger(n)) value[key] = n;
|
|
23834
|
+
}
|
|
23835
|
+
const alignment = tile.getAttribute("algn");
|
|
23836
|
+
if (alignment) value.alignment = alignment;
|
|
23837
|
+
const flip = tile.getAttribute("flip");
|
|
23838
|
+
if (flip && ["none", "x", "y", "xy"].includes(flip))
|
|
23839
|
+
value.flip = flip;
|
|
23840
|
+
out.tile = value;
|
|
23841
|
+
}
|
|
23842
|
+
const rect2 = first(first(fill, "stretch", NS.a), "fillRect", NS.a);
|
|
23843
|
+
if (rect2)
|
|
23844
|
+
out.fillRect = {
|
|
23845
|
+
l: picturePercentage(rect2.getAttribute("l")) ?? 0,
|
|
23846
|
+
t: picturePercentage(rect2.getAttribute("t")) ?? 0,
|
|
23847
|
+
r: picturePercentage(rect2.getAttribute("r")) ?? 0,
|
|
23848
|
+
b: picturePercentage(rect2.getAttribute("b")) ?? 0
|
|
23849
|
+
};
|
|
23850
|
+
return out;
|
|
23851
|
+
}
|
|
23852
|
+
function applyPictureLayout(fill, layout) {
|
|
23853
|
+
const before = parsePictureLayout(fill);
|
|
23854
|
+
const attr = (node, name, value, old) => {
|
|
23855
|
+
if (value === old) return;
|
|
23856
|
+
if (value === void 0) node.removeAttribute(name);
|
|
23857
|
+
else node.setAttribute(name, String(value));
|
|
23858
|
+
};
|
|
23859
|
+
if (layout.rotWithShape !== before.rotWithShape)
|
|
23860
|
+
attr(
|
|
23861
|
+
fill,
|
|
23862
|
+
"rotWithShape",
|
|
23863
|
+
layout.rotWithShape === void 0 ? void 0 : layout.rotWithShape ? "1" : "0",
|
|
23864
|
+
void 0
|
|
23865
|
+
);
|
|
23866
|
+
if (layout.dpi !== before.dpi) {
|
|
23867
|
+
if (layout.dpi !== void 0 && (!Number.isSafeInteger(layout.dpi) || layout.dpi <= 0))
|
|
23868
|
+
throw new RangeError("Invalid picture DPI");
|
|
23869
|
+
attr(fill, "dpi", layout.dpi, void 0);
|
|
23870
|
+
}
|
|
23871
|
+
const make = (parent, name) => {
|
|
23872
|
+
const old = first(parent, name, NS.a);
|
|
23873
|
+
if (old) return old;
|
|
23874
|
+
const node = fill.ownerDocument.createElementNS(NS.a, `a:${name}`);
|
|
23875
|
+
parent.insertBefore(node, first(parent, "extLst", NS.a) ?? null);
|
|
23876
|
+
return node;
|
|
23877
|
+
};
|
|
23878
|
+
if (layout.tile) {
|
|
23879
|
+
const stretch = first(fill, "stretch", NS.a);
|
|
23880
|
+
if (stretch) fill.removeChild(stretch);
|
|
23881
|
+
const tile = make(fill, "tile");
|
|
23882
|
+
for (const [key, name] of [
|
|
23883
|
+
["scaleX", "sx"],
|
|
23884
|
+
["scaleY", "sy"],
|
|
23885
|
+
["offsetXEmu", "tx"],
|
|
23886
|
+
["offsetYEmu", "ty"]
|
|
23887
|
+
]) {
|
|
23888
|
+
const n = layout.tile[key];
|
|
23889
|
+
if (n !== void 0 && (!Number.isFinite(n) || (name === "sx" || name === "sy" ? n <= 0 : !Number.isSafeInteger(n))))
|
|
23890
|
+
throw new RangeError("Invalid picture tile");
|
|
23891
|
+
if (n !== before.tile?.[key])
|
|
23892
|
+
attr(
|
|
23893
|
+
tile,
|
|
23894
|
+
name,
|
|
23895
|
+
n === void 0 ? void 0 : Math.round(n * (name === "sx" || name === "sy" ? 1e5 : 1)),
|
|
23896
|
+
void 0
|
|
23897
|
+
);
|
|
23898
|
+
}
|
|
23899
|
+
if (layout.tile.alignment !== before.tile?.alignment) {
|
|
23900
|
+
if (layout.tile.alignment && !["tl", "t", "tr", "l", "ctr", "r", "bl", "b", "br"].includes(layout.tile.alignment))
|
|
23901
|
+
throw new RangeError("Invalid picture tile alignment");
|
|
23902
|
+
attr(tile, "algn", layout.tile.alignment, void 0);
|
|
23903
|
+
}
|
|
23904
|
+
if (layout.tile.flip !== void 0 && !["none", "x", "y", "xy"].includes(layout.tile.flip))
|
|
23905
|
+
throw new RangeError("Invalid picture tile flip");
|
|
23906
|
+
if (layout.tile.flip !== before.tile?.flip) attr(tile, "flip", layout.tile.flip, void 0);
|
|
23907
|
+
} else if (before.tile || layout.fillRect) {
|
|
23908
|
+
const tile = first(fill, "tile", NS.a);
|
|
23909
|
+
if (tile) fill.removeChild(tile);
|
|
23910
|
+
const rect2 = make(make(fill, "stretch"), "fillRect");
|
|
23911
|
+
for (const key of ["l", "t", "r", "b"]) {
|
|
23912
|
+
const n = layout.fillRect?.[key];
|
|
23913
|
+
if (n !== void 0 && !Number.isFinite(n))
|
|
23914
|
+
throw new RangeError("Invalid picture fill rectangle");
|
|
23915
|
+
if (n !== before.fillRect?.[key])
|
|
23916
|
+
attr(rect2, key, n === void 0 ? void 0 : Math.round(n * 1e5), void 0);
|
|
23917
|
+
}
|
|
23918
|
+
}
|
|
23919
|
+
}
|
|
23920
|
+
|
|
23529
23921
|
// drawingml/picture-crop.ts
|
|
23530
23922
|
var SIDES2 = { l: "cropLeft", t: "cropTop", r: "cropRight", b: "cropBottom" };
|
|
23531
23923
|
function parsePictureCrop(blipFill) {
|
|
@@ -23566,13 +23958,32 @@ function parseDrawingPictureFill(fill) {
|
|
|
23566
23958
|
const linkRelId = blip?.getAttributeNS(NS.r, "link") || void 0;
|
|
23567
23959
|
const crop = parsePictureCrop(fill);
|
|
23568
23960
|
const effects = parsePictureEffects(blip);
|
|
23569
|
-
const
|
|
23570
|
-
const
|
|
23571
|
-
const
|
|
23572
|
-
|
|
23573
|
-
|
|
23574
|
-
|
|
23575
|
-
|
|
23961
|
+
const layout = parsePictureLayout(fill);
|
|
23962
|
+
const unsupported = [];
|
|
23963
|
+
const tile = first(fill, "tile", NS.a), stretch = first(fill, "stretch", NS.a);
|
|
23964
|
+
if (tile && stretch) unsupported.push("tile/stretch-choice");
|
|
23965
|
+
if (tile) {
|
|
23966
|
+
for (const [attr, key] of [
|
|
23967
|
+
["sx", "scaleX"],
|
|
23968
|
+
["sy", "scaleY"],
|
|
23969
|
+
["tx", "offsetXEmu"],
|
|
23970
|
+
["ty", "offsetYEmu"]
|
|
23971
|
+
])
|
|
23972
|
+
if (tile.hasAttribute(attr) && (layout.tile?.[key] === void 0 || (attr === "sx" || attr === "sy") && layout.tile[key] <= 0))
|
|
23973
|
+
unsupported.push(`tile:${attr}`);
|
|
23974
|
+
if (tile.hasAttribute("algn") && !["tl", "t", "tr", "l", "ctr", "r", "bl", "b", "br"].includes(tile.getAttribute("algn") ?? ""))
|
|
23975
|
+
unsupported.push("tile:algn");
|
|
23976
|
+
if (tile.hasAttribute("flip") && !layout.tile?.flip) unsupported.push("tile:flip");
|
|
23977
|
+
}
|
|
23978
|
+
const rect2 = first(stretch, "fillRect", NS.a);
|
|
23979
|
+
if (rect2)
|
|
23980
|
+
for (const key of ["l", "t", "r", "b"]) {
|
|
23981
|
+
const raw = rect2.getAttribute(key);
|
|
23982
|
+
if (raw !== null && !/^[-+]?(?:\d+\.?\d*|\.\d+)%?$/.test(raw))
|
|
23983
|
+
unsupported.push(`fillRect:${key}`);
|
|
23984
|
+
}
|
|
23985
|
+
if (fill.hasAttribute("rotWithShape") && !["0", "1", "true", "false"].includes(fill.getAttribute("rotWithShape") ?? ""))
|
|
23986
|
+
unsupported.push("rotWithShape");
|
|
23576
23987
|
return {
|
|
23577
23988
|
kind: "picture",
|
|
23578
23989
|
sourceXml: buildXml(fill),
|
|
@@ -23580,6 +23991,7 @@ function parseDrawingPictureFill(fill) {
|
|
|
23580
23991
|
...linkRelId ? { linkRelId } : {},
|
|
23581
23992
|
...crop ? { crop } : {},
|
|
23582
23993
|
...effects.length ? { effects } : {},
|
|
23994
|
+
...Object.keys(layout).length ? { layout } : {},
|
|
23583
23995
|
...unsupported.length ? { unsupportedPicture: unsupported } : {}
|
|
23584
23996
|
};
|
|
23585
23997
|
}
|
|
@@ -25904,80 +26316,6 @@ function writeInsertedDiagramData(diagram, createModelId = createOfficeGuid) {
|
|
|
25904
26316
|
return writeEditedDiagramData(skeleton, nodes, { createModelId });
|
|
25905
26317
|
}
|
|
25906
26318
|
|
|
25907
|
-
// drawingml/write-color.ts
|
|
25908
|
-
var ELEMENTS = {
|
|
25909
|
-
srgb: "srgbClr",
|
|
25910
|
-
scheme: "schemeClr",
|
|
25911
|
-
system: "sysClr",
|
|
25912
|
-
preset: "prstClr",
|
|
25913
|
-
scrgb: "scrgbClr",
|
|
25914
|
-
hsl: "hslClr"
|
|
25915
|
-
};
|
|
25916
|
-
function drawingColorXml(color) {
|
|
25917
|
-
const local = ELEMENTS[color.kind];
|
|
25918
|
-
const doc = parseXml(`<a:${local} xmlns:a="${NS.a}"/>`);
|
|
25919
|
-
const root = doc.documentElement;
|
|
25920
|
-
if (color.kind === "scrgb" || color.kind === "hsl") {
|
|
25921
|
-
const keys = color.kind === "scrgb" ? ["r", "g", "b"] : ["hue", "sat", "lum"];
|
|
25922
|
-
const values = color.value.split(",");
|
|
25923
|
-
keys.forEach((key, i) => root.setAttribute(key, values[i] ?? "0"));
|
|
25924
|
-
} else root.setAttribute("val", color.value);
|
|
25925
|
-
if (color.fallback !== void 0 && color.kind === "system")
|
|
25926
|
-
root.setAttribute("lastClr", color.fallback);
|
|
25927
|
-
for (const transform of color.transforms) {
|
|
25928
|
-
if (!/^[A-Za-z_][\w.-]*$/.test(transform.name))
|
|
25929
|
-
throw new Error(`Invalid DrawingML transform ${transform.name}`);
|
|
25930
|
-
const node = doc.createElementNS(NS.a, `a:${transform.name}`);
|
|
25931
|
-
if (transform.value !== "") node.setAttribute("val", transform.value);
|
|
25932
|
-
root.appendChild(node);
|
|
25933
|
-
}
|
|
25934
|
-
return buildXml(doc);
|
|
25935
|
-
}
|
|
25936
|
-
|
|
25937
|
-
// drawingml/patch-color.ts
|
|
25938
|
-
function patchDrawingColorIn(container, color) {
|
|
25939
|
-
const old = elements(container).find((node) => parseDrawingColor(node));
|
|
25940
|
-
const before = parseDrawingColorIn(container);
|
|
25941
|
-
if (!old || !before || before.kind !== color.kind) {
|
|
25942
|
-
const next = container.ownerDocument.importNode(
|
|
25943
|
-
parseXml(drawingColorXml(color)).documentElement,
|
|
25944
|
-
true
|
|
25945
|
-
);
|
|
25946
|
-
if (old) container.replaceChild(next, old);
|
|
25947
|
-
else container.insertBefore(next, container.firstChild);
|
|
25948
|
-
return;
|
|
25949
|
-
}
|
|
25950
|
-
if (before.value !== color.value) {
|
|
25951
|
-
if (color.kind === "scrgb" || color.kind === "hsl") {
|
|
25952
|
-
const keys = color.kind === "scrgb" ? ["r", "g", "b"] : ["hue", "sat", "lum"];
|
|
25953
|
-
const values = color.value.split(",");
|
|
25954
|
-
keys.forEach((key, index) => old.setAttribute(key, values[index] ?? "0"));
|
|
25955
|
-
} else old.setAttribute("val", color.value);
|
|
25956
|
-
}
|
|
25957
|
-
if (before.fallback !== color.fallback && color.kind === "system") {
|
|
25958
|
-
if (color.fallback === void 0) old.removeAttribute("lastClr");
|
|
25959
|
-
else old.setAttribute("lastClr", color.fallback);
|
|
25960
|
-
}
|
|
25961
|
-
const originals = elements(old);
|
|
25962
|
-
color.transforms.forEach((transform, index) => {
|
|
25963
|
-
const source2 = originals[index];
|
|
25964
|
-
if (source2?.localName === transform.name) {
|
|
25965
|
-
if (before.transforms[index]?.value !== transform.value) {
|
|
25966
|
-
if (transform.value === "") source2.removeAttribute("val");
|
|
25967
|
-
else source2.setAttribute("val", transform.value);
|
|
25968
|
-
}
|
|
25969
|
-
return;
|
|
25970
|
-
}
|
|
25971
|
-
if (!/^[A-Za-z_][\w.-]*$/u.test(transform.name))
|
|
25972
|
-
throw new Error("Invalid DrawingML colour transform");
|
|
25973
|
-
const next = old.ownerDocument.createElementNS(NS.a, `a:${transform.name}`);
|
|
25974
|
-
if (transform.value !== "") next.setAttribute("val", transform.value);
|
|
25975
|
-
if (source2) old.replaceChild(next, source2);
|
|
25976
|
-
else old.appendChild(next);
|
|
25977
|
-
});
|
|
25978
|
-
for (const extra of originals.slice(color.transforms.length)) old.removeChild(extra);
|
|
25979
|
-
}
|
|
25980
|
-
|
|
25981
26319
|
// drawingml/write-pattern-picture.ts
|
|
25982
26320
|
function drawingPatternPictureXml(fill) {
|
|
25983
26321
|
const name = fill.kind === "pattern" ? "pattFill" : "blipFill";
|
|
@@ -26039,7 +26377,8 @@ function drawingPatternPictureXml(fill) {
|
|
|
26039
26377
|
applyPictureCrop(root, fill.crop);
|
|
26040
26378
|
if (fill.effects !== void 0 && JSON.stringify(before?.kind === "picture" ? before.effects ?? [] : []) !== JSON.stringify(fill.effects ?? []))
|
|
26041
26379
|
applyPictureEffects(blip, fill.effects ?? []);
|
|
26042
|
-
if (
|
|
26380
|
+
if (fill.layout !== void 0) applyPictureLayout(root, fill.layout);
|
|
26381
|
+
if (!fill.sourceXml && !fill.layout?.tile && !first(root, "stretch", NS.a)) {
|
|
26043
26382
|
const stretch = doc.createElementNS(NS.a, "a:stretch");
|
|
26044
26383
|
stretch.appendChild(doc.createElementNS(NS.a, "a:fillRect"));
|
|
26045
26384
|
root.appendChild(stretch);
|
|
@@ -27797,6 +28136,252 @@ function approximateDiagramDrawingFromNodes(input) {
|
|
|
27797
28136
|
});
|
|
27798
28137
|
}
|
|
27799
28138
|
|
|
28139
|
+
// opc/relationship-types.ts
|
|
28140
|
+
var BASE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
28141
|
+
var RELATIONSHIP_TYPES = {
|
|
28142
|
+
image: `${BASE}/image`,
|
|
28143
|
+
diagramData: `${BASE}/diagramData`,
|
|
28144
|
+
diagramLayout: `${BASE}/diagramLayout`,
|
|
28145
|
+
diagramQuickStyle: `${BASE}/diagramQuickStyle`,
|
|
28146
|
+
diagramColors: `${BASE}/diagramColors`,
|
|
28147
|
+
diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"};
|
|
28148
|
+
|
|
28149
|
+
// opc/relationships.ts
|
|
28150
|
+
function parseRelationships(xml) {
|
|
28151
|
+
const map = /* @__PURE__ */ new Map();
|
|
28152
|
+
if (!xml) return map;
|
|
28153
|
+
const root = parseXml(xml).documentElement;
|
|
28154
|
+
for (const node of elements(root)) {
|
|
28155
|
+
if (node.localName !== "Relationship") continue;
|
|
28156
|
+
const id = node.getAttribute("Id");
|
|
28157
|
+
const target = node.getAttribute("Target");
|
|
28158
|
+
if (!id || target == null) continue;
|
|
28159
|
+
map.set(id, {
|
|
28160
|
+
id,
|
|
28161
|
+
type: node.getAttribute("Type") ?? "",
|
|
28162
|
+
target,
|
|
28163
|
+
mode: node.getAttribute("TargetMode") === "External" ? "External" : "Internal"
|
|
28164
|
+
});
|
|
28165
|
+
}
|
|
28166
|
+
return map;
|
|
28167
|
+
}
|
|
28168
|
+
var escapeAttr = (value) => value.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<");
|
|
28169
|
+
function buildRelationshipsXml(relationships) {
|
|
28170
|
+
const items = Array.from(relationships).map(([id, rel]) => {
|
|
28171
|
+
const mode = rel.mode === "External" ? ' TargetMode="External"' : "";
|
|
28172
|
+
return `<Relationship Id="${escapeAttr(id)}" Type="${escapeAttr(rel.type)}" Target="${escapeAttr(rel.target)}"${mode}/>`;
|
|
28173
|
+
}).join("");
|
|
28174
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${NS.rels}">${items}</Relationships>`;
|
|
28175
|
+
}
|
|
28176
|
+
function resolvePartPath(basePart, target) {
|
|
28177
|
+
if (target.startsWith("/")) return target.slice(1);
|
|
28178
|
+
const baseDir = basePart.slice(0, basePart.lastIndexOf("/") + 1);
|
|
28179
|
+
const resolved = [];
|
|
28180
|
+
for (const segment of `${baseDir}${target}`.split("/")) {
|
|
28181
|
+
if (segment === "." || segment === "") continue;
|
|
28182
|
+
if (segment === "..") resolved.pop();
|
|
28183
|
+
else resolved.push(segment);
|
|
28184
|
+
}
|
|
28185
|
+
return resolved.join("/");
|
|
28186
|
+
}
|
|
28187
|
+
|
|
28188
|
+
// diagram/picture-layout.ts
|
|
28189
|
+
var DIAGRAM_PICTURE_SOURCE_NS = "urn:ooxml-core:diagram-picture-sources:1";
|
|
28190
|
+
function remapFill(fill, id) {
|
|
28191
|
+
if (!fill.sourceXml) return { ...fill, relId: id };
|
|
28192
|
+
const node = parseXml(fill.sourceXml).documentElement;
|
|
28193
|
+
const blip = first(node, "blip", NS.a);
|
|
28194
|
+
if (blip) {
|
|
28195
|
+
blip.setAttributeNS(NS.r, "r:embed", id);
|
|
28196
|
+
blip.removeAttributeNS(NS.r, "link");
|
|
28197
|
+
}
|
|
28198
|
+
return { ...fill, relId: id, sourceXml: buildXml(node) };
|
|
28199
|
+
}
|
|
28200
|
+
function captureDiagramPictures(model, dataXml, dataParts, drawing) {
|
|
28201
|
+
const pictures = [];
|
|
28202
|
+
const parts = { ...dataParts };
|
|
28203
|
+
const add2 = (source2, owner) => {
|
|
28204
|
+
const part = source2.fill.relId ? owner[source2.fill.relId] : void 0;
|
|
28205
|
+
if (!part) return;
|
|
28206
|
+
let id = Object.keys(parts).find((key) => parts[key] === part);
|
|
28207
|
+
if (!id) {
|
|
28208
|
+
let index = 1;
|
|
28209
|
+
while (Object.hasOwn(parts, `ooxmlDiagramPicture${index}`)) index++;
|
|
28210
|
+
id = `ooxmlDiagramPicture${index}`;
|
|
28211
|
+
parts[id] = part;
|
|
28212
|
+
}
|
|
28213
|
+
const entry = { ...source2, fill: remapFill(source2.fill, id) };
|
|
28214
|
+
const existing = pictures.findIndex(
|
|
28215
|
+
(item2) => item2.nodeId === entry.nodeId && (item2.role === entry.role && item2.styleLabel === entry.styleLabel || !item2.role && !item2.styleLabel && item2.fill.relId === entry.fill.relId)
|
|
28216
|
+
);
|
|
28217
|
+
if (existing < 0) pictures.push(entry);
|
|
28218
|
+
else pictures[existing] = entry;
|
|
28219
|
+
};
|
|
28220
|
+
const root = parseXml(dataXml).documentElement;
|
|
28221
|
+
const saved = root.getElementsByTagNameNS(DIAGRAM_PICTURE_SOURCE_NS, "picture");
|
|
28222
|
+
for (const element2 of saved) {
|
|
28223
|
+
const nodeId = element2.getAttribute("nodeId");
|
|
28224
|
+
const fill = first(element2, "blipFill", NS.a);
|
|
28225
|
+
if (nodeId && fill && model.nodes.some((node) => node.modelId === nodeId))
|
|
28226
|
+
add2(
|
|
28227
|
+
{
|
|
28228
|
+
nodeId,
|
|
28229
|
+
fill: parseDrawingPictureFill(fill),
|
|
28230
|
+
...element2.getAttribute("role") ? { role: element2.getAttribute("role") } : {},
|
|
28231
|
+
...element2.getAttribute("styleLabel") ? { styleLabel: element2.getAttribute("styleLabel") } : {}
|
|
28232
|
+
},
|
|
28233
|
+
dataParts
|
|
28234
|
+
);
|
|
28235
|
+
}
|
|
28236
|
+
for (const point of model.points) {
|
|
28237
|
+
if (point.fill?.kind !== "picture") continue;
|
|
28238
|
+
const nodeId = point.type === "pres" ? point.presAssocId : point.modelId;
|
|
28239
|
+
if (nodeId && model.nodes.some((node) => node.modelId === nodeId) && !pictures.some((item2) => item2.nodeId === nodeId))
|
|
28240
|
+
add2(
|
|
28241
|
+
{
|
|
28242
|
+
nodeId,
|
|
28243
|
+
fill: point.fill,
|
|
28244
|
+
...point.presName ? { role: point.presName } : {},
|
|
28245
|
+
...point.presStyleLabel ? { styleLabel: point.presStyleLabel } : {}
|
|
28246
|
+
},
|
|
28247
|
+
dataParts
|
|
28248
|
+
);
|
|
28249
|
+
}
|
|
28250
|
+
for (const shape of drawing?.shapes ?? []) {
|
|
28251
|
+
if (shape.fill?.kind !== "picture") continue;
|
|
28252
|
+
const point = model.points.find((point2) => point2.modelId === shape.modelId);
|
|
28253
|
+
const nodeId = shape.sourceNodeId ?? (point?.type === "pres" ? point.presAssocId : point?.modelId);
|
|
28254
|
+
const part = shape.fill.relId ? drawing?.pictureParts?.[shape.fill.relId] : void 0;
|
|
28255
|
+
if (saved.length && pictures.some(
|
|
28256
|
+
(item2) => item2.nodeId === nodeId && item2.fill.relId && parts[item2.fill.relId] === part && item2.role !== point?.presName && item2.styleLabel !== point?.presStyleLabel
|
|
28257
|
+
))
|
|
28258
|
+
continue;
|
|
28259
|
+
if (nodeId && model.nodes.some((node) => node.modelId === nodeId))
|
|
28260
|
+
add2(
|
|
28261
|
+
{
|
|
28262
|
+
nodeId,
|
|
28263
|
+
fill: shape.fill,
|
|
28264
|
+
...point?.presName ? { role: point.presName } : {},
|
|
28265
|
+
...point?.presStyleLabel ? { styleLabel: point.presStyleLabel } : {}
|
|
28266
|
+
},
|
|
28267
|
+
drawing?.pictureParts ?? {}
|
|
28268
|
+
);
|
|
28269
|
+
}
|
|
28270
|
+
return pictures.length ? { pictures, pictureParts: parts } : {};
|
|
28271
|
+
}
|
|
28272
|
+
function applyDiagramPictureSources(drawing, nodes, source2, issues, liveNodeIds) {
|
|
28273
|
+
if (!source2?.pictures?.length) return;
|
|
28274
|
+
if (source2.pictureParts) drawing.pictureParts = { ...source2.pictureParts };
|
|
28275
|
+
const used = /* @__PURE__ */ new Set();
|
|
28276
|
+
nodes.forEach((node, index) => {
|
|
28277
|
+
if (!node.picturePlaceholder || !node.nodeId) return;
|
|
28278
|
+
const shape = drawing.shapes[index];
|
|
28279
|
+
if (!shape) return;
|
|
28280
|
+
const candidates = source2.pictures.filter((picture2) => picture2.nodeId === node.nodeId);
|
|
28281
|
+
const matching = candidates.filter(
|
|
28282
|
+
(picture2) => picture2.role === node.layoutRole || !!picture2.styleLabel && picture2.styleLabel === node.styleLabel
|
|
28283
|
+
);
|
|
28284
|
+
const picture = matching.length === 1 ? matching[0] : candidates.length === 1 ? candidates[0] : void 0;
|
|
28285
|
+
if (picture) {
|
|
28286
|
+
shape.fill = structuredClone(picture.fill);
|
|
28287
|
+
delete shape.text;
|
|
28288
|
+
delete shape.body;
|
|
28289
|
+
used.add(picture);
|
|
28290
|
+
} else if (candidates.length)
|
|
28291
|
+
issues.push({
|
|
28292
|
+
code: "DIAGRAM_PICTURE_AMBIGUOUS",
|
|
28293
|
+
message: `Picture role ${node.layoutRole ?? node.key} has multiple source pictures; no arbitrary assignment was made.`
|
|
28294
|
+
});
|
|
28295
|
+
});
|
|
28296
|
+
if (source2.pictures.some(
|
|
28297
|
+
(picture) => (!liveNodeIds || liveNodeIds.has(picture.nodeId)) && !used.has(picture)
|
|
28298
|
+
))
|
|
28299
|
+
issues.push({
|
|
28300
|
+
code: "DIAGRAM_PICTURE_LAYOUT_UNSUPPORTED",
|
|
28301
|
+
message: "Some retained pictures have no matching image placeholder in this layout. Their source associations are preserved for a compatible layout."
|
|
28302
|
+
});
|
|
28303
|
+
}
|
|
28304
|
+
function withDiagramPictureSources(dataXml, source2) {
|
|
28305
|
+
if (!source2?.pictures?.length) return dataXml;
|
|
28306
|
+
const doc = parseXml(dataXml);
|
|
28307
|
+
const root = doc.documentElement;
|
|
28308
|
+
const points = first(root, "ptLst", NS.dgm);
|
|
28309
|
+
const live = children(points ?? root, "pt", NS.dgm).filter(
|
|
28310
|
+
(point) => !["doc", "pres", "parTrans", "sibTrans"].includes(point.getAttribute("type") ?? "node")
|
|
28311
|
+
);
|
|
28312
|
+
for (const element2 of [...root.getElementsByTagNameNS(DIAGRAM_PICTURE_SOURCE_NS, "pictures")]) {
|
|
28313
|
+
const extension2 = element2.parentNode;
|
|
28314
|
+
if (extension2?.parentNode) extension2.parentNode.removeChild(extension2);
|
|
28315
|
+
}
|
|
28316
|
+
const retained = source2.pictures.filter(
|
|
28317
|
+
(picture) => live.some((point) => point.getAttribute("modelId") === picture.nodeId)
|
|
28318
|
+
);
|
|
28319
|
+
if (!retained.length) return buildXml(doc);
|
|
28320
|
+
const list2 = first(root, "extLst", NS.dgm) ?? doc.createElementNS(NS.dgm, "dgm:extLst");
|
|
28321
|
+
if (!list2.parentNode) root.appendChild(list2);
|
|
28322
|
+
const extension = doc.createElementNS(NS.a, "a:ext");
|
|
28323
|
+
extension.setAttribute("uri", DIAGRAM_PICTURE_SOURCE_NS);
|
|
28324
|
+
const payload = doc.createElementNS(DIAGRAM_PICTURE_SOURCE_NS, "op:pictures");
|
|
28325
|
+
extension.appendChild(payload);
|
|
28326
|
+
list2.appendChild(extension);
|
|
28327
|
+
for (const picture of retained) {
|
|
28328
|
+
if (!picture.fill.sourceXml)
|
|
28329
|
+
throw new Error("A retained SmartArt picture needs source fill XML");
|
|
28330
|
+
const element2 = doc.createElementNS(DIAGRAM_PICTURE_SOURCE_NS, "op:picture");
|
|
28331
|
+
element2.setAttribute("nodeId", picture.nodeId);
|
|
28332
|
+
if (picture.role) element2.setAttribute("role", picture.role);
|
|
28333
|
+
if (picture.styleLabel) element2.setAttribute("styleLabel", picture.styleLabel);
|
|
28334
|
+
const fill = parseXml(picture.fill.sourceXml).documentElement;
|
|
28335
|
+
element2.appendChild(doc.importNode(fill, true));
|
|
28336
|
+
payload.appendChild(element2);
|
|
28337
|
+
const presentations = children(points ?? root, "pt", NS.dgm).filter((point) => {
|
|
28338
|
+
const props = first(point, "prSet", NS.dgm);
|
|
28339
|
+
return point.getAttribute("type") === "pres" && props?.getAttribute("presAssocID") === picture.nodeId && (picture.role && props.getAttribute("presName") === picture.role || picture.styleLabel && props.getAttribute("presStyleLbl") === picture.styleLabel);
|
|
28340
|
+
});
|
|
28341
|
+
if (presentations.length === 1) {
|
|
28342
|
+
const point = presentations[0];
|
|
28343
|
+
const props = first(point, "spPr", NS.dgm) ?? doc.createElementNS(NS.dgm, "dgm:spPr");
|
|
28344
|
+
if (!props.parentNode) point.appendChild(props);
|
|
28345
|
+
for (const old of [...props.childNodes].filter((node) => node.nodeType === 1).filter(
|
|
28346
|
+
(node) => node.namespaceURI === NS.a && ["blipFill", "solidFill", "gradFill", "pattFill", "noFill", "grpFill"].includes(
|
|
28347
|
+
node.localName
|
|
28348
|
+
)
|
|
28349
|
+
))
|
|
28350
|
+
props.removeChild(old);
|
|
28351
|
+
props.insertBefore(doc.importNode(fill, true), props.firstChild);
|
|
28352
|
+
}
|
|
28353
|
+
}
|
|
28354
|
+
return buildXml(doc);
|
|
28355
|
+
}
|
|
28356
|
+
function diagramPictureRelationships(owner, source2, existing) {
|
|
28357
|
+
if (!source2?.pictures?.length || !source2.pictureParts) return existing;
|
|
28358
|
+
const rels = parseRelationships(existing);
|
|
28359
|
+
for (const [id, part] of Object.entries(source2.pictureParts)) {
|
|
28360
|
+
const previous = rels.get(id);
|
|
28361
|
+
if (previous && (previous.mode === "External" || resolvePartPath(owner, previous.target) !== part))
|
|
28362
|
+
throw new Error(`Conflicting SmartArt picture relationship: ${id}`);
|
|
28363
|
+
rels.set(id, { id, type: RELATIONSHIP_TYPES.image, target: `/${part}`, mode: "Internal" });
|
|
28364
|
+
}
|
|
28365
|
+
return buildRelationshipsXml(rels);
|
|
28366
|
+
}
|
|
28367
|
+
|
|
28368
|
+
// diagram/layout-role-style.ts
|
|
28369
|
+
function applyDiagramRoleColors(shape, role, index, minorFont) {
|
|
28370
|
+
const at = (colors) => colors[index % colors.length];
|
|
28371
|
+
const fill = role && at(role.fill.colors);
|
|
28372
|
+
if (fill && shape.fill?.kind !== "none" && shape.fill?.kind !== "picture")
|
|
28373
|
+
shape.fill = { kind: "solid", color: structuredClone(fill) };
|
|
28374
|
+
const line2 = role && at(role.line.colors);
|
|
28375
|
+
if (line2 && shape.line) shape.line.fill = { kind: "solid", color: structuredClone(line2) };
|
|
28376
|
+
const text2 = role && at(role.textFill.colors);
|
|
28377
|
+
for (const paragraph of shape.text?.paragraphs ?? []) {
|
|
28378
|
+
for (const run of paragraph.runs) {
|
|
28379
|
+
if (!run.color && text2) run.color = structuredClone(text2);
|
|
28380
|
+
if (!run.typeface && minorFont) run.typeface = minorFont;
|
|
28381
|
+
}
|
|
28382
|
+
}
|
|
28383
|
+
}
|
|
28384
|
+
|
|
27800
28385
|
// diagram/layout-preview.ts
|
|
27801
28386
|
function diagramLayoutData(input) {
|
|
27802
28387
|
const original = input.source?.dataXml ? parseDiagramDataModel(input.source.dataXml) : void 0;
|
|
@@ -27942,6 +28527,8 @@ function previewDiagramLayout(input) {
|
|
|
27942
28527
|
];
|
|
27943
28528
|
});
|
|
27944
28529
|
const drawing2 = diagramDrawingFromViews(views);
|
|
28530
|
+
drawing2.extentEmu = { ...input.extentEmu };
|
|
28531
|
+
const colors = input.source?.colorsXml ? parseDiagramColors(input.source.colorsXml) : void 0;
|
|
27945
28532
|
const quickStyle = input.source?.quickStyleXml ? parseDiagramQuickStyle(input.source.quickStyleXml) : void 0;
|
|
27946
28533
|
const originalModel = input.source?.dataXml ? parseDiagramDataModel(input.source.dataXml) : void 0;
|
|
27947
28534
|
result.nodes.forEach((node, index) => {
|
|
@@ -27952,7 +28539,9 @@ function previewDiagramLayout(input) {
|
|
|
27952
28539
|
shape.style = label;
|
|
27953
28540
|
shape.has3d = label.requires3d ?? label.hasShape3d;
|
|
27954
28541
|
}
|
|
27955
|
-
|
|
28542
|
+
const contextNodeId = node.nodeId ?? node.contextNodeId;
|
|
28543
|
+
if (contextNodeId) shape.sourceNodeId = contextNodeId;
|
|
28544
|
+
if (node.layoutRole) shape.sourceLayoutRole = node.layoutRole;
|
|
27956
28545
|
if (node.styleLabel) shape.sourceStyleLabel = node.styleLabel;
|
|
27957
28546
|
if (node.foldedNodeIds?.length) shape.foldedNodeIds = node.foldedNodeIds;
|
|
27958
28547
|
const sourceNode = data.nodes.find((entry) => entry.id === node.nodeId);
|
|
@@ -27965,15 +28554,36 @@ function previewDiagramLayout(input) {
|
|
|
27965
28554
|
if (fill) shape.fill = fill;
|
|
27966
28555
|
}
|
|
27967
28556
|
const direct = originalModel?.nodes.find((entry) => entry.modelId === node.nodeId);
|
|
27968
|
-
if (direct?.fill) shape.fill = direct.fill;
|
|
27969
|
-
if (direct?.line) shape.line = { ...shape.line, ...direct.line };
|
|
27970
28557
|
const sourceIds = [node.nodeId, ...node.foldedNodeIds ?? []];
|
|
27971
28558
|
const textNodes = sourceIds.flatMap((id) => {
|
|
27972
28559
|
const source2 = input.nodes.find((entry) => entry.id === id);
|
|
27973
28560
|
return source2 ? [source2] : [];
|
|
27974
28561
|
});
|
|
27975
28562
|
if (textNodes.length) shape.text = diagramPreviewText(textNodes, node.fontSize);
|
|
28563
|
+
if (shape.text) {
|
|
28564
|
+
if (node.textVerticalAnchor) shape.text.anchor = node.textVerticalAnchor;
|
|
28565
|
+
for (const paragraph of shape.text.paragraphs)
|
|
28566
|
+
if (!paragraph.align && node.textAlign) paragraph.align = node.textAlign;
|
|
28567
|
+
}
|
|
28568
|
+
applyDiagramRoleColors(
|
|
28569
|
+
shape,
|
|
28570
|
+
colors?.labels.find((label2) => label2.name === node.styleLabel),
|
|
28571
|
+
Math.max(
|
|
28572
|
+
0,
|
|
28573
|
+
input.nodes.findIndex((entry) => entry.id === contextNodeId)
|
|
28574
|
+
),
|
|
28575
|
+
input.minorFont
|
|
28576
|
+
);
|
|
28577
|
+
if (direct?.fill && direct.fill.kind !== "picture") shape.fill = direct.fill;
|
|
28578
|
+
if (direct?.line) shape.line = { ...shape.line, ...direct.line };
|
|
27976
28579
|
});
|
|
28580
|
+
applyDiagramPictureSources(
|
|
28581
|
+
drawing2,
|
|
28582
|
+
result.nodes,
|
|
28583
|
+
input.source,
|
|
28584
|
+
issues,
|
|
28585
|
+
new Set(input.nodes.map((node) => node.id))
|
|
28586
|
+
);
|
|
27977
28587
|
return { drawing: drawing2, mode: "interpreted", issues };
|
|
27978
28588
|
}
|
|
27979
28589
|
} catch (error) {
|
|
@@ -28014,9 +28624,9 @@ function resolveDiagramDrawingStyles(drawing, scheme2) {
|
|
|
28014
28624
|
|
|
28015
28625
|
// diagram/write/cache.ts
|
|
28016
28626
|
var DSP2 = "http://schemas.microsoft.com/office/drawing/2008/diagram";
|
|
28017
|
-
function add(parent, namespace, name,
|
|
28627
|
+
function add(parent, namespace, name, attrs2 = {}) {
|
|
28018
28628
|
const child3 = parent.ownerDocument.createElementNS(namespace, name);
|
|
28019
|
-
for (const [key, value] of Object.entries(
|
|
28629
|
+
for (const [key, value] of Object.entries(attrs2)) child3.setAttribute(key, value);
|
|
28020
28630
|
parent.appendChild(child3);
|
|
28021
28631
|
return child3;
|
|
28022
28632
|
}
|
|
@@ -28034,6 +28644,7 @@ function withDiagramDrawingRelationship(xml, relationshipId) {
|
|
|
28034
28644
|
return buildXml(doc);
|
|
28035
28645
|
}
|
|
28036
28646
|
function buildGeneratedDiagramCache(dataXml, input) {
|
|
28647
|
+
dataXml = withDiagramPictureSources(dataXml, input.source);
|
|
28037
28648
|
const source2 = { ...input.source, dataXml };
|
|
28038
28649
|
const model = parseDiagramDataModel(dataXml);
|
|
28039
28650
|
const scheme2 = { ...DEFAULT_GENERATED_DIAGRAM_SCHEME, ...input.scheme };
|
|
@@ -28060,7 +28671,10 @@ function buildGeneratedDiagramCache(dataXml, input) {
|
|
|
28060
28671
|
}
|
|
28061
28672
|
for (const shape of drawing.shapes) {
|
|
28062
28673
|
if (shape.has3d || shape.foldedNodeIds?.length) return void 0;
|
|
28063
|
-
if (shape.fill && !["none", "solid", "gradient"].includes(shape.fill.kind))
|
|
28674
|
+
if (shape.fill && !["none", "solid", "gradient", "picture"].includes(shape.fill.kind))
|
|
28675
|
+
return void 0;
|
|
28676
|
+
if (shape.fill?.kind === "picture" && (!shape.fill.relId || !drawing.pictureParts?.[shape.fill.relId]))
|
|
28677
|
+
return void 0;
|
|
28064
28678
|
if (shape.fill?.kind === "gradient" && shape.fill.path && !["circle", "rect"].includes(shape.fill.path))
|
|
28065
28679
|
return void 0;
|
|
28066
28680
|
if (shape.effects?.effects.some(
|
|
@@ -28167,12 +28781,15 @@ function buildGeneratedDiagramCache(dataXml, input) {
|
|
|
28167
28781
|
const point = add(points, NS.dgm, "dgm:pt", { modelId: id, type: "pres" });
|
|
28168
28782
|
add(point, NS.dgm, "dgm:prSet", {
|
|
28169
28783
|
...shape.sourceNodeId ? { presAssocID: shape.sourceNodeId } : {},
|
|
28170
|
-
presName: "node",
|
|
28784
|
+
presName: shape.sourceLayoutRole ?? "node",
|
|
28171
28785
|
presStyleLbl: shape.sourceStyleLabel ?? "node1",
|
|
28172
28786
|
presStyleIdx: String(index),
|
|
28173
28787
|
presStyleCnt: String(drawing.shapes.length)
|
|
28174
28788
|
});
|
|
28175
|
-
add(point, NS.dgm, "dgm:spPr");
|
|
28789
|
+
const properties = add(point, NS.dgm, "dgm:spPr");
|
|
28790
|
+
if (shape.fill?.kind === "picture" && shape.fill.sourceXml) {
|
|
28791
|
+
properties.appendChild(doc.importNode(parseXml(shape.fill.sourceXml).documentElement, true));
|
|
28792
|
+
}
|
|
28176
28793
|
if (shape.sourceNodeId)
|
|
28177
28794
|
add(connections, NS.dgm, "dgm:cxn", {
|
|
28178
28795
|
modelId: createOfficeGuid(),
|
|
@@ -28185,7 +28802,11 @@ function buildGeneratedDiagramCache(dataXml, input) {
|
|
|
28185
28802
|
});
|
|
28186
28803
|
add(marker, GENERATED_DIAGRAM_CACHE_NS, "oc:shape", { id });
|
|
28187
28804
|
});
|
|
28188
|
-
return {
|
|
28805
|
+
return {
|
|
28806
|
+
dataXml: buildXml(doc),
|
|
28807
|
+
drawingXml: serialized.xml,
|
|
28808
|
+
...drawing.pictureParts ? { pictureParts: drawing.pictureParts } : {}
|
|
28809
|
+
};
|
|
28189
28810
|
}
|
|
28190
28811
|
|
|
28191
28812
|
// diagram/strings/de.ts
|
|
@@ -28631,15 +29252,6 @@ var zhCN = {
|
|
|
28631
29252
|
// diagram/strings/index.ts
|
|
28632
29253
|
var DIAGRAM_UI_STRINGS = { en, fr, de, es, "zh-CN": zhCN };
|
|
28633
29254
|
|
|
28634
|
-
// opc/relationship-types.ts
|
|
28635
|
-
var BASE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
28636
|
-
var RELATIONSHIP_TYPES = {
|
|
28637
|
-
diagramData: `${BASE}/diagramData`,
|
|
28638
|
-
diagramLayout: `${BASE}/diagramLayout`,
|
|
28639
|
-
diagramQuickStyle: `${BASE}/diagramQuickStyle`,
|
|
28640
|
-
diagramColors: `${BASE}/diagramColors`,
|
|
28641
|
-
diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"};
|
|
28642
|
-
|
|
28643
29255
|
// diagram/relationships.ts
|
|
28644
29256
|
function diagramRelationshipsPart(partPath) {
|
|
28645
29257
|
const dir = partPath.replace(/\/[^/]+$/u, "");
|
|
@@ -29079,6 +29691,7 @@ var themeColorResolver = (theme) => (color) => resolveDrawingColor(color, theme)
|
|
|
29079
29691
|
var PX_PER_PT7 = 96 / 72;
|
|
29080
29692
|
function resolveFill(fill, resolve) {
|
|
29081
29693
|
const view = {};
|
|
29694
|
+
if (fill?.kind === "picture") view.pictureFill = fill;
|
|
29082
29695
|
const hex = (color) => color ? resolve(color)?.hex : void 0;
|
|
29083
29696
|
switch (fill?.kind) {
|
|
29084
29697
|
case "none":
|
|
@@ -29335,6 +29948,29 @@ async function loadDiagram(hostPart, relationshipIds, host) {
|
|
|
29335
29948
|
code: "DIAGRAM_DRAWING_ABSENT",
|
|
29336
29949
|
message: "The package has no cached drawing for this diagram; its layout can only be recomputed from the layout definition."
|
|
29337
29950
|
});
|
|
29951
|
+
if (data && layoutSource.dataXml) {
|
|
29952
|
+
let pictureParts = {};
|
|
29953
|
+
if (paths.data) {
|
|
29954
|
+
const owner = paths.data;
|
|
29955
|
+
try {
|
|
29956
|
+
const entries = await host.readRelationshipEntries(diagramRelationshipsPart(owner));
|
|
29957
|
+
pictureParts = Object.fromEntries(
|
|
29958
|
+
(entries ?? []).filter(
|
|
29959
|
+
(entry) => entry.type.endsWith("/image") && entry.mode !== "External" && !/^[a-z][a-z0-9+.-]*:/i.test(entry.target)
|
|
29960
|
+
).map((entry) => [entry.id, host.resolvePath(owner, entry.target)])
|
|
29961
|
+
);
|
|
29962
|
+
} catch {
|
|
29963
|
+
issues.push({
|
|
29964
|
+
code: "DIAGRAM_PICTURE_RELATIONSHIPS_UNREADABLE",
|
|
29965
|
+
message: "Picture relationships in the diagram data could not be read."
|
|
29966
|
+
});
|
|
29967
|
+
}
|
|
29968
|
+
}
|
|
29969
|
+
Object.assign(
|
|
29970
|
+
layoutSource,
|
|
29971
|
+
captureDiagramPictures(data, layoutSource.dataXml, pictureParts, drawing)
|
|
29972
|
+
);
|
|
29973
|
+
}
|
|
29338
29974
|
return {
|
|
29339
29975
|
layoutSource,
|
|
29340
29976
|
...generatedCache ? { generatedCache: true } : {},
|
|
@@ -29805,4 +30441,4 @@ function buildRectPathGradientImage(stops, focalPoint, fillToRect) {
|
|
|
29805
30441
|
return `url("data:image/svg+xml,${encodeURIComponent(markup)}")`;
|
|
29806
30442
|
}
|
|
29807
30443
|
|
|
29808
|
-
export { DEFAULT_GENERATED_DIAGRAM_SCHEME, DIAGRAM_ADD_SHAPE_COMMANDS, DIAGRAM_ADD_SHAPE_LABEL, DIAGRAM_COLOR_ENTRIES, DIAGRAM_COLOR_SECTIONS, DIAGRAM_CONTENT_TYPES, DIAGRAM_DATA_XMLNS, DIAGRAM_DESIGN_COMMANDS, DIAGRAM_DESIGN_GROUPS, DIAGRAM_INSERT_CATEGORIES, DIAGRAM_INSERT_PRESETS, DIAGRAM_NAMED_LAYOUT_CATEGORIES, DIAGRAM_RELATIONSHIP_TYPES, DIAGRAM_STYLE_ENTRIES, DIAGRAM_UI_STRINGS, DIAGRAM_XML_PROLOG, EMPTY_CONSTRAINT_INDEX, ENGINE_FIRST_LAYOUT_IDS, FABRICATED_QUICKSTYLE_UNIQUE_ID, GENERATED_DIAGRAM_CACHE_NOTICE, GENERATED_DIAGRAM_CACHE_NS, OFFICE_GRADIENT_PRESETS, RECT_GRADIENT_DIRECTIONS, SMARTART_DESCENDANT_FONT_SCALE, SMARTART_LINE_SPACING_FACTOR, activeBranch, addDiagramNodeAbove, addDiagramNodeAfter, addDiagramNodeBefore, addDiagramNodeBelow, algorithmParameters, appendParentConnection, applyCustomLayoutOverrides, applyDiagramNodeEdit, applySmartArtRoleColors, approximateDiagramDrawingFromNodes, arrangeComposite2 as arrangeComposite, arrangeConn, arrangeCycle2 as arrangeCycle, arrangeHierarchy, arrangeLinear2 as arrangeLinear, arrangePyramid, arrangeSnake2 as arrangeSnake, arrangeSpacer, arrangeText, attributeReader, buildConstraintIndex, buildDiagramNodeGuidMap, buildDiagramPresentationGuidMap, buildFabricatedColorsXml, buildFabricatedQuickStyleXml, buildForest, buildGeneratedDiagramCache, buildRectPathGradientImage, buildRectPathGradientSvg, buildTree, chooseAlgType, chooseAlgorithm, chooseAlgorithmOfType, circleNode, clampByRules, collectFoldedDescendants, collectTransitionText, computeDiagramDrawingBounds, connectionLabel, constraintAttributes, createDiagramNodes, demoteDiagramNode, diagramAvLstXml, diagramColorLabelParams, diagramContentNodes, diagramDesignEdit, diagramDrawingFromViews, diagramLayoutData, diagramModelId, diagramNodeLevels, diagramNodeOutline, diagramNodesInTreeOrder, diagramParagraphsText, diagramRelationshipsPart, diagramShapePropertiesXml, discoverArrangement, dispatchArrangement, drawingColorBrightness, drawingColorCss, drawingColorXml, drawingDashLength, drawingFillXml, drawingHas3d, escapeDiagramXml, evaluateWhen, fabricatedColorsCategory, fabricatedColorsUniqueId, fillElementOf, findConstraint, findDiagramRootParentId, findDiagramShapeIndex, firstDiagramParagraphRuns, fitWrappedFontSize, foldedDescendantTexts, foldedItemText, formatDiagramSource, formatXsdDouble, generatedDrawingDigest, groupedChildren, interpretSmartArtLayout, isDrawableDiagramShapeView, loadDiagram, markDiagramShapesStale, measureTextWidth, moveDiagramNode, moveDiagramNodeToIndex, nestedChooseBranch, neutralDiagramTextStyler, officeGradientPresetFill, officeGradientPresetId, orderedAttributes, orderedXmlView, parseConnectionAttributes, parseConstraintAttributes, parseCustomLayoutAttributes, parseDefinitionHeader, parseDiagramColors, parseDiagramDataModel, parseDiagramDrawing, parseDiagramLayoutSummary, parseDiagramQuickStyle, parseDrawingColor, parseDrawingColorIn, parseDrawingColorList, parseDrawingFill, parseDrawingGeometry, parseDrawingLine, parseDrawingTextBody, parseFrame, parseIteratorAttributes, parseLayoutDefinitionXml, parseOrderedWhen, parseRelationshipIdAttributes, parseRuleAttributes, parseStyleReferences, parseTransform, parseWhenAttributes, parseXsdDouble, patchDiagramShape, plainDiagramNodes, polygonNode, presetBoxNode, presetPolygonPoints, previewDiagramLayout, projectDiagramNodeText, projectDiagramNodeTextNeutral, promoteDiagramNode, ratioConstraint, readDiagramDrawingShapes, readDiagramNodeParagraphs, reconcileDiagramTextParagraphs, rectGradientDirection, rectGradientFocus, rectNode, reflowBending, reflowChevron, reflowCycle, reflowDiagramLayout, reflowFunnel, reflowGear, reflowMatrix, reflowPyramid, reflowRelationship, reflowTarget, reflowTimeline, reflowVenn, removeDiagramNode, resolveAxisCount, resolveAxisNodes, resolveConstraint, resolveDiagramDrawingPart, resolveDiagramDrawingShape, resolveDiagramDrawingStyles, resolveDiagramLayoutCategory, resolveDiagramReflowCategory, resolveDrawingColor, resolveDrawingOuterShadow, resolveDrawingShadow, resolveDrawingShadowXml, resolveFlowDirection, resolveFontTable, resolveHierarchyDispatchChAlign, resolveHierarchyDispatchLinDir, resolveHierarchyGenerationTemplates, resolveHierarchyItemFontSizePx, resolveHierarchyRootAlign, resolvePresentationOf, resolveRatioConstraint, resolveRoleFontSize, resolveSharedItemFontSize, resolveTieredItemFontSize, ruleAttributes, runEngineLayout, runSmartArtEngine, selectArrangedNodes, selectConstraints, setDiagramNodeStyle, setDiagramNodeText, setDrawingFillXml, smartArtChildrenOf, structuralChooseAlgDepth, styleContext, svgDropShadowElement, tailedHierarchyDeclaresChAlign, textBodyParagraphs, themeColorResolver, topLevelSmartArtNodes, treeDepth, treeOrderDiagramNodes, treeWidth, tunnelsPastOwnCompositeSlot, validateSmartArtConstraintRules, validateSmartArtControlFlow, withDiagramDrawingRelationship, withDiagramXmlProlog, withDrawingColorBrightness, withDrawingGradientGeometry, withEditedStructure, wrappedLineCount, wrappedWidestLineWidth, writeDiagramFormatDefinition, writeEditedDiagramData, writeFabricatedDiagramData, writeGeneratedDiagramDrawing, writeInsertedDiagramData };
|
|
30444
|
+
export { DEFAULT_GENERATED_DIAGRAM_SCHEME, DIAGRAM_ADD_SHAPE_COMMANDS, DIAGRAM_ADD_SHAPE_LABEL, DIAGRAM_COLOR_ENTRIES, DIAGRAM_COLOR_SECTIONS, DIAGRAM_CONTENT_TYPES, DIAGRAM_DATA_XMLNS, DIAGRAM_DESIGN_COMMANDS, DIAGRAM_DESIGN_GROUPS, DIAGRAM_INSERT_CATEGORIES, DIAGRAM_INSERT_PRESETS, DIAGRAM_NAMED_LAYOUT_CATEGORIES, DIAGRAM_PICTURE_SOURCE_NS, DIAGRAM_RELATIONSHIP_TYPES, DIAGRAM_STYLE_ENTRIES, DIAGRAM_UI_STRINGS, DIAGRAM_XML_PROLOG, EMPTY_CONSTRAINT_INDEX, ENGINE_FIRST_LAYOUT_IDS, FABRICATED_QUICKSTYLE_UNIQUE_ID, GENERATED_DIAGRAM_CACHE_NOTICE, GENERATED_DIAGRAM_CACHE_NS, OFFICE_GRADIENT_PRESETS, RECT_GRADIENT_DIRECTIONS, SMARTART_DESCENDANT_FONT_SCALE, SMARTART_LINE_SPACING_FACTOR, activeBranch, addDiagramNodeAbove, addDiagramNodeAfter, addDiagramNodeBefore, addDiagramNodeBelow, algorithmParameters, appendParentConnection, applyCustomLayoutOverrides, applyDiagramNodeEdit, applyDiagramPictureSources, applySmartArtRoleColors, approximateDiagramDrawingFromNodes, arrangeComposite2 as arrangeComposite, arrangeConn, arrangeCycle2 as arrangeCycle, arrangeHierarchy, arrangeLinear2 as arrangeLinear, arrangePyramid, arrangeSnake2 as arrangeSnake, arrangeSpacer, arrangeText, attributeReader, buildConstraintIndex, buildDiagramNodeGuidMap, buildDiagramPresentationGuidMap, buildFabricatedColorsXml, buildFabricatedQuickStyleXml, buildForest, buildGeneratedDiagramCache, buildRectPathGradientImage, buildRectPathGradientSvg, buildTree, captureDiagramPictures, chooseAlgType, chooseAlgorithm, chooseAlgorithmOfType, circleNode, clampByRules, collectFoldedDescendants, collectTransitionText, computeDiagramDrawingBounds, connectionLabel, constraintAttributes, createDiagramNodes, demoteDiagramNode, diagramAvLstXml, diagramColorLabelParams, diagramContentNodes, diagramDesignEdit, diagramDrawingFromViews, diagramLayoutData, diagramModelId, diagramNodeLevels, diagramNodeOutline, diagramNodesInTreeOrder, diagramParagraphsText, diagramPictureRelationships, diagramRelationshipsPart, diagramShapePropertiesXml, discoverArrangement, dispatchArrangement, drawingColorBrightness, drawingColorCss, drawingColorXml, drawingDashLength, drawingFillXml, drawingHas3d, escapeDiagramXml, evaluateWhen, fabricatedColorsCategory, fabricatedColorsUniqueId, fillElementOf, findConstraint, findDiagramRootParentId, findDiagramShapeIndex, firstDiagramParagraphRuns, fitWrappedFontSize, foldedDescendantTexts, foldedItemText, formatDiagramSource, formatXsdDouble, generatedDrawingDigest, groupedChildren, interpretSmartArtLayout, isDrawableDiagramShapeView, loadDiagram, markDiagramShapesStale, measureTextWidth, moveDiagramNode, moveDiagramNodeToIndex, nestedChooseBranch, neutralDiagramTextStyler, officeGradientPresetFill, officeGradientPresetId, orderedAttributes, orderedXmlView, parseConnectionAttributes, parseConstraintAttributes, parseCustomLayoutAttributes, parseDefinitionHeader, parseDiagramColors, parseDiagramDataModel, parseDiagramDrawing, parseDiagramLayoutSummary, parseDiagramQuickStyle, parseDrawingColor, parseDrawingColorIn, parseDrawingColorList, parseDrawingFill, parseDrawingGeometry, parseDrawingLine, parseDrawingTextBody, parseFrame, parseIteratorAttributes, parseLayoutDefinitionXml, parseOrderedWhen, parseRelationshipIdAttributes, parseRuleAttributes, parseStyleReferences, parseTransform, parseWhenAttributes, parseXsdDouble, patchDiagramShape, plainDiagramNodes, polygonNode, presetBoxNode, presetPolygonPoints, previewDiagramLayout, projectDiagramNodeText, projectDiagramNodeTextNeutral, promoteDiagramNode, ratioConstraint, readDiagramDrawingShapes, readDiagramNodeParagraphs, reconcileDiagramTextParagraphs, rectGradientDirection, rectGradientFocus, rectNode, reflowBending, reflowChevron, reflowCycle, reflowDiagramLayout, reflowFunnel, reflowGear, reflowMatrix, reflowPyramid, reflowRelationship, reflowTarget, reflowTimeline, reflowVenn, removeDiagramNode, resolveAxisCount, resolveAxisNodes, resolveConstraint, resolveDiagramDrawingPart, resolveDiagramDrawingShape, resolveDiagramDrawingStyles, resolveDiagramLayoutCategory, resolveDiagramReflowCategory, resolveDrawingColor, resolveDrawingOuterShadow, resolveDrawingShadow, resolveDrawingShadowXml, resolveFlowDirection, resolveFontTable, resolveHierarchyDispatchChAlign, resolveHierarchyDispatchLinDir, resolveHierarchyGenerationTemplates, resolveHierarchyItemFontSizePx, resolveHierarchyRootAlign, resolvePresentationOf, resolveRatioConstraint, resolveRoleFontSize, resolveSharedItemFontSize, resolveTieredItemFontSize, ruleAttributes, runEngineLayout, runSmartArtEngine, selectArrangedNodes, selectConstraints, setDiagramNodeStyle, setDiagramNodeText, setDrawingFillXml, smartArtChildrenOf, structuralChooseAlgDepth, styleContext, svgDropShadowElement, tailedHierarchyDeclaresChAlign, textBodyParagraphs, themeColorResolver, topLevelSmartArtNodes, treeDepth, treeOrderDiagramNodes, treeWidth, tunnelsPastOwnCompositeSlot, validateSmartArtConstraintRules, validateSmartArtControlFlow, withDiagramDrawingRelationship, withDiagramPictureSources, withDiagramXmlProlog, withDrawingColorBrightness, withDrawingGradientGeometry, withEditedStructure, wrappedLineCount, wrappedWidestLineWidth, writeDiagramFormatDefinition, writeEditedDiagramData, writeFabricatedDiagramData, writeGeneratedDiagramDrawing, writeInsertedDiagramData };
|