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
package/dist/index.cjs
CHANGED
|
@@ -49091,7 +49091,8 @@ __export(opc_exports, {
|
|
|
49091
49091
|
titleGroups: () => titleGroups,
|
|
49092
49092
|
writeAppProperties: () => writeAppProperties,
|
|
49093
49093
|
writeCoreProperties: () => writeCoreProperties,
|
|
49094
|
-
writeCustomProperties: () => writeCustomProperties
|
|
49094
|
+
writeCustomProperties: () => writeCustomProperties,
|
|
49095
|
+
zlibCompress: () => zlibCompress
|
|
49095
49096
|
});
|
|
49096
49097
|
|
|
49097
49098
|
// opc/relationship-types.ts
|
|
@@ -50266,6 +50267,9 @@ function computeVerificationStatus(details) {
|
|
|
50266
50267
|
const allVerified = details.every((detail) => detail.status === "verified");
|
|
50267
50268
|
return hasInvalidSignature ? "signature-invalid" : hasRevoked ? "certificate-revoked" : hasTimestampInvalid ? "timestamp-invalid" : hasTimestampUntrusted ? "timestamp-untrusted" : hasMissing ? "reference-missing" : hasMismatch ? "digest-mismatch" : allVerified ? "verified-trusted" : hasUntrusted ? "verified-untrusted" : "present-not-verified";
|
|
50268
50269
|
}
|
|
50270
|
+
function zlibCompress(data) {
|
|
50271
|
+
return fflate.zlibSync(data);
|
|
50272
|
+
}
|
|
50269
50273
|
|
|
50270
50274
|
// diagram/picture-layout.ts
|
|
50271
50275
|
var DIAGRAM_PICTURE_SOURCE_NS = "urn:ooxml-core:diagram-picture-sources:1";
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DOMParser, XMLSerializer } from '@xmldom/xmldom';
|
|
2
2
|
import JSZip from 'jszip';
|
|
3
|
-
import { Inflate } from 'fflate';
|
|
3
|
+
import { zlibSync, Inflate } from 'fflate';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __export = (target, all) => {
|
|
@@ -49085,7 +49085,8 @@ __export(opc_exports, {
|
|
|
49085
49085
|
titleGroups: () => titleGroups,
|
|
49086
49086
|
writeAppProperties: () => writeAppProperties,
|
|
49087
49087
|
writeCoreProperties: () => writeCoreProperties,
|
|
49088
|
-
writeCustomProperties: () => writeCustomProperties
|
|
49088
|
+
writeCustomProperties: () => writeCustomProperties,
|
|
49089
|
+
zlibCompress: () => zlibCompress
|
|
49089
49090
|
});
|
|
49090
49091
|
|
|
49091
49092
|
// opc/relationship-types.ts
|
|
@@ -50260,6 +50261,9 @@ function computeVerificationStatus(details) {
|
|
|
50260
50261
|
const allVerified = details.every((detail) => detail.status === "verified");
|
|
50261
50262
|
return hasInvalidSignature ? "signature-invalid" : hasRevoked ? "certificate-revoked" : hasTimestampInvalid ? "timestamp-invalid" : hasTimestampUntrusted ? "timestamp-untrusted" : hasMissing ? "reference-missing" : hasMismatch ? "digest-mismatch" : allVerified ? "verified-trusted" : hasUntrusted ? "verified-untrusted" : "present-not-verified";
|
|
50262
50263
|
}
|
|
50264
|
+
function zlibCompress(data) {
|
|
50265
|
+
return zlibSync(data);
|
|
50266
|
+
}
|
|
50263
50267
|
|
|
50264
50268
|
// diagram/picture-layout.ts
|
|
50265
50269
|
var DIAGRAM_PICTURE_SOURCE_NS = "urn:ooxml-core:diagram-picture-sources:1";
|
package/dist/opc/index.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var xmldom = require('@xmldom/xmldom');
|
|
4
4
|
var JSZip = require('jszip');
|
|
5
|
+
var fflate = require('fflate');
|
|
5
6
|
|
|
6
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
8
|
|
|
@@ -1702,6 +1703,9 @@ function computeVerificationStatus(details) {
|
|
|
1702
1703
|
const allVerified = details.every((detail) => detail.status === "verified");
|
|
1703
1704
|
return hasInvalidSignature ? "signature-invalid" : hasRevoked ? "certificate-revoked" : hasTimestampInvalid ? "timestamp-invalid" : hasTimestampUntrusted ? "timestamp-untrusted" : hasMissing ? "reference-missing" : hasMismatch ? "digest-mismatch" : allVerified ? "verified-trusted" : hasUntrusted ? "verified-untrusted" : "present-not-verified";
|
|
1704
1705
|
}
|
|
1706
|
+
function zlibCompress(data) {
|
|
1707
|
+
return fflate.zlibSync(data);
|
|
1708
|
+
}
|
|
1705
1709
|
|
|
1706
1710
|
exports.CORE_PROPERTY_FIELDS = CORE_PROPERTY_FIELDS;
|
|
1707
1711
|
exports.CUSTOM_PROPERTIES_FMTID = CUSTOM_PROPERTIES_FMTID;
|
|
@@ -1753,3 +1757,4 @@ exports.titleGroups = titleGroups;
|
|
|
1753
1757
|
exports.writeAppProperties = writeAppProperties;
|
|
1754
1758
|
exports.writeCoreProperties = writeCoreProperties;
|
|
1755
1759
|
exports.writeCustomProperties = writeCustomProperties;
|
|
1760
|
+
exports.zlibCompress = zlibCompress;
|
package/dist/opc/index.d.ts
CHANGED
package/dist/opc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../opc/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAC/C,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../opc/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAC/C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/opc/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DOMParser, XMLSerializer } from '@xmldom/xmldom';
|
|
2
2
|
import JSZip from 'jszip';
|
|
3
|
+
import { zlibSync } from 'fflate';
|
|
3
4
|
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
@@ -1696,5 +1697,8 @@ function computeVerificationStatus(details) {
|
|
|
1696
1697
|
const allVerified = details.every((detail) => detail.status === "verified");
|
|
1697
1698
|
return hasInvalidSignature ? "signature-invalid" : hasRevoked ? "certificate-revoked" : hasTimestampInvalid ? "timestamp-invalid" : hasTimestampUntrusted ? "timestamp-untrusted" : hasMissing ? "reference-missing" : hasMismatch ? "digest-mismatch" : allVerified ? "verified-trusted" : hasUntrusted ? "verified-untrusted" : "present-not-verified";
|
|
1698
1699
|
}
|
|
1700
|
+
function zlibCompress(data) {
|
|
1701
|
+
return zlibSync(data);
|
|
1702
|
+
}
|
|
1699
1703
|
|
|
1700
|
-
export { CORE_PROPERTY_FIELDS, CUSTOM_PROPERTIES_FMTID, DEFAULT_ZIP_LIMITS, PROPERTY_CONTENT_TYPES, PROPERTY_PART_NAMES, RELATIONSHIP_TYPES, STRICT_APP_NAMESPACES, ZipLimitError, allocateCustomPropertyIds, buildContentTypesXml, buildRelationshipsXml, clonePartGraph, contentTypeForPart, customPropertyFromText, declaredEntrySize, ensureContentTypeDefault, ensureContentTypeOverride, ensureRelationship, findOfficeDocumentPart, formatW3cdtf, fromTitleGroups, getRelationshipId, guardZip, hyperlinkPolicy, inflateEntryGuarded, isOpenableHyperlinkHref, isSafeHyperlinkHref, isSafePartName, isStorableHyperlinkHref, listEmbeddedPackages, nextRelationshipId, openZip, parseAppProperties, parseContentTypes, parseCoreProperties, parseCustomProperties, parseCustomPropertyTexts, parseRelationships, relationshipsPartFor, relativePartTarget, removeContentTypeOverride, replaceEmbeddedPackage, replaceTitleGroup, resolvePartPath, signature_exports as signature, streamEntryGuarded, titleGroups, writeAppProperties, writeCoreProperties, writeCustomProperties };
|
|
1704
|
+
export { CORE_PROPERTY_FIELDS, CUSTOM_PROPERTIES_FMTID, DEFAULT_ZIP_LIMITS, PROPERTY_CONTENT_TYPES, PROPERTY_PART_NAMES, RELATIONSHIP_TYPES, STRICT_APP_NAMESPACES, ZipLimitError, allocateCustomPropertyIds, buildContentTypesXml, buildRelationshipsXml, clonePartGraph, contentTypeForPart, customPropertyFromText, declaredEntrySize, ensureContentTypeDefault, ensureContentTypeOverride, ensureRelationship, findOfficeDocumentPart, formatW3cdtf, fromTitleGroups, getRelationshipId, guardZip, hyperlinkPolicy, inflateEntryGuarded, isOpenableHyperlinkHref, isSafeHyperlinkHref, isSafePartName, isStorableHyperlinkHref, listEmbeddedPackages, nextRelationshipId, openZip, parseAppProperties, parseContentTypes, parseCoreProperties, parseCustomProperties, parseCustomPropertyTexts, parseRelationships, relationshipsPartFor, relativePartTarget, removeContentTypeOverride, replaceEmbeddedPackage, replaceTitleGroup, resolvePartPath, signature_exports as signature, streamEntryGuarded, titleGroups, writeAppProperties, writeCoreProperties, writeCustomProperties, zlibCompress };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The zlib (RFC 1950) stream of `data`, deflated synchronously. PDF's `FlateDecode` filter is this
|
|
3
|
+
* format; `fflate` is the deflate the core already ships, so no second compressor is needed.
|
|
4
|
+
*/
|
|
5
|
+
export declare function zlibCompress(data: Uint8Array): Uint8Array;
|
|
6
|
+
//# sourceMappingURL=zlib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zlib.d.ts","sourceRoot":"","sources":["../../opc/zlib.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAEzD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type VisioFormulaAst } from './formula.js';
|
|
2
|
+
import type { VisioActionRun } from './shape-sections-types.js';
|
|
3
|
+
/** One `SETF(GetRef(cell), value)` step of an action. */
|
|
4
|
+
export interface VisioSetfStep {
|
|
5
|
+
/** The cell name as the formula wrote it (`Geometry2.NoShow`, `User.Mode`). */
|
|
6
|
+
target: string;
|
|
7
|
+
value: VisioFormulaAst;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The SETF steps of an Action formula, or why it is not one this editor runs. An action runs when
|
|
11
|
+
* it is `SETF(GetRef(cell), value)` on a cell of the shape itself, or several of them added
|
|
12
|
+
* together, whose value is computed from numbers and cells (`NOT(Geometry2.NoShow)`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseActionSteps(source: string | undefined): {
|
|
15
|
+
steps: VisioSetfStep[];
|
|
16
|
+
} | {
|
|
17
|
+
reason: string;
|
|
18
|
+
};
|
|
19
|
+
/** What the model records about running an action. */
|
|
20
|
+
export declare function actionRun(source: string | undefined): VisioActionRun;
|
|
21
|
+
//# sourceMappingURL=action-formula.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-formula.d.ts","sourceRoot":"","sources":["../../visio/action-formula.ts"],"names":[],"mappings":"AACA,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,yDAAyD;AACzD,MAAM,WAAW,aAAa;IAC7B,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,eAAe,CAAC;CACvB;AAID;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,GACxB;IAAE,KAAK,EAAE,aAAa,EAAE,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAmCjD;AAED,sDAAsD;AACtD,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,cAAc,CAKpE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VisioFormulaAst, type VisioFormulaReference, type VisioFormulaValue } from './formula.js';
|
|
2
|
+
/**
|
|
3
|
+
* The text a Menu formula yields, for the shapes Visio ships: a string, or `IF(condition, text,
|
|
4
|
+
* text)` over cells, nested and joined with `&`. Anything else is not text this editor can
|
|
5
|
+
* compute and gives `undefined`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function evaluateMenuText(ast: VisioFormulaAst, read: (reference: VisioFormulaReference) => VisioFormulaValue): string | undefined;
|
|
8
|
+
//# sourceMappingURL=action-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-menu.d.ts","sourceRoot":"","sources":["../../visio/action-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;AAEnB;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,GAAG,EAAE,eAAe,EACpB,IAAI,EAAE,CAAC,SAAS,EAAE,qBAAqB,KAAK,iBAAiB,GAC3D,MAAM,GAAG,SAAS,CAapB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { FormattingWrite } from './edit-formatting.js';
|
|
2
|
+
import { type Cells } from './sheet.js';
|
|
3
|
+
/** A top bevel: Visio type 1-12 and its width and height in inches. */
|
|
4
|
+
export interface VisioBevel {
|
|
5
|
+
type: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
/** 3-D rotation in radians (counter-clockwise Z); `perspective` is the camera field of view. */
|
|
10
|
+
export interface VisioRotation3d {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
z: number;
|
|
14
|
+
perspective: number;
|
|
15
|
+
keepTextFlat: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const VISIO_BEVEL_PRESETS: {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
type: number;
|
|
21
|
+
}[];
|
|
22
|
+
/** The gallery's default bevel size, in points. */
|
|
23
|
+
export declare const VISIO_BEVEL_POINTS = 6;
|
|
24
|
+
/** Bevel types drawn with the light inverted (an inset) and with a hard, narrow profile. */
|
|
25
|
+
export declare const VISIO_BEVEL_TYPES_INSET: readonly number[];
|
|
26
|
+
export declare const VISIO_BEVEL_TYPES_SHARP: readonly number[];
|
|
27
|
+
/** Presets are named by `none` or one of the ids above. */
|
|
28
|
+
export type VisioBevelPreset = string;
|
|
29
|
+
export declare const isVisioBevelPreset: (value: unknown) => value is VisioBevelPreset;
|
|
30
|
+
/** Rotation presets in degrees. Positive X turns the right side away and positive Y the top. */
|
|
31
|
+
export declare const VISIO_ROTATION_PRESETS: readonly {
|
|
32
|
+
id: string;
|
|
33
|
+
label: string;
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
z: number;
|
|
37
|
+
perspective: number;
|
|
38
|
+
}[];
|
|
39
|
+
export type VisioRotationPreset = string;
|
|
40
|
+
export declare const isVisioRotationPreset: (value: unknown) => value is VisioRotationPreset;
|
|
41
|
+
type Add = (name: string, value: string | number, category: FormattingWrite['category'], unit?: string, formula?: string) => void;
|
|
42
|
+
/** Cell writes for a bevel preset; lengths are written in points as Visio does. */
|
|
43
|
+
export declare function bevelWrites(id: VisioBevelPreset, add: Add): void;
|
|
44
|
+
/** Cell writes for a 3-D rotation preset; angles are stored in radians with the DEG unit. */
|
|
45
|
+
export declare function rotationWrites(id: VisioRotationPreset, add: Add): void;
|
|
46
|
+
export declare function snapshotBevel(value: unknown): VisioBevelPreset;
|
|
47
|
+
export declare function snapshotRotation(value: unknown): VisioRotationPreset;
|
|
48
|
+
/** The saved top bevel; a `Themed` cell takes its value from the theme, which is not read. */
|
|
49
|
+
export declare function shapeBevel(cells: Cells): VisioBevel | undefined;
|
|
50
|
+
/** Whether a bevel the model does not draw is saved: a bottom bevel or a contour. */
|
|
51
|
+
export declare const hasUndrawnBevel: (cells: Cells) => boolean;
|
|
52
|
+
export declare function shapeRotation3d(cells: Cells): VisioRotation3d | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The parallel projection of a flat shape turned by the rotation, as an SVG matrix over local
|
|
55
|
+
* y-up coordinates [a, b, c, d] (x' = a*x + c*y, y' = b*x + d*y). Measured against Visio 16's
|
|
56
|
+
* raster export: X compresses the width, Y the height, X and Y together shear the shape so its
|
|
57
|
+
* right side drops, and Z turns it counter-clockwise. Perspective foreshortening is not applied.
|
|
58
|
+
*/
|
|
59
|
+
export declare function visioRotation3dMatrix(rotation: Pick<VisioRotation3d, 'x' | 'y' | 'z'>): [number, number, number, number];
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=bevel-3d.d.ts.map
|
|
@@ -0,0 +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;AAE7C,uEAAuE;AACvE,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AACD,gGAAgG;AAChG,MAAM,WAAW,eAAe;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB;;;;GAa4C,CAAC;AAC7E,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,4FAA4F;AAC5F,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAAW,CAAC;AACjE,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAA6B,CAAC;AAEnF,2DAA2D;AAC3D,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACtC,eAA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qBAAqB,CACpC,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,GAC9C,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAKlC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VisioPackage } from './package.js';
|
|
2
|
+
import type { CffMasters } from './cff-recalc.js';
|
|
3
|
+
/** What a master of Visio's cross-functional flowchart is, by its name. */
|
|
4
|
+
export type CffRole = 'frame' | 'lane' | 'separator' | 'swimlane-list' | 'phase-list';
|
|
5
|
+
/** The drawing's masters of the cross-functional flowchart, with their top-level shapes. */
|
|
6
|
+
export interface CffMasterSet extends CffMasters {
|
|
7
|
+
roleOf(masterId: string | null | undefined): CffRole | undefined;
|
|
8
|
+
readonly empty: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const noCffMasters: CffMasterSet;
|
|
11
|
+
/**
|
|
12
|
+
* Read the masters Visio's Cross-Functional Flowchart template puts in a drawing (CFF Container,
|
|
13
|
+
* Swimlane List, Phase List, Swimlane, Separator, found by name) so the lane commands can
|
|
14
|
+
* recognise a chart Visio built and recalculate its instances.
|
|
15
|
+
*/
|
|
16
|
+
export declare function loadCffMasters(pkg: VisioPackage): Promise<CffMasterSet>;
|
|
17
|
+
//# sourceMappingURL=cff-masters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cff-masters.d.ts","sourceRoot":"","sources":["../../visio/cff-masters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,2EAA2E;AAC3E,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,YAAY,CAAC;AAUtF,4FAA4F;AAC5F,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC/C,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACxB;AACD,eAAO,MAAM,YAAY,EAAE,YAI1B,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CA4B7E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CffMasters {
|
|
2
|
+
/** Master id to the master's top-level shape. */
|
|
3
|
+
get(id: string): Element | undefined;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Recompute the cached values of every master instance under `root` (a page's contents) from the
|
|
7
|
+
* cells the instances carry. Returns the number of cells written. Cells whose formula cannot be
|
|
8
|
+
* evaluated are left as they are.
|
|
9
|
+
*/
|
|
10
|
+
export declare function recalculateMasterInstances(root: Element, masters: CffMasters, only?: (instance: Element) => boolean): number;
|
|
11
|
+
/**
|
|
12
|
+
* Give a top-level master instance local copies of the named cells (`Width`, `Height`, `LocPinX`
|
|
13
|
+
* ...) holding their effective values, so code that reads an instance's own cells sees the
|
|
14
|
+
* size and pin the master gives it. The cells are what Visio would save for the same shape.
|
|
15
|
+
*/
|
|
16
|
+
export declare function materializeCells(root: Element, masters: CffMasters, instance: Element, names: readonly string[]): void;
|
|
17
|
+
//# sourceMappingURL=cff-recalc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cff-recalc.d.ts","sourceRoot":"","sources":["../../visio/cff-recalc.ts"],"names":[],"mappings":"AA0BA,MAAM,WAAW,UAAU;IAC1B,iDAAiD;IACjD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACrC;AA8PD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,GACnC,MAAM,CAkCR;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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** The dimension a control position is measured against: X against Width, Y against Height. */
|
|
2
|
+
export declare const controlDimension: (axis: 'x' | 'y') => "Height" | "Width";
|
|
3
|
+
/**
|
|
4
|
+
* How Visio stores a dragged control position: a ratio of the shape size (`Width*0.3`), inside
|
|
5
|
+
* the cell's own `BOUND(...)` limits when it has them. Returns the new formula, `''` for a cell
|
|
6
|
+
* that holds a plain value (the value is written and the formula stays empty), or `undefined`
|
|
7
|
+
* when the cell is computed some other way (`Width*0.5+User.Offset`), which a drag cannot
|
|
8
|
+
* rewrite without losing that relationship.
|
|
9
|
+
*/
|
|
10
|
+
export declare function rewriteControlFormula(formula: string | undefined, axis: 'x' | 'y', ratio: number): string | undefined;
|
|
11
|
+
/** Whether a drag can rewrite this formula (see `rewriteControlFormula`). */
|
|
12
|
+
export declare const controlFormulaDraggable: (formula: string | undefined, axis: 'x' | 'y') => boolean;
|
|
13
|
+
//# sourceMappingURL=control-formula.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-formula.d.ts","sourceRoot":"","sources":["../../visio/control-formula.ts"],"names":[],"mappings":"AASA,+FAA+F;AAC/F,eAAO,MAAM,gBAAgB,SAAU,GAAG,GAAG,GAAG,uBAAwC,CAAC;AAEzF;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,GAAG,GAAG,GAAG,EACf,KAAK,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAepB;AAED,6EAA6E;AAC7E,eAAO,MAAM,uBAAuB,YAAa,MAAM,GAAG,SAAS,QAAQ,GAAG,GAAG,GAAG,KAAG,OACjC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MasterTemplate } from './edit-text-instance.js';
|
|
2
|
+
/** Run one Actions row of a shape: its SETF steps change cells of the shape itself. */
|
|
3
|
+
export interface VisioActionEdit {
|
|
4
|
+
type: 'run-action';
|
|
5
|
+
pageId: string;
|
|
6
|
+
shapeId: string;
|
|
7
|
+
/** The Actions row: its IX, or its name when it has no IX. */
|
|
8
|
+
row: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const isVisioActionEdit: (edit: {
|
|
11
|
+
type: string;
|
|
12
|
+
}) => edit is VisioActionEdit;
|
|
13
|
+
/** Copy and validate an action edit; the shape and row are checked when it is applied. */
|
|
14
|
+
export declare function snapshotActionEdit(edit: VisioActionEdit): VisioActionEdit;
|
|
15
|
+
/**
|
|
16
|
+
* Run an action the way Visio does: `SETF(GetRef(cell), value)` stores the evaluated value in the
|
|
17
|
+
* cell as a plain value, then everything that follows is recalculated and the shape's menu texts
|
|
18
|
+
* are refreshed (`Hide Box` after `Show Box`). Disabled actions, other functions, targets outside
|
|
19
|
+
* the shape and values this editor cannot evaluate are refused with the reason.
|
|
20
|
+
*/
|
|
21
|
+
export declare function applyActionEdit(roots: ReadonlyMap<string, Element>, edit: VisioActionEdit, template: MasterTemplate, check: () => void): Promise<readonly string[]>;
|
|
22
|
+
//# sourceMappingURL=edit-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-action.d.ts","sourceRoot":"","sources":["../../visio/edit-action.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAW3D,uFAAuF;AACvF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,iBAAiB,SAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,IAAI,eACxC,CAAC;AAE5B,0FAA0F;AAC1F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAQzE;AAQD;;;;;GAKG;AACH,wBAAsB,eAAe,CACpC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CA+D5B"}
|
|
@@ -18,6 +18,9 @@ import { type VisioGroupEdit } from './edit-group-commands.js';
|
|
|
18
18
|
import { type VisioPageSetupEdits } from './edit-page-setup-commands.js';
|
|
19
19
|
export type { VisioPageSetupEdit, VisioPagePropertiesEdit, VisioPageAltTextEdit, VisioPageDecorationEdit, VisioPageSetupEdits, VisioScaleUnit, } from './edit-page-setup-commands.js';
|
|
20
20
|
import { type VisioShapeDataEdit } from './edit-shape-data-commands.js';
|
|
21
|
+
import { type VisioControlEdit } from './edit-control.js';
|
|
22
|
+
import { type VisioActionEdit } from './edit-action.js';
|
|
23
|
+
export type { VisioControlEdit, VisioActionEdit };
|
|
21
24
|
export type { VisioShapeDataEdit, VisioShapeDataFields, VisioShapeDataType, } from './edit-shape-data-commands.js';
|
|
22
25
|
import { type VisioDataEdit } from './edit-data-commands.js';
|
|
23
26
|
export type { VisioDataEdit, VisioDataImportEdit, VisioDataRefreshEdit, VisioDataDeleteEdit, VisioDataLinkEdit, VisioDataUnlinkEdit, } from './edit-data-commands.js';
|
|
@@ -151,7 +154,7 @@ export interface VisioPageSizeEdit {
|
|
|
151
154
|
height: number;
|
|
152
155
|
}
|
|
153
156
|
export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit | VisioPageSetupEdits;
|
|
154
|
-
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioTextFieldUpdateEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioChartObjectEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioDataEdit | VisioAssignLayersEdit | VisioLayerPropertiesEdit | VisioMasterInstanceEdit | VisioStencilMasterDropEdit | VisioGuideEdit | VisioContainerEdit | VisioPictureEdit;
|
|
157
|
+
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;
|
|
155
158
|
export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
|
|
156
159
|
/** Potential direct changes used by both package and master dependency admission. */
|
|
157
160
|
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,EA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I,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,CAuMb"}
|
|
@@ -28,7 +28,30 @@ export interface VisioGlueBox {
|
|
|
28
28
|
height: number;
|
|
29
29
|
transform: VisioMatrix;
|
|
30
30
|
}
|
|
31
|
-
/** The
|
|
31
|
+
/** The page directions a dynamic connector leaves a shape by, in side order (bottom, right, top, left). */
|
|
32
|
+
export declare const VISIO_GLUE_DIRECTIONS: readonly [{
|
|
33
|
+
readonly x: 0;
|
|
34
|
+
readonly y: -1;
|
|
35
|
+
}, {
|
|
36
|
+
readonly x: 1;
|
|
37
|
+
readonly y: 0;
|
|
38
|
+
}, {
|
|
39
|
+
readonly x: 0;
|
|
40
|
+
readonly y: 1;
|
|
41
|
+
}, {
|
|
42
|
+
readonly x: -1;
|
|
43
|
+
readonly y: 0;
|
|
44
|
+
}];
|
|
45
|
+
/** Whether the shape's axes are turned off the page axes (a multiple of 90 degrees is not). */
|
|
46
|
+
export declare function visioGlueTurned(box: VisioGlueBox): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The four sites of a shape's alignment box, in page coordinates. A shape on the page axes has
|
|
49
|
+
* its side midpoints. For a turned shape, each page direction belongs to the side it faces most.
|
|
50
|
+
* Visio 16 glues there at the point where the line through the shape's centre crosses that side
|
|
51
|
+
* (read back through COM for 0.5 rad on tall and wide boxes), and at the side's midpoint when the
|
|
52
|
+
* line leaves the shape through the neighbouring side instead.
|
|
53
|
+
* Not modelled: Visio also slides the point along the side to line up with the other end.
|
|
54
|
+
*/
|
|
32
55
|
export declare function visioGlueSites(box: VisioGlueBox): VisioGluePoint[];
|
|
33
56
|
/**
|
|
34
57
|
* Walking shape-to-shape glue: each glued end sits on the side midpoint of its shape nearest the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector-glue.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-glue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,gGAAgG;AAChG,eAAO,MAAM,eAAe,oDAAoD,CAAC;AAOjF,eAAO,MAAM,gBAAgB,YAAa,MAAM,WAA8C,CAAC;AAC/F;;;GAGG;AACH,eAAO,MAAM,cAAc,YAAa,MAAM,SAAS,MAAM,WACqC,CAAC;AACnG,wFAAwF;AACxF,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAGhD;AAED,oEAAoE;AACpE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEtF;AAED,wGAAwG;AACxG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAMvE;AAED,kGAAkG;AAClG,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAU3E;AAED,MAAM,WAAW,cAAc;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AACD,wFAAwF;AACxF,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,WAAW,CAAC;CACvB;AAED,+
|
|
1
|
+
{"version":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E,CAAC,EAAE,CAAC;EACJ,CAAC;AAEX,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAG1D;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,YAAY,GAAG,cAAc,EAAE,CA4BlE;AAID;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,YAAY,GAAG,cAAc,EACpC,GAAG,EAAE,YAAY,GAAG,cAAc,GAChC;IAAE,KAAK,EAAE,cAAc,CAAC;IAAC,GAAG,EAAE,cAAc,CAAA;CAAE,CAWhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector-layout.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-layout.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"edit-connector-layout.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-layout.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAIN,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGN,KAAK,aAAa,EAElB,KAAK,eAAe,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,KAAK,CAAC;AAClC,eAAO,MAAM,IAAI,EAAE,SAAS,GAAG,EAAqB,CAAC;AACrD,eAAO,MAAM,MAAM,QAAS,GAAG,oBAAwC,CAAC;AAYxE,uFAAuF;AACvF,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,CAKlE;AACD,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAI9E;AAED,gFAAgF;AAChF,MAA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1
|
+
import type { ConnectorSite, End } from './edit-connector-layout.js';
|
|
2
|
+
import type { ConnectorGlue } from './edit-connector.js';
|
|
3
|
+
/**
|
|
4
|
+
* The sides an org chart reporting line joins, or nothing for any other connector. A Dynamic
|
|
5
|
+
* connector whose route style is the organization chart's runs from the bottom of the manager to
|
|
6
|
+
* the top of the subordinate, as Visio's org chart routing draws it; to an Assistant Belt it
|
|
7
|
+
* drops from the manager's bottom and enters the assistant's side nearest that line. Only ends
|
|
8
|
+
* glued to whole shapes are handled; an end glued to a connection point keeps its point.
|
|
9
|
+
*/
|
|
10
|
+
export declare function orgChartSites(root: Element, connector: Element, glue: ConnectorGlue, sites: (end: End) => ConnectorSite[]): Record<End, ConnectorSite> | undefined;
|
|
11
|
+
//# sourceMappingURL=edit-connector-org.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connector-org.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-org.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC5B,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,aAAa,EAAE,GAClC,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,GAAG,SAAS,CA2BxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector-reroute.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-reroute.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+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AC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAAC,EAC5D,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAmBnB;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,CAAC,EACjE,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAOnB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAWvF;AAED,iDAAiD;AACjD,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAWnB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { VisioMatrix } from './model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The shape named `shapeId` at any depth of the page, with the chain of groups above it (outermost
|
|
4
|
+
* first, the shape last). Nothing is proven here; callers read the chain's cached cells.
|
|
5
|
+
*/
|
|
6
|
+
export declare function shapeChain(root: Element, shapeId: string): Element[] | undefined;
|
|
7
|
+
/** `parent` after `local`: maps a point of the shape through its group chain to the page. */
|
|
8
|
+
export declare function composeMatrix(parent: VisioMatrix, local: VisioMatrix): VisioMatrix;
|
|
9
|
+
/** The cached size and local-to-parent transform of one shape of a chain (stencil-aware). */
|
|
10
|
+
export declare function localFrame(shape: Element): {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
matrix: VisioMatrix;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The size and page transform of a shape at any depth: its own local-to-parent transform composed
|
|
17
|
+
* with each group above it (PinX/PinY, LocPin, Angle and flips), so a connector glued to a group
|
|
18
|
+
* member lands where the member is drawn.
|
|
19
|
+
*/
|
|
20
|
+
export declare function worldFrame(chain: readonly Element[]): {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
transform: VisioMatrix;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=edit-connector-world.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-connector-world.d.ts","sourceRoot":"","sources":["../../visio/edit-connector-world.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,CAWhF;AAED,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,WAAW,CAWlF;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,CAoBjG;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,GAAG;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,WAAW,CAAC;CACvB,CAUA"}
|
|
@@ -17,6 +17,8 @@ export interface ConnectorGlue {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const connectRows: (root: Element) => Element[];
|
|
19
19
|
export declare function topShape(root: Element, shapeId: string): Element | undefined;
|
|
20
|
+
/** A glue target at any depth: top-level shapes and the members of groups. */
|
|
21
|
+
export declare function glueShape(root: Element, shapeId: string): Element | undefined;
|
|
20
22
|
/** A glue target's alignment box and transform, read from its own proven caches. */
|
|
21
23
|
export declare function glueBox(root: Element, shapeId: string): VisioGlueBox;
|
|
22
24
|
/** The local Connection rows of a shape (not deleted), by zero-based IX. */
|
|
@@ -34,7 +36,9 @@ export declare function glueNewConnector(root: Element, shape: Element, edit: Li
|
|
|
34
36
|
/** Prove a connector's Connect rows and glue formulas are the owned dynamic or point glue. */
|
|
35
37
|
export declare function proveConnector(root: Element, connectorId: string): ConnectorGlue;
|
|
36
38
|
/** Classify a geometry target: connectors glued to it, and whether it is itself glued. */
|
|
37
|
-
export declare function glueParticipants(root: Element, shapeId: string
|
|
39
|
+
export declare function glueParticipants(root: Element, shapeId: string,
|
|
40
|
+
/** A group that is moved, resized or turned: connectors glued to its members follow too. */
|
|
41
|
+
withMembers?: boolean): {
|
|
38
42
|
connectors: ConnectorGlue[];
|
|
39
43
|
connector?: ConnectorGlue;
|
|
40
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-connector.d.ts","sourceRoot":"","sources":["../../visio/edit-connector.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAON,KAAK,YAAY,EACjB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-connector.d.ts","sourceRoot":"","sources":["../../visio/edit-connector.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAON,KAAK,YAAY,EACjB,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EAON,KAAK,aAAa,EAClB,KAAK,GAAG,EACR,MAAM,yBAAyB,CAAC;AASjC,sGAAsG;AACtG,eAAO,MAAM,iBAAiB,6JAC6H,CAAC;AAC5J,KAAK,UAAU,GAAG,O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OAAO,GAAG,IAAI,CAuCpF;AAED,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI,CAWtF;AAED,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,aAAa,CAoDhF;AAED,0FAA0F;AAC1F,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM;AACf,4FAA4F;AAC5F,WAAW,UAAQ,GACjB;IAAE,UAAU,EAAE,aAAa,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,CAAA;CAAE,CA8B5D;AAED,mGAAmG;AACnG,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,GAAG,EAAE,GAAG,IAAI,CAoB9F;AAED,yGAAyG;AACzG,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,GAC/C,IAAI,CAyBN"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { MasterTemplate } from './edit-text-instance.js';
|
|
2
|
+
/**
|
|
3
|
+
* Move a control handle: `x` and `y` are the handle's new position in the shape's local y-up
|
|
4
|
+
* inches. An axis left out stays where it is.
|
|
5
|
+
*/
|
|
6
|
+
export interface VisioControlEdit {
|
|
7
|
+
type: 'set-control';
|
|
8
|
+
pageId: string;
|
|
9
|
+
shapeId: string;
|
|
10
|
+
/** The Controls row: its IX, or its name (`Row_1`) when it has no IX. */
|
|
11
|
+
row: string;
|
|
12
|
+
x?: number;
|
|
13
|
+
y?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const isVisioControlEdit: (edit: {
|
|
16
|
+
type: string;
|
|
17
|
+
}) => edit is VisioControlEdit;
|
|
18
|
+
/** Copy and validate a control edit; the shape and row are checked when it is applied. */
|
|
19
|
+
export declare function snapshotControlEdit(edit: VisioControlEdit): VisioControlEdit;
|
|
20
|
+
/**
|
|
21
|
+
* Drag a control handle the way Visio saves it: the X or Y cell of the Controls row becomes a
|
|
22
|
+
* ratio of the shape size (inside the cell's own BOUND limits), and every cell that follows it
|
|
23
|
+
* (geometry, connection points, text block) is recalculated. A handle whose position is computed
|
|
24
|
+
* some other way, is locked on that axis (XCon or YCon not 0) or has a dependent this editor
|
|
25
|
+
* cannot recompute is refused with the reason, and nothing is written.
|
|
26
|
+
*/
|
|
27
|
+
export declare function applyControlEdit(roots: ReadonlyMap<string, Element>, edit: VisioControlEdit, template: MasterTemplate, check: () => void): Promise<readonly string[]>;
|
|
28
|
+
//# sourceMappingURL=edit-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-control.d.ts","sourceRoot":"","sources":["../../visio/edit-control.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAK3D;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACX;AAED,eAAO,MAAM,kBAAkB,SAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,IAAI,gBACxC,CAAC;AAQ7B,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,CAiB5E;AAOD;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,gBAAgB,EACtB,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAoE5B"}
|
|
@@ -71,6 +71,10 @@ export interface VisioShapeFormatEdit extends Target {
|
|
|
71
71
|
softEdges?: number;
|
|
72
72
|
/** Reflection; size 0 removes it. */
|
|
73
73
|
reflection?: VisioReflectionEffect;
|
|
74
|
+
/** Bevel preset id (`none` removes it); see `VISIO_BEVEL_PRESETS`. */
|
|
75
|
+
bevel?: string;
|
|
76
|
+
/** 3-D rotation preset id (`off` removes it); see `VISIO_ROTATION_PRESETS`. */
|
|
77
|
+
rotation3d?: string;
|
|
74
78
|
}
|
|
75
79
|
export type VisioFormatEdit = VisioTextFormatEdit | VisioShapeFormatEdit;
|
|
76
80
|
export declare const isVisioFormatEdit: (edit: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-formatting-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAGN,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAIN,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-formatting-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAGN,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAIN,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEN,K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|
1
|
-
{"version":3,"file":"edit-geometry.d.ts","sourceRoot":"","sources":["../../visio/edit-geometry.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBhF,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,IAAI,EACjB,eAAe,GAAE,eAAwC,EACzD,WAAW,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,GAC/C,SAAS,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"edit-geometry.d.ts","sourceRoot":"","sources":["../../visio/edit-geometry.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBhF,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,IAAI,EACjB,eAAe,GAAE,eAAwC,EACzD,WAAW,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,GAC/C,SAAS,MAAM,EAAE,CAuTnB"}
|