ooxml-core 1.32.1 → 1.34.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 (595) hide show
  1. package/dist/PptxHandler-5UDSMCBG.cjs +14 -0
  2. package/dist/PptxHandler-TTRTAQAR.mjs +5 -0
  3. package/dist/PptxHandler-XCYX5DVX.mjs +7 -0
  4. package/dist/{PresentationBuilder-5NFBUP7Y.cjs → PresentationBuilder-HA56ZY23.cjs} +6 -5
  5. package/dist/{PresentationBuilder-S6HXHKEJ.mjs → PresentationBuilder-IVLUEB4K.mjs} +4 -4
  6. package/dist/{PresentationBuilder-3CH5TR4W.mjs → PresentationBuilder-JBTNOIL7.mjs} +3 -2
  7. package/dist/automation/index.cjs +47133 -42384
  8. package/dist/automation/index.mjs +47133 -42384
  9. package/dist/chart/funnel-geometry.d.ts +1 -1
  10. package/dist/chart/funnel-geometry.d.ts.map +1 -1
  11. package/dist/chart/index.cjs +5743 -3820
  12. package/dist/chart/index.mjs +5736 -3821
  13. package/dist/chart/region-map/alias.d.ts +12 -0
  14. package/dist/chart/region-map/alias.d.ts.map +1 -0
  15. package/dist/chart/region-map/cache.d.ts +20 -0
  16. package/dist/chart/region-map/cache.d.ts.map +1 -0
  17. package/dist/chart/region-map/colors.d.ts +4 -0
  18. package/dist/chart/region-map/colors.d.ts.map +1 -0
  19. package/dist/chart/region-map/data.d.ts +45 -0
  20. package/dist/chart/region-map/data.d.ts.map +1 -0
  21. package/dist/chart/region-map/geographic-projection.d.ts +4 -0
  22. package/dist/chart/region-map/geographic-projection.d.ts.map +1 -0
  23. package/dist/chart/region-map/geometry.d.ts +10 -0
  24. package/dist/chart/region-map/geometry.d.ts.map +1 -0
  25. package/dist/chart/region-map/index.cjs +892 -0
  26. package/dist/chart/region-map/index.d.ts +12 -0
  27. package/dist/chart/region-map/index.d.ts.map +1 -0
  28. package/dist/chart/region-map/index.mjs +870 -0
  29. package/dist/chart/region-map/projection.d.ts +19 -0
  30. package/dist/chart/region-map/projection.d.ts.map +1 -0
  31. package/dist/chart/region-map/types.d.ts +39 -0
  32. package/dist/chart/region-map/types.d.ts.map +1 -0
  33. package/dist/chart/region-map/value-color-positions.d.ts +4 -0
  34. package/dist/chart/region-map/value-color-positions.d.ts.map +1 -0
  35. package/dist/chart/region-map/value-colors.d.ts +4 -0
  36. package/dist/chart/region-map/value-colors.d.ts.map +1 -0
  37. package/dist/chart/region-map/world-regions.d.ts +22 -0
  38. package/dist/chart/region-map/world-regions.d.ts.map +1 -0
  39. package/dist/chart/render/chart-3d-camera.d.ts +26 -0
  40. package/dist/chart/render/chart-3d-camera.d.ts.map +1 -0
  41. package/dist/chart/render/chart-3d-layout.d.ts +27 -0
  42. package/dist/chart/render/chart-3d-layout.d.ts.map +1 -0
  43. package/dist/chart/render/chart-3d-marks.d.ts +10 -0
  44. package/dist/chart/render/chart-3d-marks.d.ts.map +1 -0
  45. package/dist/chart/render/chart-3d-mesh.d.ts +32 -0
  46. package/dist/chart/render/chart-3d-mesh.d.ts.map +1 -0
  47. package/dist/chart/render/chart-3d-pie.d.ts +16 -0
  48. package/dist/chart/render/chart-3d-pie.d.ts.map +1 -0
  49. package/dist/chart/render/chart-3d-projection.d.ts +37 -0
  50. package/dist/chart/render/chart-3d-projection.d.ts.map +1 -0
  51. package/dist/chart/render/chart-3d-scene.d.ts +9 -0
  52. package/dist/chart/render/chart-3d-scene.d.ts.map +1 -0
  53. package/dist/chart/render/chart-3d-shading.d.ts +10 -0
  54. package/dist/chart/render/chart-3d-shading.d.ts.map +1 -0
  55. package/dist/chart/render/chart-3d-surface.d.ts +5 -0
  56. package/dist/chart/render/chart-3d-surface.d.ts.map +1 -0
  57. package/dist/chart/render/chart-3d-svg.d.ts +7 -0
  58. package/dist/chart/render/chart-3d-svg.d.ts.map +1 -0
  59. package/dist/chart/render/chart-3d-walls.d.ts +13 -0
  60. package/dist/chart/render/chart-3d-walls.d.ts.map +1 -0
  61. package/dist/chart/render/chart-svg-funnel.d.ts.map +1 -1
  62. package/dist/chart/render/chart-svg-region-map.d.ts +4 -0
  63. package/dist/chart/render/chart-svg-region-map.d.ts.map +1 -0
  64. package/dist/chart/render/chart-svg-text-metrics.d.ts +2 -0
  65. package/dist/chart/render/chart-svg-text-metrics.d.ts.map +1 -1
  66. package/dist/chart/render/chart-svg.d.ts.map +1 -1
  67. package/dist/chart/render/chart-view.d.ts +5 -1
  68. package/dist/chart/render/chart-view.d.ts.map +1 -1
  69. package/dist/chart/render/index.d.ts +5 -0
  70. package/dist/chart/render/index.d.ts.map +1 -1
  71. package/dist/chart/render/render-space.d.ts.map +1 -1
  72. package/dist/chart/render/summary-ex-formatting.d.ts +5 -0
  73. package/dist/chart/render/summary-ex-formatting.d.ts.map +1 -0
  74. package/dist/chart/render/summary-ex-series.d.ts.map +1 -1
  75. package/dist/chart/render/summary-from-chartex.d.ts.map +1 -1
  76. package/dist/chart/render/summary-from-space.d.ts.map +1 -1
  77. package/dist/chart/render/summary.d.ts +5 -1
  78. package/dist/chart/render/summary.d.ts.map +1 -1
  79. package/dist/chunk-2N7RZQLC.mjs +8 -0
  80. package/dist/{chunk-Q6NM64J2.cjs → chunk-A27O7M5X.cjs} +4938 -1083
  81. package/dist/{chunk-4R65YYAD.mjs → chunk-EGBNPVBA.mjs} +6256 -2277
  82. package/dist/{chunk-3H5UAJB3.mjs → chunk-GNGL4BO7.mjs} +935 -568
  83. package/dist/chunk-LSO5SSFX.mjs +112 -0
  84. package/dist/chunk-MB3TYNMV.mjs +28 -0
  85. package/dist/{chunk-N6424WKA.mjs → chunk-MK2IBZU6.mjs} +1 -1
  86. package/dist/{chunk-X6VNUBES.cjs → chunk-PA5ADSTX.cjs} +2124 -1791
  87. package/dist/{chunk-IOTGRLJH.mjs → chunk-RI56PFGL.mjs} +933 -600
  88. package/dist/{chunk-NAWLWKOJ.mjs → chunk-RPJHMPEL.mjs} +2 -2
  89. package/dist/{chunk-UYMSFJQZ.mjs → chunk-TJXK4D4U.mjs} +5 -5
  90. package/dist/{chunk-O7SVHLD7.mjs → chunk-UQMAPY6D.mjs} +4901 -1077
  91. package/dist/{chunk-54S5A5PZ.mjs → chunk-VDUNZTJC.mjs} +36 -1
  92. package/dist/chunk-XF6ZRA2D.cjs +120 -0
  93. package/dist/crypto/index.cjs +23 -15
  94. package/dist/crypto/index.mjs +23 -15
  95. package/dist/diagram/drawing-resolve.d.ts.map +1 -1
  96. package/dist/diagram/drawing-view.d.ts +6 -0
  97. package/dist/diagram/drawing-view.d.ts.map +1 -1
  98. package/dist/diagram/engine/engine-to-result.d.ts.map +1 -1
  99. package/dist/diagram/index.cjs +786 -145
  100. package/dist/diagram/index.d.ts +1 -0
  101. package/dist/diagram/index.d.ts.map +1 -1
  102. package/dist/diagram/index.mjs +783 -147
  103. package/dist/diagram/layout/smartart-layout-types.d.ts +7 -0
  104. package/dist/diagram/layout/smartart-layout-types.d.ts.map +1 -1
  105. package/dist/diagram/layout-preview.d.ts +4 -0
  106. package/dist/diagram/layout-preview.d.ts.map +1 -1
  107. package/dist/diagram/layout-role-style.d.ts +4 -0
  108. package/dist/diagram/layout-role-style.d.ts.map +1 -0
  109. package/dist/diagram/load.d.ts.map +1 -1
  110. package/dist/diagram/picture-layout.d.ts +23 -0
  111. package/dist/diagram/picture-layout.d.ts.map +1 -0
  112. package/dist/diagram/types.d.ts +6 -0
  113. package/dist/diagram/types.d.ts.map +1 -1
  114. package/dist/diagram/write/cache.d.ts +1 -0
  115. package/dist/diagram/write/cache.d.ts.map +1 -1
  116. package/dist/digest/crc32.d.ts +2 -0
  117. package/dist/digest/crc32.d.ts.map +1 -0
  118. package/dist/digest/index.cjs +11 -0
  119. package/dist/digest/index.d.ts +1 -0
  120. package/dist/digest/index.d.ts.map +1 -1
  121. package/dist/digest/index.mjs +11 -1
  122. package/dist/docx/block-parser.d.ts.map +1 -1
  123. package/dist/docx/diagram-cache.d.ts.map +1 -1
  124. package/dist/docx/diagram-save.d.ts.map +1 -1
  125. package/dist/docx/drawing.d.ts.map +1 -1
  126. package/dist/docx/embedded.cjs +1394 -366
  127. package/dist/docx/embedded.mjs +1394 -366
  128. package/dist/docx/find-pattern.d.ts +33 -0
  129. package/dist/docx/find-pattern.d.ts.map +1 -0
  130. package/dist/docx/find-replacement.d.ts +16 -0
  131. package/dist/docx/find-replacement.d.ts.map +1 -0
  132. package/dist/docx/find-syntax.d.ts +13 -0
  133. package/dist/docx/find-syntax.d.ts.map +1 -0
  134. package/dist/docx/find-wildcards.d.ts +8 -0
  135. package/dist/docx/find-wildcards.d.ts.map +1 -0
  136. package/dist/docx/form-field-model.d.ts +39 -0
  137. package/dist/docx/form-field-model.d.ts.map +1 -1
  138. package/dist/docx/index.cjs +6107 -1728
  139. package/dist/docx/index.d.ts +3 -1
  140. package/dist/docx/index.d.ts.map +1 -1
  141. package/dist/docx/index.mjs +6103 -1729
  142. package/dist/docx/inline-model.d.ts +4 -0
  143. package/dist/docx/inline-model.d.ts.map +1 -1
  144. package/dist/docx/layout/adapt-floats.d.ts.map +1 -1
  145. package/dist/docx/layout/adapter.d.ts.map +1 -1
  146. package/dist/docx/layout/floats.d.ts.map +1 -1
  147. package/dist/docx/layout/index.cjs +2338 -554
  148. package/dist/docx/layout/index.mjs +2338 -554
  149. package/dist/docx/layout/input.d.ts +5 -0
  150. package/dist/docx/layout/input.d.ts.map +1 -1
  151. package/dist/docx/layout/result.d.ts +3 -0
  152. package/dist/docx/layout/result.d.ts.map +1 -1
  153. package/dist/docx/load/index.cjs +7593 -1539
  154. package/dist/docx/load/index.mjs +7593 -1539
  155. package/dist/docx/load/legacy-doc/binary-save.d.ts +4 -0
  156. package/dist/docx/load/legacy-doc/binary-save.d.ts.map +1 -0
  157. package/dist/docx/load/legacy-doc/blocks.d.ts +19 -0
  158. package/dist/docx/load/legacy-doc/blocks.d.ts.map +1 -0
  159. package/dist/docx/load/legacy-doc/borders.d.ts +7 -0
  160. package/dist/docx/load/legacy-doc/borders.d.ts.map +1 -0
  161. package/dist/docx/load/legacy-doc/context.d.ts +65 -0
  162. package/dist/docx/load/legacy-doc/context.d.ts.map +1 -0
  163. package/dist/docx/load/legacy-doc/drawing.d.ts +15 -0
  164. package/dist/docx/load/legacy-doc/drawing.d.ts.map +1 -0
  165. package/dist/docx/load/legacy-doc/error.d.ts +5 -0
  166. package/dist/docx/load/legacy-doc/error.d.ts.map +1 -0
  167. package/dist/docx/load/legacy-doc/inline.d.ts +7 -0
  168. package/dist/docx/load/legacy-doc/inline.d.ts.map +1 -0
  169. package/dist/docx/load/legacy-doc/numbering-part.d.ts +3 -0
  170. package/dist/docx/load/legacy-doc/numbering-part.d.ts.map +1 -0
  171. package/dist/docx/load/legacy-doc/package.d.ts +8 -0
  172. package/dist/docx/load/legacy-doc/package.d.ts.map +1 -0
  173. package/dist/docx/load/legacy-doc/para-props.d.ts +6 -0
  174. package/dist/docx/load/legacy-doc/para-props.d.ts.map +1 -0
  175. package/dist/docx/load/legacy-doc/run-props.d.ts +8 -0
  176. package/dist/docx/load/legacy-doc/run-props.d.ts.map +1 -0
  177. package/dist/docx/load/legacy-doc/sections.d.ts +23 -0
  178. package/dist/docx/load/legacy-doc/sections.d.ts.map +1 -0
  179. package/dist/docx/load/legacy-doc/styles-part.d.ts +3 -0
  180. package/dist/docx/load/legacy-doc/styles-part.d.ts.map +1 -0
  181. package/dist/docx/load/legacy-doc/table.d.ts +6 -0
  182. package/dist/docx/load/legacy-doc/table.d.ts.map +1 -0
  183. package/dist/docx/load/legacy-doc/xml.d.ts +21 -0
  184. package/dist/docx/load/legacy-doc/xml.d.ts.map +1 -0
  185. package/dist/docx/load/legacy-doc.d.ts +5 -4
  186. package/dist/docx/load/legacy-doc.d.ts.map +1 -1
  187. package/dist/docx/model-paragraph.d.ts +5 -0
  188. package/dist/docx/model-paragraph.d.ts.map +1 -1
  189. package/dist/docx/model.d.ts +3 -0
  190. package/dist/docx/model.d.ts.map +1 -1
  191. package/dist/docx/numbering-editing.d.ts +11 -1
  192. package/dist/docx/numbering-editing.d.ts.map +1 -1
  193. package/dist/docx/numbering-format.d.ts.map +1 -1
  194. package/dist/docx/numbering-model.d.ts +17 -0
  195. package/dist/docx/numbering-model.d.ts.map +1 -1
  196. package/dist/docx/numbering-package.d.ts +2 -2
  197. package/dist/docx/numbering-package.d.ts.map +1 -1
  198. package/dist/docx/numbering-parse.d.ts +2 -1
  199. package/dist/docx/numbering-parse.d.ts.map +1 -1
  200. package/dist/docx/numbering-picture-save.d.ts +13 -0
  201. package/dist/docx/numbering-picture-save.d.ts.map +1 -0
  202. package/dist/docx/numbering-picture.d.ts +18 -0
  203. package/dist/docx/numbering-picture.d.ts.map +1 -0
  204. package/dist/docx/parse.d.ts.map +1 -1
  205. package/dist/docx/permission-markers.d.ts +19 -0
  206. package/dist/docx/permission-markers.d.ts.map +1 -0
  207. package/dist/docx/permissions.d.ts +11 -0
  208. package/dist/docx/permissions.d.ts.map +1 -0
  209. package/dist/docx/protection-legacy.d.ts +13 -0
  210. package/dist/docx/protection-legacy.d.ts.map +1 -0
  211. package/dist/docx/protection.d.ts +30 -0
  212. package/dist/docx/protection.d.ts.map +1 -0
  213. package/dist/docx/save.d.ts.map +1 -1
  214. package/dist/docx/settings.d.ts +6 -1
  215. package/dist/docx/settings.d.ts.map +1 -1
  216. package/dist/docx/ui/customization.d.ts.map +1 -1
  217. package/dist/docx/ui/edit-restriction.d.ts +53 -0
  218. package/dist/docx/ui/edit-restriction.d.ts.map +1 -0
  219. package/dist/docx/ui/index.cjs +3617 -1097
  220. package/dist/docx/ui/index.d.ts +4 -0
  221. package/dist/docx/ui/index.d.ts.map +1 -1
  222. package/dist/docx/ui/index.mjs +3597 -1098
  223. package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
  224. package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
  225. package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
  226. package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
  227. package/dist/docx/ui/run-adapter.d.ts.map +1 -1
  228. package/dist/docx/write-drawing.d.ts.map +1 -1
  229. package/dist/docx/write-paragraph.d.ts.map +1 -1
  230. package/dist/drawingml/index.cjs +708 -111
  231. package/dist/drawingml/index.d.ts +7 -0
  232. package/dist/drawingml/index.d.ts.map +1 -1
  233. package/dist/drawingml/index.mjs +698 -113
  234. package/dist/drawingml/picture-artistic.d.ts +14 -0
  235. package/dist/drawingml/picture-artistic.d.ts.map +1 -0
  236. package/dist/drawingml/picture-effects.d.ts +4 -1
  237. package/dist/drawingml/picture-effects.d.ts.map +1 -1
  238. package/dist/drawingml/picture-fill.d.ts.map +1 -1
  239. package/dist/drawingml/picture-hsl-pixels.d.ts +4 -0
  240. package/dist/drawingml/picture-hsl-pixels.d.ts.map +1 -0
  241. package/dist/drawingml/picture-layout.d.ts +25 -0
  242. package/dist/drawingml/picture-layout.d.ts.map +1 -0
  243. package/dist/drawingml/picture-standard-effects.d.ts +15 -0
  244. package/dist/drawingml/picture-standard-effects.d.ts.map +1 -0
  245. package/dist/drawingml/picture-transfer.d.ts +11 -0
  246. package/dist/drawingml/picture-transfer.d.ts.map +1 -0
  247. package/dist/drawingml/raster-image.d.ts +29 -0
  248. package/dist/drawingml/raster-image.d.ts.map +1 -0
  249. package/dist/drawingml/types.d.ts +1 -0
  250. package/dist/drawingml/types.d.ts.map +1 -1
  251. package/dist/drawingml/write-pattern-picture.d.ts.map +1 -1
  252. package/dist/drawingml/write-theme.d.ts +2 -0
  253. package/dist/drawingml/write-theme.d.ts.map +1 -1
  254. package/dist/geometry/index.cjs +38 -0
  255. package/dist/geometry/index.d.ts +1 -0
  256. package/dist/geometry/index.d.ts.map +1 -1
  257. package/dist/geometry/index.mjs +36 -1
  258. package/dist/geometry/picture-tile.d.ts +29 -0
  259. package/dist/geometry/picture-tile.d.ts.map +1 -0
  260. package/dist/index.cjs +15671 -12934
  261. package/dist/index.mjs +15671 -12934
  262. package/dist/pptx/automation/index.cjs +9313 -3688
  263. package/dist/pptx/automation/index.d.ts +40 -6
  264. package/dist/pptx/automation/index.d.ts.map +1 -1
  265. package/dist/pptx/automation/index.mjs +254 -12
  266. package/dist/pptx/automation/schemas/index.cjs +26 -0
  267. package/dist/pptx/automation/schemas/index.d.ts +26 -1
  268. package/dist/pptx/automation/schemas/index.d.ts.map +1 -0
  269. package/dist/pptx/automation/schemas/index.mjs +1 -1
  270. package/dist/pptx/chunks/{elements-mSCZ84Tc.d.ts → elements-f3UbFph-.d.ts} +7 -2
  271. package/dist/pptx/chunks/elements-f3UbFph-.d.ts.map +1 -0
  272. package/dist/pptx/chunks/{index-DnWlmYCy.d.ts → index-BnH2QjYm.d.ts} +4 -4
  273. package/dist/pptx/chunks/{index-DnWlmYCy.d.ts.map → index-BnH2QjYm.d.ts.map} +1 -1
  274. package/dist/pptx/chunks/{index-D-FdgqrP.d.ts → index-Bp-1pGo1.d.ts} +4 -4
  275. package/dist/pptx/chunks/{index-D-FdgqrP.d.ts.map → index-Bp-1pGo1.d.ts.map} +1 -1
  276. package/dist/pptx/chunks/{index-DKybuHPT.d.ts → index-pLLN4OTz.d.ts} +62 -24
  277. package/dist/pptx/chunks/index-pLLN4OTz.d.ts.map +1 -0
  278. package/dist/pptx/chunks/{smart-art-DLumQo90.d.ts → smart-art-CmOrPLLQ.d.ts} +86 -2
  279. package/dist/pptx/chunks/smart-art-CmOrPLLQ.d.ts.map +1 -0
  280. package/dist/pptx/chunks/{text-operations-hyPODwIQ.d.ts → text-operations-D5sgspO6.d.ts} +2 -2
  281. package/dist/pptx/chunks/{text-operations-hyPODwIQ.d.ts.map → text-operations-D5sgspO6.d.ts.map} +1 -1
  282. package/dist/pptx/cli/index.cjs +7477 -2848
  283. package/dist/pptx/cli/index.d.ts +1 -1
  284. package/dist/pptx/cli/index.mjs +6 -6
  285. package/dist/pptx/converter/index.cjs +3895 -503
  286. package/dist/pptx/converter/index.d.ts +1 -1
  287. package/dist/pptx/converter/index.mjs +3 -3
  288. package/dist/pptx/editor/render/custom-show-operations.cjs +133 -0
  289. package/dist/pptx/editor/render/custom-show-operations.d.ts +42 -0
  290. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -0
  291. package/dist/pptx/editor/render/custom-show-operations.mjs +119 -0
  292. package/dist/pptx/editor/render/find-replace.cjs +15 -14
  293. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  294. package/dist/pptx/editor/render/find-replace.mjs +2 -1
  295. package/dist/pptx/editor/render/slide-operations.cjs +9 -8
  296. package/dist/pptx/editor/render/slide-operations.mjs +3 -2
  297. package/dist/pptx/editor/render/table-data-grid-ops.cjs +1 -1
  298. package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
  299. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
  300. package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
  301. package/dist/pptx/index.cjs +8447 -3693
  302. package/dist/pptx/index.d.ts +7 -7
  303. package/dist/pptx/index.mjs +7 -7
  304. package/dist/pptx/node/index.d.ts +1 -1
  305. package/dist/pptx/smartart-layouts/index.d.ts +1 -1
  306. package/dist/pptx/smartart-layouts/index.mjs +2 -2
  307. package/dist/teams/index.cjs +2176 -751
  308. package/dist/teams/index.mjs +2176 -751
  309. package/dist/text/index.cjs +241 -0
  310. package/dist/text/index.d.ts +2 -0
  311. package/dist/text/index.d.ts.map +1 -1
  312. package/dist/text/index.mjs +240 -1
  313. package/dist/text/truetype/parse.d.ts +36 -0
  314. package/dist/text/truetype/parse.d.ts.map +1 -0
  315. package/dist/text/truetype/subset.d.ts +16 -0
  316. package/dist/text/truetype/subset.d.ts.map +1 -0
  317. package/dist/visio/cell-formula.d.ts +5 -1
  318. package/dist/visio/cell-formula.d.ts.map +1 -1
  319. package/dist/visio/collab/index.cjs +3 -1
  320. package/dist/visio/collab/index.mjs +3 -1
  321. package/dist/visio/container-relationships.d.ts +53 -0
  322. package/dist/visio/container-relationships.d.ts.map +1 -0
  323. package/dist/visio/data-connections.d.ts +32 -0
  324. package/dist/visio/data-connections.d.ts.map +1 -0
  325. package/dist/visio/data-recordsets.d.ts +7 -0
  326. package/dist/visio/data-recordsets.d.ts.map +1 -1
  327. package/dist/visio/data-refresh.d.ts +33 -0
  328. package/dist/visio/data-refresh.d.ts.map +1 -0
  329. package/dist/visio/edit-commands.d.ts +6 -1
  330. package/dist/visio/edit-commands.d.ts.map +1 -1
  331. package/dist/visio/edit-connector.d.ts.map +1 -1
  332. package/dist/visio/edit-container-fit.d.ts +32 -0
  333. package/dist/visio/edit-container-fit.d.ts.map +1 -0
  334. package/dist/visio/edit-container-members.d.ts +33 -0
  335. package/dist/visio/edit-container-members.d.ts.map +1 -0
  336. package/dist/visio/edit-container-options.d.ts +33 -0
  337. package/dist/visio/edit-container-options.d.ts.map +1 -0
  338. package/dist/visio/edit-data-commands.d.ts +5 -0
  339. package/dist/visio/edit-data-commands.d.ts.map +1 -1
  340. package/dist/visio/edit-data-parts.d.ts +2 -0
  341. package/dist/visio/edit-data-parts.d.ts.map +1 -1
  342. package/dist/visio/edit-data.d.ts.map +1 -1
  343. package/dist/visio/edit-delete.d.ts.map +1 -1
  344. package/dist/visio/edit-diagram-parts-commands.d.ts +24 -1
  345. package/dist/visio/edit-diagram-parts-commands.d.ts.map +1 -1
  346. package/dist/visio/edit-diagram-parts.d.ts +11 -2
  347. package/dist/visio/edit-diagram-parts.d.ts.map +1 -1
  348. package/dist/visio/edit-geometry.d.ts +4 -1
  349. package/dist/visio/edit-geometry.d.ts.map +1 -1
  350. package/dist/visio/edit-group-resize.d.ts.map +1 -1
  351. package/dist/visio/edit-instance-checks.d.ts.map +1 -1
  352. package/dist/visio/edit-package.d.ts.map +1 -1
  353. package/dist/visio/edit-page-theme-commands.d.ts +26 -0
  354. package/dist/visio/edit-page-theme-commands.d.ts.map +1 -1
  355. package/dist/visio/edit-page-theme-part.d.ts +6 -0
  356. package/dist/visio/edit-page-theme-part.d.ts.map +1 -0
  357. package/dist/visio/edit-page-theme.d.ts +9 -1
  358. package/dist/visio/edit-page-theme.d.ts.map +1 -1
  359. package/dist/visio/edit-picture-adjust.d.ts +32 -0
  360. package/dist/visio/edit-picture-adjust.d.ts.map +1 -0
  361. package/dist/visio/edit-recalculate-index.d.ts +13 -0
  362. package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
  363. package/dist/visio/edit-recalculate-values.d.ts.map +1 -1
  364. package/dist/visio/edit-recalculate.d.ts.map +1 -1
  365. package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
  366. package/dist/visio/edit-swimlane-commands.d.ts +91 -0
  367. package/dist/visio/edit-swimlane-commands.d.ts.map +1 -0
  368. package/dist/visio/edit-swimlane-layout.d.ts +64 -0
  369. package/dist/visio/edit-swimlane-layout.d.ts.map +1 -0
  370. package/dist/visio/edit-swimlane-ops.d.ts +11 -0
  371. package/dist/visio/edit-swimlane-ops.d.ts.map +1 -0
  372. package/dist/visio/edit-swimlane-shapes.d.ts +42 -0
  373. package/dist/visio/edit-swimlane-shapes.d.ts.map +1 -0
  374. package/dist/visio/edit-swimlane-turn.d.ts +9 -0
  375. package/dist/visio/edit-swimlane-turn.d.ts.map +1 -0
  376. package/dist/visio/edit.d.ts.map +1 -1
  377. package/dist/visio/effects.d.ts +3 -2
  378. package/dist/visio/effects.d.ts.map +1 -1
  379. package/dist/visio/formula-analyze.d.ts +2 -0
  380. package/dist/visio/formula-analyze.d.ts.map +1 -1
  381. package/dist/visio/formula-evaluate.d.ts.map +1 -1
  382. package/dist/visio/formula-master.d.ts +1 -0
  383. package/dist/visio/formula-master.d.ts.map +1 -1
  384. package/dist/visio/geometry.d.ts +2 -1
  385. package/dist/visio/geometry.d.ts.map +1 -1
  386. package/dist/visio/index.cjs +12207 -7779
  387. package/dist/visio/index.d.ts +8 -1
  388. package/dist/visio/index.d.ts.map +1 -1
  389. package/dist/visio/index.mjs +12201 -7780
  390. package/dist/visio/infinite-line.d.ts +17 -0
  391. package/dist/visio/infinite-line.d.ts.map +1 -0
  392. package/dist/visio/media.d.ts +4 -23
  393. package/dist/visio/media.d.ts.map +1 -1
  394. package/dist/visio/model.d.ts +46 -0
  395. package/dist/visio/model.d.ts.map +1 -1
  396. package/dist/visio/package-common.d.ts +1 -1
  397. package/dist/visio/package-common.d.ts.map +1 -1
  398. package/dist/visio/package-kind.d.ts +34 -0
  399. package/dist/visio/package-kind.d.ts.map +1 -0
  400. package/dist/visio/page-theme.d.ts +7 -0
  401. package/dist/visio/page-theme.d.ts.map +1 -1
  402. package/dist/visio/parser.d.ts +2 -2
  403. package/dist/visio/parser.d.ts.map +1 -1
  404. package/dist/visio/shadow.d.ts +2 -1
  405. package/dist/visio/shadow.d.ts.map +1 -1
  406. package/dist/visio/shape-structure.d.ts +19 -3
  407. package/dist/visio/shape-structure.d.ts.map +1 -1
  408. package/dist/visio/shapes.d.ts +7 -1
  409. package/dist/visio/shapes.d.ts.map +1 -1
  410. package/dist/visio/stencil-file.d.ts +2 -2
  411. package/dist/visio/style.d.ts.map +1 -1
  412. package/dist/visio/swimlane-stack.d.ts +65 -0
  413. package/dist/visio/swimlane-stack.d.ts.map +1 -0
  414. package/dist/visio/theme-builtins.d.ts +3 -0
  415. package/dist/visio/theme-builtins.d.ts.map +1 -1
  416. package/dist/visio/theme-effects.d.ts +19 -0
  417. package/dist/visio/theme-effects.d.ts.map +1 -0
  418. package/dist/visio/theme-font.d.ts +13 -0
  419. package/dist/visio/theme-font.d.ts.map +1 -0
  420. package/dist/visio/theme-line.d.ts.map +1 -1
  421. package/dist/visio/theme-write.d.ts.map +1 -1
  422. package/dist/visio/theme.d.ts +7 -0
  423. package/dist/visio/theme.d.ts.map +1 -1
  424. package/dist/visio/ui/data-graphic-config.d.ts +45 -0
  425. package/dist/visio/ui/data-graphic-config.d.ts.map +1 -0
  426. package/dist/visio/ui/data-graphic-rules.d.ts +7 -0
  427. package/dist/visio/ui/data-graphic-rules.d.ts.map +1 -1
  428. package/dist/visio/ui/data-graphics.d.ts +9 -0
  429. package/dist/visio/ui/data-graphics.d.ts.map +1 -1
  430. package/dist/visio/ui/diagram-parts.d.ts +20 -2
  431. package/dist/visio/ui/diagram-parts.d.ts.map +1 -1
  432. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  433. package/dist/visio/ui/guides.d.ts +9 -1
  434. package/dist/visio/ui/guides.d.ts.map +1 -1
  435. package/dist/visio/ui/index.cjs +14266 -10008
  436. package/dist/visio/ui/index.d.ts +4 -0
  437. package/dist/visio/ui/index.d.ts.map +1 -1
  438. package/dist/visio/ui/index.mjs +14231 -10009
  439. package/dist/visio/ui/org-chart.d.ts +75 -0
  440. package/dist/visio/ui/org-chart.d.ts.map +1 -0
  441. package/dist/visio/ui/resize-snap.d.ts +51 -0
  442. package/dist/visio/ui/resize-snap.d.ts.map +1 -0
  443. package/dist/visio/ui/sample-drawing.d.ts +26 -0
  444. package/dist/visio/ui/sample-drawing.d.ts.map +1 -1
  445. package/dist/visio/ui/scene-validation.d.ts.map +1 -1
  446. package/dist/visio/ui/selection-resize.d.ts +2 -2
  447. package/dist/visio/ui/selection-resize.d.ts.map +1 -1
  448. package/dist/visio/ui/shape-resize.d.ts +29 -1
  449. package/dist/visio/ui/shape-resize.d.ts.map +1 -1
  450. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  451. package/dist/visio/ui/swimlane.d.ts +37 -0
  452. package/dist/visio/ui/swimlane.d.ts.map +1 -0
  453. package/dist/visio/ui/templates.d.ts +26 -0
  454. package/dist/visio/ui/templates.d.ts.map +1 -0
  455. package/dist/xlsx/audit/ast-text.d.ts +12 -0
  456. package/dist/xlsx/audit/ast-text.d.ts.map +1 -0
  457. package/dist/xlsx/audit/error-check.d.ts +23 -0
  458. package/dist/xlsx/audit/error-check.d.ts.map +1 -0
  459. package/dist/xlsx/audit/evaluate-steps.d.ts +48 -0
  460. package/dist/xlsx/audit/evaluate-steps.d.ts.map +1 -0
  461. package/dist/xlsx/audit/index.d.ts +6 -0
  462. package/dist/xlsx/audit/index.d.ts.map +1 -0
  463. package/dist/xlsx/audit/trace.d.ts +59 -0
  464. package/dist/xlsx/audit/trace.d.ts.map +1 -0
  465. package/dist/xlsx/audit/watch.d.ts +17 -0
  466. package/dist/xlsx/audit/watch.d.ts.map +1 -0
  467. package/dist/xlsx/edit/cell-values.d.ts.map +1 -1
  468. package/dist/xlsx/edit/chart-ex.d.ts +1 -0
  469. package/dist/xlsx/edit/chart-ex.d.ts.map +1 -1
  470. package/dist/xlsx/edit/filter.d.ts +8 -1
  471. package/dist/xlsx/edit/filter.d.ts.map +1 -1
  472. package/dist/xlsx/edit/index.d.ts +5 -1
  473. package/dist/xlsx/edit/index.d.ts.map +1 -1
  474. package/dist/xlsx/edit/session-calc.d.ts +5 -0
  475. package/dist/xlsx/edit/session-calc.d.ts.map +1 -1
  476. package/dist/xlsx/edit/session.d.ts.map +1 -1
  477. package/dist/xlsx/edit/sort-choices.d.ts +23 -0
  478. package/dist/xlsx/edit/sort-choices.d.ts.map +1 -0
  479. package/dist/xlsx/edit/sort-keys.d.ts +49 -0
  480. package/dist/xlsx/edit/sort-keys.d.ts.map +1 -0
  481. package/dist/xlsx/edit/sort-reapply.d.ts +11 -0
  482. package/dist/xlsx/edit/sort-reapply.d.ts.map +1 -0
  483. package/dist/xlsx/edit/sort.d.ts +14 -12
  484. package/dist/xlsx/edit/sort.d.ts.map +1 -1
  485. package/dist/xlsx/edit/text-columns.d.ts +21 -0
  486. package/dist/xlsx/edit/text-columns.d.ts.map +1 -0
  487. package/dist/xlsx/edit/types.d.ts +10 -5
  488. package/dist/xlsx/edit/types.d.ts.map +1 -1
  489. package/dist/xlsx/edit/view.d.ts +9 -1
  490. package/dist/xlsx/edit/view.d.ts.map +1 -1
  491. package/dist/xlsx/embedded-chart-ex-space.d.ts +18 -0
  492. package/dist/xlsx/embedded-chart-ex-space.d.ts.map +1 -0
  493. package/dist/xlsx/filter-criteria.d.ts +23 -0
  494. package/dist/xlsx/filter-criteria.d.ts.map +1 -0
  495. package/dist/xlsx/filter-dynamic.d.ts +8 -0
  496. package/dist/xlsx/filter-dynamic.d.ts.map +1 -0
  497. package/dist/xlsx/filter-menu.d.ts +49 -0
  498. package/dist/xlsx/filter-menu.d.ts.map +1 -0
  499. package/dist/xlsx/filter-rows.d.ts +4 -4
  500. package/dist/xlsx/filter-rows.d.ts.map +1 -1
  501. package/dist/xlsx/formula/engine-types.d.ts +8 -0
  502. package/dist/xlsx/formula/engine-types.d.ts.map +1 -1
  503. package/dist/xlsx/formula/engine.d.ts.map +1 -1
  504. package/dist/xlsx/index.cjs +7259 -3079
  505. package/dist/xlsx/index.d.ts +5 -0
  506. package/dist/xlsx/index.d.ts.map +1 -1
  507. package/dist/xlsx/index.mjs +7213 -3079
  508. package/dist/xlsx/layout/index.d.ts +1 -0
  509. package/dist/xlsx/layout/index.d.ts.map +1 -1
  510. package/dist/xlsx/layout/split.d.ts +55 -0
  511. package/dist/xlsx/layout/split.d.ts.map +1 -0
  512. package/dist/xlsx/layout/viewport.d.ts +2 -0
  513. package/dist/xlsx/layout/viewport.d.ts.map +1 -1
  514. package/dist/xlsx/load/index.cjs +2170 -688
  515. package/dist/xlsx/load/index.mjs +2170 -688
  516. package/dist/xlsx/model-filter.d.ts +54 -0
  517. package/dist/xlsx/model-filter.d.ts.map +1 -0
  518. package/dist/xlsx/model-sort.d.ts +27 -0
  519. package/dist/xlsx/model-sort.d.ts.map +1 -0
  520. package/dist/xlsx/model.d.ts +81 -4
  521. package/dist/xlsx/model.d.ts.map +1 -1
  522. package/dist/xlsx/read/chart.d.ts.map +1 -1
  523. package/dist/xlsx/read/drawing.d.ts.map +1 -1
  524. package/dist/xlsx/read/filter-columns.d.ts +5 -0
  525. package/dist/xlsx/read/filter-columns.d.ts.map +1 -0
  526. package/dist/xlsx/read/ignored-errors.d.ts +4 -0
  527. package/dist/xlsx/read/ignored-errors.d.ts.map +1 -0
  528. package/dist/xlsx/read/shared-strings.d.ts +5 -3
  529. package/dist/xlsx/read/shared-strings.d.ts.map +1 -1
  530. package/dist/xlsx/read/sheet-data.d.ts.map +1 -1
  531. package/dist/xlsx/read/sheet-props.d.ts +2 -2
  532. package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
  533. package/dist/xlsx/read/sort-state.d.ts +5 -0
  534. package/dist/xlsx/read/sort-state.d.ts.map +1 -0
  535. package/dist/xlsx/read/tables.d.ts +2 -2
  536. package/dist/xlsx/read/tables.d.ts.map +1 -1
  537. package/dist/xlsx/read/worksheet.d.ts.map +1 -1
  538. package/dist/xlsx/sort-lists.d.ts +6 -0
  539. package/dist/xlsx/sort-lists.d.ts.map +1 -0
  540. package/dist/xlsx/ui/audit-state.d.ts +19 -0
  541. package/dist/xlsx/ui/audit-state.d.ts.map +1 -0
  542. package/dist/xlsx/ui/commands/audit.d.ts +3 -0
  543. package/dist/xlsx/ui/commands/audit.d.ts.map +1 -0
  544. package/dist/xlsx/ui/commands/formulas.d.ts.map +1 -1
  545. package/dist/xlsx/ui/commands/i18n/audit.d.ts +3 -0
  546. package/dist/xlsx/ui/commands/i18n/audit.d.ts.map +1 -0
  547. package/dist/xlsx/ui/commands/i18n/filters.d.ts +3 -0
  548. package/dist/xlsx/ui/commands/i18n/filters.d.ts.map +1 -0
  549. package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -1
  550. package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
  551. package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -1
  552. package/dist/xlsx/ui/commands/i18n/rules.d.ts.map +1 -1
  553. package/dist/xlsx/ui/commands/i18n/tools.d.ts.map +1 -1
  554. package/dist/xlsx/ui/commands/icons.d.ts.map +1 -1
  555. package/dist/xlsx/ui/commands/sort-filter.d.ts.map +1 -1
  556. package/dist/xlsx/ui/context.d.ts +6 -1
  557. package/dist/xlsx/ui/context.d.ts.map +1 -1
  558. package/dist/xlsx/ui/dialogs/grid-chart.d.ts.map +1 -1
  559. package/dist/xlsx/ui/grid/geometry.d.ts +29 -1
  560. package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
  561. package/dist/xlsx/ui/index.cjs +9454 -5323
  562. package/dist/xlsx/ui/index.d.ts +1 -0
  563. package/dist/xlsx/ui/index.d.ts.map +1 -1
  564. package/dist/xlsx/ui/index.mjs +9448 -5324
  565. package/dist/xlsx/ui/ribbon/icon-paths.d.ts.map +1 -1
  566. package/dist/xlsx/ui/ribbon/tabs/review-view.d.ts.map +1 -1
  567. package/dist/xlsx/write/drawing.d.ts.map +1 -1
  568. package/dist/xlsx/write/filter-columns.d.ts +53 -0
  569. package/dist/xlsx/write/filter-columns.d.ts.map +1 -0
  570. package/dist/xlsx/write/ignored-errors.d.ts +3 -0
  571. package/dist/xlsx/write/ignored-errors.d.ts.map +1 -0
  572. package/dist/xlsx/write/shared-strings.d.ts +4 -4
  573. package/dist/xlsx/write/shared-strings.d.ts.map +1 -1
  574. package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
  575. package/dist/xlsx/write/sheet-props.d.ts +2 -1
  576. package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
  577. package/dist/xlsx/write/smart-art-cache.d.ts.map +1 -1
  578. package/dist/xlsx/write/smart-art.d.ts.map +1 -1
  579. package/dist/xlsx/write/sort-state.d.ts +55 -0
  580. package/dist/xlsx/write/sort-state.d.ts.map +1 -0
  581. package/dist/xlsx/write/table-patch.d.ts +2 -1
  582. package/dist/xlsx/write/table-patch.d.ts.map +1 -1
  583. package/dist/xlsx/write/tables.d.ts +2 -1
  584. package/dist/xlsx/write/tables.d.ts.map +1 -1
  585. package/dist/xlsx/write/workbook-part.d.ts.map +1 -1
  586. package/dist/xlsx/write/worksheet.d.ts.map +1 -1
  587. package/package.json +7 -2
  588. package/dist/PptxHandler-QY5VL3CY.mjs +0 -7
  589. package/dist/PptxHandler-SJ5ZUIUX.mjs +0 -4
  590. package/dist/PptxHandler-TESZUH66.cjs +0 -13
  591. package/dist/chunk-3GXV5MPC.mjs +0 -41
  592. package/dist/chunk-MHNETXQB.mjs +0 -1
  593. package/dist/pptx/chunks/elements-mSCZ84Tc.d.ts.map +0 -1
  594. package/dist/pptx/chunks/index-DKybuHPT.d.ts.map +0 -1
  595. package/dist/pptx/chunks/smart-art-DLumQo90.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { XMLSerializer, DOMParser } from '@xmldom/xmldom';
1
+ import { DOMParser, XMLSerializer } from '@xmldom/xmldom';
2
2
 
3
3
  // xml/namespaces.ts
4
4
  var NS = {
@@ -540,37 +540,271 @@ function withDrawingColorBrightness(color, percent) {
540
540
  return result;
541
541
  }
542
542
 
543
- // drawingml/picture-crop.ts
544
- var SIDES = { l: "cropLeft", t: "cropTop", r: "cropRight", b: "cropBottom" };
545
- function parsePictureCrop(blipFill) {
546
- const rect = first(blipFill, "srcRect", NS.a);
547
- if (!rect) return void 0;
548
- const result = {};
549
- for (const [attr, key] of Object.entries(SIDES)) {
550
- const raw = rect.getAttribute(attr);
551
- if (raw === null || !raw.trim()) continue;
552
- const percent = raw.endsWith("%");
553
- const value = Number(percent ? raw.slice(0, -1) : raw) / (percent ? 100 : 1e5);
554
- if (Number.isFinite(value)) result[key] = value;
543
+ // drawingml/picture-artistic.ts
544
+ var ARTISTIC_PRIMARY_ATTRIBUTE = {
545
+ artisticBlur: "radius",
546
+ artisticCement: "crackSpacing",
547
+ artisticChalkSketch: "pressure",
548
+ artisticCrisscrossEtching: "pressure",
549
+ artisticCutout: "numberOfShades",
550
+ artisticFilmGrain: "grainSize",
551
+ artisticGlass: "scaling",
552
+ artisticGlowDiffused: "intensity",
553
+ artisticGlowEdges: "smoothness",
554
+ artisticLightScreen: "gridSize",
555
+ artisticLineDrawing: "pencilSize",
556
+ artisticMarker: "size",
557
+ // Spelled "Mosiaic" in the schema; Microsoft's typo is part of the format.
558
+ artisticMosiaicBubbles: "pressure",
559
+ artisticPaintBrush: "brushSize",
560
+ artisticPaintStrokes: "intensity",
561
+ artisticPastelsSmooth: "scaling",
562
+ artisticPencilGrayscale: "pencilSize",
563
+ artisticPencilSketch: "pressure",
564
+ artisticPhotocopy: "detail",
565
+ artisticPlasticWrap: "smoothness",
566
+ artisticTexturizer: "scaling",
567
+ artisticWatercolorSponge: "brushSize"
568
+ };
569
+ function parseArtisticPictureExtension(node) {
570
+ if (node.namespaceURI !== NS.a || node.localName !== "extLst") return void 0;
571
+ const found = [];
572
+ const unhandled = [];
573
+ const pending = [node];
574
+ while (pending.length) {
575
+ const item = pending.pop();
576
+ if (item !== node && !(item.namespaceURI === NS.a && item.localName === "ext") && !(item.namespaceURI === "http://schemas.microsoft.com/office/drawing/2010/main" && (["imgProps", "imgLayer", "imgEffect", "useLocalDpi"].includes(item.localName) || ARTISTIC_PRIMARY_ATTRIBUTE[item.localName])))
577
+ unhandled.push(item.localName);
578
+ if (item.namespaceURI === "http://schemas.microsoft.com/office/drawing/2010/main" && item.localName.startsWith("artistic"))
579
+ found.push(item);
580
+ pending.push(...elements(item));
555
581
  }
556
- return result;
582
+ if (found.length !== 1) return void 0;
583
+ const effect = found[0];
584
+ const key = ARTISTIC_PRIMARY_ATTRIBUTE[effect.localName];
585
+ if (!key) return void 0;
586
+ const raw = key ? effect.getAttribute(key) : null;
587
+ const n = raw === null ? 0 : Number(raw);
588
+ if (!Number.isFinite(n)) return void 0;
589
+ return {
590
+ kind: "artistic",
591
+ name: effect.localName,
592
+ radius: effect.localName === "artisticBlur" ? n : n / 1e3,
593
+ baked: true,
594
+ ...unhandled.length ? { unhandled } : {}
595
+ };
557
596
  }
558
- function applyPictureCrop(blipFill, crop) {
559
- let rect = first(blipFill, "srcRect", NS.a);
560
- if (!rect && crop && Object.values(crop).some((value) => value !== void 0)) {
561
- rect = blipFill.ownerDocument.createElementNS(NS.a, "a:srcRect");
562
- const blip = first(blipFill, "blip", NS.a);
563
- blipFill.insertBefore(rect, blip?.nextSibling ?? blipFill.firstChild);
597
+
598
+ // drawingml/write-color.ts
599
+ var ELEMENTS = {
600
+ srgb: "srgbClr",
601
+ scheme: "schemeClr",
602
+ system: "sysClr",
603
+ preset: "prstClr",
604
+ scrgb: "scrgbClr",
605
+ hsl: "hslClr"
606
+ };
607
+ function drawingColorXml(color) {
608
+ const local = ELEMENTS[color.kind];
609
+ const doc = parseXml(`<a:${local} xmlns:a="${NS.a}"/>`);
610
+ const root = doc.documentElement;
611
+ if (color.kind === "scrgb" || color.kind === "hsl") {
612
+ const keys = color.kind === "scrgb" ? ["r", "g", "b"] : ["hue", "sat", "lum"];
613
+ const values = color.value.split(",");
614
+ keys.forEach((key, i) => root.setAttribute(key, values[i] ?? "0"));
615
+ } else root.setAttribute("val", color.value);
616
+ if (color.fallback !== void 0 && color.kind === "system")
617
+ root.setAttribute("lastClr", color.fallback);
618
+ for (const transform of color.transforms) {
619
+ if (!/^[A-Za-z_][\w.-]*$/.test(transform.name))
620
+ throw new Error(`Invalid DrawingML transform ${transform.name}`);
621
+ const node = doc.createElementNS(NS.a, `a:${transform.name}`);
622
+ if (transform.value !== "") node.setAttribute("val", transform.value);
623
+ root.appendChild(node);
564
624
  }
565
- if (!rect) return;
566
- for (const [attr, key] of Object.entries(SIDES)) {
567
- const value = crop?.[key];
568
- if (value === void 0) rect.removeAttribute(attr);
569
- else {
570
- if (!Number.isFinite(value)) throw new RangeError("Picture crop must be finite");
571
- rect.setAttribute(attr, String(Math.round(value * 1e5)));
625
+ return buildXml(doc);
626
+ }
627
+
628
+ // drawingml/patch-color.ts
629
+ function patchDrawingColorIn(container, color) {
630
+ const old = elements(container).find((node) => parseDrawingColor(node));
631
+ const before = parseDrawingColorIn(container);
632
+ if (!old || !before || before.kind !== color.kind) {
633
+ const next = container.ownerDocument.importNode(
634
+ parseXml(drawingColorXml(color)).documentElement,
635
+ true
636
+ );
637
+ if (old) container.replaceChild(next, old);
638
+ else container.insertBefore(next, container.firstChild);
639
+ return;
640
+ }
641
+ if (before.value !== color.value) {
642
+ if (color.kind === "scrgb" || color.kind === "hsl") {
643
+ const keys = color.kind === "scrgb" ? ["r", "g", "b"] : ["hue", "sat", "lum"];
644
+ const values = color.value.split(",");
645
+ keys.forEach((key, index) => old.setAttribute(key, values[index] ?? "0"));
646
+ } else old.setAttribute("val", color.value);
647
+ }
648
+ if (before.fallback !== color.fallback && color.kind === "system") {
649
+ if (color.fallback === void 0) old.removeAttribute("lastClr");
650
+ else old.setAttribute("lastClr", color.fallback);
651
+ }
652
+ const originals = elements(old);
653
+ color.transforms.forEach((transform, index) => {
654
+ const source2 = originals[index];
655
+ if (source2?.localName === transform.name) {
656
+ if (before.transforms[index]?.value !== transform.value) {
657
+ if (transform.value === "") source2.removeAttribute("val");
658
+ else source2.setAttribute("val", transform.value);
659
+ }
660
+ return;
572
661
  }
662
+ if (!/^[A-Za-z_][\w.-]*$/u.test(transform.name))
663
+ throw new Error("Invalid DrawingML colour transform");
664
+ const next = old.ownerDocument.createElementNS(NS.a, `a:${transform.name}`);
665
+ if (transform.value !== "") next.setAttribute("val", transform.value);
666
+ if (source2) old.replaceChild(next, source2);
667
+ else old.appendChild(next);
668
+ });
669
+ for (const extra of originals.slice(color.transforms.length)) old.removeChild(extra);
670
+ }
671
+
672
+ // drawingml/picture-standard-effects.ts
673
+ var attrs = {
674
+ biLevel: { threshold: "thresh" },
675
+ alphaRepl: { amount: "a" },
676
+ alphaBiLevel: { threshold: "thresh" },
677
+ hsl: { hue: "hue", saturation: "sat", luminance: "lum" },
678
+ tint: { hue: "hue", amount: "amt" },
679
+ blur: { radiusEmu: "rad" }
680
+ };
681
+ function parseStandardPictureEffect(node) {
682
+ const name = node.localName;
683
+ if (![
684
+ "biLevel",
685
+ "alphaInv",
686
+ "alphaCeiling",
687
+ "alphaFloor",
688
+ "alphaRepl",
689
+ "alphaBiLevel",
690
+ "alphaMod",
691
+ "duotone",
692
+ "clrRepl",
693
+ "clrChange",
694
+ "hsl",
695
+ "tint",
696
+ "blur"
697
+ ].includes(name))
698
+ return void 0;
699
+ const values = {};
700
+ for (const [key, attribute] of Object.entries(attrs[name] ?? {})) {
701
+ const raw = node.getAttribute(attribute);
702
+ if (raw === null) continue;
703
+ const percent = raw.endsWith("%");
704
+ const n = Number(percent ? raw.slice(0, -1) : raw) / (key === "hue" ? 6e4 : key === "radiusEmu" ? 1 : percent ? 100 : 1e5);
705
+ if (!Number.isFinite(n) || key === "hue" && (n < 0 || n >= 360) || key === "threshold" && (n < 0 || n > 1) || key === "radiusEmu" && (!Number.isSafeInteger(n) || n < 0) || ["saturation", "luminance", "amount"].includes(key) && name !== "alphaMod" && (n < (name === "alphaRepl" ? 0 : -1) || n > 1))
706
+ return void 0;
707
+ values[key] = n;
573
708
  }
709
+ if (["biLevel", "alphaBiLevel"].includes(name) && values.threshold === void 0)
710
+ return void 0;
711
+ if (name === "alphaRepl" && values.amount === void 0) return void 0;
712
+ if (name === "alphaMod") {
713
+ const cont = first(node, "cont", NS.a);
714
+ const nested = cont ? elements(cont) : [];
715
+ if (nested.length !== 1 || nested[0]?.localName !== "alphaModFix") return void 0;
716
+ const raw = nested[0].getAttribute("amt") ?? "100000";
717
+ const n = Number(raw.endsWith("%") ? raw.slice(0, -1) : raw) / (raw.endsWith("%") ? 100 : 1e5);
718
+ if (!Number.isFinite(n) || n < 0) return void 0;
719
+ values.amount = n;
720
+ }
721
+ let colors = [];
722
+ if (name === "duotone") {
723
+ const candidates = elements(node).filter(
724
+ (item) => item.namespaceURI === NS.a && /Clr$/.test(item.localName)
725
+ );
726
+ colors = candidates.map((item) => parseDrawingColor(item)).filter((item) => Boolean(item));
727
+ if (colors.length !== 2) return void 0;
728
+ }
729
+ if (name === "clrRepl") {
730
+ const color = parseDrawingColorIn(node);
731
+ if (!color) return void 0;
732
+ colors = [color];
733
+ }
734
+ if (name === "clrChange") {
735
+ const from = parseDrawingColorIn(first(node, "clrFrom", NS.a)), to = parseDrawingColorIn(first(node, "clrTo", NS.a));
736
+ if (!from || !to) return void 0;
737
+ colors = [from, to];
738
+ }
739
+ if (name === "alphaInv") {
740
+ const color = parseDrawingColorIn(node);
741
+ if (color) colors = [color];
742
+ }
743
+ return {
744
+ kind: "standard",
745
+ name,
746
+ ...Object.keys(values).length ? { values } : {},
747
+ ...colors.length ? { colors } : {},
748
+ ...name === "clrChange" && node.hasAttribute("useA") ? { useAlpha: !["0", "false"].includes(node.getAttribute("useA") ?? "") } : {},
749
+ ...name === "blur" && node.hasAttribute("grow") ? { grow: !["0", "false"].includes(node.getAttribute("grow") ?? "") } : {}
750
+ };
751
+ }
752
+ function applyStandardPictureEffect(node, effect) {
753
+ const doc = node.ownerDocument, before = parseStandardPictureEffect(node);
754
+ for (const [key, value] of Object.entries(effect.values ?? {})) {
755
+ if (!Number.isFinite(value) || key === "hue" && (value < 0 || value >= 360) || key === "threshold" && (value < 0 || value > 1) || key === "radiusEmu" && (!Number.isSafeInteger(value) || value < 0) || key === "amount" && effect.name === "alphaMod" && value < 0 || ["saturation", "luminance", "amount"].includes(key) && effect.name !== "alphaMod" && (value < (effect.name === "alphaRepl" ? 0 : -1) || value > 1))
756
+ throw new RangeError("Invalid picture effect values");
757
+ }
758
+ const count = effect.colors?.length ?? 0;
759
+ if (["duotone", "clrChange"].includes(effect.name) && count !== 2 || effect.name === "clrRepl" && count !== 1 || effect.name === "alphaInv" && count > 1)
760
+ throw new RangeError("Invalid picture effect colours");
761
+ for (const [key, attribute] of Object.entries(attrs[effect.name] ?? {})) {
762
+ const value = effect.values?.[key];
763
+ if (value === before?.values?.[key]) continue;
764
+ if (value === void 0) node.removeAttribute(attribute);
765
+ else
766
+ node.setAttribute(
767
+ attribute,
768
+ String(Math.round(value * (key === "hue" ? 6e4 : key === "radiusEmu" ? 1 : 1e5)))
769
+ );
770
+ }
771
+ if (effect.name === "alphaMod" && effect.values?.amount !== before?.values?.amount) {
772
+ const cont = first(node, "cont", NS.a) ?? doc.createElementNS(NS.a, "a:cont");
773
+ const fix = first(cont, "alphaModFix", NS.a) ?? doc.createElementNS(NS.a, "a:alphaModFix");
774
+ fix.setAttribute("amt", String(Math.round((effect.values?.amount ?? 1) * 1e5)));
775
+ if (!fix.parentNode) cont.appendChild(fix);
776
+ if (!cont.parentNode) node.appendChild(cont);
777
+ }
778
+ if (effect.useAlpha !== before?.useAlpha) {
779
+ if (effect.useAlpha === void 0) node.removeAttribute("useA");
780
+ else node.setAttribute("useA", effect.useAlpha ? "1" : "0");
781
+ }
782
+ if (effect.grow !== before?.grow) {
783
+ if (effect.grow === void 0) node.removeAttribute("grow");
784
+ else node.setAttribute("grow", effect.grow ? "1" : "0");
785
+ }
786
+ if (JSON.stringify(effect.colors) !== JSON.stringify(before?.colors)) {
787
+ if (effect.name === "duotone") {
788
+ const old = elements(node).filter(
789
+ (item) => item.namespaceURI === NS.a && /Clr$/.test(item.localName)
790
+ );
791
+ for (let i = 0; i < (effect.colors?.length ?? 0); i++) {
792
+ const holder = doc.createElementNS(NS.a, "a:holder");
793
+ if (old[i]) holder.appendChild(doc.importNode(old[i], true));
794
+ patchDrawingColorIn(holder, effect.colors[i]);
795
+ const next = elements(holder)[0];
796
+ if (old[i]) node.replaceChild(next, old[i]);
797
+ else node.insertBefore(next, first(node, "extLst", NS.a) ?? null);
798
+ }
799
+ } else if (effect.name === "clrChange") {
800
+ for (const [i, name] of ["clrFrom", "clrTo"].entries()) {
801
+ const holder = first(node, name, NS.a) ?? doc.createElementNS(NS.a, `a:${name}`);
802
+ if (effect.colors?.[i]) patchDrawingColorIn(holder, effect.colors[i]);
803
+ if (!holder.parentNode) node.insertBefore(holder, first(node, "extLst", NS.a) ?? null);
804
+ }
805
+ } else if (effect.colors?.[0]) patchDrawingColorIn(node, effect.colors[0]);
806
+ }
807
+ if (!parseStandardPictureEffect(node)) throw new RangeError("Invalid picture effect values");
574
808
  }
575
809
 
576
810
  // drawingml/picture-effects.ts
@@ -610,14 +844,19 @@ function readPictureEffect(name, attribute) {
610
844
  function parsePictureEffects(blip) {
611
845
  if (!blip) return [];
612
846
  return elements(blip).map((node) => ({
613
- ...(node.namespaceURI === NS.a ? readPictureEffect(node.localName, (name) => node.getAttribute(name)) : void 0) ?? { kind: "unsupported", name: node.localName },
847
+ ...(node.namespaceURI === NS.a ? readPictureEffect(node.localName, (name) => node.getAttribute(name)) ?? parseStandardPictureEffect(node) ?? parseArtisticPictureExtension(node) : void 0) ?? { kind: "unsupported", name: node.localName },
614
848
  sourceXml: buildXml(node)
615
849
  }));
616
850
  }
617
851
  function applyPictureEffects(blip, effects) {
618
852
  if (JSON.stringify(parsePictureEffects(blip)) === JSON.stringify(effects)) return;
619
853
  const nodes = effects.map((effect) => {
620
- const name = effect.kind === "grayscale" ? "grayscl" : effect.kind === "luminance" ? "lum" : effect.kind === "unsupported" ? effect.name : effect.kind;
854
+ const name = effect.kind === "grayscale" ? "grayscl" : effect.kind === "luminance" ? "lum" : effect.kind === "unsupported" ? effect.name : effect.kind === "artistic" ? "extLst" : effect.kind === "standard" ? effect.name : effect.kind;
855
+ if (effect.kind === "artistic") {
856
+ const before = effect.sourceXml ? parseArtisticPictureExtension(parseXml(effect.sourceXml).documentElement) : void 0;
857
+ if (!effect.baked || !before || before.name !== effect.name || before.radius !== effect.radius)
858
+ throw new Error("Artistic authoring requires a host-generated baked picture cache");
859
+ }
621
860
  const source2 = effect.sourceXml ? parseXml(effect.sourceXml).documentElement : void 0;
622
861
  if (effect.kind === "unsupported" && !source2)
623
862
  throw new Error("An unsupported picture effect needs source XML");
@@ -644,6 +883,7 @@ function applyPictureEffects(blip, effects) {
644
883
  if (effect.amount < 0) throw new RangeError("Picture alpha must be nonnegative");
645
884
  set("amt", effect.amount);
646
885
  }
886
+ if (effect.kind === "standard") applyStandardPictureEffect(node, effect);
647
887
  return node;
648
888
  });
649
889
  for (const node of elements(blip)) blip.removeChild(node);
@@ -694,8 +934,174 @@ function patchPictureEffects(source2, patch) {
694
934
  ...effect?.kind === "alphaModFix" ? effect : { kind: "alphaModFix" },
695
935
  amount: patch.alpha
696
936
  }));
937
+ if (patch.standard) {
938
+ const target = patch.standard;
939
+ const matches = result.flatMap(
940
+ (effect, index2) => effect.kind === "standard" && effect.name === target.name || effect.kind === "unsupported" && effect.name === target.name ? [index2] : []
941
+ );
942
+ if (matches.length > 1 || matches.some((index2) => result[index2]?.kind === "unsupported"))
943
+ throw new Error(`Ambiguous or unreadable picture effect: ${target.name}`);
944
+ const index = matches[0], before = index === void 0 ? void 0 : result[index];
945
+ const next = {
946
+ ...before?.kind === "standard" ? before : {},
947
+ ...target,
948
+ kind: "standard"
949
+ };
950
+ const doc = parseXml(next.sourceXml ?? `<a:${next.name} xmlns:a="${NS.a}"/>`);
951
+ applyStandardPictureEffect(doc.documentElement, next);
952
+ if (index === void 0) {
953
+ const ext = result.findIndex(
954
+ (effect) => effect.kind === "artistic" || effect.kind === "unsupported" && effect.name === "extLst"
955
+ );
956
+ result.splice(ext < 0 ? result.length : ext, 0, next);
957
+ } else result[index] = next;
958
+ }
959
+ return result;
960
+ }
961
+
962
+ // drawingml/picture-layout.ts
963
+ function parsePictureLayout(fill) {
964
+ const out = {};
965
+ const rot = fill.getAttribute("rotWithShape");
966
+ if (rot !== null) out.rotWithShape = rot !== "0" && rot !== "false";
967
+ const dpi = Number(fill.getAttribute("dpi"));
968
+ if (fill.hasAttribute("dpi") && Number.isFinite(dpi) && dpi > 0) out.dpi = dpi;
969
+ const tile = first(fill, "tile", NS.a);
970
+ if (tile) {
971
+ const value = {};
972
+ for (const [key, attr] of [
973
+ ["scaleX", "sx"],
974
+ ["scaleY", "sy"]
975
+ ]) {
976
+ const n = picturePercentage(tile.getAttribute(attr));
977
+ if (n !== void 0) value[key] = n;
978
+ }
979
+ for (const [key, attr] of [
980
+ ["offsetXEmu", "tx"],
981
+ ["offsetYEmu", "ty"]
982
+ ]) {
983
+ const raw = tile.getAttribute(attr);
984
+ const n = raw === null ? NaN : Number(raw);
985
+ if (Number.isSafeInteger(n)) value[key] = n;
986
+ }
987
+ const alignment = tile.getAttribute("algn");
988
+ if (alignment) value.alignment = alignment;
989
+ const flip = tile.getAttribute("flip");
990
+ if (flip && ["none", "x", "y", "xy"].includes(flip))
991
+ value.flip = flip;
992
+ out.tile = value;
993
+ }
994
+ const rect = first(first(fill, "stretch", NS.a), "fillRect", NS.a);
995
+ if (rect)
996
+ out.fillRect = {
997
+ l: picturePercentage(rect.getAttribute("l")) ?? 0,
998
+ t: picturePercentage(rect.getAttribute("t")) ?? 0,
999
+ r: picturePercentage(rect.getAttribute("r")) ?? 0,
1000
+ b: picturePercentage(rect.getAttribute("b")) ?? 0
1001
+ };
1002
+ return out;
1003
+ }
1004
+ function applyPictureLayout(fill, layout) {
1005
+ const before = parsePictureLayout(fill);
1006
+ const attr = (node, name, value, old) => {
1007
+ if (value === old) return;
1008
+ if (value === void 0) node.removeAttribute(name);
1009
+ else node.setAttribute(name, String(value));
1010
+ };
1011
+ if (layout.rotWithShape !== before.rotWithShape)
1012
+ attr(
1013
+ fill,
1014
+ "rotWithShape",
1015
+ layout.rotWithShape === void 0 ? void 0 : layout.rotWithShape ? "1" : "0",
1016
+ void 0
1017
+ );
1018
+ if (layout.dpi !== before.dpi) {
1019
+ if (layout.dpi !== void 0 && (!Number.isSafeInteger(layout.dpi) || layout.dpi <= 0))
1020
+ throw new RangeError("Invalid picture DPI");
1021
+ attr(fill, "dpi", layout.dpi, void 0);
1022
+ }
1023
+ const make = (parent, name) => {
1024
+ const old = first(parent, name, NS.a);
1025
+ if (old) return old;
1026
+ const node = fill.ownerDocument.createElementNS(NS.a, `a:${name}`);
1027
+ parent.insertBefore(node, first(parent, "extLst", NS.a) ?? null);
1028
+ return node;
1029
+ };
1030
+ if (layout.tile) {
1031
+ const stretch = first(fill, "stretch", NS.a);
1032
+ if (stretch) fill.removeChild(stretch);
1033
+ const tile = make(fill, "tile");
1034
+ for (const [key, name] of [
1035
+ ["scaleX", "sx"],
1036
+ ["scaleY", "sy"],
1037
+ ["offsetXEmu", "tx"],
1038
+ ["offsetYEmu", "ty"]
1039
+ ]) {
1040
+ const n = layout.tile[key];
1041
+ if (n !== void 0 && (!Number.isFinite(n) || (name === "sx" || name === "sy" ? n <= 0 : !Number.isSafeInteger(n))))
1042
+ throw new RangeError("Invalid picture tile");
1043
+ if (n !== before.tile?.[key])
1044
+ attr(
1045
+ tile,
1046
+ name,
1047
+ n === void 0 ? void 0 : Math.round(n * (name === "sx" || name === "sy" ? 1e5 : 1)),
1048
+ void 0
1049
+ );
1050
+ }
1051
+ if (layout.tile.alignment !== before.tile?.alignment) {
1052
+ if (layout.tile.alignment && !["tl", "t", "tr", "l", "ctr", "r", "bl", "b", "br"].includes(layout.tile.alignment))
1053
+ throw new RangeError("Invalid picture tile alignment");
1054
+ attr(tile, "algn", layout.tile.alignment, void 0);
1055
+ }
1056
+ if (layout.tile.flip !== void 0 && !["none", "x", "y", "xy"].includes(layout.tile.flip))
1057
+ throw new RangeError("Invalid picture tile flip");
1058
+ if (layout.tile.flip !== before.tile?.flip) attr(tile, "flip", layout.tile.flip, void 0);
1059
+ } else if (before.tile || layout.fillRect) {
1060
+ const tile = first(fill, "tile", NS.a);
1061
+ if (tile) fill.removeChild(tile);
1062
+ const rect = make(make(fill, "stretch"), "fillRect");
1063
+ for (const key of ["l", "t", "r", "b"]) {
1064
+ const n = layout.fillRect?.[key];
1065
+ if (n !== void 0 && !Number.isFinite(n))
1066
+ throw new RangeError("Invalid picture fill rectangle");
1067
+ if (n !== before.fillRect?.[key])
1068
+ attr(rect, key, n === void 0 ? void 0 : Math.round(n * 1e5), void 0);
1069
+ }
1070
+ }
1071
+ }
1072
+
1073
+ // drawingml/picture-crop.ts
1074
+ var SIDES = { l: "cropLeft", t: "cropTop", r: "cropRight", b: "cropBottom" };
1075
+ function parsePictureCrop(blipFill) {
1076
+ const rect = first(blipFill, "srcRect", NS.a);
1077
+ if (!rect) return void 0;
1078
+ const result = {};
1079
+ for (const [attr, key] of Object.entries(SIDES)) {
1080
+ const raw = rect.getAttribute(attr);
1081
+ if (raw === null || !raw.trim()) continue;
1082
+ const percent = raw.endsWith("%");
1083
+ const value = Number(percent ? raw.slice(0, -1) : raw) / (percent ? 100 : 1e5);
1084
+ if (Number.isFinite(value)) result[key] = value;
1085
+ }
697
1086
  return result;
698
1087
  }
1088
+ function applyPictureCrop(blipFill, crop) {
1089
+ let rect = first(blipFill, "srcRect", NS.a);
1090
+ if (!rect && crop && Object.values(crop).some((value) => value !== void 0)) {
1091
+ rect = blipFill.ownerDocument.createElementNS(NS.a, "a:srcRect");
1092
+ const blip = first(blipFill, "blip", NS.a);
1093
+ blipFill.insertBefore(rect, blip?.nextSibling ?? blipFill.firstChild);
1094
+ }
1095
+ if (!rect) return;
1096
+ for (const [attr, key] of Object.entries(SIDES)) {
1097
+ const value = crop?.[key];
1098
+ if (value === void 0) rect.removeAttribute(attr);
1099
+ else {
1100
+ if (!Number.isFinite(value)) throw new RangeError("Picture crop must be finite");
1101
+ rect.setAttribute(attr, String(Math.round(value * 1e5)));
1102
+ }
1103
+ }
1104
+ }
699
1105
 
700
1106
  // drawingml/picture-fill.ts
701
1107
  function parseDrawingPictureFill(fill) {
@@ -704,13 +1110,32 @@ function parseDrawingPictureFill(fill) {
704
1110
  const linkRelId = blip?.getAttributeNS(NS.r, "link") || void 0;
705
1111
  const crop = parsePictureCrop(fill);
706
1112
  const effects = parsePictureEffects(blip);
707
- const tile = first(fill, "tile", NS.a);
708
- const rect = first(first(fill, "stretch", NS.a), "fillRect", NS.a);
709
- const unsupported = [
710
- ...tile ? ["tile"] : [],
711
- ...rect && ["l", "t", "r", "b"].some((key) => Number(rect.getAttribute(key) ?? 0) !== 0) ? ["fillRect"] : [],
712
- ...fill.getAttribute("rotWithShape") === "0" || fill.getAttribute("rotWithShape") === "false" ? ["rotWithShape"] : []
713
- ];
1113
+ const layout = parsePictureLayout(fill);
1114
+ const unsupported2 = [];
1115
+ const tile = first(fill, "tile", NS.a), stretch = first(fill, "stretch", NS.a);
1116
+ if (tile && stretch) unsupported2.push("tile/stretch-choice");
1117
+ if (tile) {
1118
+ for (const [attr, key] of [
1119
+ ["sx", "scaleX"],
1120
+ ["sy", "scaleY"],
1121
+ ["tx", "offsetXEmu"],
1122
+ ["ty", "offsetYEmu"]
1123
+ ])
1124
+ if (tile.hasAttribute(attr) && (layout.tile?.[key] === void 0 || (attr === "sx" || attr === "sy") && layout.tile[key] <= 0))
1125
+ unsupported2.push(`tile:${attr}`);
1126
+ if (tile.hasAttribute("algn") && !["tl", "t", "tr", "l", "ctr", "r", "bl", "b", "br"].includes(tile.getAttribute("algn") ?? ""))
1127
+ unsupported2.push("tile:algn");
1128
+ if (tile.hasAttribute("flip") && !layout.tile?.flip) unsupported2.push("tile:flip");
1129
+ }
1130
+ const rect = first(stretch, "fillRect", NS.a);
1131
+ if (rect)
1132
+ for (const key of ["l", "t", "r", "b"]) {
1133
+ const raw = rect.getAttribute(key);
1134
+ if (raw !== null && !/^[-+]?(?:\d+\.?\d*|\.\d+)%?$/.test(raw))
1135
+ unsupported2.push(`fillRect:${key}`);
1136
+ }
1137
+ if (fill.hasAttribute("rotWithShape") && !["0", "1", "true", "false"].includes(fill.getAttribute("rotWithShape") ?? ""))
1138
+ unsupported2.push("rotWithShape");
714
1139
  return {
715
1140
  kind: "picture",
716
1141
  sourceXml: buildXml(fill),
@@ -718,7 +1143,8 @@ function parseDrawingPictureFill(fill) {
718
1143
  ...linkRelId ? { linkRelId } : {},
719
1144
  ...crop ? { crop } : {},
720
1145
  ...effects.length ? { effects } : {},
721
- ...unsupported.length ? { unsupportedPicture: unsupported } : {}
1146
+ ...Object.keys(layout).length ? { layout } : {},
1147
+ ...unsupported2.length ? { unsupportedPicture: unsupported2 } : {}
722
1148
  };
723
1149
  }
724
1150
 
@@ -1251,80 +1677,6 @@ function parseDrawingGeometry(spPr) {
1251
1677
  // units/constants.ts
1252
1678
  var EMU_PER_PIXEL = 9525;
1253
1679
 
1254
- // drawingml/write-color.ts
1255
- var ELEMENTS = {
1256
- srgb: "srgbClr",
1257
- scheme: "schemeClr",
1258
- system: "sysClr",
1259
- preset: "prstClr",
1260
- scrgb: "scrgbClr",
1261
- hsl: "hslClr"
1262
- };
1263
- function drawingColorXml(color) {
1264
- const local = ELEMENTS[color.kind];
1265
- const doc = parseXml(`<a:${local} xmlns:a="${NS.a}"/>`);
1266
- const root = doc.documentElement;
1267
- if (color.kind === "scrgb" || color.kind === "hsl") {
1268
- const keys = color.kind === "scrgb" ? ["r", "g", "b"] : ["hue", "sat", "lum"];
1269
- const values = color.value.split(",");
1270
- keys.forEach((key, i) => root.setAttribute(key, values[i] ?? "0"));
1271
- } else root.setAttribute("val", color.value);
1272
- if (color.fallback !== void 0 && color.kind === "system")
1273
- root.setAttribute("lastClr", color.fallback);
1274
- for (const transform of color.transforms) {
1275
- if (!/^[A-Za-z_][\w.-]*$/.test(transform.name))
1276
- throw new Error(`Invalid DrawingML transform ${transform.name}`);
1277
- const node = doc.createElementNS(NS.a, `a:${transform.name}`);
1278
- if (transform.value !== "") node.setAttribute("val", transform.value);
1279
- root.appendChild(node);
1280
- }
1281
- return buildXml(doc);
1282
- }
1283
-
1284
- // drawingml/patch-color.ts
1285
- function patchDrawingColorIn(container, color) {
1286
- const old = elements(container).find((node) => parseDrawingColor(node));
1287
- const before = parseDrawingColorIn(container);
1288
- if (!old || !before || before.kind !== color.kind) {
1289
- const next = container.ownerDocument.importNode(
1290
- parseXml(drawingColorXml(color)).documentElement,
1291
- true
1292
- );
1293
- if (old) container.replaceChild(next, old);
1294
- else container.insertBefore(next, container.firstChild);
1295
- return;
1296
- }
1297
- if (before.value !== color.value) {
1298
- if (color.kind === "scrgb" || color.kind === "hsl") {
1299
- const keys = color.kind === "scrgb" ? ["r", "g", "b"] : ["hue", "sat", "lum"];
1300
- const values = color.value.split(",");
1301
- keys.forEach((key, index) => old.setAttribute(key, values[index] ?? "0"));
1302
- } else old.setAttribute("val", color.value);
1303
- }
1304
- if (before.fallback !== color.fallback && color.kind === "system") {
1305
- if (color.fallback === void 0) old.removeAttribute("lastClr");
1306
- else old.setAttribute("lastClr", color.fallback);
1307
- }
1308
- const originals = elements(old);
1309
- color.transforms.forEach((transform, index) => {
1310
- const source2 = originals[index];
1311
- if (source2?.localName === transform.name) {
1312
- if (before.transforms[index]?.value !== transform.value) {
1313
- if (transform.value === "") source2.removeAttribute("val");
1314
- else source2.setAttribute("val", transform.value);
1315
- }
1316
- return;
1317
- }
1318
- if (!/^[A-Za-z_][\w.-]*$/u.test(transform.name))
1319
- throw new Error("Invalid DrawingML colour transform");
1320
- const next = old.ownerDocument.createElementNS(NS.a, `a:${transform.name}`);
1321
- if (transform.value !== "") next.setAttribute("val", transform.value);
1322
- if (source2) old.replaceChild(next, source2);
1323
- else old.appendChild(next);
1324
- });
1325
- for (const extra of originals.slice(color.transforms.length)) old.removeChild(extra);
1326
- }
1327
-
1328
1680
  // drawingml/write-pattern-picture.ts
1329
1681
  function drawingPatternPictureXml(fill) {
1330
1682
  const name = fill.kind === "pattern" ? "pattFill" : "blipFill";
@@ -1386,7 +1738,8 @@ function drawingPatternPictureXml(fill) {
1386
1738
  applyPictureCrop(root, fill.crop);
1387
1739
  if (fill.effects !== void 0 && JSON.stringify(before?.kind === "picture" ? before.effects ?? [] : []) !== JSON.stringify(fill.effects ?? []))
1388
1740
  applyPictureEffects(blip, fill.effects ?? []);
1389
- if (!fill.sourceXml) {
1741
+ if (fill.layout !== void 0) applyPictureLayout(root, fill.layout);
1742
+ if (!fill.sourceXml && !fill.layout?.tile && !first(root, "stretch", NS.a)) {
1390
1743
  const stretch = doc.createElementNS(NS.a, "a:stretch");
1391
1744
  stretch.appendChild(doc.createElementNS(NS.a, "a:fillRect"));
1392
1745
  root.appendChild(stretch);
@@ -2057,6 +2410,7 @@ function drawingThemeXml(theme, parts = {}) {
2057
2410
  fonts.setAttribute("name", theme.fontScheme.name ?? theme.name ?? "Custom");
2058
2411
  fontCollection(fonts, "majorFont", theme.fontScheme.major);
2059
2412
  fontCollection(fonts, "minorFont", theme.fontScheme.minor);
2413
+ extensionList(fonts, parts.fontSchemeExtensions, namespaces);
2060
2414
  elementsNode.appendChild(fonts);
2061
2415
  const formatXml = parts.formatScheme ?? (theme.formatScheme && drawingThemeFormatSchemeXml(theme.formatScheme));
2062
2416
  if (!formatXml) throw new Error("The theme has no format scheme.");
@@ -3979,4 +4333,235 @@ function imageContentType(partName) {
3979
4333
  return extension && known[extension] || "application/octet-stream";
3980
4334
  }
3981
4335
 
3982
- export { BODY_PROPERTIES_ORDER, DEFAULT_THEME_COLOR_MAP, DOM_3D_READER, OFFICE_GRADIENT_PRESETS, PARAGRAPH_PROPERTIES_ORDER, RECT_GRADIENT_DIRECTIONS, RUN_PROPERTIES_ORDER, THEME_COLOR_SLOTS, applyPictureCrop, applyPictureEffects, attributeReader, booleanAttribute, buildRectPathGradientImage, buildRectPathGradientSvg, descendants, drawingColorBrightness, drawingColorCss, drawingColorXml, drawingDashLength, drawingEffectXml, drawingEffectsXml, drawingFillXml, drawingLineXml, drawingParagraphPropertiesXml, drawingParagraphText, drawingPathData, drawingRichTextBodyXml, drawingRunPropertiesXml, drawingThemeFormatSchemeXml, drawingThemeXml, fillElementOf, imageContentType, integerAttribute, isThemeColorSlot, officeGradientPresetFill, officeGradientPresetId, orderedColorTransforms, parseCustomGeometry, parseDrawingBodyProperties, parseDrawingColor, parseDrawingColorIn, parseDrawingColorList, parseDrawingEffect, parseDrawingEffects, parseDrawingFill, parseDrawingFlatText3D, parseDrawingFont, parseDrawingGeometry, parseDrawingHyperlink, parseDrawingLine, parseDrawingListStyle, parseDrawingParagraph, parseDrawingParagraphProperties, parseDrawingPictureFill, parseDrawingRichTextBody, parseDrawingRunProperties, parseDrawingTextBody, parseDrawingTextScene3D, parseDrawingTextShape3D, parseDrawingTextSpacing, parseFrame, parsePictureCrop, parsePictureEffects, parseTheme, parseThemeColorMap, parseThemeColorScheme, parseThemeFontScheme, parseThemeFormatScheme, parseThemeXml, parseTransform, patchDrawingColorIn, patchDrawingEffects, patchDrawingLine, patchPictureEffects, pictureLuminanceTransfer, picturePercentage, readPictureEffect, rectGradientDirection, rectGradientFocus, resolveDrawingColor, resolveDrawingOuterShadow, resolveDrawingShadow, resolveDrawingShadowXml, resolveSchemeColor, resolveThemeEffectStyle, resolveThemeFillStyle, resolveThemeLineStyle, setDrawingFillXml, stringAttribute, substituteDrawingPlaceholder, svgDropShadowElement, themeColorSlotFor, themeDrawingColorTheme, themeSlotHex, withDrawingColorBrightness, withDrawingGradientGeometry, writeDrawingBodyProperties, writeDrawingFlatText3D, writeDrawingFont, writeDrawingListStyle, writeDrawingParagraph, writeDrawingParagraphProperties, writeDrawingRichTextBody, writeDrawingRunProperties, writeDrawingTextScene3D, writeDrawingTextShape3D, writeDrawingTextSpacing };
4336
+ // drawingml/picture-transfer.ts
4337
+ function clamp(value, minimum, maximum) {
4338
+ return Math.min(maximum, Math.max(minimum, value));
4339
+ }
4340
+ function buildImageBiLevelTable(threshold) {
4341
+ const cutoff = clamp(threshold, 0, 100);
4342
+ return Array.from({ length: 101 }, (_, index) => index >= cutoff ? "1" : "0").join(" ");
4343
+ }
4344
+ function buildImageLuminanceTransfer(amount) {
4345
+ const normalized = clamp(amount / 100, -1, 1);
4346
+ return normalized >= 0 ? { slope: 1 - normalized, intercept: normalized } : { slope: 1 + normalized, intercept: 0 };
4347
+ }
4348
+
4349
+ // digest/crc32.ts
4350
+ var crcTable = Uint32Array.from({ length: 256 }, (_, value) => {
4351
+ for (let i = 0; i < 8; i++) value = value & 1 ? 3988292384 ^ value >>> 1 : value >>> 1;
4352
+ return value >>> 0;
4353
+ });
4354
+ function crc32(bytes, crc = 4294967295) {
4355
+ for (const byte of bytes) crc = (crcTable[(crc ^ byte) & 255] ?? 0) ^ crc >>> 8;
4356
+ return crc >>> 0;
4357
+ }
4358
+
4359
+ // drawingml/raster-image.ts
4360
+ var RASTER_IMAGE_LIMITS = Object.freeze({
4361
+ maxImageBytes: 8 * 1024 * 1024,
4362
+ maxPixels: 16e6,
4363
+ maxDimension: 16384
4364
+ });
4365
+ var RasterImageError = class extends Error {
4366
+ constructor(code, message) {
4367
+ super(message);
4368
+ this.code = code;
4369
+ this.name = "RasterImageError";
4370
+ }
4371
+ code;
4372
+ };
4373
+ var invalid = (message) => {
4374
+ throw new RasterImageError("invalid-image", message);
4375
+ };
4376
+ var unsupported = (message) => {
4377
+ throw new RasterImageError("unsupported-image", message);
4378
+ };
4379
+ function dimensions(width, height, limits) {
4380
+ if (!width || !height) invalid("Raster image has zero dimensions.");
4381
+ if (width > limits.maxDimension || height > limits.maxDimension || width * height > limits.maxPixels)
4382
+ throw new RasterImageError(
4383
+ "image-limit",
4384
+ "Raster image dimensions exceed the configured limit."
4385
+ );
4386
+ }
4387
+ var ascii = (bytes, start, length) => String.fromCharCode(...bytes.subarray(start, start + length));
4388
+ function png(bytes, limits) {
4389
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
4390
+ if (bytes.length < 33 || view.getUint32(8) !== 13 || ascii(bytes, 12, 4) !== "IHDR")
4391
+ return invalid("PNG is missing a complete IHDR header.");
4392
+ const width = view.getUint32(16), height = view.getUint32(20);
4393
+ dimensions(width, height, limits);
4394
+ const depth = bytes[24], color = bytes[25];
4395
+ const depths = {
4396
+ 0: [1, 2, 4, 8, 16],
4397
+ 2: [8, 16],
4398
+ 3: [1, 2, 4, 8],
4399
+ 4: [8, 16],
4400
+ 6: [8, 16]
4401
+ };
4402
+ if (!depths[color]?.includes(depth) || bytes[26] !== 0 || bytes[27] !== 0 || bytes[28] > 1)
4403
+ invalid("PNG header uses invalid color, compression, filter, or interlace values.");
4404
+ let data = false;
4405
+ for (let at = 8; at < bytes.length; ) {
4406
+ if (at + 12 > bytes.length) invalid("Truncated PNG chunk.");
4407
+ const length = view.getUint32(at), type = ascii(bytes, at + 4, 4), end = at + length + 12;
4408
+ if (end > bytes.length) invalid("Truncated PNG chunk payload.");
4409
+ if ((crc32(bytes.subarray(at + 4, end - 4)) ^ 4294967295) >>> 0 !== view.getUint32(end - 4))
4410
+ invalid("PNG chunk checksum mismatch.");
4411
+ if (type === "acTL") unsupported("Animated PNG is not supported.");
4412
+ if (type === "IHDR" && at !== 8) invalid("PNG contains multiple image headers.");
4413
+ if (type === "IDAT" && length) data = true;
4414
+ if (type === "IEND") {
4415
+ if (length || end !== bytes.length || !data) invalid("PNG has an invalid image terminator.");
4416
+ return [width, height];
4417
+ }
4418
+ at = end;
4419
+ }
4420
+ return invalid("PNG has no image terminator.");
4421
+ }
4422
+ function gif(bytes, limits) {
4423
+ if (bytes.length < 13) return invalid("GIF is missing a complete screen descriptor.");
4424
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
4425
+ const width = view.getUint16(6, true), height = view.getUint16(8, true);
4426
+ dimensions(width, height, limits);
4427
+ let at = 13 + (bytes[10] & 128 ? 3 * 2 ** ((bytes[10] & 7) + 1) : 0);
4428
+ let frames = 0, pixels = 0;
4429
+ const blocks = () => {
4430
+ for (; ; ) {
4431
+ if (at >= bytes.length) invalid("GIF has truncated data blocks.");
4432
+ const size = bytes[at++];
4433
+ if (!size) return;
4434
+ at += size;
4435
+ if (at > bytes.length) invalid("GIF has a truncated data block.");
4436
+ }
4437
+ };
4438
+ while (at < bytes.length) {
4439
+ const marker = bytes[at++];
4440
+ if (marker === 59) {
4441
+ if (!frames || at !== bytes.length) invalid("GIF has an invalid image terminator.");
4442
+ return [width, height];
4443
+ }
4444
+ if (marker === 33) {
4445
+ if (at >= bytes.length) invalid("GIF has a truncated extension.");
4446
+ at++;
4447
+ blocks();
4448
+ continue;
4449
+ }
4450
+ if (marker !== 44 || at + 9 > bytes.length) invalid("GIF has an invalid image descriptor.");
4451
+ const left = view.getUint16(at, true), top = view.getUint16(at + 2, true);
4452
+ const frameWidth = view.getUint16(at + 4, true), frameHeight = view.getUint16(at + 6, true);
4453
+ dimensions(frameWidth, frameHeight, limits);
4454
+ if (left + frameWidth > width || top + frameHeight > height)
4455
+ invalid("GIF frame exceeds its screen.");
4456
+ pixels += width * height;
4457
+ if (pixels > limits.maxPixels)
4458
+ throw new RasterImageError("image-limit", "GIF animation exceeds the pixel limit.");
4459
+ const packed = bytes[at + 8];
4460
+ at += 9 + (packed & 128 ? 3 * 2 ** ((packed & 7) + 1) : 0);
4461
+ if (at >= bytes.length || bytes[at] < 2 || bytes[at] > 8)
4462
+ invalid("GIF has an invalid LZW header.");
4463
+ at++;
4464
+ blocks();
4465
+ frames++;
4466
+ }
4467
+ return invalid("GIF has no image terminator.");
4468
+ }
4469
+ function jpeg(bytes, limits) {
4470
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
4471
+ let at = 2, width = 0, height = 0, scan = false;
4472
+ while (at < bytes.length) {
4473
+ if (bytes[at++] !== 255) invalid("JPEG has an invalid segment marker.");
4474
+ while (bytes[at] === 255) at++;
4475
+ const marker = bytes[at++];
4476
+ if (marker === 217) {
4477
+ if (!width || !scan || at !== bytes.length) invalid("JPEG has an invalid image terminator.");
4478
+ return [width, height];
4479
+ }
4480
+ if (marker === void 0 || marker === 0 || marker === 216 || marker === 1 || marker >= 208 && marker <= 215)
4481
+ invalid("JPEG has an unexpected standalone marker.");
4482
+ if (at + 2 > bytes.length) invalid("JPEG has a truncated segment header.");
4483
+ const length = view.getUint16(at), end = at + length;
4484
+ if (length < 2 || end > bytes.length) invalid("JPEG has a truncated segment.");
4485
+ if (marker >= 192 && marker <= 207 && ![196, 200, 204].includes(marker)) {
4486
+ if (![192, 193, 194].includes(marker))
4487
+ unsupported("This JPEG frame coding is unsupported.");
4488
+ if (width || length < 11 || bytes[at + 2] !== 8 || length !== 8 + 3 * bytes[at + 7])
4489
+ invalid("JPEG has an invalid frame header.");
4490
+ height = view.getUint16(at + 3);
4491
+ width = view.getUint16(at + 5);
4492
+ dimensions(width, height, limits);
4493
+ }
4494
+ if (marker === 220) unsupported("JPEG deferred dimensions are unsupported.");
4495
+ at = end;
4496
+ if (marker === 218) {
4497
+ if (!width || length < 8 || length !== 6 + 2 * bytes[end - length + 2])
4498
+ invalid("JPEG has an invalid scan header.");
4499
+ scan = true;
4500
+ while (at < bytes.length) {
4501
+ if (bytes[at] !== 255) {
4502
+ at++;
4503
+ continue;
4504
+ }
4505
+ const next = bytes[at + 1];
4506
+ if (next === 0 || next !== void 0 && next >= 208 && next <= 215) {
4507
+ at += 2;
4508
+ continue;
4509
+ }
4510
+ break;
4511
+ }
4512
+ }
4513
+ }
4514
+ return invalid("JPEG has no image terminator.");
4515
+ }
4516
+ function inspectRasterImage(bytes, options = {}) {
4517
+ if (!options || typeof options !== "object" || Array.isArray(options))
4518
+ throw new RasterImageError("invalid-limit", "Image limits must be an options object.");
4519
+ const limits = { ...RASTER_IMAGE_LIMITS, ...options };
4520
+ for (const key of Object.keys(RASTER_IMAGE_LIMITS)) {
4521
+ const value = limits[key];
4522
+ if (!Number.isSafeInteger(value) || value <= 0 || value > RASTER_IMAGE_LIMITS[key])
4523
+ throw new RasterImageError("invalid-limit", `Invalid raster image limit: ${key}.`);
4524
+ }
4525
+ if (!(bytes instanceof Uint8Array)) invalid("Raster image bytes must be a Uint8Array.");
4526
+ if (bytes.byteLength > limits.maxImageBytes)
4527
+ throw new RasterImageError("image-limit", "Raster image bytes exceed the configured limit.");
4528
+ return inspectRasterImageStructure(bytes, limits);
4529
+ }
4530
+ function inspectRasterImageStructure(bytes, limits) {
4531
+ let mimeType, size;
4532
+ if ([137, 80, 78, 71, 13, 10, 26, 10].every((value, index) => bytes[index] === value)) {
4533
+ mimeType = "image/png";
4534
+ size = png(bytes, limits);
4535
+ } else if (["GIF87a", "GIF89a"].includes(ascii(bytes, 0, 6))) {
4536
+ mimeType = "image/gif";
4537
+ size = gif(bytes, limits);
4538
+ } else if (bytes[0] === 255 && bytes[1] === 216) {
4539
+ mimeType = "image/jpeg";
4540
+ size = jpeg(bytes, limits);
4541
+ } else return unsupported("Foreign data is not a supported PNG, JPEG, or GIF raster image.");
4542
+ return { mimeType, pixelWidth: size[0], pixelHeight: size[1] };
4543
+ }
4544
+
4545
+ // drawingml/picture-hsl-pixels.ts
4546
+ function applyPictureHslPixels(data, effect) {
4547
+ if (effect.name !== "hsl" && effect.name !== "tint") throw new Error("Not an HSL picture stage");
4548
+ const v = effect.values ?? {};
4549
+ for (let i = 0; i < data.length; i += 4) {
4550
+ const { h, s, l } = rgbToHsl(data[i], data[i + 1], data[i + 2]);
4551
+ let hue = h, saturation = s, lightness = l;
4552
+ if (effect.name === "hsl") {
4553
+ hue = h + (v.hue ?? 0);
4554
+ saturation = s * Math.max(0, v.luminance ?? 0);
4555
+ lightness = l * Math.max(0, v.saturation ?? 0);
4556
+ } else {
4557
+ const distance = ((v.hue ?? 0) - h + 540) % 360 - 180;
4558
+ hue = h + distance * (v.amount ?? 0);
4559
+ }
4560
+ const result = hslToRgb(hue, saturation, lightness);
4561
+ data[i] = result.r;
4562
+ data[i + 1] = result.g;
4563
+ data[i + 2] = result.b;
4564
+ }
4565
+ }
4566
+
4567
+ export { ARTISTIC_PRIMARY_ATTRIBUTE, BODY_PROPERTIES_ORDER, DEFAULT_THEME_COLOR_MAP, DOM_3D_READER, OFFICE_GRADIENT_PRESETS, PARAGRAPH_PROPERTIES_ORDER, RASTER_IMAGE_LIMITS, RECT_GRADIENT_DIRECTIONS, RUN_PROPERTIES_ORDER, RasterImageError, THEME_COLOR_SLOTS, applyPictureCrop, applyPictureEffects, applyPictureHslPixels, applyPictureLayout, applyStandardPictureEffect, attributeReader, booleanAttribute, buildImageBiLevelTable, buildImageLuminanceTransfer, buildRectPathGradientImage, buildRectPathGradientSvg, descendants, drawingColorBrightness, drawingColorCss, drawingColorXml, drawingDashLength, drawingEffectXml, drawingEffectsXml, drawingFillXml, drawingLineXml, drawingParagraphPropertiesXml, drawingParagraphText, drawingPathData, drawingRichTextBodyXml, drawingRunPropertiesXml, drawingThemeFormatSchemeXml, drawingThemeXml, fillElementOf, imageContentType, inspectRasterImage, integerAttribute, isThemeColorSlot, officeGradientPresetFill, officeGradientPresetId, orderedColorTransforms, parseArtisticPictureExtension, parseCustomGeometry, parseDrawingBodyProperties, parseDrawingColor, parseDrawingColorIn, parseDrawingColorList, parseDrawingEffect, parseDrawingEffects, parseDrawingFill, parseDrawingFlatText3D, parseDrawingFont, parseDrawingGeometry, parseDrawingHyperlink, parseDrawingLine, parseDrawingListStyle, parseDrawingParagraph, parseDrawingParagraphProperties, parseDrawingPictureFill, parseDrawingRichTextBody, parseDrawingRunProperties, parseDrawingTextBody, parseDrawingTextScene3D, parseDrawingTextShape3D, parseDrawingTextSpacing, parseFrame, parsePictureCrop, parsePictureEffects, parsePictureLayout, parseStandardPictureEffect, parseTheme, parseThemeColorMap, parseThemeColorScheme, parseThemeFontScheme, parseThemeFormatScheme, parseThemeXml, parseTransform, patchDrawingColorIn, patchDrawingEffects, patchDrawingLine, patchPictureEffects, pictureLuminanceTransfer, picturePercentage, readPictureEffect, rectGradientDirection, rectGradientFocus, resolveDrawingColor, resolveDrawingOuterShadow, resolveDrawingShadow, resolveDrawingShadowXml, resolveSchemeColor, resolveThemeEffectStyle, resolveThemeFillStyle, resolveThemeLineStyle, setDrawingFillXml, stringAttribute, substituteDrawingPlaceholder, svgDropShadowElement, themeColorSlotFor, themeDrawingColorTheme, themeSlotHex, withDrawingColorBrightness, withDrawingGradientGeometry, writeDrawingBodyProperties, writeDrawingFlatText3D, writeDrawingFont, writeDrawingListStyle, writeDrawingParagraph, writeDrawingParagraphProperties, writeDrawingRichTextBody, writeDrawingRunProperties, writeDrawingTextScene3D, writeDrawingTextShape3D, writeDrawingTextSpacing };