ooxml-core 1.40.0 → 1.41.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 (134) hide show
  1. package/dist/{PptxHandler-2WYH66TS.mjs → PptxHandler-3AGIITR7.mjs} +2 -2
  2. package/dist/PptxHandler-EL4E4SPH.mjs +5 -0
  3. package/dist/PptxHandler-OIZ3R3DJ.cjs +14 -0
  4. package/dist/{PresentationBuilder-RTHLLHLE.mjs → PresentationBuilder-5DPKFUXP.mjs} +3 -3
  5. package/dist/{PresentationBuilder-VHDHLGIK.mjs → PresentationBuilder-JNID4B4Z.mjs} +2 -2
  6. package/dist/{PresentationBuilder-BUUVVMNI.cjs → PresentationBuilder-MZBKYOYD.cjs} +6 -6
  7. package/dist/automation/index.cjs +5336 -3452
  8. package/dist/automation/index.mjs +5336 -3452
  9. package/dist/{chunk-U6FMLGWH.cjs → chunk-3BIFRTU4.cjs} +1300 -1269
  10. package/dist/{chunk-HLBIT5H4.mjs → chunk-6LGRRQ3K.mjs} +1 -1
  11. package/dist/{chunk-SEGPDD5W.cjs → chunk-75KBNUKS.cjs} +4932 -3048
  12. package/dist/{chunk-AZNF3IOI.mjs → chunk-DD7COXWR.mjs} +69 -5
  13. package/dist/{chunk-NHV47JOE.mjs → chunk-HTELXT2N.mjs} +36 -5
  14. package/dist/{chunk-OGD5OQK2.mjs → chunk-JXR6YWBW.mjs} +6689 -4805
  15. package/dist/{chunk-3E4GSBC7.mjs → chunk-KKVD3R6O.mjs} +4 -4
  16. package/dist/{chunk-EXSPNK6W.cjs → chunk-LRBWCRQ3.cjs} +3 -3
  17. package/dist/{chunk-6XAAJTA3.mjs → chunk-P3WAKBVS.mjs} +4932 -3048
  18. package/dist/{chunk-5BVSDSJZ.mjs → chunk-UE23HF2N.mjs} +1 -1
  19. package/dist/{chunk-725QJW4K.mjs → chunk-ZYCBJKAE.mjs} +1 -1
  20. package/dist/color/index.cjs +36 -0
  21. package/dist/color/index.d.ts +1 -0
  22. package/dist/color/index.d.ts.map +1 -1
  23. package/dist/color/index.mjs +35 -1
  24. package/dist/color/office-gradient-stops.d.ts +27 -0
  25. package/dist/color/office-gradient-stops.d.ts.map +1 -0
  26. package/dist/diagram/index.cjs +4858 -2934
  27. package/dist/diagram/index.mjs +4858 -2935
  28. package/dist/docx/embedded.cjs +4884 -3000
  29. package/dist/docx/embedded.mjs +4884 -3000
  30. package/dist/docx/index.cjs +4942 -3056
  31. package/dist/docx/index.mjs +4942 -3056
  32. package/dist/docx/layout/index.cjs +4924 -3038
  33. package/dist/docx/layout/index.mjs +4924 -3038
  34. package/dist/docx/load/index.cjs +5021 -3137
  35. package/dist/docx/load/index.mjs +5021 -3137
  36. package/dist/docx/ui/index.cjs +4925 -3041
  37. package/dist/docx/ui/index.mjs +4925 -3041
  38. package/dist/drawingml/index.cjs +76 -16
  39. package/dist/drawingml/index.mjs +76 -17
  40. package/dist/drawingml/path-data.d.ts.map +1 -1
  41. package/dist/drawingml/rect-path-gradient.d.ts +12 -0
  42. package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
  43. package/dist/geometry/index.cjs +4138 -2253
  44. package/dist/geometry/index.mjs +4138 -2254
  45. package/dist/geometry/ooxml-arc.d.ts +10 -1
  46. package/dist/geometry/ooxml-arc.d.ts.map +1 -1
  47. package/dist/geometry/preset-shape-definitions-action-buttons.d.ts +7 -36
  48. package/dist/geometry/preset-shape-definitions-action-buttons.d.ts.map +1 -1
  49. package/dist/geometry/preset-shape-definitions-connectors-brackets.d.ts.map +1 -1
  50. package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +19 -0
  51. package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -0
  52. package/dist/geometry/preset-shape-definitions-exact-arcs.d.ts +14 -0
  53. package/dist/geometry/preset-shape-definitions-exact-arcs.d.ts.map +1 -0
  54. package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts +11 -0
  55. package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -0
  56. package/dist/geometry/preset-shape-definitions-exact-basic.d.ts +12 -0
  57. package/dist/geometry/preset-shape-definitions-exact-basic.d.ts.map +1 -0
  58. package/dist/geometry/preset-shape-definitions-exact-circular.d.ts +18 -0
  59. package/dist/geometry/preset-shape-definitions-exact-circular.d.ts.map +1 -0
  60. package/dist/geometry/preset-shape-definitions-exact-ellipse-ribbons.d.ts +16 -0
  61. package/dist/geometry/preset-shape-definitions-exact-ellipse-ribbons.d.ts.map +1 -0
  62. package/dist/geometry/preset-shape-definitions-exact-funnel.d.ts +13 -0
  63. package/dist/geometry/preset-shape-definitions-exact-funnel.d.ts.map +1 -0
  64. package/dist/geometry/preset-shape-definitions-exact-left-right-ribbon.d.ts +13 -0
  65. package/dist/geometry/preset-shape-definitions-exact-left-right-ribbon.d.ts.map +1 -0
  66. package/dist/geometry/preset-shape-definitions-exact-math.d.ts +14 -0
  67. package/dist/geometry/preset-shape-definitions-exact-math.d.ts.map +1 -0
  68. package/dist/geometry/preset-shape-definitions-exact-misc.d.ts +11 -0
  69. package/dist/geometry/preset-shape-definitions-exact-misc.d.ts.map +1 -0
  70. package/dist/geometry/preset-shape-definitions-exact-ribbons.d.ts +12 -0
  71. package/dist/geometry/preset-shape-definitions-exact-ribbons.d.ts.map +1 -0
  72. package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts +13 -0
  73. package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -0
  74. package/dist/geometry/preset-shape-definitions-flowchart.d.ts.map +1 -1
  75. package/dist/geometry/preset-shape-definitions-misc.d.ts.map +1 -1
  76. package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -1
  77. package/dist/geometry/preset-shape-exact-dsl.d.ts +30 -0
  78. package/dist/geometry/preset-shape-exact-dsl.d.ts.map +1 -0
  79. package/dist/index.cjs +7091 -4867
  80. package/dist/index.mjs +7091 -4867
  81. package/dist/pptx/automation/index.cjs +5419 -3408
  82. package/dist/pptx/automation/index.d.ts +5 -5
  83. package/dist/pptx/automation/index.mjs +5 -5
  84. package/dist/pptx/chunks/{elements-DheCTwi0.d.ts → elements-6BMEOo7i.d.ts} +27 -2
  85. package/dist/pptx/chunks/{elements-DheCTwi0.d.ts.map → elements-6BMEOo7i.d.ts.map} +1 -1
  86. package/dist/pptx/chunks/{index-Jcce8TlI.d.ts → index-BbXLv6As.d.ts} +4 -4
  87. package/dist/pptx/chunks/{index-Jcce8TlI.d.ts.map → index-BbXLv6As.d.ts.map} +1 -1
  88. package/dist/pptx/chunks/{index-B4ofjG6_.d.ts → index-Dija_Wth.d.ts} +3 -3
  89. package/dist/pptx/chunks/{index-B4ofjG6_.d.ts.map → index-Dija_Wth.d.ts.map} +1 -1
  90. package/dist/pptx/chunks/{index-CYukxWbl.d.ts → index-DvN0TkJJ.d.ts} +23 -8
  91. package/dist/pptx/chunks/index-DvN0TkJJ.d.ts.map +1 -0
  92. package/dist/pptx/chunks/{text-operations-CdgEnFuK.d.ts → text-operations-DorONr3h.d.ts} +2 -2
  93. package/dist/pptx/chunks/{text-operations-CdgEnFuK.d.ts.map → text-operations-DorONr3h.d.ts.map} +1 -1
  94. package/dist/pptx/cli/index.cjs +5341 -3330
  95. package/dist/pptx/cli/index.d.ts +1 -1
  96. package/dist/pptx/cli/index.mjs +4 -4
  97. package/dist/pptx/converter/index.cjs +4958 -2978
  98. package/dist/pptx/converter/index.d.ts +1 -1
  99. package/dist/pptx/converter/index.mjs +2 -2
  100. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  101. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  102. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  103. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  104. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  105. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  106. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  107. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
  108. package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
  109. package/dist/pptx/index.cjs +7176 -5125
  110. package/dist/pptx/index.d.ts +6 -6
  111. package/dist/pptx/index.mjs +5 -5
  112. package/dist/pptx/node/index.d.ts +1 -1
  113. package/dist/teams/index.cjs +5287 -3307
  114. package/dist/teams/index.mjs +5287 -3307
  115. package/dist/text/font-metrics/office-font-metrics.generated.d.ts +23 -0
  116. package/dist/text/font-metrics/office-font-metrics.generated.d.ts.map +1 -0
  117. package/dist/text/font-metrics/vertical-metrics.d.ts +35 -0
  118. package/dist/text/font-metrics/vertical-metrics.d.ts.map +1 -0
  119. package/dist/text/index.cjs +260 -0
  120. package/dist/text/index.d.ts +1 -0
  121. package/dist/text/index.d.ts.map +1 -1
  122. package/dist/text/index.mjs +259 -1
  123. package/dist/xlsx/collab/index.cjs +5106 -3222
  124. package/dist/xlsx/collab/index.mjs +5106 -3222
  125. package/dist/xlsx/index.cjs +5272 -3386
  126. package/dist/xlsx/index.mjs +5272 -3386
  127. package/dist/xlsx/load/index.cjs +5125 -3241
  128. package/dist/xlsx/load/index.mjs +5125 -3241
  129. package/dist/xlsx/ui/index.cjs +5279 -3395
  130. package/dist/xlsx/ui/index.mjs +5279 -3395
  131. package/package.json +1 -1
  132. package/dist/PptxHandler-SD6VWF3I.mjs +0 -5
  133. package/dist/PptxHandler-ZHWWOO2X.cjs +0 -14
  134. package/dist/pptx/chunks/index-CYukxWbl.d.ts.map +0 -1
@@ -13,6 +13,8 @@ export interface ArcToResult {
13
13
  /** Y coordinate of the arc endpoint. */
14
14
  endY: number;
15
15
  }
16
+ /** Parametric angle of the ellipse point seen at visual angle `visual` (radians). */
17
+ export declare function visualToParametric(visual: number, wR: number, hR: number): number;
16
18
  /**
17
19
  * Convert an OOXML `a:arcTo` command to an SVG arc path segment.
18
20
  *
@@ -26,6 +28,13 @@ export interface ArcToResult {
26
28
  * @param swAng - Sweep angle in 60000ths of a degree.
27
29
  * @param penX - Current pen X position.
28
30
  * @param penY - Current pen Y position.
31
+ * @param scaleX - Horizontal scale from the radii's own space (a path's `w`
32
+ * space) to the output. The visual-to-parametric angle conversion has to run
33
+ * in the radii's own space (where a `cloud` lobe is a circle), then scale.
34
+ * @param scaleY - Vertical counterpart of `scaleX`.
35
+ * @param parametric - Treat `stAng` / `swAng` as parametric angles instead of
36
+ * visual ones. Only for approximate hand-written definitions that were tuned
37
+ * that way and have no spec-exact replacement yet.
29
38
  */
30
- export declare function ooxmlArcToSvg(wR: number, hR: number, stAng: number, swAng: number, penX: number, penY: number): ArcToResult | null;
39
+ export declare function ooxmlArcToSvg(wR: number, hR: number, stAng: number, swAng: number, penX: number, penY: number, scaleX?: number, scaleY?: number, parametric?: boolean): ArcToResult | null;
31
40
  //# sourceMappingURL=ooxml-arc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ooxml-arc.d.ts","sourceRoot":"","sources":["../../geometry/ooxml-arc.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC5B,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACV,WAAW,GAAG,IAAI,CA6DpB"}
1
+ {"version":3,"file":"ooxml-arc.d.ts","sourceRoot":"","sources":["../../geometry/ooxml-arc.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;CACb;AAED,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAEjF;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,CAC5B,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,SAAI,EACV,MAAM,SAAI,EACV,UAAU,UAAQ,GAChB,WAAW,GAAG,IAAI,CAiFpB"}
@@ -1,45 +1,16 @@
1
1
  /**
2
- * ECMA-376 ST_ShapeType preset geometry definitions — action buttons.
2
+ * ECMA-376 ST_ShapeType preset geometry definitions: action buttons.
3
3
  *
4
- * The 12 `actionButton*` shapes (`actionButtonBlank`, `actionButtonHome`,
5
- * `actionButtonHelp`, `actionButtonInformation`, `actionButtonForwardNext`,
6
- * `actionButtonBackPrevious`, `actionButtonEnd`, `actionButtonBeginning`,
7
- * `actionButtonReturn`, `actionButtonDocument`, `actionButtonSound`,
8
- * `actionButtonMovie`) all share the same OOXML preset geometry: a beveled
9
- * rectangle. The inner glyph (home / help / sound / etc.) is rendered
10
- * separately by the React layer via `ActionButtonGlyphOverlay`, so we only
11
- * need to express the button frame here.
12
- *
13
- * Geometry: outer rectangle covering the full bounds, plus an inner inset
14
- * rectangle (the bevel "well"). The inset is `ss / 16` — i.e. one sixteenth
15
- * of the shorter side, i.e. the fixed literal fraction `6250` in the
16
- * canonical 100000-based OOXML scale. COM-verified 2026-09-05
17
- * (`Shape.Adjustments.Count` reads 0 for every `actionButton*` AutoShape at
18
- * any size): unlike `roundRect`/`octagon`/etc., this fraction is NOT an
19
- * adjustable guide in real PowerPoint - the 12 `actionButton*` presets ship
20
- * with an EMPTY `avLst`, so a saved file that carries an `<a:gd name="adj"
21
- * .../>` for one of them is authoring a guide name PowerPoint's own preset
22
- * geometry does not recognise (the same corruption class documented in
23
- * `preset-adjustment-validation.ts`: an unrecognised guide name on a preset
24
- * that HAS real guides makes PowerPoint refuse to open the file). Diagonal
25
- * lines from each outer corner to the matching inner corner ensure a
26
- * stroked outline reads as a true bevel.
27
- *
28
- * All twelve shapes use identical geometry: a single helper, `buildActionButton`,
29
- * stamps each definition with the right `name` so the table stays a one-line
30
- * declaration per shape.
31
- *
32
- * Aggregation into `PRESET_SHAPE_GEOMETRY_TABLE` is performed manually in
33
- * `preset-shape-definitions-table.ts` after batch agents return.
4
+ * The 12 `actionButton*` shapes are a flat rectangle plus the glyph (home,
5
+ * help, sound, ...) drawn as shaded sub-paths, exactly as PowerPoint draws
6
+ * them; the geometry itself lives in `preset-shape-definitions-exact-action-buttons`.
7
+ * COM-verified: `Shape.Adjustments.Count` reads 0 for every `actionButton*`, so
8
+ * there is no `avLst` (an authored guide would make PowerPoint refuse the file).
34
9
  */
35
10
  import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
36
11
  /**
37
- * Action-button preset definitions exported for manual aggregation into
12
+ * Action-button preset definitions exported for aggregation into
38
13
  * `PRESET_SHAPE_GEOMETRY_TABLE`. Keys are ECMA-376 ST_ShapeType names.
39
- *
40
- * NOTE: this constant name (`ACTION_BUTTON_PRESET_DEFINITIONS`) intentionally
41
- * differs from the React package's `ACTION_BUTTON_PRESETS` (editor-side icon
42
- * paths) so the two never collide.
43
14
  */
44
15
  export declare const ACTION_BUTTON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
45
16
  //# sourceMappingURL=preset-shape-definitions-action-buttons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"preset-shape-definitions-action-buttons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-action-buttons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA8EtF;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAa1F,CAAC"}
1
+ {"version":3,"file":"preset-shape-definitions-action-buttons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-action-buttons.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAGtF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CACpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"preset-shape-definitions-connectors-brackets.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-connectors-brackets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAwdtF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAY/F,CAAC"}
1
+ {"version":3,"file":"preset-shape-definitions-connectors-brackets.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-connectors-brackets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAgdtF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAY/F,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Geometry of the twelve `actionButton*` presets.
3
+ *
4
+ * Measured on PowerPoint 16 (150 x 90 pt, mid-grey fill, shaded): the button is
5
+ * a flat rectangle (no bevel), and the glyph is drawn on it as filled sub-paths,
6
+ * `darken` for the dark parts (arrows, house roof, speaker, camera, the circle of
7
+ * the information button), `darkenLess` for the house body and the page, and
8
+ * `lighten` for the white of the "i". Outlines of every sub-path are stroked
9
+ * with the shape's line.
10
+ *
11
+ * Every glyph is placed relative to the centre `(hc, vc)` and scaled by `ss`;
12
+ * the numbers below are points on a 90 pt `ss`, written once and turned into
13
+ * guides here. The ECMA glyphs are polygons built on `dx2 = ss * 3 / 8`
14
+ * (33.75); curved ones (the question mark) are a polyline through the measured
15
+ * outline, not the specification's Bezier chain.
16
+ */
17
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
18
+ export declare const EXACT_ACTION_BUTTON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
19
+ //# sourceMappingURL=preset-shape-definitions-exact-action-buttons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-action-buttons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-action-buttons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAc,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAsWlG,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CACzF,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Spec-exact geometry for the arc family (`arc`, `pie`, `chord`, `blockArc`),
3
+ * `pieWedge`, `noSmoking` and `halfFrame`.
4
+ *
5
+ * ECMA-376 arc angles are VISUAL angles: the direction from the ellipse centre
6
+ * to the point. On a circle that equals the parametric angle; on any
7
+ * non-square preset it does not, so PowerPoint and the old hand-written
8
+ * entries parted ways as soon as `adj` was not a
9
+ * multiple of 90 degrees. The arc engine now honours visual angles, so these
10
+ * definitions use the specification's own end point formulas (`cat2`, `sat2`).
11
+ */
12
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
13
+ export declare const EXACT_ARC_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
14
+ //# sourceMappingURL=preset-shape-definitions-exact-arcs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-arcs.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-arcs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA0JtF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAQtF,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Spec-exact geometry for the multi-headed block arrows whose hand-written
3
+ * entries disagreed with PowerPoint 16: `leftRightArrow`, `upDownArrow`,
4
+ * `quadArrow`, `leftUpArrow` and `leftRightUpArrow`.
5
+ *
6
+ * Authored in the ECMA-376 `presetShapeDefinitions` layout and compared with
7
+ * PowerPoint's raster at a non-square aspect with default and adjusted values.
8
+ */
9
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
10
+ export declare const EXACT_ARROW_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
11
+ //# sourceMappingURL=preset-shape-definitions-exact-arrows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-arrows.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-arrows.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA0ItF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAMxF,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Spec-exact geometry for presets whose hand-written entries disagreed with
3
+ * PowerPoint 16: the three tab corners, brackets and braces (single and
4
+ * paired), `moon`, `diagStripe` and `nonIsoscelesTrapezoid`.
5
+ *
6
+ * Each definition mirrors the ECMA-376 `presetShapeDefinitions` layout (an
7
+ * `avLst`, a `gdLst` of one-line formulas, a `pathLst`) and was compared with
8
+ * PowerPoint's own raster at a non-square aspect, default and adjusted.
9
+ */
10
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
11
+ export declare const EXACT_BASIC_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
12
+ //# sourceMappingURL=preset-shape-definitions-exact-basic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-basic.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-basic.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAkUtF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAiBxF,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Geometry of `circularArrow`, `leftCircularArrow` and `leftRightCircularArrow`.
3
+ *
4
+ * The three presets share one construction (ECMA-376 `presetShapeDefinitions`):
5
+ * a band of thickness `th` centred on an ellipse of radii `rw3` x `rh3`, whose
6
+ * head is a triangle `thh` wide on each side of the band centre. The head base
7
+ * centre `H` lies on the centre line at the band's end angle `enAng`, the tip
8
+ * `A` at `enAng + aAng` and the base points `G` (outer) and `B` (inner) are
9
+ * `thh` either side of `H` along the tip's radial direction. The band's outer
10
+ * and inner arcs stop where the base line crosses the outer and inner ellipse.
11
+ *
12
+ * The head angle is limited to `maxAng`, the angle from `H` to the point where
13
+ * the tangent from `H` touches the inner circle, so the tip never turns back
14
+ * into the band.
15
+ */
16
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
17
+ export declare const EXACT_CIRCULAR_ARROW_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
18
+ //# sourceMappingURL=preset-shape-definitions-exact-circular.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-circular.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-circular.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA6LtF,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAC3D,MAAM,EACN,6BAA6B,CAK7B,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Geometry of `ellipseRibbon` and `ellipseRibbon2` (the curved banners).
3
+ *
4
+ * Every curved edge is a piece of one parabola `P(x) = f1 * (x - x^2 / w)` that
5
+ * sags `dy1` at the centre, drawn as a quadratic Bezier (a quadratic Bezier with
6
+ * its control point halfway along x is exactly a parabola). The tails hang from
7
+ * the end of the top edge down to `b - dy2`; the centre banner spans from `dy2`
8
+ * at the middle to the bottom edge, and the two folds are the triangles joining
9
+ * a tail's top edge to the banner.
10
+ *
11
+ * `ellipseRibbon2` is `ellipseRibbon` turned over, so both are written once
12
+ * with each y given as an offset from the top that is flipped for the second.
13
+ */
14
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
15
+ export declare const EXACT_ELLIPSE_RIBBON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
16
+ //# sourceMappingURL=preset-shape-definitions-exact-ellipse-ribbons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-ellipse-ribbons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-ellipse-ribbons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA4FtF,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAC3D,MAAM,EACN,6BAA6B,CAI7B,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Geometry of `funnel`: a rim ellipse `wd2` x `hd4`, an opening inset `ss / 20`
3
+ * (left empty), and a small bottom ellipse joined to the rim by two straight
4
+ * sides that are tangent to both ellipses (measured on PowerPoint 16 at five
5
+ * sizes; the shape has no adjustments).
6
+ *
7
+ * The common tangent of two axis-aligned ellipses has no closed form, so the
8
+ * side slope `m` (the run per unit of height) is found by six Newton steps on
9
+ * `m * (cy2 - cy1) = sqrt(a1^2 + m^2 b1^2) - sqrt(a2^2 + m^2 b2^2)`.
10
+ */
11
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
12
+ export declare const EXACT_FUNNEL_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
13
+ //# sourceMappingURL=preset-shape-definitions-exact-funnel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-funnel.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-funnel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAqEtF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAEzF,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Geometry of `leftRightRibbon`: a left-pointing arrow in front of a
3
+ * right-pointing arrow, the left body rolled into the right one by a scroll
4
+ * curl `wd32` wide and `h * adj3 / 100000` tall at the middle.
5
+ *
6
+ * Measured on PowerPoint 16: the left arrow body is `a1` of the height thick and
7
+ * sits `adj3` above the right body; the curl is two half ellipses of radii
8
+ * `wd32` x `hR` (`hR` a quarter of the offset) that join the left body's top edge
9
+ * (at `hc`) to the right body's top edge, one bulging right, one left.
10
+ */
11
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
12
+ export declare const EXACT_LEFT_RIGHT_RIBBON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
13
+ //# sourceMappingURL=preset-shape-definitions-exact-left-right-ribbon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-left-right-ribbon.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-left-right-ribbon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA6CtF,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAC9D,MAAM,EACN,6BAA6B,CACP,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Spec-exact geometry for the six math operator presets (`mathPlus`,
3
+ * `mathMinus`, `mathMultiply`, `mathDivide`, `mathEqual`, `mathNotEqual`).
4
+ *
5
+ * The earlier hand-written entries drew the operators the full width of the
6
+ * box; ECMA-376 insets every glyph to 73490/100000 of the box, and builds
7
+ * `mathMultiply` from two diagonal bars and `mathNotEqual` from two bars and a
8
+ * slanted slash. Every figure here was checked pixel for pixel against
9
+ * PowerPoint 16 at a non-square aspect with default and non-default
10
+ * adjustments.
11
+ */
12
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
13
+ export declare const EXACT_MATH_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
14
+ //# sourceMappingURL=preset-shape-definitions-exact-math.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-math.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-math.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAkMtF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAOvF,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Spec-exact geometry for presets that were wrong or missing their stroked
3
+ * detail paths in the hand-written table: `wave`, `doubleWave`, `dodecagon`,
4
+ * `can`, `cube`, `bevel`, `smileyFace`, `flowChartDocument`,
5
+ * `flowChartPunchedTape` and `flowChartOnlineStorage`.
6
+ *
7
+ * Compared with PowerPoint 16 at a non-square aspect (outline and fill).
8
+ */
9
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
10
+ export declare const EXACT_MISC_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
11
+ //# sourceMappingURL=preset-shape-definitions-exact-misc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-misc.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-misc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA2OtF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAWvF,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Geometry of `ribbon` and `ribbon2` (the straight banners).
3
+ *
4
+ * `ribbon2` has its tails at the bottom: the centre banner spans the top down to
5
+ * `y2`, each tail runs from `y2` to the bottom edge and folds up behind the
6
+ * banner, the fold being two half ellipses `wd32` wide and `hR` tall. `ribbon` is
7
+ * the same shape turned over. Each preset is a silhouette (`norm`) plus the two
8
+ * fold faces (`darkenLess`).
9
+ */
10
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
11
+ export declare const EXACT_RIBBON_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
12
+ //# sourceMappingURL=preset-shape-definitions-exact-ribbons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-ribbons.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-ribbons.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAkFtF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAGzF,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Geometry of `verticalScroll` and `horizontalScroll`.
3
+ *
4
+ * Measured on PowerPoint 16. `ch = ss * adj / 100000` is the roll diameter.
5
+ * `verticalScroll` has a roll along the top (a circle `ch` across at the left
6
+ * end with a small spiral, a round cap at the right end) and a curl at the
7
+ * bottom left; the paper hangs between them from `x = ch` to `x = r - ch`, with
8
+ * a rounded bottom right corner. `horizontalScroll` is the same figure turned
9
+ * about its diagonal.
10
+ */
11
+ import type { PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
12
+ export declare const EXACT_SCROLL_PRESET_DEFINITIONS: Record<string, PresetShapeGeometryDefinition>;
13
+ //# sourceMappingURL=preset-shape-definitions-exact-scrolls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-definitions-exact-scrolls.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-exact-scrolls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AA0DtF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAGzF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"preset-shape-definitions-flowchart.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-flowchart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAqzBtF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CA+BtF,CAAC"}
1
+ {"version":3,"file":"preset-shape-definitions-flowchart.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-flowchart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAk0BtF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CA+BtF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"preset-shape-definitions-misc.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-misc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAGX,6BAA6B,EAC7B,MAAM,kCAAkC,CAAC;AAgzC1C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAkCjF,CAAC"}
1
+ {"version":3,"file":"preset-shape-definitions-misc.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-misc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAGX,6BAA6B,EAC7B,MAAM,kCAAkC,CAAC;AA+zC1C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAkCjF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"preset-shape-definitions-table.d.ts","sourceRoot":"","sources":["../../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;AAukCD;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAqDrF,CAAC"}
1
+ {"version":3,"file":"preset-shape-definitions-table.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-definitions-table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAmCH;;;;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;AAqkCD;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAiErF,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Compact authoring helpers for spec-exact preset geometry.
3
+ *
4
+ * ECMA-376 writes a preset as an `avLst`, a `gdLst` of one-line formulas and a
5
+ * `pathLst` of commands. These helpers let a definition be authored in nearly
6
+ * that shape (`'x1 +- hc 0 dx1'`, `'M x1 y1 L x2 y1 Z'`) so it can be compared
7
+ * line by line with the specification, then expand to the table's types.
8
+ */
9
+ import type { PresetPath, PresetPathCommand, PresetShapeGeometryDefinition } from './preset-shape-definitions-table.js';
10
+ /** Split `'name op a b c'` into a `gdLst` entry. */
11
+ export declare function g(line: string): {
12
+ name: string;
13
+ formula: string;
14
+ args: string[];
15
+ };
16
+ /**
17
+ * Parse a path mini-language: `M x y`, `L x y`, `A wR hR stAng swAng`,
18
+ * `Q x1 y1 x2 y2`, `C x1 y1 x2 y2 x3 y3` and `Z`, whitespace separated.
19
+ */
20
+ export declare function cmds(src: string): PresetPathCommand[];
21
+ /** One `<a:path>`: commands plus the optional `fill` / `stroke` flags. */
22
+ export declare function p(src: string, flags?: {
23
+ fill?: string;
24
+ stroke?: boolean;
25
+ w?: number;
26
+ h?: number;
27
+ }): PresetPath;
28
+ /** Assemble a definition from the compact pieces. */
29
+ export declare function exactDef(name: string, avLst: Record<string, number> | undefined, gdLines: string[], rect: string, paths: PresetPath[]): PresetShapeGeometryDefinition;
30
+ //# sourceMappingURL=preset-shape-exact-dsl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-shape-exact-dsl.d.ts","sourceRoot":"","sources":["../../geometry/preset-shape-exact-dsl.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACX,UAAU,EACV,iBAAiB,EACjB,6BAA6B,EAC7B,MAAM,kCAAkC,CAAC;AAE1C,oDAAoD;AACpD,wBAAgB,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAGjF;AAID;;;GAGG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAyCrD;AAED,0EAA0E;AAC1E,wBAAgB,CAAC,CAChB,GAAG,EAAE,MAAM,EACX,KAAK,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CAAO,GACrE,UAAU,CAEZ;AAED,qDAAqD;AACrD,wBAAgB,QAAQ,CACvB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACzC,OAAO,EAAE,MAAM,EAAE,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,EAAE,GACjB,6BAA6B,CAS/B"}