ooxml-core 1.41.0 → 1.42.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 (126) hide show
  1. package/README.md +4 -0
  2. package/dist/PptxHandler-73QIJ6SD.cjs +14 -0
  3. package/dist/{PptxHandler-3AGIITR7.mjs → PptxHandler-A2J4PCOB.mjs} +2 -2
  4. package/dist/PptxHandler-OGLVLX2T.mjs +5 -0
  5. package/dist/{PresentationBuilder-MZBKYOYD.cjs → PresentationBuilder-6S5PJXXF.cjs} +6 -6
  6. package/dist/{PresentationBuilder-JNID4B4Z.mjs → PresentationBuilder-APJKCMVS.mjs} +2 -2
  7. package/dist/{PresentationBuilder-5DPKFUXP.mjs → PresentationBuilder-F3BWDERK.mjs} +3 -3
  8. package/dist/automation/index.cjs +75 -89
  9. package/dist/automation/index.mjs +75 -89
  10. package/dist/chart/index.cjs +5 -5
  11. package/dist/chart/index.mjs +5 -5
  12. package/dist/{chunk-LRBWCRQ3.cjs → chunk-3J6VIKLP.cjs} +3 -3
  13. package/dist/chunk-CODMW5KF.cjs +110 -0
  14. package/dist/{chunk-KKVD3R6O.mjs → chunk-CPSTCCRD.mjs} +4 -4
  15. package/dist/{chunk-P3WAKBVS.mjs → chunk-IPV3J3I5.mjs} +82 -90
  16. package/dist/{chunk-6LGRRQ3K.mjs → chunk-MXA67O7R.mjs} +1 -1
  17. package/dist/{chunk-JXR6YWBW.mjs → chunk-N6X5CJZP.mjs} +125 -126
  18. package/dist/chunk-O3YGBYGZ.mjs +104 -0
  19. package/dist/{chunk-75KBNUKS.cjs → chunk-QZPOPUI5.cjs} +82 -89
  20. package/dist/{chunk-UE23HF2N.mjs → chunk-VKFKEVHK.mjs} +1 -1
  21. package/dist/{chunk-DD7COXWR.mjs → chunk-VV724DWE.mjs} +19 -7
  22. package/dist/{chunk-HTELXT2N.mjs → chunk-XVB3CBNM.mjs} +19 -6
  23. package/dist/{chunk-3BIFRTU4.cjs → chunk-YNQRXFTC.cjs} +1283 -1270
  24. package/dist/{chunk-ZYCBJKAE.mjs → chunk-ZUEN4RQG.mjs} +1 -1
  25. package/dist/diagram/index.cjs +499 -370
  26. package/dist/diagram/index.d.ts +1 -0
  27. package/dist/diagram/index.d.ts.map +1 -1
  28. package/dist/diagram/index.mjs +495 -371
  29. package/dist/docx/embedded.cjs +67 -89
  30. package/dist/docx/embedded.mjs +67 -89
  31. package/dist/docx/index.cjs +118 -106
  32. package/dist/docx/index.mjs +118 -106
  33. package/dist/docx/layout/index.cjs +118 -106
  34. package/dist/docx/layout/index.mjs +118 -106
  35. package/dist/docx/load/index.cjs +67 -89
  36. package/dist/docx/load/index.mjs +67 -89
  37. package/dist/docx/shape-svg.d.ts.map +1 -1
  38. package/dist/docx/ui/index.cjs +72 -94
  39. package/dist/docx/ui/index.mjs +72 -94
  40. package/dist/drawingml/dash-pattern.d.ts +61 -0
  41. package/dist/drawingml/dash-pattern.d.ts.map +1 -0
  42. package/dist/drawingml/index.cjs +249 -43
  43. package/dist/drawingml/index.d.ts +3 -0
  44. package/dist/drawingml/index.d.ts.map +1 -1
  45. package/dist/drawingml/index.mjs +241 -44
  46. package/dist/drawingml/rect-path-gradient.d.ts +5 -0
  47. package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
  48. package/dist/drawingml/shape-path-gradient.d.ts +57 -0
  49. package/dist/drawingml/shape-path-gradient.d.ts.map +1 -0
  50. package/dist/geometry/index.cjs +68 -90
  51. package/dist/geometry/index.mjs +68 -90
  52. package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +2 -2
  53. package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -1
  54. package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -1
  55. package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -1
  56. package/dist/index.cjs +686 -489
  57. package/dist/index.mjs +686 -489
  58. package/dist/pptx/automation/index.cjs +355 -191
  59. package/dist/pptx/automation/index.d.ts +11 -17
  60. package/dist/pptx/automation/index.d.ts.map +1 -1
  61. package/dist/pptx/automation/index.mjs +156 -71
  62. package/dist/pptx/chunks/{elements-6BMEOo7i.d.ts → elements-PBugbKtv.d.ts} +3 -873
  63. package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +1 -0
  64. package/dist/pptx/chunks/{index-BbXLv6As.d.ts → index-BJuR8GLL.d.ts} +4 -4
  65. package/dist/pptx/chunks/{index-BbXLv6As.d.ts.map → index-BJuR8GLL.d.ts.map} +1 -1
  66. package/dist/pptx/chunks/{index-DvN0TkJJ.d.ts → index-Rbvl2WaM.d.ts} +14 -10
  67. package/dist/pptx/chunks/index-Rbvl2WaM.d.ts.map +1 -0
  68. package/dist/pptx/chunks/{index-Dija_Wth.d.ts → index-xoJGYTgQ.d.ts} +5 -3
  69. package/dist/pptx/chunks/index-xoJGYTgQ.d.ts.map +1 -0
  70. package/dist/pptx/chunks/table-C7ITXL3Y.d.ts +875 -0
  71. package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +1 -0
  72. package/dist/pptx/chunks/{text-operations-DorONr3h.d.ts → text-operations-BNJr7aGa.d.ts} +3 -2
  73. package/dist/pptx/chunks/text-operations-BNJr7aGa.d.ts.map +1 -0
  74. package/dist/pptx/cli/index.cjs +169 -96
  75. package/dist/pptx/cli/index.d.ts +1 -1
  76. package/dist/pptx/cli/index.mjs +4 -4
  77. package/dist/pptx/converter/index.cjs +69 -91
  78. package/dist/pptx/converter/index.d.ts +1 -1
  79. package/dist/pptx/converter/index.mjs +2 -2
  80. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  81. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  82. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  83. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  84. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  85. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  86. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  87. package/dist/pptx/editor/render/table-data-grid-ops.cjs +5 -5
  88. package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
  89. package/dist/pptx/editor/render/table-layout.cjs +6 -6
  90. package/dist/pptx/editor/render/table-layout.d.ts +8 -37
  91. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  92. package/dist/pptx/editor/render/table-layout.mjs +1 -1
  93. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
  94. package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
  95. package/dist/pptx/index.cjs +214 -129
  96. package/dist/pptx/index.d.ts +6 -5
  97. package/dist/pptx/index.mjs +5 -5
  98. package/dist/pptx/node/index.d.ts +1 -1
  99. package/dist/teams/index.cjs +136 -91
  100. package/dist/teams/index.mjs +136 -91
  101. package/dist/text/font-metrics/design-advances.generated.d.ts +3 -1
  102. package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
  103. package/dist/text/index.cjs +8 -0
  104. package/dist/text/index.mjs +8 -0
  105. package/dist/visio/index.cjs +8 -0
  106. package/dist/visio/index.mjs +8 -0
  107. package/dist/visio/ui/index.cjs +8 -0
  108. package/dist/visio/ui/index.mjs +8 -0
  109. package/dist/xlsx/collab/index.cjs +67 -89
  110. package/dist/xlsx/collab/index.mjs +67 -89
  111. package/dist/xlsx/index.cjs +116 -108
  112. package/dist/xlsx/index.mjs +116 -108
  113. package/dist/xlsx/layout/shape-paint.d.ts.map +1 -1
  114. package/dist/xlsx/load/index.cjs +67 -89
  115. package/dist/xlsx/load/index.mjs +67 -89
  116. package/dist/xlsx/ui/index.cjs +72 -94
  117. package/dist/xlsx/ui/index.mjs +72 -94
  118. package/package.json +1 -1
  119. package/dist/PptxHandler-EL4E4SPH.mjs +0 -5
  120. package/dist/PptxHandler-OIZ3R3DJ.cjs +0 -14
  121. package/dist/chunk-3IT6ZD7K.mjs +0 -213
  122. package/dist/chunk-FRUB573B.cjs +0 -219
  123. package/dist/pptx/chunks/elements-6BMEOo7i.d.ts.map +0 -1
  124. package/dist/pptx/chunks/index-Dija_Wth.d.ts.map +0 -1
  125. package/dist/pptx/chunks/index-DvN0TkJJ.d.ts.map +0 -1
  126. package/dist/pptx/chunks/text-operations-DorONr3h.d.ts.map +0 -1
@@ -2457,7 +2457,7 @@ function lerpStops(a, b, t) {
2457
2457
  opacity: oa + (ob - oa) * t
2458
2458
  };
2459
2459
  }
2460
- function colorAt(stops, position) {
2460
+ function gradientColorAt(stops, position) {
2461
2461
  const first3 = stops[0];
2462
2462
  const last = stops[stops.length - 1];
2463
2463
  if (position <= first3.position) {
@@ -2512,7 +2512,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
2512
2512
  if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
2513
2513
  for (let i = bands; i >= 0; i -= 1) {
2514
2514
  const t = i / bands;
2515
- const { color, opacity } = colorAt(sorted, t * 100);
2515
+ const { color, opacity } = gradientColorAt(sorted, t * 100);
2516
2516
  const left = lerpEdge(inner.left, 0, t);
2517
2517
  const top = lerpEdge(inner.top, 0, t);
2518
2518
  const right = lerpEdge(inner.right, 100, t);
@@ -2640,6 +2640,48 @@ function drawingPathData(path, width, height) {
2640
2640
  return out.join(" ");
2641
2641
  }
2642
2642
 
2643
+ // drawingml/dash-pattern.ts
2644
+ var PRESET_PATTERNS = {
2645
+ dash: [4, 3],
2646
+ dot: [1, 3],
2647
+ lgDash: [8, 3],
2648
+ dashDot: [4, 3, 1, 3],
2649
+ lgDashDot: [8, 3, 1, 3],
2650
+ lgDashDotDot: [8, 3, 1, 3, 1, 3],
2651
+ sysDash: [3, 1],
2652
+ sysDot: [1, 1],
2653
+ sysDashDot: [3, 1, 1, 1],
2654
+ sysDashDotDot: [3, 1, 1, 1, 1, 1]
2655
+ };
2656
+ var CUSTOM_DASH_UNIT = 1e5;
2657
+ var FALLBACK_CUSTOM_PATTERN = [3, 2];
2658
+ function dashPenWidth(strokeWidth) {
2659
+ if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
2660
+ return Math.max(1, Math.ceil(strokeWidth - 0.5));
2661
+ }
2662
+ function dashPatternUnits(dashType, customSegments) {
2663
+ if (!dashType || dashType === "solid") return void 0;
2664
+ if (dashType === "custom") {
2665
+ const pattern = ([]).flatMap((seg) => [
2666
+ Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
2667
+ Math.max(0, seg.space) / CUSTOM_DASH_UNIT
2668
+ ]);
2669
+ return pattern.some((n2) => n2 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
2670
+ }
2671
+ return PRESET_PATTERNS[dashType];
2672
+ }
2673
+ function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
2674
+ const pen = dashPenWidth(strokeWidth);
2675
+ const out = [];
2676
+ for (let i = 0; i < pattern.length; i += 1) {
2677
+ const len = (pattern[i] ?? 0) * pen;
2678
+ {
2679
+ out.push(len);
2680
+ }
2681
+ }
2682
+ return out.map((n2) => Number(n2.toFixed(4))).join(" ");
2683
+ }
2684
+
2643
2685
  // geometry/preset-shape-exact-dsl.ts
2644
2686
  function g(line4) {
2645
2687
  const [name2, ...rest] = line4.trim().split(/\s+/);
@@ -2770,84 +2812,22 @@ var triangle = (g2, dir) => g2.poly([
2770
2812
  [D * dir, 0],
2771
2813
  [-D * dir, D]
2772
2814
  ]);
2773
- var QUESTION = [
2774
- [-4.8, -33.7],
2775
- [-6.3, -31.5],
2776
- [-7.8, -31.5],
2777
- [-12.3, -28.5],
2778
- [-14.5, -28.5],
2779
- [-15.3, -27.7],
2780
- [-15.3, -25.5],
2781
- [-18.3, -21],
2782
- [-19, -17.2],
2783
- [-20.5, -16.5],
2784
- [-20.5, -12.7],
2785
- [-19, -12.7],
2786
- [-18.3, -14.2],
2787
- [-10.8, -14.2],
2788
- [-10, -13.5],
2789
- [-8.5, -13.5],
2790
- [-9.3, -17.2],
2791
- [-7.8, -19.5],
2792
- [-4, -22.5],
2793
- [-3.3, -21.7],
2794
- [-1.8, -21.7],
2795
- [-1, -23.2],
2796
- [0.5, -23.2],
2797
- [1.2, -21.7],
2798
- [2.7, -21.7],
2799
- [3.5, -22.5],
2800
- [8, -18.7],
2801
- [8.7, -17.2],
2802
- [8, -16.5],
2803
- [8, -15],
2804
- [9.5, -14.2],
2805
- [9.5, -13.5],
2806
- [8, -12.7],
2807
- [8.7, -9.7],
2808
- [5, -6],
2809
- [2, -6],
2810
- [-2.5, -2.2],
2811
- [-3.3, 0.8],
2812
- [-5.5, 2.3],
2813
- [-4.8, 6.8],
2814
- [-6.3, 7.5],
2815
- [-6.3, 18],
2816
- [-4.8, 18],
2817
- [-4, 17.3],
2818
- [4.2, 17.3],
2819
- [4.2, 6.8],
2820
- [6.5, 5.3],
2821
- [6.5, 3.8],
2822
- [8, 3],
2823
- [8, 1.5],
2824
- [8.7, 0.8],
2825
- [13.2, 0],
2826
- [17, -4.5],
2827
- [18.5, -4.5],
2828
- [18.5, -6],
2829
- [17.7, -6.7],
2830
- [18.5, -8.2],
2831
- [18.5, -15],
2832
- [20, -15.7],
2833
- [20, -18],
2834
- [17.7, -19.5],
2835
- [17.7, -21],
2836
- [15.5, -24.7],
2837
- [15.5, -27],
2838
- [14, -27],
2839
- [13.2, -27.7],
2840
- [13.2, -29.2],
2841
- [9.5, -30],
2842
- [8.7, -30.7],
2843
- [8.7, -32.2],
2844
- [5.7, -31.5],
2845
- [4.2, -33.7],
2846
- [2.7, -33.7],
2847
- [2, -32.2],
2848
- [-2.5, -32.2],
2849
- [-3.3, -33.7]
2850
- ];
2815
+ var U = 90;
2816
+ var question = (g2) => {
2817
+ const x = (v) => g2.x(v * U);
2818
+ const y = (v) => g2.y(v * U);
2819
+ const r = (v) => g2.len(v * U);
2820
+ return [
2821
+ `M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
2822
+ `A ${r(0.108)} ${r(0.162)} 0 5400000`,
2823
+ `A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
2824
+ `L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
2825
+ `A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
2826
+ `A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
2827
+ `A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
2828
+ `L ${x(-0.214)} ${y(-0.162)} Z`
2829
+ ].join(" ");
2830
+ };
2851
2831
  var MOVIE = [
2852
2832
  [-33.75, -16.5],
2853
2833
  [-33.75, -3],
@@ -2954,8 +2934,8 @@ var buttons = {
2954
2934
  )
2955
2935
  ]),
2956
2936
  actionButtonHelp: build("actionButtonHelp", (g2) => [
2957
- darken(g2.poly(QUESTION)),
2958
- darken(g2.circle(-0.2, 27.4, 7))
2937
+ darken(question(g2)),
2938
+ darken(g2.circle(0, 0.295 * U, 0.08 * U))
2959
2939
  ]),
2960
2940
  actionButtonInformation: build("actionButtonInformation", (g2) => [
2961
2941
  darken(g2.circle(0, 0.4, 34)),
@@ -6278,12 +6258,46 @@ var leftRightUpArrow2 = exactDef(
6278
6258
  )
6279
6259
  ]
6280
6260
  );
6261
+ var swooshArrow3 = exactDef(
6262
+ "swooshArrow",
6263
+ { adj1: 25e3, adj2: 16667 },
6264
+ [
6265
+ "a1 pin 1 adj1 75000",
6266
+ "maxAdj2 */ 70000 w ss",
6267
+ "a2 pin 0 adj2 maxAdj2",
6268
+ "ad1 */ h a1 100000",
6269
+ "ad2 */ ss a2 100000",
6270
+ "xB +- r 0 ad2",
6271
+ "yB +- t ssd8 0",
6272
+ "alfa */ cd4 1 14",
6273
+ "dx0 tan ssd8 alfa",
6274
+ "xC +- xB 0 dx0",
6275
+ "dx1 tan ad1 alfa",
6276
+ "yF +- yB ad1 0",
6277
+ "xF +- xB dx1 0",
6278
+ "xE +- xF dx0 0",
6279
+ "yE +- yF ssd8 0",
6280
+ "dy2 +- yE 0 t",
6281
+ "dy22 */ dy2 1 2",
6282
+ "dy3 */ h 1 20",
6283
+ "yD +- dy22 0 dy3",
6284
+ "dy4 */ hd6 1 1",
6285
+ "yP1 +- hd6 dy4 0",
6286
+ "xP1 val wd6",
6287
+ "dy5 */ hd6 1 2",
6288
+ "yP2 +- yF dy5 0",
6289
+ "xP2 val wd4"
6290
+ ],
6291
+ "l t r b",
6292
+ [p("M l b Q xP1 yP1 xB yB L xC t L r yD L xE yE L xF yF Q xP2 yP2 l b Z")]
6293
+ );
6281
6294
  var EXACT_ARROW_PRESET_DEFINITIONS = {
6282
6295
  leftRightArrow: leftRightArrow2,
6283
6296
  upDownArrow: upDownArrow2,
6284
6297
  quadArrow: quadArrow2,
6285
6298
  leftUpArrow: leftUpArrow2,
6286
- leftRightUpArrow: leftRightUpArrow2
6299
+ leftRightUpArrow: leftRightUpArrow2,
6300
+ swooshArrow: swooshArrow3
6287
6301
  };
6288
6302
 
6289
6303
  // geometry/preset-shape-definitions-exact-circular.ts
@@ -7089,10 +7103,13 @@ var verticalScroll = exactDef(
7089
7103
  p(
7090
7104
  "M ch ch2 A ch2 ch2 10800000 5400000 L x6 t A ch2 ch2 16200000 10800000 L x4 ch L x4 y4 A ch2 ch2 0 5400000 L ch2 b A ch2 ch2 5400000 10800000 L ch y3 Z"
7091
7105
  ),
7092
- p("M l y4 A ch2 ch2 10800000 21600000 Z M xsw cy3 A ch4 ch4 0 21600000 Z", {
7093
- fill: "darkenLess",
7094
- stroke: false
7095
- }),
7106
+ p(
7107
+ "M ch y4 A ch2 ch2 0 5400000 A ch2 ch2 5400000 10800000 A ch4 ch4 16200000 10800000 Z M x3b ch2 A ch2 ch2 0 5400000 A ch4 ch4 5400000 10800000 Z",
7108
+ {
7109
+ fill: "darkenLess",
7110
+ stroke: false
7111
+ }
7112
+ ),
7096
7113
  p(
7097
7114
  "M x3 t A ch2 ch2 16200000 10800000 L x4 ch M ch2 y4 L ch y4 M x3b ch2 L x3 ch2 A ch4 ch4 16200000 -10800000",
7098
7115
  { fill: "none" }
@@ -7108,10 +7125,13 @@ var horizontalScroll = exactDef(
7108
7125
  p(
7109
7126
  "M ch2 ch A ch2 ch2 16200000 -5400000 L l x6 A ch2 ch2 10800000 -10800000 L ch x4 L y4 x4 A ch2 ch2 5400000 -5400000 L r ch2 A ch2 ch2 0 -10800000 L y3 ch Z"
7110
7127
  ),
7111
- p("M y4 t A ch2 ch2 16200000 21600000 Z M ch cyw A ch4 ch4 0 21600000 Z", {
7112
- fill: "darkenLess",
7113
- stroke: false
7114
- }),
7128
+ p(
7129
+ "M y4 ch A ch2 ch2 5400000 -5400000 A ch2 ch2 0 -10800000 A ch4 ch4 10800000 -10800000 Z M ch2 x3b A ch2 ch2 5400000 -5400000 A ch4 ch4 0 -10800000 Z",
7130
+ {
7131
+ fill: "darkenLess",
7132
+ stroke: false
7133
+ }
7134
+ ),
7115
7135
  p(
7116
7136
  "M l x3 A ch2 ch2 10800000 -10800000 L ch x4 M y4 ch2 L y4 ch M ch2 x3b L ch2 x3 A ch4 ch4 10800000 10800000",
7117
7137
  { fill: "none" }
@@ -19846,7 +19866,7 @@ function radarSvg(model, area) {
19846
19866
  }
19847
19867
 
19848
19868
  // chart/render/chart-svg-hierarchy.ts
19849
- var colorAt2 = (model, index) => {
19869
+ var colorAt = (model, index) => {
19850
19870
  const first3 = model.series[0];
19851
19871
  const colors = first3?.pointColors;
19852
19872
  return (colors && colors.length > 0 ? colors[index % colors.length] : void 0) ?? first3?.color ?? "#4472C4";
@@ -19875,7 +19895,7 @@ function treemapSvg(model, area) {
19875
19895
  }
19876
19896
  out.push(`<g data-chart-series="${cell.seriesIndex}" data-chart-point="${cell.pointIndex}">`);
19877
19897
  out.push(
19878
- rect2(cell.x, cell.y, cell.w, cell.h, colorAt2(model, cell.colorIndex)).replace(
19898
+ rect2(cell.x, cell.y, cell.w, cell.h, colorAt(model, cell.colorIndex)).replace(
19879
19899
  "/>",
19880
19900
  ' rx="2"/>'
19881
19901
  )
@@ -19914,7 +19934,7 @@ function sunburstSvg(model, area) {
19914
19934
  );
19915
19935
  for (const arc3 of arcs)
19916
19936
  out.push(
19917
- `<path d="${arc3.d}" fill="${colorAt2(model, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
19937
+ `<path d="${arc3.d}" fill="${colorAt(model, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
19918
19938
  );
19919
19939
  const flatLabels = levels.length > 1 || model.series.length !== 1 ? void 0 : model.categories;
19920
19940
  for (const arc3 of model.hierarchy?.labels === false ? [] : arcs) {
@@ -21839,16 +21859,6 @@ var DEFAULT_SHAPE_LINE_EMU = 12700;
21839
21859
  var isLinePreset = (preset) => /^(line|straightConnector1|bentConnector\d|curvedConnector\d)$/.test(preset);
21840
21860
 
21841
21861
  // docx/shape-svg.ts
21842
- var DASHES2 = {
21843
- dash: "4 3",
21844
- sysDash: "3 1",
21845
- dot: "1 2",
21846
- sysDot: "1 1",
21847
- dashDot: "4 3 1 3",
21848
- lgDash: "8 3",
21849
- lgDashDot: "8 3 1 3",
21850
- sysDashDot: "3 1 1 1"
21851
- };
21852
21862
  var escapeXml = (text2) => text2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
21853
21863
  var round = (value) => Math.round(value * 100) / 100;
21854
21864
  function shapeColorCss(color, theme) {
@@ -21869,11 +21879,13 @@ function fillPaint(fill, theme) {
21869
21879
  }
21870
21880
  function shapeAppearance(spec, theme) {
21871
21881
  const line4 = spec.line;
21882
+ const strokeWidthPx = round((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL);
21883
+ const dashUnits = dashPatternUnits(line4?.dash);
21872
21884
  return {
21873
21885
  fill: isLinePreset(spec.preset) ? "none" : fillPaint(spec.fill, theme),
21874
21886
  stroke: linePaint(line4?.fill, theme),
21875
- strokeWidthPx: round((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL),
21876
- ...line4?.dash && DASHES2[line4.dash] ? { dash: DASHES2[line4.dash] } : {}
21887
+ strokeWidthPx,
21888
+ ...dashUnits ? { dash: capCompensatedDashArray(dashUnits, strokeWidthPx) } : {}
21877
21889
  };
21878
21890
  }
21879
21891
  var luminance = (css) => {
@@ -2455,7 +2455,7 @@ function lerpStops(a, b, t) {
2455
2455
  opacity: oa + (ob - oa) * t
2456
2456
  };
2457
2457
  }
2458
- function colorAt(stops, position) {
2458
+ function gradientColorAt(stops, position) {
2459
2459
  const first3 = stops[0];
2460
2460
  const last = stops[stops.length - 1];
2461
2461
  if (position <= first3.position) {
@@ -2510,7 +2510,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
2510
2510
  if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
2511
2511
  for (let i = bands; i >= 0; i -= 1) {
2512
2512
  const t = i / bands;
2513
- const { color, opacity } = colorAt(sorted, t * 100);
2513
+ const { color, opacity } = gradientColorAt(sorted, t * 100);
2514
2514
  const left = lerpEdge(inner.left, 0, t);
2515
2515
  const top = lerpEdge(inner.top, 0, t);
2516
2516
  const right = lerpEdge(inner.right, 100, t);
@@ -2638,6 +2638,48 @@ function drawingPathData(path, width, height) {
2638
2638
  return out.join(" ");
2639
2639
  }
2640
2640
 
2641
+ // drawingml/dash-pattern.ts
2642
+ var PRESET_PATTERNS = {
2643
+ dash: [4, 3],
2644
+ dot: [1, 3],
2645
+ lgDash: [8, 3],
2646
+ dashDot: [4, 3, 1, 3],
2647
+ lgDashDot: [8, 3, 1, 3],
2648
+ lgDashDotDot: [8, 3, 1, 3, 1, 3],
2649
+ sysDash: [3, 1],
2650
+ sysDot: [1, 1],
2651
+ sysDashDot: [3, 1, 1, 1],
2652
+ sysDashDotDot: [3, 1, 1, 1, 1, 1]
2653
+ };
2654
+ var CUSTOM_DASH_UNIT = 1e5;
2655
+ var FALLBACK_CUSTOM_PATTERN = [3, 2];
2656
+ function dashPenWidth(strokeWidth) {
2657
+ if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
2658
+ return Math.max(1, Math.ceil(strokeWidth - 0.5));
2659
+ }
2660
+ function dashPatternUnits(dashType, customSegments) {
2661
+ if (!dashType || dashType === "solid") return void 0;
2662
+ if (dashType === "custom") {
2663
+ const pattern = ([]).flatMap((seg) => [
2664
+ Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
2665
+ Math.max(0, seg.space) / CUSTOM_DASH_UNIT
2666
+ ]);
2667
+ return pattern.some((n2) => n2 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
2668
+ }
2669
+ return PRESET_PATTERNS[dashType];
2670
+ }
2671
+ function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
2672
+ const pen = dashPenWidth(strokeWidth);
2673
+ const out = [];
2674
+ for (let i = 0; i < pattern.length; i += 1) {
2675
+ const len = (pattern[i] ?? 0) * pen;
2676
+ {
2677
+ out.push(len);
2678
+ }
2679
+ }
2680
+ return out.map((n2) => Number(n2.toFixed(4))).join(" ");
2681
+ }
2682
+
2641
2683
  // geometry/preset-shape-exact-dsl.ts
2642
2684
  function g(line4) {
2643
2685
  const [name2, ...rest] = line4.trim().split(/\s+/);
@@ -2768,84 +2810,22 @@ var triangle = (g2, dir) => g2.poly([
2768
2810
  [D * dir, 0],
2769
2811
  [-D * dir, D]
2770
2812
  ]);
2771
- var QUESTION = [
2772
- [-4.8, -33.7],
2773
- [-6.3, -31.5],
2774
- [-7.8, -31.5],
2775
- [-12.3, -28.5],
2776
- [-14.5, -28.5],
2777
- [-15.3, -27.7],
2778
- [-15.3, -25.5],
2779
- [-18.3, -21],
2780
- [-19, -17.2],
2781
- [-20.5, -16.5],
2782
- [-20.5, -12.7],
2783
- [-19, -12.7],
2784
- [-18.3, -14.2],
2785
- [-10.8, -14.2],
2786
- [-10, -13.5],
2787
- [-8.5, -13.5],
2788
- [-9.3, -17.2],
2789
- [-7.8, -19.5],
2790
- [-4, -22.5],
2791
- [-3.3, -21.7],
2792
- [-1.8, -21.7],
2793
- [-1, -23.2],
2794
- [0.5, -23.2],
2795
- [1.2, -21.7],
2796
- [2.7, -21.7],
2797
- [3.5, -22.5],
2798
- [8, -18.7],
2799
- [8.7, -17.2],
2800
- [8, -16.5],
2801
- [8, -15],
2802
- [9.5, -14.2],
2803
- [9.5, -13.5],
2804
- [8, -12.7],
2805
- [8.7, -9.7],
2806
- [5, -6],
2807
- [2, -6],
2808
- [-2.5, -2.2],
2809
- [-3.3, 0.8],
2810
- [-5.5, 2.3],
2811
- [-4.8, 6.8],
2812
- [-6.3, 7.5],
2813
- [-6.3, 18],
2814
- [-4.8, 18],
2815
- [-4, 17.3],
2816
- [4.2, 17.3],
2817
- [4.2, 6.8],
2818
- [6.5, 5.3],
2819
- [6.5, 3.8],
2820
- [8, 3],
2821
- [8, 1.5],
2822
- [8.7, 0.8],
2823
- [13.2, 0],
2824
- [17, -4.5],
2825
- [18.5, -4.5],
2826
- [18.5, -6],
2827
- [17.7, -6.7],
2828
- [18.5, -8.2],
2829
- [18.5, -15],
2830
- [20, -15.7],
2831
- [20, -18],
2832
- [17.7, -19.5],
2833
- [17.7, -21],
2834
- [15.5, -24.7],
2835
- [15.5, -27],
2836
- [14, -27],
2837
- [13.2, -27.7],
2838
- [13.2, -29.2],
2839
- [9.5, -30],
2840
- [8.7, -30.7],
2841
- [8.7, -32.2],
2842
- [5.7, -31.5],
2843
- [4.2, -33.7],
2844
- [2.7, -33.7],
2845
- [2, -32.2],
2846
- [-2.5, -32.2],
2847
- [-3.3, -33.7]
2848
- ];
2813
+ var U = 90;
2814
+ var question = (g2) => {
2815
+ const x = (v) => g2.x(v * U);
2816
+ const y = (v) => g2.y(v * U);
2817
+ const r = (v) => g2.len(v * U);
2818
+ return [
2819
+ `M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
2820
+ `A ${r(0.108)} ${r(0.162)} 0 5400000`,
2821
+ `A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
2822
+ `L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
2823
+ `A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
2824
+ `A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
2825
+ `A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
2826
+ `L ${x(-0.214)} ${y(-0.162)} Z`
2827
+ ].join(" ");
2828
+ };
2849
2829
  var MOVIE = [
2850
2830
  [-33.75, -16.5],
2851
2831
  [-33.75, -3],
@@ -2952,8 +2932,8 @@ var buttons = {
2952
2932
  )
2953
2933
  ]),
2954
2934
  actionButtonHelp: build("actionButtonHelp", (g2) => [
2955
- darken(g2.poly(QUESTION)),
2956
- darken(g2.circle(-0.2, 27.4, 7))
2935
+ darken(question(g2)),
2936
+ darken(g2.circle(0, 0.295 * U, 0.08 * U))
2957
2937
  ]),
2958
2938
  actionButtonInformation: build("actionButtonInformation", (g2) => [
2959
2939
  darken(g2.circle(0, 0.4, 34)),
@@ -6276,12 +6256,46 @@ var leftRightUpArrow2 = exactDef(
6276
6256
  )
6277
6257
  ]
6278
6258
  );
6259
+ var swooshArrow3 = exactDef(
6260
+ "swooshArrow",
6261
+ { adj1: 25e3, adj2: 16667 },
6262
+ [
6263
+ "a1 pin 1 adj1 75000",
6264
+ "maxAdj2 */ 70000 w ss",
6265
+ "a2 pin 0 adj2 maxAdj2",
6266
+ "ad1 */ h a1 100000",
6267
+ "ad2 */ ss a2 100000",
6268
+ "xB +- r 0 ad2",
6269
+ "yB +- t ssd8 0",
6270
+ "alfa */ cd4 1 14",
6271
+ "dx0 tan ssd8 alfa",
6272
+ "xC +- xB 0 dx0",
6273
+ "dx1 tan ad1 alfa",
6274
+ "yF +- yB ad1 0",
6275
+ "xF +- xB dx1 0",
6276
+ "xE +- xF dx0 0",
6277
+ "yE +- yF ssd8 0",
6278
+ "dy2 +- yE 0 t",
6279
+ "dy22 */ dy2 1 2",
6280
+ "dy3 */ h 1 20",
6281
+ "yD +- dy22 0 dy3",
6282
+ "dy4 */ hd6 1 1",
6283
+ "yP1 +- hd6 dy4 0",
6284
+ "xP1 val wd6",
6285
+ "dy5 */ hd6 1 2",
6286
+ "yP2 +- yF dy5 0",
6287
+ "xP2 val wd4"
6288
+ ],
6289
+ "l t r b",
6290
+ [p("M l b Q xP1 yP1 xB yB L xC t L r yD L xE yE L xF yF Q xP2 yP2 l b Z")]
6291
+ );
6279
6292
  var EXACT_ARROW_PRESET_DEFINITIONS = {
6280
6293
  leftRightArrow: leftRightArrow2,
6281
6294
  upDownArrow: upDownArrow2,
6282
6295
  quadArrow: quadArrow2,
6283
6296
  leftUpArrow: leftUpArrow2,
6284
- leftRightUpArrow: leftRightUpArrow2
6297
+ leftRightUpArrow: leftRightUpArrow2,
6298
+ swooshArrow: swooshArrow3
6285
6299
  };
6286
6300
 
6287
6301
  // geometry/preset-shape-definitions-exact-circular.ts
@@ -7087,10 +7101,13 @@ var verticalScroll = exactDef(
7087
7101
  p(
7088
7102
  "M ch ch2 A ch2 ch2 10800000 5400000 L x6 t A ch2 ch2 16200000 10800000 L x4 ch L x4 y4 A ch2 ch2 0 5400000 L ch2 b A ch2 ch2 5400000 10800000 L ch y3 Z"
7089
7103
  ),
7090
- p("M l y4 A ch2 ch2 10800000 21600000 Z M xsw cy3 A ch4 ch4 0 21600000 Z", {
7091
- fill: "darkenLess",
7092
- stroke: false
7093
- }),
7104
+ p(
7105
+ "M ch y4 A ch2 ch2 0 5400000 A ch2 ch2 5400000 10800000 A ch4 ch4 16200000 10800000 Z M x3b ch2 A ch2 ch2 0 5400000 A ch4 ch4 5400000 10800000 Z",
7106
+ {
7107
+ fill: "darkenLess",
7108
+ stroke: false
7109
+ }
7110
+ ),
7094
7111
  p(
7095
7112
  "M x3 t A ch2 ch2 16200000 10800000 L x4 ch M ch2 y4 L ch y4 M x3b ch2 L x3 ch2 A ch4 ch4 16200000 -10800000",
7096
7113
  { fill: "none" }
@@ -7106,10 +7123,13 @@ var horizontalScroll = exactDef(
7106
7123
  p(
7107
7124
  "M ch2 ch A ch2 ch2 16200000 -5400000 L l x6 A ch2 ch2 10800000 -10800000 L ch x4 L y4 x4 A ch2 ch2 5400000 -5400000 L r ch2 A ch2 ch2 0 -10800000 L y3 ch Z"
7108
7125
  ),
7109
- p("M y4 t A ch2 ch2 16200000 21600000 Z M ch cyw A ch4 ch4 0 21600000 Z", {
7110
- fill: "darkenLess",
7111
- stroke: false
7112
- }),
7126
+ p(
7127
+ "M y4 ch A ch2 ch2 5400000 -5400000 A ch2 ch2 0 -10800000 A ch4 ch4 10800000 -10800000 Z M ch2 x3b A ch2 ch2 5400000 -5400000 A ch4 ch4 0 -10800000 Z",
7128
+ {
7129
+ fill: "darkenLess",
7130
+ stroke: false
7131
+ }
7132
+ ),
7113
7133
  p(
7114
7134
  "M l x3 A ch2 ch2 10800000 -10800000 L ch x4 M y4 ch2 L y4 ch M ch2 x3b L ch2 x3 A ch4 ch4 10800000 10800000",
7115
7135
  { fill: "none" }
@@ -19844,7 +19864,7 @@ function radarSvg(model, area) {
19844
19864
  }
19845
19865
 
19846
19866
  // chart/render/chart-svg-hierarchy.ts
19847
- var colorAt2 = (model, index) => {
19867
+ var colorAt = (model, index) => {
19848
19868
  const first3 = model.series[0];
19849
19869
  const colors = first3?.pointColors;
19850
19870
  return (colors && colors.length > 0 ? colors[index % colors.length] : void 0) ?? first3?.color ?? "#4472C4";
@@ -19873,7 +19893,7 @@ function treemapSvg(model, area) {
19873
19893
  }
19874
19894
  out.push(`<g data-chart-series="${cell.seriesIndex}" data-chart-point="${cell.pointIndex}">`);
19875
19895
  out.push(
19876
- rect2(cell.x, cell.y, cell.w, cell.h, colorAt2(model, cell.colorIndex)).replace(
19896
+ rect2(cell.x, cell.y, cell.w, cell.h, colorAt(model, cell.colorIndex)).replace(
19877
19897
  "/>",
19878
19898
  ' rx="2"/>'
19879
19899
  )
@@ -19912,7 +19932,7 @@ function sunburstSvg(model, area) {
19912
19932
  );
19913
19933
  for (const arc3 of arcs)
19914
19934
  out.push(
19915
- `<path d="${arc3.d}" fill="${colorAt2(model, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
19935
+ `<path d="${arc3.d}" fill="${colorAt(model, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
19916
19936
  );
19917
19937
  const flatLabels = levels.length > 1 || model.series.length !== 1 ? void 0 : model.categories;
19918
19938
  for (const arc3 of model.hierarchy?.labels === false ? [] : arcs) {
@@ -21837,16 +21857,6 @@ var DEFAULT_SHAPE_LINE_EMU = 12700;
21837
21857
  var isLinePreset = (preset) => /^(line|straightConnector1|bentConnector\d|curvedConnector\d)$/.test(preset);
21838
21858
 
21839
21859
  // docx/shape-svg.ts
21840
- var DASHES2 = {
21841
- dash: "4 3",
21842
- sysDash: "3 1",
21843
- dot: "1 2",
21844
- sysDot: "1 1",
21845
- dashDot: "4 3 1 3",
21846
- lgDash: "8 3",
21847
- lgDashDot: "8 3 1 3",
21848
- sysDashDot: "3 1 1 1"
21849
- };
21850
21860
  var escapeXml = (text2) => text2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
21851
21861
  var round = (value) => Math.round(value * 100) / 100;
21852
21862
  function shapeColorCss(color, theme) {
@@ -21867,11 +21877,13 @@ function fillPaint(fill, theme) {
21867
21877
  }
21868
21878
  function shapeAppearance(spec, theme) {
21869
21879
  const line4 = spec.line;
21880
+ const strokeWidthPx = round((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL);
21881
+ const dashUnits = dashPatternUnits(line4?.dash);
21870
21882
  return {
21871
21883
  fill: isLinePreset(spec.preset) ? "none" : fillPaint(spec.fill, theme),
21872
21884
  stroke: linePaint(line4?.fill, theme),
21873
- strokeWidthPx: round((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL),
21874
- ...line4?.dash && DASHES2[line4.dash] ? { dash: DASHES2[line4.dash] } : {}
21885
+ strokeWidthPx,
21886
+ ...dashUnits ? { dash: capCompensatedDashArray(dashUnits, strokeWidthPx) } : {}
21875
21887
  };
21876
21888
  }
21877
21889
  var luminance = (css) => {