ooxml-core 1.36.0 → 1.37.1

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 (474) 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 +21750 -19661
  8. package/dist/automation/index.mjs +21731 -19661
  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 +9 -17
  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/chart-formatting-schemas.d.ts +1 -3
  81. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
  82. package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -3
  83. package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
  84. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -3
  85. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
  86. package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -3
  87. package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
  88. package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -3
  89. package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
  90. package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -3
  91. package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
  92. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -3
  93. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
  94. package/dist/pptx/automation/schemas/index.cjs +1 -0
  95. package/dist/pptx/automation/schemas/index.d.ts +1 -3
  96. package/dist/pptx/automation/schemas/index.d.ts.map +1 -1
  97. package/dist/pptx/automation/schemas/index.mjs +1 -1
  98. package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -3
  99. package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
  100. package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -3
  101. package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
  102. package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -3
  103. package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
  104. package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -3
  105. package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
  106. package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -3
  107. package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
  108. package/dist/pptx/automation/schemas/presentation-schemas.cjs +1 -0
  109. package/dist/pptx/automation/schemas/presentation-schemas.d.ts +2 -3
  110. package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
  111. package/dist/pptx/automation/schemas/presentation-schemas.mjs +1 -1
  112. package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -3
  113. package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
  114. package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -3
  115. package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
  116. package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -3
  117. package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
  118. package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -3
  119. package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
  120. package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -3
  121. package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
  122. package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -3
  123. package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
  124. package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -3
  125. package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
  126. package/dist/pptx/chunks/{collaboration-text-codec-Du_XeE_i.d.ts → collaboration-text-codec-1VmwD3yq.d.ts} +1 -3
  127. package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts.map +1 -0
  128. package/dist/pptx/chunks/{collaboration-text-merge-DWWWdT_t.d.ts → collaboration-text-merge-B-tth-0W.d.ts} +2 -4
  129. package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts.map +1 -0
  130. package/dist/pptx/chunks/{collaboration-text-positions-MMT3GkZi.d.ts → collaboration-text-positions-D-1Jo1Fz.d.ts} +1 -3
  131. package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts.map +1 -0
  132. package/dist/pptx/chunks/{collaboration-text-session-D0NOLQk7.d.ts → collaboration-text-session-CWHTaWF4.d.ts} +4 -6
  133. package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts.map +1 -0
  134. package/dist/pptx/chunks/{collaboration-text-session-delta-CzJGrTKJ.d.ts → collaboration-text-session-delta-Dxzybssp.d.ts} +2 -4
  135. package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts.map +1 -0
  136. package/dist/pptx/chunks/{color-ref-DT599vEx.d.ts → color-ref-CwUQoKPJ.d.ts} +1 -3
  137. package/dist/pptx/chunks/color-ref-CwUQoKPJ.d.ts.map +1 -0
  138. package/dist/pptx/chunks/{elements-f3UbFph-.d.ts → elements-DheCTwi0.d.ts} +4 -54
  139. package/dist/pptx/chunks/elements-DheCTwi0.d.ts.map +1 -0
  140. package/dist/pptx/chunks/{index-Bp-1pGo1.d.ts → index-B4ofjG6_.d.ts} +6 -384
  141. package/dist/pptx/chunks/index-B4ofjG6_.d.ts.map +1 -0
  142. package/dist/pptx/chunks/{index-pLLN4OTz.d.ts → index-DC5m1m_8.d.ts} +8 -542
  143. package/dist/pptx/chunks/index-DC5m1m_8.d.ts.map +1 -0
  144. package/dist/pptx/chunks/{index-BnH2QjYm.d.ts → index-Jcce8TlI.d.ts} +5 -37
  145. package/dist/pptx/chunks/index-Jcce8TlI.d.ts.map +1 -0
  146. package/dist/pptx/chunks/{inspection-status-DjiWd_Aa.d.ts → inspection-status-TKac7eqb.d.ts} +1 -13
  147. package/dist/pptx/chunks/inspection-status-TKac7eqb.d.ts.map +1 -0
  148. package/dist/pptx/chunks/{schemas-fuDGetRe.d.ts → schemas-LHsDbVOw.d.ts} +1 -29
  149. package/dist/pptx/chunks/schemas-LHsDbVOw.d.ts.map +1 -0
  150. package/dist/pptx/chunks/{smart-art-CmOrPLLQ.d.ts → smart-art-DB37AsFP.d.ts} +2 -46
  151. package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts.map +1 -0
  152. package/dist/pptx/chunks/{text-operations-D5sgspO6.d.ts → text-operations-CdgEnFuK.d.ts} +4 -32
  153. package/dist/pptx/chunks/text-operations-CdgEnFuK.d.ts.map +1 -0
  154. package/dist/pptx/chunks/{text-P9xVnXXf.d.ts → text-t_wJ2OwM.d.ts} +2 -12
  155. package/dist/pptx/chunks/text-t_wJ2OwM.d.ts.map +1 -0
  156. package/dist/pptx/cli/index.cjs +10 -4
  157. package/dist/pptx/cli/index.d.ts +1 -3
  158. package/dist/pptx/cli/index.d.ts.map +1 -1
  159. package/dist/pptx/cli/index.mjs +4 -4
  160. package/dist/pptx/converter/index.cjs +7 -1
  161. package/dist/pptx/converter/index.d.ts +1 -1
  162. package/dist/pptx/converter/index.mjs +2 -2
  163. package/dist/pptx/editor/ai/table-merge.d.ts +0 -2
  164. package/dist/pptx/editor/ai/table-merge.d.ts.map +1 -1
  165. package/dist/pptx/editor/loader/element-patch-walker.d.ts +0 -2
  166. package/dist/pptx/editor/loader/element-patch-walker.d.ts.map +1 -1
  167. package/dist/pptx/editor/loader/is-external-url.d.ts +0 -2
  168. package/dist/pptx/editor/loader/is-external-url.d.ts.map +1 -1
  169. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts +0 -2
  170. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts.map +1 -1
  171. package/dist/pptx/editor/loader/load-content-helpers.d.ts +0 -2
  172. package/dist/pptx/editor/loader/load-content-helpers.d.ts.map +1 -1
  173. package/dist/pptx/editor/loader/table-style-image-paths.d.ts +0 -2
  174. package/dist/pptx/editor/loader/table-style-image-paths.d.ts.map +1 -1
  175. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts +0 -2
  176. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts.map +1 -1
  177. package/dist/pptx/editor/render/bullet-list.d.ts +0 -2
  178. package/dist/pptx/editor/render/bullet-list.d.ts.map +1 -1
  179. package/dist/pptx/editor/render/bullet-toggle.d.ts +0 -2
  180. package/dist/pptx/editor/render/bullet-toggle.d.ts.map +1 -1
  181. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts +0 -2
  182. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts.map +1 -1
  183. package/dist/pptx/editor/render/clone.d.ts +0 -2
  184. package/dist/pptx/editor/render/clone.d.ts.map +1 -1
  185. package/dist/pptx/editor/render/collaboration-active-session.d.ts +0 -2
  186. package/dist/pptx/editor/render/collaboration-active-session.d.ts.map +1 -1
  187. package/dist/pptx/editor/render/collaboration-departure.d.ts +0 -2
  188. package/dist/pptx/editor/render/collaboration-departure.d.ts.map +1 -1
  189. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts +0 -2
  190. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts.map +1 -1
  191. package/dist/pptx/editor/render/collaboration-load-origin.d.ts +0 -2
  192. package/dist/pptx/editor/render/collaboration-load-origin.d.ts.map +1 -1
  193. package/dist/pptx/editor/render/collaboration-reconcile.d.ts +0 -2
  194. package/dist/pptx/editor/render/collaboration-reconcile.d.ts.map +1 -1
  195. package/dist/pptx/editor/render/collaboration-sync.d.ts +4 -8
  196. package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
  197. package/dist/pptx/editor/render/collaboration-text-codec.d.ts +1 -1
  198. package/dist/pptx/editor/render/collaboration-text-lease.d.ts +0 -2
  199. package/dist/pptx/editor/render/collaboration-text-lease.d.ts.map +1 -1
  200. package/dist/pptx/editor/render/collaboration-text-merge.d.ts +1 -1
  201. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +2 -4
  202. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts.map +1 -1
  203. package/dist/pptx/editor/render/collaboration-text-positions.d.ts +1 -1
  204. package/dist/pptx/editor/render/collaboration-text-projection.d.ts +1 -3
  205. package/dist/pptx/editor/render/collaboration-text-projection.d.ts.map +1 -1
  206. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts +3 -5
  207. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts.map +1 -1
  208. package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts +1 -1
  209. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -3
  210. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts.map +1 -1
  211. package/dist/pptx/editor/render/collaboration-text-session.d.ts +1 -1
  212. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts +2 -4
  213. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts.map +1 -1
  214. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  215. package/dist/pptx/editor/render/custom-show-operations.d.ts +0 -2
  216. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -1
  217. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  218. package/dist/pptx/editor/render/deck-save-encryption.d.ts +0 -2
  219. package/dist/pptx/editor/render/deck-save-encryption.d.ts.map +1 -1
  220. package/dist/pptx/editor/render/editor-history.d.ts +0 -2
  221. package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
  222. package/dist/pptx/editor/render/editor-mutations.d.ts +0 -2
  223. package/dist/pptx/editor/render/editor-mutations.d.ts.map +1 -1
  224. package/dist/pptx/editor/render/element-locks.d.ts +0 -2
  225. package/dist/pptx/editor/render/element-locks.d.ts.map +1 -1
  226. package/dist/pptx/editor/render/element-operations.d.ts +0 -2
  227. package/dist/pptx/editor/render/element-operations.d.ts.map +1 -1
  228. package/dist/pptx/editor/render/element.d.ts +0 -2
  229. package/dist/pptx/editor/render/element.d.ts.map +1 -1
  230. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  231. package/dist/pptx/editor/render/find-replace.d.ts +2 -4
  232. package/dist/pptx/editor/render/find-replace.d.ts.map +1 -1
  233. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  234. package/dist/pptx/editor/render/font-family-update.d.ts +1 -3
  235. package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -1
  236. package/dist/pptx/editor/render/group-drill.d.ts +0 -2
  237. package/dist/pptx/editor/render/group-drill.d.ts.map +1 -1
  238. package/dist/pptx/editor/render/inline-list-body.d.ts +0 -2
  239. package/dist/pptx/editor/render/inline-list-body.d.ts.map +1 -1
  240. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +1 -3
  241. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -1
  242. package/dist/pptx/editor/render/remap-empty-paragraph.d.ts +0 -2
  243. package/dist/pptx/editor/render/remap-empty-paragraph.d.ts.map +1 -1
  244. package/dist/pptx/editor/render/remap-paragraph-sources.d.ts +0 -2
  245. package/dist/pptx/editor/render/remap-paragraph-sources.d.ts.map +1 -1
  246. package/dist/pptx/editor/render/remap-text-bullets.d.ts +0 -2
  247. package/dist/pptx/editor/render/remap-text-bullets.d.ts.map +1 -1
  248. package/dist/pptx/editor/render/remap-text.d.ts +0 -2
  249. package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
  250. package/dist/pptx/editor/render/schema-label-keys.d.ts +0 -2
  251. package/dist/pptx/editor/render/schema-label-keys.d.ts.map +1 -1
  252. package/dist/pptx/editor/render/section-operations.d.ts +0 -2
  253. package/dist/pptx/editor/render/section-operations.d.ts.map +1 -1
  254. package/dist/pptx/editor/render/slide-background-patch.d.ts +0 -2
  255. package/dist/pptx/editor/render/slide-background-patch.d.ts.map +1 -1
  256. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  257. package/dist/pptx/editor/render/slide-operations.d.ts +0 -2
  258. package/dist/pptx/editor/render/slide-operations.d.ts.map +1 -1
  259. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  260. package/dist/pptx/editor/render/slide-search.d.ts +0 -2
  261. package/dist/pptx/editor/render/slide-search.d.ts.map +1 -1
  262. package/dist/pptx/editor/render/slide-size-rescale.d.ts +0 -2
  263. package/dist/pptx/editor/render/slide-size-rescale.d.ts.map +1 -1
  264. package/dist/pptx/editor/render/slide-transition-edits.d.ts +0 -2
  265. package/dist/pptx/editor/render/slide-transition-edits.d.ts.map +1 -1
  266. package/dist/pptx/editor/render/table-cell-edit.d.ts +0 -2
  267. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  268. package/dist/pptx/editor/render/table-cell-merge.d.ts +0 -2
  269. package/dist/pptx/editor/render/table-cell-merge.d.ts.map +1 -1
  270. package/dist/pptx/editor/render/table-data-grid-ops.d.ts +0 -2
  271. package/dist/pptx/editor/render/table-data-grid-ops.d.ts.map +1 -1
  272. package/dist/pptx/editor/render/table-layout.d.ts +0 -2
  273. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  274. package/dist/pptx/editor/render/table-merge.d.ts +0 -2
  275. package/dist/pptx/editor/render/table-merge.d.ts.map +1 -1
  276. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts +0 -2
  277. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts.map +1 -1
  278. package/dist/pptx/editor/render/table-style-editor-edit.d.ts +0 -2
  279. package/dist/pptx/editor/render/table-style-editor-edit.d.ts.map +1 -1
  280. package/dist/pptx/editor/render/table-style-editor-parts.d.ts +0 -2
  281. package/dist/pptx/editor/render/table-style-editor-parts.d.ts.map +1 -1
  282. package/dist/pptx/editor/render/table-style-map-edits.d.ts +0 -2
  283. package/dist/pptx/editor/render/table-style-map-edits.d.ts.map +1 -1
  284. package/dist/pptx/editor/render/template-editing.d.ts +0 -2
  285. package/dist/pptx/editor/render/template-editing.d.ts.map +1 -1
  286. package/dist/pptx/editor/render/text-content-style.d.ts +1 -3
  287. package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -1
  288. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -4
  289. package/dist/pptx/editor/render/text-runs-style-patch.d.ts.map +1 -1
  290. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts +0 -2
  291. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts.map +1 -1
  292. package/dist/pptx/editor/render/text-style-scope.d.ts +2 -4
  293. package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -1
  294. package/dist/pptx/editor/render/text-theme.d.ts +0 -2
  295. package/dist/pptx/editor/render/text-theme.d.ts.map +1 -1
  296. package/dist/pptx/editor/render/theme-editor-model.d.ts +0 -2
  297. package/dist/pptx/editor/render/theme-editor-model.d.ts.map +1 -1
  298. package/dist/pptx/editor/render/theme-editor-presets.d.ts +0 -2
  299. package/dist/pptx/editor/render/theme-editor-presets.d.ts.map +1 -1
  300. package/dist/pptx/editor/render/update-text-segment-style.d.ts +1 -3
  301. package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -1
  302. package/dist/pptx/index.cjs +10 -4
  303. package/dist/pptx/index.d.ts +9 -9
  304. package/dist/pptx/index.mjs +5 -5
  305. package/dist/pptx/node/index.d.ts +1 -3
  306. package/dist/pptx/node/index.d.ts.map +1 -1
  307. package/dist/pptx/signature-node/index.d.ts +1 -21
  308. package/dist/pptx/signature-node/index.d.ts.map +1 -1
  309. package/dist/pptx/smartart-layouts/index.d.ts +1 -7
  310. package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
  311. package/dist/pptx/ui/index.d.ts +2 -10
  312. package/dist/pptx/ui/index.d.ts.map +1 -1
  313. package/dist/teams/index.cjs +812 -95
  314. package/dist/teams/index.mjs +811 -95
  315. package/dist/visio/bevel-3d.d.ts +6 -10
  316. package/dist/visio/bevel-3d.d.ts.map +1 -1
  317. package/dist/visio/bevel-shading.d.ts +72 -0
  318. package/dist/visio/bevel-shading.d.ts.map +1 -0
  319. package/dist/visio/cff-recalc.d.ts.map +1 -1
  320. package/dist/visio/collab/index.cjs +1 -1
  321. package/dist/visio/collab/index.mjs +1 -1
  322. package/dist/visio/data-graphic-instance.d.ts +44 -0
  323. package/dist/visio/data-graphic-instance.d.ts.map +1 -0
  324. package/dist/visio/data-graphic-masters.d.ts +38 -0
  325. package/dist/visio/data-graphic-masters.d.ts.map +1 -0
  326. package/dist/visio/data-graphic-place.d.ts +34 -0
  327. package/dist/visio/data-graphic-place.d.ts.map +1 -0
  328. package/dist/visio/edit-commands.d.ts +3 -1
  329. package/dist/visio/edit-commands.d.ts.map +1 -1
  330. package/dist/visio/edit-data-graphic-guard.d.ts +13 -0
  331. package/dist/visio/edit-data-graphic-guard.d.ts.map +1 -0
  332. package/dist/visio/edit-data-graphic-owner.d.ts +9 -0
  333. package/dist/visio/edit-data-graphic-owner.d.ts.map +1 -0
  334. package/dist/visio/edit-data-graphic-refresh.d.ts +14 -0
  335. package/dist/visio/edit-data-graphic-refresh.d.ts.map +1 -0
  336. package/dist/visio/edit-data-graphic.d.ts +33 -0
  337. package/dist/visio/edit-data-graphic.d.ts.map +1 -0
  338. package/dist/visio/edit-formatting-text-commands.d.ts +8 -0
  339. package/dist/visio/edit-formatting-text-commands.d.ts.map +1 -1
  340. package/dist/visio/edit-formatting-text-extra.d.ts +14 -0
  341. package/dist/visio/edit-formatting-text-extra.d.ts.map +1 -1
  342. package/dist/visio/edit-formatting-text.d.ts.map +1 -1
  343. package/dist/visio/edit-formatting.d.ts.map +1 -1
  344. package/dist/visio/edit-shape-data.d.ts.map +1 -1
  345. package/dist/visio/edit-swimlane-cff.d.ts +28 -0
  346. package/dist/visio/edit-swimlane-cff.d.ts.map +1 -0
  347. package/dist/visio/edit-swimlane-clone.d.ts +8 -4
  348. package/dist/visio/edit-swimlane-clone.d.ts.map +1 -1
  349. package/dist/visio/edit-swimlane-layout.d.ts +6 -1
  350. package/dist/visio/edit-swimlane-layout.d.ts.map +1 -1
  351. package/dist/visio/edit-swimlane-ops.d.ts.map +1 -1
  352. package/dist/visio/edit.d.ts.map +1 -1
  353. package/dist/visio/formula-analyze.d.ts.map +1 -1
  354. package/dist/visio/formula-evaluate.d.ts.map +1 -1
  355. package/dist/visio/formula.d.ts.map +1 -1
  356. package/dist/visio/index.cjs +2980 -1707
  357. package/dist/visio/index.d.ts +2 -1
  358. package/dist/visio/index.d.ts.map +1 -1
  359. package/dist/visio/index.mjs +2971 -1708
  360. package/dist/visio/master-list.d.ts +3 -3
  361. package/dist/visio/master-list.d.ts.map +1 -1
  362. package/dist/visio/model.d.ts +6 -1
  363. package/dist/visio/model.d.ts.map +1 -1
  364. package/dist/visio/rotation-presets.d.ts +25 -0
  365. package/dist/visio/rotation-presets.d.ts.map +1 -0
  366. package/dist/visio/shape-structure.d.ts.map +1 -1
  367. package/dist/visio/shapes.d.ts +2 -0
  368. package/dist/visio/shapes.d.ts.map +1 -1
  369. package/dist/visio/solid-3d.d.ts +9 -0
  370. package/dist/visio/solid-3d.d.ts.map +1 -1
  371. package/dist/visio/style.d.ts.map +1 -1
  372. package/dist/visio/ui/data-graphic-config.d.ts +4 -19
  373. package/dist/visio/ui/data-graphic-config.d.ts.map +1 -1
  374. package/dist/visio/ui/data-graphic-items.d.ts.map +1 -1
  375. package/dist/visio/ui/data-graphic-native.d.ts +20 -0
  376. package/dist/visio/ui/data-graphic-native.d.ts.map +1 -0
  377. package/dist/visio/ui/data-graphics.d.ts.map +1 -1
  378. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  379. package/dist/visio/ui/index.cjs +3130 -1821
  380. package/dist/visio/ui/index.mjs +3128 -1822
  381. package/dist/visio/ui/org-chart-belt.d.ts.map +1 -1
  382. package/dist/visio/ui/scene-validation.d.ts.map +1 -1
  383. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  384. package/dist/visio/ui/swimlane.d.ts.map +1 -1
  385. package/dist/visio/ui/text-dialog.d.ts +12 -0
  386. package/dist/visio/ui/text-dialog.d.ts.map +1 -1
  387. package/dist/xlsx/collab/index.cjs +45 -2
  388. package/dist/xlsx/collab/index.mjs +45 -2
  389. package/dist/xlsx/collab/part-specs.d.ts.map +1 -1
  390. package/dist/xlsx/collab/sheets.d.ts +1 -0
  391. package/dist/xlsx/collab/sheets.d.ts.map +1 -1
  392. package/dist/xlsx/edit/annotations.d.ts +4 -0
  393. package/dist/xlsx/edit/annotations.d.ts.map +1 -1
  394. package/dist/xlsx/edit/clipboard-annotations.d.ts.map +1 -1
  395. package/dist/xlsx/edit/comment-identities.d.ts +4 -0
  396. package/dist/xlsx/edit/comment-identities.d.ts.map +1 -0
  397. package/dist/xlsx/edit/session.d.ts.map +1 -1
  398. package/dist/xlsx/edit/sheets.d.ts.map +1 -1
  399. package/dist/xlsx/edit/types.d.ts +3 -0
  400. package/dist/xlsx/edit/types.d.ts.map +1 -1
  401. package/dist/xlsx/formula/functions/filterxml.d.ts +2 -0
  402. package/dist/xlsx/formula/functions/filterxml.d.ts.map +1 -0
  403. package/dist/xlsx/formula/functions/registry.d.ts.map +1 -1
  404. package/dist/xlsx/index.cjs +1007 -285
  405. package/dist/xlsx/index.mjs +988 -285
  406. package/dist/xlsx/layout/split.d.ts +3 -1
  407. package/dist/xlsx/layout/split.d.ts.map +1 -1
  408. package/dist/xlsx/load/index.cjs +809 -126
  409. package/dist/xlsx/load/index.mjs +790 -126
  410. package/dist/xlsx/model.d.ts +19 -7
  411. package/dist/xlsx/model.d.ts.map +1 -1
  412. package/dist/xlsx/read/comments.d.ts +3 -1
  413. package/dist/xlsx/read/comments.d.ts.map +1 -1
  414. package/dist/xlsx/read/conditional.d.ts +2 -2
  415. package/dist/xlsx/read/conditional.d.ts.map +1 -1
  416. package/dist/xlsx/read/data-validations.d.ts +7 -0
  417. package/dist/xlsx/read/data-validations.d.ts.map +1 -0
  418. package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
  419. package/dist/xlsx/read/worksheet.d.ts.map +1 -1
  420. package/dist/xlsx/ui/commands/i18n/messages.d.ts.map +1 -1
  421. package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
  422. package/dist/xlsx/ui/grid/geometry.d.ts +3 -0
  423. package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
  424. package/dist/xlsx/ui/index.cjs +952 -168
  425. package/dist/xlsx/ui/index.mjs +933 -169
  426. package/dist/xlsx/ui/selection.d.ts +3 -0
  427. package/dist/xlsx/ui/selection.d.ts.map +1 -1
  428. package/dist/xlsx/validation-extensions.d.ts +6 -0
  429. package/dist/xlsx/validation-extensions.d.ts.map +1 -0
  430. package/dist/xlsx/write/comment-ids.d.ts +14 -0
  431. package/dist/xlsx/write/comment-ids.d.ts.map +1 -0
  432. package/dist/xlsx/write/comment-mentions.d.ts +6 -0
  433. package/dist/xlsx/write/comment-mentions.d.ts.map +1 -0
  434. package/dist/xlsx/write/comment-persons.d.ts +16 -0
  435. package/dist/xlsx/write/comment-persons.d.ts.map +1 -0
  436. package/dist/xlsx/write/comments.d.ts +5 -11
  437. package/dist/xlsx/write/comments.d.ts.map +1 -1
  438. package/dist/xlsx/write/conditional.d.ts +2 -2
  439. package/dist/xlsx/write/conditional.d.ts.map +1 -1
  440. package/dist/xlsx/write/data-validations.d.ts +6 -0
  441. package/dist/xlsx/write/data-validations.d.ts.map +1 -0
  442. package/dist/xlsx/write/save.d.ts.map +1 -1
  443. package/dist/xlsx/write/sheet-parts.d.ts +4 -0
  444. package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
  445. package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
  446. package/dist/xlsx/write/threaded-comments.d.ts +19 -0
  447. package/dist/xlsx/write/threaded-comments.d.ts.map +1 -0
  448. package/dist/xlsx/write/worksheet.d.ts.map +1 -1
  449. package/dist/xml/index.cjs +31 -1
  450. package/dist/xml/index.d.ts +1 -0
  451. package/dist/xml/index.d.ts.map +1 -1
  452. package/dist/xml/index.mjs +11 -2
  453. package/dist/xml/xml.d.ts +2 -0
  454. package/dist/xml/xml.d.ts.map +1 -1
  455. package/dist/xml/xpath.d.ts +9 -0
  456. package/dist/xml/xpath.d.ts.map +1 -0
  457. package/package.json +8 -7
  458. package/dist/PptxHandler-5UDSMCBG.cjs +0 -14
  459. package/dist/PptxHandler-TTRTAQAR.mjs +0 -5
  460. package/dist/pptx/chunks/collaboration-text-codec-Du_XeE_i.d.ts.map +0 -1
  461. package/dist/pptx/chunks/collaboration-text-merge-DWWWdT_t.d.ts.map +0 -1
  462. package/dist/pptx/chunks/collaboration-text-positions-MMT3GkZi.d.ts.map +0 -1
  463. package/dist/pptx/chunks/collaboration-text-session-D0NOLQk7.d.ts.map +0 -1
  464. package/dist/pptx/chunks/collaboration-text-session-delta-CzJGrTKJ.d.ts.map +0 -1
  465. package/dist/pptx/chunks/color-ref-DT599vEx.d.ts.map +0 -1
  466. package/dist/pptx/chunks/elements-f3UbFph-.d.ts.map +0 -1
  467. package/dist/pptx/chunks/index-BnH2QjYm.d.ts.map +0 -1
  468. package/dist/pptx/chunks/index-Bp-1pGo1.d.ts.map +0 -1
  469. package/dist/pptx/chunks/index-pLLN4OTz.d.ts.map +0 -1
  470. package/dist/pptx/chunks/inspection-status-DjiWd_Aa.d.ts.map +0 -1
  471. package/dist/pptx/chunks/schemas-fuDGetRe.d.ts.map +0 -1
  472. package/dist/pptx/chunks/smart-art-CmOrPLLQ.d.ts.map +0 -1
  473. package/dist/pptx/chunks/text-P9xVnXXf.d.ts.map +0 -1
  474. package/dist/pptx/chunks/text-operations-D5sgspO6.d.ts.map +0 -1
@@ -1,11 +1,16 @@
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';
3
4
  import type { ThemeSolid } from './theme-solid.js';
4
5
  /** A top bevel: Visio type 1-12 and its width and height in inches. */
5
6
  export interface VisioBevel {
6
7
  type: number;
7
8
  width: number;
8
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;
9
14
  }
10
15
  /** Extrusion (Format Shape > 3-D Format > Depth): `BevelDepthSize` in inches and its colour. */
11
16
  export interface VisioExtrusion {
@@ -38,15 +43,7 @@ export declare const VISIO_BEVEL_TYPES_SHARP: readonly number[];
38
43
  /** Presets are named by `none` or one of the ids above. */
39
44
  export type VisioBevelPreset = string;
40
45
  export declare const isVisioBevelPreset: (value: unknown) => value is VisioBevelPreset;
41
- /** Rotation presets in degrees. Positive X turns the right side away and positive Y the top. */
42
- export declare const VISIO_ROTATION_PRESETS: readonly {
43
- id: string;
44
- label: string;
45
- x: number;
46
- y: number;
47
- z: number;
48
- perspective: number;
49
- }[];
46
+ export { VISIO_ROTATION_PRESETS };
50
47
  export type VisioRotationPreset = string;
51
48
  export declare const isVisioRotationPreset: (value: unknown) => value is VisioRotationPreset;
52
49
  type Add = (name: string, value: string | number, category: FormattingWrite['category'], unit?: string, formula?: string) => void;
@@ -84,5 +81,4 @@ export declare function shapeRotation3d(cells: Cells): VisioRotation3d | undefin
84
81
  * right side drops, and Z turns it counter-clockwise. Perspective and extrusion are `solid-3d.ts`.
85
82
  */
86
83
  export declare function visioRotation3dMatrix(rotation: Pick<VisioRotation3d, 'x' | 'y' | 'z'>): [number, number, number, number];
87
- export {};
88
84
  //# sourceMappingURL=bevel-3d.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bevel-3d.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,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":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;AACD,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAazD;AACD,kGAAkG;AAClG,eAAO,MAAM,sBAAsB,SAAU,MAAM,KAAG,OAAqB,CAAC"}
@@ -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';
@@ -161,7 +163,7 @@ export interface VisioPageSizeEdit {
161
163
  height: number;
162
164
  }
163
165
  export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit | VisioPageSetupEdits;
164
- export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioTextFieldInsertEdit | VisioTextFieldUpdateEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit | VisioChangeShapeEdit | VisioMetadataEdit | VisioPictureInsertEdit | VisioChartObjectEdit | VisioGroupEdit | VisioPageThemeEdit | VisioCommentEdit | VisioSubprocessEdit | VisioDiagramPartEdit | VisioShapeDataEdit | VisioControlEdit | VisioActionEdit | VisioDataEdit | VisioAssignLayersEdit | VisioLayerPropertiesEdit | VisioMasterInstanceEdit | VisioStencilMasterDropEdit | VisioGuideEdit | VisioContainerEdit | VisioPictureEdit;
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;
165
167
  export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
166
168
  /** Potential direct changes used by both package and master dependency admission. */
167
169
  export declare function geometryChangedCells(edit: VisioGeometryEdit): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAKN,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EACX,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC1F,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,iB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ACf;AACD,MAAM,MAAM,aAAa,GACtB,eAAe,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,cAAc,GACd,kBAAkB,GAClB,gBAAgB,CAAC;AACpB,eAAO,MAAM,eAAe,SAAU,SAAS,KAAG,IAAI,IAAI,aAM/B,CAAC;AAE5B,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,EAAE,CAmCtE;AAED,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,GAAG,EAAE,MAAM,GACT;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAU5B;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACb,SAAS,EAAE,CAwMb"}
1
+ {"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAKN,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGN,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AAqF;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"}
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"edit-formatting-text-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text-commands.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,GAAG,YAAY,CAAC;AAClF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,aAAa,GAAG,WAAW,CAAC;AACvE,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAKpD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAI5D,CAAC;AACF,uGAAuG;AACvG,MAAM,WAAW,uBAAuB;IACvC,mEAAmE;IACnE,C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EACV,cAAc,EACd,UAAU,EACV,eAAe,CACN,CAAC;AACX,eAAO,MAAM,sBAAsB,YAClC,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,CACH,CAAC;AAQX,8EAA8E;AAC9E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,CAqF3F"}
1
+ {"version":3,"file":"edit-formatting-text-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text-commands.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,GAAG,YAAY,CAAC;AAClF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,aAAa,GAAG,WAAW,CAAC;AACvE,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAKpD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAI5D,CAAC;AACF,uGAAuG;AACvG,MAAM,WAAW,uBAAuB;IACvC,mEAAmE;IACnE,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,gBAAgB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,oGAAoG;AACpG,MAAM,WAAW,qBAAqB;IACrC,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6FAA6F;IAC7F,WAAW,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAClF,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACpC;AACD,eAAO,MAAM,sBAAsB,YAClC,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,UAAU,EACV,eAAe,CACN,CAAC;AACX,eAAO,MAAM,sBAAsB,YAClC,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,CACH,CAAC;AAQX,8EAA8E;AAC9E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,CAkG3F"}
@@ -6,6 +6,20 @@ export declare const hasParagraphExtras: (edit: VisioTextFormatExtras) => boolea
6
6
  export declare function characterExtraWrites(edit: VisioTextFormatExtras, name: (cell: string) => string, add: AddTextWrite): void;
7
7
  /** https://learn.microsoft.com/en-us/office/client-developer/visio/paragraph-section */
8
8
  export declare function paragraphExtraWrites(edit: VisioTextFormatExtras, name: (cell: string) => string, add: AddTextWrite): void;
9
+ declare const TAB_ALIGNMENTS: readonly ['left', 'center', 'right', 'decimal'];
10
+ /**
11
+ * Tabs row 0 as Visio 16 saves it: `Position<n>` (inches) and `Alignment<n>` pairs counted from 0.
12
+ * Visio 16 ignored the alignment of a row that held a single pair, so at least two pairs are
13
+ * always written, padded (like the pair Visio adds itself) with a stop at 0 that never matches.
14
+ * Pairs the shape already had beyond the new list are zeroed, since a cell cannot be removed here.
15
+ */
16
+ export declare function tabStopWrites(stops: readonly {
17
+ position: number;
18
+ align: (typeof TAB_ALIGNMENTS)[number];
19
+ }[], context: {
20
+ source: ReadonlyMap<string, ReadonlyMap<string, unknown>>;
21
+ }, add: AddTextWrite): void;
9
22
  /** Text Block Format and Text Transform cells on the shape sheet itself. */
10
23
  export declare function textBlockWrites(shape: Element, edit: VisioTextFormatExtras, add: AddTextWrite): void;
24
+ export {};
11
25
  //# sourceMappingURL=edit-formatting-text-extra.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-formatting-text-extra.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text-extra.ts"],"names":[],"mappings":"AAIA,OAAO,EAKN,KAAK,qBAAqB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,CAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,OAAO,KACd,IAAI,CAAC;AAEV,eAAO,MAAM,kBAAkB,SAAU,qBAAqB,KAAG,OACH,CAAC;AAC/D,eAAO,MAAM,kBAAkB,SAAU,qBAAqB,KAAG,OACH,CAAC;AAQ/D,4GAA4G;AAC5G,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,qBAAqB,EAC3B,IAAI,EAAE,C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SAAS,CAAU,CAAC;AAEvE;;;;;GAKG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;CAAE,EAAE,EAC9E,OAAO,EAAE;IAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAAE,EACtE,GAAG,EAAE,YAAY,GACf,IAAI,CAUN;AAgBD,4EAA4E;AAC5E,wBAAgB,eAAe,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,qBAAqB,EAC3B,GAAG,EAAE,YAAY,GACf,IAAI,CAoCN"}
@@ -1 +1 @@
1
- {"version":3,"file":"edit-formatting-text.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text.ts"],"names":[],"mappings":"AAMA,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AASzD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,IAAI,GACf;IAAE,MAAM,EAAE,eAAe,EAAE,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;CAAE,CAwGxE"}
1
+ {"version":3,"file":"edit-formatting-text.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting-text.ts"],"names":[],"mappings":"AAMA,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUzD,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,IAAI,GACf;IAAE,MAAM,EAAE,eAAe,EAAE,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;CAAE,CA0GxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"edit-formatting.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAclE,OAAO,EAMN,KAAK,kBAAkB,EAEvB,MAAM,wBAAwB,CAAC;AA2BhC,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,kBAAkB,CAAC;CAC7B;AAED,wBAAsB,mBAAmB,CACxC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,OAAO,CAAC,CA6BlB"}
1
+ {"version":3,"file":"edit-formatting.d.ts","sourceRoot":"","sources":["../../visio/edit-formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BA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OAAO,GACd,OAAO,CA+BT;AAED,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAUvE;AAED,sFAAsF;AACtF,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAST"}
@@ -0,0 +1,28 @@
1
+ import type { VisioInsertSeparatorEdit, VisioSwimlaneOptionsEdit } from './edit-swimlane-commands.js';
2
+ import { type Scope } from './edit-swimlane-layout.js';
3
+ /** The narrowest phase Insert Phase leaves on either side of the new separator, in inches. */
4
+ export declare const CFF_MIN_PHASE = 0.4;
5
+ /** Whether a frame is an instance of Visio's own CFF Container master (a chart Visio built). */
6
+ export declare const isNativeFrame: (scope: Scope, frame: Element) => boolean;
7
+ /**
8
+ * Insert Phase on a chart Visio built. Visio's Phase List lays its separators out edge to edge,
9
+ * each as wide as its phase with the dividing line at its right edge, so a new separator splits
10
+ * the phase it lands in: the copy takes the left part, the separator that was there keeps the
11
+ * right part (observed in Visio 16: a Separator dropped at x = 8 in the template's one phase got
12
+ * the width up to 8 and the old one the rest, and the Phase List named them new first). Only the
13
+ * first phase carries the heading extension over the lane headings (`FirstHeadingExtend`).
14
+ */
15
+ export declare function insertNativePhase(scope: Scope, frame: Element, edit: VisioInsertSeparatorEdit): void;
16
+ /**
17
+ * Chart options on a chart Visio built: style, rotated lane labels, the title bar and the phase
18
+ * headings. They are the flowchart's own User cells (`visCFFStyle`, `visShowTitle`,
19
+ * `visShowPhase` on the frame, `visRotateLabel` on the Swimlane List) that Visio's masters read
20
+ * through formulas, so the cells are written as Visio writes them and every instance is
21
+ * recalculated. Geometry follows what Visio 16 did to the template chart when the cells changed:
22
+ * hiding the title bar lowers the frame's top by the bar and nothing else moves; hiding the
23
+ * phase headings takes their band out from under the frame's top, so the lanes (with their
24
+ * shapes) and the lists rise by the band and the frame and Phase List shrink from below.
25
+ * Showing them reverses it.
26
+ */
27
+ export declare function setNativeOptions(scope: Scope, frame: Element, edit: VisioSwimlaneOptionsEdit): void;
28
+ //# sourceMappingURL=edit-swimlane-cff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-swimlane-cff.d.ts","sourceRoot":"","sources":["../../visio/edit-swimlane-cff.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEnG,OAAO,EAYN,KAAK,KAAK,EACV,MAAM,wBAAwB,CAAC;AAEhC,8FAA8F;AAC9F,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,gGAAgG;AAChG,eAAO,MAAM,aAAa,UAAW,KAAK,SAAS,OAAO,KAAG,OACA,CAAC;AAI9D;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,wBAAwB,GAC5B,IAAI,CAqCN;AAoCD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,wBAAwB,GAC5B,IAAI,CAqCN"}
@@ -1,7 +1,11 @@
1
+ /** The sub-shape of a lane that carries its heading text (the master's text shape). */
2
+ export declare function headingShape(lane: Element): Element | undefined;
1
3
  /**
2
- * A new lane for a chart Visio built: a copy of the lane it goes beside, with its own IDs and
3
- * GUIDs, so it is an instance of the same Swimlane master with the same links to the Swimlane
4
- * List and the frame. Placed right after the reference lane; the caller sizes and orders it.
4
+ * A new lane or phase separator for a chart Visio built: a copy of the one it goes beside, with
5
+ * its own IDs and GUIDs, so it is an instance of the same master with the same links to its
6
+ * list and the frame. Placed right after the reference; the caller sizes and orders it. A
7
+ * `heading` of undefined leaves the heading without text of its own, as Visio's new separators
8
+ * are (the master's "Phase" shows).
5
9
  */
6
- export declare function cloneNativeLane(root: Element, reference: Element, id: string, heading: string): Element;
10
+ export declare function cloneNativeLane(root: Element, reference: Element, id: string, heading: string | undefined): Element;
7
11
  //# sourceMappingURL=edit-swimlane-clone.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-swimlane-clone.d.ts","sourceRoot":"","sources":["../../visio/edit-swimlane-clone.ts"],"names":[],"mappings":"AA4BA;;;;GAIG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,OAAO,EAClB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,GACb,OAAO,CAwBT"}
1
+ {"version":3,"file":"edit-swimlane-clone.d.ts","sourceRoot":"","sources":["../../visio/edit-swimlane-clone.ts"],"names":[],"mappings":"AAcA,uFAAuF;AACvF,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAW/D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC9B,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,OAAO,EAClB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,GAAG,SAAS,GACzB,OAAO,CA0BT"}
@@ -19,6 +19,11 @@ export interface Options {
19
19
  rotate: boolean;
20
20
  style: number;
21
21
  }
22
+ /** Visio's title band and phase heading band (its masters' `visHeadingHeight`), 10 mm and 5 mm. */
23
+ export declare const TITLE_BAND: number;
24
+ export declare const PHASE_BAND: number;
25
+ /** The master's own heading height for a list or frame (a User row cache), else the default. */
26
+ export declare function headingBand(scope: Scope, shape: Element | undefined, fallback: number): number;
22
27
  /** The role a shape has by the master it is an instance of (a chart Visio built). */
23
28
  export declare const masterRole: (scope: Scope, shape: Element) => CffRole | undefined;
24
29
  export declare function frameOf(scope: Scope, frameId: string): Element;
@@ -63,7 +68,7 @@ export declare function place(scope: Scope, shape: Element, target: Box): void;
63
68
  * phase separators to span the lanes and fit the frame. 'order' overrides the geometric order
64
69
  * (a lane just inserted).
65
70
  */
66
- export declare function relayout(scope: Scope, frame: Element, order?: readonly Element[]): void;
71
+ export declare function relayout(scope: Scope, frame: Element, order?: readonly Element[], gapOverride?: number): void;
67
72
  /** Stencil instances move through the asynchronous instance path, so the caller must move them. */
68
73
  export declare function assertMovable(root: Element, ids: readonly string[]): void;
69
74
  /** Frame, lanes and separators sit behind the page's other shapes, in that order. */