ooxml-core 1.6.2 → 1.8.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/automation/index.cjs +11143 -6014
- package/dist/automation/index.mjs +11143 -6014
- package/dist/collab/session.d.ts.map +1 -1
- package/dist/color/index.cjs +103 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/color/index.d.ts.map +1 -1
- package/dist/color/index.mjs +94 -1
- package/dist/color/theme-palette.d.ts +55 -0
- package/dist/color/theme-palette.d.ts.map +1 -0
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/model.d.ts +2 -2
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/style-numbering-package.d.ts.map +1 -1
- package/dist/docx/tab-stops.d.ts.map +1 -1
- package/dist/docx/table-styles.d.ts.map +1 -1
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-table.d.ts.map +1 -1
- package/dist/geometry/connector-router-astar.d.ts +24 -0
- package/dist/geometry/connector-router-astar.d.ts.map +1 -0
- package/dist/geometry/connector-router-graph.d.ts +38 -0
- package/dist/geometry/connector-router-graph.d.ts.map +1 -0
- package/dist/geometry/connector-router-types.d.ts +53 -0
- package/dist/geometry/connector-router-types.d.ts.map +1 -0
- package/dist/geometry/connector-router.d.ts +35 -0
- package/dist/geometry/connector-router.d.ts.map +1 -0
- package/dist/geometry/guide-formula-api.d.ts.map +1 -1
- package/dist/geometry/index.cjs +344 -0
- package/dist/geometry/index.d.ts +2 -0
- package/dist/geometry/index.d.ts.map +1 -1
- package/dist/geometry/index.mjs +327 -1
- package/dist/geometry/nudge.d.ts +12 -0
- package/dist/geometry/nudge.d.ts.map +1 -0
- package/dist/geometry/preset-shape-definitions-chart-marks.d.ts.map +1 -1
- package/dist/geometry/preset-shape-paths.d.ts +1 -1
- package/dist/geometry/preset-shape-paths.d.ts.map +1 -1
- package/dist/geometry/rotation-drag.d.ts +6 -0
- package/dist/geometry/rotation-drag.d.ts.map +1 -1
- package/dist/index.cjs +535 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +535 -4
- package/dist/math/omml-to-latex.d.ts.map +1 -1
- package/dist/pptx/automation/index.cjs +7 -2
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/chunks/index-Cn-GzYGp.d.ts.map +1 -1
- package/dist/pptx/cli/index.cjs +7 -2
- package/dist/pptx/converter/index.cjs +7 -2
- package/dist/pptx/index.cjs +7 -2
- package/dist/pptx/signature-node/index.cjs +37 -7
- package/dist/pptx/signature-node/index.d.ts.map +1 -1
- package/dist/pptx/signature-node/index.mjs +37 -7
- package/dist/pptx/ui/index.cjs +22 -24
- package/dist/pptx/ui/index.d.ts +14 -7
- package/dist/pptx/ui/index.d.ts.map +1 -1
- package/dist/pptx/ui/index.mjs +22 -24
- package/dist/ribbon/add-in.d.ts +53 -0
- package/dist/ribbon/add-in.d.ts.map +1 -0
- package/dist/ribbon/index.cjs +28 -0
- package/dist/ribbon/index.d.ts +2 -0
- package/dist/ribbon/index.d.ts.map +1 -0
- package/dist/ribbon/index.mjs +23 -0
- package/dist/teams/files.d.ts.map +1 -1
- package/dist/teams/index.cjs +36 -17
- package/dist/teams/index.mjs +36 -17
- package/dist/text/font-metrics/advance-width.d.ts +9 -0
- package/dist/text/font-metrics/advance-width.d.ts.map +1 -0
- package/dist/text/font-metrics/design-advances.generated.d.ts +12 -0
- package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -0
- package/dist/text/index.cjs +53 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +52 -1
- package/dist/visio/clipboard-types.d.ts +8 -0
- package/dist/visio/clipboard-types.d.ts.map +1 -1
- package/dist/visio/clipboard-xml.d.ts.map +1 -1
- package/dist/visio/clipboard.d.ts.map +1 -1
- package/dist/visio/connector-route-avoid.d.ts +24 -0
- package/dist/visio/connector-route-avoid.d.ts.map +1 -0
- package/dist/visio/connector-route-walk.d.ts +37 -0
- package/dist/visio/connector-route-walk.d.ts.map +1 -0
- package/dist/visio/connector-route.d.ts +5 -2
- package/dist/visio/connector-route.d.ts.map +1 -1
- package/dist/visio/create-document.d.ts +6 -0
- package/dist/visio/create-document.d.ts.map +1 -1
- package/dist/visio/edit-change-shape-builtin.d.ts +18 -0
- package/dist/visio/edit-change-shape-builtin.d.ts.map +1 -0
- package/dist/visio/edit-change-shape-commands.d.ts +10 -4
- package/dist/visio/edit-change-shape-commands.d.ts.map +1 -1
- package/dist/visio/edit-change-shape.d.ts +3 -1
- package/dist/visio/edit-change-shape.d.ts.map +1 -1
- package/dist/visio/edit-commands.d.ts +7 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-connector-layout.d.ts +2 -2
- package/dist/visio/edit-connector-layout.d.ts.map +1 -1
- package/dist/visio/edit-connector-obstacles.d.ts +14 -0
- package/dist/visio/edit-connector-obstacles.d.ts.map +1 -0
- package/dist/visio/edit-connector-reroute.d.ts +7 -0
- package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
- package/dist/visio/edit-connector.d.ts +2 -0
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-delete.d.ts +4 -2
- package/dist/visio/edit-delete.d.ts.map +1 -1
- package/dist/visio/edit-duplicate-scope.d.ts +7 -2
- package/dist/visio/edit-duplicate-scope.d.ts.map +1 -1
- package/dist/visio/edit-duplicate.d.ts.map +1 -1
- package/dist/visio/edit-formatting-cell-admission.d.ts.map +1 -1
- package/dist/visio/edit-formatting-commands.d.ts +17 -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-formatting-scope.d.ts +6 -1
- package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
- package/dist/visio/edit-formatting-text.d.ts.map +1 -1
- package/dist/visio/edit-formatting.d.ts.map +1 -1
- package/dist/visio/edit-group-formulas.d.ts +22 -0
- package/dist/visio/edit-group-formulas.d.ts.map +1 -0
- package/dist/visio/edit-group-rotation.d.ts +3 -1
- package/dist/visio/edit-group-rotation.d.ts.map +1 -1
- package/dist/visio/edit-group.d.ts +10 -3
- package/dist/visio/edit-group.d.ts.map +1 -1
- package/dist/visio/edit-instance-checks.d.ts +18 -0
- package/dist/visio/edit-instance-checks.d.ts.map +1 -0
- package/dist/visio/edit-instance-clipboard.d.ts +22 -0
- package/dist/visio/edit-instance-clipboard.d.ts.map +1 -0
- package/dist/visio/edit-instance-delete.d.ts +19 -0
- package/dist/visio/edit-instance-delete.d.ts.map +1 -0
- package/dist/visio/edit-instance-duplicate.d.ts +17 -0
- package/dist/visio/edit-instance-duplicate.d.ts.map +1 -0
- package/dist/visio/edit-instance-format.d.ts +31 -0
- package/dist/visio/edit-instance-format.d.ts.map +1 -0
- package/dist/visio/edit-instance-geometry.d.ts +21 -0
- package/dist/visio/edit-instance-geometry.d.ts.map +1 -0
- package/dist/visio/edit-instance-group.d.ts +18 -0
- package/dist/visio/edit-instance-group.d.ts.map +1 -0
- package/dist/visio/edit-instance-order.d.ts +16 -0
- package/dist/visio/edit-instance-order.d.ts.map +1 -0
- package/dist/visio/edit-instance-recalculate.d.ts +32 -0
- package/dist/visio/edit-instance-recalculate.d.ts.map +1 -0
- package/dist/visio/edit-instance-replace.d.ts +18 -0
- package/dist/visio/edit-instance-replace.d.ts.map +1 -0
- package/dist/visio/edit-instance-scope.d.ts +29 -0
- package/dist/visio/edit-instance-scope.d.ts.map +1 -0
- package/dist/visio/edit-instance-shape.d.ts +52 -0
- package/dist/visio/edit-instance-shape.d.ts.map +1 -0
- package/dist/visio/edit-instance-sheet.d.ts +52 -0
- package/dist/visio/edit-instance-sheet.d.ts.map +1 -0
- package/dist/visio/edit-layer-properties.d.ts +22 -0
- package/dist/visio/edit-layer-properties.d.ts.map +1 -0
- package/dist/visio/edit-master-drop.d.ts +39 -0
- package/dist/visio/edit-master-drop.d.ts.map +1 -0
- package/dist/visio/edit-master-index.d.ts.map +1 -1
- package/dist/visio/edit-master-instance-extras.d.ts +15 -0
- package/dist/visio/edit-master-instance-extras.d.ts.map +1 -0
- package/dist/visio/edit-master-instance-group.d.ts +25 -0
- package/dist/visio/edit-master-instance-group.d.ts.map +1 -0
- package/dist/visio/edit-master-instance.d.ts +42 -0
- package/dist/visio/edit-master-instance.d.ts.map +1 -0
- package/dist/visio/edit-master-scope.d.ts.map +1 -1
- package/dist/visio/edit-page-auto-size.d.ts.map +1 -1
- package/dist/visio/edit-page-layout.d.ts +15 -0
- package/dist/visio/edit-page-layout.d.ts.map +1 -0
- package/dist/visio/edit-page-setup-commands.d.ts +3 -1
- package/dist/visio/edit-page-setup-commands.d.ts.map +1 -1
- package/dist/visio/edit-page-theme-refresh.d.ts +4 -0
- package/dist/visio/edit-page-theme-refresh.d.ts.map +1 -0
- package/dist/visio/edit-page-theme.d.ts.map +1 -1
- package/dist/visio/edit-pages.d.ts.map +1 -1
- package/dist/visio/edit-paste.d.ts +3 -1
- package/dist/visio/edit-paste.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-values.d.ts.map +1 -1
- package/dist/visio/edit-shape-order.d.ts +19 -4
- package/dist/visio/edit-shape-order.d.ts.map +1 -1
- package/dist/visio/edit-snap-glue.d.ts +16 -0
- package/dist/visio/edit-snap-glue.d.ts.map +1 -0
- package/dist/visio/edit-stencil-connector-drop.d.ts +9 -0
- package/dist/visio/edit-stencil-connector-drop.d.ts.map +1 -0
- package/dist/visio/edit-stencil-connector-layout.d.ts +14 -0
- package/dist/visio/edit-stencil-connector-layout.d.ts.map +1 -0
- package/dist/visio/edit-stencil-connector-write.d.ts +16 -0
- package/dist/visio/edit-stencil-connector-write.d.ts.map +1 -0
- package/dist/visio/edit-stencil-connector.d.ts +29 -0
- package/dist/visio/edit-stencil-connector.d.ts.map +1 -0
- package/dist/visio/edit-stencil-master.d.ts +17 -0
- package/dist/visio/edit-stencil-master.d.ts.map +1 -0
- package/dist/visio/edit-text-instance.d.ts +21 -0
- package/dist/visio/edit-text-instance.d.ts.map +1 -0
- package/dist/visio/edit-text-ranges.d.ts.map +1 -1
- package/dist/visio/edit-text-scope.d.ts +6 -1
- package/dist/visio/edit-text-scope.d.ts.map +1 -1
- package/dist/visio/edit-text-size-formula.d.ts +17 -0
- package/dist/visio/edit-text-size-formula.d.ts.map +1 -0
- package/dist/visio/edit-text-size.d.ts +34 -0
- package/dist/visio/edit-text-size.d.ts.map +1 -0
- package/dist/visio/edit-text-target.d.ts +11 -1
- package/dist/visio/edit-text-target.d.ts.map +1 -1
- package/dist/visio/edit-text.d.ts +2 -1
- package/dist/visio/edit-text.d.ts.map +1 -1
- package/dist/visio/edit.d.ts +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/formula-evaluate.d.ts +2 -0
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/formula-functions.d.ts +13 -0
- package/dist/visio/formula-functions.d.ts.map +1 -0
- package/dist/visio/formula-numeric-functions.d.ts.map +1 -1
- package/dist/visio/formula.d.ts +14 -0
- package/dist/visio/formula.d.ts.map +1 -1
- package/dist/visio/index.cjs +11307 -5982
- package/dist/visio/index.d.ts +11 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +11281 -5983
- package/dist/visio/line-jumps.d.ts +21 -0
- package/dist/visio/line-jumps.d.ts.map +1 -0
- package/dist/visio/master-list.d.ts +20 -0
- package/dist/visio/master-list.d.ts.map +1 -0
- package/dist/visio/model.d.ts +41 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/page-layout.d.ts +40 -0
- package/dist/visio/page-layout.d.ts.map +1 -0
- package/dist/visio/page-theme.d.ts.map +1 -1
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/shape-connections.d.ts +2 -2
- package/dist/visio/shape-connections.d.ts.map +1 -1
- package/dist/visio/snap-glue.d.ts +49 -0
- package/dist/visio/snap-glue.d.ts.map +1 -0
- package/dist/visio/stencil-master-part.d.ts +15 -0
- package/dist/visio/stencil-master-part.d.ts.map +1 -0
- package/dist/visio/stencil-masters.d.ts +19 -0
- package/dist/visio/stencil-masters.d.ts.map +1 -0
- package/dist/visio/stencil-windows.d.ts +20 -0
- package/dist/visio/stencil-windows.d.ts.map +1 -0
- package/dist/visio/stencils.d.ts +2 -0
- package/dist/visio/stencils.d.ts.map +1 -1
- package/dist/visio/style.d.ts +5 -0
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/text-extent.d.ts +40 -0
- package/dist/visio/text-extent.d.ts.map +1 -0
- package/dist/visio/text-fields.d.ts.map +1 -1
- package/dist/visio/theme-color-ref.d.ts +33 -0
- package/dist/visio/theme-color-ref.d.ts.map +1 -0
- package/dist/visio/ui/auto-connect.d.ts +80 -0
- package/dist/visio/ui/auto-connect.d.ts.map +1 -0
- package/dist/visio/ui/connection-points.d.ts +7 -2
- package/dist/visio/ui/connection-points.d.ts.map +1 -1
- package/dist/visio/ui/connector-preview.d.ts +3 -2
- package/dist/visio/ui/connector-preview.d.ts.map +1 -1
- package/dist/visio/ui/contract.d.ts +7 -2
- package/dist/visio/ui/contract.d.ts.map +1 -1
- package/dist/visio/ui/data-graphics.d.ts +6 -2
- package/dist/visio/ui/data-graphics.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/edit-error.d.ts +4 -1
- package/dist/visio/ui/edit-error.d.ts.map +1 -1
- package/dist/visio/ui/formatting.d.ts +27 -0
- package/dist/visio/ui/formatting.d.ts.map +1 -1
- package/dist/visio/ui/guides.d.ts +14 -0
- package/dist/visio/ui/guides.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +27125 -3841
- package/dist/visio/ui/index.d.ts +4 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +27090 -3842
- package/dist/visio/ui/master-drop.d.ts +38 -0
- package/dist/visio/ui/master-drop.d.ts.map +1 -0
- package/dist/visio/ui/page-edit.d.ts.map +1 -1
- package/dist/visio/ui/ruler-grid.d.ts +45 -0
- package/dist/visio/ui/ruler-grid.d.ts.map +1 -0
- package/dist/visio/ui/sample-drawing.d.ts +9 -0
- package/dist/visio/ui/sample-drawing.d.ts.map +1 -0
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/shape-change.d.ts +16 -4
- package/dist/visio/ui/shape-change.d.ts.map +1 -1
- package/dist/visio/ui/shape-clipboard.d.ts.map +1 -1
- package/dist/visio/ui/shape-duplicate.d.ts +7 -1
- package/dist/visio/ui/shape-duplicate.d.ts.map +1 -1
- package/dist/visio/ui/shape-group.d.ts.map +1 -1
- package/dist/visio/ui/shape-move.d.ts +6 -0
- package/dist/visio/ui/shape-move.d.ts.map +1 -1
- package/dist/visio/ui/shape-order.d.ts +6 -1
- package/dist/visio/ui/shape-order.d.ts.map +1 -1
- package/dist/visio/ui/shape-resize.d.ts.map +1 -1
- package/dist/visio/ui/shape-rotation.d.ts +10 -1
- package/dist/visio/ui/shape-rotation.d.ts.map +1 -1
- package/dist/visio/ui/size-position.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/xlsx/conditional-extensions.d.ts.map +1 -1
- package/dist/xlsx/edit/cell-shift.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-rule-anchors.d.ts +9 -0
- package/dist/xlsx/edit/shift-rule-anchors.d.ts.map +1 -0
- package/dist/xlsx/edit/structure.d.ts.map +1 -1
- package/dist/xlsx/edit/table-edits.d.ts.map +1 -1
- package/dist/xlsx/formula/engine-util.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +55 -15
- package/dist/xlsx/index.mjs +55 -15
- package/dist/xlsx/load/index.cjs +70 -16
- package/dist/xlsx/load/index.mjs +70 -16
- package/dist/xlsx/load/text-decode.d.ts.map +1 -1
- package/dist/xlsx/model.d.ts +2 -0
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/package.d.ts.map +1 -1
- package/dist/xlsx/read/tables.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/number.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/util.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +26 -0
- package/dist/xlsx/ui/index.mjs +26 -0
- package/dist/xlsx/ui/ribbon/parts.d.ts.map +1 -1
- package/dist/xlsx/write/conditional.d.ts.map +1 -1
- package/dist/xlsx/write/styles.d.ts.map +1 -1
- package/dist/xlsx/write/table-patch.d.ts.map +1 -1
- package/package.json +7 -1
|
@@ -15,6 +15,14 @@ export interface VisioClipboardSnapshot {
|
|
|
15
15
|
xml: string;
|
|
16
16
|
}[];
|
|
17
17
|
pageContext: string;
|
|
18
|
+
/**
|
|
19
|
+
* The masters captured stencil shapes are instances of: the master ID in the source drawing and
|
|
20
|
+
* what identifies the master itself. A paste needs the same master under the same ID.
|
|
21
|
+
*/
|
|
22
|
+
masters?: readonly {
|
|
23
|
+
id: string;
|
|
24
|
+
identity: string;
|
|
25
|
+
}[];
|
|
18
26
|
}
|
|
19
27
|
export declare const VISIO_CLIPBOARD_MAGIC = "OOXML-VISIO-SHAPES/1\n";
|
|
20
28
|
export declare const VISIO_CLIPBOARD_MAX_CHARS: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard-types.d.ts","sourceRoot":"","sources":["../../visio/clipboard-types.ts"],"names":[],"mappings":"AAEA,4FAA4F;AAC5F,MAAM,WAAW,sBAAsB;IACtC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,MAAM,EAAE,SAAS;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CA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"version":3,"file":"clipboard-xml.d.ts","sourceRoot":"","sources":["../../visio/clipboard-xml.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"clipboard-xml.d.ts","sourceRoot":"","sources":["../../visio/clipboard-xml.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGhE,8FAA8F;AAC9F,wBAAgB,wBAAwB,CACvC,QAAQ,EAAE,sBAAsB,EAChC,KAAK,EAAE,MAAM,IAAI,GACf,IAAI,CAcN;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,OAAO,CAKpE;AACD,yFAAyF;AACzF,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,IAAI,CAyBN;AACD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,OAAO,CAmC/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../visio/clipboard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../visio/clipboard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAqB9C,OAAO,EAIN,KAAK,sBAAsB,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,wFAAwF;AACxF,wBAAsB,qBAAqB,CAC1C,KAAK,EAAE,UAAU,GAAG,WAAW,EAC/B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,GAAE,eAAoB,GAC3B,OAAO,CAAC,sBAAsB,CAAC,CAkFjC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { VisioRouteBox, VisioRoutePoint } from './connector-route.js';
|
|
2
|
+
/**
|
|
3
|
+
* Clearance kept around a shape: 3/16 inch, the distance Visio's own router was recorded passing
|
|
4
|
+
* a placeable shape at. It must stay below the stub a route leaves a glued shape with.
|
|
5
|
+
*/
|
|
6
|
+
export declare const VISIO_ROUTE_CLEARANCE = 0.1875;
|
|
7
|
+
/** The search is quadratic in obstacles; the nearest ones decide the route. */
|
|
8
|
+
export declare const VISIO_ROUTE_OBSTACLE_LIMIT = 24;
|
|
9
|
+
/** Whether the axis-aligned segment `p`-`q` passes through the inside of `box`. */
|
|
10
|
+
export declare function segmentCrossesBox(p: VisioRoutePoint, q: VisioRoutePoint, box: VisioRouteBox): boolean;
|
|
11
|
+
/** How many obstacle boxes a polyline passes through. */
|
|
12
|
+
export declare function routeCrossings(path: readonly VisioRoutePoint[], boxes: readonly VisioRouteBox[]): number;
|
|
13
|
+
/**
|
|
14
|
+
* The obstacles worth routing around: boxes with an area, near the two ends, that neither end
|
|
15
|
+
* sits in (a container holding an end is routed through, as in Visio), nearest first and capped.
|
|
16
|
+
*/
|
|
17
|
+
export declare function relevantObstacles(from: VisioRoutePoint, to: VisioRoutePoint, boxes: readonly VisioRouteBox[]): VisioRouteBox[];
|
|
18
|
+
/**
|
|
19
|
+
* A right-angle path from `from` to `to` around `boxes`, found by the shared orthogonal router
|
|
20
|
+
* (`geometry/connector-router`, the one PowerPoint uses). Undefined when the router finds no
|
|
21
|
+
* axis-aligned path, so the caller keeps its own route.
|
|
22
|
+
*/
|
|
23
|
+
export declare function routeAroundBoxes(from: VisioRoutePoint, to: VisioRoutePoint, boxes: readonly VisioRouteBox[]): VisioRoutePoint[] | undefined;
|
|
24
|
+
//# sourceMappingURL=connector-route-avoid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-route-avoid.d.ts","sourceRoot":"","sources":["../../visio/connector-route-avoid.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOxE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAK5C,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAG7C,mFAAmF;AACnF,wBAAgB,iBAAiB,CAChC,CAAC,EAAE,eAAe,EAClB,CAAC,EAAE,eAAe,EAClB,GAAG,EAAE,aAAa,GAChB,OAAO,CAMT;AAED,yDAAyD;AACzD,wBAAgB,cAAc,CAC7B,IAAI,EAAE,SAAS,eAAe,EAAE,EAChC,KAAK,EAAE,SAAS,aAAa,EAAE,GAC7B,MAAM,CAMR;AAQD;;;GAGG;AACH,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,eAAe,EACrB,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,SAAS,aAAa,EAAE,GAC7B,aAAa,EAAE,CA2BjB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,eAAe,EACrB,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,SAAS,aAAa,EAAE,GAC7B,eAAe,EAAE,GAAG,SAAS,CAqD/B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type VisioRouteBox, type VisioRoutePoint } from './connector-route.js';
|
|
2
|
+
/** One end of a connector for walking glue: a glued shape (its sides) or a fixed point. */
|
|
3
|
+
export interface VisioWalkEnd {
|
|
4
|
+
/** A fixed end: an unglued point or a connection point. */
|
|
5
|
+
point?: VisioRoutePoint;
|
|
6
|
+
/** A dynamically glued shape: its side midpoints with outward normals, bounds and corners. */
|
|
7
|
+
shape?: {
|
|
8
|
+
sites: readonly {
|
|
9
|
+
point: VisioRoutePoint;
|
|
10
|
+
normal: VisioRoutePoint;
|
|
11
|
+
}[];
|
|
12
|
+
bounds: VisioRouteBox;
|
|
13
|
+
center: VisioRoutePoint;
|
|
14
|
+
corners: readonly VisioRoutePoint[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The right-angle path Visio's walking glue draws between two ends when nothing is in the way,
|
|
19
|
+
* from positions recorded in Visio 16 (`scripts/record-visio-instance-connector.ps1`):
|
|
20
|
+
*
|
|
21
|
+
* - sides that face each other with the begin shape's middle inside the other's extent connect
|
|
22
|
+
* straight across, or with one jog close to the begin side when they are not level;
|
|
23
|
+
* - shapes that overlap in height, or sit closer in height than two clearances while well apart
|
|
24
|
+
* sideways, are left sideways and entered from below or above;
|
|
25
|
+
* - otherwise the path leaves the begin shape up or down and enters the end shape from the side.
|
|
26
|
+
*
|
|
27
|
+
* Undefined when the shapes overlap, so the caller falls back to its general router.
|
|
28
|
+
*/
|
|
29
|
+
export declare function visioWalkPath(begin: VisioWalkEnd, end: VisioWalkEnd): VisioRoutePoint[] | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The vertices of Visio's Dynamic connector between two ends for a route style, or undefined
|
|
32
|
+
* when the simple path is blocked or the shapes overlap (the caller's router then takes over).
|
|
33
|
+
* Straight (centre to centre) runs between the outlines along the line that joins the middles;
|
|
34
|
+
* curved is one cubic that leaves and arrives the way the right-angle path would.
|
|
35
|
+
*/
|
|
36
|
+
export declare function visioWalkRoute(begin: VisioWalkEnd, end: VisioWalkEnd, route: 'right-angle' | 'straight' | 'curved', obstacles?: readonly VisioRouteBox[]): VisioRoutePoint[] | undefined;
|
|
37
|
+
//# sourceMappingURL=connector-route-walk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-route-walk.d.ts","sourceRoot":"","sources":["../../visio/connector-route-walk.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,MAAM,mBAAmB,CAAC;AAG3B,2FAA2F;AAC3F,MAAM,WAAW,YAAY;IAC5B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,8FAA8F;IAC9F,KAAK,CAAC,EAAE;QACP,KAAK,EAAE,SAAS;YAAE,KAAK,EAAE,eAAe,CAAC;YAAC,MAAM,EAAE,eAAe,CAAA;SAAE,EAAE,CAAC;QACtE,MAAM,EAAE,aAAa,CAAC;QACtB,MAAM,EAAE,eAAe,CAAC;QACxB,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;KACpC,CAAC;CACF;AAyBD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,YAAY,GACf,eAAe,EAAE,GAAG,SAAS,CAmC/B;AAqBD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,aAAa,GAAG,UAAU,GAAG,QAAQ,EAC5C,SAAS,GAAE,SAAS,aAAa,EAAO,GACtC,eAAe,EAAE,GAAG,SAAS,CAiB/B"}
|
|
@@ -23,9 +23,12 @@ export declare const VISIO_ROUTE_STUB = 0.25;
|
|
|
23
23
|
export declare function simplifyVisioRoute(points: readonly VisioRoutePoint[]): VisioRoutePoint[];
|
|
24
24
|
/**
|
|
25
25
|
* A right-angle route between two ends: it leaves each glued end along its side, turns at most a
|
|
26
|
-
* few times and avoids crossing the two glued shapes.
|
|
26
|
+
* few times and avoids crossing the two glued shapes. `obstacles` are the other shapes of the
|
|
27
|
+
* page: when every simple candidate passes through one, the shared orthogonal router (the one
|
|
28
|
+
* PowerPoint uses, `geometry/connector-router`) finds a way around. Not Visio's own router: the
|
|
29
|
+
* bends differ from the ones Visio would choose.
|
|
27
30
|
*/
|
|
28
|
-
export declare function visioOrthogonalRoute(begin: VisioRouteEnd, end: VisioRouteEnd): VisioRoutePoint[];
|
|
31
|
+
export declare function visioOrthogonalRoute(begin: VisioRouteEnd, end: VisioRouteEnd, obstacles?: readonly VisioRouteBox[]): VisioRoutePoint[];
|
|
29
32
|
/** One cubic from begin to end whose handles leave each glued end along its side. */
|
|
30
33
|
export declare function visioCurvedRoute(begin: VisioRouteEnd, end: VisioRouteEnd): [VisioRoutePoint, VisioRoutePoint, VisioRoutePoint, VisioRoutePoint];
|
|
31
34
|
//# sourceMappingURL=connector-route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-route.d.ts","sourceRoot":"","sources":["../../visio/connector-route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connector-route.d.ts","sourceRoot":"","sources":["../../visio/connector-route.ts"],"names":[],"mappings":"AAOA,+CAA+C;AAC/C,MAAM,WAAW,eAAe;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AACD,yCAAyC;AACzC,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AACD,6FAA6F;AAC7F,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,eAAe,CAAC;IACvB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,GAAG,CAAC,EAAE,aAAa,CAAC;CACpB;AAED,yEAAyE;AACzE,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAiBrC,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,GAAG,eAAe,EAAE,CAcxF;AAkCD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,aAAa,EAClB,SAAS,GAAE,SAAS,aAAa,EAAO,GACtC,eAAe,EAAE,CAiEnB;AAED,qFAAqF;AACrF,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,aAAa,GAChB,CAAC,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAC,CAatE"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { type VisioBuiltInStencilId } from './stencil-windows.js';
|
|
1
2
|
export interface CreateVsdxOptions {
|
|
2
3
|
/** Physical page inches. The initial drawing scale is 1:1. */
|
|
3
4
|
width?: number;
|
|
4
5
|
height?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Built-in stencils docked in the drawing window, in order, as Visio records the stencils a
|
|
8
|
+
* template opens. They are written as Stencil windows naming Visio's own stencil files.
|
|
9
|
+
*/
|
|
10
|
+
stencils?: readonly VisioBuiltInStencilId[];
|
|
5
11
|
}
|
|
6
12
|
/** Create an editable single-page VSDX using shared XML/OPC writers and bounded ZIP output. */
|
|
7
13
|
export declare function createVsdx(options?: CreateVsdxOptions): Promise<Uint8Array>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../visio/create-document.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../visio/create-document.ts"],"names":[],"mappings":"AAOA,OAAO,EAAuB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEpF,MAAM,WAAW,iBAAiB;IACjC,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;CAC5C;AAuFD,+FAA+F;AAC/F,wBAAsB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,CAgGrF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { VisioEdit } from './edit-commands.js';
|
|
2
|
+
import type { EditVsdxResult } from './edit.js';
|
|
3
|
+
import type { VisioPackage } from './package.js';
|
|
4
|
+
import { type VisioPackageLimits } from './package-common.js';
|
|
5
|
+
/**
|
|
6
|
+
* Home > Change Shape to a built-in shape, on a stencil shape. A drawn shape takes the built-in
|
|
7
|
+
* outline; a stencil shape stays a stencil shape, so the built-in master is copied into the
|
|
8
|
+
* drawing (once, as a drop does) and the shape becomes an instance of it through the same
|
|
9
|
+
* `change-shape` by `masterId` that the Document Stencil masters use. Returns nothing when the
|
|
10
|
+
* commands hold no such change.
|
|
11
|
+
*/
|
|
12
|
+
export declare function changeStencilShapeToBuiltIn(source: Uint8Array, pkg: VisioPackage, pages: ReadonlyMap<string, string>, commands: readonly VisioEdit[], budget: {
|
|
13
|
+
limits: VisioPackageLimits;
|
|
14
|
+
maxOutput: number;
|
|
15
|
+
deadline: number;
|
|
16
|
+
check: () => void;
|
|
17
|
+
}, apply: (bytes: Uint8Array, edits: readonly VisioEdit[]) => Promise<EditVsdxResult>): Promise<EditVsdxResult | undefined>;
|
|
18
|
+
//# sourceMappingURL=edit-change-shape-builtin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-change-shape-builtin.d.ts","sourceRoot":"","sources":["../../visio/edit-change-shape-builtin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAIjE;;;;;;GAMG;AACH,wBAAsB,2BAA2B,CAChD,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,QAAQ,EAAE,SAAS,SAAS,EAAE,EAC9B,MAAM,EAAE;IAAE,MAAM,EAAE,kBAAkB,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,EAC9F,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,KAAK,OAAO,CAAC,cAAc,CAAC,GAChF,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CA+CrC"}
|
|
@@ -2,15 +2,21 @@ import { type VisioBasicShape } from './basic-shapes.js';
|
|
|
2
2
|
/** A Basic Shapes outline, or the native Ellipse row (`circle` keeps the shape's own size). */
|
|
3
3
|
export type VisioChangeShapeTarget = VisioBasicShape | 'ellipse' | 'circle';
|
|
4
4
|
/**
|
|
5
|
-
* Visio's Home > Editing > Change Shape
|
|
6
|
-
* replaced by
|
|
5
|
+
* Visio's Home > Editing > Change Shape. For a shape drawn here, `shape` names the outline its
|
|
6
|
+
* Geometry sections are replaced by. For a stencil shape, `masterId` names the master of the
|
|
7
|
+
* drawing it becomes an instance of. Position, size, rotation, flips, text and formatting stay.
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
+
export type VisioChangeShapeEdit = {
|
|
9
10
|
type: 'change-shape';
|
|
10
11
|
pageId: string;
|
|
11
12
|
shapeId: string;
|
|
12
13
|
shape: VisioChangeShapeTarget;
|
|
13
|
-
}
|
|
14
|
+
} | {
|
|
15
|
+
type: 'change-shape';
|
|
16
|
+
pageId: string;
|
|
17
|
+
shapeId: string;
|
|
18
|
+
masterId: string;
|
|
19
|
+
};
|
|
14
20
|
export declare const isVisioChangeShapeTarget: (value: unknown) => value is VisioChangeShapeTarget;
|
|
15
21
|
/** Copy a change-shape command, keeping only its known fields. */
|
|
16
22
|
export declare function snapshotChangeShape(edit: VisioChangeShapeEdit): VisioChangeShapeEdit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-change-shape-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-change-shape-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEzE,+FAA+F;AAC/F,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE5E
|
|
1
|
+
{"version":3,"file":"edit-change-shape-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-change-shape-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEzE,+FAA+F;AAC/F,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAC7B;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAE,GACxF;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/E,eAAO,MAAM,wBAAwB,UAAW,OAAO,KAAG,KAAK,IAAI,sBACG,CAAC;AAEvE,kEAAkE;AAClE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,oBAAoB,GAAG,oBAAoB,CAoBpF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { VisioChangeShapeEdit } from './edit-change-shape-commands.js';
|
|
2
2
|
/** Replace the Geometry sections of one local 2D shape; true when the page changed. */
|
|
3
|
-
export declare function changeVisioShape(roots: ReadonlyMap<string, Element>, document: Element, edit: VisioChangeShapeEdit,
|
|
3
|
+
export declare function changeVisioShape(roots: ReadonlyMap<string, Element>, document: Element, edit: Extract<VisioChangeShapeEdit, {
|
|
4
|
+
shape: unknown;
|
|
5
|
+
}>, check: () => void): boolean;
|
|
4
6
|
//# sourceMappingURL=edit-change-shape.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-change-shape.d.ts","sourceRoot":"","sources":["../../visio/edit-change-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AA4FzE,uFAAuF;AACvF,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"edit-change-shape.d.ts","sourceRoot":"","sources":["../../visio/edit-change-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AA4FzE,uFAAuF;AACvF,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,oBAAoB,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,EACvD,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CA8CT"}
|
|
@@ -32,6 +32,12 @@ import { type VisioDiagramPartEdit } from './edit-diagram-parts-commands.js';
|
|
|
32
32
|
export type { VisioDiagramPartEdit, VisioInsertContainerEdit, VisioInsertCalloutEdit, } from './edit-diagram-parts-commands.js';
|
|
33
33
|
import { type VisioAssignLayersEdit } from './edit-layer-commands.js';
|
|
34
34
|
export type { VisioAssignLayersEdit } from './edit-layer-commands.js';
|
|
35
|
+
import { type VisioLayerPropertiesEdit } from './edit-layer-properties.js';
|
|
36
|
+
export type { VisioLayerPropertiesEdit } from './edit-layer-properties.js';
|
|
37
|
+
import { type VisioMasterInstanceEdit } from './edit-master-instance.js';
|
|
38
|
+
export type { VisioMasterInstanceEdit } from './edit-master-instance.js';
|
|
39
|
+
import { type VisioStencilMasterDropEdit } from './edit-master-drop.js';
|
|
40
|
+
export type { VisioStencilMasterDropEdit } from './edit-master-drop.js';
|
|
35
41
|
import { type VisioGuideEdit } from './edit-guide-commands.js';
|
|
36
42
|
export type { VisioGuideEdit } from './edit-guide-commands.js';
|
|
37
43
|
import { type VisioTextFieldInsertEdit } from './edit-text-field-commands.js';
|
|
@@ -137,7 +143,7 @@ export interface VisioPageSizeEdit {
|
|
|
137
143
|
height: number;
|
|
138
144
|
}
|
|
139
145
|
export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit | VisioPageSetupEdits;
|
|
140
|
-
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioDataEdit | VisioAssignLayersEdit | VisioGuideEdit;
|
|
146
|
+
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioDataEdit | VisioAssignLayersEdit | VisioLayerPropertiesEdit | VisioMasterInstanceEdit | VisioStencilMasterDropEdit | VisioGuideEdit;
|
|
141
147
|
export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
|
|
142
148
|
/** Potential direct changes used by both package and master dependency admission. */
|
|
143
149
|
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,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,2BAA2B,CAAC;AACnG,YAAY,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACtF,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC9F,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC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a,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,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,wBAAwB,GACxB,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,iBAAiB,GACjB,sBAAsB,GACtB,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,kBAAkB,GAClB,aAAa,GACb,qBAAqB,GACrB,wBAAwB,GACxB,uBAAuB,GACvB,0BAA0B,GAC1B,cAAc,CAAC;AAClB,eAAO,MAAM,eAAe,SAAU,SAAS,KAAG,IAAI,IAAI,aAM/B,CAAC;AAE5B,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,EAAE,CAmCtE;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACb,SAAS,EAAE,CAwLb"}
|
|
@@ -21,7 +21,7 @@ export declare function pointSite(box: VisioGlueBox, x: number, y: number): Conn
|
|
|
21
21
|
/** The closest pair of candidate sites (Visio's walking glue picks facing sides). */
|
|
22
22
|
export declare function chooseSites(begin: readonly ConnectorSite[], end: readonly ConnectorSite[]): Record<End, ConnectorSite>;
|
|
23
23
|
/** The page-space vertices of a routed connector (a cubic's four controls when curved). */
|
|
24
|
-
export declare function routeVertices(route: VisioConnectorRoute, sites: Record<End, ConnectorSite
|
|
24
|
+
export declare function routeVertices(route: VisioConnectorRoute, sites: Record<End, ConnectorSite>, obstacles?: readonly VisioRouteBox[]): VisioRoutePoint[];
|
|
25
25
|
/**
|
|
26
26
|
* Write a connector's transform and Geometry for its route. Straight connectors keep the native
|
|
27
27
|
* DrawLine form (length Width, Angle); right-angle and curved ones take Visio's dynamic-connector
|
|
@@ -33,5 +33,5 @@ export declare function writeConnectorShape(shape: Element, route: VisioConnecto
|
|
|
33
33
|
* Lay a connector out between its resolved ends and recalculate its dependants. Locked ends that
|
|
34
34
|
* would move are refused.
|
|
35
35
|
*/
|
|
36
|
-
export declare function layoutConnectorShape(roots: ReadonlyMap<string, Element>, pageId: string, shape: Element, route: VisioConnectorRoute, sites: Record<End, ConnectorSite>, check: () => void): readonly string[];
|
|
36
|
+
export declare function layoutConnectorShape(roots: ReadonlyMap<string, Element>, pageId: string, shape: Element, route: VisioConnectorRoute, sites: Record<End, ConnectorSite>, check: () => void, obstacles?: readonly VisioRouteBox[]): readonly string[];
|
|
37
37
|
//# sourceMappingURL=edit-connector-layout.d.ts.map
|
|
@@ -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,EAAkB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC/F,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,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E,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,14 @@
|
|
|
1
|
+
import type { VisioRouteBox } from './connector-route.js';
|
|
2
|
+
/** Visio's ObjType for a shape its layout places and its connectors route around. */
|
|
3
|
+
export declare const VISIO_PLACEABLE = 1;
|
|
4
|
+
/**
|
|
5
|
+
* The page boxes a right-angle connector routes around, as Visio does: the top-level placeable
|
|
6
|
+
* shapes (ObjType 1) except `exclude` (the connector and the shapes it is glued to, whose boxes
|
|
7
|
+
* the route already knows). Visio leaves ObjType 0 ("let Visio decide") shapes in a connector's
|
|
8
|
+
* way and makes a shape placeable when a dynamic connector is glued to it, so a plain drawn
|
|
9
|
+
* rectangle is not an obstacle until something connects to it. Read from the shapes' own cached
|
|
10
|
+
* cells, nothing is proven or changed. One-shape stencil instances count through the cells in
|
|
11
|
+
* effect over their master; grouped instances are left out.
|
|
12
|
+
*/
|
|
13
|
+
export declare function connectorObstacles(root: Element, exclude: ReadonlySet<string>): VisioRouteBox[];
|
|
14
|
+
//# sourceMappingURL=edit-connector-obstacles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connector-obstacles.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-obstacles.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AASvD,qFAAqF;AACrF,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,aAAa,EAAE,CAwC/F"}
|
|
@@ -3,6 +3,8 @@ import type { VisioGeometryEdit } from './edit-commands.js';
|
|
|
3
3
|
import { type End } from './edit-connector-layout.js';
|
|
4
4
|
import { type ConnectorGlue } from './edit-connector.js';
|
|
5
5
|
import type { VisioRoutePoint } from './connector-route.js';
|
|
6
|
+
/** A connector's route, read from its own cells or, for a stencil connector, the ones in effect. */
|
|
7
|
+
export declare const routeOf: (shape: Element) => VisioConnectorRoute;
|
|
6
8
|
/** A right-angle or curved connector this editor wrote (Visio's dynamic-connector cell form). */
|
|
7
9
|
export declare function isRoutedConnector(shape: Element): boolean;
|
|
8
10
|
/** Prove a connector's transform is the owned form of its route before it is laid out again. */
|
|
@@ -25,6 +27,11 @@ export declare function glueExistingConnector(roots: ReadonlyMap<string, Element
|
|
|
25
27
|
export declare function setConnectorRoute(roots: ReadonlyMap<string, Element>, edit: Extract<VisioGeometryEdit, {
|
|
26
28
|
type: 'set-connector-route';
|
|
27
29
|
}>, check: () => void): readonly string[];
|
|
30
|
+
/**
|
|
31
|
+
* Refuse, in plain words, a geometry edit of a stencil connector this editor cannot lay out again
|
|
32
|
+
* (a grouped master, or one not built like Visio's Dynamic connector) or of a shape one is glued to.
|
|
33
|
+
*/
|
|
34
|
+
export declare function refuseStencilConnector(root: Element | undefined, shapeId: string): void;
|
|
28
35
|
/** Connection-point, glue and route commands. */
|
|
29
36
|
export declare function applyConnectorEdit(roots: ReadonlyMap<string, Element>, root: Element, edit: VisioConnectorEdit, check: () => void): readonly string[];
|
|
30
37
|
//# sourceMappingURL=edit-connector-reroute.d.ts.map
|
|
@@ -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;AACzD,OAAO,
|
|
1
|
+
{"version":3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EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAAC,EAC5D,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAmBnB;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,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"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { VisioGeometryEdit } from './edit-commands.js';
|
|
2
2
|
import { type VisioGlueBox } from './edit-connector-glue.js';
|
|
3
3
|
import { type ConnectorSite, type End } from './edit-connector-layout.js';
|
|
4
|
+
/** Visio's own Dynamic connector is a master instance; its inherited cell form is not written yet. */
|
|
5
|
+
export declare const STENCIL_CONNECTOR = "A connector that comes from a grouped or unreadable stencil master cannot be rerouted here, so it and the shapes glued to it cannot be moved or resized.";
|
|
4
6
|
type LineCreate = Extract<VisioGeometryEdit, {
|
|
5
7
|
type: 'create-line';
|
|
6
8
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector.d.ts","sourceRoot":"","sources":["../../visio/edit-connector.ts"],"names":[],"mappings":"AAMA,OAA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EAAE,CAUtE;AAQD,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU,CAoBzE;AAcD,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAuCpF;AAED,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI,CAWtF;AAED,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,aAAa,CA6ChF;AAED,0FAA0F;AAC1F,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM,GACb;IAAE,UAAU,EAAE,aAAa,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,CAAA;CAAE,CAY5D;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,7 +3,9 @@ export type VisioShapeDelete = Extract<VisioGeometryEdit, {
|
|
|
3
3
|
type: 'delete-shape';
|
|
4
4
|
}>;
|
|
5
5
|
/** Pure deletion transactions remove reference-closed local leaves after complete admission.
|
|
6
|
-
* Retained formulas and caches are unchanged.
|
|
6
|
+
* Retained formulas and caches are unchanged. `instances` are stencil shapes the caller proved
|
|
7
|
+
* deletable (`admitInstanceDeletes`): they go whole, sub-shapes included, and a stencil connector
|
|
8
|
+
* glued to a deleted shape is released as Visio releases it.
|
|
7
9
|
*/
|
|
8
|
-
export declare function deleteVisioShapes(roots: ReadonlyMap<string, Element>, document: Element, edits: readonly VisioShapeDelete[], check: () => void): readonly string[];
|
|
10
|
+
export declare function deleteVisioShapes(roots: ReadonlyMap<string, Element>, document: Element, edits: readonly VisioShapeDelete[], check: () => void, instances?: ReadonlySet<Element>): readonly string[];
|
|
9
11
|
//# sourceMappingURL=edit-delete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-delete.d.ts","sourceRoot":"","sources":["../../visio/edit-delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-delete.d.ts","sourceRoot":"","sources":["../../visio/edit-delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AASzD,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC,CAAC;AAEpF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,SAAS,gBAAgB,EAAE,EAClC,KAAK,EAAE,MAAM,IAAI,EACjB,SAAS,GAAE,WAAW,CAAC,OAAO,CAAa,GACzC,SAAS,MAAM,EAAE,CA+CnB"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { VisioPackage } from './package.js';
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Adding shapes can resolve formerly missing references. A formula that already names a new
|
|
4
|
+
* sheet ID refuses the addition; formulas are read by their syntax, so the ones this editor
|
|
5
|
+
* cannot parse are covered as well. `structural` is false when no added shape is a container
|
|
6
|
+
* or a list (see `assertShapeOrderPackageScope`).
|
|
7
|
+
*/
|
|
8
|
+
export declare function assertDuplicateScope(pkg: VisioPackage, pagePaths: ReadonlySet<string>, targetPage: Element, newIds: ReadonlySet<string>, check: () => void, structural?: boolean): Promise<void>;
|
|
4
9
|
//# sourceMappingURL=edit-duplicate-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-duplicate-scope.d.ts","sourceRoot":"","sources":["../../visio/edit-duplicate-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAO9C
|
|
1
|
+
{"version":3,"file":"edit-duplicate-scope.d.ts","sourceRoot":"","sources":["../../visio/edit-duplicate-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAO9C;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACzC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,KAAK,EAAE,MAAM,IAAI,EACjB,UAAU,UAAO,GACf,OAAO,CAAC,IAAI,CAAC,CA+Bf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-duplicate.d.ts","sourceRoot":"","sources":["../../visio/edit-duplicate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-duplicate.d.ts","sourceRoot":"","sources":["../../visio/edit-duplicate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AA0C1E,2FAA2F;AAC3F,wBAAsB,oBAAoB,CACzC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,wBAAwB,EAC9B,KAAK,EAAE,MAAM,IAAI,EACjB,QAAQ,CAAC,EAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC1C,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAkL5B;AAED,8FAA8F;AAC9F,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CASrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting-cell-admission.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-cell-admission.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-formatting-cell-admission.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-cell-admission.ts"],"names":[],"mappings":"AAoCA,sFAAsF;AACtF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAOxE;AAED,gGAAgG;AAChG,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAoD5E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type VisioThemeColorRef } from './theme-color-ref.js';
|
|
1
2
|
import { type VisioQuickStyle, type VisioShadowPreset } from './edit-formatting-effects.js';
|
|
2
3
|
import { type VisioGlowEffect, type VisioReflectionEffect } from './edit-formatting-glow.js';
|
|
3
4
|
import { type VisioTextFormatExtras } from './edit-formatting-text-commands.js';
|
|
@@ -14,6 +15,8 @@ export interface VisioTextFormatEdit extends Target, VisioTextFormatExtras {
|
|
|
14
15
|
fontFamily?: string;
|
|
15
16
|
/** Opaque custom text color. */
|
|
16
17
|
fontColor?: string;
|
|
18
|
+
/** The Theme Colors swatch `fontColor` came from: saved as its theme formula. */
|
|
19
|
+
fontColorTheme?: VisioThemeColorRef;
|
|
17
20
|
bold?: boolean;
|
|
18
21
|
italic?: boolean;
|
|
19
22
|
underline?: boolean;
|
|
@@ -28,12 +31,26 @@ export interface VisioTextFormatEdit extends Target, VisioTextFormatExtras {
|
|
|
28
31
|
export interface VisioShapeFormatEdit extends Target {
|
|
29
32
|
type: 'format-shape';
|
|
30
33
|
fillColor?: string;
|
|
34
|
+
/** The Theme Colors swatch `fillColor` came from: saved as its theme formula. */
|
|
35
|
+
fillColorTheme?: VisioThemeColorRef;
|
|
31
36
|
lineColor?: string;
|
|
37
|
+
/** The Theme Colors swatch `lineColor` came from. */
|
|
38
|
+
lineColorTheme?: VisioThemeColorRef;
|
|
32
39
|
lineWeight?: number;
|
|
33
40
|
/** Built-in line pattern: 0 hides the line, 1 is solid, 2-23 are dashes. */
|
|
34
41
|
linePattern?: number;
|
|
35
42
|
/** Percent transparency, normalized to native half-percent steps. */
|
|
36
43
|
lineTransparency?: number;
|
|
44
|
+
/** Arrowhead codes at the begin and end of the line: 0 is none, 1-45 are Visio's ends. */
|
|
45
|
+
beginArrow?: number;
|
|
46
|
+
endArrow?: number;
|
|
47
|
+
/** Arrowhead sizes, 0 (very small) to 6 (colossal); 2 is Visio's medium. */
|
|
48
|
+
beginArrowSize?: number;
|
|
49
|
+
endArrowSize?: number;
|
|
50
|
+
/** Line cap: 0 round, 1 square, 2 extended. */
|
|
51
|
+
lineCap?: number;
|
|
52
|
+
/** Corner rounding radius in points; 0 keeps square corners. */
|
|
53
|
+
rounding?: number;
|
|
37
54
|
/** Classic non-gradient fill pattern: 0 hides fill, 1 is solid, 2-24 are hatches. */
|
|
38
55
|
fillPattern?: number;
|
|
39
56
|
fillBackgroundColor?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-formatting-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAGN,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAIN,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEN,KAAK,qBAAqB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC,UAAU,MAAM;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CAChB;AACD;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,MAAM,EAAE,qBAAqB;IACzE,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAC1D,aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAC5C;AACD,MAAM,WAAW,oB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gB,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAiIzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting-paint.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-paint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-formatting-paint.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-paint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAInE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,oBAAoB,GAAG,eAAe,EAAE,CA0EnF;AACD,gGAAgG;AAChG,wBAAsB,mBAAmB,CACxC,GAAG,EAAE,YAAY,EACjB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,oBAAoB,EAC1B,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC;IAAE,MAAM,EAAE,eAAe,EAAE,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;CAAE,CAAC,CAsBlF;AACD,wBAAsB,+BAA+B,CACpD,GAAG,EAAE,YAAY,EACjB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,EACjD,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
|
@@ -2,5 +2,10 @@ import type { VisioPackage } from './package.js';
|
|
|
2
2
|
/** Nonnumeric font/color caches cannot be recalculated by the numeric engine.
|
|
3
3
|
* Refuse every dependent formula, including metadata/styles/masters, before writes.
|
|
4
4
|
*/
|
|
5
|
-
export declare function assertFormattingDependencies(pkg: VisioPackage, pagePaths: ReadonlySet<string>, roots: ReadonlyMap<string, Element>, pageId: string, shape: Element, changed: ReadonlyMap<string, Element | undefined>, check: () => void
|
|
5
|
+
export declare function assertFormattingDependencies(pkg: VisioPackage, pagePaths: ReadonlySet<string>, roots: ReadonlyMap<string, Element>, pageId: string, shape: Element, changed: ReadonlyMap<string, Element | undefined>, check: () => void,
|
|
6
|
+
/**
|
|
7
|
+
* The effective sheet of a stencil instance. Its own master's formulas are then judged as the
|
|
8
|
+
* instance's (through this view), and other masters, which cannot read this shape, are skipped.
|
|
9
|
+
*/
|
|
10
|
+
instanceView?: Element): Promise<void>;
|
|
6
11
|
//# sourceMappingURL=edit-formatting-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting-scope.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-formatting-scope.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAU9C;;GAEG;AACH,wBAAsB,4BAA4B,CACjD,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,EACjD,KAAK,EAAE,MAAM,IAAI;AACjB;;;GAGG;AACH,YAAY,CAAC,EAAE,OAAO,GACpB,OAAO,CAAC,IAAI,CAAC,CA+Ff"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting-text.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-formatting-text.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text.ts"],"names":[],"mappings":"AAMA,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AASzD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,IAAI,GACf;IAAE,MAAM,EAAE,eAAe,EAAE,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;CAAE,CAwGxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-formatting.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAclE,OAAO,EAMN,KAAK,kBAAkB,EAEvB,MAAM,wBAAwB,CAAC;AA2BhC,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,kBAAkB,CAAC;CAC7B;AAED,wBAAsB,mBAAmB,CACxC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,OAAO,CAAC,CA6BlB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { VisioFormulaAnalysis } from './formula-evaluate.js';
|
|
2
|
+
export declare const isSheet: (node: Node | null) => node is Element;
|
|
3
|
+
/** What a page formula reads, as far as grouping cares. */
|
|
4
|
+
export interface GroupFormulaFacts {
|
|
5
|
+
references: readonly {
|
|
6
|
+
shapeId?: string;
|
|
7
|
+
cell: string;
|
|
8
|
+
}[];
|
|
9
|
+
functions: readonly string[];
|
|
10
|
+
/** Present when the formula parses; group-scaling recognition needs the full analysis. */
|
|
11
|
+
analysis?: VisioFormulaAnalysis;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Visit every executable formula on the page with its owning sheet. A formula the analyser cannot
|
|
15
|
+
* parse (Visio's glue and event functions, a container lookup) is read by its syntax: the sheet
|
|
16
|
+
* references it spells out, any transform cell it names without a sheet, and page or document
|
|
17
|
+
* cells.
|
|
18
|
+
*/
|
|
19
|
+
export declare function eachGroupFormula(root: Element, check: () => void, visit: (node: Element, owner: Element | undefined, facts: GroupFormulaFacts) => void): void;
|
|
20
|
+
/** A member whose own formulas read the sheet it sits in would change value with a new parent. */
|
|
21
|
+
export declare function assertParentIndependent(facts: GroupFormulaFacts, from: string | undefined, ids: ReadonlySet<string>): void;
|
|
22
|
+
//# sourceMappingURL=edit-group-formulas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-group-formulas.d.ts","sourceRoot":"","sources":["../../visio/edit-group-formulas.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAM/D,eAAO,MAAM,OAAO,SAAU,IAAI,GAAG,IAAI,KAAG,IAAI,IAAI,OAKC,CAAC;AAEtD,2DAA2D;AAC3D,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,SAAS;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1D,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,IAAI,EACjB,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,iBAAiB,KAAK,IAAI,GAClF,IAAI,CAmCN;AAED,kGAAkG;AAClG,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,iBAAiB,EACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,GACtB,IAAI,CAGN"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { VisioGeometryEdit } from './edit-commands.js';
|
|
2
|
-
|
|
2
|
+
export declare const markStencilMember: (shape: Element) => void;
|
|
3
|
+
export declare const isStencilMember: (shape: Element) => boolean;
|
|
4
|
+
/** Prove a local 2D sheet tree without unproved masters, lines or foreign objects; returns its IDs. */
|
|
3
5
|
export declare function proveLocalShapeTree(top: Element, check: () => void): Set<string>;
|
|
4
6
|
/** Refuse a tree when a page Connect record names any of its sheets. */
|
|
5
7
|
export declare function assertUngluedTree(root: Element, ids: ReadonlySet<string>, message: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-group-rotation.d.ts","sourceRoot":"","sources":["../../visio/edit-group-rotation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-group-rotation.d.ts","sourceRoot":"","sources":["../../visio/edit-group-rotation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOzD,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,IAAsC,CAAC;AAC1F,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,OAAoC,CAAC;AAEtF,uGAAuG;AACvG,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CA8EhF;AAED,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAKhG;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,IAAI;;;EA0BhG"}
|