ooxml-core 1.33.0 → 1.35.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-Q7CFNKOU.mjs → PptxHandler-XCYX5DVX.mjs} +2 -2
- package/dist/{PresentationBuilder-VP2637RH.cjs → PresentationBuilder-HA56ZY23.cjs} +6 -5
- package/dist/{PresentationBuilder-SADKXDWC.mjs → PresentationBuilder-IVLUEB4K.mjs} +2 -2
- package/dist/{PresentationBuilder-PJMQRZI6.mjs → PresentationBuilder-JBTNOIL7.mjs} +3 -2
- package/dist/automation/index.cjs +47556 -43468
- package/dist/automation/index.mjs +47556 -43468
- package/dist/{chunk-2LTIDUXH.cjs → chunk-A27O7M5X.cjs} +147 -133
- package/dist/{chunk-Y2RH4QWG.mjs → chunk-EGBNPVBA.mjs} +1542 -721
- package/dist/{chunk-QRXMYOVN.mjs → chunk-GNGL4BO7.mjs} +66 -44
- package/dist/chunk-LSO5SSFX.mjs +112 -0
- package/dist/chunk-MB3TYNMV.mjs +28 -0
- package/dist/{chunk-EBBWRRSB.mjs → chunk-MK2IBZU6.mjs} +1 -1
- package/dist/{chunk-BDZR4DZ6.cjs → chunk-PA5ADSTX.cjs} +1329 -1306
- package/dist/{chunk-BQGLWC6N.mjs → chunk-RI56PFGL.mjs} +67 -44
- package/dist/{chunk-3LMHYL4W.mjs → chunk-RPJHMPEL.mjs} +1 -1
- package/dist/{chunk-JQVOUS6B.mjs → chunk-TJXK4D4U.mjs} +4 -4
- package/dist/{chunk-6LJW76BZ.mjs → chunk-UQMAPY6D.mjs} +147 -128
- package/dist/chunk-XF6ZRA2D.cjs +120 -0
- package/dist/crypto/index.cjs +23 -15
- package/dist/crypto/index.mjs +23 -15
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +519 -161
- package/dist/docx/embedded.mjs +519 -161
- 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 +3157 -994
- package/dist/docx/index.d.ts +3 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +3153 -995
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +30 -8
- package/dist/docx/layout/index.mjs +30 -8
- package/dist/docx/layout/input.d.ts +2 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +6706 -1322
- package/dist/docx/load/index.mjs +6706 -1322
- 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 +548 -18
- 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 +528 -19
- 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/write-paragraph.d.ts.map +1 -1
- package/dist/drawingml/index.cjs +1 -0
- package/dist/drawingml/index.mjs +1 -0
- package/dist/drawingml/write-theme.d.ts +2 -0
- package/dist/drawingml/write-theme.d.ts.map +1 -1
- package/dist/index.cjs +342 -96
- package/dist/index.mjs +343 -97
- package/dist/opc/index.cjs +5 -0
- package/dist/opc/index.d.ts +1 -0
- package/dist/opc/index.d.ts.map +1 -1
- package/dist/opc/index.mjs +5 -1
- package/dist/opc/zlib.d.ts +6 -0
- package/dist/opc/zlib.d.ts.map +1 -0
- package/dist/pptx/automation/index.cjs +1919 -758
- package/dist/pptx/automation/index.d.ts +37 -3
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +252 -10
- 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/index-Bp-1pGo1.d.ts.map +1 -1
- package/dist/pptx/chunks/{index-BuMPQDQb.d.ts → index-pLLN4OTz.d.ts} +37 -10
- package/dist/pptx/chunks/{index-BuMPQDQb.d.ts.map → index-pLLN4OTz.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +281 -116
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.mjs +2 -2
- 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 +1 -1
- 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/index.cjs +1656 -761
- package/dist/pptx/index.d.ts +2 -2
- package/dist/pptx/index.mjs +5 -5
- package/dist/teams/index.cjs +213 -26
- package/dist/teams/index.mjs +213 -26
- 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/action-formula.d.ts +21 -0
- package/dist/visio/action-formula.d.ts.map +1 -0
- package/dist/visio/action-menu.d.ts +8 -0
- package/dist/visio/action-menu.d.ts.map +1 -0
- package/dist/visio/bevel-3d.d.ts +61 -0
- package/dist/visio/bevel-3d.d.ts.map +1 -0
- package/dist/visio/cell-formula.d.ts.map +1 -1
- package/dist/visio/cff-masters.d.ts +17 -0
- package/dist/visio/cff-masters.d.ts.map +1 -0
- package/dist/visio/cff-recalc.d.ts +17 -0
- package/dist/visio/cff-recalc.d.ts.map +1 -0
- package/dist/visio/container-relationships.d.ts +40 -6
- package/dist/visio/container-relationships.d.ts.map +1 -1
- package/dist/visio/control-formula.d.ts +13 -0
- package/dist/visio/control-formula.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-action.d.ts +22 -0
- package/dist/visio/edit-action.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +9 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-connector-glue.d.ts +24 -1
- package/dist/visio/edit-connector-glue.d.ts.map +1 -1
- package/dist/visio/edit-connector-layout.d.ts.map +1 -1
- package/dist/visio/edit-connector-org.d.ts +11 -0
- package/dist/visio/edit-connector-org.d.ts.map +1 -0
- package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
- package/dist/visio/edit-connector-world.d.ts +25 -0
- package/dist/visio/edit-connector-world.d.ts.map +1 -0
- package/dist/visio/edit-connector.d.ts +5 -1
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-container-fit.d.ts +15 -2
- package/dist/visio/edit-container-fit.d.ts.map +1 -1
- package/dist/visio/edit-container-members.d.ts +12 -0
- package/dist/visio/edit-container-members.d.ts.map +1 -1
- 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-control.d.ts +28 -0
- package/dist/visio/edit-control.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-diagram-parts-commands.d.ts +2 -1
- package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -1
- package/dist/visio/edit-diagram-parts.d.ts +8 -0
- package/dist/visio/edit-diagram-parts.d.ts.map +1 -1
- package/dist/visio/edit-formatting-commands.d.ts +4 -0
- package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-group-resize-instances.d.ts +43 -0
- package/dist/visio/edit-group-resize-instances.d.ts.map +1 -0
- package/dist/visio/edit-group-resize.d.ts +1 -0
- package/dist/visio/edit-group-resize.d.ts.map +1 -1
- package/dist/visio/edit-group-rotation.d.ts +8 -0
- package/dist/visio/edit-group-rotation.d.ts.map +1 -1
- package/dist/visio/edit-instance-checks.d.ts.map +1 -1
- package/dist/visio/edit-instance-geometry.d.ts +13 -0
- package/dist/visio/edit-instance-geometry.d.ts.map +1 -1
- package/dist/visio/edit-instance-sheet.d.ts.map +1 -1
- package/dist/visio/edit-master-add.d.ts +3 -0
- package/dist/visio/edit-master-add.d.ts.map +1 -1
- package/dist/visio/edit-master-drop.d.ts.map +1 -1
- package/dist/visio/edit-master-media.d.ts +22 -0
- package/dist/visio/edit-master-media.d.ts.map +1 -0
- package/dist/visio/edit-master-scope.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-resize-anchor.d.ts.map +1 -1
- package/dist/visio/edit-sheet-cells.d.ts +23 -0
- package/dist/visio/edit-sheet-cells.d.ts.map +1 -0
- package/dist/visio/edit-stencil-connector-write.d.ts.map +1 -1
- package/dist/visio/edit-stencil-connector.d.ts +7 -2
- package/dist/visio/edit-stencil-connector.d.ts.map +1 -1
- package/dist/visio/edit-stencil-import.d.ts +1 -1
- package/dist/visio/edit-stencil-import.d.ts.map +1 -1
- package/dist/visio/edit-style-admission.d.ts +6 -0
- package/dist/visio/edit-style-admission.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-clone.d.ts +7 -0
- package/dist/visio/edit-swimlane-clone.d.ts.map +1 -0
- 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 +71 -0
- package/dist/visio/edit-swimlane-layout.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-ops.d.ts +12 -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/geometry.d.ts +2 -1
- package/dist/visio/geometry.d.ts.map +1 -1
- package/dist/visio/index.cjs +12115 -7631
- package/dist/visio/index.d.ts +13 -0
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +12101 -7632
- package/dist/visio/infinite-line.d.ts +17 -0
- package/dist/visio/infinite-line.d.ts.map +1 -0
- package/dist/visio/model.d.ts +62 -0
- package/dist/visio/model.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/paragraphs.d.ts +1 -1
- package/dist/visio/paragraphs.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-sections-types.d.ts +71 -0
- package/dist/visio/shape-sections-types.d.ts.map +1 -0
- package/dist/visio/shape-sections.d.ts +11 -0
- package/dist/visio/shape-sections.d.ts.map +1 -0
- package/dist/visio/shape-structure.d.ts +14 -1
- 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-membership.d.ts +12 -0
- package/dist/visio/swimlane-membership.d.ts.map +1 -0
- package/dist/visio/swimlane-stack.d.ts +67 -0
- package/dist/visio/swimlane-stack.d.ts.map +1 -0
- package/dist/visio/tab-stops.d.ts +20 -0
- package/dist/visio/tab-stops.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 +10 -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 +46 -0
- package/dist/visio/ui/data-graphic-config.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-items.d.ts +23 -0
- package/dist/visio/ui/data-graphic-items.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-rules.d.ts +14 -0
- package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
- package/dist/visio/ui/data-graphics.d.ts +10 -1
- package/dist/visio/ui/data-graphics.d.ts.map +1 -1
- package/dist/visio/ui/data-visualizer-edits.d.ts +22 -0
- package/dist/visio/ui/data-visualizer-edits.d.ts.map +1 -0
- package/dist/visio/ui/data-visualizer.d.ts +47 -0
- package/dist/visio/ui/data-visualizer.d.ts.map +1 -0
- package/dist/visio/ui/diagram-parts.d.ts +8 -1
- 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 +44031 -38653
- package/dist/visio/ui/index.d.ts +10 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +43976 -38654
- package/dist/visio/ui/org-chart-edit.d.ts +52 -0
- package/dist/visio/ui/org-chart-edit.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-import.d.ts +35 -0
- package/dist/visio/ui/org-chart-import.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-layout.d.ts +43 -0
- package/dist/visio/ui/org-chart-layout.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-stencil-data.d.ts +11 -0
- package/dist/visio/ui/org-chart-stencil-data.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-template.d.ts +7 -0
- package/dist/visio/ui/org-chart-template.d.ts.map +1 -0
- package/dist/visio/ui/org-chart.d.ts +63 -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-connectors.d.ts +10 -0
- package/dist/visio/ui/selection-connectors.d.ts.map +1 -0
- 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-group.d.ts +3 -1
- package/dist/visio/ui/shape-group.d.ts.map +1 -1
- package/dist/visio/ui/shape-move.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/shape-rotation.d.ts +3 -1
- package/dist/visio/ui/shape-rotation.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 +30 -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/filter.d.ts +5 -2
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +4 -1
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/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/types.d.ts +7 -6
- 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/filter-criteria.d.ts +2 -1
- package/dist/xlsx/filter-criteria.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 +5478 -4220
- package/dist/xlsx/index.d.ts +1 -0
- package/dist/xlsx/index.d.ts.map +1 -1
- package/dist/xlsx/index.mjs +5450 -4221
- 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 +305 -109
- package/dist/xlsx/load/index.mjs +305 -109
- 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 +39 -1
- package/dist/xlsx/model.d.ts.map +1 -1
- 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/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/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/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/grid/geometry.d.ts +29 -1
- package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +10761 -9573
- 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 +10755 -9574
- 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/filter-columns.d.ts +14 -0
- package/dist/xlsx/write/filter-columns.d.ts.map +1 -1
- 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/sheet-parts.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-props.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/worksheet.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/PptxHandler-MGKMIK22.cjs +0 -13
- package/dist/PptxHandler-TEC7SWBU.mjs +0 -4
- package/dist/chunk-MHNETXQB.mjs +0 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { FormattingWrite } from './edit-formatting.js';
|
|
2
|
+
import { type Cells } from './sheet.js';
|
|
3
|
+
/** A top bevel: Visio type 1-12 and its width and height in inches. */
|
|
4
|
+
export interface VisioBevel {
|
|
5
|
+
type: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
/** 3-D rotation in radians (counter-clockwise Z); `perspective` is the camera field of view. */
|
|
10
|
+
export interface VisioRotation3d {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
z: number;
|
|
14
|
+
perspective: number;
|
|
15
|
+
keepTextFlat: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const VISIO_BEVEL_PRESETS: {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
type: number;
|
|
21
|
+
}[];
|
|
22
|
+
/** The gallery's default bevel size, in points. */
|
|
23
|
+
export declare const VISIO_BEVEL_POINTS = 6;
|
|
24
|
+
/** Bevel types drawn with the light inverted (an inset) and with a hard, narrow profile. */
|
|
25
|
+
export declare const VISIO_BEVEL_TYPES_INSET: readonly number[];
|
|
26
|
+
export declare const VISIO_BEVEL_TYPES_SHARP: readonly number[];
|
|
27
|
+
/** Presets are named by `none` or one of the ids above. */
|
|
28
|
+
export type VisioBevelPreset = string;
|
|
29
|
+
export declare const isVisioBevelPreset: (value: unknown) => value is VisioBevelPreset;
|
|
30
|
+
/** Rotation presets in degrees. Positive X turns the right side away and positive Y the top. */
|
|
31
|
+
export declare const VISIO_ROTATION_PRESETS: readonly {
|
|
32
|
+
id: string;
|
|
33
|
+
label: string;
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
z: number;
|
|
37
|
+
perspective: number;
|
|
38
|
+
}[];
|
|
39
|
+
export type VisioRotationPreset = string;
|
|
40
|
+
export declare const isVisioRotationPreset: (value: unknown) => value is VisioRotationPreset;
|
|
41
|
+
type Add = (name: string, value: string | number, category: FormattingWrite['category'], unit?: string, formula?: string) => void;
|
|
42
|
+
/** Cell writes for a bevel preset; lengths are written in points as Visio does. */
|
|
43
|
+
export declare function bevelWrites(id: VisioBevelPreset, add: Add): void;
|
|
44
|
+
/** Cell writes for a 3-D rotation preset; angles are stored in radians with the DEG unit. */
|
|
45
|
+
export declare function rotationWrites(id: VisioRotationPreset, add: Add): void;
|
|
46
|
+
export declare function snapshotBevel(value: unknown): VisioBevelPreset;
|
|
47
|
+
export declare function snapshotRotation(value: unknown): VisioRotationPreset;
|
|
48
|
+
/** The saved top bevel; a `Themed` cell takes its value from the theme, which is not read. */
|
|
49
|
+
export declare function shapeBevel(cells: Cells): VisioBevel | undefined;
|
|
50
|
+
/** Whether a bevel the model does not draw is saved: a bottom bevel or a contour. */
|
|
51
|
+
export declare const hasUndrawnBevel: (cells: Cells) => boolean;
|
|
52
|
+
export declare function shapeRotation3d(cells: Cells): VisioRotation3d | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The parallel projection of a flat shape turned by the rotation, as an SVG matrix over local
|
|
55
|
+
* y-up coordinates [a, b, c, d] (x' = a*x + c*y, y' = b*x + d*y). Measured against Visio 16's
|
|
56
|
+
* raster export: X compresses the width, Y the height, X and Y together shear the shape so its
|
|
57
|
+
* right side drops, and Z turns it counter-clockwise. Perspective foreshortening is not applied.
|
|
58
|
+
*/
|
|
59
|
+
export declare function visioRotation3dMatrix(rotation: Pick<VisioRotation3d, 'x' | 'y' | 'z'>): [number, number, number, number];
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=bevel-3d.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bevel-3d.d.ts","sourceRoot":"","sources":["../../visio/bevel-3d.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAE7C,uEAAuE;AACvE,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AACD,gGAAgG;AAChG,MAAM,WAAW,eAAe;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB;;;;GAa4C,CAAC;AAC7E,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,4FAA4F;AAC5F,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAAW,CAAC;AACjE,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAA6B,CAAC;AAEnF,2DAA2D;AAC3D,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACtC,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,KAAK,IAAI,gBACiB,CAAC;AAE/E,gGAAgG;AAChG,eAAO,MAAM,sBAAsB,EAAE,SAAS;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,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formula.d.ts","sourceRoot":"","sources":["../../visio/cell-formula.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cell-formula.d.ts","sourceRoot":"","sources":["../../visio/cell-formula.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEpF;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAK7E;AAED,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB,SAAU,MAAM,KAAG,MACnB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VisioPackage } from './package.js';
|
|
2
|
+
import type { CffMasters } from './cff-recalc.js';
|
|
3
|
+
/** What a master of Visio's cross-functional flowchart is, by its name. */
|
|
4
|
+
export type CffRole = 'frame' | 'lane' | 'separator' | 'swimlane-list' | 'phase-list';
|
|
5
|
+
/** The drawing's masters of the cross-functional flowchart, with their top-level shapes. */
|
|
6
|
+
export interface CffMasterSet extends CffMasters {
|
|
7
|
+
roleOf(masterId: string | null | undefined): CffRole | undefined;
|
|
8
|
+
readonly empty: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const noCffMasters: CffMasterSet;
|
|
11
|
+
/**
|
|
12
|
+
* Read the masters Visio's Cross-Functional Flowchart template puts in a drawing (CFF Container,
|
|
13
|
+
* Swimlane List, Phase List, Swimlane, Separator, found by name) so the lane commands can
|
|
14
|
+
* recognise a chart Visio built and recalculate its instances.
|
|
15
|
+
*/
|
|
16
|
+
export declare function loadCffMasters(pkg: VisioPackage): Promise<CffMasterSet>;
|
|
17
|
+
//# sourceMappingURL=cff-masters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cff-masters.d.ts","sourceRoot":"","sources":["../../visio/cff-masters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,2EAA2E;AAC3E,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,YAAY,CAAC;AAUtF,4FAA4F;AAC5F,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC/C,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACxB;AACD,eAAO,MAAM,YAAY,EAAE,YAI1B,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CA4B7E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CffMasters {
|
|
2
|
+
/** Master id to the master's top-level shape. */
|
|
3
|
+
get(id: string): Element | undefined;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Recompute the cached values of every master instance under `root` (a page's contents) from the
|
|
7
|
+
* cells the instances carry. Returns the number of cells written. Cells whose formula cannot be
|
|
8
|
+
* evaluated are left as they are.
|
|
9
|
+
*/
|
|
10
|
+
export declare function recalculateMasterInstances(root: Element, masters: CffMasters, only?: (instance: Element) => boolean): number;
|
|
11
|
+
/**
|
|
12
|
+
* Give a top-level master instance local copies of the named cells (`Width`, `Height`, `LocPinX`
|
|
13
|
+
* ...) holding their effective values, so code that reads an instance's own cells sees the
|
|
14
|
+
* size and pin the master gives it. The cells are what Visio would save for the same shape.
|
|
15
|
+
*/
|
|
16
|
+
export declare function materializeCells(root: Element, masters: CffMasters, instance: Element, names: readonly string[]): void;
|
|
17
|
+
//# sourceMappingURL=cff-recalc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cff-recalc.d.ts","sourceRoot":"","sources":["../../visio/cff-recalc.ts"],"names":[],"mappings":"AA0BA,MAAM,WAAW,UAAU;IAC1B,iDAAiD;IACjD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACrC;AA8PD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,GACnC,MAAM,CAkCR;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,SAAS,MAAM,EAAE,GACtB,IAAI,CAYN"}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Visio's container relationships, as text. A container's Relationships cell lists its members
|
|
3
|
-
* with `SUM(DEPENDSON(
|
|
4
|
-
* with `
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* with `SUM(DEPENDSON(1, Sheet.N!SheetRef(), ...))`; each member's Relationships cell points back
|
|
4
|
+
* with `DEPENDSON(4, Sheet.C!SheetRef(), ...)` (one reference per container it belongs to). A list
|
|
5
|
+
* (a cross-functional flowchart's Swimlane List and Phase List) lists its members with kind 2 and
|
|
6
|
+
* each member points back with kind 5; the two lists of one flowchart point at each other with
|
|
7
|
+
* kind 11. The numbers were read from a cross-functional diagram Visio 16 built and confirmed
|
|
8
|
+
* through its Container and List COM properties. The formulas are never evaluated; they are read
|
|
9
|
+
* and written as text, and the cached value stays 0 as in files Visio saves. An empty container
|
|
10
|
+
* keeps an empty `DEPENDSON(1)` term as Visio writes it. Files this editor wrote before
|
|
11
|
+
* 2026-10-30 used 4 for the members and 1 for the back references; the reader still takes those
|
|
12
|
+
* (containerMemberIds in shape-structure.ts).
|
|
7
13
|
*/
|
|
8
|
-
export declare const VISIO_RELATIONSHIP_MEMBERS =
|
|
9
|
-
export declare const VISIO_RELATIONSHIP_MEMBER_OF =
|
|
14
|
+
export declare const VISIO_RELATIONSHIP_MEMBERS = 1;
|
|
15
|
+
export declare const VISIO_RELATIONSHIP_MEMBER_OF = 4;
|
|
16
|
+
export declare const VISIO_RELATIONSHIP_LIST_MEMBERS = 2;
|
|
17
|
+
export declare const VISIO_RELATIONSHIP_LIST_MEMBER_OF = 5;
|
|
18
|
+
export declare const VISIO_RELATIONSHIP_LIST_SIBLING = 11;
|
|
19
|
+
/** Not confirmed against a Visio build. */
|
|
10
20
|
export declare const VISIO_RELATIONSHIP_CALLOUT_TARGET = 6;
|
|
11
21
|
export declare const SHEET_ID: RegExp;
|
|
12
22
|
export declare const MAX_RELATED_SHEETS = 1000;
|
|
@@ -14,6 +24,30 @@ export declare const MAX_RELATED_SHEETS = 1000;
|
|
|
14
24
|
export declare function dependsOn(formula: string | undefined, kind: number): string[];
|
|
15
25
|
/** A comma separated list of sheet IDs, as the editor's private User row stores membership. */
|
|
16
26
|
export declare const sheetIdList: (value: string | undefined) => string[];
|
|
27
|
+
/**
|
|
28
|
+
* Whether a Relationships formula only lists related sheets (`SUM(DEPENDSON(...), ...)`). Such a
|
|
29
|
+
* formula registers a relationship and reads no cell of the sheets it names, so moving or resizing
|
|
30
|
+
* one of them never changes its result.
|
|
31
|
+
*/
|
|
32
|
+
export declare const isRelationshipsOnly: (formula: string) => boolean;
|
|
33
|
+
/** The terms of a relationships-only formula, in order; undefined for any other formula. */
|
|
34
|
+
export declare function relationTerms(formula: string | undefined): {
|
|
35
|
+
kind: number;
|
|
36
|
+
ids: string[];
|
|
37
|
+
}[] | undefined;
|
|
38
|
+
/** `SUM(DEPENDSON(...), ...)` for terms; undefined when there are none. */
|
|
39
|
+
export declare function relationsFormula(terms: readonly {
|
|
40
|
+
kind: number;
|
|
41
|
+
ids: readonly string[];
|
|
42
|
+
}[]): string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* `formula` with the ids of one kind replaced and the other kinds kept in place. A term left
|
|
45
|
+
* empty is dropped unless `keepEmpty` (a container's members). Undefined when nothing is left;
|
|
46
|
+
* null when the formula holds more than relationships (the caller leaves it alone).
|
|
47
|
+
*/
|
|
48
|
+
export declare function withRelation(formula: string | undefined, kind: number, ids: readonly string[], keepEmpty?: boolean): string | undefined | null;
|
|
49
|
+
/** `formula` without the given sheets in any term (empty terms go, except an empty kind 1). */
|
|
50
|
+
export declare function withoutSheets(formula: string | undefined, removed: ReadonlySet<string>): string | undefined | null;
|
|
17
51
|
/** `SUM(DEPENDSON(kind, Sheet.a!SheetRef(), ...))` for the given sheet IDs. */
|
|
18
52
|
export declare function relationshipsFormula(kind: number, ids: readonly string[]): string;
|
|
19
53
|
//# sourceMappingURL=container-relationships.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-relationships.d.ts","sourceRoot":"","sources":["../../visio/container-relationships.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"container-relationships.d.ts","sourceRoot":"","sources":["../../visio/container-relationships.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAC5C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,+BAA+B,IAAI,CAAC;AACjD,eAAO,MAAM,iCAAiC,IAAI,CAAC;AACnD,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,2CAA2C;AAC3C,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD,eAAO,MAAM,QAAQ,QAAmB,CAAC;AACzC,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC,qGAAqG;AACrG,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ7E;AACD,+FAA+F;AAC/F,eAAO,MAAM,WAAW,UAAW,MAAM,GAAG,SAAS,KAAG,MAAM,EAK/B,CAAC;AAOhC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,YAAa,MAAM,KAAG,OACc,CAAC;AAErE,4FAA4F;AAC5F,wBAAgB,aAAa,CAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,GAAG,SAAS,CAQ/C;AACD,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAAE,GACxD,MAAM,GAAG,SAAS,CAKpB;AACD;;;;GAIG;AACH,wBAAgB,YAAY,CAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,SAAS,MAAM,EAAE,EACtB,SAAS,UAAQ,GACf,MAAM,GAAG,SAAS,GAAG,IAAI,CAQ3B;AACD,+FAA+F;AAC/F,wBAAgB,aAAa,CAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAC1B,MAAM,GAAG,SAAS,GAAG,IAAI,CAQ3B;AACD,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAEjF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** The dimension a control position is measured against: X against Width, Y against Height. */
|
|
2
|
+
export declare const controlDimension: (axis: 'x' | 'y') => "Height" | "Width";
|
|
3
|
+
/**
|
|
4
|
+
* How Visio stores a dragged control position: a ratio of the shape size (`Width*0.3`), inside
|
|
5
|
+
* the cell's own `BOUND(...)` limits when it has them. Returns the new formula, `''` for a cell
|
|
6
|
+
* that holds a plain value (the value is written and the formula stays empty), or `undefined`
|
|
7
|
+
* when the cell is computed some other way (`Width*0.5+User.Offset`), which a drag cannot
|
|
8
|
+
* rewrite without losing that relationship.
|
|
9
|
+
*/
|
|
10
|
+
export declare function rewriteControlFormula(formula: string | undefined, axis: 'x' | 'y', ratio: number): string | undefined;
|
|
11
|
+
/** Whether a drag can rewrite this formula (see `rewriteControlFormula`). */
|
|
12
|
+
export declare const controlFormulaDraggable: (formula: string | undefined, axis: 'x' | 'y') => boolean;
|
|
13
|
+
//# sourceMappingURL=control-formula.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-formula.d.ts","sourceRoot":"","sources":["../../visio/control-formula.ts"],"names":[],"mappings":"AASA,+FAA+F;AAC/F,eAAO,MAAM,gBAAgB,SAAU,GAAG,GAAG,GAAG,uBAAwC,CAAC;AAEzF;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,GAAG,GAAG,GAAG,EACf,KAAK,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAepB;AAED,6EAA6E;AAC7E,eAAO,MAAM,uBAAuB,YAAa,MAAM,GAAG,SAAS,QAAQ,GAAG,GAAG,GAAG,KAAG,OACjC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { VisioPackage } from './package.js';
|
|
2
|
+
/** A data connection saved in the drawing (DataConnections part), as Visio refreshes it. */
|
|
3
|
+
export interface VisioDataConnection {
|
|
4
|
+
id: string;
|
|
5
|
+
/** OLE DB connection string; never opened by this package. */
|
|
6
|
+
connectionString: string;
|
|
7
|
+
/** Connection file (.odc) name when the connection came from one. */
|
|
8
|
+
fileName?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Where an imported table came from; the core derives the connection and command from it. */
|
|
11
|
+
export interface VisioDataSource {
|
|
12
|
+
kind: 'workbook' | 'csv';
|
|
13
|
+
/** The file name the user picked; the browser never exposes the folder it lives in. */
|
|
14
|
+
fileName: string;
|
|
15
|
+
/** Worksheet name for a workbook. */
|
|
16
|
+
sheet?: string;
|
|
17
|
+
/** A1 range inside the worksheet, when the import was limited to one. */
|
|
18
|
+
range?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const DATA_CONNECTIONS_TYPE = "application/vnd.ms-visio.connections+xml";
|
|
21
|
+
/**
|
|
22
|
+
* The OLE DB connection string and command Visio writes for the same kind of source. A browser
|
|
23
|
+
* only knows the file name, so Data Source is that name, not a full path: Visio opens it relative
|
|
24
|
+
* to the drawing and asks for the file when it is not found there.
|
|
25
|
+
*/
|
|
26
|
+
export declare function visioDataConnectionFor(source: VisioDataSource): {
|
|
27
|
+
connectionString: string;
|
|
28
|
+
command: string;
|
|
29
|
+
};
|
|
30
|
+
/** The DataConnections of the drawing by ID; empty when there is no part. */
|
|
31
|
+
export declare function readDataConnections(pkg: VisioPackage, documentPart: string): Promise<Map<string, VisioDataConnection>>;
|
|
32
|
+
//# sourceMappingURL=data-connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-connections.d.ts","sourceRoot":"","sources":["../../visio/data-connections.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,4FAA4F;AAC5F,MAAM,WAAW,mBAAmB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,8DAA8D;IAC9D,gBAAgB,EAAE,MAAM,CAAC;IACzB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,8FAA8F;AAC9F,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,UAAU,GAAG,KAAK,CAAC;IACzB,uFAAuF;IACvF,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AACD,eAAO,MAAM,qBAAqB,6CAA6C,CAAC;AAEhF;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,eAAe,GAAG;IAChE,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CAChB,CAYA;AAED,6EAA6E;AAC7E,wBAAsB,mBAAmB,CACxC,GAAG,EAAE,YAAY,EACjB,YAAY,EAAE,MAAM,GAClB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAiB3C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { VisioPackage } from './package.js';
|
|
2
|
+
import { type VisioDataConnection } from './data-connections.js';
|
|
2
3
|
/** Column types the importer infers and Shape Data rows receive. */
|
|
3
4
|
export type VisioDataColumnType = 'string' | 'number' | 'boolean' | 'date';
|
|
4
5
|
export interface VisioDataColumn {
|
|
@@ -28,6 +29,12 @@ export interface VisioDataRecordset {
|
|
|
28
29
|
links: VisioDataLink[];
|
|
29
30
|
/** TimeRefreshed as saved, ISO text. */
|
|
30
31
|
refreshed?: string;
|
|
32
|
+
/** The saved data connection (ConnectionID) Visio refreshes this recordset from. */
|
|
33
|
+
connection?: VisioDataConnection;
|
|
34
|
+
/** The saved Command run against the connection. */
|
|
35
|
+
command?: string;
|
|
36
|
+
/** ColumnNameID of the primary key; refresh matches rows by it instead of by row order. */
|
|
37
|
+
primaryKey?: string;
|
|
31
38
|
}
|
|
32
39
|
export declare const VISIO_DATA_LIMITS: {
|
|
33
40
|
readonly maxRecordsets: 64;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-recordsets.d.ts","sourceRoot":"","sources":["../../visio/data-recordsets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"data-recordsets.d.ts","sourceRoot":"","sources":["../../visio/data-recordsets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9C,OAAO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aAClB,CAAC,EAAE,2CAA2C;aAC9C,EAAE,EAAE,2CAA2C;aAC/C,EAAE,EAAE,kCAAkC;aACtC,CAAC,EAAE,eAAe;CACT,CAAC;AACX,uEAAuE;AACvE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAK/D,CAAC;AAuBF,wFAAwF;AACxF,wBAAgB,eAAe,CAC9B,OAAO,EAAE,SAAS,eAAe,EAAE,EACnC,IAAI,EAAE,SAAS,YAAY,EAAE,UAqB7B;AA0BD,sFAAsF;AACtF,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,MAAM,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,EAC9B,KAAK,EAAE,MAAM,IAAI,GACf;IAAE,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,mBAAmB,CAAA;KAAE,EAAE,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAA;CAAE,CAoC1F;AAWD;;;GAGG;AACH,wBAAsB,kBAAkB,CACvC,GAAG,EAAE,YAAY,EACjB,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA2D/B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { VisioDataColumn, VisioDataRecordset } from './data-recordsets.js';
|
|
2
|
+
/** How the rows of a refreshed table line up with the rows the drawing was linked to. */
|
|
3
|
+
export interface VisioRowMatch {
|
|
4
|
+
/** The new row index for each old row index, or undefined when no new row matches it. */
|
|
5
|
+
map: (number | undefined)[];
|
|
6
|
+
/** The key column the match used; undefined means rows were matched by position. */
|
|
7
|
+
key?: string;
|
|
8
|
+
/** The key column is gone from the refreshed table, so no old row can be matched. */
|
|
9
|
+
keyMissing: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Match old rows to refreshed rows. With a primary key the key column's text decides (the first
|
|
13
|
+
* new row wins a duplicate key); without one the row position does, as Visio does for a
|
|
14
|
+
* recordset that has no primary key.
|
|
15
|
+
*/
|
|
16
|
+
export declare function matchRefreshedRows(oldColumns: readonly string[], oldRows: readonly (readonly string[])[], newColumns: readonly string[], newRows: readonly (readonly string[])[], key?: string): VisioRowMatch;
|
|
17
|
+
/** What a refresh will do to the shapes linked to a recordset, for the message the user reads. */
|
|
18
|
+
export interface VisioRefreshReport {
|
|
19
|
+
key?: string;
|
|
20
|
+
keyMissing: boolean;
|
|
21
|
+
/** Linked shapes whose row was found and whose values will update. */
|
|
22
|
+
matched: number;
|
|
23
|
+
/** Linked shapes whose row no longer exists; they keep their values and are unlinked. */
|
|
24
|
+
unmatched: {
|
|
25
|
+
shapeId: string;
|
|
26
|
+
pageId: string;
|
|
27
|
+
rowId: string;
|
|
28
|
+
}[];
|
|
29
|
+
/** Refreshed rows that no old row matched. */
|
|
30
|
+
added: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function visioRefreshReport(set: VisioDataRecordset, columns: readonly VisioDataColumn[], rows: readonly (readonly string[])[]): VisioRefreshReport;
|
|
33
|
+
//# sourceMappingURL=data-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-refresh.d.ts","sourceRoot":"","sources":["../../visio/data-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,yFAAyF;AACzF,MAAM,WAAW,aAAa;IAC7B,yFAAyF;IACzF,GAAG,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC5B,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,UAAU,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EACvC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EACvC,GAAG,CAAC,EAAE,MAAM,GACV,aAAa,CAoBf;AAED,kGAAkG;AAClG,MAAM,WAAW,kBAAkB;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,yFAAyF;IACzF,SAAS,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChE,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,kBAAkB,EACvB,OAAO,EAAE,SAAS,eAAe,EAAE,EACnC,IAAI,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,GAClC,kBAAkB,CAyBpB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MasterTemplate } from './edit-text-instance.js';
|
|
2
|
+
/** Run one Actions row of a shape: its SETF steps change cells of the shape itself. */
|
|
3
|
+
export interface VisioActionEdit {
|
|
4
|
+
type: 'run-action';
|
|
5
|
+
pageId: string;
|
|
6
|
+
shapeId: string;
|
|
7
|
+
/** The Actions row: its IX, or its name when it has no IX. */
|
|
8
|
+
row: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const isVisioActionEdit: (edit: {
|
|
11
|
+
type: string;
|
|
12
|
+
}) => edit is VisioActionEdit;
|
|
13
|
+
/** Copy and validate an action edit; the shape and row are checked when it is applied. */
|
|
14
|
+
export declare function snapshotActionEdit(edit: VisioActionEdit): VisioActionEdit;
|
|
15
|
+
/**
|
|
16
|
+
* Run an action the way Visio does: `SETF(GetRef(cell), value)` stores the evaluated value in the
|
|
17
|
+
* cell as a plain value, then everything that follows is recalculated and the shape's menu texts
|
|
18
|
+
* are refreshed (`Hide Box` after `Show Box`). Disabled actions, other functions, targets outside
|
|
19
|
+
* the shape and values this editor cannot evaluate are refused with the reason.
|
|
20
|
+
*/
|
|
21
|
+
export declare function applyActionEdit(roots: ReadonlyMap<string, Element>, edit: VisioActionEdit, template: MasterTemplate, check: () => void): Promise<readonly string[]>;
|
|
22
|
+
//# sourceMappingURL=edit-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-action.d.ts","sourceRoot":"","sources":["../../visio/edit-action.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAW3D,uFAAuF;AACvF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,iBAAiB,SAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,IAAI,eACxC,CAAC;AAE5B,0FAA0F;AAC1F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAQzE;AAQD;;;;;GAKG;AACH,wBAAsB,eAAe,CACpC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CA+D5B"}
|
|
@@ -18,6 +18,9 @@ import { type VisioGroupEdit } from './edit-group-commands.js';
|
|
|
18
18
|
import { type VisioPageSetupEdits } from './edit-page-setup-commands.js';
|
|
19
19
|
export type { VisioPageSetupEdit, VisioPagePropertiesEdit, VisioPageAltTextEdit, VisioPageDecorationEdit, VisioPageSetupEdits, VisioScaleUnit, } from './edit-page-setup-commands.js';
|
|
20
20
|
import { type VisioShapeDataEdit } from './edit-shape-data-commands.js';
|
|
21
|
+
import { type VisioControlEdit } from './edit-control.js';
|
|
22
|
+
import { type VisioActionEdit } from './edit-action.js';
|
|
23
|
+
export type { VisioControlEdit, VisioActionEdit };
|
|
21
24
|
export type { VisioShapeDataEdit, VisioShapeDataFields, VisioShapeDataType, } from './edit-shape-data-commands.js';
|
|
22
25
|
import { type VisioDataEdit } from './edit-data-commands.js';
|
|
23
26
|
export type { VisioDataEdit, VisioDataImportEdit, VisioDataRefreshEdit, VisioDataDeleteEdit, VisioDataLinkEdit, VisioDataUnlinkEdit, } from './edit-data-commands.js';
|
|
@@ -31,6 +34,7 @@ import { type VisioSubprocessEdit } from './edit-subprocess-commands.js';
|
|
|
31
34
|
export type { VisioSubprocessEdit, VisioSubprocessSelection } from './edit-subprocess-commands.js';
|
|
32
35
|
import { type VisioDiagramPartEdit } from './edit-diagram-parts-commands.js';
|
|
33
36
|
export type { VisioDiagramPartEdit, VisioInsertContainerEdit, VisioInsertCalloutEdit, } from './edit-diagram-parts-commands.js';
|
|
37
|
+
export type { VisioSwimlaneEdit, VisioCreateSwimlanesEdit, VisioInsertSwimlaneEdit, VisioDeleteSwimlaneEdit, VisioResizeSwimlaneEdit, VisioInsertSeparatorEdit, VisioSwimlaneOptionsEdit, VisioSwimlaneDirection, } from './edit-swimlane-commands.js';
|
|
34
38
|
import { type VisioAssignLayersEdit } from './edit-layer-commands.js';
|
|
35
39
|
export type { VisioAssignLayersEdit } from './edit-layer-commands.js';
|
|
36
40
|
import { type VisioLayerPropertiesEdit } from './edit-layer-properties.js';
|
|
@@ -40,6 +44,10 @@ export type { VisioMasterInstanceEdit } from './edit-master-instance.js';
|
|
|
40
44
|
import { type VisioStencilMasterDropEdit } from './edit-master-drop.js';
|
|
41
45
|
export type { VisioStencilMasterDropEdit } from './edit-master-drop.js';
|
|
42
46
|
import { type VisioGuideEdit } from './edit-guide-commands.js';
|
|
47
|
+
import { type VisioContainerEdit } from './edit-container-options.js';
|
|
48
|
+
import { type VisioPictureEdit } from './edit-picture-adjust.js';
|
|
49
|
+
export type { VisioContainerEdit, VisioContainerFitEdit, VisioContainerOptionsEdit, } from './edit-container-options.js';
|
|
50
|
+
export type { VisioPictureEdit, VisioPictureAdjustEdit, VisioPictureCropEdit, } from './edit-picture-adjust.js';
|
|
43
51
|
export type { VisioGuideEdit } from './edit-guide-commands.js';
|
|
44
52
|
import { type VisioTextFieldInsertEdit, type VisioTextFieldUpdateEdit } from './edit-text-field-commands.js';
|
|
45
53
|
export type { VisioTextFieldInsertEdit, VisioTextFieldUpdateEdit, } from './edit-text-field-commands.js';
|
|
@@ -146,7 +154,7 @@ export interface VisioPageSizeEdit {
|
|
|
146
154
|
height: number;
|
|
147
155
|
}
|
|
148
156
|
export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit | VisioPageSetupEdits;
|
|
149
|
-
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioTextFieldUpdateEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioChartObjectEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioDataEdit | VisioAssignLayersEdit | VisioLayerPropertiesEdit | VisioMasterInstanceEdit | VisioStencilMasterDropEdit | VisioGuideEdit;
|
|
157
|
+
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioTextFieldUpdateEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioChartObjectEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioControlEdit | VisioActionEdit | VisioDataEdit | VisioAssignLayersEdit | VisioLayerPropertiesEdit | VisioMasterInstanceEdit | VisioStencilMasterDropEdit | VisioGuideEdit | VisioContainerEdit | VisioPictureEdit;
|
|
150
158
|
export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
|
|
151
159
|
/** Potential direct changes used by both package and master dependency admission. */
|
|
152
160
|
export declare function geometryChangedCells(edit: VisioGeometryEdit): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAKN,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EACX,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC1F,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAA2B,KAAK,wBAAwB,EAAE,MAAM,2BAA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Ac,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACd;AACD,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb;AACD,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CACf;AACD,sGAAsG;AACtG,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AACD,MAAM,MAAM,aAAa,GACtB,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,iBAAiB,GACjB,mBAAmB,CAAC;AACvB,MAAM,MAAM,SAAS,GAClB,aAAa,GACb,mBAAmB,GACnB,wBAAwB,GACxB,wBAAwB,GACxB,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,wBAAwB,GACxB,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,iBAAiB,GACjB,sBAAsB,GACtB,oBAAoB,GACpB,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,kBAAkB,GAClB,aAAa,GACb,qBAAqB,GACrB,wBAAwB,GACxB,uBAAuB,GACvB,0BAA0B,GAC1B,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAKN,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGN,KAAK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AK,EAAE,SAAS,SAAS,EAAE,EAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACb,SAAS,EAAE,CAuMb"}
|
|
@@ -28,7 +28,30 @@ export interface VisioGlueBox {
|
|
|
28
28
|
height: number;
|
|
29
29
|
transform: VisioMatrix;
|
|
30
30
|
}
|
|
31
|
-
/** The
|
|
31
|
+
/** The page directions a dynamic connector leaves a shape by, in side order (bottom, right, top, left). */
|
|
32
|
+
export declare const VISIO_GLUE_DIRECTIONS: readonly [{
|
|
33
|
+
readonly x: 0;
|
|
34
|
+
readonly y: -1;
|
|
35
|
+
}, {
|
|
36
|
+
readonly x: 1;
|
|
37
|
+
readonly y: 0;
|
|
38
|
+
}, {
|
|
39
|
+
readonly x: 0;
|
|
40
|
+
readonly y: 1;
|
|
41
|
+
}, {
|
|
42
|
+
readonly x: -1;
|
|
43
|
+
readonly y: 0;
|
|
44
|
+
}];
|
|
45
|
+
/** Whether the shape's axes are turned off the page axes (a multiple of 90 degrees is not). */
|
|
46
|
+
export declare function visioGlueTurned(box: VisioGlueBox): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The four sites of a shape's alignment box, in page coordinates. A shape on the page axes has
|
|
49
|
+
* its side midpoints. For a turned shape, each page direction belongs to the side it faces most.
|
|
50
|
+
* Visio 16 glues there at the point where the line through the shape's centre crosses that side
|
|
51
|
+
* (read back through COM for 0.5 rad on tall and wide boxes), and at the side's midpoint when the
|
|
52
|
+
* line leaves the shape through the neighbouring side instead.
|
|
53
|
+
* Not modelled: Visio also slides the point along the side to line up with the other end.
|
|
54
|
+
*/
|
|
32
55
|
export declare function visioGlueSites(box: VisioGlueBox): VisioGluePoint[];
|
|
33
56
|
/**
|
|
34
57
|
* Walking shape-to-shape glue: each glued end sits on the side midpoint of its shape nearest the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector-glue.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-glue.ts"],"names":[],"mappings":"AA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GAAG,EAAE,YAAY,GAAG,cAAc,GAChC;IAAE,KAAK,EAAE,cAAc,CAAC;IAAC,GAAG,EAAE,cAAc,CAAA;CAAE,CAWhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector-layout.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-layout.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"edit-connector-layout.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-layout.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAIN,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGN,KAAK,aAAa,EAElB,KAAK,eAAe,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,KAAK,CAAC;AAClC,eAAO,MAAM,IAAI,EAAE,SAAS,GAAG,EAAqB,CAAC;AACrD,eAAO,MAAM,MAAM,QAAS,GAAG,oBAAwC,CAAC;AAYxE,uFAAuF;AACvF,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,CAKlE;AACD,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAI9E;AAED,gFAAgF;AAChF,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,GAAG,CAAC,EAAE,aAAa,CAAC;CACpB;AASD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,YAAY,GAAG,aAAa,CAazD;AAYD,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,GAAG,EAAE,YAAY,GAAG,aAAa,EAAE,CAQ/D;AACD,yFAAyF;AACzF,wBAAgB,SAAS,CAAC,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,CAIhF;AACD,qFAAqF;AACrF,wBAAgB,WAAW,CAC1B,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,GAAG,EAAE,SAAS,aAAa,EAAE,GAC3B,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,CAa5B;AAOD,2FAA2F;AAC3F,wBAAgB,aAAa,CAC5B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EACjC,SAAS,GAAE,SAAS,aAAa,EAAO,GACtC,eAAe,EAAE,CAMnB;AA4BD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,mBAAmB,EAC1B,QAAQ,EAAE,SAAS,eAAe,EAAE,GAClC,IAAI,CAwEN;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EACjC,KAAK,EAAE,MAAM,IAAI,EACjB,SAAS,GAAE,SAAS,aAAa,EAAO,GACtC,SAAS,MAAM,EAAE,CAuBnB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ConnectorSite, End } from './edit-connector-layout.js';
|
|
2
|
+
import type { ConnectorGlue } from './edit-connector.js';
|
|
3
|
+
/**
|
|
4
|
+
* The sides an org chart reporting line joins, or nothing for any other connector. A Dynamic
|
|
5
|
+
* connector whose route style is the organization chart's runs from the bottom of the manager to
|
|
6
|
+
* the top of the subordinate, as Visio's org chart routing draws it; to an Assistant Belt it
|
|
7
|
+
* drops from the manager's bottom and enters the assistant's side nearest that line. Only ends
|
|
8
|
+
* glued to whole shapes are handled; an end glued to a connection point keeps its point.
|
|
9
|
+
*/
|
|
10
|
+
export declare function orgChartSites(root: Element, connector: Element, glue: ConnectorGlue, sites: (end: End) => ConnectorSite[]): Record<End, ConnectorSite> | undefined;
|
|
11
|
+
//# sourceMappingURL=edit-connector-org.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connector-org.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-org.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC5B,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,aAAa,EAAE,GAClC,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,GAAG,SAAS,CA2BxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector-reroute.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-reroute.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-connector-reroute.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-reroute.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EASN,KAAK,GAAG,EACR,MAAM,yBAAyB,CAAC;AACjC,O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I,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,CAAC,EACjE,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAOnB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAWvF;AAED,iDAAiD;AACjD,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAWnB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { VisioMatrix } from './model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The shape named `shapeId` at any depth of the page, with the chain of groups above it (outermost
|
|
4
|
+
* first, the shape last). Nothing is proven here; callers read the chain's cached cells.
|
|
5
|
+
*/
|
|
6
|
+
export declare function shapeChain(root: Element, shapeId: string): Element[] | undefined;
|
|
7
|
+
/** `parent` after `local`: maps a point of the shape through its group chain to the page. */
|
|
8
|
+
export declare function composeMatrix(parent: VisioMatrix, local: VisioMatrix): VisioMatrix;
|
|
9
|
+
/** The cached size and local-to-parent transform of one shape of a chain (stencil-aware). */
|
|
10
|
+
export declare function localFrame(shape: Element): {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
matrix: VisioMatrix;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The size and page transform of a shape at any depth: its own local-to-parent transform composed
|
|
17
|
+
* with each group above it (PinX/PinY, LocPin, Angle and flips), so a connector glued to a group
|
|
18
|
+
* member lands where the member is drawn.
|
|
19
|
+
*/
|
|
20
|
+
export declare function worldFrame(chain: readonly Element[]): {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
transform: VisioMatrix;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=edit-connector-world.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connector-world.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-world.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,CAWhF;AAED,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,WAAW,CAWlF;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,CAoBjG;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,GAAG;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,WAAW,CAAC;CACvB,CAUA"}
|
|
@@ -17,6 +17,8 @@ export interface ConnectorGlue {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const connectRows: (root: Element) => Element[];
|
|
19
19
|
export declare function topShape(root: Element, shapeId: string): Element | undefined;
|
|
20
|
+
/** A glue target at any depth: top-level shapes and the members of groups. */
|
|
21
|
+
export declare function glueShape(root: Element, shapeId: string): Element | undefined;
|
|
20
22
|
/** A glue target's alignment box and transform, read from its own proven caches. */
|
|
21
23
|
export declare function glueBox(root: Element, shapeId: string): VisioGlueBox;
|
|
22
24
|
/** The local Connection rows of a shape (not deleted), by zero-based IX. */
|
|
@@ -34,7 +36,9 @@ export declare function glueNewConnector(root: Element, shape: Element, edit: Li
|
|
|
34
36
|
/** Prove a connector's Connect rows and glue formulas are the owned dynamic or point glue. */
|
|
35
37
|
export declare function proveConnector(root: Element, connectorId: string): ConnectorGlue;
|
|
36
38
|
/** Classify a geometry target: connectors glued to it, and whether it is itself glued. */
|
|
37
|
-
export declare function glueParticipants(root: Element, shapeId: string
|
|
39
|
+
export declare function glueParticipants(root: Element, shapeId: string,
|
|
40
|
+
/** A group that is moved, resized or turned: connectors glued to its members follow too. */
|
|
41
|
+
withMembers?: boolean): {
|
|
38
42
|
connectors: ConnectorGlue[];
|
|
39
43
|
connector?: ConnectorGlue;
|
|
40
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector.d.ts","sourceRoot":"","sources":["../../visio/edit-connector.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAON,KAAK,YAAY,EACjB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-connector.d.ts","sourceRoot":"","sources":["../../visio/edit-connector.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAON,KAAK,YAAY,EACjB,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EAON,KAAK,aAAa,EAClB,KAAK,GAAG,EACR,MAAM,yBAAyB,CAAC;AASjC,sGAAsG;AACtG,eAAO,MAAM,iBAAiB,6JAC6H,CAAC;AAC5J,KAAK,UAAU,GAAG,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AACtE,kGAAkG;AAClG,MAAM,WAAW,OAAO;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,GA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BAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM;AACf,4FAA4F;AAC5F,WAAW,UAAQ,GACjB;IAAE,UAAU,EAAE,aAAa,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,CAAA;CAAE,CA8B5D;AAED,mGAAmG;AACnG,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,GAAG,EAAE,GAAG,IAAI,CAoB9F;AAED,yGAAyG;AACzG,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,GAC/C,IAAI,CAyBN"}
|
|
@@ -3,12 +3,25 @@ import { type VisioReconcileContainersEdit } from './edit-diagram-parts-commands
|
|
|
3
3
|
export declare const CONTAINER_RESIZE_NONE = 0;
|
|
4
4
|
export declare const CONTAINER_RESIZE_EXPAND = 1;
|
|
5
5
|
export declare const CONTAINER_RESIZE_TIGHT = 2;
|
|
6
|
+
export interface Box {
|
|
7
|
+
minX: number;
|
|
8
|
+
minY: number;
|
|
9
|
+
maxX: number;
|
|
10
|
+
maxY: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function boundsOf(shapes: readonly Element[]): Box | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Give a top-level unrotated sheet the page box `target`: resize with the lower-left corner
|
|
15
|
+
* fixed, then slide it to the wanted corner. False when the geometry editor does not admit it.
|
|
16
|
+
*/
|
|
17
|
+
export declare function placeVisioBox(roots: ReadonlyMap<string, Element>, document: Element, pageId: string, container: Element, target: Box, check: () => void): boolean;
|
|
6
18
|
/**
|
|
7
19
|
* Grow (or, when always-fit, shrink) a container so it surrounds its members with its margin and
|
|
8
20
|
* heading allowance. Returns whether the container changed. Only an unrotated ordinary container
|
|
9
|
-
* is resized; any other is left alone.
|
|
21
|
+
* is resized; any other is left alone. `tight` is Fit to Contents: it takes the members' box
|
|
22
|
+
* whatever the resize mode, so it also shrinks an expanding container and fits a non-resizing one.
|
|
10
23
|
*/
|
|
11
|
-
export declare function fitVisioContainer(roots: ReadonlyMap<string, Element>, document: Element, pageId: string, container: Element, check: () => void): boolean;
|
|
24
|
+
export declare function fitVisioContainer(roots: ReadonlyMap<string, Element>, document: Element, pageId: string, container: Element, check: () => void, tight?: boolean): boolean;
|
|
12
25
|
/**
|
|
13
26
|
* After shapes moved or resized: a shape fully inside a container joins it (the innermost one), a
|
|
14
27
|
* member whose centre left its container leaves it, and every container whose members changed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-container-fit.d.ts","sourceRoot":"","sources":["../../visio/edit-container-fit.ts"],"names":[],"mappings":"AAIA,OAAO,EAKN,KAAK,4BAA4B,EACjC,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-container-fit.d.ts","sourceRoot":"","sources":["../../visio/edit-container-fit.ts"],"names":[],"mappings":"AAIA,OAAO,EAKN,KAAK,4BAA4B,EACjC,MAAM,+BAA+B,CAAC;AAYvC,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,MAAM,WAAW,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAGD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,GAAG,GAAG,SAAS,CAOpE;AAWD;;;GAGG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,MAAM,EACd,SA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