ooxml-core 1.4.0 → 1.6.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-ZPJNHEZZ.mjs → PptxHandler-DDEJ6CKU.mjs} +2 -2
- package/dist/automation/index.cjs +14809 -7789
- package/dist/automation/index.mjs +14809 -7789
- package/dist/{chunk-XGLKW3JJ.mjs → chunk-5L4DHJV3.mjs} +23 -3
- package/dist/{chunk-IVDC75E5.mjs → chunk-EPNLABIU.mjs} +1 -1
- package/dist/{chunk-BB55ASTX.mjs → chunk-Q52O7SXQ.mjs} +3 -3
- package/dist/{chunk-QPQDLSJQ.mjs → chunk-QXZJOUW4.mjs} +1 -1
- package/dist/{chunk-H4TPDZV4.mjs → chunk-UQQGC6O3.mjs} +1 -1
- package/dist/drawingml/index.cjs +102 -24
- package/dist/drawingml/index.d.ts +1 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +102 -25
- package/dist/drawingml/write-theme.d.ts +17 -0
- package/dist/drawingml/write-theme.d.ts.map +1 -0
- package/dist/geometry/auto-align.d.ts +32 -0
- package/dist/geometry/auto-align.d.ts.map +1 -0
- package/dist/geometry/graph-layout.d.ts +37 -0
- package/dist/geometry/graph-layout.d.ts.map +1 -0
- package/dist/geometry/index.cjs +361 -7
- package/dist/geometry/index.d.ts +2 -0
- package/dist/geometry/index.d.ts.map +1 -1
- package/dist/geometry/index.mjs +359 -8
- package/dist/index.cjs +624 -122
- package/dist/index.mjs +624 -122
- package/dist/pptx/automation/index.cjs +23 -2
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/cli/index.cjs +23 -2
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/index.cjs +23 -2
- package/dist/pptx/index.mjs +5 -5
- package/dist/teams/index.cjs +3 -2
- package/dist/teams/index.mjs +3 -2
- package/dist/text/change-case.d.ts +20 -0
- package/dist/text/change-case.d.ts.map +1 -0
- package/dist/text/index.cjs +70 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +68 -1
- package/dist/visio/arrow-shapes.d.ts +16 -0
- package/dist/visio/arrow-shapes.d.ts.map +1 -0
- package/dist/visio/basic-shapes.d.ts +20 -0
- package/dist/visio/basic-shapes.d.ts.map +1 -0
- package/dist/visio/comments.d.ts +39 -0
- package/dist/visio/comments.d.ts.map +1 -0
- package/dist/visio/connector-route.d.ts +31 -0
- package/dist/visio/connector-route.d.ts.map +1 -0
- package/dist/visio/data-recordsets.d.ts +66 -0
- package/dist/visio/data-recordsets.d.ts.map +1 -0
- package/dist/visio/edit-change-shape-commands.d.ts +17 -0
- package/dist/visio/edit-change-shape-commands.d.ts.map +1 -0
- package/dist/visio/edit-change-shape.d.ts +4 -0
- package/dist/visio/edit-change-shape.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +41 -4
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-comment-commands.d.ts +32 -0
- package/dist/visio/edit-comment-commands.d.ts.map +1 -0
- package/dist/visio/edit-comments.d.ts +7 -0
- package/dist/visio/edit-comments.d.ts.map +1 -0
- package/dist/visio/edit-connection-points.d.ts +19 -0
- package/dist/visio/edit-connection-points.d.ts.map +1 -0
- package/dist/visio/edit-connector-commands.d.ts +57 -0
- package/dist/visio/edit-connector-commands.d.ts.map +1 -0
- package/dist/visio/edit-connector-glue.d.ts +43 -0
- package/dist/visio/edit-connector-glue.d.ts.map +1 -0
- package/dist/visio/edit-connector-layout.d.ts +37 -0
- package/dist/visio/edit-connector-layout.d.ts.map +1 -0
- package/dist/visio/edit-connector-reroute.d.ts +30 -0
- package/dist/visio/edit-connector-reroute.d.ts.map +1 -0
- package/dist/visio/edit-connector.d.ts +42 -0
- package/dist/visio/edit-connector.d.ts.map +1 -0
- package/dist/visio/edit-data-commands.d.ts +49 -0
- package/dist/visio/edit-data-commands.d.ts.map +1 -0
- package/dist/visio/edit-data-parts.d.ts +34 -0
- package/dist/visio/edit-data-parts.d.ts.map +1 -0
- package/dist/visio/edit-data.d.ts +8 -0
- package/dist/visio/edit-data.d.ts.map +1 -0
- package/dist/visio/edit-delete.d.ts.map +1 -1
- package/dist/visio/edit-diagram-parts-commands.d.ts +55 -0
- package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -0
- package/dist/visio/edit-diagram-parts.d.ts +16 -0
- package/dist/visio/edit-diagram-parts.d.ts.map +1 -0
- package/dist/visio/edit-ellipse-geometry.d.ts +2 -0
- package/dist/visio/edit-ellipse-geometry.d.ts.map +1 -1
- package/dist/visio/edit-foreign-bitmap.d.ts +7 -0
- package/dist/visio/edit-foreign-bitmap.d.ts.map +1 -0
- package/dist/visio/edit-formatting-cell-admission.d.ts +2 -0
- package/dist/visio/edit-formatting-cell-admission.d.ts.map +1 -1
- package/dist/visio/edit-formatting-commands.d.ts +14 -1
- package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-effects.d.ts +50 -0
- package/dist/visio/edit-formatting-effects.d.ts.map +1 -0
- package/dist/visio/edit-formatting-glow.d.ts +43 -0
- package/dist/visio/edit-formatting-glow.d.ts.map +1 -0
- package/dist/visio/edit-formatting-paint-scope.d.ts.map +1 -1
- package/dist/visio/edit-formatting-paint.d.ts +6 -0
- package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
- package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
- package/dist/visio/edit-formatting-text-commands.d.ts +56 -0
- package/dist/visio/edit-formatting-text-commands.d.ts.map +1 -0
- package/dist/visio/edit-formatting-text-extra.d.ts +11 -0
- package/dist/visio/edit-formatting-text-extra.d.ts.map +1 -0
- package/dist/visio/edit-formatting-text.d.ts.map +1 -1
- package/dist/visio/edit-formatting-theme-context.d.ts +14 -0
- package/dist/visio/edit-formatting-theme-context.d.ts.map +1 -0
- package/dist/visio/edit-formatting.d.ts +2 -0
- package/dist/visio/edit-formatting.d.ts.map +1 -1
- package/dist/visio/edit-geometry-admission.d.ts +1 -1
- package/dist/visio/edit-geometry-admission.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-group-commands.d.ts +22 -0
- package/dist/visio/edit-group-commands.d.ts.map +1 -0
- package/dist/visio/edit-group-rotation.d.ts +7 -1
- package/dist/visio/edit-group-rotation.d.ts.map +1 -1
- package/dist/visio/edit-group.d.ts +17 -0
- package/dist/visio/edit-group.d.ts.map +1 -0
- package/dist/visio/edit-guide-commands.d.ts +26 -0
- package/dist/visio/edit-guide-commands.d.ts.map +1 -0
- package/dist/visio/edit-guides.d.ts +4 -0
- package/dist/visio/edit-guides.d.ts.map +1 -0
- package/dist/visio/edit-layer-commands.d.ts +20 -0
- package/dist/visio/edit-layer-commands.d.ts.map +1 -0
- package/dist/visio/edit-layers.d.ts +7 -0
- package/dist/visio/edit-layers.d.ts.map +1 -0
- package/dist/visio/edit-metadata-commands.d.ts +46 -0
- package/dist/visio/edit-metadata-commands.d.ts.map +1 -0
- package/dist/visio/edit-metadata.d.ts +4 -0
- package/dist/visio/edit-metadata.d.ts.map +1 -0
- package/dist/visio/edit-page-auto-size.d.ts +19 -0
- package/dist/visio/edit-page-auto-size.d.ts.map +1 -0
- package/dist/visio/edit-page-create.d.ts +24 -0
- package/dist/visio/edit-page-create.d.ts.map +1 -0
- package/dist/visio/edit-page-decoration.d.ts +14 -0
- package/dist/visio/edit-page-decoration.d.ts.map +1 -0
- package/dist/visio/edit-page-setup-commands.d.ts +57 -0
- package/dist/visio/edit-page-setup-commands.d.ts.map +1 -0
- package/dist/visio/edit-page-setup.d.ts +13 -0
- package/dist/visio/edit-page-setup.d.ts.map +1 -0
- package/dist/visio/edit-page-size.d.ts +4 -0
- package/dist/visio/edit-page-size.d.ts.map +1 -1
- package/dist/visio/edit-page-theme-commands.d.ts +15 -0
- package/dist/visio/edit-page-theme-commands.d.ts.map +1 -0
- package/dist/visio/edit-page-theme-recolor.d.ts +3 -0
- package/dist/visio/edit-page-theme-recolor.d.ts.map +1 -0
- package/dist/visio/edit-page-theme.d.ts +10 -0
- package/dist/visio/edit-page-theme.d.ts.map +1 -0
- package/dist/visio/edit-pages.d.ts.map +1 -1
- package/dist/visio/edit-path-commands.d.ts +19 -0
- package/dist/visio/edit-path-commands.d.ts.map +1 -0
- package/dist/visio/edit-path-create.d.ts +23 -0
- package/dist/visio/edit-path-create.d.ts.map +1 -0
- package/dist/visio/edit-picture.d.ts +7 -0
- package/dist/visio/edit-picture.d.ts.map +1 -0
- package/dist/visio/edit-recalculate-index.d.ts +2 -0
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-resize-anchor.d.ts +1 -1
- package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
- package/dist/visio/edit-scope.d.ts.map +1 -1
- package/dist/visio/edit-shape-create.d.ts +8 -0
- package/dist/visio/edit-shape-create.d.ts.map +1 -1
- package/dist/visio/edit-shape-data-commands.d.ts +34 -0
- package/dist/visio/edit-shape-data-commands.d.ts.map +1 -0
- package/dist/visio/edit-shape-data.d.ts +22 -0
- package/dist/visio/edit-shape-data.d.ts.map +1 -0
- package/dist/visio/edit-shape-order.d.ts.map +1 -1
- package/dist/visio/edit-subprocess-commands.d.ts +27 -0
- package/dist/visio/edit-subprocess-commands.d.ts.map +1 -0
- package/dist/visio/edit-subprocess.d.ts +9 -0
- package/dist/visio/edit-subprocess.d.ts.map +1 -0
- package/dist/visio/edit-text-field-commands.d.ts +21 -0
- package/dist/visio/edit-text-field-commands.d.ts.map +1 -0
- package/dist/visio/edit-text-field.d.ts +5 -0
- package/dist/visio/edit-text-field.d.ts.map +1 -0
- package/dist/visio/edit-text-range-plan.d.ts.map +1 -1
- package/dist/visio/edit-text-ranges.d.ts.map +1 -1
- package/dist/visio/edit-text.d.ts.map +1 -1
- package/dist/visio/edit.d.ts +2 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/effects.d.ts +13 -0
- package/dist/visio/effects.d.ts.map +1 -0
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/index.cjs +27020 -19658
- package/dist/visio/index.d.ts +26 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +26949 -19659
- package/dist/visio/model.d.ts +125 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/page-decoration.d.ts +66 -0
- package/dist/visio/page-decoration.d.ts.map +1 -0
- package/dist/visio/page-scale.d.ts.map +1 -1
- package/dist/visio/page-setup.d.ts +8 -0
- package/dist/visio/page-setup.d.ts.map +1 -0
- package/dist/visio/page-theme.d.ts +9 -0
- package/dist/visio/page-theme.d.ts.map +1 -0
- package/dist/visio/paper-sizes.d.ts +24 -0
- package/dist/visio/paper-sizes.d.ts.map +1 -0
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/path-fit.d.ts +69 -0
- package/dist/visio/path-fit.d.ts.map +1 -0
- package/dist/visio/shadow.d.ts +9 -0
- package/dist/visio/shadow.d.ts.map +1 -0
- package/dist/visio/shape-connections.d.ts +5 -0
- package/dist/visio/shape-connections.d.ts.map +1 -0
- package/dist/visio/shape-metadata.d.ts +3 -0
- package/dist/visio/shape-metadata.d.ts.map +1 -1
- package/dist/visio/shape-structure.d.ts +10 -0
- package/dist/visio/shape-structure.d.ts.map +1 -0
- package/dist/visio/shapes.d.ts.map +1 -1
- package/dist/visio/stencil-shapes.d.ts +20 -0
- package/dist/visio/stencil-shapes.d.ts.map +1 -0
- package/dist/visio/stencils.d.ts +30 -0
- package/dist/visio/stencils.d.ts.map +1 -0
- package/dist/visio/style.d.ts +3 -0
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/text-character.d.ts +5 -0
- package/dist/visio/text-character.d.ts.map +1 -0
- package/dist/visio/text-field-context.d.ts +6 -0
- package/dist/visio/text-field-context.d.ts.map +1 -0
- package/dist/visio/text-field-display.d.ts +12 -0
- package/dist/visio/text-field-display.d.ts.map +1 -0
- package/dist/visio/text-fields.d.ts +65 -0
- package/dist/visio/text-fields.d.ts.map +1 -0
- package/dist/visio/theme-builtins.d.ts +32 -0
- package/dist/visio/theme-builtins.d.ts.map +1 -0
- package/dist/visio/theme-write.d.ts +4 -0
- package/dist/visio/theme-write.d.ts.map +1 -0
- package/dist/visio/theme.d.ts +2 -0
- package/dist/visio/theme.d.ts.map +1 -1
- package/dist/visio/ui/auto-layout.d.ts +38 -0
- package/dist/visio/ui/auto-layout.d.ts.map +1 -0
- package/dist/visio/ui/change-case.d.ts +12 -0
- package/dist/visio/ui/change-case.d.ts.map +1 -0
- package/dist/visio/ui/connection-points.d.ts +45 -0
- package/dist/visio/ui/connection-points.d.ts.map +1 -0
- package/dist/visio/ui/connector-preview.d.ts +24 -0
- package/dist/visio/ui/connector-preview.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-rules.d.ts +45 -0
- package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -0
- package/dist/visio/ui/data-graphics.d.ts +15 -0
- package/dist/visio/ui/data-graphics.d.ts.map +1 -0
- package/dist/visio/ui/data-table.d.ts +33 -0
- package/dist/visio/ui/data-table.d.ts.map +1 -0
- package/dist/visio/ui/diagram-check.d.ts +32 -0
- package/dist/visio/ui/diagram-check.d.ts.map +1 -0
- package/dist/visio/ui/diagram-parts.d.ts +20 -0
- package/dist/visio/ui/diagram-parts.d.ts.map +1 -0
- package/dist/visio/ui/draw-path-plan.d.ts +21 -0
- package/dist/visio/ui/draw-path-plan.d.ts.map +1 -0
- package/dist/visio/ui/draw-plan.d.ts +13 -2
- package/dist/visio/ui/draw-plan.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/format-painter.d.ts +25 -0
- package/dist/visio/ui/format-painter.d.ts.map +1 -0
- package/dist/visio/ui/guides.d.ts +34 -0
- package/dist/visio/ui/guides.d.ts.map +1 -0
- package/dist/visio/ui/index.cjs +8010 -2707
- package/dist/visio/ui/index.d.ts +25 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +7898 -2708
- package/dist/visio/ui/insert.d.ts +26 -0
- package/dist/visio/ui/insert.d.ts.map +1 -0
- package/dist/visio/ui/layer-assign.d.ts +31 -0
- package/dist/visio/ui/layer-assign.d.ts.map +1 -0
- package/dist/visio/ui/page-edit.d.ts.map +1 -1
- package/dist/visio/ui/page-setup.d.ts +50 -0
- package/dist/visio/ui/page-setup.d.ts.map +1 -0
- package/dist/visio/ui/page-size.d.ts +2 -11
- package/dist/visio/ui/page-size.d.ts.map +1 -1
- package/dist/visio/ui/paste-text.d.ts +13 -0
- package/dist/visio/ui/paste-text.d.ts.map +1 -0
- package/dist/visio/ui/scene-data.d.ts +4 -0
- package/dist/visio/ui/scene-data.d.ts.map +1 -0
- package/dist/visio/ui/scene-details.d.ts.map +1 -1
- package/dist/visio/ui/scene-validation-text.d.ts +8 -0
- package/dist/visio/ui/scene-validation-text.d.ts.map +1 -0
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/select-by-type.d.ts +35 -0
- package/dist/visio/ui/select-by-type.d.ts.map +1 -0
- package/dist/visio/ui/shape-arrange.d.ts.map +1 -1
- package/dist/visio/ui/shape-change.d.ts +11 -0
- package/dist/visio/ui/shape-change.d.ts.map +1 -0
- package/dist/visio/ui/shape-effects.d.ts +14 -0
- package/dist/visio/ui/shape-effects.d.ts.map +1 -0
- package/dist/visio/ui/shape-formatting.d.ts +5 -0
- package/dist/visio/ui/shape-formatting.d.ts.map +1 -1
- package/dist/visio/ui/shape-group.d.ts +9 -0
- package/dist/visio/ui/shape-group.d.ts.map +1 -0
- package/dist/visio/ui/shape-move.d.ts +5 -2
- package/dist/visio/ui/shape-move.d.ts.map +1 -1
- package/dist/visio/ui/shape-report.d.ts +37 -0
- package/dist/visio/ui/shape-report.d.ts.map +1 -0
- package/dist/visio/ui/shape-resize.d.ts.map +1 -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/subprocess.d.ts +13 -0
- package/dist/visio/ui/subprocess.d.ts.map +1 -0
- package/dist/visio/ui/text-block.d.ts +42 -0
- package/dist/visio/ui/text-block.d.ts.map +1 -0
- package/dist/visio/ui/text-dialog.d.ts +54 -0
- package/dist/visio/ui/text-dialog.d.ts.map +1 -0
- package/dist/visio/ui/text-draft.d.ts +25 -0
- package/dist/visio/ui/text-draft.d.ts.map +1 -0
- package/dist/visio/ui/text-field-catalog.d.ts +17 -0
- package/dist/visio/ui/text-field-catalog.d.ts.map +1 -0
- package/dist/xlsx/edit/dimensions.d.ts.map +1 -1
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -1
- package/dist/xlsx/edit/structure.d.ts +1 -1
- package/dist/xlsx/edit/structure.d.ts.map +1 -1
- package/dist/xlsx/filter-rows.d.ts +4 -0
- package/dist/xlsx/filter-rows.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +37 -22
- package/dist/xlsx/index.mjs +37 -22
- package/dist/xlsx/load/index.cjs +3 -2
- package/dist/xlsx/load/index.mjs +3 -2
- package/dist/xlsx/ui/index.cjs +37 -22
- package/dist/xlsx/ui/index.mjs +37 -22
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { VisioPackage } from './package.js';
|
|
2
|
+
/** Column types the importer infers and Shape Data rows receive. */
|
|
3
|
+
export type VisioDataColumnType = 'string' | 'number' | 'boolean' | 'date';
|
|
4
|
+
export interface VisioDataColumn {
|
|
5
|
+
/** Source column name (DataColumn ColumnNameID); also names the linked Prop row. */
|
|
6
|
+
name: string;
|
|
7
|
+
label: string;
|
|
8
|
+
type: VisioDataColumnType;
|
|
9
|
+
}
|
|
10
|
+
export interface VisioDataRow {
|
|
11
|
+
/** Visio identifies rows by order here (RowOrder): the 1-based position. */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Cached text per column; dates are ISO text, Booleans TRUE/FALSE. Empty means no value. */
|
|
14
|
+
values: string[];
|
|
15
|
+
}
|
|
16
|
+
/** A shape linked to a recordset row (DataRecordSet RowMap). */
|
|
17
|
+
export interface VisioDataLink {
|
|
18
|
+
rowId: string;
|
|
19
|
+
pageId: string;
|
|
20
|
+
shapeId: string;
|
|
21
|
+
}
|
|
22
|
+
/** An external data recordset saved in the drawing (DataRecordSets part). Inert cached data. */
|
|
23
|
+
export interface VisioDataRecordset {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
columns: VisioDataColumn[];
|
|
27
|
+
rows: VisioDataRow[];
|
|
28
|
+
links: VisioDataLink[];
|
|
29
|
+
/** TimeRefreshed as saved, ISO text. */
|
|
30
|
+
refreshed?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const VISIO_DATA_LIMITS: {
|
|
33
|
+
readonly maxRecordsets: 64;
|
|
34
|
+
readonly maxColumns: 256;
|
|
35
|
+
readonly maxRows: 10000;
|
|
36
|
+
readonly maxValueCharacters: 4096;
|
|
37
|
+
readonly maxTotalCharacters: 4000000;
|
|
38
|
+
};
|
|
39
|
+
export declare const DATA_RECORDSETS_TYPE = "application/vnd.ms-visio.recordsets+xml";
|
|
40
|
+
export declare const DATA_RECORDSET_TYPE = "application/vnd.ms-visio.recordset+xml";
|
|
41
|
+
export declare const ADO_NS: {
|
|
42
|
+
readonly s: 'uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882';
|
|
43
|
+
readonly dt: 'uuid:C2F41010-65B3-11d1-A29F-00AA00C14882';
|
|
44
|
+
readonly rs: 'urn:schemas-microsoft-com:rowset';
|
|
45
|
+
readonly z: '#RowsetSchema';
|
|
46
|
+
};
|
|
47
|
+
/** DataColumn DataType: the Shape Data Type code of the linked row. */
|
|
48
|
+
export declare const DATA_TYPE_CODES: Record<VisioDataColumnType, number>;
|
|
49
|
+
/** ADO persisted rowset XML (the Data Recordset part), as Visio saves external data. */
|
|
50
|
+
export declare function adoRecordsetXml(columns: readonly VisioDataColumn[], rows: readonly VisioDataRow[]): string;
|
|
51
|
+
/** Read one ADO rowset: column names in order and every row's text by column name. */
|
|
52
|
+
export declare function readAdoRecordset(root: Element, budget: {
|
|
53
|
+
characters: number;
|
|
54
|
+
}, check: () => void): {
|
|
55
|
+
columns: {
|
|
56
|
+
name: string;
|
|
57
|
+
type?: VisioDataColumnType;
|
|
58
|
+
}[];
|
|
59
|
+
rows: Map<string, string>[];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Read the drawing's DataRecordSets part and its ADO rowsets. Data connections are never
|
|
63
|
+
* opened; only cached rows saved in the package are returned.
|
|
64
|
+
*/
|
|
65
|
+
export declare function readDataRecordsets(pkg: VisioPackage, documentPart: string, check: () => void): Promise<VisioDataRecordset[]>;
|
|
66
|
+
//# sourceMappingURL=data-recordsets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-recordsets.d.ts","sourceRoot":"","sources":["../../visio/data-recordsets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAK9C,oEAAoE;AACpE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAC3E,MAAM,WAAW,eAAe;IAC/B,oFAAoF;IACpF,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,mBAAmB,CAAC;CAC1B;AACD,MAAM,WAAW,YAAY;IAC5B,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,6FAA6F;IAC7F,MAAM,EAAE,MAAM,EAAE,CAAC;CACjB;AACD,gEAAgE;AAChE,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CAChB;A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C,GAAG,EAAE,YAAY,EACjB,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAoD/B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type VisioBasicShape } from './basic-shapes.js';
|
|
2
|
+
/** A Basic Shapes outline, or the native Ellipse row (`circle` keeps the shape's own size). */
|
|
3
|
+
export type VisioChangeShapeTarget = VisioBasicShape | 'ellipse' | 'circle';
|
|
4
|
+
/**
|
|
5
|
+
* Visio's Home > Editing > Change Shape for one local 2D shape: its Geometry sections are
|
|
6
|
+
* replaced by the target outline. Position, size, rotation, flips, text and formatting stay.
|
|
7
|
+
*/
|
|
8
|
+
export interface VisioChangeShapeEdit {
|
|
9
|
+
type: 'change-shape';
|
|
10
|
+
pageId: string;
|
|
11
|
+
shapeId: string;
|
|
12
|
+
shape: VisioChangeShapeTarget;
|
|
13
|
+
}
|
|
14
|
+
export declare const isVisioChangeShapeTarget: (value: unknown) => value is VisioChangeShapeTarget;
|
|
15
|
+
/** Copy a change-shape command, keeping only its known fields. */
|
|
16
|
+
export declare function snapshotChangeShape(edit: VisioChangeShapeEdit): VisioChangeShapeEdit;
|
|
17
|
+
//# sourceMappingURL=edit-change-shape-commands.d.ts.map
|
|
@@ -0,0 +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;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,sBAAsB,CAAC;CAC9B;AAED,eAAO,MAAM,wBAAwB,UAAW,OAAO,KAAG,KAAK,IAAI,sBACG,CAAC;AAEvE,kEAAkE;AAClE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,oBAAoB,GAAG,oBAAoB,CASpF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VisioChangeShapeEdit } from './edit-change-shape-commands.js';
|
|
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, check: () => void): boolean;
|
|
4
|
+
//# sourceMappingURL=edit-change-shape.d.ts.map
|
|
@@ -0,0 +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,EAC1B,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CA8CT"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { type VisioOutlineShape } from './stencil-shapes.js';
|
|
2
|
+
import { type VisioConnectorEdit, type VisioConnectorGlue, type VisioConnectorRoute } from './edit-connector-commands.js';
|
|
3
|
+
export { snapshotConnectorGlue } from './edit-connector-commands.js';
|
|
4
|
+
export type { VisioConnectorGlue, VisioConnectorRoute, VisioConnectorEdit, VisioAddConnectionPointEdit, VisioDeleteConnectionPointEdit, VisioGlueConnectorEdit, VisioConnectorRouteEdit, } from './edit-connector-commands.js';
|
|
1
5
|
import { type VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
2
6
|
export type { VisioTextRange, VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
3
7
|
import { type VisioResizeAnchor } from './resize-anchor.js';
|
|
@@ -5,8 +9,36 @@ export type { VisioResizeAnchor } from './resize-anchor.js';
|
|
|
5
9
|
import { type VisioDuplicateShapesEdit } from './edit-duplicate-commands.js';
|
|
6
10
|
export type { VisioDuplicateShapesEdit } from './edit-duplicate-commands.js';
|
|
7
11
|
import { type VisioPasteShapesEdit } from './edit-paste-commands.js';
|
|
12
|
+
import { type VisioPathCreateEdit } from './edit-path-commands.js';
|
|
13
|
+
export type { VisioPathCreateEdit, VisioPathSegment } from './edit-path-commands.js';
|
|
14
|
+
import { type VisioChangeShapeEdit } from './edit-change-shape-commands.js';
|
|
15
|
+
export type { VisioChangeShapeEdit, VisioChangeShapeTarget } from './edit-change-shape-commands.js';
|
|
16
|
+
import { type VisioGroupEdit } from './edit-group-commands.js';
|
|
17
|
+
import { type VisioPageSetupEdits } from './edit-page-setup-commands.js';
|
|
18
|
+
export type { VisioPageSetupEdit, VisioPagePropertiesEdit, VisioPageDecorationEdit, VisioPageSetupEdits, VisioScaleUnit, } from './edit-page-setup-commands.js';
|
|
19
|
+
import { type VisioShapeDataEdit } from './edit-shape-data-commands.js';
|
|
20
|
+
export type { VisioShapeDataEdit, VisioShapeDataFields, VisioShapeDataType, } from './edit-shape-data-commands.js';
|
|
21
|
+
import { type VisioDataEdit } from './edit-data-commands.js';
|
|
22
|
+
export type { VisioDataEdit, VisioDataImportEdit, VisioDataRefreshEdit, VisioDataDeleteEdit, VisioDataLinkEdit, VisioDataUnlinkEdit, } from './edit-data-commands.js';
|
|
23
|
+
export type { VisioGroupEdit, VisioGroupShapesEdit, VisioUngroupShapeEdit, } from './edit-group-commands.js';
|
|
8
24
|
export type { VisioPasteShapesEdit } from './edit-paste-commands.js';
|
|
25
|
+
import { type VisioPageThemeEdit } from './edit-page-theme-commands.js';
|
|
26
|
+
export type { VisioPageThemeEdit } from './edit-page-theme-commands.js';
|
|
27
|
+
import { type VisioCommentEdit } from './edit-comment-commands.js';
|
|
28
|
+
export type { VisioCommentEdit, VisioCommentAddEdit, VisioCommentUpdateEdit, VisioCommentDeleteEdit, } from './edit-comment-commands.js';
|
|
29
|
+
import { type VisioSubprocessEdit } from './edit-subprocess-commands.js';
|
|
30
|
+
export type { VisioSubprocessEdit, VisioSubprocessSelection } from './edit-subprocess-commands.js';
|
|
31
|
+
import { type VisioDiagramPartEdit } from './edit-diagram-parts-commands.js';
|
|
32
|
+
export type { VisioDiagramPartEdit, VisioInsertContainerEdit, VisioInsertCalloutEdit, } from './edit-diagram-parts-commands.js';
|
|
33
|
+
import { type VisioAssignLayersEdit } from './edit-layer-commands.js';
|
|
34
|
+
export type { VisioAssignLayersEdit } from './edit-layer-commands.js';
|
|
35
|
+
import { type VisioGuideEdit } from './edit-guide-commands.js';
|
|
36
|
+
export type { VisioGuideEdit } from './edit-guide-commands.js';
|
|
37
|
+
import { type VisioTextFieldInsertEdit } from './edit-text-field-commands.js';
|
|
38
|
+
export type { VisioTextFieldInsertEdit } from './edit-text-field-commands.js';
|
|
9
39
|
import { type VisioFormatEdit } from './edit-formatting-commands.js';
|
|
40
|
+
import { type VisioMetadataEdit, type VisioPictureInsertEdit } from './edit-metadata-commands.js';
|
|
41
|
+
export type { VisioMetadataEdit, VisioPictureInsertEdit, VisioShapeHyperlinkEdit, VisioShapeScreenTipEdit, VisioHyperlinkFields, } from './edit-metadata-commands.js';
|
|
10
42
|
export type { VisioFormatEdit, VisioTextFormatEdit, VisioShapeFormatEdit, } from './edit-formatting-commands.js';
|
|
11
43
|
export interface VisioShapeOrderEdit {
|
|
12
44
|
type: 'reorder-shape';
|
|
@@ -38,14 +70,19 @@ export type VisioGeometryEdit = (Target & {
|
|
|
38
70
|
beginY: number;
|
|
39
71
|
endX: number;
|
|
40
72
|
endY: number;
|
|
73
|
+
/** Present for a connector: the shapes (or connection points) each end is glued to. */
|
|
74
|
+
connect?: VisioConnectorGlue;
|
|
75
|
+
/** A connector's route; omitted means straight. */
|
|
76
|
+
route?: VisioConnectorRoute;
|
|
41
77
|
}) | (BoxCreation & {
|
|
42
78
|
type: 'create-rectangle';
|
|
79
|
+
shape?: VisioOutlineShape;
|
|
43
80
|
}) | (BoxCreation & {
|
|
44
81
|
type: 'create-ellipse';
|
|
45
82
|
}) | (BoxCreation & {
|
|
46
83
|
type: 'create-text-box';
|
|
47
84
|
text: string;
|
|
48
|
-
}) | (Target & {
|
|
85
|
+
}) | VisioPathCreateEdit | (Target & {
|
|
49
86
|
type: 'move-shape';
|
|
50
87
|
x: number;
|
|
51
88
|
y: number;
|
|
@@ -67,7 +104,7 @@ export type VisioGeometryEdit = (Target & {
|
|
|
67
104
|
y: number;
|
|
68
105
|
}) | (Target & {
|
|
69
106
|
type: 'delete-shape';
|
|
70
|
-
});
|
|
107
|
+
}) | VisioConnectorEdit;
|
|
71
108
|
/** Insert a blank foreground page after an existing page, copying its PageSheet settings. */
|
|
72
109
|
export interface VisioPageInsert {
|
|
73
110
|
type: 'insert-page';
|
|
@@ -99,8 +136,8 @@ export interface VisioPageSizeEdit {
|
|
|
99
136
|
width: number;
|
|
100
137
|
height: number;
|
|
101
138
|
}
|
|
102
|
-
export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit;
|
|
103
|
-
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit;
|
|
139
|
+
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;
|
|
104
141
|
export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
|
|
105
142
|
/** Potential direct changes used by both package and master dependency admission. */
|
|
106
143
|
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,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,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAGN,KAAK,eAAe,EACpB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,GACpB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;CACjD;AAED,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAA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ACf,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,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,CAmLb"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Add a comment to a page, or to a shape on it. `date` is an xsd:dateTime (UTC `Z` allowed). */
|
|
2
|
+
export interface VisioCommentAddEdit {
|
|
3
|
+
type: 'add-comment';
|
|
4
|
+
pageId: string;
|
|
5
|
+
shapeId?: string;
|
|
6
|
+
author: string;
|
|
7
|
+
initials?: string;
|
|
8
|
+
text: string;
|
|
9
|
+
date: string;
|
|
10
|
+
}
|
|
11
|
+
/** Change a comment's text (stamping EditDate) and/or its Done (resolved) flag. */
|
|
12
|
+
export interface VisioCommentUpdateEdit {
|
|
13
|
+
type: 'edit-comment';
|
|
14
|
+
pageId: string;
|
|
15
|
+
/** The model ID (`VisioComment.id`). */
|
|
16
|
+
commentId: string;
|
|
17
|
+
text?: string;
|
|
18
|
+
done?: boolean;
|
|
19
|
+
date: string;
|
|
20
|
+
}
|
|
21
|
+
export interface VisioCommentDeleteEdit {
|
|
22
|
+
type: 'delete-comment';
|
|
23
|
+
pageId: string;
|
|
24
|
+
commentId: string;
|
|
25
|
+
}
|
|
26
|
+
export type VisioCommentEdit = VisioCommentAddEdit | VisioCommentUpdateEdit | VisioCommentDeleteEdit;
|
|
27
|
+
export declare const isVisioCommentEdit: (edit: {
|
|
28
|
+
type: string;
|
|
29
|
+
}) => edit is VisioCommentEdit;
|
|
30
|
+
/** Copy and validate a comment command; the package transaction stays authoritative. */
|
|
31
|
+
export declare function snapshotCommentEdit(edit: VisioCommentEdit): VisioCommentEdit;
|
|
32
|
+
//# sourceMappingURL=edit-comment-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-comment-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-comment-commands.ts"],"names":[],"mappings":"AAGA,iGAAiG;AACjG,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AACD,mFAAmF;AACnF,MAAM,WAAW,sBAAsB;IACtC,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,sBAAsB;IACtC,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,MAAM,gBAAgB,GACzB,mBAAmB,GACnB,sBAAsB,GACtB,sBAAsB,CAAC;AAE1B,eAAO,MAAM,kBAAkB,SAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,IAAI,gBAC0B,CAAC;AA6B/F,wFAAwF;AACxF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,CAgC5E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VisioPackage } from './package.js';
|
|
2
|
+
import { type VisioPackageLimits } from './package-common.js';
|
|
3
|
+
import type { VisioCommentEdit } from './edit-comment-commands.js';
|
|
4
|
+
import type { EditVsdxResult } from './edit.js';
|
|
5
|
+
/** Add, edit and delete review comments as one transaction on the comments part. */
|
|
6
|
+
export declare function editVsdxComments(pkg: VisioPackage, parts: Map<string, Uint8Array>, pages: ReadonlyMap<string, string>, edits: readonly VisioCommentEdit[], limits: VisioPackageLimits, maxOutput: number, deadline: number, check: () => void): Promise<EditVsdxResult>;
|
|
7
|
+
//# sourceMappingURL=edit-comments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-comments.d.ts","sourceRoot":"","sources":["../../visio/edit-comments.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAW7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAyD7C,oFAAoF;AACpF,wBAAsB,gBAAgB,CACrC,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,KAAK,EAAE,SAAS,gBAAgB,EAAE,EAClC,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,cAAc,CAAC,CAkHzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VisioGeometryEdit } from './edit-commands.js';
|
|
2
|
+
type AddPoint = Extract<VisioGeometryEdit, {
|
|
3
|
+
type: 'add-connection-point';
|
|
4
|
+
}>;
|
|
5
|
+
type DeletePoint = Extract<VisioGeometryEdit, {
|
|
6
|
+
type: 'delete-connection-point';
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Home > Tools > Connection Point: add a Connection row at fractions of the shape's size, with
|
|
10
|
+
* Width*x and Height*y formulas so the point follows resizing.
|
|
11
|
+
*/
|
|
12
|
+
export declare function addConnectionPoint(root: Element, edit: AddPoint): readonly string[];
|
|
13
|
+
/**
|
|
14
|
+
* Delete a Connection row. Ends glued to it are unglued where they are; ends glued to later rows
|
|
15
|
+
* follow their renumbered rows, as in Visio.
|
|
16
|
+
*/
|
|
17
|
+
export declare function deleteConnectionPoint(root: Element, edit: DeletePoint): readonly string[];
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=edit-connection-points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connection-points.d.ts","sourceRoot":"","sources":["../../visio/edit-connection-points.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAUzD,KAAK,QAAQ,GAAG,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAC,CAAC;AAC7E,KAAK,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,yBAAyB,CAAA;CAAE,CAAC,CAAC;AAiBnF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,MAAM,EAAE,CA2CnF;AAmBD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,GAAG,SAAS,MAAM,EAAE,CA+BzF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a connector is drawn between its ends, as Design > Connectors offers it: right-angle (Visio's
|
|
3
|
+
* default dynamic connector), straight, or curved (one cubic).
|
|
4
|
+
*/
|
|
5
|
+
export type VisioConnectorRoute = 'right-angle' | 'straight' | 'curved';
|
|
6
|
+
export declare const VISIO_CONNECTOR_ROUTES: readonly VisioConnectorRoute[];
|
|
7
|
+
/**
|
|
8
|
+
* Glue targets of a connector's ends. A missing end stays unglued. With a point index the end is
|
|
9
|
+
* glued to that Connection row of the shape (point-to-point glue); without it, to the shape itself
|
|
10
|
+
* (dynamic glue that walks to the nearest side).
|
|
11
|
+
*/
|
|
12
|
+
export interface VisioConnectorGlue {
|
|
13
|
+
begin?: string;
|
|
14
|
+
end?: string;
|
|
15
|
+
/** Zero-based Connection row (IX) of the begin shape. */
|
|
16
|
+
beginPoint?: number;
|
|
17
|
+
/** Zero-based Connection row (IX) of the end shape. */
|
|
18
|
+
endPoint?: number;
|
|
19
|
+
}
|
|
20
|
+
interface Target {
|
|
21
|
+
pageId: string;
|
|
22
|
+
shapeId: string;
|
|
23
|
+
}
|
|
24
|
+
/** Add a connection point to a local 2D shape at fractions of its Width and Height. */
|
|
25
|
+
export type VisioAddConnectionPointEdit = Target & {
|
|
26
|
+
type: 'add-connection-point';
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
};
|
|
30
|
+
/** Delete one Connection row (zero-based IX) of a local 2D shape. */
|
|
31
|
+
export type VisioDeleteConnectionPointEdit = Target & {
|
|
32
|
+
type: 'delete-connection-point';
|
|
33
|
+
index: number;
|
|
34
|
+
};
|
|
35
|
+
/** Glue one end of an existing connector to a shape, or to one of its connection points. */
|
|
36
|
+
export type VisioGlueConnectorEdit = Target & {
|
|
37
|
+
type: 'glue-connector';
|
|
38
|
+
endpoint: 'begin' | 'end';
|
|
39
|
+
target: string;
|
|
40
|
+
point?: number;
|
|
41
|
+
};
|
|
42
|
+
/** Change how a connector is routed (Design > Connectors). */
|
|
43
|
+
export type VisioConnectorRouteEdit = Target & {
|
|
44
|
+
type: 'set-connector-route';
|
|
45
|
+
route: VisioConnectorRoute;
|
|
46
|
+
};
|
|
47
|
+
export type VisioConnectorEdit = VisioAddConnectionPointEdit | VisioDeleteConnectionPointEdit | VisioGlueConnectorEdit | VisioConnectorRouteEdit;
|
|
48
|
+
export declare const isVisioConnectorEdit: (edit: {
|
|
49
|
+
type: string;
|
|
50
|
+
}) => edit is VisioConnectorEdit;
|
|
51
|
+
export declare const snapshotConnectorRoute: (value: unknown) => VisioConnectorRoute;
|
|
52
|
+
/** Copy connector glue: distinct canonical shape IDs other than the connector, optional points. */
|
|
53
|
+
export declare function snapshotConnectorGlue(value: unknown, connectorId: string): VisioConnectorGlue | undefined;
|
|
54
|
+
/** Copy and validate a connector or connection-point command; source admission stays in core. */
|
|
55
|
+
export declare function snapshotConnectorEdit(edit: VisioConnectorEdit): VisioConnectorEdit;
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=edit-connector-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connector-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-commands.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,CAAC;AACxE,eAAO,MAAM,sBAAsB,EAAE,SAAS,mBAAmB,EAIhE,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;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Matrix } from './model.js';
|
|
2
|
+
/** The formula Visio writes on a dynamically glued connector endpoint (shape-to-shape glue). */
|
|
3
|
+
export declare const VISIO_WALK_GLUE = "_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)";
|
|
4
|
+
export declare const visioGlueTrigger: (shapeId: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* The formula Visio writes on both coordinates of an end glued to a connection point (point-to-point
|
|
7
|
+
* glue). `index` is the zero-based Connection row; ShapeSheet names count rows from 1.
|
|
8
|
+
*/
|
|
9
|
+
export declare const visioPointGlue: (shapeId: string, index: number) => string;
|
|
10
|
+
/** The shape and zero-based Connection row a point-glue formula names, if it is one. */
|
|
11
|
+
export declare function visioPointGlueTarget(formula: string | undefined): {
|
|
12
|
+
shapeId: string;
|
|
13
|
+
index: number;
|
|
14
|
+
} | undefined;
|
|
15
|
+
/** The glued shape a native trigger formula names, if it is one. */
|
|
16
|
+
export declare function visioGlueTriggerTarget(formula: string | undefined): string | undefined;
|
|
17
|
+
/** Native dynamic-glue cells of a connector: Visio re-evaluates them; the editor keeps their caches. */
|
|
18
|
+
export declare function isNativeGlueCell(name: string, formula: string): boolean;
|
|
19
|
+
/** A native glue cell of a top-level connector that its page's Connect rows name as FromSheet. */
|
|
20
|
+
export declare function isConnectedGlueCell(node: Element, formula: string): boolean;
|
|
21
|
+
export interface VisioGluePoint {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}
|
|
25
|
+
/** A glue target's local size and its local-to-page transform (y-up drawing inches). */
|
|
26
|
+
export interface VisioGlueBox {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
transform: VisioMatrix;
|
|
30
|
+
}
|
|
31
|
+
/** The four side midpoints of a shape's alignment box, in page coordinates. */
|
|
32
|
+
export declare function visioGlueSites(box: VisioGlueBox): VisioGluePoint[];
|
|
33
|
+
/**
|
|
34
|
+
* Walking shape-to-shape glue: each glued end sits on the side midpoint of its shape nearest the
|
|
35
|
+
* other end (the closest pair of midpoints when both ends are glued). Pairs that would coincide,
|
|
36
|
+
* such as the shared side of touching shapes, are skipped. Unglued ends keep their point. This is
|
|
37
|
+
* the straight-connector subset of Visio's dynamic glue, not its router.
|
|
38
|
+
*/
|
|
39
|
+
export declare function visioConnectorGluePoints(begin: VisioGlueBox | VisioGluePoint, end: VisioGlueBox | VisioGluePoint): {
|
|
40
|
+
begin: VisioGluePoint;
|
|
41
|
+
end: VisioGluePoint;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=edit-connector-glue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connector-glue.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-glue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,gGAAgG;AAChG,eAAO,MAAM,eAAe,oDAAoD,CAAC;AAOjF,eAAO,MAAM,gBAAgB,YAAa,MAAM,WAA8C,CAAC;AAC/F;;;GAGG;AACH,eAAO,MAAM,cAAc,YAAa,MAAM,SAAS,MAAM,WACqC,CAAC;AACnG,wFAAwF;AACxF,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAGhD;AAED,oEAAoE;AACpE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEtF;AAED,wGAAwG;AACxG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAMvE;AAED,kGAAkG;AAClG,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAU3E;AAED,MAAM,WAAW,cAAc;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AACD,wFAAwF;AACxF,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,WAAW,CAAC;CACvB;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,GAAG,EAAE,YAAY,GAAG,cAAc,EAAE,CAQlE;AAID;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,YAAY,GAAG,cAAc,EACpC,GAAG,EAAE,YAAY,GAAG,cAAc,GAChC;IAAE,KAAK,EAAE,cAAc,CAAC;IAAC,GAAG,EAAE,cAAc,CAAA;CAAE,CAWhD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { VisioConnectorRoute } from './edit-connector-commands.js';
|
|
2
|
+
import { type VisioGlueBox, type VisioGluePoint } from './edit-connector-glue.js';
|
|
3
|
+
import { type VisioRouteBox, type VisioRoutePoint } from './connector-route.js';
|
|
4
|
+
export type End = 'begin' | 'end';
|
|
5
|
+
export declare const ENDS: readonly End[];
|
|
6
|
+
export declare const prefix: (end: End) => "Begin" | "End";
|
|
7
|
+
/** A connector's route from its cells; connectors without route cells are straight. */
|
|
8
|
+
export declare function connectorRoute(shape: Element): VisioConnectorRoute;
|
|
9
|
+
export declare function setRouteCells(shape: Element, route: VisioConnectorRoute): void;
|
|
10
|
+
/** A glued end's candidate sites: dynamic glue may sit on any side midpoint. */
|
|
11
|
+
export interface ConnectorSite {
|
|
12
|
+
point: VisioGluePoint;
|
|
13
|
+
normal?: VisioGluePoint;
|
|
14
|
+
box?: VisioRouteBox;
|
|
15
|
+
}
|
|
16
|
+
export declare function routeBox(box: VisioGlueBox): VisioRouteBox;
|
|
17
|
+
/** The four side midpoints of a dynamic glue target, each with its outward normal. */
|
|
18
|
+
export declare function dynamicSites(box: VisioGlueBox): ConnectorSite[];
|
|
19
|
+
/** A connection point site: it leaves along the normal of the side nearest the point. */
|
|
20
|
+
export declare function pointSite(box: VisioGlueBox, x: number, y: number): ConnectorSite;
|
|
21
|
+
/** The closest pair of candidate sites (Visio's walking glue picks facing sides). */
|
|
22
|
+
export declare function chooseSites(begin: readonly ConnectorSite[], end: readonly ConnectorSite[]): Record<End, ConnectorSite>;
|
|
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>): VisioRoutePoint[];
|
|
25
|
+
/**
|
|
26
|
+
* Write a connector's transform and Geometry for its route. Straight connectors keep the native
|
|
27
|
+
* DrawLine form (length Width, Angle); right-angle and curved ones take Visio's dynamic-connector
|
|
28
|
+
* form: Angle 0, Width EndX-BeginX and Height EndY-BeginY (either may be negative), with the route
|
|
29
|
+
* as local vertices from the begin point (a NURBSTo cubic when curved).
|
|
30
|
+
*/
|
|
31
|
+
export declare function writeConnectorShape(shape: Element, route: VisioConnectorRoute, vertices: readonly VisioRoutePoint[]): void;
|
|
32
|
+
/**
|
|
33
|
+
* Lay a connector out between its resolved ends and recalculate its dependants. Locked ends that
|
|
34
|
+
* would move are refused.
|
|
35
|
+
*/
|
|
36
|
+
export declare function layoutConnectorShape(roots: ReadonlyMap<string, Element>, pageId: string, shape: Element, route: VisioConnectorRoute, sites: Record<End, ConnectorSite>, check: () => void): readonly string[];
|
|
37
|
+
//# sourceMappingURL=edit-connector-layout.d.ts.map
|
|
@@ -0,0 +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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AAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EACjC,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAuBnB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { VisioConnectorEdit, VisioConnectorRoute } from './edit-connector-commands.js';
|
|
2
|
+
import type { VisioGeometryEdit } from './edit-commands.js';
|
|
3
|
+
import { type End } from './edit-connector-layout.js';
|
|
4
|
+
import { type ConnectorGlue } from './edit-connector.js';
|
|
5
|
+
import type { VisioRoutePoint } from './connector-route.js';
|
|
6
|
+
/** A right-angle or curved connector this editor wrote (Visio's dynamic-connector cell form). */
|
|
7
|
+
export declare function isRoutedConnector(shape: Element): boolean;
|
|
8
|
+
/** Prove a connector's transform is the owned form of its route before it is laid out again. */
|
|
9
|
+
export declare function proveConnectorShape(shape: Element, route?: VisioConnectorRoute): void;
|
|
10
|
+
/**
|
|
11
|
+
* Lay a connector out again: glued ends move onto their shapes (nearest side midpoints) or
|
|
12
|
+
* connection points, unglued ends stay (or take `free`), and the route is redrawn.
|
|
13
|
+
*/
|
|
14
|
+
export declare function rerouteConnector(roots: ReadonlyMap<string, Element>, pageId: string, glue: ConnectorGlue, check: () => void, options?: {
|
|
15
|
+
free?: Partial<Record<End, VisioRoutePoint>>;
|
|
16
|
+
route?: VisioConnectorRoute;
|
|
17
|
+
}): readonly string[];
|
|
18
|
+
/** Move, endpoint and transform edits of a right-angle or curved connector. */
|
|
19
|
+
export declare function editRoutedConnector(roots: ReadonlyMap<string, Element>, edit: VisioGeometryEdit, check: () => void): readonly string[];
|
|
20
|
+
/** Glue one end of an existing connector (Visio's re-glue by dragging an endpoint). */
|
|
21
|
+
export declare function glueExistingConnector(roots: ReadonlyMap<string, Element>, edit: Extract<VisioGeometryEdit, {
|
|
22
|
+
type: 'glue-connector';
|
|
23
|
+
}>, check: () => void): readonly string[];
|
|
24
|
+
/** Design > Connectors: redraw a connector as right-angle, straight or curved. */
|
|
25
|
+
export declare function setConnectorRoute(roots: ReadonlyMap<string, Element>, edit: Extract<VisioGeometryEdit, {
|
|
26
|
+
type: 'set-connector-route';
|
|
27
|
+
}>, check: () => void): readonly string[];
|
|
28
|
+
/** Connection-point, glue and route commands. */
|
|
29
|
+
export declare function applyConnectorEdit(roots: ReadonlyMap<string, Element>, root: Element, edit: VisioConnectorEdit, check: () => void): readonly string[];
|
|
30
|
+
//# sourceMappingURL=edit-connector-reroute.d.ts.map
|
|
@@ -0,0 +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,EAQN,KAAK,GAAG,EACR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAMN,KAAK,aAAa,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,iGAAiG;AACjG,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEzD;AACD,gGAAgG;AAChG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,sBAAwB,GAAG,IAAI,CAuBvF;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,MAAM,IAAI,EACjB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,mBAAmB,CAAA;CAAO,GACzF,SAAS,MAAM,EAAE,CAkCnB;AAYD,+EAA+E;AAC/E,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAmCnB;AAED,uFAAuF;AACvF,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,WAAW,CAAC,MAAM,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,iDAAiD;AACjD,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAWnB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { VisioGeometryEdit } from './edit-commands.js';
|
|
2
|
+
import { type VisioGlueBox } from './edit-connector-glue.js';
|
|
3
|
+
import { type ConnectorSite, type End } from './edit-connector-layout.js';
|
|
4
|
+
type LineCreate = Extract<VisioGeometryEdit, {
|
|
5
|
+
type: 'create-line';
|
|
6
|
+
}>;
|
|
7
|
+
/** What one connector end is glued to: a shape (dynamic glue) or one of its connection points. */
|
|
8
|
+
export interface GlueEnd {
|
|
9
|
+
target: string;
|
|
10
|
+
point?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ConnectorGlue {
|
|
13
|
+
shape: Element;
|
|
14
|
+
ends: Partial<Record<End, GlueEnd>>;
|
|
15
|
+
}
|
|
16
|
+
export declare const connectRows: (root: Element) => Element[];
|
|
17
|
+
export declare function topShape(root: Element, shapeId: string): Element | undefined;
|
|
18
|
+
/** A glue target's alignment box and transform, read from its own proven caches. */
|
|
19
|
+
export declare function glueBox(root: Element, shapeId: string): VisioGlueBox;
|
|
20
|
+
/** The local Connection rows of a shape (not deleted), by zero-based IX. */
|
|
21
|
+
export declare function connectionRows(shape: Element): Map<number, Element>;
|
|
22
|
+
/** Candidate sites of a glued end: four side midpoints, or the one connection point. */
|
|
23
|
+
export declare function glueSites(root: Element, end: GlueEnd): ConnectorSite[];
|
|
24
|
+
/** Endpoints of a new connector after its glued ends move onto their shapes or points. */
|
|
25
|
+
export declare function planConnector(root: Element, edit: LineCreate): LineCreate;
|
|
26
|
+
/** Glue one end: native formulas, trigger and a Connect row (Visio's dynamic or point glue). */
|
|
27
|
+
export declare function glueEnd(root: Element, shape: Element, end: End, glue: GlueEnd): void;
|
|
28
|
+
/** Turn a freshly drawn line into a native dynamic connector with Connect rows. */
|
|
29
|
+
export declare function glueNewConnector(root: Element, shape: Element, edit: LineCreate): void;
|
|
30
|
+
/** Prove a connector's Connect rows and glue formulas are the owned dynamic or point glue. */
|
|
31
|
+
export declare function proveConnector(root: Element, connectorId: string): ConnectorGlue;
|
|
32
|
+
/** Classify a geometry target: connectors glued to it, and whether it is itself glued. */
|
|
33
|
+
export declare function glueParticipants(root: Element, shapeId: string): {
|
|
34
|
+
connectors: ConnectorGlue[];
|
|
35
|
+
connector?: ConnectorGlue;
|
|
36
|
+
};
|
|
37
|
+
/** Detach connector ends: values stay, formulas, triggers and Connect rows go (Visio's unglue). */
|
|
38
|
+
export declare function unglueConnector(root: Element, glue: ConnectorGlue, ends: readonly End[]): void;
|
|
39
|
+
/** Before deletion: drop removed connectors' rows and unglue retained connectors from removed shapes. */
|
|
40
|
+
export declare function releaseDeletedGlue(roots: ReadonlyMap<string, Element>, removed: ReadonlyMap<string, ReadonlySet<string>>): void;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=edit-connector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connector.d.ts","sourceRoot":"","sources":["../../visio/edit-connector.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAON,KAAK,YAAY,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAON,KAAK,aAAa,EAClB,KAAK,GAAG,EACR,MAAM,yBAAyB,CAAC;AAIjC,KAAK,UAAU,GAAG,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AACtE,kGAAkG;AAClG,MAAM,WAAW,OAAO;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,WAAW,SAAU,OAAO,cACyC,CAAC;AACnF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAI5E;AAED,oFAAoF;AACpF,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,YAAY,CAoBpE;AACD,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAWnE;AACD,wFAAwF;AACxF,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,GAAG,aAAa,EAAE,CAOtE;AAQD,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU,CAoBzE;AAED,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CA4BpF;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,CAyChF;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,CAe9F;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"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type VisioDataColumn } from './data-recordsets.js';
|
|
2
|
+
/** Import a table as a new recordset (Data > Quick Import / Custom Import). */
|
|
3
|
+
export interface VisioDataImportEdit {
|
|
4
|
+
type: 'import-data-recordset';
|
|
5
|
+
/** The page the user is on; the recordset is document level. */
|
|
6
|
+
pageId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
columns: VisioDataColumn[];
|
|
9
|
+
/** Text per column: numbers, TRUE/FALSE, ISO dates (yyyy-mm-dd) or strings; '' is empty. */
|
|
10
|
+
rows: string[][];
|
|
11
|
+
}
|
|
12
|
+
/** Replace a recordset's rows (Refresh); linked shapes get the new values by row order. */
|
|
13
|
+
export interface VisioDataRefreshEdit {
|
|
14
|
+
type: 'refresh-data-recordset';
|
|
15
|
+
pageId: string;
|
|
16
|
+
recordsetId: string;
|
|
17
|
+
columns: VisioDataColumn[];
|
|
18
|
+
rows: string[][];
|
|
19
|
+
}
|
|
20
|
+
/** Remove a recordset; linked shapes keep their Shape Data, no longer linked. */
|
|
21
|
+
export interface VisioDataDeleteEdit {
|
|
22
|
+
type: 'delete-data-recordset';
|
|
23
|
+
pageId: string;
|
|
24
|
+
recordsetId: string;
|
|
25
|
+
}
|
|
26
|
+
/** Link shapes on one page to recordset rows: each column becomes a linked Shape Data row. */
|
|
27
|
+
export interface VisioDataLinkEdit {
|
|
28
|
+
type: 'link-data-rows';
|
|
29
|
+
pageId: string;
|
|
30
|
+
recordsetId: string;
|
|
31
|
+
links: {
|
|
32
|
+
shapeId: string;
|
|
33
|
+
rowId: string;
|
|
34
|
+
}[];
|
|
35
|
+
}
|
|
36
|
+
/** Unlink shapes on one page; their Shape Data stays as plain values. */
|
|
37
|
+
export interface VisioDataUnlinkEdit {
|
|
38
|
+
type: 'unlink-data-rows';
|
|
39
|
+
pageId: string;
|
|
40
|
+
recordsetId: string;
|
|
41
|
+
shapeIds: string[];
|
|
42
|
+
}
|
|
43
|
+
export type VisioDataEdit = VisioDataImportEdit | VisioDataRefreshEdit | VisioDataDeleteEdit | VisioDataLinkEdit | VisioDataUnlinkEdit;
|
|
44
|
+
export declare const isVisioDataEdit: (edit: {
|
|
45
|
+
type: string;
|
|
46
|
+
}) => edit is VisioDataEdit;
|
|
47
|
+
/** Copy and validate a data command; host properties never reach the transaction. */
|
|
48
|
+
export declare function snapshotDataEdit(edit: VisioDataEdit): VisioDataEdit;
|
|
49
|
+
//# sourceMappingURL=edit-data-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-data-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-data-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,eAAe,EAEpB,MAAM,mBAAmB,CAAC;AAG3B,+EAA+E;AAC/E,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,4FAA4F;IAC5F,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;CACjB;AACD,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;CACjB;AACD,iFAAiF;AACjF,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACpB;AACD,8FAA8F;AAC9F,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC5C;AACD,yEAAyE;AACzE,MAAM,WAAW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