ooxml-core 1.35.0 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/dist/PptxHandler-2JSQ22VD.cjs +14 -0
  2. package/dist/{PptxHandler-XCYX5DVX.mjs → PptxHandler-3T5DTNKA.mjs} +2 -2
  3. package/dist/PptxHandler-7T7ZS7IK.mjs +5 -0
  4. package/dist/{PresentationBuilder-JBTNOIL7.mjs → PresentationBuilder-D6ZICJWN.mjs} +3 -3
  5. package/dist/{PresentationBuilder-HA56ZY23.cjs → PresentationBuilder-HCMXZQDK.cjs} +6 -6
  6. package/dist/{PresentationBuilder-IVLUEB4K.mjs → PresentationBuilder-XHKNDJMD.mjs} +2 -2
  7. package/dist/automation/index.cjs +20529 -17975
  8. package/dist/automation/index.mjs +20510 -17975
  9. package/dist/chart/index.cjs +1 -1
  10. package/dist/chart/index.mjs +1 -1
  11. package/dist/chart/region-map/index.cjs +1 -1
  12. package/dist/chart/region-map/index.mjs +1 -1
  13. package/dist/{chunk-UQMAPY6D.mjs → chunk-2TQJHNVU.mjs} +1 -1
  14. package/dist/{chunk-RI56PFGL.mjs → chunk-4YBSHQ76.mjs} +5 -5
  15. package/dist/{chunk-XF6ZRA2D.cjs → chunk-AFALJ5TA.cjs} +3 -3
  16. package/dist/{chunk-MK2IBZU6.mjs → chunk-CNIKTXAV.mjs} +1 -1
  17. package/dist/{chunk-PA5ADSTX.cjs → chunk-GZOYXHDF.cjs} +1269 -1269
  18. package/dist/{chunk-LSO5SSFX.mjs → chunk-H2Q42P6P.mjs} +1 -1
  19. package/dist/{chunk-EGBNPVBA.mjs → chunk-J43V3QOA.mjs} +2 -2
  20. package/dist/{chunk-TJXK4D4U.mjs → chunk-M2DFN3SP.mjs} +4 -4
  21. package/dist/{chunk-RPJHMPEL.mjs → chunk-OEM2ECAJ.mjs} +1 -1
  22. package/dist/{chunk-GNGL4BO7.mjs → chunk-RHQQS6LJ.mjs} +4 -4
  23. package/dist/{chunk-A27O7M5X.cjs → chunk-SNID2FDY.cjs} +1 -1
  24. package/dist/{chunk-EDRS3OSM.mjs → chunk-WNAPUUAT.mjs} +1 -0
  25. package/dist/color/theme-palette.d.ts +1 -1
  26. package/dist/color/theme-palette.d.ts.map +1 -1
  27. package/dist/crypto/index.cjs +1 -1
  28. package/dist/crypto/index.mjs +1 -1
  29. package/dist/diagram/index.cjs +1 -1
  30. package/dist/diagram/index.mjs +1 -1
  31. package/dist/docx/block-parser.d.ts.map +1 -1
  32. package/dist/docx/comment-parts.d.ts +33 -0
  33. package/dist/docx/comment-parts.d.ts.map +1 -0
  34. package/dist/docx/comments.d.ts +5 -2
  35. package/dist/docx/comments.d.ts.map +1 -1
  36. package/dist/docx/embedded.cjs +15231 -14731
  37. package/dist/docx/embedded.mjs +15231 -14731
  38. package/dist/docx/glossary.d.ts.map +1 -1
  39. package/dist/docx/index.cjs +10771 -10329
  40. package/dist/docx/index.mjs +10771 -10329
  41. package/dist/docx/layout/index.cjs +81 -73
  42. package/dist/docx/layout/index.mjs +81 -73
  43. package/dist/docx/load/index.cjs +16891 -16391
  44. package/dist/docx/load/index.mjs +16891 -16391
  45. package/dist/docx/page-background.d.ts +4 -3
  46. package/dist/docx/page-background.d.ts.map +1 -1
  47. package/dist/docx/paragraph-text.d.ts +5 -0
  48. package/dist/docx/paragraph-text.d.ts.map +1 -0
  49. package/dist/docx/parse.d.ts.map +1 -1
  50. package/dist/docx/save.d.ts.map +1 -1
  51. package/dist/docx/special-characters.d.ts +2 -0
  52. package/dist/docx/special-characters.d.ts.map +1 -1
  53. package/dist/docx/theme-color.d.ts.map +1 -1
  54. package/dist/docx/ui/index.cjs +135 -135
  55. package/dist/docx/ui/index.mjs +135 -135
  56. package/dist/docx/write-comment-identities.d.ts +8 -0
  57. package/dist/docx/write-comment-identities.d.ts.map +1 -0
  58. package/dist/docx/write-comment-metadata.d.ts +12 -0
  59. package/dist/docx/write-comment-metadata.d.ts.map +1 -0
  60. package/dist/docx/write-comment-text.d.ts +3 -0
  61. package/dist/docx/write-comment-text.d.ts.map +1 -0
  62. package/dist/docx/write-comments.d.ts +1 -4
  63. package/dist/docx/write-comments.d.ts.map +1 -1
  64. package/dist/drawingml/index.cjs +1 -1
  65. package/dist/drawingml/index.mjs +1 -1
  66. package/dist/index.cjs +110 -6
  67. package/dist/index.mjs +91 -6
  68. package/dist/math/index.cjs +1 -1
  69. package/dist/math/index.mjs +1 -1
  70. package/dist/opc/index.cjs +78 -3
  71. package/dist/opc/index.mjs +78 -3
  72. package/dist/opc/signature/index.d.ts +1 -0
  73. package/dist/opc/signature/index.d.ts.map +1 -1
  74. package/dist/opc/signature/package.d.ts +12 -0
  75. package/dist/opc/signature/package.d.ts.map +1 -0
  76. package/dist/pptx/automation/index.cjs +21 -4
  77. package/dist/pptx/automation/index.d.ts +1 -0
  78. package/dist/pptx/automation/index.d.ts.map +1 -1
  79. package/dist/pptx/automation/index.mjs +16 -6
  80. package/dist/pptx/automation/schemas/index.cjs +1 -0
  81. package/dist/pptx/automation/schemas/index.mjs +1 -1
  82. package/dist/pptx/automation/schemas/presentation-schemas.cjs +1 -0
  83. package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -0
  84. package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
  85. package/dist/pptx/automation/schemas/presentation-schemas.mjs +1 -1
  86. package/dist/pptx/cli/index.cjs +10 -4
  87. package/dist/pptx/cli/index.mjs +4 -4
  88. package/dist/pptx/converter/index.cjs +7 -1
  89. package/dist/pptx/converter/index.mjs +2 -2
  90. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  91. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  92. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  93. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  94. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  95. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  96. package/dist/pptx/index.cjs +10 -4
  97. package/dist/pptx/index.mjs +5 -5
  98. package/dist/pptx/ui/index.d.ts +1 -1
  99. package/dist/teams/index.cjs +812 -95
  100. package/dist/teams/index.mjs +811 -95
  101. package/dist/visio/bevel-3d.d.ts +37 -14
  102. package/dist/visio/bevel-3d.d.ts.map +1 -1
  103. package/dist/visio/bevel-shading.d.ts +72 -0
  104. package/dist/visio/bevel-shading.d.ts.map +1 -0
  105. package/dist/visio/cff-author.d.ts +14 -0
  106. package/dist/visio/cff-author.d.ts.map +1 -0
  107. package/dist/visio/cff-masters.d.ts +11 -0
  108. package/dist/visio/cff-masters.d.ts.map +1 -1
  109. package/dist/visio/cff-recalc.d.ts.map +1 -1
  110. package/dist/visio/collab/index.cjs +1 -1
  111. package/dist/visio/collab/index.mjs +1 -1
  112. package/dist/visio/data-graphic-instance.d.ts +44 -0
  113. package/dist/visio/data-graphic-instance.d.ts.map +1 -0
  114. package/dist/visio/data-graphic-masters.d.ts +38 -0
  115. package/dist/visio/data-graphic-masters.d.ts.map +1 -0
  116. package/dist/visio/data-graphic-place.d.ts +34 -0
  117. package/dist/visio/data-graphic-place.d.ts.map +1 -0
  118. package/dist/visio/edit-commands.d.ts +10 -1
  119. package/dist/visio/edit-commands.d.ts.map +1 -1
  120. package/dist/visio/edit-data-graphic-guard.d.ts +13 -0
  121. package/dist/visio/edit-data-graphic-guard.d.ts.map +1 -0
  122. package/dist/visio/edit-data-graphic-owner.d.ts +9 -0
  123. package/dist/visio/edit-data-graphic-owner.d.ts.map +1 -0
  124. package/dist/visio/edit-data-graphic-refresh.d.ts +14 -0
  125. package/dist/visio/edit-data-graphic-refresh.d.ts.map +1 -0
  126. package/dist/visio/edit-data-graphic.d.ts +33 -0
  127. package/dist/visio/edit-data-graphic.d.ts.map +1 -0
  128. package/dist/visio/edit-formatting-commands.d.ts +6 -0
  129. package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
  130. package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
  131. package/dist/visio/edit-formatting-text-commands.d.ts +8 -0
  132. package/dist/visio/edit-formatting-text-commands.d.ts.map +1 -1
  133. package/dist/visio/edit-formatting-text-extra.d.ts +14 -0
  134. package/dist/visio/edit-formatting-text-extra.d.ts.map +1 -1
  135. package/dist/visio/edit-formatting-text.d.ts.map +1 -1
  136. package/dist/visio/edit-formatting.d.ts.map +1 -1
  137. package/dist/visio/edit-instance-geometry.d.ts.map +1 -1
  138. package/dist/visio/edit-instance-recalculate.d.ts +6 -1
  139. package/dist/visio/edit-instance-recalculate.d.ts.map +1 -1
  140. package/dist/visio/edit-shape-create.d.ts.map +1 -1
  141. package/dist/visio/edit-shape-data.d.ts.map +1 -1
  142. package/dist/visio/edit-stencil-connector.d.ts.map +1 -1
  143. package/dist/visio/edit-swimlane-cff.d.ts +28 -0
  144. package/dist/visio/edit-swimlane-cff.d.ts.map +1 -0
  145. package/dist/visio/edit-swimlane-clone.d.ts +8 -4
  146. package/dist/visio/edit-swimlane-clone.d.ts.map +1 -1
  147. package/dist/visio/edit-swimlane-layout.d.ts +6 -1
  148. package/dist/visio/edit-swimlane-layout.d.ts.map +1 -1
  149. package/dist/visio/edit-swimlane-ops.d.ts.map +1 -1
  150. package/dist/visio/edit-swimlane-stamp.d.ts +22 -0
  151. package/dist/visio/edit-swimlane-stamp.d.ts.map +1 -0
  152. package/dist/visio/edit.d.ts.map +1 -1
  153. package/dist/visio/formula-analyze.d.ts.map +1 -1
  154. package/dist/visio/formula-evaluate.d.ts.map +1 -1
  155. package/dist/visio/formula.d.ts.map +1 -1
  156. package/dist/visio/index.cjs +4279 -2236
  157. package/dist/visio/index.d.ts +4 -1
  158. package/dist/visio/index.d.ts.map +1 -1
  159. package/dist/visio/index.mjs +4262 -2237
  160. package/dist/visio/master-list.d.ts +3 -3
  161. package/dist/visio/master-list.d.ts.map +1 -1
  162. package/dist/visio/model.d.ts +12 -3
  163. package/dist/visio/model.d.ts.map +1 -1
  164. package/dist/visio/path-segments.d.ts +25 -0
  165. package/dist/visio/path-segments.d.ts.map +1 -0
  166. package/dist/visio/rotation-presets.d.ts +25 -0
  167. package/dist/visio/rotation-presets.d.ts.map +1 -0
  168. package/dist/visio/shape-sections.d.ts +4 -3
  169. package/dist/visio/shape-sections.d.ts.map +1 -1
  170. package/dist/visio/shape-structure.d.ts.map +1 -1
  171. package/dist/visio/shapes.d.ts +2 -0
  172. package/dist/visio/shapes.d.ts.map +1 -1
  173. package/dist/visio/solid-3d.d.ts +64 -0
  174. package/dist/visio/solid-3d.d.ts.map +1 -0
  175. package/dist/visio/style.d.ts.map +1 -1
  176. package/dist/visio/theme-solid.d.ts +21 -0
  177. package/dist/visio/theme-solid.d.ts.map +1 -0
  178. package/dist/visio/ui/data-graphic-config.d.ts +4 -19
  179. package/dist/visio/ui/data-graphic-config.d.ts.map +1 -1
  180. package/dist/visio/ui/data-graphic-items.d.ts.map +1 -1
  181. package/dist/visio/ui/data-graphic-native.d.ts +20 -0
  182. package/dist/visio/ui/data-graphic-native.d.ts.map +1 -0
  183. package/dist/visio/ui/data-graphics.d.ts.map +1 -1
  184. package/dist/visio/ui/data-visualizer-edits.d.ts +1 -0
  185. package/dist/visio/ui/data-visualizer-edits.d.ts.map +1 -1
  186. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  187. package/dist/visio/ui/index.cjs +4273 -2347
  188. package/dist/visio/ui/index.mjs +4270 -2348
  189. package/dist/visio/ui/org-chart-belt.d.ts +20 -0
  190. package/dist/visio/ui/org-chart-belt.d.ts.map +1 -0
  191. package/dist/visio/ui/org-chart-edit.d.ts +8 -1
  192. package/dist/visio/ui/org-chart-edit.d.ts.map +1 -1
  193. package/dist/visio/ui/org-chart-import.d.ts.map +1 -1
  194. package/dist/visio/ui/scene-validation.d.ts.map +1 -1
  195. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  196. package/dist/visio/ui/swimlane.d.ts.map +1 -1
  197. package/dist/visio/ui/text-dialog.d.ts +12 -0
  198. package/dist/visio/ui/text-dialog.d.ts.map +1 -1
  199. package/dist/xlsx/collab/index.cjs +45 -2
  200. package/dist/xlsx/collab/index.mjs +45 -2
  201. package/dist/xlsx/collab/part-specs.d.ts.map +1 -1
  202. package/dist/xlsx/collab/sheets.d.ts +1 -0
  203. package/dist/xlsx/collab/sheets.d.ts.map +1 -1
  204. package/dist/xlsx/edit/annotations.d.ts +4 -0
  205. package/dist/xlsx/edit/annotations.d.ts.map +1 -1
  206. package/dist/xlsx/edit/clipboard-annotations.d.ts.map +1 -1
  207. package/dist/xlsx/edit/comment-identities.d.ts +4 -0
  208. package/dist/xlsx/edit/comment-identities.d.ts.map +1 -0
  209. package/dist/xlsx/edit/session.d.ts.map +1 -1
  210. package/dist/xlsx/edit/sheets.d.ts.map +1 -1
  211. package/dist/xlsx/edit/types.d.ts +3 -0
  212. package/dist/xlsx/edit/types.d.ts.map +1 -1
  213. package/dist/xlsx/formula/functions/filterxml.d.ts +2 -0
  214. package/dist/xlsx/formula/functions/filterxml.d.ts.map +1 -0
  215. package/dist/xlsx/formula/functions/registry.d.ts.map +1 -1
  216. package/dist/xlsx/index.cjs +1007 -285
  217. package/dist/xlsx/index.mjs +988 -285
  218. package/dist/xlsx/layout/split.d.ts +3 -1
  219. package/dist/xlsx/layout/split.d.ts.map +1 -1
  220. package/dist/xlsx/load/index.cjs +809 -126
  221. package/dist/xlsx/load/index.mjs +790 -126
  222. package/dist/xlsx/model.d.ts +19 -7
  223. package/dist/xlsx/model.d.ts.map +1 -1
  224. package/dist/xlsx/read/comments.d.ts +3 -1
  225. package/dist/xlsx/read/comments.d.ts.map +1 -1
  226. package/dist/xlsx/read/conditional.d.ts +2 -2
  227. package/dist/xlsx/read/conditional.d.ts.map +1 -1
  228. package/dist/xlsx/read/data-validations.d.ts +7 -0
  229. package/dist/xlsx/read/data-validations.d.ts.map +1 -0
  230. package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
  231. package/dist/xlsx/read/worksheet.d.ts.map +1 -1
  232. package/dist/xlsx/ui/commands/i18n/messages.d.ts.map +1 -1
  233. package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
  234. package/dist/xlsx/ui/grid/geometry.d.ts +3 -0
  235. package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
  236. package/dist/xlsx/ui/index.cjs +952 -168
  237. package/dist/xlsx/ui/index.mjs +933 -169
  238. package/dist/xlsx/ui/selection.d.ts +3 -0
  239. package/dist/xlsx/ui/selection.d.ts.map +1 -1
  240. package/dist/xlsx/validation-extensions.d.ts +6 -0
  241. package/dist/xlsx/validation-extensions.d.ts.map +1 -0
  242. package/dist/xlsx/write/comment-ids.d.ts +14 -0
  243. package/dist/xlsx/write/comment-ids.d.ts.map +1 -0
  244. package/dist/xlsx/write/comment-mentions.d.ts +6 -0
  245. package/dist/xlsx/write/comment-mentions.d.ts.map +1 -0
  246. package/dist/xlsx/write/comment-persons.d.ts +16 -0
  247. package/dist/xlsx/write/comment-persons.d.ts.map +1 -0
  248. package/dist/xlsx/write/comments.d.ts +5 -11
  249. package/dist/xlsx/write/comments.d.ts.map +1 -1
  250. package/dist/xlsx/write/conditional.d.ts +2 -2
  251. package/dist/xlsx/write/conditional.d.ts.map +1 -1
  252. package/dist/xlsx/write/data-validations.d.ts +6 -0
  253. package/dist/xlsx/write/data-validations.d.ts.map +1 -0
  254. package/dist/xlsx/write/save.d.ts.map +1 -1
  255. package/dist/xlsx/write/sheet-parts.d.ts +4 -0
  256. package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
  257. package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
  258. package/dist/xlsx/write/threaded-comments.d.ts +19 -0
  259. package/dist/xlsx/write/threaded-comments.d.ts.map +1 -0
  260. package/dist/xlsx/write/worksheet.d.ts.map +1 -1
  261. package/dist/xml/index.cjs +31 -1
  262. package/dist/xml/index.d.ts +1 -0
  263. package/dist/xml/index.d.ts.map +1 -1
  264. package/dist/xml/index.mjs +11 -2
  265. package/dist/xml/xml.d.ts +2 -0
  266. package/dist/xml/xml.d.ts.map +1 -1
  267. package/dist/xml/xpath.d.ts +9 -0
  268. package/dist/xml/xpath.d.ts.map +1 -0
  269. package/package.json +2 -1
  270. package/dist/PptxHandler-5UDSMCBG.cjs +0 -14
  271. package/dist/PptxHandler-TTRTAQAR.mjs +0 -5
@@ -1,10 +1,26 @@
1
1
  import type { FormattingWrite } from './edit-formatting.js';
2
2
  import { type Cells } from './sheet.js';
3
+ import { VISIO_ROTATION_PRESETS } from './rotation-presets.js';
4
+ import type { ThemeSolid } from './theme-solid.js';
3
5
  /** A top bevel: Visio type 1-12 and its width and height in inches. */
4
6
  export interface VisioBevel {
5
7
  type: number;
6
8
  width: number;
7
9
  height: number;
10
+ /** `BevelLightingType` 1-15, when the shape saves a non-default one (see `bevel-shading.ts`). */
11
+ lighting?: number;
12
+ /** `BevelMaterialType` 1-12, when saved and not the default. */
13
+ material?: number;
14
+ }
15
+ /** Extrusion (Format Shape > 3-D Format > Depth): `BevelDepthSize` in inches and its colour. */
16
+ export interface VisioExtrusion {
17
+ depth: number;
18
+ color: string;
19
+ }
20
+ /** Contour (3-D Format > Contour): an outline of `size` inches drawn around the 3-D shape. */
21
+ export interface VisioContour {
22
+ size: number;
23
+ color: string;
8
24
  }
9
25
  /** 3-D rotation in radians (counter-clockwise Z); `perspective` is the camera field of view. */
10
26
  export interface VisioRotation3d {
@@ -27,15 +43,7 @@ export declare const VISIO_BEVEL_TYPES_SHARP: readonly number[];
27
43
  /** Presets are named by `none` or one of the ids above. */
28
44
  export type VisioBevelPreset = string;
29
45
  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
- }[];
46
+ export { VISIO_ROTATION_PRESETS };
39
47
  export type VisioRotationPreset = string;
40
48
  export declare const isVisioRotationPreset: (value: unknown) => value is VisioRotationPreset;
41
49
  type Add = (name: string, value: string | number, category: FormattingWrite['category'], unit?: string, formula?: string) => void;
@@ -43,19 +51,34 @@ type Add = (name: string, value: string | number, category: FormattingWrite['cat
43
51
  export declare function bevelWrites(id: VisioBevelPreset, add: Add): void;
44
52
  /** Cell writes for a 3-D rotation preset; angles are stored in radians with the DEG unit. */
45
53
  export declare function rotationWrites(id: VisioRotationPreset, add: Add): void;
54
+ /** The depth and contour of the 3-D format: lengths in points, colours as #rrggbb. */
55
+ export interface SolidPatch {
56
+ extrusionDepth?: number;
57
+ extrusionColor?: string;
58
+ contourSize?: number;
59
+ contourColor?: string;
60
+ }
61
+ export declare function solidWrites(edit: SolidPatch, add: Add): void;
62
+ export declare function snapshotSolid(edit: SolidPatch): SolidPatch;
46
63
  export declare function snapshotBevel(value: unknown): VisioBevelPreset;
47
64
  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. */
65
+ /**
66
+ * The top bevel: the saved cells, or for a `Themed` cell the theme's `a:bevelT`. A bevel of type
67
+ * 1-12 with no size still makes the shape a solid (extrusion and contour need it, measured in
68
+ * Visio 16), so it is returned with zero width and height.
69
+ */
70
+ export declare function shapeBevel(cells: Cells, themed?: ThemeSolid): VisioBevel | undefined;
71
+ /** The extrusion, only on a shape with a top bevel (a depth alone is not drawn by Visio 16). */
72
+ export declare function shapeExtrusion(cells: Cells, solid: boolean, colorOf: (name: string, fallback: string) => string): VisioExtrusion | undefined;
73
+ export declare function shapeContour(cells: Cells, solid: boolean, themed: ThemeSolid | undefined, colorOf: (name: string, fallback: string) => string): VisioContour | undefined;
74
+ /** Whether a bevel the model does not draw is saved: a bottom bevel (no visible effect in front). */
51
75
  export declare const hasUndrawnBevel: (cells: Cells) => boolean;
52
76
  export declare function shapeRotation3d(cells: Cells): VisioRotation3d | undefined;
53
77
  /**
54
78
  * The parallel projection of a flat shape turned by the rotation, as an SVG matrix over local
55
79
  * y-up coordinates [a, b, c, d] (x' = a*x + c*y, y' = b*x + d*y). Measured against Visio 16's
56
80
  * 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.
81
+ * right side drops, and Z turns it counter-clockwise. Perspective and extrusion are `solid-3d.ts`.
58
82
  */
59
83
  export declare function visioRotation3dMatrix(rotation: Pick<VisioRotation3d, 'x' | 'y' | 'z'>): [number, number, number, number];
60
- export {};
61
84
  //# sourceMappingURL=bevel-3d.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bevel-3d.d.ts","sourceRoot":"","sources":["../../visio/bevel-3d.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;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;AACt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AE,OAAO,GAAG,mBAAmB,CAGpE;AAMD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,CAgBpF;AACD,gGAAgG;AAChG,wBAAgB,cAAc,CAC7B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,GACjD,cAAc,GAAG,SAAS,CAG5B;AACD,wBAAgB,YAAY,CAC3B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,UAAU,GAAG,SAAS,EAC9B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,GACjD,YAAY,GAAG,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,72 @@
1
+ /**
2
+ * Bevel profiles, lighting and materials, DOM-free: the numbers the SVG bevel filter is built from.
3
+ *
4
+ * A bevel is drawn as a height field. Each of the 12 gallery bevels has a profile h(t): the surface
5
+ * height at a fraction t of the bevel width from the outer edge (t = 0) to the face (t = 1). The
6
+ * profiles are shaped by eye from Visio 16 raster exports of a 2 x 1.5 in rectangle with a 0.3 in
7
+ * bevel (a column through the top edge, a row through the left edge), so they reproduce each
8
+ * bevel's character (convex, concave, stepped, grooved) and not its exact curves; the corners are
9
+ * rounded where Visio mitres them.
10
+ *
11
+ * `BevelLightingType` (1-15, 0 and anything above 15 read as 1) is the gallery's lighting. Each
12
+ * entry holds the brightness of the face and of the four facets of the Angle bevel (a 45 degree
13
+ * chamfer) relative to the unlit fill, measured from the same exports; `bevelLight` fits one
14
+ * directional light and an ambient term to them. `BevelMaterialType` is read for the flat material
15
+ * (7, no shading) and the three powder materials (9-11, which lighten the face and soften the
16
+ * shading); the others, including the opaque white one (8), draw as the default material.
17
+ * `BevelLightingAngle` changed nothing in the export, so it is not read.
18
+ */
19
+ export interface BevelPoint {
20
+ t: number;
21
+ h: number;
22
+ }
23
+ /** The profile of a bevel type (1-12; others read as 5, a plain chamfer) as height points. */
24
+ export declare function bevelProfile(type: number): BevelPoint[];
25
+ /** Height of a profile at `t` in 0-1 (linear between points, clamped). */
26
+ export declare function bevelHeightAt(points: readonly BevelPoint[], t: number): number;
27
+ /** The standard deviation of the blur the height field is read through, in bevel widths. */
28
+ export declare const BEVEL_BLUR_WIDTHS: number;
29
+ export interface BevelHeightTable {
30
+ /** Heights scaled to 0-1, for an `feComponentTransfer` table over the blurred alpha. */
31
+ values: number[];
32
+ /** Rise of the profile (highest minus lowest) in units of the bevel height. */
33
+ rise: number;
34
+ }
35
+ /**
36
+ * The table that turns a blurred alpha (an edge blurred with `BEVEL_BLUR_WIDTHS` bevel widths reads
37
+ * Phi(d / sigma) at depth d) back into the bevel's height at that depth, so a height-field lighting
38
+ * filter sees the profile instead of the blur's own S-curve. Depths beyond the bevel width are the
39
+ * face. Outside the edge (alpha at or below one half) the height is the profile's start.
40
+ */
41
+ export declare function bevelHeightTable(type: number, entries?: number): BevelHeightTable;
42
+ export declare const BEVEL_LIGHTING_TYPES: number;
43
+ /** A lighting gallery type; 0 (the default) and out-of-range values are the first, three point. */
44
+ export declare const normalBevelLighting: (type: number) => number;
45
+ export interface BevelLight {
46
+ /** Direction to the light on the page (degrees clockwise from the right, y down). */
47
+ azimuth: number;
48
+ /** Height of the light above the page plane in degrees. */
49
+ elevation: number;
50
+ /** Brightness of a surface facing the light head on, against the unlit fill. */
51
+ diffuse: number;
52
+ /** Brightness of a surface the light does not reach. */
53
+ ambient: number;
54
+ /** Brightness of the flat face. */
55
+ face: number;
56
+ }
57
+ /**
58
+ * One directional light and an ambient term fitted to the measured facet brightness of the Angle
59
+ * bevel: brightness = ambient + diffuse * (n . L), with the facet normals tilted 45 degrees.
60
+ */
61
+ export declare function bevelLight(lighting: number): BevelLight;
62
+ export interface BevelMaterial {
63
+ /** Multiplier of the shading's departure from the face. */
64
+ contrast: number;
65
+ /** Fraction of white mixed into the face (the powder materials). */
66
+ lift: number;
67
+ }
68
+ /** Material 7 is flat (no shading) and 9-11 are the powder materials; every other value is plain. */
69
+ export declare function bevelMaterial(type: number): BevelMaterial;
70
+ /** Materials the renderer cannot draw (8 is an opaque white one) and that draw as the default. */
71
+ export declare const isUndrawnBevelMaterial: (type: number) => boolean;
72
+ //# sourceMappingURL=bevel-shading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bevel-shading.d.ts","sourceRoot":"","sources":["../../visio/bevel-shading.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,UAAU;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAuED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAEvD;AACD,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAO9E;AAWD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,QAAU,CAAC;AAEzC,MAAM,WAAW,gBAAgB;IAChC,wFAAwF;IACxF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;CACb;AACD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,SAAM,GAAG,gBAAgB,CAgB9E;AAoBD,eAAO,MAAM,oBAAoB,QAAqC,CAAC;AACvE,mGAAmG;AACnG,eAAO,MAAM,mBAAmB,SAAU,MAAM,KAAG,MAC4B,CAAC;AAEhF,MAAM,WAAW,UAAU;IAC1B,qFAAqF;IACrF,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAavD;AAED,MAAM,WAAW,aAAa;IAC7B,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;CACb;AACD,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAazD;AACD,kGAAkG;AAClG,eAAO,MAAM,sBAAsB,SAAU,MAAM,KAAG,OAAqB,CAAC"}
@@ -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"}
@@ -2,9 +2,20 @@ import type { VisioPackage } from './package.js';
2
2
  import type { CffMasters } from './cff-recalc.js';
3
3
  /** What a master of Visio's cross-functional flowchart is, by its name. */
4
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>;
5
11
  /** The drawing's masters of the cross-functional flowchart, with their top-level shapes. */
6
12
  export interface CffMasterSet extends CffMasters {
13
+ /** The role of a master Visio built; masters this package wrote answer nothing. */
7
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;
8
19
  readonly empty: boolean;
9
20
  }
10
21
  export declare const noCffMasters: CffMasterSet;
@@ -1 +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"}
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"}
@@ -1 +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"}
1
+ {"version":3,"file":"cff-recalc.d.ts","sourceRoot":"","sources":["../../visio/cff-recalc.ts"],"names":[],"mappings":"AA4BA,MAAM,WAAW,UAAU;IAC1B,iDAAiD;IACjD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACrC;AAoSD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,GACnC,MAAM,CAoCR;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,SAAS,MAAM,EAAE,GACtB,IAAI,CAYN"}
@@ -241,7 +241,7 @@ function parseXml(xml, options = {}) {
241
241
  try {
242
242
  parsed = new xmldom.DOMParser({
243
243
  onError: (level, message) => {
244
- if (level !== "warning") parseError = message;
244
+ if (level !== "warning" || options.warningsAsErrors) parseError = message;
245
245
  }
246
246
  }).parseFromString(xml, "application/xml");
247
247
  } catch (error) {
@@ -216,7 +216,7 @@ function parseXml(xml, options = {}) {
216
216
  try {
217
217
  parsed = new DOMParser({
218
218
  onError: (level, message) => {
219
- if (level !== "warning") parseError = message;
219
+ if (level !== "warning" || options.warningsAsErrors) parseError = message;
220
220
  }
221
221
  }).parseFromString(xml, "application/xml");
222
222
  } catch (error) {
@@ -0,0 +1,44 @@
1
+ import { type NativeDataGraphicKind } from './data-graphic-masters.js';
2
+ import { type VisioDataGraphicPosition } from './data-graphic-place.js';
3
+ /** What one callout instance needs to be written. */
4
+ export interface CalloutInstance {
5
+ id: string;
6
+ /** The instance's name: the master's, then `Name.ID` for later ones. */
7
+ name: string;
8
+ masterId: string;
9
+ ownerId: string;
10
+ kind: NativeDataGraphicKind;
11
+ /** The owner's Shape Data row the callout reads, and that row's label. */
12
+ field: string;
13
+ label: string;
14
+ /** The row's value as saved: the number it holds, or its text. */
15
+ value: {
16
+ text: string;
17
+ number?: number;
18
+ };
19
+ position: VisioDataGraphicPosition;
20
+ /** How many callouts already sit at this position, so this one stacks beyond them. */
21
+ slot: number;
22
+ owner: {
23
+ width: number;
24
+ height: number;
25
+ };
26
+ min: number;
27
+ max: number;
28
+ }
29
+ /** The callout's size by kind: text as wide as its owner, bars between 0.8 and 2 inches. */
30
+ export declare function calloutSize(kind: NativeDataGraphicKind, ownerWidth: number): {
31
+ width: number;
32
+ height: number;
33
+ };
34
+ /** The share of the range a value fills, clamped to 0..1. */
35
+ export declare const shareOf: (value: number, min: number, max: number) => number;
36
+ /**
37
+ * One callout as an instance of its master: it names the master, reads its value from the
38
+ * owner's Shape Data row by formula (`Sheet.N!Prop.Row`), is placed beside the owner by a
39
+ * formula on `User.visDGDefaultPos`, and caches what Visio would compute.
40
+ */
41
+ export declare function calloutInstanceMarkup(input: CalloutInstance): string;
42
+ /** The callout master's name for a kind, and the owner's User cells that make it a data graphic. */
43
+ export declare const calloutMasterName: (kind: NativeDataGraphicKind) => string;
44
+ //# sourceMappingURL=data-graphic-instance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-graphic-instance.d.ts","sourceRoot":"","sources":["../../visio/data-graphic-instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,qBAAqB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAKN,KAAK,wBAAwB,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,qDAAqD;AACrD,MAAM,WAAW,eAAe;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,sFAAsF;IACtF,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,4FAA4F;AAC5F,wBAAgB,WAAW,CAC1B,IAAI,EAAE,qBAAqB,EAC3B,UAAU,EAAE,MAAM,GAChB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAInC;AAID,6DAA6D;AAC7D,eAAO,MAAM,OAAO,UAAW,MAAM,OAAO,MAAM,OAAO,MAAM,KAAG,MACP,CAAC;AAS5D;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CA6DpE;AAED,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,SAAU,qBAAqB,KAAG,MACrC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import type { MasterSpec } from './edit-master-add.js';
2
+ /** The callout kinds a native data graphic is made of. */
3
+ export type NativeDataGraphicKind = 'text' | 'bar' | 'icon';
4
+ export interface NativeCalloutDefinition {
5
+ /** The master's name: Visio's own name for this kind of callout. */
6
+ name: string;
7
+ /** What Visio's `User.msvCalloutType` says for this kind. */
8
+ type: 'Text Callout' | 'Data Bar' | 'Icon Set';
9
+ uniqueId: string;
10
+ }
11
+ /**
12
+ * The three callout masters this package authors. They carry the names and the `msvCallout*`
13
+ * cells Visio's own callouts use (`Prop.msvCalloutField` is the data the callout shows), but the
14
+ * shapes are this package's own, much simpler than Microsoft's DVCALL stencil.
15
+ */
16
+ export declare const NATIVE_CALLOUTS: Record<NativeDataGraphicKind, NativeCalloutDefinition>;
17
+ export declare const esc: (text: string) => string;
18
+ /** `<Cell>` markup: value, optional unit and formula. */
19
+ export declare function cell(name: string, value: string | number, formula?: string, unit?: string): string;
20
+ /** A User row: `[name, value, formula?, unit?]`. */
21
+ export declare const userRow: (name: string, value: string | number, formula?: string, unit?: string) => string;
22
+ /** Parse markup under the drawing's namespace and give it to `document`. */
23
+ export declare function importMarkup(document: Document, namespace: string, markup: string): Element;
24
+ /** The spec that adds one callout master to a drawing. */
25
+ export declare function calloutMasterSpec(kind: NativeDataGraphicKind): MasterSpec;
26
+ /** What a data graphic master remembers about one item. */
27
+ export interface NativeMasterItem {
28
+ kind: NativeDataGraphicKind;
29
+ field: string;
30
+ position: string;
31
+ }
32
+ /**
33
+ * The spec of the hidden data graphic master Visio keeps for each graphic: its page sheet holds
34
+ * the graphic's options (`visDGNextItemID`, `msvDGCalloutGap`), its shapes one entry per item
35
+ * naming the callout master (`visDGUseMaster`) and the field it shows (`visDGField0`).
36
+ */
37
+ export declare function dataGraphicMasterSpec(uniqueId: string, name: string, items: readonly NativeMasterItem[]): MasterSpec;
38
+ //# sourceMappingURL=data-graphic-masters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-graphic-masters.d.ts","sourceRoot":"","sources":["../../visio/data-graphic-masters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,0DAA0D;AAC1D,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,uBAAuB;IACvC,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,IAAI,EAAE,cAAc,GAAG,UAAU,GAAG,UAAU,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,qBAAqB,EAAE,uBAAuB,CAgBlF,CAAC;AAEF,eAAO,MAAM,GAAG,SAAU,MAAM,KAAG,MAC6D,CAAC;AAEjG,yDAAyD;AACzD,wBAAgB,IAAI,CACnB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,GACX,MAAM,CAIR;AAED,oDAAoD;AACpD,eAAO,MAAM,OAAO,SAAU,MAAM,SAAS,MAAM,GAAG,MAAM,YAAY,MAAM,SAAS,MAAM,WACM,CAAC;AA+FpG,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAI3F;AA8DD,0DAA0D;AAC1D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,UAAU,CAmBzE;AAED,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,SAAS,gBAAgB,EAAE,GAChC,UAAU,CA4BZ"}
@@ -0,0 +1,34 @@
1
+ /** Where a data graphic sits around its shape, as the Position gallery lists them. */
2
+ export type VisioDataGraphicPosition = 'top-left' | 'top' | 'top-right' | 'left' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
3
+ export declare const VISIO_DATA_GRAPHIC_POSITIONS: readonly VisioDataGraphicPosition[];
4
+ /** The callout kinds a graphic is made of (Color by Value changes the fill and has no callout). */
5
+ export type VisioDataGraphicCalloutKind = 'text' | 'bar' | 'icon';
6
+ /** The position each kind takes when none was chosen. */
7
+ export declare const VISIO_DATA_GRAPHIC_DEFAULT_POSITION: Record<VisioDataGraphicCalloutKind, VisioDataGraphicPosition>;
8
+ /** Gap between a callout and its shape, and the pitch of stacked callouts, in inches. */
9
+ export declare const VISIO_DATA_GRAPHIC_GAP = 0.05;
10
+ export declare const VISIO_DATA_GRAPHIC_STACK_STEP: number;
11
+ /** Centre of a graphic part around its owner; `slot` stacks several graphics at one position. */
12
+ export declare function visioDataGraphicCenter(owner: {
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ }, part: {
18
+ width: number;
19
+ height: number;
20
+ }, position: VisioDataGraphicPosition, slot: number): {
21
+ x: number;
22
+ y: number;
23
+ };
24
+ /**
25
+ * The `visDGDefaultPos` point a position is stored as: 2 is the centre of the shape's extent,
26
+ * 5 is beyond its far edge and -1 beyond its near edge, on each axis, as Visio's own cell reads.
27
+ */
28
+ export declare function visioDataGraphicPoint(position: VisioDataGraphicPosition): {
29
+ x: number;
30
+ y: number;
31
+ };
32
+ /** The position a stored point stands for, when it is one of the eight. */
33
+ export declare function visioDataGraphicPositionOf(x: number, y: number): VisioDataGraphicPosition | undefined;
34
+ //# sourceMappingURL=data-graphic-place.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-graphic-place.d.ts","sourceRoot":"","sources":["../../visio/data-graphic-place.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,MAAM,wBAAwB,GACjC,UAAU,GACV,KAAK,GACL,WAAW,GACX,MAAM,GACN,OAAO,GACP,aAAa,GACb,QAAQ,GACR,cAAc,CAAC;AAClB,eAAO,MAAM,4BAA4B,EAAE,SAAS,wBAAwB,EAS3E,CAAC;AACF,mGAAmG;AACnG,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAClE,yDAAyD;AACzD,eAAO,MAAM,mCAAmC,EAAE,MAAM,CACvD,2BAA2B,EAC3B,wBAAwB,CAC+B,CAAC;AAEzD,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,6BAA6B,QAA+B,CAAC;AAa1E,iGAAiG;AACjG,wBAAgB,sBAAsB,CACrC,KAAK,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC9D,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACvC,QAAQ,EAAE,wBAAwB,EAClC,IAAI,EAAE,MAAM,GACV;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAW1B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,wBAAwB,GAAG;IAC1E,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV,CAGA;AAED,2EAA2E;AAC3E,wBAAgB,0BAA0B,CACzC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACP,wBAAwB,GAAG,SAAS,CAKtC"}
@@ -43,6 +43,8 @@ import { type VisioMasterInstanceEdit } from './edit-master-instance.js';
43
43
  export type { VisioMasterInstanceEdit } from './edit-master-instance.js';
44
44
  import { type VisioStencilMasterDropEdit } from './edit-master-drop.js';
45
45
  export type { VisioStencilMasterDropEdit } from './edit-master-drop.js';
46
+ import { type VisioSetDataGraphicEdit } from './edit-data-graphic.js';
47
+ export type { VisioDataGraphicItemSpec, VisioSetDataGraphicEdit } from './edit-data-graphic.js';
46
48
  import { type VisioGuideEdit } from './edit-guide-commands.js';
47
49
  import { type VisioContainerEdit } from './edit-container-options.js';
48
50
  import { type VisioPictureEdit } from './edit-picture-adjust.js';
@@ -91,6 +93,8 @@ export type VisioGeometryEdit = (Target & {
91
93
  connect?: VisioConnectorGlue;
92
94
  /** A connector's route; omitted means straight. */
93
95
  route?: VisioConnectorRoute;
96
+ /** The line's own text (a connector label); it sits at the middle and follows the line. */
97
+ text?: string;
94
98
  }) | (BoxCreation & {
95
99
  type: 'create-rectangle';
96
100
  shape?: VisioOutlineShape;
@@ -121,6 +125,11 @@ export type VisioGeometryEdit = (Target & {
121
125
  y: number;
122
126
  }) | (Target & {
123
127
  type: 'delete-shape';
128
+ /**
129
+ * Run this deletion after the rest of the batch, in a transaction of its own (a stencil
130
+ * instance can only be deleted that way), still as one edit for the caller.
131
+ */
132
+ deferred?: boolean;
124
133
  }) | VisioConnectorEdit;
125
134
  /** Insert a blank foreground page after an existing page, copying its PageSheet settings. */
126
135
  export interface VisioPageInsert {
@@ -154,7 +163,7 @@ export interface VisioPageSizeEdit {
154
163
  height: number;
155
164
  }
156
165
  export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit | VisioPageSetupEdits;
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;
166
+ export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioTextFieldUpdateEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioChartObjectEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioControlEdit | VisioActionEdit | VisioDataEdit | VisioAssignLayersEdit | VisioLayerPropertiesEdit | VisioMasterInstanceEdit | VisioStencilMasterDropEdit | VisioSetDataGraphicEdit | VisioGuideEdit | VisioContainerEdit | VisioPictureEdit;
158
167
  export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
159
168
  /** Potential direct changes used by both package and master dependency admission. */
160
169
  export declare function geometryChangedCells(edit: VisioGeometryEdit): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"ed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,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,iBAAiB,GACjB,mBAAmB,CAAC;AACvB,MAAM,MAAM,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,uBAAuB,GACvB,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,CAyMb"}
@@ -0,0 +1,13 @@
1
+ import { type VisioSetDataGraphicEdit } from './edit-data-graphic.js';
2
+ import type { VisioEdit } from './edit-commands.js';
3
+ import type { VisioPackageLimits } from './package-common.js';
4
+ /**
5
+ * Resizing, deleting or copying a shape that has a data graphic acts on the shape, not on the
6
+ * callouts that follow it. The graphic is taken off the shape for the edit and written again
7
+ * afterwards, laid out for the shape's new size, on the shape and on its copies.
8
+ */
9
+ export declare function stripDataGraphics(input: Uint8Array, edits: readonly VisioEdit[], limits: VisioPackageLimits, maxOutput: number, deadline: number): Promise<{
10
+ bytes: Uint8Array;
11
+ restore: VisioSetDataGraphicEdit[];
12
+ } | undefined>;
13
+ //# sourceMappingURL=edit-data-graphic-guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-data-graphic-guard.d.ts","sourceRoot":"","sources":["../../visio/edit-data-graphic-guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AA6B3D;;;;GAIG;AACH,wBAAsB,iBAAiB,CACtC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,uBAAuB,EAAE,CAAA;CAAE,GAAG,SAAS,CAAC,CA+BhF"}
@@ -0,0 +1,9 @@
1
+ /** The User row that names a shape's data graphic master. */
2
+ export declare const DATA_GRAPHIC_DISPLAY_ROW = "visDGDisplayFormat";
3
+ /**
4
+ * A shape that carries a data graphic: Visio makes it a group of its callouts. Its own cells
5
+ * (fill, line, text, size) are still the shape's, so edits that act on the shape alone, such as
6
+ * formatting, treat it as the shape it was.
7
+ */
8
+ export declare const isDataGraphicOwner: (shape: Element) => boolean;
9
+ //# sourceMappingURL=edit-data-graphic-owner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-data-graphic-owner.d.ts","sourceRoot":"","sources":["../../visio/edit-data-graphic-owner.ts"],"names":[],"mappings":"AAEA,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,OAKlD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type VisioDataGraphicItemSpec } from './edit-data-graphic.js';
2
+ import type { EditVsdxResult } from './edit.js';
3
+ import type { VisioPackageLimits } from './package-common.js';
4
+ /** The callouts a shape's data graphic is made of, as the shape's cells record them. */
5
+ export declare function readDataGraphicItems(owner: Element): VisioDataGraphicItemSpec[] | undefined;
6
+ /** Edit types that can change what a callout shows. */
7
+ export declare const changesDataGraphicValues: (type: string) => boolean;
8
+ /**
9
+ * Callouts read their value from the shape by formula, which Visio recalculates; the cached
10
+ * values and the callout sizes this package writes must follow too. After an edit that can
11
+ * change them, write every native data graphic of the touched pages again from its own cells.
12
+ */
13
+ export declare function refreshDataGraphics(result: EditVsdxResult, pageIds: ReadonlySet<string> | 'all', limits: VisioPackageLimits, maxOutput: number, deadline: number): Promise<EditVsdxResult>;
14
+ //# sourceMappingURL=edit-data-graphic-refresh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-data-graphic-refresh.d.ts","sourceRoot":"","sources":["../../visio/edit-data-graphic-refresh.ts"],"names":[],"mappings":"AAEA,OAAO,EAEN,KAAK,wBAAwB,EAE7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAmB3D,wFAAwF;AACxF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,wBAAwB,EAAE,GAAG,SAAS,CA8B3F;AAED,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,SAAU,MAAM,KAAG,OAOvB,CAAC;AAElC;;;;GAIG;AACH,wBAAsB,mBAAmB,CACxC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,KAAK,EACpC,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,cAAc,CAAC,CAiCzB"}
@@ -0,0 +1,33 @@
1
+ import { type NativeDataGraphicKind } from './data-graphic-masters.js';
2
+ import { type VisioDataGraphicPosition } from './data-graphic-place.js';
3
+ import type { EditVsdxResult } from './edit.js';
4
+ import { type VisioPackageLimits } from './package-common.js';
5
+ /** One callout of a native data graphic. */
6
+ export interface VisioDataGraphicItemSpec {
7
+ kind: NativeDataGraphicKind;
8
+ /** The owner's Shape Data row (its name, not its label) the callout reads. */
9
+ field: string;
10
+ position?: VisioDataGraphicPosition;
11
+ /** The range of a bar or an icon set; the owner's values decide it when absent. */
12
+ min?: number;
13
+ max?: number;
14
+ }
15
+ /**
16
+ * Make a shape's data graphic exactly these callouts: Visio's structure for it (the shape
17
+ * becomes a group, each callout an instance of a callout master that reads the shape's Shape
18
+ * Data by formula, the graphic a hidden data graphic master named by the shape's
19
+ * `User.visDGDisplayFormat`). An empty list removes the graphic. The shape must be a local
20
+ * shape; an instance of a stencil master is refused.
21
+ */
22
+ export interface VisioSetDataGraphicEdit {
23
+ type: 'set-data-graphic';
24
+ pageId: string;
25
+ shapeId: string;
26
+ items: VisioDataGraphicItemSpec[];
27
+ }
28
+ export declare const isVisioDataGraphicEdit: (edit: {
29
+ type: string;
30
+ }) => edit is VisioSetDataGraphicEdit;
31
+ export declare function snapshotDataGraphicEdit(edit: VisioSetDataGraphicEdit): VisioSetDataGraphicEdit;
32
+ export declare function editVsdxDataGraphics(source: Uint8Array, edits: readonly VisioSetDataGraphicEdit[], limits: VisioPackageLimits, maxOutput: number, deadline: number, check: () => void): Promise<EditVsdxResult>;
33
+ //# sourceMappingURL=edit-data-graphic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-data-graphic.d.ts","sourceRoot":"","sources":["../../visio/edit-data-graphic.ts"],"names":[],"mappings":"AAGA,OAAO,EAKN,KAAK,qBAAqB,EAE1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIN,KAAK,wBAAwB,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAK7C,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAIjE,4CAA4C;AAC5C,MAAM,WAAW,wBAAwB;IACxC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,mFAAmF;IACnF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,wBAAwB,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,sBAAsB,SAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,IAAI,uBACvC,CAAC;AAKlC,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,uBAAuB,GAAG,uBAAuB,CA8B9F;AAkHD,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,uBAAuB,EAAE,EACzC,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,cAAc,CAAC,CAyDzB"}
@@ -75,6 +75,12 @@ export interface VisioShapeFormatEdit extends Target {
75
75
  bevel?: string;
76
76
  /** 3-D rotation preset id (`off` removes it); see `VISIO_ROTATION_PRESETS`. */
77
77
  rotation3d?: string;
78
+ /** 3-D Format depth in points (needs a top bevel to show) and its #rrggbb colour. */
79
+ extrusionDepth?: number;
80
+ extrusionColor?: string;
81
+ /** 3-D Format contour size in points and its #rrggbb colour. */
82
+ contourSize?: number;
83
+ contourColor?: string;
78
84
  }
79
85
  export type VisioFormatEdit = VisioTextFormatEdit | VisioShapeFormatEdit;
80
86
  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;AAEhC,OAAO,EAEN,KAAK,qBAAqB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC,UAAU,MAAM;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CAChB;AACD;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,MAAM,EAAE,qBAAqB;IACzE,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;AACzE,eAAO,MAAM,iBAAiB,SAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,IAAI,eACP,CAAC;AAE7D,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAyIzE"}
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,KAAK,qBAAqB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC,UAAU,MAAM;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CAChB;AACD;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,MAAM,EAAE,qBAAqB;IACzE,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,O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AE,CAAC,CAyBlF;AACD,wBAAsB,+BAA+B,CACpD,GAAG,EAAE,YAAY,EACjB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,EACjD,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,IAAI,CAAC,CAWf"}
@@ -44,6 +44,14 @@ export interface VisioTextFormatExtras {
44
44
  /** Paragraph.BulletStr: a custom bullet character; empty clears it. */
45
45
  bulletText?: string;
46
46
  margins?: VisioTextMargins;
47
+ /**
48
+ * The shape's tab stops (Tabs row 0), replacing the existing ones. Positions are points from the
49
+ * text block's left edge; at most 64, in ascending order. An empty list clears them.
50
+ */
51
+ tabStops?: {
52
+ position: number;
53
+ align: 'left' | 'center' | 'right' | 'decimal';
54
+ }[];
47
55
  /** TextBkgnd: an opaque colour or `none`. */
48
56
  textBackground?: string;
49
57
  textBackgroundTransparency?: number;