ooxml-core 1.2.1 → 1.4.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/README.md +2 -0
- package/dist/{PptxHandler-VQQS4VS6.mjs → PptxHandler-ZPJNHEZZ.mjs} +2 -2
- package/dist/automation/index.cjs +7972 -5580
- package/dist/automation/index.mjs +7972 -5580
- package/dist/{chunk-5U27IVB7.mjs → chunk-BB55ASTX.mjs} +3 -3
- package/dist/{chunk-V2BIGIH4.mjs → chunk-H4TPDZV4.mjs} +1 -1
- package/dist/{chunk-5VLNF4OX.mjs → chunk-IVDC75E5.mjs} +1 -1
- package/dist/{chunk-XBNSBDNT.mjs → chunk-QPQDLSJQ.mjs} +1 -1
- package/dist/{chunk-XSFHGZFH.mjs → chunk-XGLKW3JJ.mjs} +5 -3
- package/dist/pptx/automation/index.cjs +4 -2
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/cli/index.cjs +4 -2
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/index.cjs +4 -2
- package/dist/pptx/index.mjs +5 -5
- package/dist/teams/index.cjs +91 -33
- package/dist/teams/index.mjs +91 -33
- package/dist/visio/clipboard-resources.d.ts +11 -0
- package/dist/visio/clipboard-resources.d.ts.map +1 -0
- package/dist/visio/clipboard-types.d.ts +26 -0
- package/dist/visio/clipboard-types.d.ts.map +1 -0
- package/dist/visio/clipboard-xml.d.ts +8 -0
- package/dist/visio/clipboard-xml.d.ts.map +1 -0
- package/dist/visio/clipboard.d.ts +7 -0
- package/dist/visio/clipboard.d.ts.map +1 -0
- package/dist/visio/create-document.d.ts +8 -0
- package/dist/visio/create-document.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +29 -3
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-delete.d.ts +9 -0
- package/dist/visio/edit-delete.d.ts.map +1 -0
- package/dist/visio/edit-duplicate-commands.d.ts +14 -0
- package/dist/visio/edit-duplicate-commands.d.ts.map +1 -0
- package/dist/visio/edit-duplicate-scope.d.ts +4 -0
- package/dist/visio/edit-duplicate-scope.d.ts.map +1 -0
- package/dist/visio/edit-duplicate.d.ts +10 -0
- package/dist/visio/edit-duplicate.d.ts.map +1 -0
- package/dist/visio/edit-formatting-cell-admission.d.ts +3 -0
- package/dist/visio/edit-formatting-cell-admission.d.ts.map +1 -0
- package/dist/visio/edit-formatting-commands.d.ts +46 -0
- package/dist/visio/edit-formatting-commands.d.ts.map +1 -0
- package/dist/visio/edit-formatting-font.d.ts +6 -0
- package/dist/visio/edit-formatting-font.d.ts.map +1 -0
- package/dist/visio/edit-formatting-paint-scope.d.ts +6 -0
- package/dist/visio/edit-formatting-paint-scope.d.ts.map +1 -0
- package/dist/visio/edit-formatting-paint.d.ts +6 -0
- package/dist/visio/edit-formatting-paint.d.ts.map +1 -0
- package/dist/visio/edit-formatting-rows.d.ts +14 -0
- package/dist/visio/edit-formatting-rows.d.ts.map +1 -0
- package/dist/visio/edit-formatting-scope.d.ts +6 -0
- package/dist/visio/edit-formatting-scope.d.ts.map +1 -0
- package/dist/visio/edit-formatting-text.d.ts +8 -0
- package/dist/visio/edit-formatting-text.d.ts.map +1 -0
- package/dist/visio/edit-formatting.d.ts +12 -0
- package/dist/visio/edit-formatting.d.ts.map +1 -0
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-page-size.d.ts +5 -0
- package/dist/visio/edit-page-size.d.ts.map +1 -0
- package/dist/visio/edit-pages.d.ts.map +1 -1
- package/dist/visio/edit-paste-commands.d.ts +15 -0
- package/dist/visio/edit-paste-commands.d.ts.map +1 -0
- package/dist/visio/edit-paste.d.ts +5 -0
- package/dist/visio/edit-paste.d.ts.map +1 -0
- package/dist/visio/edit-recalculate.d.ts +3 -1
- package/dist/visio/edit-recalculate.d.ts.map +1 -1
- package/dist/visio/edit-resize-anchor.d.ts +8 -0
- package/dist/visio/edit-resize-anchor.d.ts.map +1 -0
- package/dist/visio/edit-scope.d.ts.map +1 -1
- package/dist/visio/edit-shape-create.d.ts +1 -1
- package/dist/visio/edit-shape-create.d.ts.map +1 -1
- package/dist/visio/edit-shape-order.d.ts +7 -0
- package/dist/visio/edit-shape-order.d.ts.map +1 -0
- package/dist/visio/edit-style-admission.d.ts +17 -0
- package/dist/visio/edit-style-admission.d.ts.map +1 -0
- package/dist/visio/edit-text-range-commands.d.ts +21 -0
- package/dist/visio/edit-text-range-commands.d.ts.map +1 -0
- package/dist/visio/edit-text-range-plan.d.ts +7 -0
- package/dist/visio/edit-text-range-plan.d.ts.map +1 -0
- package/dist/visio/edit-text-ranges.d.ts +4 -0
- package/dist/visio/edit-text-ranges.d.ts.map +1 -0
- package/dist/visio/edit-text-scope.d.ts +7 -0
- package/dist/visio/edit-text-scope.d.ts.map +1 -0
- package/dist/visio/edit-text-target.d.ts +3 -0
- package/dist/visio/edit-text-target.d.ts.map +1 -0
- package/dist/visio/edit-text.d.ts +1 -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/index.cjs +3612 -1076
- package/dist/visio/index.d.ts +3 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +3608 -1078
- package/dist/visio/line-pattern.d.ts +1 -1
- package/dist/visio/line-pattern.d.ts.map +1 -1
- package/dist/visio/line-style.d.ts.map +1 -1
- package/dist/visio/model.d.ts +26 -3
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/plain-text.d.ts +5 -0
- package/dist/visio/plain-text.d.ts.map +1 -0
- package/dist/visio/resize-anchor.d.ts +27 -0
- package/dist/visio/resize-anchor.d.ts.map +1 -0
- package/dist/visio/source-paint.d.ts +5 -0
- package/dist/visio/source-paint.d.ts.map +1 -0
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/theme-root.d.ts.map +1 -1
- package/dist/visio/ui/contract.d.ts +10 -6
- package/dist/visio/ui/contract.d.ts.map +1 -1
- package/dist/visio/ui/draw-plan.d.ts +32 -0
- package/dist/visio/ui/draw-plan.d.ts.map +1 -0
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/formatting.d.ts +28 -0
- package/dist/visio/ui/formatting.d.ts.map +1 -0
- package/dist/visio/ui/index.cjs +1429 -16
- package/dist/visio/ui/index.d.ts +16 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +1380 -17
- package/dist/visio/ui/line-dash.d.ts +4 -0
- package/dist/visio/ui/line-dash.d.ts.map +1 -0
- package/dist/visio/ui/marquee.d.ts +15 -0
- package/dist/visio/ui/marquee.d.ts.map +1 -0
- package/dist/visio/ui/page-edit.d.ts.map +1 -1
- package/dist/visio/ui/page-size.d.ts +31 -0
- package/dist/visio/ui/page-size.d.ts.map +1 -0
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/selection.d.ts +12 -0
- package/dist/visio/ui/selection.d.ts.map +1 -0
- package/dist/visio/ui/shape-arrange.d.ts +17 -0
- package/dist/visio/ui/shape-arrange.d.ts.map +1 -0
- package/dist/visio/ui/shape-clipboard.d.ts +10 -0
- package/dist/visio/ui/shape-clipboard.d.ts.map +1 -0
- package/dist/visio/ui/shape-duplicate.d.ts +5 -0
- package/dist/visio/ui/shape-duplicate.d.ts.map +1 -0
- package/dist/visio/ui/shape-formatting.d.ts +14 -0
- package/dist/visio/ui/shape-formatting.d.ts.map +1 -0
- package/dist/visio/ui/shape-move.d.ts +14 -0
- package/dist/visio/ui/shape-move.d.ts.map +1 -0
- package/dist/visio/ui/shape-order.d.ts +4 -0
- package/dist/visio/ui/shape-order.d.ts.map +1 -0
- package/dist/visio/ui/shape-resize.d.ts +61 -0
- package/dist/visio/ui/shape-resize.d.ts.map +1 -0
- package/dist/visio/ui/size-position.d.ts +19 -0
- package/dist/visio/ui/size-position.d.ts.map +1 -0
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/svg-stroke.d.ts +8 -0
- package/dist/visio/ui/svg-stroke.d.ts.map +1 -0
- package/dist/visio/ui/text-replace-selection.d.ts +9 -0
- package/dist/visio/ui/text-replace-selection.d.ts.map +1 -0
- package/dist/visio/ui/text-replace-snapshot.d.ts +14 -0
- package/dist/visio/ui/text-replace-snapshot.d.ts.map +1 -0
- package/dist/visio/ui/text-replace-types.d.ts +52 -0
- package/dist/visio/ui/text-replace-types.d.ts.map +1 -0
- package/dist/visio/ui/text-replace.d.ts +17 -0
- package/dist/visio/ui/text-replace.d.ts.map +1 -0
- package/dist/visio/xml-validation.d.ts.map +1 -1
- package/dist/xlsx/collab/codec.d.ts +2 -0
- package/dist/xlsx/collab/codec.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +5 -0
- package/dist/xlsx/collab/index.mjs +5 -0
- package/dist/xlsx/display-text.d.ts +4 -0
- package/dist/xlsx/display-text.d.ts.map +1 -0
- package/dist/xlsx/edit/cell-values.d.ts +4 -3
- package/dist/xlsx/edit/cell-values.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard.d.ts.map +1 -1
- package/dist/xlsx/edit/context.d.ts +7 -5
- package/dist/xlsx/edit/context.d.ts.map +1 -1
- package/dist/xlsx/edit/deps.d.ts +1 -1
- package/dist/xlsx/edit/deps.d.ts.map +1 -1
- package/dist/xlsx/edit/dimensions.d.ts.map +1 -1
- package/dist/xlsx/edit/fill.d.ts.map +1 -1
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/find.d.ts.map +1 -1
- package/dist/xlsx/edit/paste-selection.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-formulas.d.ts +10 -4
- package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -1
- package/dist/xlsx/edit/table-header-names.d.ts +3 -0
- package/dist/xlsx/edit/table-header-names.d.ts.map +1 -0
- package/dist/xlsx/edit/tables.d.ts +1 -2
- package/dist/xlsx/edit/tables.d.ts.map +1 -1
- package/dist/xlsx/filter-rows.d.ts +8 -0
- package/dist/xlsx/filter-rows.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/math-sum.d.ts.map +1 -1
- package/dist/xlsx/formula/lexemes.d.ts.map +1 -1
- package/dist/xlsx/formula/table-refs.d.ts +2 -0
- package/dist/xlsx/formula/table-refs.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +463 -332
- package/dist/xlsx/index.mjs +463 -332
- package/dist/xlsx/load/index.cjs +7628 -7583
- package/dist/xlsx/load/index.mjs +7628 -7583
- package/dist/xlsx/model.d.ts +4 -0
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/load.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +461 -332
- package/dist/xlsx/ui/index.mjs +461 -332
- package/dist/xlsx/ui/locales/de/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/shell.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VisioStyle } from '../model.js';
|
|
2
|
+
/** Native dash lengths in physical page inches, including fixed square-cap dots. */
|
|
3
|
+
export declare function visioLineDashLengths(style: Pick<VisioStyle, 'lineDash' | 'lineWidth' | 'lineDashDotLength'>): number[] | undefined;
|
|
4
|
+
//# sourceMappingURL=line-dash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-dash.d.ts","sourceRoot":"","sources":["../../../visio/ui/line-dash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,oFAAoF;AACpF,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,WAAW,GAAG,mBAAmB,CAAC,GACrE,MAAM,EAAE,GAAG,SAAS,CAItB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { VisioPage, VisioShape } from '../model.js';
|
|
2
|
+
import type { VisioShapeSelection } from './contract.js';
|
|
3
|
+
import type { VisioPagePoint } from './shape-move.js';
|
|
4
|
+
export interface VisioPageBox {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function visioMarqueeBox(start: VisioPagePoint, end: VisioPagePoint): VisioPageBox | undefined;
|
|
11
|
+
/** A transformed rectangular selection extent in physical, downward-positive page inches. */
|
|
12
|
+
export declare function visioShapePageBox(page: VisioPage, shape: VisioShape): VisioPageBox | undefined;
|
|
13
|
+
/** Full enclosure of visible current-page top-level shapes; background sources are excluded. */
|
|
14
|
+
export declare function visioMarqueeSelection(page: VisioPage, box: VisioPageBox, visible?: WeakMap<VisioShape, boolean>): VisioShapeSelection[];
|
|
15
|
+
//# sourceMappingURL=marquee.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marquee.d.ts","sourceRoot":"","sources":["../../../visio/ui/marquee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,YAAY;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AACD,wBAAgB,eAAe,CAC9B,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,cAAc,GACjB,YAAY,GAAG,SAAS,CAS1B;AACD,6FAA6F;AAC7F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,GAAG,YAAY,GAAG,SAAS,CAsB9F;AACD,gGAAgG;AAChG,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,YAAY,EACjB,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,GACpC,mBAAmB,EAAE,CAmBvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-edit.d.ts","sourceRoot":"","sources":["../../../visio/ui/page-edit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzD,qFAAqF;AACrF,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,aAAa,EACvB,WAAW,EAAE,MAAM,GACjB,eAAe,CAYjB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"page-edit.d.ts","sourceRoot":"","sources":["../../../visio/ui/page-edit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzD,qFAAqF;AACrF,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,aAAa,EACvB,WAAW,EAAE,MAAM,GACjB,eAAe,CAYjB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,CA0ClF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { VisioPageSizeEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
export type VisioPageOrientation = 'portrait' | 'landscape';
|
|
4
|
+
export interface VisioPageSizeState {
|
|
5
|
+
readonly pageId: string;
|
|
6
|
+
/** Physical page inches, independent of the drawing scale and printer paper. */
|
|
7
|
+
readonly width: number;
|
|
8
|
+
readonly height: number;
|
|
9
|
+
readonly orientation: VisioPageOrientation | 'square';
|
|
10
|
+
readonly drawingSizeType?: number;
|
|
11
|
+
readonly drawingResizeType?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const VISIO_PAGE_SIZE_PRESETS: readonly (Readonly<{
|
|
14
|
+
id: "letter";
|
|
15
|
+
label: "Letter";
|
|
16
|
+
width: 8.5;
|
|
17
|
+
height: 11;
|
|
18
|
+
}> | Readonly<{
|
|
19
|
+
id: "a4";
|
|
20
|
+
label: "A4";
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
}>)[];
|
|
24
|
+
/** Coarse scene state. Source formulas and mode protection remain authoritative. */
|
|
25
|
+
export declare function visioPageSizeState(page: VisioPage): VisioPageSizeState | undefined;
|
|
26
|
+
/** Set fixed custom drawing dimensions. An absent mode never becomes an assumed no-op. */
|
|
27
|
+
export declare function visioPageSizeCommand(page: VisioPage, width: number, height: number): VisioPageSizeEdit[] | undefined;
|
|
28
|
+
export declare function visioPageOrientationCommand(page: VisioPage, orientation: VisioPageOrientation): VisioPageSizeEdit[] | undefined;
|
|
29
|
+
/** Viewer policy: a preset preserves the current landscape orientation; square uses portrait. */
|
|
30
|
+
export declare function visioPageSizePresetCommand(page: VisioPage, id: string): VisioPageSizeEdit[] | undefined;
|
|
31
|
+
//# sourceMappingURL=page-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-size.d.ts","sourceRoot":"","sources":["../../../visio/ui/page-size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAk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C,KAAK,EAAE,aAAa,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"scene-validation.d.ts","sourceRoot":"","sources":["../../../visio/ui/scene-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAGN,KAAK,aAAa,EAGlB,MAAM,UAAU,CAAC;AAIlB,eAAO,MAAM,eAAe,QAAmB,CAAC;AAUhD,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAiUjE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { VisioDocument, VisioShape } from '../model.js';
|
|
2
|
+
import type { VisioShapeSelection } from './contract.js';
|
|
3
|
+
export declare const EMPTY_SELECTION: readonly VisioShapeSelection[];
|
|
4
|
+
export declare const selectionKey: (shape: Pick<VisioShapeSelection, 'id' | 'pageId'>, pageId: string) => string;
|
|
5
|
+
/** Omitted source page means the displayed page; background identities remain distinct. */
|
|
6
|
+
export declare function visioSelectionIsOnPage(selection: Pick<VisioShapeSelection, 'pageId'> | null | undefined, pageId: string): boolean;
|
|
7
|
+
export declare function sameSelection(left: readonly VisioShapeSelection[], right: readonly VisioShapeSelection[]): boolean;
|
|
8
|
+
/** Snapshot displayed targets once, and keep selected groups from also selecting descendants. */
|
|
9
|
+
export declare function snapshotSelection(model: VisioDocument | null, pageIndex: number, input: readonly VisioShapeSelection[], visible: WeakMap<VisioShape, boolean>): readonly VisioShapeSelection[];
|
|
10
|
+
/** Rendering eligibility shared by selection and SVG containers; no format interpretation. */
|
|
11
|
+
export declare function hasVisibleShapeContent(shape: VisioShape, visible: WeakMap<VisioShape, boolean> | undefined, cache?: WeakMap<VisioShape, boolean>): boolean;
|
|
12
|
+
//# sourceMappingURL=selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../visio/ui/selection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,eAAO,MAAM,eAAe,EAAE,SAAS,mBAAmB,EAAsB,CAAC;AACjF,eAAO,MAAM,YAAY,UAAW,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,QAAQ,CAAC,UAAU,MAAM,WAC3C,CAAC;AAEpD,2FAA2F;AAC3F,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,EACjE,MAAM,EAAE,MAAM,GACZ,OAAO,CAET;AACD,wBAAgB,aAAa,CAC5B,IAAI,EAAE,SAAS,mBAAmB,EAAE,EACpC,KAAK,EAAE,SAAS,mBAAmB,EAAE,GACnC,OAAO,CAQT;AAED,iGAAiG;AACjG,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,aAAa,GAAG,IAAI,EAC3B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,SAAS,mBAAmB,EAAE,EACrC,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,GACnC,SAAS,mBAAmB,EAAE,CA8ChC;AAED,8FAA8F;AAC9F,wBAAgB,sBAAsB,CACrC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,SAAS,EACjD,KAAK,+BAAqC,GACxC,OAAO,CAeT"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
export type VisioArrangement = {
|
|
4
|
+
type: 'align';
|
|
5
|
+
edge: 'left' | 'center' | 'right' | 'top' | 'middle' | 'bottom';
|
|
6
|
+
} | {
|
|
7
|
+
type: 'distribute';
|
|
8
|
+
axis: 'horizontal' | 'vertical';
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Align to the first selected primary shape, or distribute equal edge gaps without guide glue.
|
|
12
|
+
* https://learn.microsoft.com/en-us/office/vba/api/visio.selection.align
|
|
13
|
+
* https://learn.microsoft.com/en-us/office/vba/api/visio.selection.distribute
|
|
14
|
+
* Coarse candidates only: source locks, glue, formulas and dependencies remain authoritative.
|
|
15
|
+
*/
|
|
16
|
+
export declare function visioArrangeCommands(page: VisioPage, shapeIds: readonly string[], action: VisioArrangement): VisioEdit[] | undefined;
|
|
17
|
+
//# sourceMappingURL=shape-arrange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-arrange.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-arrange.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AAItD,MAAM,MAAM,gBAAgB,GACzB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAAE,GAClF;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAAA;CAAE,CAAC;AAsD3D;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,MAAM,EAAE,gBAAgB,GACtB,SAAS,EAAE,GAAG,SAAS,CAsEzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VisioPage, VisioShape } from '../model.js';
|
|
2
|
+
import type { VisioClipboardSnapshot } from '../clipboard-types.js';
|
|
3
|
+
import type { VisioPasteShapesEdit } from '../edit-paste-commands.js';
|
|
4
|
+
/** Coarse scene eligibility only; capture validates source locks, formulas and resources. */
|
|
5
|
+
export declare function visioClipboardShape(page: VisioPage, shapeId: string): VisioShape | undefined;
|
|
6
|
+
export declare function visioPasteCommand(page: VisioPage, value: VisioClipboardSnapshot, offset?: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
}): VisioPasteShapesEdit | undefined;
|
|
10
|
+
//# sourceMappingURL=shape-clipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-clipboard.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAInE,6FAA6F;AAC7F,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAa5F;AACD,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,sBAAsB,EAC7B,MAAM,GAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAA0B,GACtD,oBAAoB,GAAG,SAAS,CAsBlC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { VisioPage } from '../model.js';
|
|
2
|
+
import type { VisioDuplicateShapesEdit } from '../edit-duplicate-commands.js';
|
|
3
|
+
/** Allocate against the complete page tree; source guards remain authoritative. */
|
|
4
|
+
export declare function visioDuplicateCommand(page: VisioPage, shapeIds: readonly string[]): VisioDuplicateShapesEdit | undefined;
|
|
5
|
+
//# sourceMappingURL=shape-duplicate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-duplicate.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-duplicate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAI3E,mFAAmF;AACnF,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,GACzB,wBAAwB,GAAG,SAAS,CAuCtC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VisioShape } from '../model.js';
|
|
2
|
+
export interface VisioShapeFormattingState {
|
|
3
|
+
linePattern: number | undefined;
|
|
4
|
+
fillPatternIndex: number | undefined;
|
|
5
|
+
fillBackgroundColor: string | undefined;
|
|
6
|
+
fillForegroundTransparency: number | undefined;
|
|
7
|
+
fillBackgroundTransparency: number | undefined;
|
|
8
|
+
/** Mixed foreground/background values are undefined, including within one shape. */
|
|
9
|
+
fillTransparency: number | undefined;
|
|
10
|
+
lineTransparency: number | undefined;
|
|
11
|
+
}
|
|
12
|
+
/** Source paint values stay independent of gradient and bitmap rendering multipliers. */
|
|
13
|
+
export declare function visioShapeFormattingState(shapes: readonly VisioShape[]): VisioShapeFormattingState;
|
|
14
|
+
//# sourceMappingURL=shape-formatting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-formatting.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,yBAAyB;IACzC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,0BAA0B,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,0BAA0B,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,oFAAoF;IACpF,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AACD,yFAAyF;AACzF,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,SAAS,UAAU,EAAE,GAC3B,yBAAyB,CA8B3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioMatrix, VisioPage, VisioShape } from '../model.js';
|
|
3
|
+
export interface VisioPagePoint {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
/** Source admission remains authoritative for locks, formulas, geometry and dependencies. */
|
|
8
|
+
export declare function visioMovementShape(page: VisioPage, id: string): VisioShape | undefined;
|
|
9
|
+
/** Client points have been converted to physical SVG page inches; commands use upward y. */
|
|
10
|
+
export declare function visioPageDragDelta(start: VisioPagePoint, end: VisioPagePoint): VisioPagePoint;
|
|
11
|
+
export declare function visioMovePreviewTransform(shape: VisioShape, delta: VisioPagePoint): VisioMatrix | undefined;
|
|
12
|
+
/** One common translation over the entire eligible selection; callers commit it atomically. */
|
|
13
|
+
export declare function visioMoveCommands(page: VisioPage, ids: readonly string[], delta: VisioPagePoint): VisioEdit[] | undefined;
|
|
14
|
+
//# sourceMappingURL=shape-move.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-move.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-move.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAInE,MAAM,WAAW,cAAc;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AACD,6FAA6F;AAC7F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAoBtF;AACD,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,GAAG,cAAc,CAE7F;AACD,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,cAAc,GACnB,WAAW,GAAG,SAAS,CAKzB;AACD,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,SAAS,MAAM,EAAE,EACtB,KAAK,EAAE,cAAc,GACnB,SAAS,EAAE,GAAG,SAAS,CA6BzB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VisioPage, VisioShape } from '../model.js';
|
|
2
|
+
/** Coarse scene admission; source display bands and protection are checked by editVsdx. */
|
|
3
|
+
export declare function visioOrderingShape(page: VisioPage, shapeId: string): VisioShape | undefined;
|
|
4
|
+
//# sourceMappingURL=shape-order.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-order.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-order.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtD,2FAA2F;AAC3F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAc3F"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { VisioPage, VisioShape, VisioMatrix } from '../model.js';
|
|
2
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
3
|
+
import { type VisioResizeAnchor } from '../resize-anchor.js';
|
|
4
|
+
import { type VisioPagePoint } from './shape-move.js';
|
|
5
|
+
export declare const VISIO_RESIZE_HANDLES: readonly [{
|
|
6
|
+
readonly id: 'sw';
|
|
7
|
+
readonly x: 0;
|
|
8
|
+
readonly y: 0;
|
|
9
|
+
}, {
|
|
10
|
+
readonly id: 's';
|
|
11
|
+
readonly x: 0.5;
|
|
12
|
+
readonly y: 0;
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: 'se';
|
|
15
|
+
readonly x: 1;
|
|
16
|
+
readonly y: 0;
|
|
17
|
+
}, {
|
|
18
|
+
readonly id: 'e';
|
|
19
|
+
readonly x: 1;
|
|
20
|
+
readonly y: 0.5;
|
|
21
|
+
}, {
|
|
22
|
+
readonly id: 'ne';
|
|
23
|
+
readonly x: 1;
|
|
24
|
+
readonly y: 1;
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: 'n';
|
|
27
|
+
readonly x: 0.5;
|
|
28
|
+
readonly y: 1;
|
|
29
|
+
}, {
|
|
30
|
+
readonly id: 'nw';
|
|
31
|
+
readonly x: 0;
|
|
32
|
+
readonly y: 1;
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: 'w';
|
|
35
|
+
readonly x: 0;
|
|
36
|
+
readonly y: 0.5;
|
|
37
|
+
}];
|
|
38
|
+
export type VisioResizeHandle = (typeof VISIO_RESIZE_HANDLES)[number]['id'];
|
|
39
|
+
export interface VisioResizeFrame {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
transform: VisioMatrix;
|
|
43
|
+
pinX: number;
|
|
44
|
+
pinY: number;
|
|
45
|
+
}
|
|
46
|
+
/** Only orthonormal ordinary local shapes have a scene-proven rectangular resize frame. */
|
|
47
|
+
export declare function visioResizeShape(page: VisioPage, id: string): VisioShape | undefined;
|
|
48
|
+
export declare function visioResizeFrame(shape: VisioShape, size: {
|
|
49
|
+
width: number;
|
|
50
|
+
height: number;
|
|
51
|
+
}, anchor: VisioResizeAnchor): VisioResizeFrame | undefined;
|
|
52
|
+
/** Drag in physical page coordinates along the saved rotated/reflected local axes.
|
|
53
|
+
* Crossing the opposite handle clamps at 1/16 physical inch; it does not silently change flips.
|
|
54
|
+
*/
|
|
55
|
+
export declare function visioResizeDrag(page: VisioPage, id: string, handle: VisioResizeHandle, start: VisioPagePoint, end: VisioPagePoint): {
|
|
56
|
+
frame: VisioResizeFrame;
|
|
57
|
+
command: Extract<VisioEdit, {
|
|
58
|
+
type: 'resize-shape';
|
|
59
|
+
}>;
|
|
60
|
+
} | undefined;
|
|
61
|
+
//# sourceMappingURL=shape-resize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-resize.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-resize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAA0C,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG3F,eAAO,MAAM,oBAAoB;aAC9B,EAAE,EAAE,IAAI;aAAE,CAAC,EAAE,CAAC;aAAE,CAAC,EAAE,CAAC;;aACpB,EAAE,EAAE,GAAG;aAAE,CAAC,EAAE,GAAG;aAAE,CAAC,EAAE,CAAC;;aACrB,EAAE,EAAE,IAAI;aAAE,CAAC,EAAE,CAAC;aAAE,CAAC,EAAE,CAAC;;aACpB,EAAE,EAAE,GAAG;aAAE,CAAC,EAAE,CAAC;aAAE,CAAC,EAAE,GAAG;;aACrB,EAAE,EAAE,IAAI;aAAE,CAAC,EAAE,CAAC;aAAE,CAAC,EAAE,CAAC;;aACpB,EAAE,EAAE,GAAG;aAAE,CAAC,EAAE,GAAG;aAAE,CAAC,EAAE,CAAC;;aACrB,EAAE,EAAE,IAAI;aAAE,CAAC,EAAE,CAAC;aAAE,CAAC,EAAE,CAAC;;aACpB,EAAE,EAAE,GAAG;aAAE,CAAC,EAAE,CAAC;aAAE,CAAC,EAAE,GAAG;EACd,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAC5E,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,WAAW,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AACD,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAMpF;AACD,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACvC,MAAM,EAAE,iBAAiB,GACvB,gBAAgB,GAAG,SAAS,CAgB9B;AACD;;GAEG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,cAAc,GACjB;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC,SAAS,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,CAAC,CAAA;CAAE,GAAG,SAAS,CAuChG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
export type VisioSizePositionField = 'x' | 'y' | 'width' | 'height' | 'angle';
|
|
4
|
+
export interface VisioSizePositionState {
|
|
5
|
+
readonly pageId: string;
|
|
6
|
+
readonly shapeId: string;
|
|
7
|
+
/** Drawing inches, measured from the bottom-left page origin. */
|
|
8
|
+
readonly x: number;
|
|
9
|
+
readonly y: number;
|
|
10
|
+
readonly width: number;
|
|
11
|
+
readonly height: number;
|
|
12
|
+
/** Degrees, positive counterclockwise. */
|
|
13
|
+
readonly angle: number;
|
|
14
|
+
}
|
|
15
|
+
/** Coarse scene eligibility only. Source formulas, locks and dependencies remain authoritative. */
|
|
16
|
+
export declare function visioSizePositionState(page: VisioPage, id: string): VisioSizePositionState | undefined;
|
|
17
|
+
/** Numeric pane input already uses drawing inches/degrees. No-op input keeps formulas untouched. */
|
|
18
|
+
export declare function visioSizePositionCommand(page: VisioPage, id: string, field: VisioSizePositionField, value: number): VisioEdit[] | undefined;
|
|
19
|
+
//# sourceMappingURL=size-position.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size-position.d.ts","sourceRoot":"","sources":["../../../visio/ui/size-position.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,MAAM,MAAM,sBAAsB,GAAG,GAAG,GAAG,GAAG,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC9E,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,iEAAiE;IACjE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,0CAA0C;IAC1C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACvB;AAGD,mGAAmG;AACnG,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,MAAM,GACR,sBAAsB,GAAG,SAAS,CAoBpC;AAED,oGAAoG;AACpG,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,sBAAsB,EAC7B,KAAK,EAAE,MAAM,GACX,SAAS,EAAE,GAAG,SAAS,CA8BzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-scene.d.ts","sourceRoot":"","sources":["../../../visio/ui/snapshot-scene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAOb,MAAM,UAAU,CAAC;AAwBlB;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"snapshot-scene.d.ts","sourceRoot":"","sources":["../../../visio/ui/snapshot-scene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAOb,MAAM,UAAU,CAAC;AAwBlB;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CAyOrE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VisioStyle } from '../model.js';
|
|
2
|
+
/**
|
|
3
|
+
* Native SVG export substitutes 0.75 points for an exactly zero saved line weight.
|
|
4
|
+
* Keep this output policy separate from source values and raster/device hairlines.
|
|
5
|
+
* Nonzero weights, including weights below 0.75 points, remain literal.
|
|
6
|
+
*/
|
|
7
|
+
export declare function visioSvgStrokeStyle(style: VisioStyle): VisioStyle;
|
|
8
|
+
//# sourceMappingURL=svg-stroke.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svg-stroke.d.ts","sourceRoot":"","sources":["../../../visio/ui/svg-stroke.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAEjE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { VisioDocument } from '../model.js';
|
|
2
|
+
import type { VisioShapeSelection } from './contract.js';
|
|
3
|
+
import { type VisioTextOccurrence } from './text-replace-types.js';
|
|
4
|
+
/** Own a bounded navigation target. The controller still applies visibility and intent guards. */
|
|
5
|
+
export declare function visioTextOccurrenceSelection(model: VisioDocument, occurrence: VisioTextOccurrence): {
|
|
6
|
+
readonly pageIndex: number;
|
|
7
|
+
readonly selection: VisioShapeSelection;
|
|
8
|
+
} | undefined;
|
|
9
|
+
//# sourceMappingURL=text-replace-selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-replace-selection.d.ts","sourceRoot":"","sources":["../../../visio/ui/text-replace-selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,kGAAkG;AAClG,wBAAgB,4BAA4B,CAC3C,KAAK,EAAE,aAAa,EACpB,UAAU,EAAE,mBAAmB,GAC7B;IAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAA;CAAE,GAAG,SAAS,CAkBrF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VisioDocument } from '../model.js';
|
|
2
|
+
import { type VisioTextReplaceScope } from './text-replace-types.js';
|
|
3
|
+
export interface ReplaceEntry {
|
|
4
|
+
pageId: string;
|
|
5
|
+
shapeId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
pageIndex: number;
|
|
8
|
+
text: string;
|
|
9
|
+
end: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function snapshotReplaceScope(input: VisioTextReplaceScope): VisioTextReplaceScope;
|
|
12
|
+
/** Own only text and identities; no geometry, previews, host iterators or mutable shape records. */
|
|
13
|
+
export declare function replaceEntries(model: VisioDocument, scope: VisioTextReplaceScope, requirePage?: boolean): ReplaceEntry[];
|
|
14
|
+
//# sourceMappingURL=text-replace-snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-replace-snapshot.d.ts","sourceRoot":"","sources":["../../../visio/ui/text-replace-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,UAAU,CAAC;AAC1D,OAAO,EAKN,KAAK,qBAAqB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,YAAY;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACZ;AACD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,qBAAqB,GAAG,qBAAqB,CAgCxF;AAED,oGAAoG;AACpG,wBAAgB,cAAc,CAC7B,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,qBAAqB,EAC5B,WAAW,UAAO,GAChB,YAAY,EAAE,CAsEhB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { VisioTextEdit, VisioTextRange, VisioTextRangesEdit } from '../edit-commands.js';
|
|
2
|
+
export type VisioTextReplaceEdit = VisioTextEdit | VisioTextRangesEdit;
|
|
3
|
+
export type VisioTextReplacePlanEdit = Readonly<VisioTextEdit> | (Readonly<Omit<VisioTextRangesEdit, 'ranges'>> & {
|
|
4
|
+
readonly ranges: readonly Readonly<VisioTextRange>[];
|
|
5
|
+
});
|
|
6
|
+
/** UTF-16 bounds; oversized inputs fail instead of producing partial replacements. */
|
|
7
|
+
export declare const VISIO_TEXT_REPLACE_LIMITS: Readonly<{
|
|
8
|
+
query: 256;
|
|
9
|
+
replacement: 32768;
|
|
10
|
+
text: 2000000;
|
|
11
|
+
names: 1000000;
|
|
12
|
+
output: 1000000;
|
|
13
|
+
matches: 10000;
|
|
14
|
+
commands: 1000;
|
|
15
|
+
shapes: 25000;
|
|
16
|
+
pages: 256;
|
|
17
|
+
depth: 64;
|
|
18
|
+
}>;
|
|
19
|
+
export interface VisioTextReplaceScope {
|
|
20
|
+
query: string;
|
|
21
|
+
/** Literal case-sensitive matching. Unicode case folding is not supported. */
|
|
22
|
+
matchCase: true;
|
|
23
|
+
scope: 'selection' | 'current-page' | 'all-pages';
|
|
24
|
+
pageId: string;
|
|
25
|
+
selection?: readonly {
|
|
26
|
+
id: string;
|
|
27
|
+
pageId?: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
30
|
+
export interface VisioTextOccurrence {
|
|
31
|
+
readonly pageId: string;
|
|
32
|
+
readonly shapeId: string;
|
|
33
|
+
/** Zero-based UTF-16 range, excluding end. */
|
|
34
|
+
readonly start: number;
|
|
35
|
+
readonly end: number;
|
|
36
|
+
}
|
|
37
|
+
export interface VisioTextReplaceRequest extends VisioTextReplaceScope {
|
|
38
|
+
replacement: string;
|
|
39
|
+
mode: 'current' | 'all';
|
|
40
|
+
/** Omitted selects the first occurrence. Supplied ranges must still match exactly. */
|
|
41
|
+
current?: VisioTextOccurrence;
|
|
42
|
+
}
|
|
43
|
+
export interface VisioTextReplacePlan {
|
|
44
|
+
readonly occurrences: readonly VisioTextOccurrence[];
|
|
45
|
+
readonly replacementCount: number;
|
|
46
|
+
readonly edits: readonly VisioTextReplacePlanEdit[];
|
|
47
|
+
readonly nextOccurrence: VisioTextOccurrence | undefined;
|
|
48
|
+
}
|
|
49
|
+
export declare const textReplaceError: (message: string) => never;
|
|
50
|
+
export declare function replaceString(value: unknown, maximum: number, label: string): string;
|
|
51
|
+
export declare function replaceIdentity(value: unknown): string;
|
|
52
|
+
//# sourceMappingURL=text-replace-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-replace-types.d.ts","sourceRoot":"","sources":["../../../visio/ui/text-replace-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAA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C;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACpD,QAAQ,CAAC,cAAc,EAAE,mBAAmB,GAAG,SAAS,CAAC;CACzD;AACD,eAAO,MAAM,gBAAgB,YAAa,MAAM,KAAG,KAElD,CAAC;AACF,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpF;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAItD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VisioDocument } from '../model.js';
|
|
2
|
+
import { type VisioTextOccurrence, type VisioTextReplacePlan, type VisioTextReplaceRequest, type VisioTextReplaceScope, type VisioTextReplaceEdit } from './text-replace-types.js';
|
|
3
|
+
export type { VisioTextOccurrence, VisioTextReplacePlan, VisioTextReplaceRequest, VisioTextReplaceScope, VisioTextReplaceEdit, VisioTextReplacePlanEdit, } from './text-replace-types.js';
|
|
4
|
+
export { VISIO_TEXT_REPLACE_LIMITS } from './text-replace-types.js';
|
|
5
|
+
export { visioTextOccurrenceSelection } from './text-replace-selection.js';
|
|
6
|
+
/** Full literal occurrences, independent of the bounded preview-oriented Find index. */
|
|
7
|
+
export declare function visioTextReplaceOccurrences(model: VisioDocument, input: VisioTextReplaceScope): readonly VisioTextOccurrence[];
|
|
8
|
+
/** Next occurrence in bounded source order, wrapping after the last occurrence. */
|
|
9
|
+
export declare function visioTextReplaceFindNext(model: VisioDocument, input: VisioTextReplaceScope, current?: VisioTextOccurrence): VisioTextOccurrence | undefined;
|
|
10
|
+
/** Selected groups include their subtree, deduplicated in ordered-selection/source order.
|
|
11
|
+
* Source editing remains authoritative for rich text, fields, inheritance and protection.
|
|
12
|
+
* Callers must also bind application source revisions when applying these scene-derived plans.
|
|
13
|
+
*/
|
|
14
|
+
export declare function visioTextReplacePlan(model: VisioDocument, input: VisioTextReplaceRequest): VisioTextReplacePlan;
|
|
15
|
+
/** Reject forged and stale scene plans before returning independently owned atomic commands. */
|
|
16
|
+
export declare function visioTextReplaceCommands(model: VisioDocument, plan: VisioTextReplacePlan): VisioTextReplaceEdit[];
|
|
17
|
+
//# sourceMappingURL=text-replace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-replace.d.ts","sourceRoot":"","sources":["../../../visio/ui/text-replace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAKN,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACX,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAyBxE,wFAAwF;AACxF,wBAAgB,2BAA2B,CAC1C,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,qBAAqB,GAC1B,SAAS,mBAAmB,EAAE,CAGhC;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,mBAAmB,GAC3B,mBAAmB,GAAG,SAAS,CAOjC;AAgCD;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,uBAAuB,GAC5B,oBAAoB,CA8FtB;AAED,gGAAgG;AAChG,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,oBAAoB,GACxB,oBAAoB,EAAE,CAqBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml-validation.d.ts","sourceRoot":"","sources":["../../visio/xml-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"xml-validation.d.ts","sourceRoot":"","sources":["../../visio/xml-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAwBjE,oGAAoG;AACpG,wBAAgB,UAAU,CACzB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,MAAM,IAAI,EACjB,QAAQ,SAAU,GAChB,MAAM,CA0HR;AAuCD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,IAAI,CAyBxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../../../xlsx/collab/codec.ts"],"names":[],"mappings":"AAIA,OAAO,EACN,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,OAAO,EAIZ,MAAM,UAAU,CAAC;AAGlB,yFAAyF;AACzF,MAAM,WAAW,SAAS;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC9B,2EAA2E;IAC3E,CAAC,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC1B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC;IAClB,CAAC,CAAC,EAAE,CAAC,CAAC;IACN,CAAC,CAAC,EAAE,CAAC,CAAC;CACN;AAED,0FAA0F;AAC1F,MAAM,WAAW,SAAS;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AK,KAAK,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;AACjE,KAAK,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;AAO5D,4FAA4F;AAC5F,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,CAyB1E;AAcD,kFAAkF;AAClF,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAmCrE;AAED,4EAA4E;AAC5E,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,UAAQ,GAAG,SAAS,CAgB9F;AAUD,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,SAAS,CAcvE;AAED,wBAAgB,YAAY,CAC3B,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,GACR,UAAU,GAAG,SAAS,CAaxB"}
|
|
@@ -364,6 +364,9 @@ function encodeLine(info, keyOf, column = false) {
|
|
|
364
364
|
if (size !== void 0) entry.size = size;
|
|
365
365
|
if (custom) entry.custom = 1;
|
|
366
366
|
if (info.hidden) entry.hidden = 1;
|
|
367
|
+
if (!column && info.filteredOut !== void 0)
|
|
368
|
+
entry.filtered = info.filteredOut ? 1 : 0;
|
|
369
|
+
if (!column && info.manuallyHidden) entry.manual = 1;
|
|
367
370
|
const s = info.styleId ? keyOf(info.styleId) : void 0;
|
|
368
371
|
if (s) entry.s = s;
|
|
369
372
|
if (info.outlineLevel) entry.ol = info.outlineLevel;
|
|
@@ -385,6 +388,8 @@ function decodeRow(raw, idOf) {
|
|
|
385
388
|
if (entry.size !== void 0) info.height = entry.size;
|
|
386
389
|
if (entry.custom === 1) info.customHeight = true;
|
|
387
390
|
if (entry.hidden === 1) info.hidden = true;
|
|
391
|
+
if (entry.filtered === 0 || entry.filtered === 1) info.filteredOut = entry.filtered === 1;
|
|
392
|
+
if (entry.manual === 1) info.manuallyHidden = true;
|
|
388
393
|
const styleId = entry.s ? idOf(entry.s) : void 0;
|
|
389
394
|
if (styleId) info.styleId = styleId;
|
|
390
395
|
if (entry.ol) info.outlineLevel = entry.ol;
|
|
@@ -342,6 +342,9 @@ function encodeLine(info, keyOf, column = false) {
|
|
|
342
342
|
if (size !== void 0) entry.size = size;
|
|
343
343
|
if (custom) entry.custom = 1;
|
|
344
344
|
if (info.hidden) entry.hidden = 1;
|
|
345
|
+
if (!column && info.filteredOut !== void 0)
|
|
346
|
+
entry.filtered = info.filteredOut ? 1 : 0;
|
|
347
|
+
if (!column && info.manuallyHidden) entry.manual = 1;
|
|
345
348
|
const s = info.styleId ? keyOf(info.styleId) : void 0;
|
|
346
349
|
if (s) entry.s = s;
|
|
347
350
|
if (info.outlineLevel) entry.ol = info.outlineLevel;
|
|
@@ -363,6 +366,8 @@ function decodeRow(raw, idOf) {
|
|
|
363
366
|
if (entry.size !== void 0) info.height = entry.size;
|
|
364
367
|
if (entry.custom === 1) info.customHeight = true;
|
|
365
368
|
if (entry.hidden === 1) info.hidden = true;
|
|
369
|
+
if (entry.filtered === 0 || entry.filtered === 1) info.filteredOut = entry.filtered === 1;
|
|
370
|
+
if (entry.manual === 1) info.manuallyHidden = true;
|
|
366
371
|
const styleId = entry.s ? idOf(entry.s) : void 0;
|
|
367
372
|
if (styleId) info.styleId = styleId;
|
|
368
373
|
if (entry.ol) info.outlineLevel = entry.ol;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-text.d.ts","sourceRoot":"","sources":["../../xlsx/display-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIhE,qEAAqE;AACrE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAS9E"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { type CellAddress, type CellRange } from '../address.js';
|
|
2
2
|
import type { Cell, CellValue, Worksheet } from '../model.js';
|
|
3
3
|
import { type EditContext } from './context.js';
|
|
4
|
+
import { type CellPosition } from './deps.js';
|
|
4
5
|
import type { EditScope, SheetPart } from './history.js';
|
|
5
6
|
import type { ClearWhat } from './types.js';
|
|
6
7
|
/** Keeps a table's column name in step with its header cell. */
|
|
7
|
-
export declare function syncTableHeader(ctx: EditContext, sheet: Worksheet, row: number, col: number): void;
|
|
8
|
+
export declare function syncTableHeader(ctx: EditContext, sheet: Worksheet, row: number, col: number, formulaCells?: readonly CellPosition[]): void;
|
|
8
9
|
/**
|
|
9
|
-
* Undo scopes for writing to cells
|
|
10
|
-
*
|
|
10
|
+
* Undo scopes for writing to cells, including workbook references when a table header changes.
|
|
11
|
+
* `parts` adds other sheet properties the edit changes.
|
|
11
12
|
*/
|
|
12
13
|
export declare function writeScopes(sheet: Worksheet, index: number, range: CellRange, parts?: SheetPart[]): EditScope[];
|
|
13
14
|
/** The single undo scope of {@link writeScopes}, kept for callers that want one. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-values.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/cell-values.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"cell-values.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/cell-values.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,EAKd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,U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AAE,MAAM,GACV,IAAI,CAaN;AAED,wBAAgB,YAAY,CAC3B,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,GACd,IAAI,CAaN;AAED,wBAAgB,cAAc,CAC7B,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,EAAE,EAAE,WAAW,EACf,MAAM,EAAE,SAAS,EAAE,EAAE,GACnB,IAAI,CAmBN;AAmBD,wBAAgB,UAAU,CAAC,GAAG,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAc/F;AAED,gEAAgE;AAChE,wBAAgB,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CA6B/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,EAMd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKzC,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,WAAW,CAAC;AAMnE,OAAO,KAAK,EAAiB,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,EAMd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKzC,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,WAAW,CAAC;AAMnE,OAAO,KAAK,EAAiB,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAc7F,kGAAkG;AAClG,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,gBAAgB,CA0D3F;AAED,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAiB9E;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACtB,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,EAAE,EAAE,WAAW,EACf,OAAO,EAAE,gBAAgB,GAAG,MAAM,EAClC,OAAO,EAAE,YAAY,GACnB,SAAS,CAsJX"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type CellRange } from '../address.js';
|
|
2
2
|
import type { Cell, CellValue, Workbook, Worksheet } from '../model.js';
|
|
3
|
-
import {
|
|
3
|
+
import type { CalcEngine, CellPosition } from './deps.js';
|
|
4
|
+
export { displayText } from '../display-text.js';
|
|
4
5
|
import type { CalcHint, EditScope } from './history.js';
|
|
5
6
|
import type { WorkbookChangeKind } from './types.js';
|
|
6
7
|
export interface RunInfo {
|
|
@@ -16,8 +17,11 @@ export interface EditContext {
|
|
|
16
17
|
readonly calc: CalcEngine;
|
|
17
18
|
/** Base of new sheet names (see `EditSessionOptions.defaultSheetBase`). */
|
|
18
19
|
defaultSheetBase?: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Runs `fn` as one undoable step confined to `scopes`. A refs scope supplies formula positions
|
|
22
|
+
* captured before the edit; callers must also include any newly written formulas when rewriting.
|
|
23
|
+
*/
|
|
24
|
+
run<T>(label: string, kind: WorkbookChangeKind, scopes: EditScope[], fn: (formulaCells?: readonly CellPosition[]) => T, info?: RunInfo): T;
|
|
21
25
|
}
|
|
22
26
|
export declare function sheetAt(workbook: Workbook, index: number): Worksheet;
|
|
23
27
|
/** The style a new cell at a position inherits: the row's format, else the column's. */
|
|
@@ -34,8 +38,6 @@ export declare const isWholeRows: (range: CellRange) => boolean;
|
|
|
34
38
|
export declare function clipToUsed(sheet: Worksheet, range: CellRange): CellRange | undefined;
|
|
35
39
|
/** Visits every position of a range (clipped to the used area when the range is huge). */
|
|
36
40
|
export declare function forEachPosition(sheet: Worksheet, range: CellRange, visit: (row: number, col: number) => void): void;
|
|
37
|
-
/** The text the grid shows for a cell. */
|
|
38
|
-
export declare function displayText(workbook: Workbook, cell: Cell | undefined): string;
|
|
39
41
|
/** What the user typed for a cell, as the formula bar shows it. */
|
|
40
42
|
export declare function inputText(cell: Cell | undefined): string;
|
|
41
43
|
export declare function rawText(value: CellValue): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAkB,MAAM,YAAY,CAAC;AAE9E,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAkB,MAAM,YAAY,CAAC;AAE9E,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EA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SAAS,CAUpF;AAKD,0FAA0F;AAC1F,wBAAgB,eAAe,CAC9B,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,GACvC,IAAI,CAON;AAED,mEAAmE;AACnE,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAIxD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAKhD;AAED,0DAA0D;AAC1D,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ1E"}
|
package/dist/xlsx/edit/deps.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { dateToSerial, formatValue, isDateFormat, parseCellInput, serialToDate, } from '../numfmt/index.js';
|
|
2
2
|
export { createCalcEngine, deleteSheetInFormula, formatRefSpec, isSpilledCell, moveReferencesInFormula, renameTableInFormula, renameSheetInFormula, shiftFormula, tokenize, translateFormula, } from '../formula/index.js';
|
|
3
|
-
export type { CalcEngine, RefSpec, ShiftSpec, Token } from '../formula/index.js';
|
|
3
|
+
export type { CalcEngine, CellPosition, RefSpec, ShiftSpec, Token } from '../formula/index.js';
|
|
4
4
|
//# sourceMappingURL=deps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/deps.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,YAAY,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,gBAAgB,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/deps.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,YAAY,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,gBAAgB,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC"}
|