ooxml-core 1.36.0 → 1.37.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-2JSQ22VD.cjs +14 -0
- package/dist/{PptxHandler-XCYX5DVX.mjs → PptxHandler-3T5DTNKA.mjs} +2 -2
- package/dist/PptxHandler-7T7ZS7IK.mjs +5 -0
- package/dist/{PresentationBuilder-JBTNOIL7.mjs → PresentationBuilder-D6ZICJWN.mjs} +3 -3
- package/dist/{PresentationBuilder-HA56ZY23.cjs → PresentationBuilder-HCMXZQDK.cjs} +6 -6
- package/dist/{PresentationBuilder-IVLUEB4K.mjs → PresentationBuilder-XHKNDJMD.mjs} +2 -2
- package/dist/automation/index.cjs +21750 -19661
- package/dist/automation/index.mjs +21731 -19661
- package/dist/chart/index.cjs +1 -1
- package/dist/chart/index.mjs +1 -1
- package/dist/chart/region-map/index.cjs +1 -1
- package/dist/chart/region-map/index.mjs +1 -1
- package/dist/{chunk-UQMAPY6D.mjs → chunk-2TQJHNVU.mjs} +1 -1
- package/dist/{chunk-RI56PFGL.mjs → chunk-4YBSHQ76.mjs} +5 -5
- package/dist/{chunk-XF6ZRA2D.cjs → chunk-AFALJ5TA.cjs} +3 -3
- package/dist/{chunk-MK2IBZU6.mjs → chunk-CNIKTXAV.mjs} +1 -1
- package/dist/{chunk-PA5ADSTX.cjs → chunk-GZOYXHDF.cjs} +1269 -1269
- package/dist/{chunk-LSO5SSFX.mjs → chunk-H2Q42P6P.mjs} +1 -1
- package/dist/{chunk-EGBNPVBA.mjs → chunk-J43V3QOA.mjs} +2 -2
- package/dist/{chunk-TJXK4D4U.mjs → chunk-M2DFN3SP.mjs} +4 -4
- package/dist/{chunk-RPJHMPEL.mjs → chunk-OEM2ECAJ.mjs} +1 -1
- package/dist/{chunk-GNGL4BO7.mjs → chunk-RHQQS6LJ.mjs} +4 -4
- package/dist/{chunk-A27O7M5X.cjs → chunk-SNID2FDY.cjs} +1 -1
- package/dist/{chunk-EDRS3OSM.mjs → chunk-WNAPUUAT.mjs} +1 -0
- package/dist/color/theme-palette.d.ts +1 -1
- package/dist/color/theme-palette.d.ts.map +1 -1
- package/dist/crypto/index.cjs +1 -1
- package/dist/crypto/index.mjs +1 -1
- package/dist/diagram/index.cjs +1 -1
- package/dist/diagram/index.mjs +1 -1
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/comment-parts.d.ts +33 -0
- package/dist/docx/comment-parts.d.ts.map +1 -0
- package/dist/docx/comments.d.ts +5 -2
- package/dist/docx/comments.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +15231 -14731
- package/dist/docx/embedded.mjs +15231 -14731
- package/dist/docx/glossary.d.ts.map +1 -1
- package/dist/docx/index.cjs +10771 -10329
- package/dist/docx/index.mjs +10771 -10329
- package/dist/docx/layout/index.cjs +81 -73
- package/dist/docx/layout/index.mjs +81 -73
- package/dist/docx/load/index.cjs +16891 -16391
- package/dist/docx/load/index.mjs +16891 -16391
- package/dist/docx/page-background.d.ts +4 -3
- package/dist/docx/page-background.d.ts.map +1 -1
- package/dist/docx/paragraph-text.d.ts +5 -0
- package/dist/docx/paragraph-text.d.ts.map +1 -0
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/special-characters.d.ts +2 -0
- package/dist/docx/special-characters.d.ts.map +1 -1
- package/dist/docx/theme-color.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +135 -135
- package/dist/docx/ui/index.mjs +135 -135
- package/dist/docx/write-comment-identities.d.ts +8 -0
- package/dist/docx/write-comment-identities.d.ts.map +1 -0
- package/dist/docx/write-comment-metadata.d.ts +12 -0
- package/dist/docx/write-comment-metadata.d.ts.map +1 -0
- package/dist/docx/write-comment-text.d.ts +3 -0
- package/dist/docx/write-comment-text.d.ts.map +1 -0
- package/dist/docx/write-comments.d.ts +1 -4
- package/dist/docx/write-comments.d.ts.map +1 -1
- package/dist/drawingml/index.cjs +1 -1
- package/dist/drawingml/index.mjs +1 -1
- package/dist/index.cjs +110 -6
- package/dist/index.mjs +91 -6
- package/dist/math/index.cjs +1 -1
- package/dist/math/index.mjs +1 -1
- package/dist/opc/index.cjs +78 -3
- package/dist/opc/index.mjs +78 -3
- package/dist/opc/signature/index.d.ts +1 -0
- package/dist/opc/signature/index.d.ts.map +1 -1
- package/dist/opc/signature/package.d.ts +12 -0
- package/dist/opc/signature/package.d.ts.map +1 -0
- package/dist/pptx/automation/index.cjs +21 -4
- package/dist/pptx/automation/index.d.ts +1 -0
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +16 -6
- package/dist/pptx/automation/schemas/index.cjs +1 -0
- package/dist/pptx/automation/schemas/index.mjs +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.cjs +1 -0
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -0
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.mjs +1 -1
- package/dist/pptx/cli/index.cjs +10 -4
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +7 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/index.cjs +10 -4
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/ui/index.d.ts +1 -1
- package/dist/teams/index.cjs +812 -95
- package/dist/teams/index.mjs +811 -95
- package/dist/visio/bevel-3d.d.ts +6 -10
- package/dist/visio/bevel-3d.d.ts.map +1 -1
- package/dist/visio/bevel-shading.d.ts +72 -0
- package/dist/visio/bevel-shading.d.ts.map +1 -0
- package/dist/visio/cff-recalc.d.ts.map +1 -1
- package/dist/visio/collab/index.cjs +1 -1
- package/dist/visio/collab/index.mjs +1 -1
- package/dist/visio/data-graphic-instance.d.ts +44 -0
- package/dist/visio/data-graphic-instance.d.ts.map +1 -0
- package/dist/visio/data-graphic-masters.d.ts +38 -0
- package/dist/visio/data-graphic-masters.d.ts.map +1 -0
- package/dist/visio/data-graphic-place.d.ts +34 -0
- package/dist/visio/data-graphic-place.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +3 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-data-graphic-guard.d.ts +13 -0
- package/dist/visio/edit-data-graphic-guard.d.ts.map +1 -0
- package/dist/visio/edit-data-graphic-owner.d.ts +9 -0
- package/dist/visio/edit-data-graphic-owner.d.ts.map +1 -0
- package/dist/visio/edit-data-graphic-refresh.d.ts +14 -0
- package/dist/visio/edit-data-graphic-refresh.d.ts.map +1 -0
- package/dist/visio/edit-data-graphic.d.ts +33 -0
- package/dist/visio/edit-data-graphic.d.ts.map +1 -0
- package/dist/visio/edit-formatting-text-commands.d.ts +8 -0
- package/dist/visio/edit-formatting-text-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-text-extra.d.ts +14 -0
- package/dist/visio/edit-formatting-text-extra.d.ts.map +1 -1
- package/dist/visio/edit-formatting-text.d.ts.map +1 -1
- package/dist/visio/edit-formatting.d.ts.map +1 -1
- package/dist/visio/edit-shape-data.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-cff.d.ts +28 -0
- package/dist/visio/edit-swimlane-cff.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-clone.d.ts +8 -4
- package/dist/visio/edit-swimlane-clone.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-layout.d.ts +6 -1
- package/dist/visio/edit-swimlane-layout.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-ops.d.ts.map +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/formula-analyze.d.ts.map +1 -1
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/formula.d.ts.map +1 -1
- package/dist/visio/index.cjs +2980 -1707
- package/dist/visio/index.d.ts +2 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +2971 -1708
- package/dist/visio/master-list.d.ts +3 -3
- package/dist/visio/master-list.d.ts.map +1 -1
- package/dist/visio/model.d.ts +6 -1
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/rotation-presets.d.ts +25 -0
- package/dist/visio/rotation-presets.d.ts.map +1 -0
- package/dist/visio/shape-structure.d.ts.map +1 -1
- package/dist/visio/shapes.d.ts +2 -0
- package/dist/visio/shapes.d.ts.map +1 -1
- package/dist/visio/solid-3d.d.ts +9 -0
- package/dist/visio/solid-3d.d.ts.map +1 -1
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-config.d.ts +4 -19
- package/dist/visio/ui/data-graphic-config.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-items.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-native.d.ts +20 -0
- package/dist/visio/ui/data-graphic-native.d.ts.map +1 -0
- package/dist/visio/ui/data-graphics.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +3130 -1821
- package/dist/visio/ui/index.mjs +3128 -1822
- package/dist/visio/ui/org-chart-belt.d.ts.map +1 -1
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/swimlane.d.ts.map +1 -1
- package/dist/visio/ui/text-dialog.d.ts +12 -0
- package/dist/visio/ui/text-dialog.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +45 -2
- package/dist/xlsx/collab/index.mjs +45 -2
- package/dist/xlsx/collab/part-specs.d.ts.map +1 -1
- package/dist/xlsx/collab/sheets.d.ts +1 -0
- package/dist/xlsx/collab/sheets.d.ts.map +1 -1
- package/dist/xlsx/edit/annotations.d.ts +4 -0
- package/dist/xlsx/edit/annotations.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard-annotations.d.ts.map +1 -1
- package/dist/xlsx/edit/comment-identities.d.ts +4 -0
- package/dist/xlsx/edit/comment-identities.d.ts.map +1 -0
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/sheets.d.ts.map +1 -1
- package/dist/xlsx/edit/types.d.ts +3 -0
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/formula/functions/filterxml.d.ts +2 -0
- package/dist/xlsx/formula/functions/filterxml.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/registry.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +1007 -285
- package/dist/xlsx/index.mjs +988 -285
- package/dist/xlsx/layout/split.d.ts +3 -1
- package/dist/xlsx/layout/split.d.ts.map +1 -1
- package/dist/xlsx/load/index.cjs +809 -126
- package/dist/xlsx/load/index.mjs +790 -126
- package/dist/xlsx/model.d.ts +19 -7
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/comments.d.ts +3 -1
- package/dist/xlsx/read/comments.d.ts.map +1 -1
- package/dist/xlsx/read/conditional.d.ts +2 -2
- package/dist/xlsx/read/conditional.d.ts.map +1 -1
- package/dist/xlsx/read/data-validations.d.ts +7 -0
- package/dist/xlsx/read/data-validations.d.ts.map +1 -0
- package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/messages.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/geometry.d.ts +3 -0
- package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +952 -168
- package/dist/xlsx/ui/index.mjs +933 -169
- package/dist/xlsx/ui/selection.d.ts +3 -0
- package/dist/xlsx/ui/selection.d.ts.map +1 -1
- package/dist/xlsx/validation-extensions.d.ts +6 -0
- package/dist/xlsx/validation-extensions.d.ts.map +1 -0
- package/dist/xlsx/write/comment-ids.d.ts +14 -0
- package/dist/xlsx/write/comment-ids.d.ts.map +1 -0
- package/dist/xlsx/write/comment-mentions.d.ts +6 -0
- package/dist/xlsx/write/comment-mentions.d.ts.map +1 -0
- package/dist/xlsx/write/comment-persons.d.ts +16 -0
- package/dist/xlsx/write/comment-persons.d.ts.map +1 -0
- package/dist/xlsx/write/comments.d.ts +5 -11
- package/dist/xlsx/write/comments.d.ts.map +1 -1
- package/dist/xlsx/write/conditional.d.ts +2 -2
- package/dist/xlsx/write/conditional.d.ts.map +1 -1
- package/dist/xlsx/write/data-validations.d.ts +6 -0
- package/dist/xlsx/write/data-validations.d.ts.map +1 -0
- package/dist/xlsx/write/save.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-parts.d.ts +4 -0
- package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/write/threaded-comments.d.ts +19 -0
- package/dist/xlsx/write/threaded-comments.d.ts.map +1 -0
- package/dist/xlsx/write/worksheet.d.ts.map +1 -1
- package/dist/xml/index.cjs +31 -1
- package/dist/xml/index.d.ts +1 -0
- package/dist/xml/index.d.ts.map +1 -1
- package/dist/xml/index.mjs +11 -2
- package/dist/xml/xml.d.ts +2 -0
- package/dist/xml/xml.d.ts.map +1 -1
- package/dist/xml/xpath.d.ts +9 -0
- package/dist/xml/xpath.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/PptxHandler-5UDSMCBG.cjs +0 -14
- package/dist/PptxHandler-TTRTAQAR.mjs +0 -5
package/dist/visio/bevel-3d.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { FormattingWrite } from './edit-formatting.js';
|
|
2
2
|
import { type Cells } from './sheet.js';
|
|
3
|
+
import { VISIO_ROTATION_PRESETS } from './rotation-presets.js';
|
|
3
4
|
import type { ThemeSolid } from './theme-solid.js';
|
|
4
5
|
/** A top bevel: Visio type 1-12 and its width and height in inches. */
|
|
5
6
|
export interface VisioBevel {
|
|
6
7
|
type: number;
|
|
7
8
|
width: number;
|
|
8
9
|
height: number;
|
|
10
|
+
/** `BevelLightingType` 1-15, when the shape saves a non-default one (see `bevel-shading.ts`). */
|
|
11
|
+
lighting?: number;
|
|
12
|
+
/** `BevelMaterialType` 1-12, when saved and not the default. */
|
|
13
|
+
material?: number;
|
|
9
14
|
}
|
|
10
15
|
/** Extrusion (Format Shape > 3-D Format > Depth): `BevelDepthSize` in inches and its colour. */
|
|
11
16
|
export interface VisioExtrusion {
|
|
@@ -38,15 +43,7 @@ export declare const VISIO_BEVEL_TYPES_SHARP: readonly number[];
|
|
|
38
43
|
/** Presets are named by `none` or one of the ids above. */
|
|
39
44
|
export type VisioBevelPreset = string;
|
|
40
45
|
export declare const isVisioBevelPreset: (value: unknown) => value is VisioBevelPreset;
|
|
41
|
-
|
|
42
|
-
export declare const VISIO_ROTATION_PRESETS: readonly {
|
|
43
|
-
id: string;
|
|
44
|
-
label: string;
|
|
45
|
-
x: number;
|
|
46
|
-
y: number;
|
|
47
|
-
z: number;
|
|
48
|
-
perspective: number;
|
|
49
|
-
}[];
|
|
46
|
+
export { VISIO_ROTATION_PRESETS };
|
|
50
47
|
export type VisioRotationPreset = string;
|
|
51
48
|
export declare const isVisioRotationPreset: (value: unknown) => value is VisioRotationPreset;
|
|
52
49
|
type Add = (name: string, value: string | number, category: FormattingWrite['category'], unit?: string, formula?: string) => void;
|
|
@@ -84,5 +81,4 @@ export declare function shapeRotation3d(cells: Cells): VisioRotation3d | undefin
|
|
|
84
81
|
* right side drops, and Z turns it counter-clockwise. Perspective and extrusion are `solid-3d.ts`.
|
|
85
82
|
*/
|
|
86
83
|
export declare function visioRotation3dMatrix(rotation: Pick<VisioRotation3d, 'x' | 'y' | 'z'>): [number, number, number, number];
|
|
87
|
-
export {};
|
|
88
84
|
//# sourceMappingURL=bevel-3d.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bevel-3d.d.ts","sourceRoot":"","sources":["../../visio/bevel-3d.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,uEAAuE;AACvE,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"bevel-3d.d.ts","sourceRoot":"","sources":["../../visio/bevel-3d.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,uEAAuE;AACvE,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,iGAAiG;IACjG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,gGAAgG;AAChG,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AACD,8FAA8F;AAC9F,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd;AACD,gGAAgG;AAChG,MAAM,W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
|
|
2
|
+
* Bevel profiles, lighting and materials, DOM-free: the numbers the SVG bevel filter is built from.
|
|
3
|
+
*
|
|
4
|
+
* A bevel is drawn as a height field. Each of the 12 gallery bevels has a profile h(t): the surface
|
|
5
|
+
* height at a fraction t of the bevel width from the outer edge (t = 0) to the face (t = 1). The
|
|
6
|
+
* profiles are shaped by eye from Visio 16 raster exports of a 2 x 1.5 in rectangle with a 0.3 in
|
|
7
|
+
* bevel (a column through the top edge, a row through the left edge), so they reproduce each
|
|
8
|
+
* bevel's character (convex, concave, stepped, grooved) and not its exact curves; the corners are
|
|
9
|
+
* rounded where Visio mitres them.
|
|
10
|
+
*
|
|
11
|
+
* `BevelLightingType` (1-15, 0 and anything above 15 read as 1) is the gallery's lighting. Each
|
|
12
|
+
* entry holds the brightness of the face and of the four facets of the Angle bevel (a 45 degree
|
|
13
|
+
* chamfer) relative to the unlit fill, measured from the same exports; `bevelLight` fits one
|
|
14
|
+
* directional light and an ambient term to them. `BevelMaterialType` is read for the flat material
|
|
15
|
+
* (7, no shading) and the three powder materials (9-11, which lighten the face and soften the
|
|
16
|
+
* shading); the others, including the opaque white one (8), draw as the default material.
|
|
17
|
+
* `BevelLightingAngle` changed nothing in the export, so it is not read.
|
|
18
|
+
*/
|
|
19
|
+
export interface BevelPoint {
|
|
20
|
+
t: number;
|
|
21
|
+
h: number;
|
|
22
|
+
}
|
|
23
|
+
/** The profile of a bevel type (1-12; others read as 5, a plain chamfer) as height points. */
|
|
24
|
+
export declare function bevelProfile(type: number): BevelPoint[];
|
|
25
|
+
/** Height of a profile at `t` in 0-1 (linear between points, clamped). */
|
|
26
|
+
export declare function bevelHeightAt(points: readonly BevelPoint[], t: number): number;
|
|
27
|
+
/** The standard deviation of the blur the height field is read through, in bevel widths. */
|
|
28
|
+
export declare const BEVEL_BLUR_WIDTHS: number;
|
|
29
|
+
export interface BevelHeightTable {
|
|
30
|
+
/** Heights scaled to 0-1, for an `feComponentTransfer` table over the blurred alpha. */
|
|
31
|
+
values: number[];
|
|
32
|
+
/** Rise of the profile (highest minus lowest) in units of the bevel height. */
|
|
33
|
+
rise: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The table that turns a blurred alpha (an edge blurred with `BEVEL_BLUR_WIDTHS` bevel widths reads
|
|
37
|
+
* Phi(d / sigma) at depth d) back into the bevel's height at that depth, so a height-field lighting
|
|
38
|
+
* filter sees the profile instead of the blur's own S-curve. Depths beyond the bevel width are the
|
|
39
|
+
* face. Outside the edge (alpha at or below one half) the height is the profile's start.
|
|
40
|
+
*/
|
|
41
|
+
export declare function bevelHeightTable(type: number, entries?: number): BevelHeightTable;
|
|
42
|
+
export declare const BEVEL_LIGHTING_TYPES: number;
|
|
43
|
+
/** A lighting gallery type; 0 (the default) and out-of-range values are the first, three point. */
|
|
44
|
+
export declare const normalBevelLighting: (type: number) => number;
|
|
45
|
+
export interface BevelLight {
|
|
46
|
+
/** Direction to the light on the page (degrees clockwise from the right, y down). */
|
|
47
|
+
azimuth: number;
|
|
48
|
+
/** Height of the light above the page plane in degrees. */
|
|
49
|
+
elevation: number;
|
|
50
|
+
/** Brightness of a surface facing the light head on, against the unlit fill. */
|
|
51
|
+
diffuse: number;
|
|
52
|
+
/** Brightness of a surface the light does not reach. */
|
|
53
|
+
ambient: number;
|
|
54
|
+
/** Brightness of the flat face. */
|
|
55
|
+
face: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* One directional light and an ambient term fitted to the measured facet brightness of the Angle
|
|
59
|
+
* bevel: brightness = ambient + diffuse * (n . L), with the facet normals tilted 45 degrees.
|
|
60
|
+
*/
|
|
61
|
+
export declare function bevelLight(lighting: number): BevelLight;
|
|
62
|
+
export interface BevelMaterial {
|
|
63
|
+
/** Multiplier of the shading's departure from the face. */
|
|
64
|
+
contrast: number;
|
|
65
|
+
/** Fraction of white mixed into the face (the powder materials). */
|
|
66
|
+
lift: number;
|
|
67
|
+
}
|
|
68
|
+
/** Material 7 is flat (no shading) and 9-11 are the powder materials; every other value is plain. */
|
|
69
|
+
export declare function bevelMaterial(type: number): BevelMaterial;
|
|
70
|
+
/** Materials the renderer cannot draw (8 is an opaque white one) and that draw as the default. */
|
|
71
|
+
export declare const isUndrawnBevelMaterial: (type: number) => boolean;
|
|
72
|
+
//# sourceMappingURL=bevel-shading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bevel-shading.d.ts","sourceRoot":"","sources":["../../visio/bevel-shading.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,UAAU;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAuED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAEvD;AACD,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAO9E;AAWD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,QAAU,CAAC;AAEzC,MAAM,WAAW,gBAAgB;IAChC,wFAAwF;IACxF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;CACb;AACD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,SAAM,GAAG,gBAAgB,CAgB9E;AAoBD,eAAO,MAAM,oBAAoB,QAAqC,CAAC;AACvE,mGAAmG;AACnG,eAAO,MAAM,mBAAmB,SAAU,MAAM,KAAG,MAC4B,CAAC;AAEhF,MAAM,WAAW,UAAU;IAC1B,qFAAqF;IACrF,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAavD;AAED,MAAM,WAAW,aAAa;IAC7B,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;CACb;AACD,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAazD;AACD,kGAAkG;AAClG,eAAO,MAAM,sBAAsB,SAAU,MAAM,KAAG,OAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cff-recalc.d.ts","sourceRoot":"","sources":["../../visio/cff-recalc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cff-recalc.d.ts","sourceRoot":"","sources":["../../visio/cff-recalc.ts"],"names":[],"mappings":"AA4BA,MAAM,WAAW,UAAU;IAC1B,iDAAiD;IACjD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACrC;AAoSD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,GACnC,MAAM,CAoCR;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,SAAS,MAAM,EAAE,GACtB,IAAI,CAYN"}
|
|
@@ -241,7 +241,7 @@ function parseXml(xml, options = {}) {
|
|
|
241
241
|
try {
|
|
242
242
|
parsed = new xmldom.DOMParser({
|
|
243
243
|
onError: (level, message) => {
|
|
244
|
-
if (level !== "warning") parseError = message;
|
|
244
|
+
if (level !== "warning" || options.warningsAsErrors) parseError = message;
|
|
245
245
|
}
|
|
246
246
|
}).parseFromString(xml, "application/xml");
|
|
247
247
|
} catch (error) {
|
|
@@ -216,7 +216,7 @@ function parseXml(xml, options = {}) {
|
|
|
216
216
|
try {
|
|
217
217
|
parsed = new DOMParser({
|
|
218
218
|
onError: (level, message) => {
|
|
219
|
-
if (level !== "warning") parseError = message;
|
|
219
|
+
if (level !== "warning" || options.warningsAsErrors) parseError = message;
|
|
220
220
|
}
|
|
221
221
|
}).parseFromString(xml, "application/xml");
|
|
222
222
|
} catch (error) {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type NativeDataGraphicKind } from './data-graphic-masters.js';
|
|
2
|
+
import { type VisioDataGraphicPosition } from './data-graphic-place.js';
|
|
3
|
+
/** What one callout instance needs to be written. */
|
|
4
|
+
export interface CalloutInstance {
|
|
5
|
+
id: string;
|
|
6
|
+
/** The instance's name: the master's, then `Name.ID` for later ones. */
|
|
7
|
+
name: string;
|
|
8
|
+
masterId: string;
|
|
9
|
+
ownerId: string;
|
|
10
|
+
kind: NativeDataGraphicKind;
|
|
11
|
+
/** The owner's Shape Data row the callout reads, and that row's label. */
|
|
12
|
+
field: string;
|
|
13
|
+
label: string;
|
|
14
|
+
/** The row's value as saved: the number it holds, or its text. */
|
|
15
|
+
value: {
|
|
16
|
+
text: string;
|
|
17
|
+
number?: number;
|
|
18
|
+
};
|
|
19
|
+
position: VisioDataGraphicPosition;
|
|
20
|
+
/** How many callouts already sit at this position, so this one stacks beyond them. */
|
|
21
|
+
slot: number;
|
|
22
|
+
owner: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
min: number;
|
|
27
|
+
max: number;
|
|
28
|
+
}
|
|
29
|
+
/** The callout's size by kind: text as wide as its owner, bars between 0.8 and 2 inches. */
|
|
30
|
+
export declare function calloutSize(kind: NativeDataGraphicKind, ownerWidth: number): {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
};
|
|
34
|
+
/** The share of the range a value fills, clamped to 0..1. */
|
|
35
|
+
export declare const shareOf: (value: number, min: number, max: number) => number;
|
|
36
|
+
/**
|
|
37
|
+
* One callout as an instance of its master: it names the master, reads its value from the
|
|
38
|
+
* owner's Shape Data row by formula (`Sheet.N!Prop.Row`), is placed beside the owner by a
|
|
39
|
+
* formula on `User.visDGDefaultPos`, and caches what Visio would compute.
|
|
40
|
+
*/
|
|
41
|
+
export declare function calloutInstanceMarkup(input: CalloutInstance): string;
|
|
42
|
+
/** The callout master's name for a kind, and the owner's User cells that make it a data graphic. */
|
|
43
|
+
export declare const calloutMasterName: (kind: NativeDataGraphicKind) => string;
|
|
44
|
+
//# sourceMappingURL=data-graphic-instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-graphic-instance.d.ts","sourceRoot":"","sources":["../../visio/data-graphic-instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,qBAAqB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAKN,KAAK,wBAAwB,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,qDAAqD;AACrD,MAAM,WAAW,eAAe;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,sFAAsF;IACtF,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,4FAA4F;AAC5F,wBAAgB,WAAW,CAC1B,IAAI,EAAE,qBAAqB,EAC3B,UAAU,EAAE,MAAM,GAChB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAInC;AAID,6DAA6D;AAC7D,eAAO,MAAM,OAAO,UAAW,MAAM,OAAO,MAAM,OAAO,MAAM,KAAG,MACP,CAAC;AAS5D;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CA6DpE;AAED,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,SAAU,qBAAqB,KAAG,MACrC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { MasterSpec } from './edit-master-add.js';
|
|
2
|
+
/** The callout kinds a native data graphic is made of. */
|
|
3
|
+
export type NativeDataGraphicKind = 'text' | 'bar' | 'icon';
|
|
4
|
+
export interface NativeCalloutDefinition {
|
|
5
|
+
/** The master's name: Visio's own name for this kind of callout. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** What Visio's `User.msvCalloutType` says for this kind. */
|
|
8
|
+
type: 'Text Callout' | 'Data Bar' | 'Icon Set';
|
|
9
|
+
uniqueId: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The three callout masters this package authors. They carry the names and the `msvCallout*`
|
|
13
|
+
* cells Visio's own callouts use (`Prop.msvCalloutField` is the data the callout shows), but the
|
|
14
|
+
* shapes are this package's own, much simpler than Microsoft's DVCALL stencil.
|
|
15
|
+
*/
|
|
16
|
+
export declare const NATIVE_CALLOUTS: Record<NativeDataGraphicKind, NativeCalloutDefinition>;
|
|
17
|
+
export declare const esc: (text: string) => string;
|
|
18
|
+
/** `<Cell>` markup: value, optional unit and formula. */
|
|
19
|
+
export declare function cell(name: string, value: string | number, formula?: string, unit?: string): string;
|
|
20
|
+
/** A User row: `[name, value, formula?, unit?]`. */
|
|
21
|
+
export declare const userRow: (name: string, value: string | number, formula?: string, unit?: string) => string;
|
|
22
|
+
/** Parse markup under the drawing's namespace and give it to `document`. */
|
|
23
|
+
export declare function importMarkup(document: Document, namespace: string, markup: string): Element;
|
|
24
|
+
/** The spec that adds one callout master to a drawing. */
|
|
25
|
+
export declare function calloutMasterSpec(kind: NativeDataGraphicKind): MasterSpec;
|
|
26
|
+
/** What a data graphic master remembers about one item. */
|
|
27
|
+
export interface NativeMasterItem {
|
|
28
|
+
kind: NativeDataGraphicKind;
|
|
29
|
+
field: string;
|
|
30
|
+
position: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The spec of the hidden data graphic master Visio keeps for each graphic: its page sheet holds
|
|
34
|
+
* the graphic's options (`visDGNextItemID`, `msvDGCalloutGap`), its shapes one entry per item
|
|
35
|
+
* naming the callout master (`visDGUseMaster`) and the field it shows (`visDGField0`).
|
|
36
|
+
*/
|
|
37
|
+
export declare function dataGraphicMasterSpec(uniqueId: string, name: string, items: readonly NativeMasterItem[]): MasterSpec;
|
|
38
|
+
//# sourceMappingURL=data-graphic-masters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-graphic-masters.d.ts","sourceRoot":"","sources":["../../visio/data-graphic-masters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,0DAA0D;AAC1D,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,uBAAuB;IACvC,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,IAAI,EAAE,cAAc,GAAG,UAAU,GAAG,UAAU,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,qBAAqB,EAAE,uBAAuB,CAgBlF,CAAC;AAEF,eAAO,MAAM,GAAG,SAAU,MAAM,KAAG,MAC6D,CAAC;AAEjG,yDAAyD;AACzD,wBAAgB,IAAI,CACnB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,GACX,MAAM,CAIR;AAED,oDAAoD;AACpD,eAAO,MAAM,OAAO,SAAU,MAAM,SAAS,MAAM,GAAG,MAAM,YAAY,MAAM,SAAS,MAAM,WACM,CAAC;AA+FpG,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAI3F;AA8DD,0DAA0D;AAC1D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,UAAU,CAmBzE;AAED,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,SAAS,gBAAgB,EAAE,GAChC,UAAU,CA4BZ"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Where a data graphic sits around its shape, as the Position gallery lists them. */
|
|
2
|
+
export type VisioDataGraphicPosition = 'top-left' | 'top' | 'top-right' | 'left' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
3
|
+
export declare const VISIO_DATA_GRAPHIC_POSITIONS: readonly VisioDataGraphicPosition[];
|
|
4
|
+
/** The callout kinds a graphic is made of (Color by Value changes the fill and has no callout). */
|
|
5
|
+
export type VisioDataGraphicCalloutKind = 'text' | 'bar' | 'icon';
|
|
6
|
+
/** The position each kind takes when none was chosen. */
|
|
7
|
+
export declare const VISIO_DATA_GRAPHIC_DEFAULT_POSITION: Record<VisioDataGraphicCalloutKind, VisioDataGraphicPosition>;
|
|
8
|
+
/** Gap between a callout and its shape, and the pitch of stacked callouts, in inches. */
|
|
9
|
+
export declare const VISIO_DATA_GRAPHIC_GAP = 0.05;
|
|
10
|
+
export declare const VISIO_DATA_GRAPHIC_STACK_STEP: number;
|
|
11
|
+
/** Centre of a graphic part around its owner; `slot` stacks several graphics at one position. */
|
|
12
|
+
export declare function visioDataGraphicCenter(owner: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
}, part: {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
}, position: VisioDataGraphicPosition, slot: number): {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The `visDGDefaultPos` point a position is stored as: 2 is the centre of the shape's extent,
|
|
26
|
+
* 5 is beyond its far edge and -1 beyond its near edge, on each axis, as Visio's own cell reads.
|
|
27
|
+
*/
|
|
28
|
+
export declare function visioDataGraphicPoint(position: VisioDataGraphicPosition): {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
/** The position a stored point stands for, when it is one of the eight. */
|
|
33
|
+
export declare function visioDataGraphicPositionOf(x: number, y: number): VisioDataGraphicPosition | undefined;
|
|
34
|
+
//# sourceMappingURL=data-graphic-place.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-graphic-place.d.ts","sourceRoot":"","sources":["../../visio/data-graphic-place.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,MAAM,wBAAwB,GACjC,UAAU,GACV,KAAK,GACL,WAAW,GACX,MAAM,GACN,OAAO,GACP,aAAa,GACb,QAAQ,GACR,cAAc,CAAC;AAClB,eAAO,MAAM,4BAA4B,EAAE,SAAS,wBAAwB,EAS3E,CAAC;AACF,mGAAmG;AACnG,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAClE,yDAAyD;AACzD,eAAO,MAAM,mCAAmC,EAAE,MAAM,CACvD,2BAA2B,EAC3B,wBAAwB,CAC+B,CAAC;AAEzD,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,6BAA6B,QAA+B,CAAC;AAa1E,iGAAiG;AACjG,wBAAgB,sBAAsB,CACrC,KAAK,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC9D,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACvC,QAAQ,EAAE,wBAAwB,EAClC,IAAI,EAAE,MAAM,GACV;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAW1B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,wBAAwB,GAAG;IAC1E,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV,CAGA;AAED,2EAA2E;AAC3E,wBAAgB,0BAA0B,CACzC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACP,wBAAwB,GAAG,SAAS,CAKtC"}
|
|
@@ -43,6 +43,8 @@ import { type VisioMasterInstanceEdit } from './edit-master-instance.js';
|
|
|
43
43
|
export type { VisioMasterInstanceEdit } from './edit-master-instance.js';
|
|
44
44
|
import { type VisioStencilMasterDropEdit } from './edit-master-drop.js';
|
|
45
45
|
export type { VisioStencilMasterDropEdit } from './edit-master-drop.js';
|
|
46
|
+
import { type VisioSetDataGraphicEdit } from './edit-data-graphic.js';
|
|
47
|
+
export type { VisioDataGraphicItemSpec, VisioSetDataGraphicEdit } from './edit-data-graphic.js';
|
|
46
48
|
import { type VisioGuideEdit } from './edit-guide-commands.js';
|
|
47
49
|
import { type VisioContainerEdit } from './edit-container-options.js';
|
|
48
50
|
import { type VisioPictureEdit } from './edit-picture-adjust.js';
|
|
@@ -161,7 +163,7 @@ export interface VisioPageSizeEdit {
|
|
|
161
163
|
height: number;
|
|
162
164
|
}
|
|
163
165
|
export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit | VisioPageSetupEdits;
|
|
164
|
-
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioTextFieldUpdateEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioChartObjectEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioControlEdit | VisioActionEdit | VisioDataEdit | VisioAssignLayersEdit | VisioLayerPropertiesEdit | VisioMasterInstanceEdit | VisioStencilMasterDropEdit | VisioGuideEdit | VisioContainerEdit | VisioPictureEdit;
|
|
166
|
+
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioTextFieldUpdateEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioChartObjectEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioControlEdit | VisioActionEdit | VisioDataEdit | VisioAssignLayersEdit | VisioLayerPropertiesEdit | VisioMasterInstanceEdit | VisioStencilMasterDropEdit | VisioSetDataGraphicEdit | VisioGuideEdit | VisioContainerEdit | VisioPictureEdit;
|
|
165
167
|
export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
|
|
166
168
|
/** Potential direct changes used by both package and master dependency admission. */
|
|
167
169
|
export declare function geometryChangedCells(edit: VisioGeometryEdit): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAKN,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EACX,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC1F,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAA2B,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACnG,YAAY,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,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B,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,iBAAiB,GACjB,sBAAsB,GACtB,oBAAoB,GACpB,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,GACf,aAAa,GACb,qBAAqB,GACrB,wBAAwB,GACxB,uBAAuB,GACvB,0BAA0B,GAC1B,cAAc,GACd,kBAAkB,GAClB,gBAAgB,CAAC;AACpB,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,wBAAwB,CACvC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,GAAG,EAAE,MAAM,GACT;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAU5B;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACb,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAKN,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EACX,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,GACvB,MAAM,2BAA2B,CAAC;AACnC,O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jC,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACb,SAAS,EAAE,CAyMb"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VisioSetDataGraphicEdit } from './edit-data-graphic.js';
|
|
2
|
+
import type { VisioEdit } from './edit-commands.js';
|
|
3
|
+
import type { VisioPackageLimits } from './package-common.js';
|
|
4
|
+
/**
|
|
5
|
+
* Resizing, deleting or copying a shape that has a data graphic acts on the shape, not on the
|
|
6
|
+
* callouts that follow it. The graphic is taken off the shape for the edit and written again
|
|
7
|
+
* afterwards, laid out for the shape's new size, on the shape and on its copies.
|
|
8
|
+
*/
|
|
9
|
+
export declare function stripDataGraphics(input: Uint8Array, edits: readonly VisioEdit[], limits: VisioPackageLimits, maxOutput: number, deadline: number): Promise<{
|
|
10
|
+
bytes: Uint8Array;
|
|
11
|
+
restore: VisioSetDataGraphicEdit[];
|
|
12
|
+
} | undefined>;
|
|
13
|
+
//# sourceMappingURL=edit-data-graphic-guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-data-graphic-guard.d.ts","sourceRoot":"","sources":["../../visio/edit-data-graphic-guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AA6B3D;;;;GAIG;AACH,wBAAsB,iBAAiB,CACtC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,uBAAuB,EAAE,CAAA;CAAE,GAAG,SAAS,CAAC,CA+BhF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The User row that names a shape's data graphic master. */
|
|
2
|
+
export declare const DATA_GRAPHIC_DISPLAY_ROW = "visDGDisplayFormat";
|
|
3
|
+
/**
|
|
4
|
+
* A shape that carries a data graphic: Visio makes it a group of its callouts. Its own cells
|
|
5
|
+
* (fill, line, text, size) are still the shape's, so edits that act on the shape alone, such as
|
|
6
|
+
* formatting, treat it as the shape it was.
|
|
7
|
+
*/
|
|
8
|
+
export declare const isDataGraphicOwner: (shape: Element) => boolean;
|
|
9
|
+
//# sourceMappingURL=edit-data-graphic-owner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-data-graphic-owner.d.ts","sourceRoot":"","sources":["../../visio/edit-data-graphic-owner.ts"],"names":[],"mappings":"AAEA,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,OAKlD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VisioDataGraphicItemSpec } from './edit-data-graphic.js';
|
|
2
|
+
import type { EditVsdxResult } from './edit.js';
|
|
3
|
+
import type { VisioPackageLimits } from './package-common.js';
|
|
4
|
+
/** The callouts a shape's data graphic is made of, as the shape's cells record them. */
|
|
5
|
+
export declare function readDataGraphicItems(owner: Element): VisioDataGraphicItemSpec[] | undefined;
|
|
6
|
+
/** Edit types that can change what a callout shows. */
|
|
7
|
+
export declare const changesDataGraphicValues: (type: string) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Callouts read their value from the shape by formula, which Visio recalculates; the cached
|
|
10
|
+
* values and the callout sizes this package writes must follow too. After an edit that can
|
|
11
|
+
* change them, write every native data graphic of the touched pages again from its own cells.
|
|
12
|
+
*/
|
|
13
|
+
export declare function refreshDataGraphics(result: EditVsdxResult, pageIds: ReadonlySet<string> | 'all', limits: VisioPackageLimits, maxOutput: number, deadline: number): Promise<EditVsdxResult>;
|
|
14
|
+
//# sourceMappingURL=edit-data-graphic-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-data-graphic-refresh.d.ts","sourceRoot":"","sources":["../../visio/edit-data-graphic-refresh.ts"],"names":[],"mappings":"AAEA,OAAO,EAEN,KAAK,wBAAwB,EAE7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAmB3D,wFAAwF;AACxF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,wBAAwB,EAAE,GAAG,SAAS,CA8B3F;AAED,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,SAAU,MAAM,KAAG,OAOvB,CAAC;AAElC;;;;GAIG;AACH,wBAAsB,mBAAmB,CACxC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,KAAK,EACpC,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,cAAc,CAAC,CAiCzB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type NativeDataGraphicKind } from './data-graphic-masters.js';
|
|
2
|
+
import { type VisioDataGraphicPosition } from './data-graphic-place.js';
|
|
3
|
+
import type { EditVsdxResult } from './edit.js';
|
|
4
|
+
import { type VisioPackageLimits } from './package-common.js';
|
|
5
|
+
/** One callout of a native data graphic. */
|
|
6
|
+
export interface VisioDataGraphicItemSpec {
|
|
7
|
+
kind: NativeDataGraphicKind;
|
|
8
|
+
/** The owner's Shape Data row (its name, not its label) the callout reads. */
|
|
9
|
+
field: string;
|
|
10
|
+
position?: VisioDataGraphicPosition;
|
|
11
|
+
/** The range of a bar or an icon set; the owner's values decide it when absent. */
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Make a shape's data graphic exactly these callouts: Visio's structure for it (the shape
|
|
17
|
+
* becomes a group, each callout an instance of a callout master that reads the shape's Shape
|
|
18
|
+
* Data by formula, the graphic a hidden data graphic master named by the shape's
|
|
19
|
+
* `User.visDGDisplayFormat`). An empty list removes the graphic. The shape must be a local
|
|
20
|
+
* shape; an instance of a stencil master is refused.
|
|
21
|
+
*/
|
|
22
|
+
export interface VisioSetDataGraphicEdit {
|
|
23
|
+
type: 'set-data-graphic';
|
|
24
|
+
pageId: string;
|
|
25
|
+
shapeId: string;
|
|
26
|
+
items: VisioDataGraphicItemSpec[];
|
|
27
|
+
}
|
|
28
|
+
export declare const isVisioDataGraphicEdit: (edit: {
|
|
29
|
+
type: string;
|
|
30
|
+
}) => edit is VisioSetDataGraphicEdit;
|
|
31
|
+
export declare function snapshotDataGraphicEdit(edit: VisioSetDataGraphicEdit): VisioSetDataGraphicEdit;
|
|
32
|
+
export declare function editVsdxDataGraphics(source: Uint8Array, edits: readonly VisioSetDataGraphicEdit[], limits: VisioPackageLimits, maxOutput: number, deadline: number, check: () => void): Promise<EditVsdxResult>;
|
|
33
|
+
//# sourceMappingURL=edit-data-graphic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-data-graphic.d.ts","sourceRoot":"","sources":["../../visio/edit-data-graphic.ts"],"names":[],"mappings":"AAGA,OAAO,EAKN,KAAK,qBAAqB,EAE1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIN,KAAK,wBAAwB,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAK7C,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAIjE,4CAA4C;AAC5C,MAAM,WAAW,wBAAwB;IACxC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,mFAAmF;IACnF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,wBAAwB,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,sBAAsB,SAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,IAAI,uBACvC,CAAC;AAKlC,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,uBAAuB,GAAG,uBAAuB,CA8B9F;AAkHD,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,uBAAuB,EAAE,EACzC,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,cAAc,CAAC,CAyDzB"}
|
|
@@ -44,6 +44,14 @@ export interface VisioTextFormatExtras {
|
|
|
44
44
|
/** Paragraph.BulletStr: a custom bullet character; empty clears it. */
|
|
45
45
|
bulletText?: string;
|
|
46
46
|
margins?: VisioTextMargins;
|
|
47
|
+
/**
|
|
48
|
+
* The shape's tab stops (Tabs row 0), replacing the existing ones. Positions are points from the
|
|
49
|
+
* text block's left edge; at most 64, in ascending order. An empty list clears them.
|
|
50
|
+
*/
|
|
51
|
+
tabStops?: {
|
|
52
|
+
position: number;
|
|
53
|
+
align: 'left' | 'center' | 'right' | 'decimal';
|
|
54
|
+
}[];
|
|
47
55
|
/** TextBkgnd: an opaque colour or `none`. */
|
|
48
56
|
textBackground?: string;
|
|
49
57
|
textBackgroundTransparency?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting-text-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text-commands.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,GAAG,YAAY,CAAC;AAClF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,aAAa,GAAG,WAAW,CAAC;AACvE,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAKpD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAI5D,CAAC;AACF,uGAAuG;AACvG,MAAM,WAAW,uBAAuB;IACvC,mEAAmE;IACnE,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,gBAAgB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,oGAAoG;AACpG,MAAM,WAAW,qBAAqB;IACrC,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6FAA6F;IAC7F,WAAW,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACpC;AACD,eAAO,MAAM,sBAAsB,YAClC,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,UAAU,EACV,eAAe,CACN,CAAC;AACX,eAAO,MAAM,sBAAsB,YAClC,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,CACH,CAAC;AAQX,8EAA8E;AAC9E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,
|
|
1
|
+
{"version":3,"file":"edit-formatting-text-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text-commands.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,GAAG,YAAY,CAAC;AAClF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,aAAa,GAAG,WAAW,CAAC;AACvE,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAKpD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAI5D,CAAC;AACF,uGAAuG;AACvG,MAAM,WAAW,uBAAuB;IACvC,mEAAmE;IACnE,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,M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;AACD,eAAO,MAAM,sBAAsB,YAClC,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,UAAU,EACV,eAAe,CACN,CAAC;AACX,eAAO,MAAM,sBAAsB,YAClC,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,CACH,CAAC;AAQX,8EAA8E;AAC9E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,CAkG3F"}
|
|
@@ -6,6 +6,20 @@ export declare const hasParagraphExtras: (edit: VisioTextFormatExtras) => boolea
|
|
|
6
6
|
export declare function characterExtraWrites(edit: VisioTextFormatExtras, name: (cell: string) => string, add: AddTextWrite): void;
|
|
7
7
|
/** https://learn.microsoft.com/en-us/office/client-developer/visio/paragraph-section */
|
|
8
8
|
export declare function paragraphExtraWrites(edit: VisioTextFormatExtras, name: (cell: string) => string, add: AddTextWrite): void;
|
|
9
|
+
declare const TAB_ALIGNMENTS: readonly ['left', 'center', 'right', 'decimal'];
|
|
10
|
+
/**
|
|
11
|
+
* Tabs row 0 as Visio 16 saves it: `Position<n>` (inches) and `Alignment<n>` pairs counted from 0.
|
|
12
|
+
* Visio 16 ignored the alignment of a row that held a single pair, so at least two pairs are
|
|
13
|
+
* always written, padded (like the pair Visio adds itself) with a stop at 0 that never matches.
|
|
14
|
+
* Pairs the shape already had beyond the new list are zeroed, since a cell cannot be removed here.
|
|
15
|
+
*/
|
|
16
|
+
export declare function tabStopWrites(stops: readonly {
|
|
17
|
+
position: number;
|
|
18
|
+
align: (typeof TAB_ALIGNMENTS)[number];
|
|
19
|
+
}[], context: {
|
|
20
|
+
source: ReadonlyMap<string, ReadonlyMap<string, unknown>>;
|
|
21
|
+
}, add: AddTextWrite): void;
|
|
9
22
|
/** Text Block Format and Text Transform cells on the shape sheet itself. */
|
|
10
23
|
export declare function textBlockWrites(shape: Element, edit: VisioTextFormatExtras, add: AddTextWrite): void;
|
|
24
|
+
export {};
|
|
11
25
|
//# sourceMappingURL=edit-formatting-text-extra.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting-text-extra.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text-extra.ts"],"names":[],"mappings":"AAIA,OAAO,EAKN,KAAK,qBAAqB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,CAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,OAAO,KACd,IAAI,CAAC;AAEV,eAAO,MAAM,kBAAkB,SAAU,qBAAqB,KAAG,OACH,CAAC;AAC/D,eAAO,MAAM,kBAAkB,SAAU,qBAAqB,KAAG,OACH,CAAC;AAQ/D,4GAA4G;AAC5G,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,qBAAqB,EAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAC9B,GAAG,EAAE,YAAY,GACf,IAAI,CAQN;AAED,wFAAwF;AACxF,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,qBAAqB,EAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAC9B,GAAG,EAAE,YAAY,GACf,IAAI,CAiBN;AAgBD,4EAA4E;AAC5E,wBAAgB,eAAe,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,qBAAqB,EAC3B,GAAG,EAAE,YAAY,GACf,IAAI,CAoCN"}
|
|
1
|
+
{"version":3,"file":"edit-formatting-text-extra.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text-extra.ts"],"names":[],"mappings":"AAIA,OAAO,EAKN,KAAK,qBAAqB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,CAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MA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AAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-formatting-text.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text.ts"],"names":[],"mappings":"AAMA,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUzD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,IAAI,GACf;IAAE,MAAM,EAAE,eAAe,EAAE,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;CAAE,CA0GxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-formatting.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAelE,OAAO,EAMN,KAAK,kBAAkB,EAEvB,MAAM,wBAAwB,CAAC;AA6BhC,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,kBAAkB,CAAC;CAC7B;AAED,wBAAsB,mBAAmB,CACxC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,OAAO,CAAC,CA6BlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-shape-data.d.ts","sourceRoot":"","sources":["../../visio/edit-shape-data.ts"],"names":[],"mappings":"AAGA,OAAO,EAEN,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,MAAM,4BAA4B,CAAC;AAyBpC;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAoBtE;
|
|
1
|
+
{"version":3,"file":"edit-shape-data.d.ts","sourceRoot":"","sources":["../../visio/edit-shape-data.ts"],"names":[],"mappings":"AAGA,OAAO,EAEN,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,MAAM,4BAA4B,CAAC;AAyBpC;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAoBtE;AAMD,qFAAqF;AACrF,wBAAgB,2BAA2B,CAC1C,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,EACxB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EACzB,KAAK,EAAE,MAAM,IAAI,GACf,IAAI,CAgBN;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAmBpF;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAQ3F;AAgCD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,oBAAoB,EAC1B,MAAM,CAAC,EAAE,OAAO,GACd,OAAO,CA+BT;AAED,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAUvE;AAED,sFAAsF;AACtF,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAST"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { VisioInsertSeparatorEdit, VisioSwimlaneOptionsEdit } from './edit-swimlane-commands.js';
|
|
2
|
+
import { type Scope } from './edit-swimlane-layout.js';
|
|
3
|
+
/** The narrowest phase Insert Phase leaves on either side of the new separator, in inches. */
|
|
4
|
+
export declare const CFF_MIN_PHASE = 0.4;
|
|
5
|
+
/** Whether a frame is an instance of Visio's own CFF Container master (a chart Visio built). */
|
|
6
|
+
export declare const isNativeFrame: (scope: Scope, frame: Element) => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Insert Phase on a chart Visio built. Visio's Phase List lays its separators out edge to edge,
|
|
9
|
+
* each as wide as its phase with the dividing line at its right edge, so a new separator splits
|
|
10
|
+
* the phase it lands in: the copy takes the left part, the separator that was there keeps the
|
|
11
|
+
* right part (observed in Visio 16: a Separator dropped at x = 8 in the template's one phase got
|
|
12
|
+
* the width up to 8 and the old one the rest, and the Phase List named them new first). Only the
|
|
13
|
+
* first phase carries the heading extension over the lane headings (`FirstHeadingExtend`).
|
|
14
|
+
*/
|
|
15
|
+
export declare function insertNativePhase(scope: Scope, frame: Element, edit: VisioInsertSeparatorEdit): void;
|
|
16
|
+
/**
|
|
17
|
+
* Chart options on a chart Visio built: style, rotated lane labels, the title bar and the phase
|
|
18
|
+
* headings. They are the flowchart's own User cells (`visCFFStyle`, `visShowTitle`,
|
|
19
|
+
* `visShowPhase` on the frame, `visRotateLabel` on the Swimlane List) that Visio's masters read
|
|
20
|
+
* through formulas, so the cells are written as Visio writes them and every instance is
|
|
21
|
+
* recalculated. Geometry follows what Visio 16 did to the template chart when the cells changed:
|
|
22
|
+
* hiding the title bar lowers the frame's top by the bar and nothing else moves; hiding the
|
|
23
|
+
* phase headings takes their band out from under the frame's top, so the lanes (with their
|
|
24
|
+
* shapes) and the lists rise by the band and the frame and Phase List shrink from below.
|
|
25
|
+
* Showing them reverses it.
|
|
26
|
+
*/
|
|
27
|
+
export declare function setNativeOptions(scope: Scope, frame: Element, edit: VisioSwimlaneOptionsEdit): void;
|
|
28
|
+
//# sourceMappingURL=edit-swimlane-cff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-swimlane-cff.d.ts","sourceRoot":"","sources":["../../visio/edit-swimlane-cff.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEnG,OAAO,EAYN,KAAK,KAAK,EACV,MAAM,wBAAwB,CAAC;AAEhC,8FAA8F;AAC9F,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,gGAAgG;AAChG,eAAO,MAAM,aAAa,UAAW,KAAK,SAAS,OAAO,KAAG,OACA,CAAC;AAI9D;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,wBAAwB,GAC5B,IAAI,CAqCN;AAoCD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,wBAAwB,GAC5B,IAAI,CAqCN"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/** The sub-shape of a lane that carries its heading text (the master's text shape). */
|
|
2
|
+
export declare function headingShape(lane: Element): Element | undefined;
|
|
1
3
|
/**
|
|
2
|
-
* A new lane for a chart Visio built: a copy of the
|
|
3
|
-
* GUIDs, so it is an instance of the same
|
|
4
|
-
*
|
|
4
|
+
* A new lane or phase separator for a chart Visio built: a copy of the one it goes beside, with
|
|
5
|
+
* its own IDs and GUIDs, so it is an instance of the same master with the same links to its
|
|
6
|
+
* list and the frame. Placed right after the reference; the caller sizes and orders it. A
|
|
7
|
+
* `heading` of undefined leaves the heading without text of its own, as Visio's new separators
|
|
8
|
+
* are (the master's "Phase" shows).
|
|
5
9
|
*/
|
|
6
|
-
export declare function cloneNativeLane(root: Element, reference: Element, id: string, heading: string): Element;
|
|
10
|
+
export declare function cloneNativeLane(root: Element, reference: Element, id: string, heading: string | undefined): Element;
|
|
7
11
|
//# sourceMappingURL=edit-swimlane-clone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-swimlane-clone.d.ts","sourceRoot":"","sources":["../../visio/edit-swimlane-clone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"edit-swimlane-clone.d.ts","sourceRoot":"","sources":["../../visio/edit-swimlane-clone.ts"],"names":[],"mappings":"AAcA,uFAAuF;AACvF,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAW/D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,OAAO,EAClB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,GAAG,SAAS,GACzB,OAAO,CA0BT"}
|
|
@@ -19,6 +19,11 @@ export interface Options {
|
|
|
19
19
|
rotate: boolean;
|
|
20
20
|
style: number;
|
|
21
21
|
}
|
|
22
|
+
/** Visio's title band and phase heading band (its masters' `visHeadingHeight`), 10 mm and 5 mm. */
|
|
23
|
+
export declare const TITLE_BAND: number;
|
|
24
|
+
export declare const PHASE_BAND: number;
|
|
25
|
+
/** The master's own heading height for a list or frame (a User row cache), else the default. */
|
|
26
|
+
export declare function headingBand(scope: Scope, shape: Element | undefined, fallback: number): number;
|
|
22
27
|
/** The role a shape has by the master it is an instance of (a chart Visio built). */
|
|
23
28
|
export declare const masterRole: (scope: Scope, shape: Element) => CffRole | undefined;
|
|
24
29
|
export declare function frameOf(scope: Scope, frameId: string): Element;
|
|
@@ -63,7 +68,7 @@ export declare function place(scope: Scope, shape: Element, target: Box): void;
|
|
|
63
68
|
* phase separators to span the lanes and fit the frame. 'order' overrides the geometric order
|
|
64
69
|
* (a lane just inserted).
|
|
65
70
|
*/
|
|
66
|
-
export declare function relayout(scope: Scope, frame: Element, order?: readonly Element[]): void;
|
|
71
|
+
export declare function relayout(scope: Scope, frame: Element, order?: readonly Element[], gapOverride?: number): void;
|
|
67
72
|
/** Stencil instances move through the asynchronous instance path, so the caller must move them. */
|
|
68
73
|
export declare function assertMovable(root: Element, ids: readonly string[]): void;
|
|
69
74
|
/** Frame, lanes and separators sit behind the page's other shapes, in that order. */
|