ooxml-core 0.2.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 (586) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +3 -0
  3. package/README.md +125 -0
  4. package/THIRD-PARTY-LICENSES +26 -0
  5. package/dist/collab/assets.d.ts +42 -0
  6. package/dist/collab/assets.d.ts.map +1 -0
  7. package/dist/collab/awareness.d.ts +65 -0
  8. package/dist/collab/awareness.d.ts.map +1 -0
  9. package/dist/collab/binding.d.ts +36 -0
  10. package/dist/collab/binding.d.ts.map +1 -0
  11. package/dist/collab/codec.d.ts +37 -0
  12. package/dist/collab/codec.d.ts.map +1 -0
  13. package/dist/collab/emitter.d.ts +11 -0
  14. package/dist/collab/emitter.d.ts.map +1 -0
  15. package/dist/collab/external-provider.d.ts +50 -0
  16. package/dist/collab/external-provider.d.ts.map +1 -0
  17. package/dist/collab/identity.d.ts +48 -0
  18. package/dist/collab/identity.d.ts.map +1 -0
  19. package/dist/collab/index.cjs +1328 -0
  20. package/dist/collab/index.d.ts +18 -0
  21. package/dist/collab/index.d.ts.map +1 -0
  22. package/dist/collab/index.mjs +1225 -0
  23. package/dist/collab/lifecycle.d.ts +62 -0
  24. package/dist/collab/lifecycle.d.ts.map +1 -0
  25. package/dist/collab/memory-transport.d.ts +19 -0
  26. package/dist/collab/memory-transport.d.ts.map +1 -0
  27. package/dist/collab/ordering.d.ts +53 -0
  28. package/dist/collab/ordering.d.ts.map +1 -0
  29. package/dist/collab/policy.d.ts +39 -0
  30. package/dist/collab/policy.d.ts.map +1 -0
  31. package/dist/collab/presence.d.ts +61 -0
  32. package/dist/collab/presence.d.ts.map +1 -0
  33. package/dist/collab/provider.d.ts +55 -0
  34. package/dist/collab/provider.d.ts.map +1 -0
  35. package/dist/collab/session.d.ts +70 -0
  36. package/dist/collab/session.d.ts.map +1 -0
  37. package/dist/collab/transport-provider.d.ts +13 -0
  38. package/dist/collab/transport-provider.d.ts.map +1 -0
  39. package/dist/collab/validation.d.ts +38 -0
  40. package/dist/collab/validation.d.ts.map +1 -0
  41. package/dist/collab/websocket-transport.d.ts +33 -0
  42. package/dist/collab/websocket-transport.d.ts.map +1 -0
  43. package/dist/color/color-linear.d.ts +5 -0
  44. package/dist/color/color-linear.d.ts.map +1 -0
  45. package/dist/color/color-primitives.d.ts +183 -0
  46. package/dist/color/color-primitives.d.ts.map +1 -0
  47. package/dist/color/index.cjs +177 -0
  48. package/dist/color/index.d.ts +3 -0
  49. package/dist/color/index.d.ts.map +1 -0
  50. package/dist/color/index.mjs +161 -0
  51. package/dist/diagram/attributes.d.ts +12 -0
  52. package/dist/diagram/attributes.d.ts.map +1 -0
  53. package/dist/diagram/data-model.d.ts +18 -0
  54. package/dist/diagram/data-model.d.ts.map +1 -0
  55. package/dist/diagram/definitions.d.ts +14 -0
  56. package/dist/diagram/definitions.d.ts.map +1 -0
  57. package/dist/diagram/dom.d.ts +15 -0
  58. package/dist/diagram/dom.d.ts.map +1 -0
  59. package/dist/diagram/drawing-color.d.ts +28 -0
  60. package/dist/diagram/drawing-color.d.ts.map +1 -0
  61. package/dist/diagram/drawing-fill.d.ts +9 -0
  62. package/dist/diagram/drawing-fill.d.ts.map +1 -0
  63. package/dist/diagram/drawing-geometry.d.ts +23 -0
  64. package/dist/diagram/drawing-geometry.d.ts.map +1 -0
  65. package/dist/diagram/drawing-text.d.ts +5 -0
  66. package/dist/diagram/drawing-text.d.ts.map +1 -0
  67. package/dist/diagram/drawing.d.ts +7 -0
  68. package/dist/diagram/drawing.d.ts.map +1 -0
  69. package/dist/diagram/index.cjs +1193 -0
  70. package/dist/diagram/index.d.ts +14 -0
  71. package/dist/diagram/index.d.ts.map +1 -0
  72. package/dist/diagram/index.mjs +1161 -0
  73. package/dist/diagram/layout-category.d.ts +8 -0
  74. package/dist/diagram/layout-category.d.ts.map +1 -0
  75. package/dist/diagram/load.d.ts +36 -0
  76. package/dist/diagram/load.d.ts.map +1 -0
  77. package/dist/diagram/relationships.d.ts +35 -0
  78. package/dist/diagram/relationships.d.ts.map +1 -0
  79. package/dist/diagram/types.d.ts +306 -0
  80. package/dist/diagram/types.d.ts.map +1 -0
  81. package/dist/docx/block-parser.d.ts +13 -0
  82. package/dist/docx/block-parser.d.ts.map +1 -0
  83. package/dist/docx/bookmarks.d.ts +18 -0
  84. package/dist/docx/bookmarks.d.ts.map +1 -0
  85. package/dist/docx/breaks.d.ts +11 -0
  86. package/dist/docx/breaks.d.ts.map +1 -0
  87. package/dist/docx/character-styles.d.ts +4 -0
  88. package/dist/docx/character-styles.d.ts.map +1 -0
  89. package/dist/docx/comment-spans.d.ts +19 -0
  90. package/dist/docx/comment-spans.d.ts.map +1 -0
  91. package/dist/docx/comments.d.ts +4 -0
  92. package/dist/docx/comments.d.ts.map +1 -0
  93. package/dist/docx/core-properties.d.ts +18 -0
  94. package/dist/docx/core-properties.d.ts.map +1 -0
  95. package/dist/docx/default-styles.d.ts +8 -0
  96. package/dist/docx/default-styles.d.ts.map +1 -0
  97. package/dist/docx/defined-props.d.ts +9 -0
  98. package/dist/docx/defined-props.d.ts.map +1 -0
  99. package/dist/docx/diagram-document.d.ts +9 -0
  100. package/dist/docx/diagram-document.d.ts.map +1 -0
  101. package/dist/docx/diagram-theme.d.ts +8 -0
  102. package/dist/docx/diagram-theme.d.ts.map +1 -0
  103. package/dist/docx/diagram.d.ts +89 -0
  104. package/dist/docx/diagram.d.ts.map +1 -0
  105. package/dist/docx/docpr-ids.d.ts +14 -0
  106. package/dist/docx/docpr-ids.d.ts.map +1 -0
  107. package/dist/docx/document-parts.d.ts +18 -0
  108. package/dist/docx/document-parts.d.ts.map +1 -0
  109. package/dist/docx/drawing.d.ts +13 -0
  110. package/dist/docx/drawing.d.ts.map +1 -0
  111. package/dist/docx/element-order.d.ts +13 -0
  112. package/dist/docx/element-order.d.ts.map +1 -0
  113. package/dist/docx/embedded.cjs +7646 -0
  114. package/dist/docx/embedded.d.ts +5 -0
  115. package/dist/docx/embedded.d.ts.map +1 -0
  116. package/dist/docx/embedded.mjs +7639 -0
  117. package/dist/docx/expect-defined.d.ts +3 -0
  118. package/dist/docx/expect-defined.d.ts.map +1 -0
  119. package/dist/docx/field-date.d.ts +10 -0
  120. package/dist/docx/field-date.d.ts.map +1 -0
  121. package/dist/docx/field-runs.d.ts +10 -0
  122. package/dist/docx/field-runs.d.ts.map +1 -0
  123. package/dist/docx/generated/wml-simple-types.d.ts +298 -0
  124. package/dist/docx/generated/wml-simple-types.d.ts.map +1 -0
  125. package/dist/docx/heading-list-kinds.d.ts +10 -0
  126. package/dist/docx/heading-list-kinds.d.ts.map +1 -0
  127. package/dist/docx/highlight.d.ts +5 -0
  128. package/dist/docx/highlight.d.ts.map +1 -0
  129. package/dist/docx/hyperlink.d.ts +8 -0
  130. package/dist/docx/hyperlink.d.ts.map +1 -0
  131. package/dist/docx/index.cjs +9784 -0
  132. package/dist/docx/index.d.ts +40 -0
  133. package/dist/docx/index.d.ts.map +1 -0
  134. package/dist/docx/index.mjs +9456 -0
  135. package/dist/docx/inline-model.d.ts +68 -0
  136. package/dist/docx/inline-model.d.ts.map +1 -0
  137. package/dist/docx/language.d.ts +3 -0
  138. package/dist/docx/language.d.ts.map +1 -0
  139. package/dist/docx/layout/adapt-drop-cap.d.ts +10 -0
  140. package/dist/docx/layout/adapt-drop-cap.d.ts.map +1 -0
  141. package/dist/docx/layout/adapt-floats.d.ts +8 -0
  142. package/dist/docx/layout/adapt-floats.d.ts.map +1 -0
  143. package/dist/docx/layout/adapt-notes.d.ts +13 -0
  144. package/dist/docx/layout/adapt-notes.d.ts.map +1 -0
  145. package/dist/docx/layout/adapt-paragraph-box.d.ts +12 -0
  146. package/dist/docx/layout/adapt-paragraph-box.d.ts.map +1 -0
  147. package/dist/docx/layout/adapt-table.d.ts +12 -0
  148. package/dist/docx/layout/adapt-table.d.ts.map +1 -0
  149. package/dist/docx/layout/adapter.d.ts +5 -0
  150. package/dist/docx/layout/adapter.d.ts.map +1 -0
  151. package/dist/docx/layout/floats.d.ts +20 -0
  152. package/dist/docx/layout/floats.d.ts.map +1 -0
  153. package/dist/docx/layout/flow-paragraph.d.ts +26 -0
  154. package/dist/docx/layout/flow-paragraph.d.ts.map +1 -0
  155. package/dist/docx/layout/flow-table.d.ts +12 -0
  156. package/dist/docx/layout/flow-table.d.ts.map +1 -0
  157. package/dist/docx/layout/fonts.d.ts +3 -0
  158. package/dist/docx/layout/fonts.d.ts.map +1 -0
  159. package/dist/docx/layout/index.cjs +2537 -0
  160. package/dist/docx/layout/index.d.ts +20 -0
  161. package/dist/docx/layout/index.d.ts.map +1 -0
  162. package/dist/docx/layout/index.mjs +2503 -0
  163. package/dist/docx/layout/input.d.ts +206 -0
  164. package/dist/docx/layout/input.d.ts.map +1 -0
  165. package/dist/docx/layout/keep-rules.d.ts +24 -0
  166. package/dist/docx/layout/keep-rules.d.ts.map +1 -0
  167. package/dist/docx/layout/layout.d.ts +9 -0
  168. package/dist/docx/layout/layout.d.ts.map +1 -0
  169. package/dist/docx/layout/ligatures.d.ts +4 -0
  170. package/dist/docx/layout/ligatures.d.ts.map +1 -0
  171. package/dist/docx/layout/line-metrics.d.ts +21 -0
  172. package/dist/docx/layout/line-metrics.d.ts.map +1 -0
  173. package/dist/docx/layout/measure.d.ts +34 -0
  174. package/dist/docx/layout/measure.d.ts.map +1 -0
  175. package/dist/docx/layout/page-cursor.d.ts +45 -0
  176. package/dist/docx/layout/page-cursor.d.ts.map +1 -0
  177. package/dist/docx/layout/page-flow.d.ts +7 -0
  178. package/dist/docx/layout/page-flow.d.ts.map +1 -0
  179. package/dist/docx/layout/paragraph-fragments.d.ts +6 -0
  180. package/dist/docx/layout/paragraph-fragments.d.ts.map +1 -0
  181. package/dist/docx/layout/paragraph-layout.d.ts +37 -0
  182. package/dist/docx/layout/paragraph-layout.d.ts.map +1 -0
  183. package/dist/docx/layout/paragraph-tokens.d.ts +27 -0
  184. package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -0
  185. package/dist/docx/layout/result.d.ts +139 -0
  186. package/dist/docx/layout/result.d.ts.map +1 -0
  187. package/dist/docx/layout/tab-stops.d.ts +14 -0
  188. package/dist/docx/layout/tab-stops.d.ts.map +1 -0
  189. package/dist/docx/layout/table-layout.d.ts +30 -0
  190. package/dist/docx/layout/table-layout.d.ts.map +1 -0
  191. package/dist/docx/layout/test-helpers.d.ts +3 -0
  192. package/dist/docx/layout/test-helpers.d.ts.map +1 -0
  193. package/dist/docx/layout/text-breaks.d.ts +56 -0
  194. package/dist/docx/layout/text-breaks.d.ts.map +1 -0
  195. package/dist/docx/layout/units.d.ts +17 -0
  196. package/dist/docx/layout/units.d.ts.map +1 -0
  197. package/dist/docx/layout/wrap.d.ts +22 -0
  198. package/dist/docx/layout/wrap.d.ts.map +1 -0
  199. package/dist/docx/ligatures.d.ts +9 -0
  200. package/dist/docx/ligatures.d.ts.map +1 -0
  201. package/dist/docx/load/detect.d.ts +6 -0
  202. package/dist/docx/load/detect.d.ts.map +1 -0
  203. package/dist/docx/load/index.cjs +8869 -0
  204. package/dist/docx/load/index.d.ts +3 -0
  205. package/dist/docx/load/index.d.ts.map +1 -0
  206. package/dist/docx/load/index.mjs +8860 -0
  207. package/dist/docx/load/legacy-doc.d.ts +7 -0
  208. package/dist/docx/load/legacy-doc.d.ts.map +1 -0
  209. package/dist/docx/model-paragraph.d.ts +100 -0
  210. package/dist/docx/model-paragraph.d.ts.map +1 -0
  211. package/dist/docx/model-run.d.ts +110 -0
  212. package/dist/docx/model-run.d.ts.map +1 -0
  213. package/dist/docx/model.d.ts +114 -0
  214. package/dist/docx/model.d.ts.map +1 -0
  215. package/dist/docx/notes.d.ts +9 -0
  216. package/dist/docx/notes.d.ts.map +1 -0
  217. package/dist/docx/numbering-editing.d.ts +30 -0
  218. package/dist/docx/numbering-editing.d.ts.map +1 -0
  219. package/dist/docx/numbering-format.d.ts +17 -0
  220. package/dist/docx/numbering-format.d.ts.map +1 -0
  221. package/dist/docx/numbering-model.d.ts +73 -0
  222. package/dist/docx/numbering-model.d.ts.map +1 -0
  223. package/dist/docx/numbering-package.d.ts +12 -0
  224. package/dist/docx/numbering-package.d.ts.map +1 -0
  225. package/dist/docx/numbering-parse.d.ts +8 -0
  226. package/dist/docx/numbering-parse.d.ts.map +1 -0
  227. package/dist/docx/numbering-parts.d.ts +4 -0
  228. package/dist/docx/numbering-parts.d.ts.map +1 -0
  229. package/dist/docx/numbering-text.d.ts +20 -0
  230. package/dist/docx/numbering-text.d.ts.map +1 -0
  231. package/dist/docx/numbering-write.d.ts +5 -0
  232. package/dist/docx/numbering-write.d.ts.map +1 -0
  233. package/dist/docx/package-parts.d.ts +4 -0
  234. package/dist/docx/package-parts.d.ts.map +1 -0
  235. package/dist/docx/page-background.d.ts +9 -0
  236. package/dist/docx/page-background.d.ts.map +1 -0
  237. package/dist/docx/page-borders.d.ts +9 -0
  238. package/dist/docx/page-borders.d.ts.map +1 -0
  239. package/dist/docx/paragraph-alignment.d.ts +21 -0
  240. package/dist/docx/paragraph-alignment.d.ts.map +1 -0
  241. package/dist/docx/paragraph-styles.d.ts +15 -0
  242. package/dist/docx/paragraph-styles.d.ts.map +1 -0
  243. package/dist/docx/parse-diagnostics.d.ts +10 -0
  244. package/dist/docx/parse-diagnostics.d.ts.map +1 -0
  245. package/dist/docx/parse-revisions.d.ts +36 -0
  246. package/dist/docx/parse-revisions.d.ts.map +1 -0
  247. package/dist/docx/parse-table.d.ts +5 -0
  248. package/dist/docx/parse-table.d.ts.map +1 -0
  249. package/dist/docx/parse-warnings.d.ts +9 -0
  250. package/dist/docx/parse-warnings.d.ts.map +1 -0
  251. package/dist/docx/parse.d.ts +13 -0
  252. package/dist/docx/parse.d.ts.map +1 -0
  253. package/dist/docx/part-relationships.d.ts +12 -0
  254. package/dist/docx/part-relationships.d.ts.map +1 -0
  255. package/dist/docx/relationship-allocator.d.ts +32 -0
  256. package/dist/docx/relationship-allocator.d.ts.map +1 -0
  257. package/dist/docx/relationships.d.ts +3 -0
  258. package/dist/docx/relationships.d.ts.map +1 -0
  259. package/dist/docx/resolve-table.d.ts +8 -0
  260. package/dist/docx/resolve-table.d.ts.map +1 -0
  261. package/dist/docx/revision-commands.d.ts +27 -0
  262. package/dist/docx/revision-commands.d.ts.map +1 -0
  263. package/dist/docx/revision-ids.d.ts +10 -0
  264. package/dist/docx/revision-ids.d.ts.map +1 -0
  265. package/dist/docx/run-formatting.d.ts +16 -0
  266. package/dist/docx/run-formatting.d.ts.map +1 -0
  267. package/dist/docx/run-properties.d.ts +5 -0
  268. package/dist/docx/run-properties.d.ts.map +1 -0
  269. package/dist/docx/run-style-model.d.ts +21 -0
  270. package/dist/docx/run-style-model.d.ts.map +1 -0
  271. package/dist/docx/save.d.ts +5 -0
  272. package/dist/docx/save.d.ts.map +1 -0
  273. package/dist/docx/section-model.d.ts +97 -0
  274. package/dist/docx/section-model.d.ts.map +1 -0
  275. package/dist/docx/sections.d.ts +18 -0
  276. package/dist/docx/sections.d.ts.map +1 -0
  277. package/dist/docx/settings.d.ts +11 -0
  278. package/dist/docx/settings.d.ts.map +1 -0
  279. package/dist/docx/simple-types.d.ts +37 -0
  280. package/dist/docx/simple-types.d.ts.map +1 -0
  281. package/dist/docx/style-numbering-package.d.ts +11 -0
  282. package/dist/docx/style-numbering-package.d.ts.map +1 -0
  283. package/dist/docx/tab-stops.d.ts +8 -0
  284. package/dist/docx/tab-stops.d.ts.map +1 -0
  285. package/dist/docx/table-borders.d.ts +15 -0
  286. package/dist/docx/table-borders.d.ts.map +1 -0
  287. package/dist/docx/table-cell-write.d.ts +12 -0
  288. package/dist/docx/table-cell-write.d.ts.map +1 -0
  289. package/dist/docx/table-defaults.d.ts +20 -0
  290. package/dist/docx/table-defaults.d.ts.map +1 -0
  291. package/dist/docx/table-model.d.ts +101 -0
  292. package/dist/docx/table-model.d.ts.map +1 -0
  293. package/dist/docx/table-of-contents.d.ts +67 -0
  294. package/dist/docx/table-of-contents.d.ts.map +1 -0
  295. package/dist/docx/table-of-figures.d.ts +10 -0
  296. package/dist/docx/table-of-figures.d.ts.map +1 -0
  297. package/dist/docx/table-styles.d.ts +4 -0
  298. package/dist/docx/table-styles.d.ts.map +1 -0
  299. package/dist/docx/table-visuals.d.ts +22 -0
  300. package/dist/docx/table-visuals.d.ts.map +1 -0
  301. package/dist/docx/test-support/access.d.ts +14 -0
  302. package/dist/docx/test-support/access.d.ts.map +1 -0
  303. package/dist/docx/test-support/heading-numbering-fixture.d.ts +5 -0
  304. package/dist/docx/test-support/heading-numbering-fixture.d.ts.map +1 -0
  305. package/dist/docx/test-support/restart-fixture.d.ts +17 -0
  306. package/dist/docx/test-support/restart-fixture.d.ts.map +1 -0
  307. package/dist/docx/test-support/schema-validation.d.ts +24 -0
  308. package/dist/docx/test-support/schema-validation.d.ts.map +1 -0
  309. package/dist/docx/theme-color.d.ts +16 -0
  310. package/dist/docx/theme-color.d.ts.map +1 -0
  311. package/dist/docx/theme-model.d.ts +31 -0
  312. package/dist/docx/theme-model.d.ts.map +1 -0
  313. package/dist/docx/theme.d.ts +6 -0
  314. package/dist/docx/theme.d.ts.map +1 -0
  315. package/dist/docx/underline.d.ts +5 -0
  316. package/dist/docx/underline.d.ts.map +1 -0
  317. package/dist/docx/units.d.ts +2 -0
  318. package/dist/docx/units.d.ts.map +1 -0
  319. package/dist/docx/validate-issues.d.ts +40 -0
  320. package/dist/docx/validate-issues.d.ts.map +1 -0
  321. package/dist/docx/validate-model.d.ts +8 -0
  322. package/dist/docx/validate-model.d.ts.map +1 -0
  323. package/dist/docx/validate-paragraph.d.ts +10 -0
  324. package/dist/docx/validate-paragraph.d.ts.map +1 -0
  325. package/dist/docx/validate-structure.d.ts +10 -0
  326. package/dist/docx/validate-structure.d.ts.map +1 -0
  327. package/dist/docx/watermark.d.ts +14 -0
  328. package/dist/docx/watermark.d.ts.map +1 -0
  329. package/dist/docx/write-comments.d.ts +12 -0
  330. package/dist/docx/write-comments.d.ts.map +1 -0
  331. package/dist/docx/write-drawing.d.ts +12 -0
  332. package/dist/docx/write-drawing.d.ts.map +1 -0
  333. package/dist/docx/write-header-footer.d.ts +21 -0
  334. package/dist/docx/write-header-footer.d.ts.map +1 -0
  335. package/dist/docx/write-inline.d.ts +23 -0
  336. package/dist/docx/write-inline.d.ts.map +1 -0
  337. package/dist/docx/write-notes.d.ts +5 -0
  338. package/dist/docx/write-notes.d.ts.map +1 -0
  339. package/dist/docx/write-paragraph-decoration.d.ts +5 -0
  340. package/dist/docx/write-paragraph-decoration.d.ts.map +1 -0
  341. package/dist/docx/write-paragraph-properties.d.ts +4 -0
  342. package/dist/docx/write-paragraph-properties.d.ts.map +1 -0
  343. package/dist/docx/write-paragraph.d.ts +8 -0
  344. package/dist/docx/write-paragraph.d.ts.map +1 -0
  345. package/dist/docx/write-ranges.d.ts +42 -0
  346. package/dist/docx/write-ranges.d.ts.map +1 -0
  347. package/dist/docx/write-revisions.d.ts +10 -0
  348. package/dist/docx/write-revisions.d.ts.map +1 -0
  349. package/dist/docx/write-run-extra.d.ts +5 -0
  350. package/dist/docx/write-run-extra.d.ts.map +1 -0
  351. package/dist/docx/write-run-validation.d.ts +4 -0
  352. package/dist/docx/write-run-validation.d.ts.map +1 -0
  353. package/dist/docx/write-run.d.ts +7 -0
  354. package/dist/docx/write-run.d.ts.map +1 -0
  355. package/dist/docx/write-sections.d.ts +10 -0
  356. package/dist/docx/write-sections.d.ts.map +1 -0
  357. package/dist/docx/write-table-properties.d.ts +13 -0
  358. package/dist/docx/write-table-properties.d.ts.map +1 -0
  359. package/dist/docx/write-table.d.ts +9 -0
  360. package/dist/docx/write-table.d.ts.map +1 -0
  361. package/dist/docx/write-text-box.d.ts +15 -0
  362. package/dist/docx/write-text-box.d.ts.map +1 -0
  363. package/dist/docx/write.d.ts +25 -0
  364. package/dist/docx/write.d.ts.map +1 -0
  365. package/dist/docx/xml.d.ts +14 -0
  366. package/dist/docx/xml.d.ts.map +1 -0
  367. package/dist/docx/zip-parts.d.ts +5 -0
  368. package/dist/docx/zip-parts.d.ts.map +1 -0
  369. package/dist/geometry/adjustment-aware-shapes.d.ts +63 -0
  370. package/dist/geometry/adjustment-aware-shapes.d.ts.map +1 -0
  371. package/dist/geometry/callout-geometry.d.ts +65 -0
  372. package/dist/geometry/callout-geometry.d.ts.map +1 -0
  373. package/dist/geometry/cloud-bezier-paths.d.ts +55 -0
  374. package/dist/geometry/cloud-bezier-paths.d.ts.map +1 -0
  375. package/dist/geometry/com-avlst-ground-truth.d.ts +48 -0
  376. package/dist/geometry/com-avlst-ground-truth.d.ts.map +1 -0
  377. package/dist/geometry/connector-elbow-geometry.d.ts +41 -0
  378. package/dist/geometry/connector-elbow-geometry.d.ts.map +1 -0
  379. package/dist/geometry/guide-formula-api.d.ts +55 -0
  380. package/dist/geometry/guide-formula-api.d.ts.map +1 -0
  381. package/dist/geometry/guide-formula-eval.d.ts +85 -0
  382. package/dist/geometry/guide-formula-eval.d.ts.map +1 -0
  383. package/dist/geometry/index.cjs +15031 -0
  384. package/dist/geometry/index.d.ts +80 -0
  385. package/dist/geometry/index.d.ts.map +1 -0
  386. package/dist/geometry/index.mjs +14897 -0
  387. package/dist/geometry/indexed.d.ts +6 -0
  388. package/dist/geometry/indexed.d.ts.map +1 -0
  389. package/dist/geometry/preset-clip-paths-core.d.ts +20 -0
  390. package/dist/geometry/preset-clip-paths-core.d.ts.map +1 -0
  391. package/dist/geometry/preset-clip-paths-extended.d.ts +19 -0
  392. package/dist/geometry/preset-clip-paths-extended.d.ts.map +1 -0
  393. package/dist/geometry/preset-connection-sites-action-buttons.d.ts +14 -0
  394. package/dist/geometry/preset-connection-sites-action-buttons.d.ts.map +1 -0
  395. package/dist/geometry/preset-connection-sites-arrows-curved.d.ts +12 -0
  396. package/dist/geometry/preset-connection-sites-arrows-curved.d.ts.map +1 -0
  397. package/dist/geometry/preset-connection-sites-arrows-misc.d.ts +13 -0
  398. package/dist/geometry/preset-connection-sites-arrows-misc.d.ts.map +1 -0
  399. package/dist/geometry/preset-connection-sites-arrows.d.ts +13 -0
  400. package/dist/geometry/preset-connection-sites-arrows.d.ts.map +1 -0
  401. package/dist/geometry/preset-connection-sites-basic-a.d.ts +12 -0
  402. package/dist/geometry/preset-connection-sites-basic-a.d.ts.map +1 -0
  403. package/dist/geometry/preset-connection-sites-basic-b.d.ts +12 -0
  404. package/dist/geometry/preset-connection-sites-basic-b.d.ts.map +1 -0
  405. package/dist/geometry/preset-connection-sites-braces.d.ts +12 -0
  406. package/dist/geometry/preset-connection-sites-braces.d.ts.map +1 -0
  407. package/dist/geometry/preset-connection-sites-callouts-arrow.d.ts +14 -0
  408. package/dist/geometry/preset-connection-sites-callouts-arrow.d.ts.map +1 -0
  409. package/dist/geometry/preset-connection-sites-callouts-basic.d.ts +12 -0
  410. package/dist/geometry/preset-connection-sites-callouts-basic.d.ts.map +1 -0
  411. package/dist/geometry/preset-connection-sites-circular-arrow.d.ts +14 -0
  412. package/dist/geometry/preset-connection-sites-circular-arrow.d.ts.map +1 -0
  413. package/dist/geometry/preset-connection-sites-flowchart.d.ts +19 -0
  414. package/dist/geometry/preset-connection-sites-flowchart.d.ts.map +1 -0
  415. package/dist/geometry/preset-connection-sites-gear9.d.ts +12 -0
  416. package/dist/geometry/preset-connection-sites-gear9.d.ts.map +1 -0
  417. package/dist/geometry/preset-connection-sites-left-circular-arrow.d.ts +12 -0
  418. package/dist/geometry/preset-connection-sites-left-circular-arrow.d.ts.map +1 -0
  419. package/dist/geometry/preset-connection-sites-left-right-circular-arrow.d.ts +13 -0
  420. package/dist/geometry/preset-connection-sites-left-right-circular-arrow.d.ts.map +1 -0
  421. package/dist/geometry/preset-connection-sites-math.d.ts +12 -0
  422. package/dist/geometry/preset-connection-sites-math.d.ts.map +1 -0
  423. package/dist/geometry/preset-connection-sites-misc.d.ts +14 -0
  424. package/dist/geometry/preset-connection-sites-misc.d.ts.map +1 -0
  425. package/dist/geometry/preset-connection-sites-polygons.d.ts +12 -0
  426. package/dist/geometry/preset-connection-sites-polygons.d.ts.map +1 -0
  427. package/dist/geometry/preset-connection-sites-quads.d.ts +14 -0
  428. package/dist/geometry/preset-connection-sites-quads.d.ts.map +1 -0
  429. package/dist/geometry/preset-connection-sites-rects.d.ts +14 -0
  430. package/dist/geometry/preset-connection-sites-rects.d.ts.map +1 -0
  431. package/dist/geometry/preset-connection-sites-ribbons.d.ts +12 -0
  432. package/dist/geometry/preset-connection-sites-ribbons.d.ts.map +1 -0
  433. package/dist/geometry/preset-connection-sites-stars.d.ts +13 -0
  434. package/dist/geometry/preset-connection-sites-stars.d.ts.map +1 -0
  435. package/dist/geometry/preset-connection-sites-table.d.ts +23 -0
  436. package/dist/geometry/preset-connection-sites-table.d.ts.map +1 -0
  437. package/dist/geometry/preset-connection-sites-tabs.d.ts +11 -0
  438. package/dist/geometry/preset-connection-sites-tabs.d.ts.map +1 -0
  439. package/dist/geometry/preset-connection-sites-types.d.ts +52 -0
  440. package/dist/geometry/preset-connection-sites-types.d.ts.map +1 -0
  441. package/dist/geometry/preset-geometry-names.d.ts +53 -0
  442. package/dist/geometry/preset-geometry-names.d.ts.map +1 -0
  443. package/dist/geometry/preset-shape-clip-paths.d.ts +13 -0
  444. package/dist/geometry/preset-shape-clip-paths.d.ts.map +1 -0
  445. package/dist/geometry/preset-shape-definitions-action-buttons.d.ts +45 -0
  446. package/dist/geometry/preset-shape-definitions-action-buttons.d.ts.map +1 -0
  447. package/dist/geometry/preset-shape-definitions-arrow-callouts.d.ts +55 -0
  448. package/dist/geometry/preset-shape-definitions-arrow-callouts.d.ts.map +1 -0
  449. package/dist/geometry/preset-shape-definitions-arrows-refined.d.ts +45 -0
  450. package/dist/geometry/preset-shape-definitions-arrows-refined.d.ts.map +1 -0
  451. package/dist/geometry/preset-shape-definitions-arrows.d.ts +52 -0
  452. package/dist/geometry/preset-shape-definitions-arrows.d.ts.map +1 -0
  453. package/dist/geometry/preset-shape-definitions-chart-marks.d.ts +23 -0
  454. package/dist/geometry/preset-shape-definitions-chart-marks.d.ts.map +1 -0
  455. package/dist/geometry/preset-shape-definitions-cloud-callout.d.ts +28 -0
  456. package/dist/geometry/preset-shape-definitions-cloud-callout.d.ts.map +1 -0
  457. package/dist/geometry/preset-shape-definitions-connectors-brackets.d.ts +37 -0
  458. package/dist/geometry/preset-shape-definitions-connectors-brackets.d.ts.map +1 -0
  459. package/dist/geometry/preset-shape-definitions-curved-arrows-connectors.d.ts +43 -0
  460. package/dist/geometry/preset-shape-definitions-curved-arrows-connectors.d.ts.map +1 -0
  461. package/dist/geometry/preset-shape-definitions-curved-arrows-exact.d.ts +30 -0
  462. package/dist/geometry/preset-shape-definitions-curved-arrows-exact.d.ts.map +1 -0
  463. package/dist/geometry/preset-shape-definitions-flowchart.d.ts +29 -0
  464. package/dist/geometry/preset-shape-definitions-flowchart.d.ts.map +1 -0
  465. package/dist/geometry/preset-shape-definitions-gear6.d.ts +38 -0
  466. package/dist/geometry/preset-shape-definitions-gear6.d.ts.map +1 -0
  467. package/dist/geometry/preset-shape-definitions-gear9.d.ts +24 -0
  468. package/dist/geometry/preset-shape-definitions-gear9.d.ts.map +1 -0
  469. package/dist/geometry/preset-shape-definitions-misc.d.ts +38 -0
  470. package/dist/geometry/preset-shape-definitions-misc.d.ts.map +1 -0
  471. package/dist/geometry/preset-shape-definitions-rects-snips.d.ts +28 -0
  472. package/dist/geometry/preset-shape-definitions-rects-snips.d.ts.map +1 -0
  473. package/dist/geometry/preset-shape-definitions-scrolls-accent-callouts.d.ts +45 -0
  474. package/dist/geometry/preset-shape-definitions-scrolls-accent-callouts.d.ts.map +1 -0
  475. package/dist/geometry/preset-shape-definitions-table.d.ts +121 -0
  476. package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -0
  477. package/dist/geometry/preset-shape-definitions-tabs-decorations.d.ts +48 -0
  478. package/dist/geometry/preset-shape-definitions-tabs-decorations.d.ts.map +1 -0
  479. package/dist/geometry/preset-shape-definitions.d.ts +28 -0
  480. package/dist/geometry/preset-shape-definitions.d.ts.map +1 -0
  481. package/dist/geometry/preset-shape-paths.d.ts +13 -0
  482. package/dist/geometry/preset-shape-paths.d.ts.map +1 -0
  483. package/dist/geometry/preset-shape-types.d.ts +33 -0
  484. package/dist/geometry/preset-shape-types.d.ts.map +1 -0
  485. package/dist/geometry/preset-text-rect-action-buttons.d.ts +13 -0
  486. package/dist/geometry/preset-text-rect-action-buttons.d.ts.map +1 -0
  487. package/dist/geometry/preset-text-rect-arrows.d.ts +3 -0
  488. package/dist/geometry/preset-text-rect-arrows.d.ts.map +1 -0
  489. package/dist/geometry/preset-text-rect-braces.d.ts +3 -0
  490. package/dist/geometry/preset-text-rect-braces.d.ts.map +1 -0
  491. package/dist/geometry/preset-text-rect-callouts.d.ts +3 -0
  492. package/dist/geometry/preset-text-rect-callouts.d.ts.map +1 -0
  493. package/dist/geometry/preset-text-rect-circular-arrows.d.ts +3 -0
  494. package/dist/geometry/preset-text-rect-circular-arrows.d.ts.map +1 -0
  495. package/dist/geometry/preset-text-rect-flowchart.d.ts +3 -0
  496. package/dist/geometry/preset-text-rect-flowchart.d.ts.map +1 -0
  497. package/dist/geometry/preset-text-rect-misc-a.d.ts +3 -0
  498. package/dist/geometry/preset-text-rect-misc-a.d.ts.map +1 -0
  499. package/dist/geometry/preset-text-rect-misc-b.d.ts +3 -0
  500. package/dist/geometry/preset-text-rect-misc-b.d.ts.map +1 -0
  501. package/dist/geometry/preset-text-rect-polygons.d.ts +3 -0
  502. package/dist/geometry/preset-text-rect-polygons.d.ts.map +1 -0
  503. package/dist/geometry/preset-text-rect-quads.d.ts +3 -0
  504. package/dist/geometry/preset-text-rect-quads.d.ts.map +1 -0
  505. package/dist/geometry/preset-text-rect-ribbons.d.ts +3 -0
  506. package/dist/geometry/preset-text-rect-ribbons.d.ts.map +1 -0
  507. package/dist/geometry/preset-text-rect-stars.d.ts +3 -0
  508. package/dist/geometry/preset-text-rect-stars.d.ts.map +1 -0
  509. package/dist/geometry/preset-text-rect-table.d.ts +20 -0
  510. package/dist/geometry/preset-text-rect-table.d.ts.map +1 -0
  511. package/dist/geometry/preset-text-rect-tabs.d.ts +3 -0
  512. package/dist/geometry/preset-text-rect-tabs.d.ts.map +1 -0
  513. package/dist/geometry/preset-text-rect-types.d.ts +46 -0
  514. package/dist/geometry/preset-text-rect-types.d.ts.map +1 -0
  515. package/dist/geometry/shape-boolean-clipping.d.ts +70 -0
  516. package/dist/geometry/shape-boolean-clipping.d.ts.map +1 -0
  517. package/dist/geometry/shape-boolean-ops.d.ts +142 -0
  518. package/dist/geometry/shape-boolean-ops.d.ts.map +1 -0
  519. package/dist/geometry/shape-boolean-svg.d.ts +31 -0
  520. package/dist/geometry/shape-boolean-svg.d.ts.map +1 -0
  521. package/dist/geometry/shape-boolean-types.d.ts +91 -0
  522. package/dist/geometry/shape-boolean-types.d.ts.map +1 -0
  523. package/dist/geometry/shape-boolean-union.d.ts +79 -0
  524. package/dist/geometry/shape-boolean-union.d.ts.map +1 -0
  525. package/dist/geometry/shape-boolean.d.ts +22 -0
  526. package/dist/geometry/shape-boolean.d.ts.map +1 -0
  527. package/dist/geometry/shape-definitions-extended.d.ts +18 -0
  528. package/dist/geometry/shape-definitions-extended.d.ts.map +1 -0
  529. package/dist/geometry/shape-definitions-primary.d.ts +19 -0
  530. package/dist/geometry/shape-definitions-primary.d.ts.map +1 -0
  531. package/dist/index.cjs +16618 -0
  532. package/dist/index.d.ts +7 -0
  533. package/dist/index.d.ts.map +1 -0
  534. package/dist/index.mjs +16611 -0
  535. package/dist/opc/content-types.d.ts +14 -0
  536. package/dist/opc/content-types.d.ts.map +1 -0
  537. package/dist/opc/index.cjs +228 -0
  538. package/dist/opc/index.d.ts +6 -0
  539. package/dist/opc/index.d.ts.map +1 -0
  540. package/dist/opc/index.mjs +212 -0
  541. package/dist/opc/package.d.ts +14 -0
  542. package/dist/opc/package.d.ts.map +1 -0
  543. package/dist/opc/relationship-types.d.ts +34 -0
  544. package/dist/opc/relationship-types.d.ts.map +1 -0
  545. package/dist/opc/relationships.d.ts +29 -0
  546. package/dist/opc/relationships.d.ts.map +1 -0
  547. package/dist/opc/safe-href.d.ts +3 -0
  548. package/dist/opc/safe-href.d.ts.map +1 -0
  549. package/dist/pptx/chunks/index-CojJtI77.d.ts +9627 -0
  550. package/dist/pptx/chunks/index-CojJtI77.d.ts.map +1 -0
  551. package/dist/pptx/chunks/signature-inspection-status-Bh2oap7B.d.ts +220 -0
  552. package/dist/pptx/chunks/signature-inspection-status-Bh2oap7B.d.ts.map +1 -0
  553. package/dist/pptx/chunks/text-operations-IlJiffp7.d.ts +11122 -0
  554. package/dist/pptx/chunks/text-operations-IlJiffp7.d.ts.map +1 -0
  555. package/dist/pptx/cli/index.cjs +138457 -0
  556. package/dist/pptx/cli/index.d.ts +139 -0
  557. package/dist/pptx/cli/index.d.ts.map +1 -0
  558. package/dist/pptx/cli/index.mjs +138424 -0
  559. package/dist/pptx/converter/index.cjs +32084 -0
  560. package/dist/pptx/converter/index.d.ts +2 -0
  561. package/dist/pptx/converter/index.mjs +32060 -0
  562. package/dist/pptx/index.cjs +172307 -0
  563. package/dist/pptx/index.d.ts +9692 -0
  564. package/dist/pptx/index.d.ts.map +1 -0
  565. package/dist/pptx/index.mjs +171623 -0
  566. package/dist/pptx/signature-node/index.cjs +1299 -0
  567. package/dist/pptx/signature-node/index.d.ts +172 -0
  568. package/dist/pptx/signature-node/index.d.ts.map +1 -0
  569. package/dist/pptx/signature-node/index.mjs +1236 -0
  570. package/dist/units/constants.d.ts +13 -0
  571. package/dist/units/constants.d.ts.map +1 -0
  572. package/dist/units/index.cjs +76 -0
  573. package/dist/units/index.d.ts +3 -0
  574. package/dist/units/index.d.ts.map +1 -0
  575. package/dist/units/index.mjs +45 -0
  576. package/dist/units/units.d.ts +52 -0
  577. package/dist/units/units.d.ts.map +1 -0
  578. package/dist/xml/index.cjs +98 -0
  579. package/dist/xml/index.d.ts +3 -0
  580. package/dist/xml/index.d.ts.map +1 -0
  581. package/dist/xml/index.mjs +85 -0
  582. package/dist/xml/namespaces.d.ts +47 -0
  583. package/dist/xml/namespaces.d.ts.map +1 -0
  584. package/dist/xml/xml.d.ts +31 -0
  585. package/dist/xml/xml.d.ts.map +1 -0
  586. package/package.json +192 -0
@@ -0,0 +1,45 @@
1
+ /**
2
+ * ECMA-376 ST_ShapeType preset geometry definitions — scrolls / waves and the
3
+ * accent + accent-border callout family.
4
+ *
5
+ * Shapes covered:
6
+ * - **Scrolls** (`verticalScroll`, `horizontalScroll`) — rectangle-bodied
7
+ * shapes with rolled paper corners on opposite ends. `adj` (default 12500
8
+ * in 1/100000 units) controls the roll diameter.
9
+ * - **Waves** (`wave`, `doubleWave`) — rectangles whose top (and, for
10
+ * `doubleWave`, bottom) edge is a sine wave traced by two cubic Bezier
11
+ * humps. `adj1` is the wave amplitude (% of `h`), `adj2` is the horizontal
12
+ * phase offset (% of `w`).
13
+ * - **Accent callouts** (`accentCallout1` / `accentCallout2` /
14
+ * `accentCallout3`) — same rectangular body and N-segment leader as their
15
+ * plain-`callout*` siblings, plus an extra vertical accent bar drawn at the
16
+ * leader-line root (a stroked `moveTo`/`lnTo` pair flush with the body
17
+ * edge).
18
+ * - **Accent border callouts** (`accentBorderCallout1` / `…2` / `…3`) — same
19
+ * as the accent callouts but the body rectangle is itself stroked,
20
+ * matching the `borderCallout*` family from the misc batch.
21
+ *
22
+ * Geometry simplifications worth flagging:
23
+ * - The scroll roll is approximated as a quarter-arc + line + quarter-arc
24
+ * rather than the spec's full `arcTo`/`cubicBezTo` construction. The visual
25
+ * silhouette is identical at default `adj`; the simplification trades a
26
+ * handful of bezier control points for legibility.
27
+ * - The accent bar on `accentCallout*` is a stroke-only sub-path identical to
28
+ * the body's left edge offset by a small inset (`x1` from the leader
29
+ * formulas). Per ECMA-376 the accent bar attaches at the rectangle edge
30
+ * nearest the pointer; we standardise on the left edge because every
31
+ * canonical default places `adj2` (= leader-tip x position) negative — i.e.
32
+ * the pointer is to the left of the body. Callers that override `adj2` to
33
+ * a positive value still get a visually plausible (left-edge) accent bar.
34
+ *
35
+ * Aggregated into `PRESET_SHAPE_GEOMETRY_TABLE` by
36
+ * `preset-shape-definitions-table.ts` (manual spread).
37
+ */
38
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
39
+ /**
40
+ * Scrolls / waves + accent callout preset definitions, exported for manual
41
+ * aggregation into `PRESET_SHAPE_GEOMETRY_TABLE`. Keys are ECMA-376
42
+ * ST_ShapeType names.
43
+ */
44
+ export declare const SCROLLS_ACCENT_CALLOUTS_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
45
+ //# sourceMappingURL=preset-shape-definitions-scrolls-accent-callouts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-scrolls-accent-callouts.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-shape-definitions-scrolls-accent-callouts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,KAAK,EAEX,6BAA6B,EAC7B,MAAM,qCAAqC,CAAC;AA+gB7C;;;;GAIG;AACH,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAC9D,MAAM,EACN,6BAA6B,CAY7B,CAAC"}
@@ -0,0 +1,121 @@
1
+ /**
2
+ * ECMA-376 ST_ShapeType preset geometry definitions table.
3
+ *
4
+ * Each entry encodes the canonical `presetShapeDefinitions.xml` data shipped by
5
+ * Microsoft as part of the DrawingML reference implementation
6
+ * (ISO/IEC 29500-1 §20.1.10.55 / §20.1.9 series): the default adjustment list
7
+ * (`avLst`), the ordered guide list (`gdLst`), the text rectangle (`rect`), and
8
+ * the path commands (`pathLst`) — all expressed using OOXML guide-formula
9
+ * tokens, ready to be evaluated by `guide-formula-eval`.
10
+ *
11
+ * Naming note: the existing barrel already exports a `PresetShapeDefinition`
12
+ * type (shape-picker metadata) and a `PRESET_SHAPE_DEFINITIONS` constant. To
13
+ * avoid colliding with those public symbols, this module exports its analogues
14
+ * as `PresetShapeGeometryDefinition` / `PRESET_SHAPE_GEOMETRY_TABLE`.
15
+ *
16
+ * # Adding a new preset
17
+ *
18
+ * 1. Open `presetShapeDefinitions.xml` (Microsoft Open Specifications) and
19
+ * locate the `<presetShapeDefinition name="..." />` block.
20
+ * 2. Copy the `avLst` defaults into `avLst` here (each `a:gd` `name`/`val`).
21
+ * 3. Copy each `a:gd` from `gdLst` into the `gdLst` array verbatim — the
22
+ * `formula` field is the entire `@_fmla` string (operator first, operands
23
+ * after) and `args` is the formula split by whitespace minus the operator.
24
+ * Both are stored to keep the data introspectable; the evaluator uses the
25
+ * `formula` string directly via `parseFormula`.
26
+ * 4. Copy `<rect>` attributes into the `rect` field as raw token strings
27
+ * (e.g. `'l'`, `'t'`, `'r'`, `'b'`).
28
+ * 5. Copy each `a:path` into a `pathLst` entry, translating its child commands
29
+ * into the `commands` discriminated union. All coordinate / radius / angle
30
+ * arguments are raw token strings — they will be resolved against the guide
31
+ * context by the evaluator.
32
+ *
33
+ * Only 30 high-impact presets are populated for the first cut. Additional
34
+ * presets are tracked as future work; until they ship, the legacy
35
+ * polygon-based clip-path table in `preset-shape-paths.ts` remains the
36
+ * fallback for unknown names.
37
+ */
38
+ /**
39
+ * A single command inside a preset path. Coordinates / radii / angles are
40
+ * stored as raw OOXML guide tokens (numeric literal strings or guide names)
41
+ * and resolved at evaluation time.
42
+ */
43
+ export type PresetPathCommand = {
44
+ kind: 'moveTo';
45
+ x: string;
46
+ y: string;
47
+ } | {
48
+ kind: 'lnTo';
49
+ x: string;
50
+ y: string;
51
+ } | {
52
+ kind: 'arcTo';
53
+ wR: string;
54
+ hR: string;
55
+ stAng: string;
56
+ swAng: string;
57
+ } | {
58
+ kind: 'quadBezTo';
59
+ x1: string;
60
+ y1: string;
61
+ x2: string;
62
+ y2: string;
63
+ } | {
64
+ kind: 'cubicBezTo';
65
+ x1: string;
66
+ y1: string;
67
+ x2: string;
68
+ y2: string;
69
+ x3: string;
70
+ y3: string;
71
+ } | {
72
+ kind: 'close';
73
+ };
74
+ /** A single sub-path, mirroring `<a:path>` in OOXML. */
75
+ export interface PresetPath {
76
+ /** Coordinate-space width (`@_w`); defaults to the shape width if absent. */
77
+ w?: number;
78
+ /** Coordinate-space height (`@_h`); defaults to the shape height if absent. */
79
+ h?: number;
80
+ /** `@_fill` attribute (`'none' | 'norm' | 'lighten' | ...`). */
81
+ fill?: string;
82
+ /** `@_stroke` attribute. */
83
+ stroke?: boolean;
84
+ /** `@_extrusionOk` attribute. */
85
+ extrusionOk?: boolean;
86
+ /** Ordered command list. */
87
+ commands: PresetPathCommand[];
88
+ }
89
+ /** A complete preset geometry (`<presetShapeDefinition>` payload). */
90
+ export interface PresetShapeGeometryDefinition {
91
+ /** ECMA-376 ST_ShapeType name, e.g. `"roundRect"`, `"blockArc"`. */
92
+ name: string;
93
+ /** `avLst` defaults, e.g. `{ adj1: 16667 }`. */
94
+ avLst?: Record<string, number>;
95
+ /** `gdLst` formula list (ordered). */
96
+ gdLst?: Array<{
97
+ name: string;
98
+ formula: string;
99
+ args: string[];
100
+ }>;
101
+ /** Text-bounds rectangle expressed as guide-formula tokens. */
102
+ rect?: {
103
+ l: string;
104
+ t: string;
105
+ r: string;
106
+ b: string;
107
+ };
108
+ /** `pathLst` — at least one path. */
109
+ pathLst: PresetPath[];
110
+ }
111
+ /**
112
+ * Master table of populated preset geometries. Keyed by ECMA-376 ST_ShapeType
113
+ * name (camelCase). Lookups are case-sensitive; callers should normalise
114
+ * unknown casings (e.g. `'roundrect'` → `'roundRect'`) before consulting it.
115
+ *
116
+ * Inline definitions for ~30 shapes live above. Additional batches authored
117
+ * by parallel agents are imported from sibling files and spread last so they
118
+ * cannot accidentally shadow the inline canonical shapes.
119
+ */
120
+ export declare const PRESET_SHAPE_GEOMETRY_TABLE: Record<string, PresetShapeGeometryDefinition>;
121
+ //# sourceMappingURL=preset-shape-definitions-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-table.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-shape-definitions-table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAwBH;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAC1B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GACrE;IACA,IAAI,EAAE,YAAY,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACV,GACD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAErB,wDAAwD;AACxD,MAAM,WAAW,UAAU;IAC1B,6EAA6E;IAC7E,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,+EAA+E;IAC/E,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iCAAiC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4BAA4B;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,sEAAsE;AACtE,MAAM,WAAW,6BAA6B;IAC7C,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,sCAAsC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IACjE,+DAA+D;IAC/D,IAAI,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,qCAAqC;IACrC,OAAO,EAAE,UAAU,EAAE,CAAC;CACtB;AAyiCD;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAqDrF,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * ECMA-376 ST_ShapeType preset geometry definitions — tabs, gears, and
3
+ * miscellaneous decoration shapes.
4
+ *
5
+ * This batch authors 10 additional shapes whose geometry is defined in
6
+ * Microsoft's `presetShapeDefinitions.xml` (ISO/IEC 29500-1 §20.1.10.55):
7
+ *
8
+ * Tabs (no `avLst`)
9
+ * • `cornerTabs` – rectangle with four small inset rectangular tabs at the
10
+ * corners (used as a decorative frame).
11
+ * • `squareTabs` – rectangle with four small inset rectangular tabs centred
12
+ * on each side.
13
+ * • `diamondTabs` – diamond with small rectangular tabs at each of its four
14
+ * points.
15
+ *
16
+ * Decorations / functions
17
+ * • `diagStripe` – rectangle with a diagonal stripe; `adj1` controls the
18
+ * stripe position along the anti-diagonal (default 50000 = stripe runs
19
+ * from corner to corner).
20
+ * • `plus` – plus sign (cross). `adj1` is the stroke thickness as a
21
+ * fraction of `ss` / 2 (default 25000).
22
+ * • `gear6` – six-toothed gear; `adj1` is the tooth depth as a
23
+ * fraction of `ss / 2` (default 15000), `adj2` (default 3526) is the
24
+ * tooth-root fillet: a larger `adj2` widens the flat root land and
25
+ * narrows the `arcTo` fillet PowerPoint renders between adjacent teeth.
26
+ * Spec-exact geometry lives in `preset-shape-definitions-gear6.ts`.
27
+ * • `gear9` – nine-toothed gear; same adjust semantics as `gear6`
28
+ * (`adj1` default 10000; teeth are smaller because there are more of
29
+ * them; `adj2` default 1763). Spec-exact geometry lives in
30
+ * `preset-shape-definitions-gear9.ts`.
31
+ * • `funnel` – V-shape narrowing downward; no `avLst`.
32
+ * • `mathFunction` – math function notation glyph. The ECMA reference does
33
+ * not enumerate this preset; we emit a stylised cursive-`f` silhouette as
34
+ * a SIMPLIFIED default-only polygon (see in-source comment).
35
+ * • `nonIsoscelesTrapezoid` – trapezoid whose top edge is offset; `adj1`
36
+ * controls the skew of the top edge (default 50000 → isosceles).
37
+ *
38
+ * The `gd` helper, FULL_RECT constant, and overall structure mirror
39
+ * `preset-shape-definitions-table.ts`. Tokens inside guide formulas and path
40
+ * commands are raw OOXML strings — the `preset-shape-evaluator` pipes them
41
+ * through `guide-formula-eval`.
42
+ *
43
+ * Aggregation into `PRESET_SHAPE_GEOMETRY_TABLE` is performed in
44
+ * `preset-shape-definitions-table.ts`.
45
+ */
46
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
47
+ export declare const TABS_DECORATIONS_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
48
+ //# sourceMappingURL=preset-shape-definitions-tabs-decorations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-tabs-decorations.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-shape-definitions-tabs-decorations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAIH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AA0ZzF,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAW7F,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Categorised shape definitions for the UI shape picker.
3
+ *
4
+ * This barrel module merges the primary and extended definition arrays
5
+ * into a single `PRESET_SHAPE_DEFINITIONS` list and provides the
6
+ * human-readable `PRESET_SHAPE_CATEGORY_LABELS` mapping.
7
+ *
8
+ * The definitions are split across two files for maintainability:
9
+ * - **shape-definitions-primary** — Basic shapes, rectangles, stars, math, and other
10
+ * - **shape-definitions-extended** — Arrows, callouts, flowchart, and action buttons
11
+ */
12
+ import type { PresetShapeCategory, PresetShapeDefinition } from './preset-shape-types.js';
13
+ export { PRIMARY_SHAPE_DEFINITIONS } from './shape-definitions-primary.js';
14
+ export { EXTENDED_SHAPE_DEFINITIONS } from './shape-definitions-extended.js';
15
+ /**
16
+ * Complete list of all preset shape definitions, combining primary and extended sets.
17
+ *
18
+ * This merged array contains every shape available in the shape picker UI,
19
+ * ordered by category (basic, rectangles, stars, math, other, arrows,
20
+ * callouts, flowchart, action buttons).
21
+ */
22
+ export declare const PRESET_SHAPE_DEFINITIONS: PresetShapeDefinition[];
23
+ /**
24
+ * Human-readable labels for each shape category, used as section headers
25
+ * in the shape picker UI.
26
+ */
27
+ export declare const PRESET_SHAPE_CATEGORY_LABELS: Record<PresetShapeCategory, string>;
28
+ //# sourceMappingURL=preset-shape-definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-shape-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAI1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,qBAAqB,EAG3D,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAU5E,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Comprehensive OOXML preset geometry -- CSS clip-path mapping.
3
+ *
4
+ * This barrel module re-exports all types, clip-path lookups, and shape
5
+ * definitions from their dedicated sub-modules, providing a single
6
+ * import point for consumers that need preset shape data.
7
+ *
8
+ * @module preset-shape-paths
9
+ */
10
+ export { type PresetShapeDefinition, type PresetShapeCategory } from './preset-shape-types.js';
11
+ export { PRESET_SHAPE_CLIP_PATHS, getPresetShapeClipPath } from './preset-shape-clip-paths.js';
12
+ export { PRESET_SHAPE_DEFINITIONS, PRESET_SHAPE_CATEGORY_LABELS, } from './preset-shape-definitions.js';
13
+ //# sourceMappingURL=preset-shape-paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-paths.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-shape-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,EACN,wBAAwB,EACxB,4BAA4B,GAC5B,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Types for preset shape definitions used in the shape picker UI.
3
+ *
4
+ * These types describe the metadata for each OOXML preset geometry,
5
+ * including its canonical name, display label, optional CSS clip-path,
6
+ * and the category used to organize shapes in the picker UI.
7
+ */
8
+ /**
9
+ * Describes a single OOXML preset geometry shape for the shape picker.
10
+ *
11
+ * Each definition maps a canonical OOXML name to a human-readable label
12
+ * and a category. An optional `clipPath` provides a CSS `clip-path` value
13
+ * for simple rendering without full SVG path calculation.
14
+ */
15
+ export interface PresetShapeDefinition {
16
+ /** Canonical OOXML preset geometry name (e.g. `"rect"`, `"roundRect"`, `"star5"`). */
17
+ name: string;
18
+ /** Human-readable label shown in the shape picker UI (e.g. `"Rounded Rectangle"`). */
19
+ label: string;
20
+ /** CSS `clip-path` value for quick rendering, or `undefined` when full SVG rendering is required. */
21
+ clipPath?: string;
22
+ /** Category grouping for the shape picker UI. */
23
+ category: PresetShapeCategory;
24
+ }
25
+ /**
26
+ * Shape categories for organizing preset shapes in the picker UI.
27
+ *
28
+ * Maps to the groupings displayed in the shape selection panel:
29
+ * basic shapes, rectangle variants, arrows, stars/banners, callouts,
30
+ * flowchart symbols, math operators, action buttons, and other.
31
+ */
32
+ export type PresetShapeCategory = 'basic' | 'rectangles' | 'arrows' | 'stars' | 'callouts' | 'flowchart' | 'math' | 'action' | 'other';
33
+ //# sourceMappingURL=preset-shape-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-types.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-shape-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACrC,sFAAsF;IACtF,IAAI,EAAE,MAAM,CAAC;IACb,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAC;IACd,qGAAqG;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,QAAQ,EAAE,mBAAmB,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAC5B,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,UAAU,GACV,WAAW,GACX,MAAM,GACN,QAAQ,GACR,OAAO,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Text-inset rects for the `actionButton*` family (all 12 share the identical plain-rectangle `rect`).
3
+ *
4
+ * Transcribed verbatim from ECMA-376's `presetShapeDefinitions.xml` `<rect>`
5
+ * element (the same source, same method as `preset-connection-sites-*.ts`).
6
+ * See `preset-text-rect-types.ts` for why this is a separate override table
7
+ * rather than an edit to `preset-shape-definitions-*.ts`.
8
+ *
9
+ * @module render/preset-text-rect-action-buttons
10
+ */
11
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
12
+ export declare const ACTION_BUTTON_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
13
+ //# sourceMappingURL=preset-text-rect-action-buttons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-action-buttons.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-action-buttons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAgD7E,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const ARROW_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-arrows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-arrows.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-arrows.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CA2FrE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const BRACE_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-braces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-braces.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-braces.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CA6FrE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const CALLOUT_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-callouts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-callouts.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-callouts.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CA2GvE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const CIRCULAR_ARROW_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-circular-arrows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-circular-arrows.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-circular-arrows.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CA+D9E,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const FLOWCHART_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-flowchart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-flowchart.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-flowchart.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAkGzE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const MISC_TEXT_RECTS_A: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-misc-a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-misc-a.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-misc-a.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAmOtE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const MISC_TEXT_RECTS_B: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-misc-b.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-misc-b.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-misc-b.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CA4ItE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const POLYGON_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-polygons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-polygons.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-polygons.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAwCvE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const QUAD_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-quads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-quads.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-quads.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAiEpE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const RIBBON_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-ribbons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-ribbons.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-ribbons.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CA0GtE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const STAR_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-stars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-stars.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-stars.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAwKpE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ /**
3
+ * Look up a preset's text-rect override, exact name first, then normalised
4
+ * (`oval` -> `ellipse`, a deck's own casing) - mirrors
5
+ * `lookupPresetConnectionSites`'s own fallback order for the same reason.
6
+ */
7
+ export declare function lookupPresetTextRectOverride(name: string): PresetTextRectDefinition | undefined;
8
+ /**
9
+ * Evaluate `prst`'s ECMA-376 `<a:rect>` override at the given box size and
10
+ * adjustment values. Returns `undefined` when `prst` has no override here, so
11
+ * the caller falls back to `PresetShapeGeometryDefinition.rect` exactly as
12
+ * before.
13
+ */
14
+ export declare function getPresetTextRect(prst: string, width: number, height: number, adjustments?: Record<string, number>): {
15
+ l: number;
16
+ t: number;
17
+ r: number;
18
+ b: number;
19
+ } | undefined;
20
+ //# sourceMappingURL=preset-text-rect-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-table.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-table.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AA6B5E;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAU/F;AAQD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CA8B5D"}
@@ -0,0 +1,3 @@
1
+ import type { PresetTextRectDefinition } from './preset-text-rect-types.js';
2
+ export declare const TAB_TEXT_RECTS: Record<string, PresetTextRectDefinition>;
3
+ //# sourceMappingURL=preset-text-rect-tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-tabs.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-tabs.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAgDnE,CAAC"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Shared vocabulary for the preset text-rect override tables
3
+ * (`preset-text-rect-*.ts`).
4
+ *
5
+ * `PresetShapeGeometryDefinition.rect` (`preset-shape-definitions-*.ts`) is the
6
+ * ORIGINAL per-preset `a:rect` transcription, and most of it predates any COM
7
+ * verification (see gap G1: 117/194 were found wrong, some catastrophically).
8
+ * `packages/shared/src/render/text-body-rect.ts`'s `VERIFIED_TEXT_RECT_PRESETS`
9
+ * allowlist now gates rendering to the entries a COM measurement pass has
10
+ * actually confirmed (181 as of wave 2, i.e. every ECMA-transcribed preset in
11
+ * this table except `sun`, which keeps its own considered-but-unverified
12
+ * rect); everything else still falls back to the full bounding box there
13
+ * rather than trust an unverified formula.
14
+ *
15
+ * This module is the other half of closing that gap for the presets ECMA-376
16
+ * itself gives an unambiguous `<rect>` for (verbatim `l`/`t`/`r`/`b` formulas,
17
+ * not re-derived): `getPresetTextRect` (`preset-text-rect-table.ts`) is
18
+ * consulted by `preset-shape-evaluator.ts` ahead of the original
19
+ * `PresetShapeGeometryDefinition.rect`, so `evaluatePresetShape(...).textRect`
20
+ * reflects the corrected value immediately. The shared allowlist is a
21
+ * SEPARATE, deliberately conservative gate (COM-verified only) that a
22
+ * different owner extends per preset; this table's evidence is the ECMA spec
23
+ * text itself, not a COM measurement, which is why it lands as an
24
+ * independent, additive override rather than editing that allowlist.
25
+ *
26
+ * @module render/preset-text-rect-types
27
+ */
28
+ /** One preset's `avLst`/`gdLst`/`rect` slice, transcribed only as far as
29
+ * evaluating its `<a:rect>` formula requires. */
30
+ export interface PresetTextRectDefinition {
31
+ /** `avLst` defaults (`adj`, `adj1`, ...), overridable at call time. */
32
+ avLst?: Record<string, number>;
33
+ /** `gdLst` guides the `rect` formula references, in order. */
34
+ gdLst?: Array<{
35
+ name: string;
36
+ formula: string;
37
+ }>;
38
+ /** The preset's `<a:rect l="..." t="..." r="..." b="..."/>`, verbatim. */
39
+ rect: {
40
+ l: string;
41
+ t: string;
42
+ r: string;
43
+ b: string;
44
+ };
45
+ }
46
+ //# sourceMappingURL=preset-text-rect-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-text-rect-types.d.ts","sourceRoot":"","sources":["../../src/geometry/preset-text-rect-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;iDACiD;AACjD,MAAM,WAAW,wBAAwB;IACxC,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,0EAA0E;IAC1E,IAAI,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrD"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Polygon clipping algorithms for shape boolean intersection.
3
+ *
4
+ * Implements the Sutherland-Hodgman algorithm for convex polygon clipping
5
+ * and ear-clipping triangulation for handling concave clip polygons.
6
+ *
7
+ * @module geometry/shape-boolean-clipping
8
+ */
9
+ import type { Vec2 } from './shape-boolean-types.js';
10
+ /**
11
+ * Compute the intersection point of two infinite lines defined by segments
12
+ * AB and CD. Returns `null` when the lines are parallel.
13
+ *
14
+ * @param a - First point of line 1.
15
+ * @param b - Second point of line 1.
16
+ * @param c - First point of line 2.
17
+ * @param d - Second point of line 2.
18
+ * @returns Intersection point or `null` if parallel.
19
+ */
20
+ export declare function lineIntersection(a: Vec2, b: Vec2, c: Vec2, d: Vec2): Vec2 | null;
21
+ /**
22
+ * Sutherland-Hodgman algorithm: clip a subject polygon by a convex clip
23
+ * polygon.
24
+ *
25
+ * Both polygons should be in CCW winding order.
26
+ *
27
+ * @param subject - Polygon to be clipped.
28
+ * @param clip - Convex clipping polygon.
29
+ * @returns Clipped polygon (may be empty if no overlap).
30
+ */
31
+ export declare function sutherlandHodgman(subject: Vec2[], clip: Vec2[]): Vec2[];
32
+ /**
33
+ * Check whether a polygon is convex.
34
+ *
35
+ * @param poly - Polygon vertices.
36
+ * @returns `true` when all cross-products at vertices share the same sign.
37
+ */
38
+ export declare function isConvex(poly: Vec2[]): boolean;
39
+ /**
40
+ * Simple ear-clipping triangulation for concave polygon decomposition.
41
+ *
42
+ * Returns an array of triangles (3-vertex polygons).
43
+ *
44
+ * @param poly - Input polygon (will be normalized to CCW).
45
+ * @returns Array of triangles.
46
+ */
47
+ export declare function triangulate(poly: Vec2[]): Vec2[][];
48
+ /**
49
+ * Merge a set of (possibly overlapping) convex polygons into fewer polygons.
50
+ *
51
+ * Currently removes degenerate polygons and returns the rest as-is, since
52
+ * the triangulated intersection pieces may share edges.
53
+ *
54
+ * @param polys - Array of polygons to merge.
55
+ * @returns Filtered array with degenerate polygons removed.
56
+ */
57
+ export declare function mergeOverlappingPolygons(polys: Vec2[][]): Vec2[][];
58
+ /**
59
+ * Clip a subject polygon against a clip polygon.
60
+ *
61
+ * Handles both convex and concave clip polygons. For concave clips the
62
+ * polygon is decomposed into triangles via ear-clipping and the subject
63
+ * is clipped against each triangle individually.
64
+ *
65
+ * @param subject - Polygon to clip.
66
+ * @param clip - Clipping polygon (convex or concave).
67
+ * @returns Array of resulting polygons (may be empty).
68
+ */
69
+ export declare function clipPolygons(subject: Vec2[], clip: Vec2[]): Vec2[][];
70
+ //# sourceMappingURL=shape-boolean-clipping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shape-boolean-clipping.d.ts","sourceRoot":"","sources":["../../src/geometry/shape-boolean-clipping.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAOrD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAUhF;AAMD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAsCvE;AAMD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,CAqB9C;AAMD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,CAoDlD;AAMD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,CAElE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,CAwBpE"}