ooxml-core 1.34.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation/index.cjs +3759 -2284
- package/dist/automation/index.mjs +3759 -2284
- package/dist/index.cjs +5 -1
- package/dist/index.mjs +6 -2
- package/dist/opc/index.cjs +5 -0
- package/dist/opc/index.d.ts +1 -0
- package/dist/opc/index.d.ts.map +1 -1
- package/dist/opc/index.mjs +5 -1
- package/dist/opc/zlib.d.ts +6 -0
- package/dist/opc/zlib.d.ts.map +1 -0
- package/dist/visio/action-formula.d.ts +21 -0
- package/dist/visio/action-formula.d.ts.map +1 -0
- package/dist/visio/action-menu.d.ts +8 -0
- package/dist/visio/action-menu.d.ts.map +1 -0
- package/dist/visio/bevel-3d.d.ts +61 -0
- package/dist/visio/bevel-3d.d.ts.map +1 -0
- package/dist/visio/cff-masters.d.ts +17 -0
- package/dist/visio/cff-masters.d.ts.map +1 -0
- package/dist/visio/cff-recalc.d.ts +17 -0
- package/dist/visio/cff-recalc.d.ts.map +1 -0
- package/dist/visio/control-formula.d.ts +13 -0
- package/dist/visio/control-formula.d.ts.map +1 -0
- package/dist/visio/edit-action.d.ts +22 -0
- package/dist/visio/edit-action.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +4 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-connector-glue.d.ts +24 -1
- package/dist/visio/edit-connector-glue.d.ts.map +1 -1
- package/dist/visio/edit-connector-layout.d.ts.map +1 -1
- package/dist/visio/edit-connector-org.d.ts +11 -0
- package/dist/visio/edit-connector-org.d.ts.map +1 -0
- package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
- package/dist/visio/edit-connector-world.d.ts +25 -0
- package/dist/visio/edit-connector-world.d.ts.map +1 -0
- package/dist/visio/edit-connector.d.ts +5 -1
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-control.d.ts +28 -0
- package/dist/visio/edit-control.d.ts.map +1 -0
- package/dist/visio/edit-formatting-commands.d.ts +4 -0
- package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-group-resize-instances.d.ts +43 -0
- package/dist/visio/edit-group-resize-instances.d.ts.map +1 -0
- package/dist/visio/edit-group-resize.d.ts +1 -0
- package/dist/visio/edit-group-resize.d.ts.map +1 -1
- package/dist/visio/edit-group-rotation.d.ts +8 -0
- package/dist/visio/edit-group-rotation.d.ts.map +1 -1
- package/dist/visio/edit-instance-geometry.d.ts +13 -0
- package/dist/visio/edit-instance-geometry.d.ts.map +1 -1
- package/dist/visio/edit-instance-sheet.d.ts.map +1 -1
- package/dist/visio/edit-master-add.d.ts +3 -0
- package/dist/visio/edit-master-add.d.ts.map +1 -1
- package/dist/visio/edit-master-drop.d.ts.map +1 -1
- package/dist/visio/edit-master-media.d.ts +22 -0
- package/dist/visio/edit-master-media.d.ts.map +1 -0
- package/dist/visio/edit-master-scope.d.ts.map +1 -1
- package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
- package/dist/visio/edit-sheet-cells.d.ts +23 -0
- package/dist/visio/edit-sheet-cells.d.ts.map +1 -0
- package/dist/visio/edit-stencil-connector-write.d.ts.map +1 -1
- package/dist/visio/edit-stencil-connector.d.ts +7 -2
- package/dist/visio/edit-stencil-connector.d.ts.map +1 -1
- package/dist/visio/edit-stencil-import.d.ts +1 -1
- package/dist/visio/edit-stencil-import.d.ts.map +1 -1
- package/dist/visio/edit-style-admission.d.ts +6 -0
- package/dist/visio/edit-style-admission.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-clone.d.ts +7 -0
- package/dist/visio/edit-swimlane-clone.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-layout.d.ts +9 -2
- package/dist/visio/edit-swimlane-layout.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-ops.d.ts +2 -1
- package/dist/visio/edit-swimlane-ops.d.ts.map +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/index.cjs +2576 -1061
- package/dist/visio/index.d.ts +6 -0
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +2569 -1062
- package/dist/visio/model.d.ts +16 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/paragraphs.d.ts +1 -1
- package/dist/visio/paragraphs.d.ts.map +1 -1
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/shape-sections-types.d.ts +71 -0
- package/dist/visio/shape-sections-types.d.ts.map +1 -0
- package/dist/visio/shape-sections.d.ts +11 -0
- package/dist/visio/shape-sections.d.ts.map +1 -0
- package/dist/visio/shapes.d.ts.map +1 -1
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/swimlane-membership.d.ts +12 -0
- package/dist/visio/swimlane-membership.d.ts.map +1 -0
- package/dist/visio/swimlane-stack.d.ts +3 -1
- package/dist/visio/swimlane-stack.d.ts.map +1 -1
- package/dist/visio/tab-stops.d.ts +20 -0
- package/dist/visio/tab-stops.d.ts.map +1 -0
- package/dist/visio/theme-line.d.ts +10 -0
- package/dist/visio/theme-line.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-config.d.ts +1 -0
- package/dist/visio/ui/data-graphic-config.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-items.d.ts +23 -0
- package/dist/visio/ui/data-graphic-items.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-rules.d.ts +7 -0
- package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
- package/dist/visio/ui/data-graphics.d.ts +1 -1
- package/dist/visio/ui/data-graphics.d.ts.map +1 -1
- package/dist/visio/ui/data-visualizer-edits.d.ts +22 -0
- package/dist/visio/ui/data-visualizer-edits.d.ts.map +1 -0
- package/dist/visio/ui/data-visualizer.d.ts +47 -0
- package/dist/visio/ui/data-visualizer.d.ts.map +1 -0
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +30836 -28238
- package/dist/visio/ui/index.d.ts +6 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +30816 -28239
- package/dist/visio/ui/org-chart-edit.d.ts +52 -0
- package/dist/visio/ui/org-chart-edit.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-import.d.ts +35 -0
- package/dist/visio/ui/org-chart-import.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-layout.d.ts +43 -0
- package/dist/visio/ui/org-chart-layout.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-stencil-data.d.ts +11 -0
- package/dist/visio/ui/org-chart-stencil-data.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-template.d.ts +7 -0
- package/dist/visio/ui/org-chart-template.d.ts.map +1 -0
- package/dist/visio/ui/org-chart.d.ts +14 -26
- package/dist/visio/ui/org-chart.d.ts.map +1 -1
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/selection-connectors.d.ts +10 -0
- package/dist/visio/ui/selection-connectors.d.ts.map +1 -0
- package/dist/visio/ui/selection-resize.d.ts.map +1 -1
- package/dist/visio/ui/shape-group.d.ts +3 -1
- package/dist/visio/ui/shape-group.d.ts.map +1 -1
- package/dist/visio/ui/shape-move.d.ts.map +1 -1
- package/dist/visio/ui/shape-resize.d.ts.map +1 -1
- package/dist/visio/ui/shape-rotation.d.ts +3 -1
- package/dist/visio/ui/shape-rotation.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/swimlane.d.ts.map +1 -1
- package/dist/visio/ui/templates.d.ts +4 -0
- package/dist/visio/ui/templates.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
/** The org chart masters of Visio's Organization Chart stencil that a position can be. */
|
|
4
|
+
export type VisioOrgMaster = 'Executive Belt' | 'Manager Belt' | 'Position Belt' | 'Assistant Belt';
|
|
5
|
+
export type VisioOrgAddKind = 'subordinate' | 'peer' | 'assistant';
|
|
6
|
+
/** Every Belt master is this large, in drawing inches (the master's User.Width and Height). */
|
|
7
|
+
export declare const VISIO_ORG_SIZE: {
|
|
8
|
+
readonly width: 1.625;
|
|
9
|
+
readonly height: 0.875;
|
|
10
|
+
};
|
|
11
|
+
/** IDs for `positions` new positions (each leaves room for its sub-shapes), then `lines` connectors. */
|
|
12
|
+
export declare function visioOrgFreeIds(page: VisioPage, positions: number, lines: number): {
|
|
13
|
+
positions: string[];
|
|
14
|
+
lines: string[];
|
|
15
|
+
} | undefined;
|
|
16
|
+
/** The drop of one position: an instance of the Belt master `master`, centred on `at`. */
|
|
17
|
+
export declare function visioOrgDropPosition(pageId: string, shapeId: string, master: VisioOrgMaster, at: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
}): VisioEdit;
|
|
21
|
+
/**
|
|
22
|
+
* A reporting line as Visio draws one: an instance of the Organization Chart stencil's Dynamic
|
|
23
|
+
* connector, dropped between the two positions and then glued to both, so it follows them. The
|
|
24
|
+
* drop edit comes first in the returned pair (drops run before the rest of a batch); `glue`
|
|
25
|
+
* follows the edits that place the positions.
|
|
26
|
+
*/
|
|
27
|
+
export declare function visioOrgReportingLine(pageId: string, lineId: string, manager: string, subordinate: string, between: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}): {
|
|
31
|
+
drop: VisioEdit;
|
|
32
|
+
glue: VisioEdit[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Org Chart > Subordinate, Assistant or Coworker: a new position under the selected one (or under
|
|
36
|
+
* its manager, for a coworker; a coworker of an assistant is another assistant), an instance of
|
|
37
|
+
* Visio's Position, Assistant or the selected position's Belt master, with a Dynamic connector
|
|
38
|
+
* glued to it and its manager, then the whole tree laid out again so the new box has room. An
|
|
39
|
+
* assistant sits beside its manager's line. One edit batch, so it is one undo step. The new
|
|
40
|
+
* shape id is returned for selection.
|
|
41
|
+
*/
|
|
42
|
+
export declare function visioOrgAddPosition(page: VisioPage, shapeId: string, kind: VisioOrgAddKind): {
|
|
43
|
+
edits: VisioEdit[];
|
|
44
|
+
newId: string;
|
|
45
|
+
} | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Org Chart > Delete Position: the position and the connectors glued to it go; its subordinates
|
|
48
|
+
* (and assistants) are joined to its manager, or become tops of their own trees when it had none.
|
|
49
|
+
* One batch, so the whole command is one undo step.
|
|
50
|
+
*/
|
|
51
|
+
export declare function visioOrgDeletePosition(page: VisioPage, shapeId: string): VisioEdit[] | undefined;
|
|
52
|
+
//# sourceMappingURL=org-chart-edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-edit.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-edit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AAYtD,0FAA0F;AAC1F,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,eAAe,GAAG,gBAAgB,CAAC;AACpG,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,MAAM,GAAG,WAAW,CAAC;AAEnE,+FAA+F;AAC/F,eAAO,MAAM,cAAc;aAAK,KAAK,EAAE,KAAK;aAAE,MAAM,EAAE,KAAK;CAAW,CAAC;AAgCvE,wGAAwG;AACxG,wBAAgB,eAAe,CAC9B,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACX;IAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,SAAS,CAStD;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,cAAc,EACtB,EAAE,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1B,SAAS,CAUX;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,SAAS,EAAE,CAAA;CAAE,CAgBxC;AAQD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,eAAe,GACnB;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAuCnD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,SAAS,CAgChG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
import type { VisioDataTable } from './data-table.js';
|
|
4
|
+
/** One row of an org chart import: a person and who they report to. */
|
|
5
|
+
export interface VisioOrgPerson {
|
|
6
|
+
name: string;
|
|
7
|
+
title: string;
|
|
8
|
+
/** The Name (or ID) of the manager; empty for the top of a tree. */
|
|
9
|
+
reportsTo: string;
|
|
10
|
+
/** An identifier other rows may use in their Reports To column. */
|
|
11
|
+
id?: string;
|
|
12
|
+
department?: string;
|
|
13
|
+
telephone?: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
assistant?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The people of an imported sheet. Columns are found by their headings: Name, Title and Reports To
|
|
19
|
+
* are required (Reports To holds the manager's Name, or their ID when the sheet has an ID column);
|
|
20
|
+
* Department, Telephone, E-Mail and a Type column (a value of "Assistant" makes the row an
|
|
21
|
+
* assistant) are used when present. Returns an error sentence when the sheet cannot be read.
|
|
22
|
+
*/
|
|
23
|
+
export declare function visioOrgPeople(table: VisioDataTable): VisioOrgPerson[] | string;
|
|
24
|
+
/**
|
|
25
|
+
* Org Chart > Import: build an org chart from `people` on `page`, to the right of what is already
|
|
26
|
+
* there. Tops of trees are Executive Belts, people with subordinates Manager Belts, the rest
|
|
27
|
+
* Position Belts and assistants Assistant Belts, joined by Dynamic connectors, with Name, Title
|
|
28
|
+
* and the optional rows as Shape Data and the text following the data. The page grows to hold
|
|
29
|
+
* the chart. One batch, so it is one undo step. Returns an error sentence when it cannot be done.
|
|
30
|
+
*/
|
|
31
|
+
export declare function visioOrgImportEdits(page: VisioPage, people: readonly VisioOrgPerson[]): {
|
|
32
|
+
edits: VisioEdit[];
|
|
33
|
+
firstId: string;
|
|
34
|
+
} | string;
|
|
35
|
+
//# sourceMappingURL=org-chart-import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-import.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAYnD,uEAAuE;AACvE,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAkBD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,EAAE,GAAG,MAAM,CAkC/E;AAuCD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,SAAS,cAAc,EAAE,GAC/B;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAgFlD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { VisioEdit } from '../edit-commands.js';
|
|
2
|
+
import type { VisioPage } from '../model.js';
|
|
3
|
+
export interface OrgLayoutNode {
|
|
4
|
+
id: string;
|
|
5
|
+
/** Page inches. */
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
/** An assistant sits beside its manager's line, between the manager and the subordinates. */
|
|
9
|
+
assistant?: boolean;
|
|
10
|
+
/** Where the position is now (x, page inches): siblings keep their order. New ones go last. */
|
|
11
|
+
hint?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface OrgPoint {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Lay a tree of positions out top-down and return each position's centre, x rightward and y
|
|
19
|
+
* downward from the top left of the whole chart. Each manager sits over its subordinates, and
|
|
20
|
+
* every level is a row. A manager's assistants are stacked to the right of the line that drops
|
|
21
|
+
* from the manager, in a band of their own between the manager's row and the next, as Visio
|
|
22
|
+
* places them; the rows below are pushed down to make room.
|
|
23
|
+
*/
|
|
24
|
+
export declare function planOrgLayout(nodes: readonly OrgLayoutNode[], edges: readonly {
|
|
25
|
+
from: string;
|
|
26
|
+
to: string;
|
|
27
|
+
}[]): Map<string, OrgPoint> | undefined;
|
|
28
|
+
export interface OrgNewNode extends OrgLayoutNode {
|
|
29
|
+
/** The position the new one reports to. */
|
|
30
|
+
parent: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Lay the page's tree out again with `extra` positions (not in the page yet) added. Existing
|
|
34
|
+
* positions keep the top-left corner of their bounds. Returns the move edits for existing
|
|
35
|
+
* positions and the new positions' centres (drawing inches, y up).
|
|
36
|
+
*/
|
|
37
|
+
export declare function layoutOrgPage(page: VisioPage, extra?: readonly OrgNewNode[]): {
|
|
38
|
+
moves: VisioEdit[];
|
|
39
|
+
centres: Map<string, OrgPoint>;
|
|
40
|
+
} | undefined;
|
|
41
|
+
/** Org Chart > Layout: put every position back in a tidy top-down tree. */
|
|
42
|
+
export declare function visioOrgReLayout(page: VisioPage): VisioEdit[] | undefined;
|
|
43
|
+
//# sourceMappingURL=org-chart-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-layout.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AAYtD,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,QAAQ;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAcD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,KAAK,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,GAC5C,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,CAwGnC;AAED,MAAM,WAAW,UAAW,SAAQ,aAAa;IAChD,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;CACf;AAMD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,GAAE,SAAS,UAAU,EAAO;;;cAyD/E;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,CAGzE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Master IDs inside the stencil: Executive Belt = 2, Manager Belt = 4, Position Belt = 5, Assistant Belt = 6, Dynamic connector = 15. */
|
|
2
|
+
export declare const ORG_STENCIL_MASTER_IDS: {
|
|
3
|
+
readonly 'Executive Belt': '2';
|
|
4
|
+
readonly 'Manager Belt': '4';
|
|
5
|
+
readonly 'Position Belt': '5';
|
|
6
|
+
readonly 'Assistant Belt': '6';
|
|
7
|
+
readonly 'Dynamic connector': '15';
|
|
8
|
+
};
|
|
9
|
+
/** The stencil package bytes (a .vssx holding the org chart masters). */
|
|
10
|
+
export declare const orgStencilBytes: () => Uint8Array;
|
|
11
|
+
//# sourceMappingURL=org-chart-stencil-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-stencil-data.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-stencil-data.ts"],"names":[],"mappings":"AACA,0IAA0I;AAC1I,eAAO,MAAM,sBAAsB;aAClC,gBAAgB,EAAE,GAAG;aACrB,cAAc,EAAE,GAAG;aACnB,eAAe,EAAE,GAAG;aACpB,gBAAgB,EAAE,GAAG;aACrB,mBAAmB,EAAE,IAAI;CAChB,CAAC;AA8PX,yEAAyE;AACzE,eAAO,MAAM,eAAe,QAAO,UACiC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Basic Organization Chart starter: a Chief Executive, three Managers and two Positions,
|
|
3
|
+
* instances of Visio's Executive, Manager and Position Belt masters joined by Dynamic connectors,
|
|
4
|
+
* built by the editor's own edit API. The text of each position is its Name and Title Shape Data.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createOrgChartTemplate(): Promise<Uint8Array>;
|
|
7
|
+
//# sourceMappingURL=org-chart-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-chart-template.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart-template.ts"],"names":[],"mappings":"AA+BA;;;;GAIG;AACH,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,UAAU,CAAC,CA6BlE"}
|
|
@@ -22,16 +22,21 @@ export declare const VISIO_ORG_ROWS: readonly [{
|
|
|
22
22
|
readonly label: 'E-Mail';
|
|
23
23
|
}];
|
|
24
24
|
export interface VisioOrgPositionData {
|
|
25
|
-
Name
|
|
26
|
-
Title
|
|
25
|
+
Name?: string;
|
|
26
|
+
Title?: string;
|
|
27
27
|
Department?: string;
|
|
28
28
|
Telephone?: string;
|
|
29
29
|
Email?: string;
|
|
30
30
|
}
|
|
31
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* The set-shape-data edits for the rows `data` names. The rows themselves come from the master the
|
|
33
|
+
* position is an instance of; only the values given are written.
|
|
34
|
+
*/
|
|
32
35
|
export declare function visioOrgDataEdits(pageId: string, shapeId: string, data: VisioOrgPositionData): VisioEdit[];
|
|
33
36
|
/** Whether a shape is an org chart position: it carries every org chart Shape Data row. */
|
|
34
37
|
export declare const visioIsOrgPosition: (shape: VisioShape | undefined) => boolean;
|
|
38
|
+
/** Whether a position is an instance of the Assistant Belt master (instances are named after it). */
|
|
39
|
+
export declare const visioIsOrgAssistant: (shape: VisioShape | undefined) => boolean;
|
|
35
40
|
/** The org chart position a selected shape is, when it is one. */
|
|
36
41
|
export declare function visioOrgPosition(page: VisioPage, shapeId: string): VisioShape | undefined;
|
|
37
42
|
export interface VisioOrgHierarchy {
|
|
@@ -47,29 +52,12 @@ export interface VisioOrgHierarchy {
|
|
|
47
52
|
}
|
|
48
53
|
/** The positions of a page and the glued connectors that join them. */
|
|
49
54
|
export declare function visioOrgHierarchy(page: VisioPage): VisioOrgHierarchy;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
readonly peer: '#D8EFEB';
|
|
53
|
-
readonly assistant: '#F3EEE1';
|
|
54
|
-
};
|
|
55
|
-
export type VisioOrgAddKind = keyof typeof FILLS;
|
|
56
|
-
/** Org Chart > Layout: put every position back in a tidy top-down tree. */
|
|
57
|
-
export declare function visioOrgReLayout(page: VisioPage): VisioEdit[] | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Org Chart > Subordinate, Assistant or Coworker: a new position under the selected one (or under
|
|
60
|
-
* its manager, for a coworker), joined by a glued connector and carrying the org chart Shape Data,
|
|
61
|
-
* then the whole tree laid out again so the new box has room. One edit batch, so it is one undo
|
|
62
|
-
* step. The new shape id is returned for selection. Assistants are placed like subordinates.
|
|
63
|
-
*/
|
|
64
|
-
export declare function visioOrgAddPosition(page: VisioPage, shapeId: string, kind: VisioOrgAddKind): {
|
|
65
|
-
edits: VisioEdit[];
|
|
66
|
-
newId: string;
|
|
67
|
-
} | undefined;
|
|
55
|
+
/** The text a position shows: its Name, then its Title, each on a line of its own when set. */
|
|
56
|
+
export declare const visioOrgText: (data: Pick<VisioOrgPositionData, 'Name' | 'Title'>) => string;
|
|
68
57
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
58
|
+
* Keep the text of an org chart position in step with its Shape Data, as Visio's org chart shows
|
|
59
|
+
* the Name and Title fields: after a `set-shape-data` of the Name or Title row of a position, a
|
|
60
|
+
* text edit with the new Name and Title follows it. Other edits are returned as they are.
|
|
72
61
|
*/
|
|
73
|
-
export declare function
|
|
74
|
-
export {};
|
|
62
|
+
export declare function visioOrgFollowData(page: VisioPage, edits: readonly VisioEdit[]): VisioEdit[];
|
|
75
63
|
//# sourceMappingURL=org-chart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"org-chart.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"org-chart.d.ts","sourceRoot":"","sources":["../../../visio/ui/org-chart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItD;;;;GAIG;AACH,eAAO,MAAM,cAAc;aACxB,GAAG,EAAE,YAAY;aAAE,KAAK,EAAE,YAAY;;aACtC,GAAG,EAAE,WAAW;aAAE,KAAK,EAAE,WAAW;;aACpC,GAAG,EAAE,MAAM;aAAE,KAAK,EAAE,MAAM;;aAC1B,GAAG,EAAE,OAAO;aAAE,KAAK,EAAE,OAAO;;aAC5B,GAAG,EAAE,OAAO;aAAE,KAAK,EAAE,QAAQ;EACtB,CAAC;AAEX,MAAM,WAAW,oBAAoB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,oBAAoB,GACxB,SAAS,EAAE,CAQb;AAED,2FAA2F;AAC3F,eAAO,MAAM,kBAAkB,UAAW,UAAU,GAAG,SAAS,KAAG,OAC8B,CAAC;AAElG,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,UAAW,UAAU,GAAG,SAAS,KAAG,OACZ,CAAC;AAEzD,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAGzF;AAED,MAAM,WAAW,iBAAiB;IACjC,kCAAkC;IAClC,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,iEAAiE;IACjE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACzC,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACjC;AAED,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,iBAAiB,CAUpE;AAED,+FAA+F;AAC/F,eAAO,MAAM,YAAY,SAAU,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC,KAAG,MAChB,CAAC;AAEnE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CA+B5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-validation.d.ts","sourceRoot":"","sources":["../../../visio/ui/scene-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAKN,KAAK,aAAa,EAGlB,MAAM,UAAU,CAAC;AAMlB,eAAO,MAAM,eAAe,QAAmB,CAAC;AAkChD,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"scene-validation.d.ts","sourceRoot":"","sources":["../../../visio/ui/scene-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAKN,KAAK,aAAa,EAGlB,MAAM,UAAU,CAAC;AAMlB,eAAO,MAAM,eAAe,QAAmB,CAAC;AAkChD,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CA8XjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VisioPage } from '../model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The part of a selection that is moved or resized as shapes. A connector in the selection with
|
|
4
|
+
* both ends glued to selected shapes (or to members of selected groups) is not moved itself: the
|
|
5
|
+
* core lays it out again after each shape command, which puts it where its two ends now are. A
|
|
6
|
+
* connector with a free end, or an end glued outside the selection, makes the whole selection
|
|
7
|
+
* ineligible (`undefined`): its free end has no rule here, and Visio moves it differently.
|
|
8
|
+
*/
|
|
9
|
+
export declare function visioSelectionShapes(page: VisioPage, ids: readonly string[]): string[] | undefined;
|
|
10
|
+
//# sourceMappingURL=selection-connectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-connectors.d.ts","sourceRoot":"","sources":["../../../visio/ui/selection-connectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AActD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,SAAS,MAAM,EAAE,GACpB,MAAM,EAAE,GAAG,SAAS,CAqBtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-resize.d.ts","sourceRoot":"","sources":["../../../visio/ui/selection-resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"selection-resize.d.ts","sourceRoot":"","sources":["../../../visio/ui/selection-resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AAGtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAON,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,MAAM,gBAAgB,CAAC;AAmExB,6FAA6F;AAC7F,wBAAgB,yBAAyB,CACxC,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,SAAS,MAAM,EAAE,GACpB,gBAAgB,GAAG,SAAS,CAG9B;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,SAAS,MAAM,EAAE,EACtB,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,cAAc,EACnB,OAAO,GAAE,sBAA2B,GAElC;IACA,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,gBAAgB,CAAA;KAAE,EAAE,CAAC;CAClD,GACD,SAAS,CA6HX"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { VisioPage, VisioShape } from '../model.js';
|
|
2
2
|
import type { VisioGroupShapesEdit, VisioUngroupShapeEdit } from '../edit-group-commands.js';
|
|
3
3
|
/** A top-level group the pointer can move as one sheet. */
|
|
4
|
-
export declare function visioMovableGroup(page: VisioPage, id: string
|
|
4
|
+
export declare function visioMovableGroup(page: VisioPage, id: string,
|
|
5
|
+
/** Moving may leave connectors glued to members; ungrouping may not. */
|
|
6
|
+
followGlue?: boolean): VisioShape | undefined;
|
|
5
7
|
/** Group two or more selected top-level shapes; members keep page stacking order. */
|
|
6
8
|
export declare function visioGroupCommand(page: VisioPage, shapeIds: readonly string[]): VisioGroupShapesEdit | undefined;
|
|
7
9
|
/** Ungroup exactly one selected top-level group. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-group.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAuB1F,2DAA2D;AAC3D,wBAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"shape-group.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAuB1F,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,MAAM;AACV,wEAAwE;AACxE,UAAU,UAAQ,GAChB,UAAU,GAAG,SAAS,CAIxB;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,GACzB,oBAAoB,GAAG,SAAS,CAmBlC;AAED,oDAAoD;AACpD,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,GACzB,qBAAqB,GAAG,SAAS,CAGnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-move.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-move.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"shape-move.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-move.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOnE,MAAM,WAAW,cAAc;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAaD,6FAA6F;AAC7F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAsBtF;AACD,4FAA4F;AAC5F,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,cAAc,EACnB,SAAS,UAAQ,GACf,cAAc,CAKhB;AACD,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,cAAc,GACnB,WAAW,GAAG,SAAS,CAKzB;AACD,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAGlF;AACD;gDACgD;AAChD,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,KAAK,EAAE,cAAc,GACnB,SAAS,EAAE,GAAG,SAAS,CAgCzB;AACD;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GACV,SAAS,EAAE,GAAG,SAAS,GAAG,IAAI,CAMhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-resize.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-resize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,E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E,SAAS,EACf,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,cAAc,EACnB,OAAO,GAAE,sBAA2B,GAClC;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC,SAAS,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,CAAC,CAAA;CAAE,GAAG,SAAS,CAgDhG"}
|
|
@@ -5,7 +5,9 @@ import type { VisioPage, VisioShape } from '../model.js';
|
|
|
5
5
|
* stencil shapes; each stays an instance of its master and moves with the group as one member.
|
|
6
6
|
* Source protections remain enforced by core edits.
|
|
7
7
|
*/
|
|
8
|
-
export declare function visioLocalRotationShape(page: VisioPage, shapeId: string, includeGroups?: boolean
|
|
8
|
+
export declare function visioLocalRotationShape(page: VisioPage, shapeId: string, includeGroups?: boolean,
|
|
9
|
+
/** Connectors glued to members of the group follow it (core lays them out again). */
|
|
10
|
+
followGlue?: boolean): VisioShape | undefined;
|
|
9
11
|
/**
|
|
10
12
|
* What Rotate and Flip act on: a local shape or group, or a stencil instance (a group included), whose
|
|
11
13
|
* angle and flip flags are saved as local values over its master.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-rotation.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-rotation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,aAAa,UAAO,
|
|
1
|
+
{"version":3,"file":"shape-rotation.d.ts","sourceRoot":"","sources":["../../../visio/ui/shape-rotation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,aAAa,UAAO;AACpB,qFAAqF;AACrF,UAAU,UAAQ,GAChB,UAAU,GAAG,SAAS,CAgDxB;AACD;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,aAAa,UAAO,GAClB,UAAU,GAAG,SAAS,CAcxB;AACD,+FAA+F;AAC/F,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAAG,OAAO,GACzB,OAAO,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC,GAAG,SAAS,CAa1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-scene.d.ts","sourceRoot":"","sources":["../../../visio/ui/snapshot-scene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAOb,MAAM,UAAU,CAAC;AA2BlB;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"snapshot-scene.d.ts","sourceRoot":"","sources":["../../../visio/ui/snapshot-scene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAOb,MAAM,UAAU,CAAC;AA2BlB;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CA0TrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swimlane.d.ts","sourceRoot":"","sources":["../../../visio/ui/swimlane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO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,GAAG,OAAO,EAC5B,OAAO,EAAE,MAAM,GACb,SAAS,EAAE,GAAG,SAAS,CAoCzB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,GAAG,SAAS,CA4B9F;AAED,0GAA0G;AAC1G,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACV,SAAS,EAAE,GAAG,SAAS,CAoCzB;AAED,iGAAiG;AACjG,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,EAAE,CAAC,EAAE,MAAM,GACT,SAAS,EAAE,GAAG,SAAS,CAkBzB;AAED,MAAM,WAAW,mBAAmB;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACnC;AAyCD,yFAAyF;AACzF,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,GACzB,SAAS,EAAE,GAAG,SAAS,CAgCzB;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,sBAAsB,EACjC,SAAS,SAAI,GACX,SAAS,EAAE,GAAG,SAAS,CA0BzB"}
|
|
@@ -11,6 +11,10 @@ export declare const VISIO_TEMPLATES: readonly [{
|
|
|
11
11
|
readonly id: 'cross-functional-flowchart';
|
|
12
12
|
readonly name: 'Cross-Functional Flowchart';
|
|
13
13
|
readonly description: 'A process across three horizontal swimlanes that stack and resize together.';
|
|
14
|
+
}, {
|
|
15
|
+
readonly id: 'cross-functional-flowchart-vertical';
|
|
16
|
+
readonly name: 'Cross-Functional Flowchart (Vertical)';
|
|
17
|
+
readonly description: 'A process across three vertical swimlanes, lanes side by side with the flow running down.';
|
|
14
18
|
}, {
|
|
15
19
|
readonly id: 'organization-chart';
|
|
16
20
|
readonly name: 'Basic Organization Chart';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../visio/ui/templates.ts"],"names":[],"mappings":"AAIA,8EAA8E;AAC9E,eAAO,MAAM,eAAe;aACzB,EAAE,EAAE,OAAO;aAAE,IAAI,EAAE,eAAe;aAAE,WAAW,EAAE,yBAAyB;;aAE3E,EAAE,EAAE,iBAAiB;aACrB,IAAI,EAAE,iBAAiB;aACvB,WAAW,EAAE,gEAAgE;;aAG7E,EAAE,EAAE,4BAA4B;aAChC,IAAI,EAAE,4BAA4B;aAClC,WAAW,EAAE,6EAA6E;;aAG1F,EAAE,EAAE,oBAAoB;aACxB,IAAI,EAAE,0BAA0B;aAChC,WAAW,EAAE,mDAAmD;EAExD,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAErE,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,eACF,CAAC;
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../visio/ui/templates.ts"],"names":[],"mappings":"AAIA,8EAA8E;AAC9E,eAAO,MAAM,eAAe;aACzB,EAAE,EAAE,OAAO;aAAE,IAAI,EAAE,eAAe;aAAE,WAAW,EAAE,yBAAyB;;aAE3E,EAAE,EAAE,iBAAiB;aACrB,IAAI,EAAE,iBAAiB;aACvB,WAAW,EAAE,gEAAgE;;aAG7E,EAAE,EAAE,4BAA4B;aAChC,IAAI,EAAE,4BAA4B;aAClC,WAAW,EAAE,6EAA6E;;aAG1F,EAAE,EAAE,qCAAqC;aACzC,IAA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