ooxml-core 1.4.0 → 1.6.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 (318) hide show
  1. package/dist/{PptxHandler-ZPJNHEZZ.mjs → PptxHandler-DDEJ6CKU.mjs} +2 -2
  2. package/dist/automation/index.cjs +14809 -7789
  3. package/dist/automation/index.mjs +14809 -7789
  4. package/dist/{chunk-XGLKW3JJ.mjs → chunk-5L4DHJV3.mjs} +23 -3
  5. package/dist/{chunk-IVDC75E5.mjs → chunk-EPNLABIU.mjs} +1 -1
  6. package/dist/{chunk-BB55ASTX.mjs → chunk-Q52O7SXQ.mjs} +3 -3
  7. package/dist/{chunk-QPQDLSJQ.mjs → chunk-QXZJOUW4.mjs} +1 -1
  8. package/dist/{chunk-H4TPDZV4.mjs → chunk-UQQGC6O3.mjs} +1 -1
  9. package/dist/drawingml/index.cjs +102 -24
  10. package/dist/drawingml/index.d.ts +1 -0
  11. package/dist/drawingml/index.d.ts.map +1 -1
  12. package/dist/drawingml/index.mjs +102 -25
  13. package/dist/drawingml/write-theme.d.ts +17 -0
  14. package/dist/drawingml/write-theme.d.ts.map +1 -0
  15. package/dist/geometry/auto-align.d.ts +32 -0
  16. package/dist/geometry/auto-align.d.ts.map +1 -0
  17. package/dist/geometry/graph-layout.d.ts +37 -0
  18. package/dist/geometry/graph-layout.d.ts.map +1 -0
  19. package/dist/geometry/index.cjs +361 -7
  20. package/dist/geometry/index.d.ts +2 -0
  21. package/dist/geometry/index.d.ts.map +1 -1
  22. package/dist/geometry/index.mjs +359 -8
  23. package/dist/index.cjs +624 -122
  24. package/dist/index.mjs +624 -122
  25. package/dist/pptx/automation/index.cjs +23 -2
  26. package/dist/pptx/automation/index.mjs +5 -5
  27. package/dist/pptx/cli/index.cjs +23 -2
  28. package/dist/pptx/cli/index.mjs +4 -4
  29. package/dist/pptx/converter/index.mjs +2 -2
  30. package/dist/pptx/index.cjs +23 -2
  31. package/dist/pptx/index.mjs +5 -5
  32. package/dist/teams/index.cjs +3 -2
  33. package/dist/teams/index.mjs +3 -2
  34. package/dist/text/change-case.d.ts +20 -0
  35. package/dist/text/change-case.d.ts.map +1 -0
  36. package/dist/text/index.cjs +70 -0
  37. package/dist/text/index.d.ts +1 -0
  38. package/dist/text/index.d.ts.map +1 -1
  39. package/dist/text/index.mjs +68 -1
  40. package/dist/visio/arrow-shapes.d.ts +16 -0
  41. package/dist/visio/arrow-shapes.d.ts.map +1 -0
  42. package/dist/visio/basic-shapes.d.ts +20 -0
  43. package/dist/visio/basic-shapes.d.ts.map +1 -0
  44. package/dist/visio/comments.d.ts +39 -0
  45. package/dist/visio/comments.d.ts.map +1 -0
  46. package/dist/visio/connector-route.d.ts +31 -0
  47. package/dist/visio/connector-route.d.ts.map +1 -0
  48. package/dist/visio/data-recordsets.d.ts +66 -0
  49. package/dist/visio/data-recordsets.d.ts.map +1 -0
  50. package/dist/visio/edit-change-shape-commands.d.ts +17 -0
  51. package/dist/visio/edit-change-shape-commands.d.ts.map +1 -0
  52. package/dist/visio/edit-change-shape.d.ts +4 -0
  53. package/dist/visio/edit-change-shape.d.ts.map +1 -0
  54. package/dist/visio/edit-commands.d.ts +41 -4
  55. package/dist/visio/edit-commands.d.ts.map +1 -1
  56. package/dist/visio/edit-comment-commands.d.ts +32 -0
  57. package/dist/visio/edit-comment-commands.d.ts.map +1 -0
  58. package/dist/visio/edit-comments.d.ts +7 -0
  59. package/dist/visio/edit-comments.d.ts.map +1 -0
  60. package/dist/visio/edit-connection-points.d.ts +19 -0
  61. package/dist/visio/edit-connection-points.d.ts.map +1 -0
  62. package/dist/visio/edit-connector-commands.d.ts +57 -0
  63. package/dist/visio/edit-connector-commands.d.ts.map +1 -0
  64. package/dist/visio/edit-connector-glue.d.ts +43 -0
  65. package/dist/visio/edit-connector-glue.d.ts.map +1 -0
  66. package/dist/visio/edit-connector-layout.d.ts +37 -0
  67. package/dist/visio/edit-connector-layout.d.ts.map +1 -0
  68. package/dist/visio/edit-connector-reroute.d.ts +30 -0
  69. package/dist/visio/edit-connector-reroute.d.ts.map +1 -0
  70. package/dist/visio/edit-connector.d.ts +42 -0
  71. package/dist/visio/edit-connector.d.ts.map +1 -0
  72. package/dist/visio/edit-data-commands.d.ts +49 -0
  73. package/dist/visio/edit-data-commands.d.ts.map +1 -0
  74. package/dist/visio/edit-data-parts.d.ts +34 -0
  75. package/dist/visio/edit-data-parts.d.ts.map +1 -0
  76. package/dist/visio/edit-data.d.ts +8 -0
  77. package/dist/visio/edit-data.d.ts.map +1 -0
  78. package/dist/visio/edit-delete.d.ts.map +1 -1
  79. package/dist/visio/edit-diagram-parts-commands.d.ts +55 -0
  80. package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -0
  81. package/dist/visio/edit-diagram-parts.d.ts +16 -0
  82. package/dist/visio/edit-diagram-parts.d.ts.map +1 -0
  83. package/dist/visio/edit-ellipse-geometry.d.ts +2 -0
  84. package/dist/visio/edit-ellipse-geometry.d.ts.map +1 -1
  85. package/dist/visio/edit-foreign-bitmap.d.ts +7 -0
  86. package/dist/visio/edit-foreign-bitmap.d.ts.map +1 -0
  87. package/dist/visio/edit-formatting-cell-admission.d.ts +2 -0
  88. package/dist/visio/edit-formatting-cell-admission.d.ts.map +1 -1
  89. package/dist/visio/edit-formatting-commands.d.ts +14 -1
  90. package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
  91. package/dist/visio/edit-formatting-effects.d.ts +50 -0
  92. package/dist/visio/edit-formatting-effects.d.ts.map +1 -0
  93. package/dist/visio/edit-formatting-glow.d.ts +43 -0
  94. package/dist/visio/edit-formatting-glow.d.ts.map +1 -0
  95. package/dist/visio/edit-formatting-paint-scope.d.ts.map +1 -1
  96. package/dist/visio/edit-formatting-paint.d.ts +6 -0
  97. package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
  98. package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
  99. package/dist/visio/edit-formatting-text-commands.d.ts +56 -0
  100. package/dist/visio/edit-formatting-text-commands.d.ts.map +1 -0
  101. package/dist/visio/edit-formatting-text-extra.d.ts +11 -0
  102. package/dist/visio/edit-formatting-text-extra.d.ts.map +1 -0
  103. package/dist/visio/edit-formatting-text.d.ts.map +1 -1
  104. package/dist/visio/edit-formatting-theme-context.d.ts +14 -0
  105. package/dist/visio/edit-formatting-theme-context.d.ts.map +1 -0
  106. package/dist/visio/edit-formatting.d.ts +2 -0
  107. package/dist/visio/edit-formatting.d.ts.map +1 -1
  108. package/dist/visio/edit-geometry-admission.d.ts +1 -1
  109. package/dist/visio/edit-geometry-admission.d.ts.map +1 -1
  110. package/dist/visio/edit-geometry.d.ts.map +1 -1
  111. package/dist/visio/edit-group-commands.d.ts +22 -0
  112. package/dist/visio/edit-group-commands.d.ts.map +1 -0
  113. package/dist/visio/edit-group-rotation.d.ts +7 -1
  114. package/dist/visio/edit-group-rotation.d.ts.map +1 -1
  115. package/dist/visio/edit-group.d.ts +17 -0
  116. package/dist/visio/edit-group.d.ts.map +1 -0
  117. package/dist/visio/edit-guide-commands.d.ts +26 -0
  118. package/dist/visio/edit-guide-commands.d.ts.map +1 -0
  119. package/dist/visio/edit-guides.d.ts +4 -0
  120. package/dist/visio/edit-guides.d.ts.map +1 -0
  121. package/dist/visio/edit-layer-commands.d.ts +20 -0
  122. package/dist/visio/edit-layer-commands.d.ts.map +1 -0
  123. package/dist/visio/edit-layers.d.ts +7 -0
  124. package/dist/visio/edit-layers.d.ts.map +1 -0
  125. package/dist/visio/edit-metadata-commands.d.ts +46 -0
  126. package/dist/visio/edit-metadata-commands.d.ts.map +1 -0
  127. package/dist/visio/edit-metadata.d.ts +4 -0
  128. package/dist/visio/edit-metadata.d.ts.map +1 -0
  129. package/dist/visio/edit-page-auto-size.d.ts +19 -0
  130. package/dist/visio/edit-page-auto-size.d.ts.map +1 -0
  131. package/dist/visio/edit-page-create.d.ts +24 -0
  132. package/dist/visio/edit-page-create.d.ts.map +1 -0
  133. package/dist/visio/edit-page-decoration.d.ts +14 -0
  134. package/dist/visio/edit-page-decoration.d.ts.map +1 -0
  135. package/dist/visio/edit-page-setup-commands.d.ts +57 -0
  136. package/dist/visio/edit-page-setup-commands.d.ts.map +1 -0
  137. package/dist/visio/edit-page-setup.d.ts +13 -0
  138. package/dist/visio/edit-page-setup.d.ts.map +1 -0
  139. package/dist/visio/edit-page-size.d.ts +4 -0
  140. package/dist/visio/edit-page-size.d.ts.map +1 -1
  141. package/dist/visio/edit-page-theme-commands.d.ts +15 -0
  142. package/dist/visio/edit-page-theme-commands.d.ts.map +1 -0
  143. package/dist/visio/edit-page-theme-recolor.d.ts +3 -0
  144. package/dist/visio/edit-page-theme-recolor.d.ts.map +1 -0
  145. package/dist/visio/edit-page-theme.d.ts +10 -0
  146. package/dist/visio/edit-page-theme.d.ts.map +1 -0
  147. package/dist/visio/edit-pages.d.ts.map +1 -1
  148. package/dist/visio/edit-path-commands.d.ts +19 -0
  149. package/dist/visio/edit-path-commands.d.ts.map +1 -0
  150. package/dist/visio/edit-path-create.d.ts +23 -0
  151. package/dist/visio/edit-path-create.d.ts.map +1 -0
  152. package/dist/visio/edit-picture.d.ts +7 -0
  153. package/dist/visio/edit-picture.d.ts.map +1 -0
  154. package/dist/visio/edit-recalculate-index.d.ts +2 -0
  155. package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
  156. package/dist/visio/edit-resize-anchor.d.ts +1 -1
  157. package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
  158. package/dist/visio/edit-scope.d.ts.map +1 -1
  159. package/dist/visio/edit-shape-create.d.ts +8 -0
  160. package/dist/visio/edit-shape-create.d.ts.map +1 -1
  161. package/dist/visio/edit-shape-data-commands.d.ts +34 -0
  162. package/dist/visio/edit-shape-data-commands.d.ts.map +1 -0
  163. package/dist/visio/edit-shape-data.d.ts +22 -0
  164. package/dist/visio/edit-shape-data.d.ts.map +1 -0
  165. package/dist/visio/edit-shape-order.d.ts.map +1 -1
  166. package/dist/visio/edit-subprocess-commands.d.ts +27 -0
  167. package/dist/visio/edit-subprocess-commands.d.ts.map +1 -0
  168. package/dist/visio/edit-subprocess.d.ts +9 -0
  169. package/dist/visio/edit-subprocess.d.ts.map +1 -0
  170. package/dist/visio/edit-text-field-commands.d.ts +21 -0
  171. package/dist/visio/edit-text-field-commands.d.ts.map +1 -0
  172. package/dist/visio/edit-text-field.d.ts +5 -0
  173. package/dist/visio/edit-text-field.d.ts.map +1 -0
  174. package/dist/visio/edit-text-range-plan.d.ts.map +1 -1
  175. package/dist/visio/edit-text-ranges.d.ts.map +1 -1
  176. package/dist/visio/edit-text.d.ts.map +1 -1
  177. package/dist/visio/edit.d.ts +2 -1
  178. package/dist/visio/edit.d.ts.map +1 -1
  179. package/dist/visio/effects.d.ts +13 -0
  180. package/dist/visio/effects.d.ts.map +1 -0
  181. package/dist/visio/formula-evaluate.d.ts.map +1 -1
  182. package/dist/visio/index.cjs +27020 -19658
  183. package/dist/visio/index.d.ts +26 -1
  184. package/dist/visio/index.d.ts.map +1 -1
  185. package/dist/visio/index.mjs +26949 -19659
  186. package/dist/visio/model.d.ts +125 -0
  187. package/dist/visio/model.d.ts.map +1 -1
  188. package/dist/visio/page-decoration.d.ts +66 -0
  189. package/dist/visio/page-decoration.d.ts.map +1 -0
  190. package/dist/visio/page-scale.d.ts.map +1 -1
  191. package/dist/visio/page-setup.d.ts +8 -0
  192. package/dist/visio/page-setup.d.ts.map +1 -0
  193. package/dist/visio/page-theme.d.ts +9 -0
  194. package/dist/visio/page-theme.d.ts.map +1 -0
  195. package/dist/visio/paper-sizes.d.ts +24 -0
  196. package/dist/visio/paper-sizes.d.ts.map +1 -0
  197. package/dist/visio/parser.d.ts.map +1 -1
  198. package/dist/visio/path-fit.d.ts +69 -0
  199. package/dist/visio/path-fit.d.ts.map +1 -0
  200. package/dist/visio/shadow.d.ts +9 -0
  201. package/dist/visio/shadow.d.ts.map +1 -0
  202. package/dist/visio/shape-connections.d.ts +5 -0
  203. package/dist/visio/shape-connections.d.ts.map +1 -0
  204. package/dist/visio/shape-metadata.d.ts +3 -0
  205. package/dist/visio/shape-metadata.d.ts.map +1 -1
  206. package/dist/visio/shape-structure.d.ts +10 -0
  207. package/dist/visio/shape-structure.d.ts.map +1 -0
  208. package/dist/visio/shapes.d.ts.map +1 -1
  209. package/dist/visio/stencil-shapes.d.ts +20 -0
  210. package/dist/visio/stencil-shapes.d.ts.map +1 -0
  211. package/dist/visio/stencils.d.ts +30 -0
  212. package/dist/visio/stencils.d.ts.map +1 -0
  213. package/dist/visio/style.d.ts +3 -0
  214. package/dist/visio/style.d.ts.map +1 -1
  215. package/dist/visio/text-character.d.ts +5 -0
  216. package/dist/visio/text-character.d.ts.map +1 -0
  217. package/dist/visio/text-field-context.d.ts +6 -0
  218. package/dist/visio/text-field-context.d.ts.map +1 -0
  219. package/dist/visio/text-field-display.d.ts +12 -0
  220. package/dist/visio/text-field-display.d.ts.map +1 -0
  221. package/dist/visio/text-fields.d.ts +65 -0
  222. package/dist/visio/text-fields.d.ts.map +1 -0
  223. package/dist/visio/theme-builtins.d.ts +32 -0
  224. package/dist/visio/theme-builtins.d.ts.map +1 -0
  225. package/dist/visio/theme-write.d.ts +4 -0
  226. package/dist/visio/theme-write.d.ts.map +1 -0
  227. package/dist/visio/theme.d.ts +2 -0
  228. package/dist/visio/theme.d.ts.map +1 -1
  229. package/dist/visio/ui/auto-layout.d.ts +38 -0
  230. package/dist/visio/ui/auto-layout.d.ts.map +1 -0
  231. package/dist/visio/ui/change-case.d.ts +12 -0
  232. package/dist/visio/ui/change-case.d.ts.map +1 -0
  233. package/dist/visio/ui/connection-points.d.ts +45 -0
  234. package/dist/visio/ui/connection-points.d.ts.map +1 -0
  235. package/dist/visio/ui/connector-preview.d.ts +24 -0
  236. package/dist/visio/ui/connector-preview.d.ts.map +1 -0
  237. package/dist/visio/ui/data-graphic-rules.d.ts +45 -0
  238. package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -0
  239. package/dist/visio/ui/data-graphics.d.ts +15 -0
  240. package/dist/visio/ui/data-graphics.d.ts.map +1 -0
  241. package/dist/visio/ui/data-table.d.ts +33 -0
  242. package/dist/visio/ui/data-table.d.ts.map +1 -0
  243. package/dist/visio/ui/diagram-check.d.ts +32 -0
  244. package/dist/visio/ui/diagram-check.d.ts.map +1 -0
  245. package/dist/visio/ui/diagram-parts.d.ts +20 -0
  246. package/dist/visio/ui/diagram-parts.d.ts.map +1 -0
  247. package/dist/visio/ui/draw-path-plan.d.ts +21 -0
  248. package/dist/visio/ui/draw-path-plan.d.ts.map +1 -0
  249. package/dist/visio/ui/draw-plan.d.ts +13 -2
  250. package/dist/visio/ui/draw-plan.d.ts.map +1 -1
  251. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  252. package/dist/visio/ui/format-painter.d.ts +25 -0
  253. package/dist/visio/ui/format-painter.d.ts.map +1 -0
  254. package/dist/visio/ui/guides.d.ts +34 -0
  255. package/dist/visio/ui/guides.d.ts.map +1 -0
  256. package/dist/visio/ui/index.cjs +8010 -2707
  257. package/dist/visio/ui/index.d.ts +25 -0
  258. package/dist/visio/ui/index.d.ts.map +1 -1
  259. package/dist/visio/ui/index.mjs +7898 -2708
  260. package/dist/visio/ui/insert.d.ts +26 -0
  261. package/dist/visio/ui/insert.d.ts.map +1 -0
  262. package/dist/visio/ui/layer-assign.d.ts +31 -0
  263. package/dist/visio/ui/layer-assign.d.ts.map +1 -0
  264. package/dist/visio/ui/page-edit.d.ts.map +1 -1
  265. package/dist/visio/ui/page-setup.d.ts +50 -0
  266. package/dist/visio/ui/page-setup.d.ts.map +1 -0
  267. package/dist/visio/ui/page-size.d.ts +2 -11
  268. package/dist/visio/ui/page-size.d.ts.map +1 -1
  269. package/dist/visio/ui/paste-text.d.ts +13 -0
  270. package/dist/visio/ui/paste-text.d.ts.map +1 -0
  271. package/dist/visio/ui/scene-data.d.ts +4 -0
  272. package/dist/visio/ui/scene-data.d.ts.map +1 -0
  273. package/dist/visio/ui/scene-details.d.ts.map +1 -1
  274. package/dist/visio/ui/scene-validation-text.d.ts +8 -0
  275. package/dist/visio/ui/scene-validation-text.d.ts.map +1 -0
  276. package/dist/visio/ui/scene-validation.d.ts.map +1 -1
  277. package/dist/visio/ui/select-by-type.d.ts +35 -0
  278. package/dist/visio/ui/select-by-type.d.ts.map +1 -0
  279. package/dist/visio/ui/shape-arrange.d.ts.map +1 -1
  280. package/dist/visio/ui/shape-change.d.ts +11 -0
  281. package/dist/visio/ui/shape-change.d.ts.map +1 -0
  282. package/dist/visio/ui/shape-effects.d.ts +14 -0
  283. package/dist/visio/ui/shape-effects.d.ts.map +1 -0
  284. package/dist/visio/ui/shape-formatting.d.ts +5 -0
  285. package/dist/visio/ui/shape-formatting.d.ts.map +1 -1
  286. package/dist/visio/ui/shape-group.d.ts +9 -0
  287. package/dist/visio/ui/shape-group.d.ts.map +1 -0
  288. package/dist/visio/ui/shape-move.d.ts +5 -2
  289. package/dist/visio/ui/shape-move.d.ts.map +1 -1
  290. package/dist/visio/ui/shape-report.d.ts +37 -0
  291. package/dist/visio/ui/shape-report.d.ts.map +1 -0
  292. package/dist/visio/ui/shape-resize.d.ts.map +1 -1
  293. package/dist/visio/ui/shape-rotation.d.ts.map +1 -1
  294. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  295. package/dist/visio/ui/subprocess.d.ts +13 -0
  296. package/dist/visio/ui/subprocess.d.ts.map +1 -0
  297. package/dist/visio/ui/text-block.d.ts +42 -0
  298. package/dist/visio/ui/text-block.d.ts.map +1 -0
  299. package/dist/visio/ui/text-dialog.d.ts +54 -0
  300. package/dist/visio/ui/text-dialog.d.ts.map +1 -0
  301. package/dist/visio/ui/text-draft.d.ts +25 -0
  302. package/dist/visio/ui/text-draft.d.ts.map +1 -0
  303. package/dist/visio/ui/text-field-catalog.d.ts +17 -0
  304. package/dist/visio/ui/text-field-catalog.d.ts.map +1 -0
  305. package/dist/xlsx/edit/dimensions.d.ts.map +1 -1
  306. package/dist/xlsx/edit/filter.d.ts.map +1 -1
  307. package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -1
  308. package/dist/xlsx/edit/structure.d.ts +1 -1
  309. package/dist/xlsx/edit/structure.d.ts.map +1 -1
  310. package/dist/xlsx/filter-rows.d.ts +4 -0
  311. package/dist/xlsx/filter-rows.d.ts.map +1 -1
  312. package/dist/xlsx/index.cjs +37 -22
  313. package/dist/xlsx/index.mjs +37 -22
  314. package/dist/xlsx/load/index.cjs +3 -2
  315. package/dist/xlsx/load/index.mjs +3 -2
  316. package/dist/xlsx/ui/index.cjs +37 -22
  317. package/dist/xlsx/ui/index.mjs +37 -22
  318. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-character.d.ts","sourceRoot":"","sources":["../../visio/text-character.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAU,KAAK,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAK1D,2FAA2F;AAC3F,wBAAgB,eAAe,CAC9B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,GACZ,IAAI,CAAC,YAAY,EAAE,eAAe,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC,CAW5E"}
@@ -0,0 +1,6 @@
1
+ import type { VisioPackage } from './package.js';
2
+ import type { VisioFieldProperties } from './text-fields.js';
3
+ /** Read the core and extended properties a text field can show. Missing or unreadable parts are
4
+ * omitted: fields then keep their cached text. */
5
+ export declare function readVisioFieldProperties(pkg: VisioPackage): Promise<VisioFieldProperties>;
6
+ //# sourceMappingURL=text-field-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field-context.d.ts","sourceRoot":"","sources":["../../visio/text-field-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAI1D;kDACkD;AAClD,wBAAsB,wBAAwB,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA8C/F"}
@@ -0,0 +1,12 @@
1
+ import { type Sheet } from './sheet.js';
2
+ import { type VisioFieldContext } from './text-fields.js';
3
+ /**
4
+ * Display text of one `<fld>`: context functions (page, document, clock) are evaluated, other
5
+ * values come from the Field row's cached Value. Unsupported formats keep the stored text.
6
+ */
7
+ export declare function textFieldDisplay(element: Element, sheet: Sheet, context: VisioFieldContext | undefined): {
8
+ text: string;
9
+ cached: string;
10
+ formula?: string;
11
+ };
12
+ //# sourceMappingURL=text-field-display.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field-display.d.ts","sourceRoot":"","sources":["../../visio/text-field-display.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAIN,KAAK,iBAAiB,EAEtB,MAAM,eAAe,CAAC;AAqBvB;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,GAAG,SAAS,GACpC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAepD"}
@@ -0,0 +1,65 @@
1
+ import { type VisioFormulaReference, type VisioFormulaValue } from './formula.js';
2
+ /** Document properties a field can show (core and extended properties). */
3
+ export interface VisioFieldProperties {
4
+ title?: string;
5
+ subject?: string;
6
+ creator?: string;
7
+ keywords?: string;
8
+ description?: string;
9
+ category?: string;
10
+ company?: string;
11
+ manager?: string;
12
+ /** W3CDTF timestamps. */
13
+ created?: string;
14
+ modified?: string;
15
+ lastPrinted?: string;
16
+ }
17
+ export interface VisioFieldContext {
18
+ pageName?: string;
19
+ pageNumber?: number;
20
+ pageCount?: number;
21
+ properties?: VisioFieldProperties;
22
+ /** The moment NOW() shows; omitted leaves NOW() fields at their cached value. */
23
+ now?: Date;
24
+ /** Numeric cell lookup for custom and geometry formulas (internal units). */
25
+ resolve?: (reference: VisioFormulaReference) => VisioFormulaValue;
26
+ }
27
+ /** A field result. Dates are wall-clock components held in a UTC Date. */
28
+ export type VisioFieldValue = {
29
+ kind: 'string';
30
+ text: string;
31
+ } | {
32
+ kind: 'number';
33
+ value: number;
34
+ unit: VisioFormulaValue['unit'];
35
+ } | {
36
+ kind: 'date';
37
+ date: Date;
38
+ };
39
+ /** Field functions that read document context, never ShapeSheet cells. */
40
+ export declare const VISIO_FIELD_FUNCTIONS: readonly string[];
41
+ /** Wall-clock components of a local moment, held as UTC so formatting is zone-independent. */
42
+ export declare function visioWallClock(date: Date): Date;
43
+ /** Visio DATE caches count days since 30 December 1899. */
44
+ export declare const visioDateSerial: (date: Date) => number;
45
+ export declare const visioSerialDate: (serial: number) => Date | undefined;
46
+ /**
47
+ * Evaluate a field formula against its document context. Undefined means the formula is outside
48
+ * this evaluator; the caller keeps the cached text.
49
+ */
50
+ export declare function evaluateVisioTextField(formula: string, context: VisioFieldContext): VisioFieldValue | undefined;
51
+ /** Supported format pictures: `{{date picture}}`, `0`, `0.00`, `0.##`, `#,##0` (with ` u`), `@`. */
52
+ export declare const VISIO_FIELD_FORMATS: {
53
+ readonly shortDate: '{{M/d/yyyy}}';
54
+ readonly longDate: '{{dddd, MMMM d, yyyy}}';
55
+ readonly time: '{{h:mm tt}}';
56
+ readonly dateTime: '{{M/d/yyyy h:mm tt}}';
57
+ readonly text: '@';
58
+ readonly integer: '0';
59
+ readonly decimal: '0.00';
60
+ readonly decimalUnits: '0.00 u';
61
+ readonly integerUnits: '0 u';
62
+ };
63
+ /** Display text for a value; undefined when the picture is outside the supported subset. */
64
+ export declare function formatVisioFieldValue(value: VisioFieldValue, format?: string): string | undefined;
65
+ //# sourceMappingURL=text-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-fields.d.ts","sourceRoot":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eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAIlD,CAAC;AAEF,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAW/C;AAED,2DAA2D;AAC3D,eAAO,MAAM,eAAe,SAAU,IAAI,KAAG,MACc,CAAC;AAC5D,eAAO,MAAM,eAAe,WAAY,MAAM,KAAG,IAAI,GAAG,SAG3C,CAAC;AAEd;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,iBAAiB,GACxB,eAAe,GAAG,SAAS,CA0C7B;AAgED,oGAAoG;AACpG,eAAO,MAAM,mBAAmB;aAC/B,SAAS,EAAE,cAAc;aACzB,QAAQ,EAAE,wBAAwB;aAClC,IAAI,EAAE,aAAa;aACnB,QAAQ,EAAE,sBAAsB;aAChC,IAAI,EAAE,GAAG;aACT,OAAO,EAAE,GAAG;aACZ,OAAO,EAAE,MAAM;aACf,YAAY,EAAE,QAAQ;aACtB,YAAY,EAAE,KAAK;CACV,CAAC;AAEX,4FAA4F;AAC5F,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,SAAK,GAAG,MAAM,GAAG,SAAS,CAsB7F"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Built-in Design > Themes for Visio drawings, as data. Every theme here is original to this
3
+ * project except Office, whose six accents are the Office fallback colours Quick Styles already
4
+ * use when a drawing has no theme. Each theme is written as one DrawingML theme part with Visio's
5
+ * extensions (`theme-write.ts`) and selected per page through the page's scheme index cells.
6
+ */
7
+ export declare const VISIO_BUILT_IN_THEME_IDS: readonly ['office', 'slate', 'harbor', 'grove', 'ember', 'graphite'];
8
+ export type VisioBuiltInThemeId = (typeof VISIO_BUILT_IN_THEME_IDS)[number];
9
+ export declare const isVisioBuiltInThemeId: (value: unknown) => value is VisioBuiltInThemeId;
10
+ export interface VisioBuiltInTheme {
11
+ id: VisioBuiltInThemeId;
12
+ name: string;
13
+ /**
14
+ * Colour, effect, connector and font scheme ID written to the part and the page. Visio's own
15
+ * themes use IDs this project does not know; these sit in a private range above them.
16
+ */
17
+ schemeId: number;
18
+ /** dk1, lt1, dk2, lt2, accent1-6, hlink, folHlink as six hexadecimal digits. */
19
+ colors: readonly string[];
20
+ /** Major (headings) and minor (body) Latin typefaces. */
21
+ fonts: {
22
+ major: string;
23
+ minor: string;
24
+ };
25
+ /** Theme line widths in points for style matrices 1-6. */
26
+ lineWidths: readonly number[];
27
+ }
28
+ export declare const VISIO_BUILT_IN_THEMES: readonly VisioBuiltInTheme[];
29
+ export declare function visioBuiltInTheme(id: VisioBuiltInThemeId): VisioBuiltInTheme;
30
+ /** A theme's four colour variants: variant `v` starts its seven variant colours at accent `v + 1`. */
31
+ export declare function visioThemeVariantColors(source: VisioBuiltInTheme, variant: number): string[];
32
+ //# sourceMappingURL=theme-builtins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-builtins.d.ts","sourceRoot":"","sources":["../../visio/theme-builtins.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,wBAAwB,YACpC,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,UAAU,CACD,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5E,eAAO,MAAM,qBAAqB,UAAW,OAAO,KAAG,KAAK,IAAI,mBACC,CAAC;AAElE,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,mBAAmB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,yDAAyD;IACzD,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,0DAA0D;IAC1D,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B;AAoBD,eAAO,MAAM,qBAAqB,EAAE,SAAS,iBAAiB,EAiD7D,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,mBAAmB,GAAG,iBAAiB,CAE5E;AAED,sGAAsG;AACtG,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAM5F"}
@@ -0,0 +1,4 @@
1
+ import { type VisioBuiltInTheme } from './theme-builtins.js';
2
+ /** The complete theme part XML for one built-in theme. */
3
+ export declare function visioThemeXml(source: VisioBuiltInTheme): string;
4
+ //# sourceMappingURL=theme-write.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-write.d.ts","sourceRoot":"","sources":["../../visio/theme-write.ts"],"names":[],"mappings":"AAUA,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAiDnF,0DAA0D;AAC1D,wBAAgB,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAoD/D"}
@@ -8,6 +8,8 @@ import { type DrawingColor } from '../drawingml/index.js';
8
8
  import type { VisioPackage } from './package.js';
9
9
  import type { Report } from './sheet.js';
10
10
  export interface VisioTheme {
11
+ /** `a:theme/@name`, when present. */
12
+ name?: string;
11
13
  colorId: number | undefined;
12
14
  effectId: number | undefined;
13
15
  connectorId: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../visio/theme.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAWtC,MAAM,WAAW,UAAU;IAC1B,OAAO,EAAE,MAAM,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F;IAC/F,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAClC,sEAAsE;IACtE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;IACtC,eAAe,EAAE,OAAO,EAAE,EAAE,CAAC;IAC7B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,gBAAgB,EAAE,OAAO,EAAE,CAAC;CAC5B;AAaD,2FAA2F;AAC3F,wBAAsB,eAAe,CACpC,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,UAAU,EAAE,CAAC,CA+EvB"}
@@ -0,0 +1,38 @@
1
+ import { type GraphLayoutEdge, type GraphLayoutStyle } from '../../geometry/graph-layout.js';
2
+ import type { VisioEdit } from '../edit-commands.js';
3
+ import type { VisioPage } from '../model.js';
4
+ export type VisioLayoutStyle = GraphLayoutStyle;
5
+ export declare const VISIO_LAYOUT_STYLES: readonly GraphLayoutStyle[];
6
+ /** Gallery names of Design > Re-Layout Page. */
7
+ export declare const VISIO_LAYOUT_LABELS: Readonly<Record<VisioLayoutStyle, string>>;
8
+ export interface VisioLayoutOptions {
9
+ /** Page inches between neighbouring shapes; Visio's default spacing is about 0.5 in. */
10
+ spacing?: number;
11
+ /** Page inches between layers; defaults to 1.5 times `spacing`. */
12
+ layerSpacing?: number;
13
+ }
14
+ export interface VisioLayoutPlan {
15
+ commands: VisioEdit[];
16
+ /** Shapes the layout placed (moved or already in place). */
17
+ placed: number;
18
+ /** Top-level shapes left where they are: connectors, hidden, protected or unsupported shapes. */
19
+ skipped: number;
20
+ /** Connector-graph edges between placed shapes. */
21
+ edges: number;
22
+ }
23
+ /** Directed edges begin -> end of every connector whose two ends are glued to shapes. */
24
+ export declare function visioConnectorEdges(page: VisioPage): GraphLayoutEdge[];
25
+ /**
26
+ * Design > Re-Layout Page: lay out the selection (two or more shapes) or every movable top-level
27
+ * shape on the page from the connector graph of the page's Connect rows. The laid-out diagram
28
+ * keeps the top-left corner of the shapes' current bounds. Only shapes move: glued connectors
29
+ * follow through core glue recalculation, and core admission stays authoritative.
30
+ */
31
+ export declare function visioReLayoutCommands(page: VisioPage, style: VisioLayoutStyle, ids?: readonly string[], options?: VisioLayoutOptions): VisioLayoutPlan | undefined;
32
+ /**
33
+ * Home > Arrange > Position > Auto Align & Space: snap the selection (two or more shapes) or every
34
+ * movable top-level shape on the page into rows and columns by clustering their centres, then
35
+ * space rows and columns evenly with at least `minimumGap` page inches between them.
36
+ */
37
+ export declare function visioAutoAlignCommands(page: VisioPage, ids?: readonly string[], minimumGap?: number): VisioLayoutPlan | undefined;
38
+ //# sourceMappingURL=auto-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-layout.d.ts","sourceRoot":"","sources":["../../../visio/ui/auto-layout.ts"],"names":[],"mappings":"AACA,OAAO,EAGN,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AAItD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAChD,eAAO,MAAM,mBAAmB,6BAAsB,CAAC;AACvD,gDAAgD;AAChD,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAMzE,CAAC;AACH,MAAM,WAAW,kBAAkB;IAClC,wFAAwF;IACxF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,iGAAiG;IACjG,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;CACd;AAkDD,yFAAyF;AACzF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,GAAG,eAAe,EAAE,CAkBtE;AA8BD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,gBAAgB,EACvB,GAAG,CAAC,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,GAAE,kBAAuB,GAC9B,eAAe,GAAG,SAAS,CAsC7B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,SAAS,EACf,GAAG,CAAC,EAAE,SAAS,MAAM,EAAE,EACvB,UAAU,SAAO,GACf,eAAe,GAAG,SAAS,CAyB7B"}
@@ -0,0 +1,12 @@
1
+ import type { VisioPage, VisioShape } from '../model.js';
2
+ import type { VisioTextRangesEdit } from '../edit-text-range-commands.js';
3
+ import { type TextCaseMode } from '../../text/change-case.js';
4
+ export type { TextCaseMode } from '../../text/change-case.js';
5
+ /** A shape whose displayed text Change Case can rewrite; source admission stays authoritative. */
6
+ export declare function visioChangeCaseShape(page: VisioPage, shapeId: string): VisioShape | undefined;
7
+ /**
8
+ * Change Case as a source-preserving range edit. Ranges never cross a run (text node) or line
9
+ * boundary, so each character keeps its own formatting; returns undefined when nothing changes.
10
+ */
11
+ export declare function visioChangeCaseCommand(page: VisioPage, shapeId: string, mode: TextCaseMode): VisioTextRangesEdit | undefined;
12
+ //# sourceMappingURL=change-case.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"change-case.d.ts","sourceRoot":"","sources":["../../../visio/ui/change-case.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAyC,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAElG,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAY3D,kGAAkG;AAClG,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAG7F;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,YAAY,GAChB,mBAAmB,GAAG,SAAS,CAoBjC"}
@@ -0,0 +1,45 @@
1
+ import type { VisioPage, VisioShape } from '../model.js';
2
+ import type { VisioGeometryEdit } from '../edit-commands.js';
3
+ import type { VisioConnectorRoute } from '../edit-connector-commands.js';
4
+ /** A point in the scene's y-up page coordinates (physical page inches). */
5
+ export interface VisioScenePoint {
6
+ x: number;
7
+ y: number;
8
+ }
9
+ /** Page coordinates to a top-level shape's local coordinates, if its transform is invertible. */
10
+ export declare function visioSceneToLocal(shape: VisioShape, point: VisioScenePoint): VisioScenePoint | undefined;
11
+ /**
12
+ * A top-level shape the core can glue to or give connection points: visible, local and 2D.
13
+ * Master instances keep their master's points; groups and 1D shapes are refused.
14
+ */
15
+ export declare function visioConnectableShape(shape: VisioShape | undefined): shape is VisioShape;
16
+ /** A connection point in page coordinates. */
17
+ export interface VisioConnectionPointHit {
18
+ shapeId: string;
19
+ index: number;
20
+ x: number;
21
+ y: number;
22
+ distance: number;
23
+ }
24
+ /** Every connection point of the page's top-level shapes, in page coordinates. */
25
+ export declare function visioPageConnectionPoints(page: VisioPage, eligible?: (shape: VisioShape) => boolean): Omit<VisioConnectionPointHit, 'distance'>[];
26
+ /** The nearest glueable connection point within `radius` page inches of `point`. */
27
+ export declare function visioNearestConnectionPoint(page: VisioPage, point: VisioScenePoint, radius: number, eligible?: (shape: VisioShape) => boolean): VisioConnectionPointHit | undefined;
28
+ /**
29
+ * The Connection Point tool's command for a click at `point` inside a shape: a new row at that
30
+ * fraction of the shape's size (rounded to 1/10000).
31
+ */
32
+ export declare function visioAddConnectionPointCommand(page: VisioPage, shape: VisioShape, point: VisioScenePoint): Extract<VisioGeometryEdit, {
33
+ type: 'add-connection-point';
34
+ }> | undefined;
35
+ /** Local begin and end handles of a line or connector the core can move endpoint by endpoint. */
36
+ export declare function visioConnectorEndHandles(shape: VisioShape): {
37
+ begin: VisioScenePoint;
38
+ end: VisioScenePoint;
39
+ } | undefined;
40
+ /**
41
+ * The route of a local dynamic connector whose route Design > Connectors can change: one with
42
+ * route cells (drawn by the Connector tool). Plain lines have none.
43
+ */
44
+ export declare function visioConnectorRouteOf(shape: VisioShape): VisioConnectorRoute | undefined;
45
+ //# sourceMappingURL=connection-points.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-points.d.ts","sourceRoot":"","sources":["../../../visio/ui/connection-points.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAKD,iGAAiG;AACjG,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,eAAe,GACpB,eAAe,GAAG,SAAS,CAO7B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,KAAK,IAAI,UAAU,CAUxF;AAED,8CAA8C;AAC9C,MAAM,WAAW,uBAAuB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CACjB;AACD,kFAAkF;AAClF,wBAAgB,yBAAyB,CACxC,IAAI,EAAE,SAAS,EACf,QAAQ,GAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAAoB,GACnD,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,EAAE,CAU7C;AACD,oFAAoF;AACpF,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAA+B,GAC9D,uBAAuB,GAAG,SAAS,CAQrC;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAC7C,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,eAAe,GACpB,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAC,GAAG,SAAS,CAgB1E;AAED,iGAAiG;AACjG,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,UAAU,GACf;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,GAAG,EAAE,eAAe,CAAA;CAAE,GAAG,SAAS,CAW9D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,GAAG,mBAAmB,GAAG,SAAS,CAIxF"}
@@ -0,0 +1,24 @@
1
+ import type { VisioPage } from '../model.js';
2
+ import type { VisioConnectorRoute } from '../edit-connector-commands.js';
3
+ /** A connector redrawn for a move preview, in page coordinates with y down (SVG page inches). */
4
+ export interface VisioConnectorPreview {
5
+ connectorId: string;
6
+ route: VisioConnectorRoute;
7
+ /** Route vertices; a curved route has the four controls of one cubic. */
8
+ points: {
9
+ x: number;
10
+ y: number;
11
+ }[];
12
+ }
13
+ /**
14
+ * While shapes are dragged, the connectors glued to them re-routed for the translated shapes,
15
+ * with the same site choice and router the core uses when the move is committed. Connectors that
16
+ * move themselves, are not local, or cannot be resolved are left out.
17
+ */
18
+ export declare function visioConnectorMovePreviews(page: VisioPage, moved: ReadonlySet<string>, delta: {
19
+ x: number;
20
+ y: number;
21
+ }): VisioConnectorPreview[];
22
+ /** SVG path data for a connector preview. */
23
+ export declare function visioConnectorPreviewPath(preview: VisioConnectorPreview): string;
24
+ //# sourceMappingURL=connector-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-preview.d.ts","sourceRoot":"","sources":["../../../visio/ui/connector-preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAUtE,iGAAiG;AACjG,MAAM,WAAW,qBAAqB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,yEAAyE;IACzE,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,EAC1B,KAAK,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7B,qBAAqB,EAAE,CA8CzB;AAED,6CAA6C;AAC7C,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAOhF"}
@@ -0,0 +1,45 @@
1
+ import type { VisioPage, VisioShape } from '../model.js';
2
+ /** Hidden Shape Data row that marks a shape this viewer created as a data graphic part. */
3
+ export declare const VISIO_DATA_GRAPHIC_ROW = "_ooxmlDataGraphic";
4
+ /** Hidden row on a coloured shape holding its fill before Color by Value. */
5
+ export declare const VISIO_DATA_GRAPHIC_FILL_ROW = "_ooxmlDataGraphicFill";
6
+ export type VisioDataGraphicKind = 'text' | 'bar' | 'icon' | 'color';
7
+ export interface VisioDataGraphicOptions {
8
+ kind: VisioDataGraphicKind;
9
+ /** Shape Data row name the graphic reads. */
10
+ field: string;
11
+ /** Data bar and icon set range; defaults to the values' minimum and maximum. */
12
+ min?: number;
13
+ max?: number;
14
+ }
15
+ /** One Color by Value entry, as the legend lists it. */
16
+ export interface VisioColorRule {
17
+ label: string;
18
+ color: string;
19
+ }
20
+ export declare const VISIO_DATA_GRAPHIC_ICONS: {
21
+ low: string;
22
+ mid: string;
23
+ high: string;
24
+ };
25
+ export declare const visioShapeDataRow: (shape: VisioShape, name: string) => import("..").VisioShapeData | undefined;
26
+ export declare const visioDataGraphicMarker: (row: VisioShape) => import("..").VisioShapeData | undefined;
27
+ /** The display text of a Shape Data value: dates as yyyy-mm-dd, Booleans as TRUE/FALSE. */
28
+ export declare function visioShapeDataText(shape: VisioShape, name: string): string | undefined;
29
+ export declare const visioShapeDataNumber: (shape: VisioShape, name: string) => number | undefined;
30
+ /** Shape Data fields on the page's top-level shapes, by row name, with their labels. */
31
+ export declare function visioDataGraphicFields(page: VisioPage): {
32
+ name: string;
33
+ label: string;
34
+ }[];
35
+ /** Graphic parts (marked shapes) on the page, by owner shape ID. */
36
+ export declare function visioDataGraphicParts(page: VisioPage): Map<string, {
37
+ id: string;
38
+ kind: string;
39
+ }[]>;
40
+ /** Color by Value rules: three equal ranges for numbers, one colour per category otherwise. */
41
+ export declare function visioColorRules(page: VisioPage, shapeIds: readonly string[], name: string): {
42
+ rules: VisioColorRule[];
43
+ color(shape: VisioShape): string | undefined;
44
+ };
45
+ //# sourceMappingURL=data-graphic-rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-graphic-rules.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C,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC,CAS7C;AACD,+FAA+F;AAC/F,wBAAgB,eAAe,CAC9B,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,IAAI,EAAE,MAAM,GACV;IACF,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7C,CAsCA"}
@@ -0,0 +1,15 @@
1
+ import type { VisioPage } from '../model.js';
2
+ import type { VisioEdit } from '../edit-commands.js';
3
+ import { type VisioColorRule, type VisioDataGraphicOptions, type VisioDataGraphicKind } from './data-graphic-rules.js';
4
+ export * from './data-graphic-rules.js';
5
+ /** Remove the graphics of these owners (all kinds, or one) and restore Color by Value fills. */
6
+ export declare function visioRemoveDataGraphicEdits(page: VisioPage, shapeIds: readonly string[], kind?: VisioDataGraphicKind): VisioEdit[];
7
+ /**
8
+ * Apply one data graphic to top-level shapes that have the field. Text callouts, data bars and
9
+ * icons are separate marked shapes placed under or beside each shape (they do not follow it
10
+ * when it moves); Color by Value changes the shape's own fill and remembers the old one.
11
+ */
12
+ export declare function visioDataGraphicEdits(page: VisioPage, shapeIds: readonly string[], options: VisioDataGraphicOptions): VisioEdit[];
13
+ /** A legend for Color by Value: a title and one swatch and label per rule, grouped. */
14
+ export declare function visioLegendEdits(page: VisioPage, title: string, rules: readonly VisioColorRule[]): VisioEdit[];
15
+ //# sourceMappingURL=data-graphics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-graphics.d.ts","sourceRoot":"","sources":["../../../visio/ui/data-graphics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,EAUN,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAWrC,gGAAgG;AAChG,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,IAAI,CAAC,EAAE,oBAAoB,GACzB,SAAS,EAAE,CA4Bb;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,EAAE,uBAAuB,GAC9B,SAAS,EAAE,CA6Ib;AAED,uFAAuF;AACvF,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,SAAS,cAAc,EAAE,GAC9B,SAAS,EAAE,CA6Eb"}
@@ -0,0 +1,33 @@
1
+ import type { Workbook } from '../../xlsx/model.js';
2
+ import { type VisioDataColumn } from '../index.js';
3
+ /** A table ready for the import-data-recordset edit: typed columns and canonical row text. */
4
+ export interface VisioDataTable {
5
+ columns: VisioDataColumn[];
6
+ rows: string[][];
7
+ }
8
+ export type VisioDataCell = string | number | boolean | null | {
9
+ date: string;
10
+ };
11
+ export interface VisioDataTableOptions {
12
+ /** The first row holds the column names (Custom Import's "first row contains headers"). */
13
+ header?: boolean;
14
+ /** Zero-based inclusive range; omitted means the used range. */
15
+ range?: {
16
+ top: number;
17
+ left: number;
18
+ bottom: number;
19
+ right: number;
20
+ };
21
+ }
22
+ /** Excel serial days to ISO date text (1900 system with its leap-year bug, or 1904). */
23
+ export declare function excelSerialToIso(serial: number, date1904?: boolean): string;
24
+ /**
25
+ * Turn a grid of cells into recordset columns and rows. A column keeps a non-string type only
26
+ * when every non-empty value has it; otherwise its values stay as text.
27
+ */
28
+ export declare function visioDataTable(grid: readonly (readonly VisioDataCell[])[], options?: VisioDataTableOptions): VisioDataTable;
29
+ /** Read a worksheet's cells (dates by number format) for {@link visioDataTable}. */
30
+ export declare function visioWorkbookGrid(workbook: Workbook, sheetIndex?: number, range?: VisioDataTableOptions['range']): VisioDataCell[][];
31
+ /** Parse an A1-style range such as `A1:D20` (zero-based inclusive bounds). */
32
+ export declare function visioParseRange(value: string): VisioDataTableOptions['range'] | undefined;
33
+ //# sourceMappingURL=data-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../visio/ui/data-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAqB,KAAK,eAAe,EAA4B,MAAM,UAAU,CAAC;AAE7F,8FAA8F;AAC9F,MAAM,WAAW,cAAc;IAC9B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;CACjB;AACD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACrC,2FAA2F;IAC3F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,KAAK,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACrE;AAGD,wFAAwF;AACxF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAIzE;AAyCD;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,IAAI,EAAE,SAAS,CAAC,SAAS,aAAa,EAAE,CAAC,EAAE,EAC3C,OAAO,GAAE,qBAA0B,GACjC,cAAc,CAqChB;AAED,oFAAoF;AACpF,wBAAgB,iBAAiB,CAChC,QAAQ,EAAE,QAAQ,EAClB,UAAU,SAAI,EACd,KAAK,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,GACpC,aAAa,EAAE,EAAE,CAmCnB;AAED,8EAA8E;AAC9E,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,CAAC,OAAO,CAAC,GAAG,SAAS,CAczF"}
@@ -0,0 +1,32 @@
1
+ import type { VisioDocument } from '../model.js';
2
+ /**
3
+ * Process > Check Diagram: generic, provable rules over the parsed drawing. These are this
4
+ * viewer's own rules, not Visio's Flowchart or BPMN rule sets, and they read only saved values.
5
+ */
6
+ export type VisioRuleSetId = 'connectivity' | 'placement' | 'content';
7
+ export type VisioDiagramRuleId = 'connector-unglued' | 'connector-partially-glued' | 'connector-same-shape' | 'shape-off-page' | 'shape-stacked' | 'shape-empty';
8
+ export interface VisioRuleSet {
9
+ id: VisioRuleSetId;
10
+ name: string;
11
+ description: string;
12
+ }
13
+ export declare const VISIO_DIAGRAM_RULE_SETS: readonly VisioRuleSet[];
14
+ export interface VisioDiagramIssue {
15
+ /** Stable across checks of the same drawing: rule, page and shape. */
16
+ id: string;
17
+ ruleId: VisioDiagramRuleId;
18
+ ruleSet: VisioRuleSetId;
19
+ pageId: string;
20
+ shapeId: string;
21
+ shapeName: string;
22
+ message: string;
23
+ }
24
+ export interface VisioDiagramCheckOptions {
25
+ /** Rule sets to run; all of them when absent. */
26
+ ruleSets?: Iterable<VisioRuleSetId>;
27
+ /** Stop after this many issues (default 5000). */
28
+ maxIssues?: number;
29
+ }
30
+ /** Issues on every foreground page, in page and stacking order. */
31
+ export declare function checkVisioDiagram(document: VisioDocument, options?: VisioDiagramCheckOptions): VisioDiagramIssue[];
32
+ //# sourceMappingURL=diagram-check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagram-check.d.ts","sourceRoot":"","sources":["../../../visio/ui/diagram-check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAyB,MAAM,UAAU,CAAC;AAGrE;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,WAAW,GAAG,SAAS,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAC3B,mBAAmB,GACnB,2BAA2B,GAC3B,sBAAsB,GACtB,gBAAgB,GAChB,eAAe,GACf,aAAa,CAAC;AACjB,MAAM,WAAW,YAAY;IAC5B,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACpB;AACD,eAAO,MAAM,uBAAuB,EAAE,SAAS,YAAY,EAY1D,CAAC;AASF,MAAM,WAAW,iBAAiB;IACjC,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,wBAAwB;IACxC,iDAAiD;IACjD,QAAQ,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IACpC,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AA+ED,mEAAmE;AACnE,wBAAgB,iBAAiB,CAChC,QAAQ,EAAE,aAAa,EACvB,OAAO,GAAE,wBAA6B,GACpC,iBAAiB,EAAE,CAYrB"}
@@ -0,0 +1,20 @@
1
+ import type { VisioPage } from '../model.js';
2
+ import type { VisioCalloutStyle, VisioContainerStyle, VisioInsertCalloutEdit, VisioInsertContainerEdit } from '../edit-diagram-parts-commands.js';
3
+ /**
4
+ * Insert > Container around the selected top-level shapes, or an empty one at the page centre
5
+ * when nothing is selected. Source admission (members, IDs) stays authoritative in core.
6
+ */
7
+ export declare function visioContainerCommand(page: VisioPage, shapeIds: readonly string[], style: VisioContainerStyle, heading?: string): VisioInsertContainerEdit | undefined;
8
+ /**
9
+ * Insert > Callout for exactly one selected top-level 2D shape: the callout sits above and to the
10
+ * right of it, kept on the page, with a leader glued to both. Core refuses unsupported targets.
11
+ */
12
+ export declare function visioCalloutCommand(page: VisioPage, shapeIds: readonly string[], style: VisioCalloutStyle, text?: string): VisioInsertCalloutEdit | undefined;
13
+ /**
14
+ * Containers move their members: the selection plus every listed member that is still a
15
+ * top-level shape on the page. Callouts are left out; their glued leaders follow on their own.
16
+ */
17
+ export declare function visioWithContainerMembers(page: VisioPage, ids: readonly string[]): string[];
18
+ /** Shapes that go with the selection on delete: a callout's own leader connector. */
19
+ export declare function visioWithCalloutLeaders(page: VisioPage, ids: readonly string[]): string[];
20
+ //# sourceMappingURL=diagram-parts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagram-parts.d.ts","sourceRoot":"","sources":["../../../visio/ui/diagram-parts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EACX,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EAExB,MAAM,gCAAgC,CAAC;AA6CxC;;;GAGG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,EAAE,mBAAmB,EAC1B,OAAO,SAAc,GACnB,wBAAwB,GAAG,SAAS,CA8BtC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,EAAE,iBAAiB,EACxB,IAAI,SAAK,GACP,sBAAsB,GAAG,SAAS,CA2BpC;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAa3F;AAED,qFAAqF;AACrF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAgBzF"}
@@ -0,0 +1,21 @@
1
+ import type { VisioGeometryEdit } from '../edit-commands.js';
2
+ import type { VisioPage } from '../model.js';
3
+ import { type VisioDrawingPoint } from './draw-plan.js';
4
+ /** Path drawing tools: Freeform (Ctrl+5), Pencil (Ctrl+4) and Arc (Ctrl+7). */
5
+ export type VisioPathTool = 'freeform' | 'pencil' | 'arc';
6
+ export declare const isVisioPathTool: (tool: unknown) => tool is VisioPathTool;
7
+ /** Page inches within which a freeform or pencil stroke that returns to its start closes. */
8
+ export declare const VISIO_PATH_CLOSE_DISTANCE = 0.125;
9
+ /** Default fitting tolerance in page inches. */
10
+ export declare const VISIO_PATH_TOLERANCE: number;
11
+ /**
12
+ * Plan a Freeform, Pencil or Arc creation from the sampled pointer stroke in page inches. Returns
13
+ * undefined for a stroke too small to draw. A stroke that simplifies to one straight segment, or
14
+ * whose path has no area extent, becomes an ordinary line (as a single Pencil segment is in Visio).
15
+ */
16
+ export declare function visioPathDrawPlan(page: VisioPage, kind: VisioPathTool, samples: readonly VisioDrawingPoint[], options?: {
17
+ tolerance?: number;
18
+ }): VisioGeometryEdit | undefined;
19
+ /** SVG path data (page inches, top-left origin) previewing a stroke while it is drawn. */
20
+ export declare function visioPathPreview(kind: VisioPathTool, samples: readonly VisioDrawingPoint[]): string;
21
+ //# sourceMappingURL=draw-path-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"draw-path-plan.d.ts","sourceRoot":"","sources":["../../../visio/ui/draw-path-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAa1C,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE/E,+EAA+E;AAC/E,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;AAC1D,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,IAAI,IAAI,aACG,CAAC;AAC5D,6FAA6F;AAC7F,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAC/C,gDAAgD;AAChD,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAiB3C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAClC,iBAAiB,GAAG,SAAS,CAqD/B;AAED,0FAA0F;AAC1F,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,SAAS,iBAAiB,EAAE,GACnC,MAAM,CAaR"}
@@ -1,5 +1,6 @@
1
- import type { VisioGeometryEdit } from '../edit-commands.js';
1
+ import type { VisioConnectorGlue, VisioConnectorRoute, VisioGeometryEdit } from '../edit-commands.js';
2
2
  import type { VisioPage } from '../model.js';
3
+ import type { VisioOutlineShape } from '../stencil-shapes.js';
3
4
  export type VisioDrawingTool = 'rectangle' | 'ellipse' | 'line' | 'text';
4
5
  /** Physical page inches, with the SVG top-left origin and downward Y axis. */
5
6
  export interface VisioDrawingPoint {
@@ -24,8 +25,18 @@ export declare function visioDrawBounds(start: VisioDrawingPoint, end: VisioDraw
24
25
  export declare function visioBoxCreationCommand(page: VisioPage, kind: Exclude<VisioDrawingTool, 'line'>, centre: VisioDrawingPoint, size: {
25
26
  width: number;
26
27
  height: number;
27
- }, text?: string): VisioGeometryEdit;
28
+ }, text?: string,
29
+ /** A Basic Shapes outline for a rectangle-kind box (see `VISIO_BASIC_SHAPES`). */
30
+ shape?: VisioOutlineShape): VisioGeometryEdit;
28
31
  export declare function visioLineCreationCommand(page: VisioPage, begin: VisioDrawingPoint, end: VisioDrawingPoint): VisioGeometryEdit;
32
+ /**
33
+ * A straight connector from the Connector tool. Ends dropped on shapes glue to them with native
34
+ * dynamic glue; the core moves glued ends to the facing side midpoints. An end dropped on the
35
+ * same shape as the begin end, or on empty canvas, stays unglued.
36
+ */
37
+ export declare function visioConnectorCreationCommand(page: VisioPage, begin: VisioDrawingPoint, end: VisioDrawingPoint, glue: VisioConnectorGlue, route?: VisioConnectorRoute): Extract<VisioGeometryEdit, {
38
+ type: 'create-line';
39
+ }>;
29
40
  /** Fixed-bounds creation. Native click-only sizing and automatic text growth are not inferred. */
30
41
  export declare function visioDrawIsLargeEnough(kind: VisioDrawingTool, start: VisioDrawingPoint, end: VisioDrawingPoint): boolean;
31
42
  export declare function visioDrawPlan(page: VisioPage, kind: VisioDrawingTool, start: VisioDrawingPoint, end: VisioDrawingPoint, text?: string): VisioGeometryEdit | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"draw-plan.d.ts","sourceRoot":"","sources":["../../../visio/ui/draw-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AACzE,8EAA8E;AAC9E,MAAM,WAAW,iBAAiB;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AACD,MAAM,WAAW,kBAAkB;IAClC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CAChB;AAID,wBAAgB,iBA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wBAAgB,6BAA6B,CAC5C,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,iBAAiB,EACxB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,kBAAkB,EACxB,KAAK,CAAC,EAAE,mBAAmB,GACzB,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,CAiBrD;AAED,kGAAkG;AAClG,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,iBAAiB,EACxB,GAAG,EAAE,iBAAiB,GACpB,OAAO,CAUT;AAED,wBAAgB,aAAa,CAC5B,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,iBAAiB,EACxB,GAAG,EAAE,iBAAiB,EACtB,IAAI,CAAC,EAAE,MAAM,GACX,iBAAiB,GAAG,SAAS,CAM/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../../visio/ui/edit-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAO1C,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CAkJtE"}
1
+ {"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../../visio/ui/edit-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AA+B1C,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CA+KtE"}
@@ -0,0 +1,25 @@
1
+ import type { VisioDocument, VisioPage } from '../model.js';
2
+ import type { VisioShapeFormatEdit, VisioTextFormatEdit } from '../edit-formatting-commands.js';
3
+ type Patch<T> = Omit<T, 'type' | 'pageId' | 'shapeId'>;
4
+ /** Formatting captured by Format Painter, expressed only as existing whole-shape format edits. */
5
+ export interface VisioFormatPainterSnapshot {
6
+ readonly shape: Readonly<Patch<VisioShapeFormatEdit>>;
7
+ readonly text: Readonly<Patch<VisioTextFormatEdit>>;
8
+ /** Human-readable source formatting that existing edits cannot express and was not copied. */
9
+ readonly skipped: readonly string[];
10
+ }
11
+ /** Never copied: no core edit expresses them yet. */
12
+ export declare const VISIO_FORMAT_PAINTER_LIMITS = "Shadows, rounding, theme effects, arrowheads and per-run text differences are not copied.";
13
+ /**
14
+ * Reads the source shape's effective fill, line and text formatting from the scene. Text uses
15
+ * the first run and paragraph, as Visio's painter applies one character and paragraph format.
16
+ */
17
+ export declare function visioFormatPainterSnapshot(document: VisioDocument, page: VisioPage, shapeId: string): VisioFormatPainterSnapshot | undefined;
18
+ /**
19
+ * One format-shape and one format-text edit per target; undefined when a target is ineligible.
20
+ * Text formatting needs existing local text (core refuses to create a Text element for it), so
21
+ * targets without text receive only fill and line formatting.
22
+ */
23
+ export declare function visioFormatPainterEdits(page: VisioPage, snapshot: VisioFormatPainterSnapshot, shapeIds: readonly string[]): (VisioShapeFormatEdit | VisioTextFormatEdit)[] | undefined;
24
+ export {};
25
+ //# sourceMappingURL=format-painter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-painter.d.ts","sourceRoot":"","sources":["../../../visio/ui/format-painter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAI7F,KAAK,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC;AACvD,kGAAkG;AAClG,MAAM,WAAW,0BAA0B;IAC1C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACtD,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACpD,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AACD,qDAAqD;AACrD,eAAO,MAAM,2BAA2B,8FACoD,CAAC;AAM7F;;;GAGG;AACH,wBAAgB,0BAA0B,CACzC,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,GACb,0BAA0B,GAAG,SAAS,CAiExC;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,0BAA0B,EACpC,QAAQ,EAAE,SAAS,MAAM,EAAE,GACzB,CAAC,oBAAoB,GAAG,mBAAmB,CAAC,EAAE,GAAG,SAAS,CAc5D"}