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,52 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
/** The org chart masters of Visio's Organization Chart stencil that a position can be. */
|
|
4
|
+
export type VisioOrgMaster = 'Executive Belt' | 'Manager Belt' | 'Position Belt' | 'Assistant Belt';
|
|
5
|
+
export type VisioOrgAddKind = 'subordinate' | 'peer' | 'assistant';
|
|
6
|
+
/** Every Belt master is this large, in drawing inches (the master's User.Width and Height). */
|
|
7
|
+
export declare const VISIO_ORG_SIZE: {
|
|
8
|
+
readonly width: 1.625;
|
|
9
|
+
readonly height: 0.875;
|
|
10
|
+
};
|
|
11
|
+
/** IDs for `positions` new positions (each leaves room for its sub-shapes), then `lines` connectors. */
|
|
12
|
+
export declare function visioOrgFreeIds(page: VisioPage, positions: number, lines: number): {
|
|
13
|
+
positions: string[];
|
|
14
|
+
lines: string[];
|
|
15
|
+
} | undefined;
|
|
16
|
+
/** The drop of one position: an instance of the Belt master `master`, centred on `at`. */
|
|
17
|
+
export declare function visioOrgDropPosition(pageId: string, shapeId: string, master: VisioOrgMaster, at: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
}): VisioEdit;
|
|
21
|
+
/**
|
|
22
|
+
* A reporting line as Visio draws one: an instance of the Organization Chart stencil's Dynamic
|
|
23
|
+
* connector, dropped between the two positions and then glued to both, so it follows them. The
|
|
24
|
+
* drop edit comes first in the returned pair (drops run before the rest of a batch); `glue`
|
|
25
|
+
* follows the edits that place the positions.
|
|
26
|
+
*/
|
|
27
|
+
export declare function visioOrgReportingLine(pageId: string, lineId: string, manager: string, subordinate: string, between: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}): {
|
|
31
|
+
drop: VisioEdit;
|
|
32
|
+
glue: VisioEdit[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Org Chart > Subordinate, Assistant or Coworker: a new position under the selected one (or under
|
|
36
|
+
* its manager, for a coworker; a coworker of an assistant is another assistant), an instance of
|
|
37
|
+
* Visio's Position, Assistant or the selected position's Belt master, with a Dynamic connector
|
|
38
|
+
* glued to it and its manager, then the whole tree laid out again so the new box has room. An
|
|
39
|
+
* assistant sits beside its manager's line. One edit batch, so it is one undo step. The new
|
|
40
|
+
* shape id is returned for selection.
|
|
41
|
+
*/
|
|
42
|
+
export declare function visioOrgAddPosition(page: VisioPage, shapeId: string, kind: VisioOrgAddKind): {
|
|
43
|
+
edits: VisioEdit[];
|
|
44
|
+
newId: string;
|
|
45
|
+
} | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Org Chart > Delete Position: the position and the connectors glued to it go; its subordinates
|
|
48
|
+
* (and assistants) are joined to its manager, or become tops of their own trees when it had none.
|
|
49
|
+
* One batch, so the whole command is one undo step.
|
|
50
|
+
*/
|
|
51
|
+
export declare function visioOrgDeletePosition(page: VisioPage, shapeId: string): VisioEdit[] | undefined;
|
|
52
|
+
//# sourceMappingURL=org-chart-edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-edit.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-edit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBA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CAAA;CAAE,GAAG,SAAS,CAuCnD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,SAAS,CAgChG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
import type { VisioDataTable } from './data-table.js';
|
|
4
|
+
/** One row of an org chart import: a person and who they report to. */
|
|
5
|
+
export interface VisioOrgPerson {
|
|
6
|
+
name: string;
|
|
7
|
+
title: string;
|
|
8
|
+
/** The Name (or ID) of the manager; empty for the top of a tree. */
|
|
9
|
+
reportsTo: string;
|
|
10
|
+
/** An identifier other rows may use in their Reports To column. */
|
|
11
|
+
id?: string;
|
|
12
|
+
department?: string;
|
|
13
|
+
telephone?: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
assistant?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The people of an imported sheet. Columns are found by their headings: Name, Title and Reports To
|
|
19
|
+
* are required (Reports To holds the manager's Name, or their ID when the sheet has an ID column);
|
|
20
|
+
* Department, Telephone, E-Mail and a Type column (a value of "Assistant" makes the row an
|
|
21
|
+
* assistant) are used when present. Returns an error sentence when the sheet cannot be read.
|
|
22
|
+
*/
|
|
23
|
+
export declare function visioOrgPeople(table: VisioDataTable): VisioOrgPerson[] | string;
|
|
24
|
+
/**
|
|
25
|
+
* Org Chart > Import: build an org chart from `people` on `page`, to the right of what is already
|
|
26
|
+
* there. Tops of trees are Executive Belts, people with subordinates Manager Belts, the rest
|
|
27
|
+
* Position Belts and assistants Assistant Belts, joined by Dynamic connectors, with Name, Title
|
|
28
|
+
* and the optional rows as Shape Data and the text following the data. The page grows to hold
|
|
29
|
+
* the chart. One batch, so it is one undo step. Returns an error sentence when it cannot be done.
|
|
30
|
+
*/
|
|
31
|
+
export declare function visioOrgImportEdits(page: VisioPage, people: readonly VisioOrgPerson[]): {
|
|
32
|
+
edits: VisioEdit[];
|
|
33
|
+
firstId: string;
|
|
34
|
+
} | string;
|
|
35
|
+
//# sourceMappingURL=org-chart-import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-import.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAYnD,uEAAuE;AACvE,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAkBD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,EAAE,GAAG,MAAM,CAkC/E;AAuCD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,SAAS,cAAc,EAAE,GAC/B;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAgFlD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
export interface OrgLayoutNode {
|
|
4
|
+
id: string;
|
|
5
|
+
/** Page inches. */
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
/** An assistant sits beside its manager's line, between the manager and the subordinates. */
|
|
9
|
+
assistant?: boolean;
|
|
10
|
+
/** Where the position is now (x, page inches): siblings keep their order. New ones go last. */
|
|
11
|
+
hint?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface OrgPoint {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Lay a tree of positions out top-down and return each position's centre, x rightward and y
|
|
19
|
+
* downward from the top left of the whole chart. Each manager sits over its subordinates, and
|
|
20
|
+
* every level is a row. A manager's assistants are stacked to the right of the line that drops
|
|
21
|
+
* from the manager, in a band of their own between the manager's row and the next, as Visio
|
|
22
|
+
* places them; the rows below are pushed down to make room.
|
|
23
|
+
*/
|
|
24
|
+
export declare function planOrgLayout(nodes: readonly OrgLayoutNode[], edges: readonly {
|
|
25
|
+
from: string;
|
|
26
|
+
to: string;
|
|
27
|
+
}[]): Map<string, OrgPoint> | undefined;
|
|
28
|
+
export interface OrgNewNode extends OrgLayoutNode {
|
|
29
|
+
/** The position the new one reports to. */
|
|
30
|
+
parent: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Lay the page's tree out again with `extra` positions (not in the page yet) added. Existing
|
|
34
|
+
* positions keep the top-left corner of their bounds. Returns the move edits for existing
|
|
35
|
+
* positions and the new positions' centres (drawing inches, y up).
|
|
36
|
+
*/
|
|
37
|
+
export declare function layoutOrgPage(page: VisioPage, extra?: readonly OrgNewNode[]): {
|
|
38
|
+
moves: VisioEdit[];
|
|
39
|
+
centres: Map<string, OrgPoint>;
|
|
40
|
+
} | undefined;
|
|
41
|
+
/** Org Chart > Layout: put every position back in a tidy top-down tree. */
|
|
42
|
+
export declare function visioOrgReLayout(page: VisioPage): VisioEdit[] | undefined;
|
|
43
|
+
//# sourceMappingURL=org-chart-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-layout.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AAYtD,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,QAAQ;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAcD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,KAAK,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,GAC5C,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,CAwGnC;AAED,MAAM,WAAW,UAAW,SAAQ,aAAa;IAChD,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;CACf;AAMD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,GAAE,SAAS,UAAU,EAAO;;;cAyD/E;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,CAGzE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Master IDs inside the stencil: Executive Belt = 2, Manager Belt = 4, Position Belt = 5, Assistant Belt = 6, Dynamic connector = 15. */
|
|
2
|
+
export declare const ORG_STENCIL_MASTER_IDS: {
|
|
3
|
+
readonly 'Executive Belt': '2';
|
|
4
|
+
readonly 'Manager Belt': '4';
|
|
5
|
+
readonly 'Position Belt': '5';
|
|
6
|
+
readonly 'Assistant Belt': '6';
|
|
7
|
+
readonly 'Dynamic connector': '15';
|
|
8
|
+
};
|
|
9
|
+
/** The stencil package bytes (a .vssx holding the org chart masters). */
|
|
10
|
+
export declare const orgStencilBytes: () => Uint8Array;
|
|
11
|
+
//# sourceMappingURL=org-chart-stencil-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-stencil-data.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-stencil-data.ts"],"names":[],"mappings":"AACA,0IAA0I;AAC1I,eAAO,MAAM,sBAAsB;aAClC,gBAAgB,EAAE,GAAG;aACrB,cAAc,EAAE,GAAG;aACnB,eAAe,EAAE,GAAG;aACpB,gBAAgB,EAAE,GAAG;aACrB,mBAAmB,EAAE,IAAI;CAChB,CAAC;AA8PX,yEAAyE;AACzE,eAAO,MAAM,eAAe,QAAO,UACiC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Basic Organization Chart starter: a Chief Executive, three Managers and two Positions,
|
|
3
|
+
* instances of Visio's Executive, Manager and Position Belt masters joined by Dynamic connectors,
|
|
4
|
+
* built by the editor's own edit API. The text of each position is its Name and Title Shape Data.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createOrgChartTemplate(): Promise<Uint8Array>;
|
|
7
|
+
//# sourceMappingURL=org-chart-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-template.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-template.ts"],"names":[],"mappings":"AA+BA;;;;GAIG;AACH,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,UAAU,CAAC,CA6BlE"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage, VisioShape } from '../model.js';
|
|
3
|
+
/**
|
|
4
|
+
* The Shape Data rows of an org chart position, in the order and with the row names Visio's own
|
|
5
|
+
* org chart masters (Executive, Manager, Position and Assistant Belt) carry, so a position keeps
|
|
6
|
+
* its data when Visio opens the file. The Email row is labelled E-Mail, as Visio does.
|
|
7
|
+
*/
|
|
8
|
+
export declare const VISIO_ORG_ROWS: readonly [{
|
|
9
|
+
readonly row: 'Department';
|
|
10
|
+
readonly label: 'Department';
|
|
11
|
+
}, {
|
|
12
|
+
readonly row: 'Telephone';
|
|
13
|
+
readonly label: 'Telephone';
|
|
14
|
+
}, {
|
|
15
|
+
readonly row: 'Name';
|
|
16
|
+
readonly label: 'Name';
|
|
17
|
+
}, {
|
|
18
|
+
readonly row: 'Title';
|
|
19
|
+
readonly label: 'Title';
|
|
20
|
+
}, {
|
|
21
|
+
readonly row: 'Email';
|
|
22
|
+
readonly label: 'E-Mail';
|
|
23
|
+
}];
|
|
24
|
+
export interface VisioOrgPositionData {
|
|
25
|
+
Name?: string;
|
|
26
|
+
Title?: string;
|
|
27
|
+
Department?: string;
|
|
28
|
+
Telephone?: string;
|
|
29
|
+
Email?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The set-shape-data edits for the rows `data` names. The rows themselves come from the master the
|
|
33
|
+
* position is an instance of; only the values given are written.
|
|
34
|
+
*/
|
|
35
|
+
export declare function visioOrgDataEdits(pageId: string, shapeId: string, data: VisioOrgPositionData): VisioEdit[];
|
|
36
|
+
/** Whether a shape is an org chart position: it carries every org chart Shape Data row. */
|
|
37
|
+
export declare const visioIsOrgPosition: (shape: VisioShape | undefined) => boolean;
|
|
38
|
+
/** Whether a position is an instance of the Assistant Belt master (instances are named after it). */
|
|
39
|
+
export declare const visioIsOrgAssistant: (shape: VisioShape | undefined) => boolean;
|
|
40
|
+
/** The org chart position a selected shape is, when it is one. */
|
|
41
|
+
export declare function visioOrgPosition(page: VisioPage, shapeId: string): VisioShape | undefined;
|
|
42
|
+
export interface VisioOrgHierarchy {
|
|
43
|
+
/** Every position on the page. */
|
|
44
|
+
positions: VisioShape[];
|
|
45
|
+
/** Reporting lines between positions, manager to subordinate. */
|
|
46
|
+
lines: {
|
|
47
|
+
from: string;
|
|
48
|
+
to: string;
|
|
49
|
+
}[];
|
|
50
|
+
parentOf(id: string): string | undefined;
|
|
51
|
+
childrenOf(id: string): string[];
|
|
52
|
+
}
|
|
53
|
+
/** The positions of a page and the glued connectors that join them. */
|
|
54
|
+
export declare function visioOrgHierarchy(page: VisioPage): VisioOrgHierarchy;
|
|
55
|
+
/** The text a position shows: its Name, then its Title, each on a line of its own when set. */
|
|
56
|
+
export declare const visioOrgText: (data: Pick<VisioOrgPositionData, 'Name' | 'Title'>) => string;
|
|
57
|
+
/**
|
|
58
|
+
* Keep the text of an org chart position in step with its Shape Data, as Visio's org chart shows
|
|
59
|
+
* the Name and Title fields: after a `set-shape-data` of the Name or Title row of a position, a
|
|
60
|
+
* text edit with the new Name and Title follows it. Other edits are returned as they are.
|
|
61
|
+
*/
|
|
62
|
+
export declare function visioOrgFollowData(page: VisioPage, edits: readonly VisioEdit[]): VisioEdit[];
|
|
63
|
+
//# sourceMappingURL=org-chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItD;;;;GAIG;AACH,eAAO,MAAM,cAAc;aACxB,GAAG,EAAE,YAAY;aAAE,KAAK,EAAE,YAAY;;aACtC,GAAG,EAAE,WAAW;aAAE,KAAK,EAAE,WAAW;;aACpC,GAAG,EAAE,MAAM;aAAE,KAAK,EAAE,MAAM;;aAC1B,GAAG,EAAE,OAAO;aAAE,KAAK,EAAE,OAAO;;aAC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AAkB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CA+B5F"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type SnapBox, type SnapGuide } from '../../geometry/snap-guides.js';
|
|
2
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
3
|
+
import type { VisioPage } from '../model.js';
|
|
4
|
+
import type { VisioPagePoint } from './shape-move.js';
|
|
5
|
+
import { type VisioResizeDragOptions, type VisioResizeFrame, type VisioResizeHandle } from './shape-resize.js';
|
|
6
|
+
/** Dynamic Grid and Guides while a handle is dragged, as for a move (see `visioSnapMoveDelta`). */
|
|
7
|
+
export interface VisioResizeSnapOptions {
|
|
8
|
+
/** Dynamic Grid: the moving edge snaps to other shapes' edges and centres, and size hints show. */
|
|
9
|
+
shapes: boolean;
|
|
10
|
+
/** Shown guides: the moving edge snaps to them. */
|
|
11
|
+
guides: boolean;
|
|
12
|
+
/** Page inches; a snap happens within this distance. */
|
|
13
|
+
threshold: number;
|
|
14
|
+
}
|
|
15
|
+
/** A nearby shape whose width or height equals the frame's; `box` is drawn as the hint. */
|
|
16
|
+
export interface VisioResizeSizeMatch {
|
|
17
|
+
axis: 'x' | 'y';
|
|
18
|
+
shapeId: string;
|
|
19
|
+
box: SnapBox;
|
|
20
|
+
}
|
|
21
|
+
export interface VisioSnapResizeResult {
|
|
22
|
+
frame: VisioResizeFrame;
|
|
23
|
+
commands: VisioEdit[];
|
|
24
|
+
members: {
|
|
25
|
+
id: string;
|
|
26
|
+
frame: VisioResizeFrame;
|
|
27
|
+
}[];
|
|
28
|
+
/** Alignment lines in the snap box convention (y = -page y), for the same overlay a move uses. */
|
|
29
|
+
lines: SnapGuide[];
|
|
30
|
+
sizeMatches: VisioResizeSizeMatch[];
|
|
31
|
+
}
|
|
32
|
+
/** The point a handle sits on in the snap box convention (y = -page y). */
|
|
33
|
+
export declare function visioResizeHandlePoint(frame: Pick<VisioResizeFrame, 'transform' | 'width' | 'height'>, location: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
}): VisioPagePoint;
|
|
37
|
+
/**
|
|
38
|
+
* Shapes near a resized frame whose width or height equals the frame's. Visio's size-match hint
|
|
39
|
+
* shows them while Dynamic Grid is on. The moving shapes are left out.
|
|
40
|
+
*/
|
|
41
|
+
export declare function visioResizeSizeMatches(page: VisioPage, ids: readonly string[], frame: VisioResizeFrame): VisioResizeSizeMatch[];
|
|
42
|
+
/**
|
|
43
|
+
* A resize drag with Dynamic Grid and Guides. The handle's moving edge snaps to the nearest edge
|
|
44
|
+
* or centre within the threshold, on each axis the handle moves; the drag is then re-solved with
|
|
45
|
+
* the pointer moved by that snap, so the edge lands on the line. Lines report what was aligned.
|
|
46
|
+
* Without `snap` (Alt held, or snapping off) the result is the plain drag.
|
|
47
|
+
*/
|
|
48
|
+
export declare function visioSnapResizeDrag(page: VisioPage, ids: readonly string[], handle: VisioResizeHandle, start: VisioPagePoint, end: VisioPagePoint, options?: VisioResizeDragOptions & {
|
|
49
|
+
snap?: VisioResizeSnapOptions;
|
|
50
|
+
}): VisioSnapResizeResult | undefined;
|
|
51
|
+
//# sourceMappingURL=resize-snap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resize-snap.d.ts","sourceRoot":"","sources":["../../../visio/ui/resize-snap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAEN,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,MAAM,gBAAgB,CAAC;AAGxB,mGAAmG;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BAAqB,GAAG,SAAS,CAoCnC"}
|
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
import { type VisioEdit } from '../index.js';
|
|
2
|
+
export interface SampleBox {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
fill: string;
|
|
10
|
+
/** The built-in stencil master the box is an instance of; Basic Shapes' Rectangle by default. */
|
|
11
|
+
master?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SampleLink {
|
|
14
|
+
id: string;
|
|
15
|
+
from: string;
|
|
16
|
+
to: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SamplePage {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
boxes: readonly SampleBox[];
|
|
24
|
+
links: readonly SampleLink[];
|
|
25
|
+
}
|
|
26
|
+
export declare function shapeEdits(page: SamplePage): VisioEdit[];
|
|
1
27
|
/**
|
|
2
28
|
* The sample drawing as a real VSDX package, built through the same edit API the editor uses, so
|
|
3
29
|
* every shape in it can be selected, moved, retyped and saved. Its boxes are instances of the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sample-drawing.d.ts","sourceRoot":"","sources":["../../../visio/ui/sample-drawing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sample-drawing.d.ts","sourceRoot":"","sources":["../../../visio/ui/sample-drawing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAEhE,MAAM,WAAW,SAAS;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,iGAAiG;IACjG,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,UAAU;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACX;AACD,MAAM,WAAW,UAAU;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IAC5B,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;CAC7B;AA4FD,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,EAAE,CAwCxD;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,UAAU,CAAC,CAqB5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-validation.d.ts","sourceRoot":"","sources":["../../../visio/ui/scene-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAKN,KAAK,aAAa,EAGlB,MAAM,UAAU,CAAC;AAMlB,eAAO,MAAM,eAAe,QAAmB,CAAC;AAkChD,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"scene-validation.d.ts","sourceRoot":"","sources":["../../../visio/ui/scene-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAKN,KAAK,aAAa,EAGlB,MAAM,UAAU,CAAC;AAMlB,eAAO,MAAM,eAAe,QAAmB,CAAC;AAkChD,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CA8XjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VisioPage } from '../model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The part of a selection that is moved or resized as shapes. A connector in the selection with
|
|
4
|
+
* both ends glued to selected shapes (or to members of selected groups) is not moved itself: the
|
|
5
|
+
* core lays it out again after each shape command, which puts it where its two ends now are. A
|
|
6
|
+
* connector with a free end, or an end glued outside the selection, makes the whole selection
|
|
7
|
+
* ineligible (`undefined`): its free end has no rule here, and Visio moves it differently.
|
|
8
|
+
*/
|
|
9
|
+
export declare function visioSelectionShapes(page: VisioPage, ids: readonly string[]): string[] | undefined;
|
|
10
|
+
//# sourceMappingURL=selection-connectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-connectors.d.ts","sourceRoot":"","sources":["../../../visio/ui/selection-connectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AActD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,SAAS,MAAM,EAAE,GACpB,MAAM,EAAE,GAAG,SAAS,CAqBtB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { VisioEdit } from '../edit-commands.js';
|
|
2
2
|
import type { VisioPage } from '../model.js';
|
|
3
3
|
import type { VisioPagePoint } from './shape-move.js';
|
|
4
|
-
import { type VisioResizeFrame, type VisioResizeHandle } from './shape-resize.js';
|
|
4
|
+
import { type VisioResizeDragOptions, type VisioResizeFrame, type VisioResizeHandle } from './shape-resize.js';
|
|
5
5
|
/** One local frame for a single shape, or a page-aligned frame for eligible local leaves. */
|
|
6
6
|
export declare function visioResizeSelectionFrame(page: VisioPage, ids: readonly string[]): VisioResizeFrame | undefined;
|
|
7
7
|
/** Scale members and spacing together. Commit all commands atomically: source locks, formulas
|
|
8
8
|
* and dependencies remain authoritative. Before accepting the edited document, call
|
|
9
9
|
* assertVisioGeometryExpectation with these members; discard the entire batch on rejection.
|
|
10
10
|
*/
|
|
11
|
-
export declare function visioResizeSelectionDrag(page: VisioPage, ids: readonly string[], handle: VisioResizeHandle, start: VisioPagePoint, end: VisioPagePoint): {
|
|
11
|
+
export declare function visioResizeSelectionDrag(page: VisioPage, ids: readonly string[], handle: VisioResizeHandle, start: VisioPagePoint, end: VisioPagePoint, options?: VisioResizeDragOptions): {
|
|
12
12
|
frame: VisioResizeFrame;
|
|
13
13
|
commands: VisioEdit[];
|
|
14
14
|
members: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-resize.d.ts","sourceRoot":"","sources":["../../../visio/ui/selection-resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"selection-resize.d.ts","sourceRoot":"","sources":["../../../visio/ui/selection-resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AAGtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAON,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,MAAM,gBAAgB,CAAC;AAmExB,6FAA6F;AAC7F,wBAAgB,yBAAyB,CACxC,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,SAAS,MAAM,EAAE,GACpB,gBAAgB,GAAG,SAAS,CAG9B;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,SAAS,MAAM,EAAE,EACtB,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,cAAc,EACnB,OAAO,GAAE,sBAA2B,GAElC;IACA,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,gBAAgB,CAAA;KAAE,EAAE,CAAC;CAClD,GACD,SAAS,CA6HX"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { VisioPage, VisioShape } from '../model.js';
|
|
2
2
|
import type { VisioGroupShapesEdit, VisioUngroupShapeEdit } from '../edit-group-commands.js';
|
|
3
3
|
/** A top-level group the pointer can move as one sheet. */
|
|
4
|
-
export declare function visioMovableGroup(page: VisioPage, id: string
|
|
4
|
+
export declare function visioMovableGroup(page: VisioPage, id: string,
|
|
5
|
+
/** Moving may leave connectors glued to members; ungrouping may not. */
|
|
6
|
+
followGlue?: boolean): VisioShape | undefined;
|
|
5
7
|
/** Group two or more selected top-level shapes; members keep page stacking order. */
|
|
6
8
|
export declare function visioGroupCommand(page: VisioPage, shapeIds: readonly string[]): VisioGroupShapesEdit | undefined;
|
|
7
9
|
/** Ungroup exactly one selected top-level group. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-group.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAuB1F,2DAA2D;AAC3D,wBAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"shape-group.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAuB1F,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,MAAM;AACV,wEAAwE;AACxE,UAAU,UAAQ,GAChB,UAAU,GAAG,SAAS,CAIxB;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,GACzB,oBAAoB,GAAG,SAAS,CAmBlC;AAED,oDAAoD;AACpD,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,GACzB,qBAAqB,GAAG,SAAS,CAGnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-move.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-move.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"shape-move.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-move.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOnE,MAAM,WAAW,cAAc;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAaD,6FAA6F;AAC7F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAsBtF;AACD,4FAA4F;AAC5F,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,cAAc,EACnB,SAAS,UAAQ,GACf,cAAc,CAKhB;AACD,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,cAAc,GACnB,WAAW,GAAG,SAAS,CAKzB;AACD,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAGlF;AACD;gDACgD;AAChD,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,KAAK,EAAE,cAAc,GACnB,SAAS,EAAE,GAAG,SAAS,CAgCzB;AACD;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GACV,SAAS,EAAE,GAAG,SAAS,GAAG,IAAI,CAMhC"}
|
|
@@ -49,10 +49,38 @@ export declare function visioResizeFrame(shape: VisioShape, size: {
|
|
|
49
49
|
width: number;
|
|
50
50
|
height: number;
|
|
51
51
|
}, anchor: VisioResizeAnchor): VisioResizeFrame | undefined;
|
|
52
|
+
/** How a drag maps onto the shape's size. Visio keeps the proportions when a corner handle is
|
|
53
|
+
* dragged, and on any handle while Shift is held (`proportional`); side handles otherwise change
|
|
54
|
+
* one dimension. */
|
|
55
|
+
export interface VisioResizeDragOptions {
|
|
56
|
+
proportional?: boolean;
|
|
57
|
+
/** Ctrl: resize about the centre, so each dragged edge moves twice the pointer distance. */
|
|
58
|
+
symmetric?: boolean;
|
|
59
|
+
}
|
|
60
|
+
/** True when a drag on `handle` keeps the shape's proportions, as Visio does. */
|
|
61
|
+
export declare function visioResizeKeepsProportions(handle: VisioResizeHandle, options?: VisioResizeDragOptions): boolean;
|
|
62
|
+
/** Scale a raw resize uniformly. A corner follows the axis that changed more; a side handle
|
|
63
|
+
* scales the other axis with it about its centre. The ratio survives the minimum-size clamp. */
|
|
64
|
+
export declare function visioProportionalSize(shape: {
|
|
65
|
+
width: number;
|
|
66
|
+
height: number;
|
|
67
|
+
}, raw: {
|
|
68
|
+
width: number;
|
|
69
|
+
height: number;
|
|
70
|
+
}, location: {
|
|
71
|
+
x: number;
|
|
72
|
+
y: number;
|
|
73
|
+
}, min?: {
|
|
74
|
+
width: number;
|
|
75
|
+
height: number;
|
|
76
|
+
}): {
|
|
77
|
+
width: number;
|
|
78
|
+
height: number;
|
|
79
|
+
};
|
|
52
80
|
/** Drag in physical page coordinates along the saved rotated/reflected local axes.
|
|
53
81
|
* Crossing the opposite handle clamps at 1/16 physical inch; it does not silently change flips.
|
|
54
82
|
*/
|
|
55
|
-
export declare function visioResizeDrag(page: VisioPage, id: string, handle: VisioResizeHandle, start: VisioPagePoint, end: VisioPagePoint): {
|
|
83
|
+
export declare function visioResizeDrag(page: VisioPage, id: string, handle: VisioResizeHandle, start: VisioPagePoint, end: VisioPagePoint, options?: VisioResizeDragOptions): {
|
|
56
84
|
frame: VisioResizeFrame;
|
|
57
85
|
command: Extract<VisioEdit, {
|
|
58
86
|
type: 'resize-shape';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-resize.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-resize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAA0C,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"shape-resize.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-resize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAA0C,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAkD3F,eAAO,MA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BAAsB;IACtC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,iFAAiF;AACjF,wBAAgB,2BAA2B,CAC1C,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,sBAA2B,GAClC,OAAO,CAET;AACD;gGACgG;AAChG,wBAAgB,qBAAqB,CACpC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACxC,GAAG,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACtC,QAAQ,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAClC,GAAG;IAAK,KAAK;IAAiC,MAAM;CAAkC,GACpF;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAanC;AACD;;GAEG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,cAAc,EACnB,OAAO,GAAE,sBAA2B,GAClC;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC,SAAS,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,CAAC,CAAA;CAAE,GAAG,SAAS,CAgDhG"}
|
|
@@ -5,7 +5,9 @@ import type { VisioPage, VisioShape } from '../model.js';
|
|
|
5
5
|
* stencil shapes; each stays an instance of its master and moves with the group as one member.
|
|
6
6
|
* Source protections remain enforced by core edits.
|
|
7
7
|
*/
|
|
8
|
-
export declare function visioLocalRotationShape(page: VisioPage, shapeId: string, includeGroups?: boolean
|
|
8
|
+
export declare function visioLocalRotationShape(page: VisioPage, shapeId: string, includeGroups?: boolean,
|
|
9
|
+
/** Connectors glued to members of the group follow it (core lays them out again). */
|
|
10
|
+
followGlue?: boolean): VisioShape | undefined;
|
|
9
11
|
/**
|
|
10
12
|
* What Rotate and Flip act on: a local shape or group, or a stencil instance (a group included), whose
|
|
11
13
|
* angle and flip flags are saved as local values over its master.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-rotation.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-rotation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,aAAa,UAAO,
|
|
1
|
+
{"version":3,"file":"shape-rotation.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-rotation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,aAAa,UAAO;AACpB,qFAAqF;AACrF,UAAU,UAAQ,GAChB,UAAU,GAAG,SAAS,CAgDxB;AACD;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,aAAa,UAAO,GAClB,UAAU,GAAG,SAAS,CAcxB;AACD,+FAA+F;AAC/F,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAAG,OAAO,GACzB,OAAO,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC,GAAG,SAAS,CAa1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-scene.d.ts","sourceRoot":"","sources":["../../../visio/ui/snapshot-scene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAOb,MAAM,UAAU,CAAC;AA2BlB;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"snapshot-scene.d.ts","sourceRoot":"","sources":["../../../visio/ui/snapshot-scene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAOb,MAAM,UAAU,CAAC;AA2BlB;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CA0TrE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage, VisioShape, VisioSwimlaneFrameOptions } from '../model.js';
|
|
3
|
+
import { type VisioSwimlaneDirection } from '../edit-swimlane-commands.js';
|
|
4
|
+
/** A cross-functional flowchart on a page: its frame, options and lanes in stacking order. */
|
|
5
|
+
export interface VisioSwimlaneInfo {
|
|
6
|
+
frame: VisioShape;
|
|
7
|
+
options: VisioSwimlaneFrameOptions;
|
|
8
|
+
lanes: VisioShape[];
|
|
9
|
+
}
|
|
10
|
+
/** The flowchart a frame, a lane or any shape inside a lane belongs to. */
|
|
11
|
+
export declare function visioSwimlaneInfo(page: VisioPage, shapeId: string): VisioSwimlaneInfo | undefined;
|
|
12
|
+
/** Whether a selected shape is the frame or a lane (what the contextual tab keys on). */
|
|
13
|
+
export declare const visioIsSwimlaneShape: (page: VisioPage, shapeId: string) => boolean;
|
|
14
|
+
/** Insert Swimlane: a lane before or after the selected one, shifting the lanes after it. */
|
|
15
|
+
export declare function visioInsertSwimlane(page: VisioPage, laneId: string, position: 'before' | 'after', heading: string): VisioEdit[] | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Delete Swimlane: the lane and the shapes in it go; the lanes after it close up. Deleting
|
|
18
|
+
* stencil shapes needs a transaction of its own, so this is two batches to apply in order.
|
|
19
|
+
*/
|
|
20
|
+
export declare function visioDeleteSwimlane(page: VisioPage, laneId: string): VisioEdit[][] | undefined;
|
|
21
|
+
/** Resize a lane along the stacking axis (page inches); the lanes after it move and the frame follows. */
|
|
22
|
+
export declare function visioResizeSwimlane(page: VisioPage, laneId: string, size: number): VisioEdit[] | undefined;
|
|
23
|
+
/** Insert Separator: a phase bar across the lanes, at the middle of the flowchart by default. */
|
|
24
|
+
export declare function visioInsertSeparator(page: VisioPage, shapeId: string, at?: number): VisioEdit[] | undefined;
|
|
25
|
+
export interface VisioSwimlaneChange {
|
|
26
|
+
showTitle?: boolean;
|
|
27
|
+
showSeparators?: boolean;
|
|
28
|
+
rotateLabels?: boolean;
|
|
29
|
+
style?: number;
|
|
30
|
+
/** Direction > Horizontal or Vertical; turning is a command of its own (no other option). */
|
|
31
|
+
direction?: VisioSwimlaneDirection;
|
|
32
|
+
}
|
|
33
|
+
/** The Design and Arrange options; hiding or showing the title bar shifts every lane. */
|
|
34
|
+
export declare function visioSwimlaneOptions(page: VisioPage, shapeId: string, change: VisioSwimlaneChange): VisioEdit[] | undefined;
|
|
35
|
+
/** File > New and Insert: a flowchart of `laneCount` lanes centred on the page. */
|
|
36
|
+
export declare function visioCreateSwimlanes(page: VisioPage, direction: VisioSwimlaneDirection, laneCount?: number): VisioEdit[] | undefined;
|
|
37
|
+
//# sourceMappingURL=swimlane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swimlane.d.ts","sourceRoot":"","sources":["../../../visio/ui/swimlane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,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CACnC;AAyCD,yFAAyF;AACzF,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,GACzB,SAAS,EAAE,GAAG,SAAS,CAgCzB;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,sBAAsB,EACjC,SAAS,SAAI,GACX,SAAS,EAAE,GAAG,SAAS,CA0BzB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** The templates File > New offers, in Visio's order: Blank Drawing first. */
|
|
2
|
+
export declare const VISIO_TEMPLATES: readonly [{
|
|
3
|
+
readonly id: 'blank';
|
|
4
|
+
readonly name: 'Blank Drawing';
|
|
5
|
+
readonly description: 'Start an empty drawing.';
|
|
6
|
+
}, {
|
|
7
|
+
readonly id: 'basic-flowchart';
|
|
8
|
+
readonly name: 'Basic Flowchart';
|
|
9
|
+
readonly description: 'A short process with a decision, using Basic Flowchart Shapes.';
|
|
10
|
+
}, {
|
|
11
|
+
readonly id: 'cross-functional-flowchart';
|
|
12
|
+
readonly name: 'Cross-Functional Flowchart';
|
|
13
|
+
readonly description: 'A process across three horizontal swimlanes that stack and resize together.';
|
|
14
|
+
}, {
|
|
15
|
+
readonly id: 'cross-functional-flowchart-vertical';
|
|
16
|
+
readonly name: 'Cross-Functional Flowchart (Vertical)';
|
|
17
|
+
readonly description: 'A process across three vertical swimlanes, lanes side by side with the flow running down.';
|
|
18
|
+
}, {
|
|
19
|
+
readonly id: 'organization-chart';
|
|
20
|
+
readonly name: 'Basic Organization Chart';
|
|
21
|
+
readonly description: 'A small reporting hierarchy joined by connectors.';
|
|
22
|
+
}];
|
|
23
|
+
export type VisioTemplateId = (typeof VISIO_TEMPLATES)[number]['id'];
|
|
24
|
+
export declare const isVisioTemplateId: (value: unknown) => value is VisioTemplateId;
|
|
25
|
+
/**
|
|
26
|
+
* A starter drawing as a real VSDX package, built by the editor's own edit API from built-in
|
|
27
|
+
* stencil masters, so every shape can be selected and edited and every connector is glued.
|
|
28
|
+
*/
|
|
29
|
+
export declare function createTemplateVsdx(id: VisioTemplateId): Promise<Uint8Array>;
|
|
30
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../visio/ui/templates.ts"],"names":[],"mappings":"AAIA,8EAA8E;AAC9E,eAAO,MAAM,eAAe;aACzB,EAAE,EAAE,OAAO;aAAE,IAAI,EAAE,eAAe;aAAE,WAAW,EAAE,yBAAyB;;aAE3E,EAAE,EAAE,iBAAiB;aACrB,IAAI,EAAE,iBAAiB;aACvB,WAAW,EAAE,gEAAgE;;aAG7E,EAAE,EAAE,4BAA4B;aAChC,IAAI,EAAE,4BAA4B;aAClC,WAAW,EAAE,6EAA6E;;aAG1F,EAAE,EAAE,qCAAqC;aACzC,IAAI,EAAE,uCAAuC;aAC7C,WAAW,EACV,2FAA2F;;aAG5F,EAAE,EAAE,oBAAoB;aACxB,IAAI,EAAE,0BAA0B;aAChC,WAAW,EAAE,mDAAmD;EAExD,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAErE,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,eACF,CAAC;AA4E3D;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,CA6BjF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FormulaAst } from '../formula/ast.js';
|
|
2
|
+
export interface PrintedFormula {
|
|
3
|
+
text: string;
|
|
4
|
+
/** Offsets of `mark` in `text` (the leading `=` is not part of `text`). */
|
|
5
|
+
span?: {
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/** Prints `ast` without a leading `=`; reports where the node `mark` landed. */
|
|
11
|
+
export declare function printFormula(ast: FormulaAst, mark?: FormulaAst): PrintedFormula;
|
|
12
|
+
//# sourceMappingURL=ast-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast-text.d.ts","sourceRoot":"","sources":["../../../xlsx/audit/ast-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA0BjD,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC;AASD,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,cAAc,CA8E/E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type IgnoredError, type IgnoredErrorFlag, type Workbook } from '../model.js';
|
|
2
|
+
import { type CellRef } from './trace.js';
|
|
3
|
+
export type ErrorRule = 'error-value' | 'inconsistent-formula' | 'omits-adjacent-cells' | 'number-as-text' | 'unlocked-formula' | 'empty-cell-reference' | 'calculated-column';
|
|
4
|
+
export declare const ERROR_RULES: readonly ErrorRule[];
|
|
5
|
+
/** The rules Excel has on by default (references to empty cells is off). */
|
|
6
|
+
export declare const DEFAULT_ERROR_RULES: readonly ErrorRule[];
|
|
7
|
+
/** The flag that switches each rule off for a range. */
|
|
8
|
+
export declare const RULE_FLAG: Readonly<Record<ErrorRule, IgnoredErrorFlag>>;
|
|
9
|
+
export interface ErrorIssue extends CellRef {
|
|
10
|
+
rule: ErrorRule;
|
|
11
|
+
/** The error shown (#DIV/0!) for error-value. */
|
|
12
|
+
code?: string;
|
|
13
|
+
}
|
|
14
|
+
/** The sheet's ignored-error list with the issue added (Ignore Error), for `setIgnoredErrors`. */
|
|
15
|
+
export declare function withIgnoredError(workbook: Workbook, issue: ErrorIssue): IgnoredError[];
|
|
16
|
+
/**
|
|
17
|
+
* Every issue on a sheet (all sheets when `sheet` is undefined), in reading order, minus the
|
|
18
|
+
* ones the sheet's `ignoredErrors` switch off.
|
|
19
|
+
*/
|
|
20
|
+
export declare function findErrors(workbook: Workbook, sheet?: number, rules?: readonly ErrorRule[]): ErrorIssue[];
|
|
21
|
+
/** The first issue after (or, going back, before) a cell, wrapping around; undefined when none. */
|
|
22
|
+
export declare function adjacentIssue(issues: readonly ErrorIssue[], from: CellRef, direction: 1 | -1, includeCurrent?: boolean): ErrorIssue | undefined;
|
|
23
|
+
//# sourceMappingURL=error-check.d.ts.map
|