ooxml-core 1.34.0 → 1.36.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.
Files changed (156) hide show
  1. package/dist/automation/index.cjs +4999 -3059
  2. package/dist/automation/index.mjs +4999 -3059
  3. package/dist/index.cjs +5 -1
  4. package/dist/index.mjs +6 -2
  5. package/dist/opc/index.cjs +5 -0
  6. package/dist/opc/index.d.ts +1 -0
  7. package/dist/opc/index.d.ts.map +1 -1
  8. package/dist/opc/index.mjs +5 -1
  9. package/dist/opc/zlib.d.ts +6 -0
  10. package/dist/opc/zlib.d.ts.map +1 -0
  11. package/dist/visio/action-formula.d.ts +21 -0
  12. package/dist/visio/action-formula.d.ts.map +1 -0
  13. package/dist/visio/action-menu.d.ts +8 -0
  14. package/dist/visio/action-menu.d.ts.map +1 -0
  15. package/dist/visio/bevel-3d.d.ts +88 -0
  16. package/dist/visio/bevel-3d.d.ts.map +1 -0
  17. package/dist/visio/cff-author.d.ts +14 -0
  18. package/dist/visio/cff-author.d.ts.map +1 -0
  19. package/dist/visio/cff-masters.d.ts +28 -0
  20. package/dist/visio/cff-masters.d.ts.map +1 -0
  21. package/dist/visio/cff-recalc.d.ts +17 -0
  22. package/dist/visio/cff-recalc.d.ts.map +1 -0
  23. package/dist/visio/control-formula.d.ts +13 -0
  24. package/dist/visio/control-formula.d.ts.map +1 -0
  25. package/dist/visio/edit-action.d.ts +22 -0
  26. package/dist/visio/edit-action.d.ts.map +1 -0
  27. package/dist/visio/edit-commands.d.ts +11 -1
  28. package/dist/visio/edit-commands.d.ts.map +1 -1
  29. package/dist/visio/edit-connector-glue.d.ts +24 -1
  30. package/dist/visio/edit-connector-glue.d.ts.map +1 -1
  31. package/dist/visio/edit-connector-layout.d.ts.map +1 -1
  32. package/dist/visio/edit-connector-org.d.ts +11 -0
  33. package/dist/visio/edit-connector-org.d.ts.map +1 -0
  34. package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
  35. package/dist/visio/edit-connector-world.d.ts +25 -0
  36. package/dist/visio/edit-connector-world.d.ts.map +1 -0
  37. package/dist/visio/edit-connector.d.ts +5 -1
  38. package/dist/visio/edit-connector.d.ts.map +1 -1
  39. package/dist/visio/edit-control.d.ts +28 -0
  40. package/dist/visio/edit-control.d.ts.map +1 -0
  41. package/dist/visio/edit-formatting-commands.d.ts +10 -0
  42. package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
  43. package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
  44. package/dist/visio/edit-geometry.d.ts.map +1 -1
  45. package/dist/visio/edit-group-resize-instances.d.ts +43 -0
  46. package/dist/visio/edit-group-resize-instances.d.ts.map +1 -0
  47. package/dist/visio/edit-group-resize.d.ts +1 -0
  48. package/dist/visio/edit-group-resize.d.ts.map +1 -1
  49. package/dist/visio/edit-group-rotation.d.ts +8 -0
  50. package/dist/visio/edit-group-rotation.d.ts.map +1 -1
  51. package/dist/visio/edit-instance-geometry.d.ts +13 -0
  52. package/dist/visio/edit-instance-geometry.d.ts.map +1 -1
  53. package/dist/visio/edit-instance-recalculate.d.ts +6 -1
  54. package/dist/visio/edit-instance-recalculate.d.ts.map +1 -1
  55. package/dist/visio/edit-instance-sheet.d.ts.map +1 -1
  56. package/dist/visio/edit-master-add.d.ts +3 -0
  57. package/dist/visio/edit-master-add.d.ts.map +1 -1
  58. package/dist/visio/edit-master-drop.d.ts.map +1 -1
  59. package/dist/visio/edit-master-media.d.ts +22 -0
  60. package/dist/visio/edit-master-media.d.ts.map +1 -0
  61. package/dist/visio/edit-master-scope.d.ts.map +1 -1
  62. package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
  63. package/dist/visio/edit-shape-create.d.ts.map +1 -1
  64. package/dist/visio/edit-sheet-cells.d.ts +23 -0
  65. package/dist/visio/edit-sheet-cells.d.ts.map +1 -0
  66. package/dist/visio/edit-stencil-connector-write.d.ts.map +1 -1
  67. package/dist/visio/edit-stencil-connector.d.ts +7 -2
  68. package/dist/visio/edit-stencil-connector.d.ts.map +1 -1
  69. package/dist/visio/edit-stencil-import.d.ts +1 -1
  70. package/dist/visio/edit-stencil-import.d.ts.map +1 -1
  71. package/dist/visio/edit-style-admission.d.ts +6 -0
  72. package/dist/visio/edit-style-admission.d.ts.map +1 -1
  73. package/dist/visio/edit-swimlane-clone.d.ts +7 -0
  74. package/dist/visio/edit-swimlane-clone.d.ts.map +1 -0
  75. package/dist/visio/edit-swimlane-layout.d.ts +9 -2
  76. package/dist/visio/edit-swimlane-layout.d.ts.map +1 -1
  77. package/dist/visio/edit-swimlane-ops.d.ts +2 -1
  78. package/dist/visio/edit-swimlane-ops.d.ts.map +1 -1
  79. package/dist/visio/edit-swimlane-stamp.d.ts +22 -0
  80. package/dist/visio/edit-swimlane-stamp.d.ts.map +1 -0
  81. package/dist/visio/edit.d.ts.map +1 -1
  82. package/dist/visio/index.cjs +3875 -1590
  83. package/dist/visio/index.d.ts +8 -0
  84. package/dist/visio/index.d.ts.map +1 -1
  85. package/dist/visio/index.mjs +3860 -1591
  86. package/dist/visio/model.d.ts +20 -0
  87. package/dist/visio/model.d.ts.map +1 -1
  88. package/dist/visio/paragraphs.d.ts +1 -1
  89. package/dist/visio/paragraphs.d.ts.map +1 -1
  90. package/dist/visio/parser.d.ts.map +1 -1
  91. package/dist/visio/path-segments.d.ts +25 -0
  92. package/dist/visio/path-segments.d.ts.map +1 -0
  93. package/dist/visio/shape-sections-types.d.ts +71 -0
  94. package/dist/visio/shape-sections-types.d.ts.map +1 -0
  95. package/dist/visio/shape-sections.d.ts +12 -0
  96. package/dist/visio/shape-sections.d.ts.map +1 -0
  97. package/dist/visio/shapes.d.ts.map +1 -1
  98. package/dist/visio/solid-3d.d.ts +55 -0
  99. package/dist/visio/solid-3d.d.ts.map +1 -0
  100. package/dist/visio/style.d.ts.map +1 -1
  101. package/dist/visio/swimlane-membership.d.ts +12 -0
  102. package/dist/visio/swimlane-membership.d.ts.map +1 -0
  103. package/dist/visio/swimlane-stack.d.ts +3 -1
  104. package/dist/visio/swimlane-stack.d.ts.map +1 -1
  105. package/dist/visio/tab-stops.d.ts +20 -0
  106. package/dist/visio/tab-stops.d.ts.map +1 -0
  107. package/dist/visio/theme-line.d.ts +10 -0
  108. package/dist/visio/theme-line.d.ts.map +1 -1
  109. package/dist/visio/theme-solid.d.ts +21 -0
  110. package/dist/visio/theme-solid.d.ts.map +1 -0
  111. package/dist/visio/ui/data-graphic-config.d.ts +1 -0
  112. package/dist/visio/ui/data-graphic-config.d.ts.map +1 -1
  113. package/dist/visio/ui/data-graphic-items.d.ts +23 -0
  114. package/dist/visio/ui/data-graphic-items.d.ts.map +1 -0
  115. package/dist/visio/ui/data-graphic-rules.d.ts +7 -0
  116. package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
  117. package/dist/visio/ui/data-graphics.d.ts +1 -1
  118. package/dist/visio/ui/data-graphics.d.ts.map +1 -1
  119. package/dist/visio/ui/data-visualizer-edits.d.ts +23 -0
  120. package/dist/visio/ui/data-visualizer-edits.d.ts.map +1 -0
  121. package/dist/visio/ui/data-visualizer.d.ts +47 -0
  122. package/dist/visio/ui/data-visualizer.d.ts.map +1 -0
  123. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  124. package/dist/visio/ui/index.cjs +31643 -28428
  125. package/dist/visio/ui/index.d.ts +6 -0
  126. package/dist/visio/ui/index.d.ts.map +1 -1
  127. package/dist/visio/ui/index.mjs +31622 -28429
  128. package/dist/visio/ui/org-chart-belt.d.ts +20 -0
  129. package/dist/visio/ui/org-chart-belt.d.ts.map +1 -0
  130. package/dist/visio/ui/org-chart-edit.d.ts +59 -0
  131. package/dist/visio/ui/org-chart-edit.d.ts.map +1 -0
  132. package/dist/visio/ui/org-chart-import.d.ts +35 -0
  133. package/dist/visio/ui/org-chart-import.d.ts.map +1 -0
  134. package/dist/visio/ui/org-chart-layout.d.ts +43 -0
  135. package/dist/visio/ui/org-chart-layout.d.ts.map +1 -0
  136. package/dist/visio/ui/org-chart-stencil-data.d.ts +11 -0
  137. package/dist/visio/ui/org-chart-stencil-data.d.ts.map +1 -0
  138. package/dist/visio/ui/org-chart-template.d.ts +7 -0
  139. package/dist/visio/ui/org-chart-template.d.ts.map +1 -0
  140. package/dist/visio/ui/org-chart.d.ts +14 -26
  141. package/dist/visio/ui/org-chart.d.ts.map +1 -1
  142. package/dist/visio/ui/scene-validation.d.ts.map +1 -1
  143. package/dist/visio/ui/selection-connectors.d.ts +10 -0
  144. package/dist/visio/ui/selection-connectors.d.ts.map +1 -0
  145. package/dist/visio/ui/selection-resize.d.ts.map +1 -1
  146. package/dist/visio/ui/shape-group.d.ts +3 -1
  147. package/dist/visio/ui/shape-group.d.ts.map +1 -1
  148. package/dist/visio/ui/shape-move.d.ts.map +1 -1
  149. package/dist/visio/ui/shape-resize.d.ts.map +1 -1
  150. package/dist/visio/ui/shape-rotation.d.ts +3 -1
  151. package/dist/visio/ui/shape-rotation.d.ts.map +1 -1
  152. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  153. package/dist/visio/ui/swimlane.d.ts.map +1 -1
  154. package/dist/visio/ui/templates.d.ts +4 -0
  155. package/dist/visio/ui/templates.d.ts.map +1 -1
  156. 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";
@@ -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;
@@ -8,4 +8,5 @@ export * from './embedded-packages.js';
8
8
  export * from './properties/index.js';
9
9
  export * as signature from './signature/index.js';
10
10
  export * from './zip-limits.js';
11
+ export { zlibCompress } from './zlib.js';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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,88 @@
1
+ import type { FormattingWrite } from './edit-formatting.js';
2
+ import { type Cells } from './sheet.js';
3
+ import type { ThemeSolid } from './theme-solid.js';
4
+ /** A top bevel: Visio type 1-12 and its width and height in inches. */
5
+ export interface VisioBevel {
6
+ type: number;
7
+ width: number;
8
+ height: number;
9
+ }
10
+ /** Extrusion (Format Shape > 3-D Format > Depth): `BevelDepthSize` in inches and its colour. */
11
+ export interface VisioExtrusion {
12
+ depth: number;
13
+ color: string;
14
+ }
15
+ /** Contour (3-D Format > Contour): an outline of `size` inches drawn around the 3-D shape. */
16
+ export interface VisioContour {
17
+ size: number;
18
+ color: string;
19
+ }
20
+ /** 3-D rotation in radians (counter-clockwise Z); `perspective` is the camera field of view. */
21
+ export interface VisioRotation3d {
22
+ x: number;
23
+ y: number;
24
+ z: number;
25
+ perspective: number;
26
+ keepTextFlat: boolean;
27
+ }
28
+ export declare const VISIO_BEVEL_PRESETS: {
29
+ id: string;
30
+ label: string;
31
+ type: number;
32
+ }[];
33
+ /** The gallery's default bevel size, in points. */
34
+ export declare const VISIO_BEVEL_POINTS = 6;
35
+ /** Bevel types drawn with the light inverted (an inset) and with a hard, narrow profile. */
36
+ export declare const VISIO_BEVEL_TYPES_INSET: readonly number[];
37
+ export declare const VISIO_BEVEL_TYPES_SHARP: readonly number[];
38
+ /** Presets are named by `none` or one of the ids above. */
39
+ export type VisioBevelPreset = string;
40
+ export declare const isVisioBevelPreset: (value: unknown) => value is VisioBevelPreset;
41
+ /** Rotation presets in degrees. Positive X turns the right side away and positive Y the top. */
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
+ }[];
50
+ export type VisioRotationPreset = string;
51
+ export declare const isVisioRotationPreset: (value: unknown) => value is VisioRotationPreset;
52
+ type Add = (name: string, value: string | number, category: FormattingWrite['category'], unit?: string, formula?: string) => void;
53
+ /** Cell writes for a bevel preset; lengths are written in points as Visio does. */
54
+ export declare function bevelWrites(id: VisioBevelPreset, add: Add): void;
55
+ /** Cell writes for a 3-D rotation preset; angles are stored in radians with the DEG unit. */
56
+ export declare function rotationWrites(id: VisioRotationPreset, add: Add): void;
57
+ /** The depth and contour of the 3-D format: lengths in points, colours as #rrggbb. */
58
+ export interface SolidPatch {
59
+ extrusionDepth?: number;
60
+ extrusionColor?: string;
61
+ contourSize?: number;
62
+ contourColor?: string;
63
+ }
64
+ export declare function solidWrites(edit: SolidPatch, add: Add): void;
65
+ export declare function snapshotSolid(edit: SolidPatch): SolidPatch;
66
+ export declare function snapshotBevel(value: unknown): VisioBevelPreset;
67
+ export declare function snapshotRotation(value: unknown): VisioRotationPreset;
68
+ /**
69
+ * The top bevel: the saved cells, or for a `Themed` cell the theme's `a:bevelT`. A bevel of type
70
+ * 1-12 with no size still makes the shape a solid (extrusion and contour need it, measured in
71
+ * Visio 16), so it is returned with zero width and height.
72
+ */
73
+ export declare function shapeBevel(cells: Cells, themed?: ThemeSolid): VisioBevel | undefined;
74
+ /** The extrusion, only on a shape with a top bevel (a depth alone is not drawn by Visio 16). */
75
+ export declare function shapeExtrusion(cells: Cells, solid: boolean, colorOf: (name: string, fallback: string) => string): VisioExtrusion | undefined;
76
+ export declare function shapeContour(cells: Cells, solid: boolean, themed: ThemeSolid | undefined, colorOf: (name: string, fallback: string) => string): VisioContour | undefined;
77
+ /** Whether a bevel the model does not draw is saved: a bottom bevel (no visible effect in front). */
78
+ export declare const hasUndrawnBevel: (cells: Cells) => boolean;
79
+ export declare function shapeRotation3d(cells: Cells): VisioRotation3d | undefined;
80
+ /**
81
+ * The parallel projection of a flat shape turned by the rotation, as an SVG matrix over local
82
+ * y-up coordinates [a, b, c, d] (x' = a*x + c*y, y' = b*x + d*y). Measured against Visio 16's
83
+ * raster export: X compresses the width, Y the height, X and Y together shear the shape so its
84
+ * right side drops, and Z turns it counter-clockwise. Perspective and extrusion are `solid-3d.ts`.
85
+ */
86
+ export declare function visioRotation3dMatrix(rotation: Pick<VisioRotation3d, 'x' | 'y' | 'z'>): [number, number, number, number];
87
+ export {};
88
+ //# 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;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;CACf;AACD,gGAAgG;AAChG,MAAM,WAAW,cAAc;IAC9B,KAAK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AAG,SAAS,CAW1B;AACD,qGAAqG;AACrG,eAAO,MAAM,eAAe,UAAW,KAAK,KAAG,OAA8C,CAAC;AAC9F,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,eAAe,GAAG,SAAS,CAczE;AACD;;;;;GAKG;AACH,wBAAgB,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,14 @@
1
+ import type { VisioPackageLimits } from './package-common.js';
2
+ import { type CffRole } from './cff-masters.js';
3
+ /** The order Visio's template lists them in. */
4
+ export declare const CFF_ROLES: readonly CffRole[];
5
+ /**
6
+ * Add Visio's hidden cross-functional flowchart masters (CFF Container, Swimlane List, Phase
7
+ * List, Swimlane, Separator) to the drawing, as Visio's template does, so the shapes of a chart
8
+ * this package creates can be instances of them. Masters added earlier are found by UniqueID.
9
+ */
10
+ export declare function ensureCffMasters(source: Uint8Array, limits: VisioPackageLimits, maxOutput: number, deadline: number, check: () => void): Promise<{
11
+ bytes: Uint8Array;
12
+ changedParts: string[];
13
+ }>;
14
+ //# sourceMappingURL=cff-author.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cff-author.d.ts","sourceRoot":"","sources":["../../visio/cff-author.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAoG/D,gDAAgD;AAChD,eAAO,MAAM,SAAS,EAAE,SAAS,OAAO,EAMvC,CAAC;AA2EF;;;;GAIG;AACH,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAqBxD"}
@@ -0,0 +1,28 @@
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
+ /**
6
+ * The UniqueIDs of the masters this package writes for the charts it creates (`cff-author.ts`).
7
+ * They carry Visio's names and structure rows but not its formulas, so the editor treats their
8
+ * instances as it treats its own plain shapes (direct cells), and only tells Visio what they are.
9
+ */
10
+ export declare const CFF_AUTHORED_IDS: Record<CffRole, string>;
11
+ /** The drawing's masters of the cross-functional flowchart, with their top-level shapes. */
12
+ export interface CffMasterSet extends CffMasters {
13
+ /** The role of a master Visio built; masters this package wrote answer nothing. */
14
+ roleOf(masterId: string | null | undefined): CffRole | undefined;
15
+ /** The ID of the master this package wrote for a role, when the drawing has it. */
16
+ authoredId(role: CffRole): string | undefined;
17
+ /** The part of that master, which a page that uses it must be related to. */
18
+ authoredPart(role: CffRole): string | undefined;
19
+ readonly empty: boolean;
20
+ }
21
+ export declare const noCffMasters: CffMasterSet;
22
+ /**
23
+ * Read the masters Visio's Cross-Functional Flowchart template puts in a drawing (CFF Container,
24
+ * Swimlane List, Phase List, Swimlane, Separator, found by name) so the lane commands can
25
+ * recognise a chart Visio built and recalculate its instances.
26
+ */
27
+ export declare function loadCffMasters(pkg: VisioPackage): Promise<CffMasterSet>;
28
+ //# 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;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAMpD,CAAC;AAKF,4FAA4F;AAC5F,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC/C,mFAAmF;IACnF,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,mFAAmF;IACnF,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAC9C,6EAA6E;IAC7E,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACxB;AACD,eAAO,MAAM,YAAY,EAAE,YAM1B,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAkC7E"}
@@ -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';
@@ -88,6 +91,8 @@ export type VisioGeometryEdit = (Target & {
88
91
  connect?: VisioConnectorGlue;
89
92
  /** A connector's route; omitted means straight. */
90
93
  route?: VisioConnectorRoute;
94
+ /** The line's own text (a connector label); it sits at the middle and follows the line. */
95
+ text?: string;
91
96
  }) | (BoxCreation & {
92
97
  type: 'create-rectangle';
93
98
  shape?: VisioOutlineShape;
@@ -118,6 +123,11 @@ export type VisioGeometryEdit = (Target & {
118
123
  y: number;
119
124
  }) | (Target & {
120
125
  type: 'delete-shape';
126
+ /**
127
+ * Run this deletion after the rest of the batch, in a transaction of its own (a stencil
128
+ * instance can only be deleted that way), still as one edit for the caller.
129
+ */
130
+ deferred?: boolean;
121
131
  }) | VisioConnectorEdit;
122
132
  /** Insert a blank foreground page after an existing page, copying its PageSheet settings. */
123
133
  export interface VisioPageInsert {
@@ -151,7 +161,7 @@ export interface VisioPageSizeEdit {
151
161
  height: number;
152
162
  }
153
163
  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;
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;
155
165
  export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
156
166
  /** Potential direct changes used by both package and master dependency admission. */
157
167
  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,CAAC;AACtF,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAA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,SAAS,GAClB,aAAa,GACb,mBAAmB,GACnB,wBAAwB,GACxB,wBAAwB,GACxB,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,wBAAwB,GACxB,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,CAwMb"}
@@ -28,7 +28,30 @@ export interface VisioGlueBox {
28
28
  height: number;
29
29
  transform: VisioMatrix;
30
30
  }
31
- /** The four side midpoints of a shape's alignment box, in page coordinates. */
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,OA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FAAyF;AACzF,wBAAgB,SAAS,CAAC,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,CAIhF;AACD,qFAAqF;AACrF,wBAAgB,WAAW,CAC1B,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,GAAG,EAAE,SAAS,aAAa,EAAE,GAC3B,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,CAa5B;AAOD,2FAA2F;AAC3F,wBAAgB,aAAa,CAC5B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EACjC,SAAS,GAAE,SAAS,aAAa,EAAO,GACtC,eAAe,EAAE,CAMnB;AA4BD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,mBAAmB,EAC1B,QAAQ,EAAE,SAAS,eAAe,EAAE,GAClC,IAAI,CAwEN;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EACjC,KAAK,EAAE,MAAM,IAAI,EACjB,SAAS,GAAE,SAAS,aAAa,EAAO,GACtC,SAAS,MAAM,EAAE,CAuBnB"}
@@ -0,0 +1,11 @@
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;AACzD,OAAO,EASN,KAAK,GAAG,EACR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAUN,KAAK,aAAa,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAkBzD,oGAAoG;AACpG,eAAO,MAAM,OAAO,UAAW,OAAO,KAAG,mBAKf,CAAC;AAO3B,iGAAiG;AACjG,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAIzD;AACD,gGAAgG;AAChG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,sBAAiB,GAAG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,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAmCnB;AAED,uFAAuF;AACvF,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAAC,EAC5D,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAmBnB;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,CAAC,EACjE,KAAK,EAAE,MAAM,IAAI,GACf,SAAS,MAAM,EAAE,CAOnB;AAED;;;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;AAS/B,OAAO,EAON,KAAK,aAAa,EAClB,KAAK,GAAG,EACR,MAAM,yBAAyB,CAAC;AASjC,sGAAsG;AACtG,eAAO,MAAM,iBAAiB,6JAC6H,CAAC;AAC5J,KAAK,UAAU,GAAG,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AACtE,kGAAkG;AAClG,MAAM,WAAW,OAAO;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,WAAW,SAAU,OAAO,cACyC,CAAC;AACnF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,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