ooxml-core 1.41.0 → 1.43.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 (166) hide show
  1. package/README.md +4 -0
  2. package/dist/{PptxHandler-3AGIITR7.mjs → PptxHandler-3VAVJDFB.mjs} +2 -2
  3. package/dist/PptxHandler-V23RDNEX.cjs +14 -0
  4. package/dist/PptxHandler-WB3KL2WH.mjs +5 -0
  5. package/dist/{PresentationBuilder-JNID4B4Z.mjs → PresentationBuilder-7LJMTRJ6.mjs} +2 -2
  6. package/dist/{PresentationBuilder-MZBKYOYD.cjs → PresentationBuilder-KHL6GONR.cjs} +6 -6
  7. package/dist/{PresentationBuilder-5DPKFUXP.mjs → PresentationBuilder-PY2GB4IG.mjs} +3 -3
  8. package/dist/automation/index.cjs +79 -91
  9. package/dist/automation/index.mjs +79 -91
  10. package/dist/chart/index.cjs +12 -9
  11. package/dist/chart/index.mjs +12 -9
  12. package/dist/{chunk-ZYCBJKAE.mjs → chunk-243ZYX2B.mjs} +1 -1
  13. package/dist/{chunk-LRBWCRQ3.cjs → chunk-3J6VIKLP.cjs} +3 -3
  14. package/dist/{chunk-DD7COXWR.mjs → chunk-4LEVL6ZW.mjs} +30 -13
  15. package/dist/chunk-CODMW5KF.cjs +110 -0
  16. package/dist/{chunk-HTELXT2N.mjs → chunk-HLYOHD2Z.mjs} +30 -12
  17. package/dist/{chunk-P3WAKBVS.mjs → chunk-IPV3J3I5.mjs} +82 -90
  18. package/dist/{chunk-6LGRRQ3K.mjs → chunk-JHYU7HGG.mjs} +1 -1
  19. package/dist/{chunk-JXR6YWBW.mjs → chunk-KCDLTVUI.mjs} +125 -126
  20. package/dist/chunk-O3YGBYGZ.mjs +104 -0
  21. package/dist/{chunk-75KBNUKS.cjs → chunk-QZPOPUI5.cjs} +82 -89
  22. package/dist/{chunk-3BIFRTU4.cjs → chunk-RNZQ2OU4.cjs} +1294 -1276
  23. package/dist/{chunk-UE23HF2N.mjs → chunk-VKFKEVHK.mjs} +1 -1
  24. package/dist/{chunk-KKVD3R6O.mjs → chunk-WEAWSXUX.mjs} +4 -4
  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 +125 -110
  32. package/dist/docx/index.mjs +125 -110
  33. package/dist/docx/layout/index.cjs +257 -110
  34. package/dist/docx/layout/index.d.ts +1 -0
  35. package/dist/docx/layout/index.d.ts.map +1 -1
  36. package/dist/docx/layout/index.mjs +257 -111
  37. package/dist/docx/layout/webfont-runs.d.ts +5 -0
  38. package/dist/docx/layout/webfont-runs.d.ts.map +1 -0
  39. package/dist/docx/load/index.cjs +67 -89
  40. package/dist/docx/load/index.mjs +67 -89
  41. package/dist/docx/shape-svg.d.ts.map +1 -1
  42. package/dist/docx/ui/index.cjs +79 -98
  43. package/dist/docx/ui/index.mjs +79 -98
  44. package/dist/drawingml/dash-pattern.d.ts +61 -0
  45. package/dist/drawingml/dash-pattern.d.ts.map +1 -0
  46. package/dist/drawingml/index.cjs +249 -43
  47. package/dist/drawingml/index.d.ts +3 -0
  48. package/dist/drawingml/index.d.ts.map +1 -1
  49. package/dist/drawingml/index.mjs +241 -44
  50. package/dist/drawingml/rect-path-gradient.d.ts +5 -0
  51. package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
  52. package/dist/drawingml/shape-path-gradient.d.ts +57 -0
  53. package/dist/drawingml/shape-path-gradient.d.ts.map +1 -0
  54. package/dist/geometry/index.cjs +68 -90
  55. package/dist/geometry/index.mjs +68 -90
  56. package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +2 -2
  57. package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -1
  58. package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -1
  59. package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -1
  60. package/dist/index.cjs +2937 -493
  61. package/dist/index.mjs +2937 -493
  62. package/dist/pptx/automation/index.cjs +366 -197
  63. package/dist/pptx/automation/index.d.ts +11 -17
  64. package/dist/pptx/automation/index.d.ts.map +1 -1
  65. package/dist/pptx/automation/index.mjs +156 -71
  66. package/dist/pptx/chunks/{elements-6BMEOo7i.d.ts → elements-PBugbKtv.d.ts} +3 -873
  67. package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +1 -0
  68. package/dist/pptx/chunks/{index-BbXLv6As.d.ts → index-Bj-hur0D.d.ts} +4 -4
  69. package/dist/pptx/chunks/{index-BbXLv6As.d.ts.map → index-Bj-hur0D.d.ts.map} +1 -1
  70. package/dist/pptx/chunks/{index-DvN0TkJJ.d.ts → index-CCJiD-Bm.d.ts} +14 -10
  71. package/dist/pptx/chunks/index-CCJiD-Bm.d.ts.map +1 -0
  72. package/dist/pptx/chunks/{index-Dija_Wth.d.ts → index-CGNb1TV9.d.ts} +22 -4
  73. package/dist/pptx/chunks/index-CGNb1TV9.d.ts.map +1 -0
  74. package/dist/pptx/chunks/table-C7ITXL3Y.d.ts +875 -0
  75. package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +1 -0
  76. package/dist/pptx/chunks/{text-operations-DorONr3h.d.ts → text-operations-BNJr7aGa.d.ts} +3 -2
  77. package/dist/pptx/chunks/text-operations-BNJr7aGa.d.ts.map +1 -0
  78. package/dist/pptx/cli/index.cjs +180 -102
  79. package/dist/pptx/cli/index.d.ts +1 -1
  80. package/dist/pptx/cli/index.mjs +4 -4
  81. package/dist/pptx/converter/index.cjs +69 -91
  82. package/dist/pptx/converter/index.d.ts +1 -1
  83. package/dist/pptx/converter/index.mjs +2 -2
  84. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  85. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  86. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  87. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  88. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  89. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  90. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  91. package/dist/pptx/editor/render/table-data-grid-ops.cjs +5 -5
  92. package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
  93. package/dist/pptx/editor/render/table-layout.cjs +6 -6
  94. package/dist/pptx/editor/render/table-layout.d.ts +8 -37
  95. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  96. package/dist/pptx/editor/render/table-layout.mjs +1 -1
  97. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
  98. package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
  99. package/dist/pptx/index.cjs +225 -135
  100. package/dist/pptx/index.d.ts +6 -5
  101. package/dist/pptx/index.mjs +5 -5
  102. package/dist/pptx/node/index.d.ts +1 -1
  103. package/dist/teams/index.cjs +136 -91
  104. package/dist/teams/index.mjs +136 -91
  105. package/dist/text/css-font-family.d.ts.map +1 -1
  106. package/dist/text/font-metrics/design-advances.generated.d.ts +3 -1
  107. package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
  108. package/dist/text/index.cjs +2252 -0
  109. package/dist/text/index.d.ts +1 -0
  110. package/dist/text/index.d.ts.map +1 -1
  111. package/dist/text/index.mjs +2231 -1
  112. package/dist/text/metric-font-family.d.ts.map +1 -1
  113. package/dist/text/webfonts/font-weight-names.d.ts +66 -0
  114. package/dist/text/webfonts/font-weight-names.d.ts.map +1 -0
  115. package/dist/text/webfonts/google-fonts-catalogue.d.ts +14 -0
  116. package/dist/text/webfonts/google-fonts-catalogue.d.ts.map +1 -0
  117. package/dist/text/webfonts/google-fonts-lookup.d.ts +7 -0
  118. package/dist/text/webfonts/google-fonts-lookup.d.ts.map +1 -0
  119. package/dist/text/webfonts/google-fonts-request.d.ts +57 -0
  120. package/dist/text/webfonts/google-fonts-request.d.ts.map +1 -0
  121. package/dist/text/webfonts/index.d.ts +12 -0
  122. package/dist/text/webfonts/index.d.ts.map +1 -0
  123. package/dist/text/webfonts/metric-clones.d.ts +17 -0
  124. package/dist/text/webfonts/metric-clones.d.ts.map +1 -0
  125. package/dist/text/webfonts/webfont-faces.d.ts +24 -0
  126. package/dist/text/webfonts/webfont-faces.d.ts.map +1 -0
  127. package/dist/visio/index.cjs +64 -0
  128. package/dist/visio/index.d.ts +1 -0
  129. package/dist/visio/index.d.ts.map +1 -1
  130. package/dist/visio/index.mjs +64 -1
  131. package/dist/visio/ui/index.cjs +8 -0
  132. package/dist/visio/ui/index.mjs +8 -0
  133. package/dist/visio/webfont-runs.d.ts +27 -0
  134. package/dist/visio/webfont-runs.d.ts.map +1 -0
  135. package/dist/xlsx/collab/index.cjs +67 -89
  136. package/dist/xlsx/collab/index.mjs +67 -89
  137. package/dist/xlsx/index.cjs +2253 -118
  138. package/dist/xlsx/index.mjs +2249 -119
  139. package/dist/xlsx/layout/font-stack.d.ts +8 -0
  140. package/dist/xlsx/layout/font-stack.d.ts.map +1 -0
  141. package/dist/xlsx/layout/index.d.ts +3 -1
  142. package/dist/xlsx/layout/index.d.ts.map +1 -1
  143. package/dist/xlsx/layout/shape-paint.d.ts.map +1 -1
  144. package/dist/xlsx/layout/shape-view.d.ts.map +1 -1
  145. package/dist/xlsx/layout/style-view.d.ts +2 -0
  146. package/dist/xlsx/layout/style-view.d.ts.map +1 -1
  147. package/dist/xlsx/layout/webfont-runs.d.ts +11 -0
  148. package/dist/xlsx/layout/webfont-runs.d.ts.map +1 -0
  149. package/dist/xlsx/load/index.cjs +67 -89
  150. package/dist/xlsx/load/index.mjs +67 -89
  151. package/dist/xlsx/ui/commands/util.d.ts.map +1 -1
  152. package/dist/xlsx/ui/context.d.ts +5 -0
  153. package/dist/xlsx/ui/context.d.ts.map +1 -1
  154. package/dist/xlsx/ui/grid/cell-paint.d.ts +3 -2
  155. package/dist/xlsx/ui/grid/cell-paint.d.ts.map +1 -1
  156. package/dist/xlsx/ui/index.cjs +2093 -102
  157. package/dist/xlsx/ui/index.mjs +2093 -103
  158. package/package.json +1 -1
  159. package/dist/PptxHandler-EL4E4SPH.mjs +0 -5
  160. package/dist/PptxHandler-OIZ3R3DJ.cjs +0 -14
  161. package/dist/chunk-3IT6ZD7K.mjs +0 -213
  162. package/dist/chunk-FRUB573B.cjs +0 -219
  163. package/dist/pptx/chunks/elements-6BMEOo7i.d.ts.map +0 -1
  164. package/dist/pptx/chunks/index-Dija_Wth.d.ts.map +0 -1
  165. package/dist/pptx/chunks/index-DvN0TkJJ.d.ts.map +0 -1
  166. package/dist/pptx/chunks/text-operations-DorONr3h.d.ts.map +0 -1
@@ -7548,7 +7548,7 @@ function lerpStops(a2, b, t) {
7548
7548
  opacity: oa + (ob - oa) * t
7549
7549
  };
7550
7550
  }
7551
- function colorAt(stops, position2) {
7551
+ function gradientColorAt(stops, position2) {
7552
7552
  const first3 = stops[0];
7553
7553
  const last = stops[stops.length - 1];
7554
7554
  if (position2 <= first3.position) {
@@ -7603,7 +7603,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
7603
7603
  if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
7604
7604
  for (let i2 = bands; i2 >= 0; i2 -= 1) {
7605
7605
  const t = i2 / bands;
7606
- const { color, opacity } = colorAt(sorted, t * 100);
7606
+ const { color, opacity } = gradientColorAt(sorted, t * 100);
7607
7607
  const left = lerpEdge(inner.left, 0, t);
7608
7608
  const top = lerpEdge(inner.top, 0, t);
7609
7609
  const right = lerpEdge(inner.right, 100, t);
@@ -8949,6 +8949,48 @@ function drawingPathData(path3, width, height) {
8949
8949
  return out.join(" ");
8950
8950
  }
8951
8951
 
8952
+ // drawingml/dash-pattern.ts
8953
+ var PRESET_PATTERNS = {
8954
+ dash: [4, 3],
8955
+ dot: [1, 3],
8956
+ lgDash: [8, 3],
8957
+ dashDot: [4, 3, 1, 3],
8958
+ lgDashDot: [8, 3, 1, 3],
8959
+ lgDashDotDot: [8, 3, 1, 3, 1, 3],
8960
+ sysDash: [3, 1],
8961
+ sysDot: [1, 1],
8962
+ sysDashDot: [3, 1, 1, 1],
8963
+ sysDashDotDot: [3, 1, 1, 1, 1, 1]
8964
+ };
8965
+ var CUSTOM_DASH_UNIT = 1e5;
8966
+ var FALLBACK_CUSTOM_PATTERN = [3, 2];
8967
+ function dashPenWidth(strokeWidth) {
8968
+ if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
8969
+ return Math.max(1, Math.ceil(strokeWidth - 0.5));
8970
+ }
8971
+ function dashPatternUnits(dashType, customSegments) {
8972
+ if (!dashType || dashType === "solid") return void 0;
8973
+ if (dashType === "custom") {
8974
+ const pattern = ([]).flatMap((seg) => [
8975
+ Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
8976
+ Math.max(0, seg.space) / CUSTOM_DASH_UNIT
8977
+ ]);
8978
+ return pattern.some((n2) => n2 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
8979
+ }
8980
+ return PRESET_PATTERNS[dashType];
8981
+ }
8982
+ function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
8983
+ const pen = dashPenWidth(strokeWidth);
8984
+ const out = [];
8985
+ for (let i2 = 0; i2 < pattern.length; i2 += 1) {
8986
+ const len = (pattern[i2] ?? 0) * pen;
8987
+ {
8988
+ out.push(len);
8989
+ }
8990
+ }
8991
+ return out.map((n2) => Number(n2.toFixed(4))).join(" ");
8992
+ }
8993
+
8952
8994
  // geometry/preset-shape-exact-dsl.ts
8953
8995
  function g(line4) {
8954
8996
  const [name2, ...rest] = line4.trim().split(/\s+/);
@@ -9079,84 +9121,22 @@ var triangle = (g3, dir) => g3.poly([
9079
9121
  [D * dir, 0],
9080
9122
  [-D * dir, D]
9081
9123
  ]);
9082
- var QUESTION = [
9083
- [-4.8, -33.7],
9084
- [-6.3, -31.5],
9085
- [-7.8, -31.5],
9086
- [-12.3, -28.5],
9087
- [-14.5, -28.5],
9088
- [-15.3, -27.7],
9089
- [-15.3, -25.5],
9090
- [-18.3, -21],
9091
- [-19, -17.2],
9092
- [-20.5, -16.5],
9093
- [-20.5, -12.7],
9094
- [-19, -12.7],
9095
- [-18.3, -14.2],
9096
- [-10.8, -14.2],
9097
- [-10, -13.5],
9098
- [-8.5, -13.5],
9099
- [-9.3, -17.2],
9100
- [-7.8, -19.5],
9101
- [-4, -22.5],
9102
- [-3.3, -21.7],
9103
- [-1.8, -21.7],
9104
- [-1, -23.2],
9105
- [0.5, -23.2],
9106
- [1.2, -21.7],
9107
- [2.7, -21.7],
9108
- [3.5, -22.5],
9109
- [8, -18.7],
9110
- [8.7, -17.2],
9111
- [8, -16.5],
9112
- [8, -15],
9113
- [9.5, -14.2],
9114
- [9.5, -13.5],
9115
- [8, -12.7],
9116
- [8.7, -9.7],
9117
- [5, -6],
9118
- [2, -6],
9119
- [-2.5, -2.2],
9120
- [-3.3, 0.8],
9121
- [-5.5, 2.3],
9122
- [-4.8, 6.8],
9123
- [-6.3, 7.5],
9124
- [-6.3, 18],
9125
- [-4.8, 18],
9126
- [-4, 17.3],
9127
- [4.2, 17.3],
9128
- [4.2, 6.8],
9129
- [6.5, 5.3],
9130
- [6.5, 3.8],
9131
- [8, 3],
9132
- [8, 1.5],
9133
- [8.7, 0.8],
9134
- [13.2, 0],
9135
- [17, -4.5],
9136
- [18.5, -4.5],
9137
- [18.5, -6],
9138
- [17.7, -6.7],
9139
- [18.5, -8.2],
9140
- [18.5, -15],
9141
- [20, -15.7],
9142
- [20, -18],
9143
- [17.7, -19.5],
9144
- [17.7, -21],
9145
- [15.5, -24.7],
9146
- [15.5, -27],
9147
- [14, -27],
9148
- [13.2, -27.7],
9149
- [13.2, -29.2],
9150
- [9.5, -30],
9151
- [8.7, -30.7],
9152
- [8.7, -32.2],
9153
- [5.7, -31.5],
9154
- [4.2, -33.7],
9155
- [2.7, -33.7],
9156
- [2, -32.2],
9157
- [-2.5, -32.2],
9158
- [-3.3, -33.7]
9159
- ];
9124
+ var U = 90;
9125
+ var question = (g3) => {
9126
+ const x = (v) => g3.x(v * U);
9127
+ const y = (v) => g3.y(v * U);
9128
+ const r = (v) => g3.len(v * U);
9129
+ return [
9130
+ `M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
9131
+ `A ${r(0.108)} ${r(0.162)} 0 5400000`,
9132
+ `A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
9133
+ `L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
9134
+ `A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
9135
+ `A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
9136
+ `A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
9137
+ `L ${x(-0.214)} ${y(-0.162)} Z`
9138
+ ].join(" ");
9139
+ };
9160
9140
  var MOVIE = [
9161
9141
  [-33.75, -16.5],
9162
9142
  [-33.75, -3],
@@ -9263,8 +9243,8 @@ var buttons = {
9263
9243
  )
9264
9244
  ]),
9265
9245
  actionButtonHelp: build("actionButtonHelp", (g3) => [
9266
- darken(g3.poly(QUESTION)),
9267
- darken(g3.circle(-0.2, 27.4, 7))
9246
+ darken(question(g3)),
9247
+ darken(g3.circle(0, 0.295 * U, 0.08 * U))
9268
9248
  ]),
9269
9249
  actionButtonInformation: build("actionButtonInformation", (g3) => [
9270
9250
  darken(g3.circle(0, 0.4, 34)),
@@ -12587,12 +12567,46 @@ var leftRightUpArrow2 = exactDef(
12587
12567
  )
12588
12568
  ]
12589
12569
  );
12570
+ var swooshArrow3 = exactDef(
12571
+ "swooshArrow",
12572
+ { adj1: 25e3, adj2: 16667 },
12573
+ [
12574
+ "a1 pin 1 adj1 75000",
12575
+ "maxAdj2 */ 70000 w ss",
12576
+ "a2 pin 0 adj2 maxAdj2",
12577
+ "ad1 */ h a1 100000",
12578
+ "ad2 */ ss a2 100000",
12579
+ "xB +- r 0 ad2",
12580
+ "yB +- t ssd8 0",
12581
+ "alfa */ cd4 1 14",
12582
+ "dx0 tan ssd8 alfa",
12583
+ "xC +- xB 0 dx0",
12584
+ "dx1 tan ad1 alfa",
12585
+ "yF +- yB ad1 0",
12586
+ "xF +- xB dx1 0",
12587
+ "xE +- xF dx0 0",
12588
+ "yE +- yF ssd8 0",
12589
+ "dy2 +- yE 0 t",
12590
+ "dy22 */ dy2 1 2",
12591
+ "dy3 */ h 1 20",
12592
+ "yD +- dy22 0 dy3",
12593
+ "dy4 */ hd6 1 1",
12594
+ "yP1 +- hd6 dy4 0",
12595
+ "xP1 val wd6",
12596
+ "dy5 */ hd6 1 2",
12597
+ "yP2 +- yF dy5 0",
12598
+ "xP2 val wd4"
12599
+ ],
12600
+ "l t r b",
12601
+ [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")]
12602
+ );
12590
12603
  var EXACT_ARROW_PRESET_DEFINITIONS = {
12591
12604
  leftRightArrow: leftRightArrow2,
12592
12605
  upDownArrow: upDownArrow2,
12593
12606
  quadArrow: quadArrow2,
12594
12607
  leftUpArrow: leftUpArrow2,
12595
- leftRightUpArrow: leftRightUpArrow2
12608
+ leftRightUpArrow: leftRightUpArrow2,
12609
+ swooshArrow: swooshArrow3
12596
12610
  };
12597
12611
 
12598
12612
  // geometry/preset-shape-definitions-exact-circular.ts
@@ -13398,10 +13412,13 @@ var verticalScroll = exactDef(
13398
13412
  p(
13399
13413
  "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"
13400
13414
  ),
13401
- p("M l y4 A ch2 ch2 10800000 21600000 Z M xsw cy3 A ch4 ch4 0 21600000 Z", {
13402
- fill: "darkenLess",
13403
- stroke: false
13404
- }),
13415
+ p(
13416
+ "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",
13417
+ {
13418
+ fill: "darkenLess",
13419
+ stroke: false
13420
+ }
13421
+ ),
13405
13422
  p(
13406
13423
  "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",
13407
13424
  { fill: "none" }
@@ -13417,10 +13434,13 @@ var horizontalScroll = exactDef(
13417
13434
  p(
13418
13435
  "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"
13419
13436
  ),
13420
- p("M y4 t A ch2 ch2 16200000 21600000 Z M ch cyw A ch4 ch4 0 21600000 Z", {
13421
- fill: "darkenLess",
13422
- stroke: false
13423
- }),
13437
+ p(
13438
+ "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",
13439
+ {
13440
+ fill: "darkenLess",
13441
+ stroke: false
13442
+ }
13443
+ ),
13424
13444
  p(
13425
13445
  "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",
13426
13446
  { fill: "none" }
@@ -34795,10 +34815,13 @@ var FALLBACKS = {
34795
34815
  calibri: '"Calibri", "Carlito", "Segoe UI", Arial, sans-serif',
34796
34816
  "calibri light": '"Calibri Light", "Calibri", "Carlito", "Segoe UI", Arial, sans-serif',
34797
34817
  cambria: '"Cambria", "Caladea", Georgia, serif',
34798
- arial: 'Arial, "Liberation Sans", Helvetica, sans-serif',
34799
- "times new roman": '"Times New Roman", "Liberation Serif", Times, serif',
34800
- "courier new": '"Courier New", "Liberation Mono", monospace',
34801
- aptos: '"Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif'
34818
+ arial: 'Arial, "Arimo", "Liberation Sans", Helvetica, sans-serif',
34819
+ "times new roman": '"Times New Roman", "Tinos", "Liberation Serif", Times, serif',
34820
+ "courier new": '"Courier New", "Cousine", "Liberation Mono", monospace',
34821
+ georgia: '"Georgia", "Gelasio", serif',
34822
+ aptos: '"Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif',
34823
+ "aptos narrow": '"Aptos Narrow", "Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif',
34824
+ "aptos display": '"Aptos Display", "Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif'
34802
34825
  };
34803
34826
  function cssFontFamily(name2) {
34804
34827
  const known = FALLBACKS[name2.toLowerCase()];
@@ -38575,7 +38598,7 @@ function radarSvg(model, area) {
38575
38598
  }
38576
38599
 
38577
38600
  // chart/render/chart-svg-hierarchy.ts
38578
- var colorAt2 = (model, index) => {
38601
+ var colorAt = (model, index) => {
38579
38602
  const first3 = model.series[0];
38580
38603
  const colors = first3?.pointColors;
38581
38604
  return (colors && colors.length > 0 ? colors[index % colors.length] : void 0) ?? first3?.color ?? "#4472C4";
@@ -38604,7 +38627,7 @@ function treemapSvg(model, area) {
38604
38627
  }
38605
38628
  out.push(`<g data-chart-series="${cell2.seriesIndex}" data-chart-point="${cell2.pointIndex}">`);
38606
38629
  out.push(
38607
- rect2(cell2.x, cell2.y, cell2.w, cell2.h, colorAt2(model, cell2.colorIndex)).replace(
38630
+ rect2(cell2.x, cell2.y, cell2.w, cell2.h, colorAt(model, cell2.colorIndex)).replace(
38608
38631
  "/>",
38609
38632
  ' rx="2"/>'
38610
38633
  )
@@ -38643,7 +38666,7 @@ function sunburstSvg(model, area) {
38643
38666
  );
38644
38667
  for (const arc3 of arcs)
38645
38668
  out.push(
38646
- `<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}"`}/>`
38669
+ `<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}"`}/>`
38647
38670
  );
38648
38671
  const flatLabels = levels.length > 1 || model.series.length !== 1 ? void 0 : model.categories;
38649
38672
  for (const arc3 of model.hierarchy?.labels === false ? [] : arcs) {
@@ -53030,16 +53053,6 @@ var DEFAULT_DRAWN_SHAPE = { widthPx: 96, heightPx: 64 };
53030
53053
  var isDirectionalPreset = (preset) => /^(line|straightConnector1|bentConnector\d|curvedConnector\d)$/.test(preset);
53031
53054
 
53032
53055
  // docx/shape-svg.ts
53033
- var DASHES2 = {
53034
- dash: "4 3",
53035
- sysDash: "3 1",
53036
- dot: "1 2",
53037
- sysDot: "1 1",
53038
- dashDot: "4 3 1 3",
53039
- lgDash: "8 3",
53040
- lgDashDot: "8 3 1 3",
53041
- sysDashDot: "3 1 1 1"
53042
- };
53043
53056
  var escapeXml = (text2) => text2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
53044
53057
  var round2 = (value) => Math.round(value * 100) / 100;
53045
53058
  function shapeColorCss(color, theme) {
@@ -53060,11 +53073,13 @@ function fillPaint(fill, theme) {
53060
53073
  }
53061
53074
  function shapeAppearance(spec, theme) {
53062
53075
  const line4 = spec.line;
53076
+ const strokeWidthPx = round2((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL);
53077
+ const dashUnits = dashPatternUnits(line4?.dash);
53063
53078
  return {
53064
53079
  fill: isLinePreset(spec.preset) ? "none" : fillPaint(spec.fill, theme),
53065
53080
  stroke: linePaint(line4?.fill, theme),
53066
- strokeWidthPx: round2((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL),
53067
- ...line4?.dash && DASHES2[line4.dash] ? { dash: DASHES2[line4.dash] } : {}
53081
+ strokeWidthPx,
53082
+ ...dashUnits ? { dash: capCompensatedDashArray(dashUnits, strokeWidthPx) } : {}
53068
53083
  };
53069
53084
  }
53070
53085
  var luminance = (css) => {
@@ -7542,7 +7542,7 @@ function lerpStops(a2, b, t) {
7542
7542
  opacity: oa + (ob - oa) * t
7543
7543
  };
7544
7544
  }
7545
- function colorAt(stops, position2) {
7545
+ function gradientColorAt(stops, position2) {
7546
7546
  const first3 = stops[0];
7547
7547
  const last = stops[stops.length - 1];
7548
7548
  if (position2 <= first3.position) {
@@ -7597,7 +7597,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
7597
7597
  if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
7598
7598
  for (let i2 = bands; i2 >= 0; i2 -= 1) {
7599
7599
  const t = i2 / bands;
7600
- const { color, opacity } = colorAt(sorted, t * 100);
7600
+ const { color, opacity } = gradientColorAt(sorted, t * 100);
7601
7601
  const left = lerpEdge(inner.left, 0, t);
7602
7602
  const top = lerpEdge(inner.top, 0, t);
7603
7603
  const right = lerpEdge(inner.right, 100, t);
@@ -8943,6 +8943,48 @@ function drawingPathData(path3, width, height) {
8943
8943
  return out.join(" ");
8944
8944
  }
8945
8945
 
8946
+ // drawingml/dash-pattern.ts
8947
+ var PRESET_PATTERNS = {
8948
+ dash: [4, 3],
8949
+ dot: [1, 3],
8950
+ lgDash: [8, 3],
8951
+ dashDot: [4, 3, 1, 3],
8952
+ lgDashDot: [8, 3, 1, 3],
8953
+ lgDashDotDot: [8, 3, 1, 3, 1, 3],
8954
+ sysDash: [3, 1],
8955
+ sysDot: [1, 1],
8956
+ sysDashDot: [3, 1, 1, 1],
8957
+ sysDashDotDot: [3, 1, 1, 1, 1, 1]
8958
+ };
8959
+ var CUSTOM_DASH_UNIT = 1e5;
8960
+ var FALLBACK_CUSTOM_PATTERN = [3, 2];
8961
+ function dashPenWidth(strokeWidth) {
8962
+ if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
8963
+ return Math.max(1, Math.ceil(strokeWidth - 0.5));
8964
+ }
8965
+ function dashPatternUnits(dashType, customSegments) {
8966
+ if (!dashType || dashType === "solid") return void 0;
8967
+ if (dashType === "custom") {
8968
+ const pattern = ([]).flatMap((seg) => [
8969
+ Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
8970
+ Math.max(0, seg.space) / CUSTOM_DASH_UNIT
8971
+ ]);
8972
+ return pattern.some((n2) => n2 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
8973
+ }
8974
+ return PRESET_PATTERNS[dashType];
8975
+ }
8976
+ function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
8977
+ const pen = dashPenWidth(strokeWidth);
8978
+ const out = [];
8979
+ for (let i2 = 0; i2 < pattern.length; i2 += 1) {
8980
+ const len = (pattern[i2] ?? 0) * pen;
8981
+ {
8982
+ out.push(len);
8983
+ }
8984
+ }
8985
+ return out.map((n2) => Number(n2.toFixed(4))).join(" ");
8986
+ }
8987
+
8946
8988
  // geometry/preset-shape-exact-dsl.ts
8947
8989
  function g(line4) {
8948
8990
  const [name2, ...rest] = line4.trim().split(/\s+/);
@@ -9073,84 +9115,22 @@ var triangle = (g3, dir) => g3.poly([
9073
9115
  [D * dir, 0],
9074
9116
  [-D * dir, D]
9075
9117
  ]);
9076
- var QUESTION = [
9077
- [-4.8, -33.7],
9078
- [-6.3, -31.5],
9079
- [-7.8, -31.5],
9080
- [-12.3, -28.5],
9081
- [-14.5, -28.5],
9082
- [-15.3, -27.7],
9083
- [-15.3, -25.5],
9084
- [-18.3, -21],
9085
- [-19, -17.2],
9086
- [-20.5, -16.5],
9087
- [-20.5, -12.7],
9088
- [-19, -12.7],
9089
- [-18.3, -14.2],
9090
- [-10.8, -14.2],
9091
- [-10, -13.5],
9092
- [-8.5, -13.5],
9093
- [-9.3, -17.2],
9094
- [-7.8, -19.5],
9095
- [-4, -22.5],
9096
- [-3.3, -21.7],
9097
- [-1.8, -21.7],
9098
- [-1, -23.2],
9099
- [0.5, -23.2],
9100
- [1.2, -21.7],
9101
- [2.7, -21.7],
9102
- [3.5, -22.5],
9103
- [8, -18.7],
9104
- [8.7, -17.2],
9105
- [8, -16.5],
9106
- [8, -15],
9107
- [9.5, -14.2],
9108
- [9.5, -13.5],
9109
- [8, -12.7],
9110
- [8.7, -9.7],
9111
- [5, -6],
9112
- [2, -6],
9113
- [-2.5, -2.2],
9114
- [-3.3, 0.8],
9115
- [-5.5, 2.3],
9116
- [-4.8, 6.8],
9117
- [-6.3, 7.5],
9118
- [-6.3, 18],
9119
- [-4.8, 18],
9120
- [-4, 17.3],
9121
- [4.2, 17.3],
9122
- [4.2, 6.8],
9123
- [6.5, 5.3],
9124
- [6.5, 3.8],
9125
- [8, 3],
9126
- [8, 1.5],
9127
- [8.7, 0.8],
9128
- [13.2, 0],
9129
- [17, -4.5],
9130
- [18.5, -4.5],
9131
- [18.5, -6],
9132
- [17.7, -6.7],
9133
- [18.5, -8.2],
9134
- [18.5, -15],
9135
- [20, -15.7],
9136
- [20, -18],
9137
- [17.7, -19.5],
9138
- [17.7, -21],
9139
- [15.5, -24.7],
9140
- [15.5, -27],
9141
- [14, -27],
9142
- [13.2, -27.7],
9143
- [13.2, -29.2],
9144
- [9.5, -30],
9145
- [8.7, -30.7],
9146
- [8.7, -32.2],
9147
- [5.7, -31.5],
9148
- [4.2, -33.7],
9149
- [2.7, -33.7],
9150
- [2, -32.2],
9151
- [-2.5, -32.2],
9152
- [-3.3, -33.7]
9153
- ];
9118
+ var U = 90;
9119
+ var question = (g3) => {
9120
+ const x = (v) => g3.x(v * U);
9121
+ const y = (v) => g3.y(v * U);
9122
+ const r = (v) => g3.len(v * U);
9123
+ return [
9124
+ `M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
9125
+ `A ${r(0.108)} ${r(0.162)} 0 5400000`,
9126
+ `A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
9127
+ `L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
9128
+ `A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
9129
+ `A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
9130
+ `A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
9131
+ `L ${x(-0.214)} ${y(-0.162)} Z`
9132
+ ].join(" ");
9133
+ };
9154
9134
  var MOVIE = [
9155
9135
  [-33.75, -16.5],
9156
9136
  [-33.75, -3],
@@ -9257,8 +9237,8 @@ var buttons = {
9257
9237
  )
9258
9238
  ]),
9259
9239
  actionButtonHelp: build("actionButtonHelp", (g3) => [
9260
- darken(g3.poly(QUESTION)),
9261
- darken(g3.circle(-0.2, 27.4, 7))
9240
+ darken(question(g3)),
9241
+ darken(g3.circle(0, 0.295 * U, 0.08 * U))
9262
9242
  ]),
9263
9243
  actionButtonInformation: build("actionButtonInformation", (g3) => [
9264
9244
  darken(g3.circle(0, 0.4, 34)),
@@ -12581,12 +12561,46 @@ var leftRightUpArrow2 = exactDef(
12581
12561
  )
12582
12562
  ]
12583
12563
  );
12564
+ var swooshArrow3 = exactDef(
12565
+ "swooshArrow",
12566
+ { adj1: 25e3, adj2: 16667 },
12567
+ [
12568
+ "a1 pin 1 adj1 75000",
12569
+ "maxAdj2 */ 70000 w ss",
12570
+ "a2 pin 0 adj2 maxAdj2",
12571
+ "ad1 */ h a1 100000",
12572
+ "ad2 */ ss a2 100000",
12573
+ "xB +- r 0 ad2",
12574
+ "yB +- t ssd8 0",
12575
+ "alfa */ cd4 1 14",
12576
+ "dx0 tan ssd8 alfa",
12577
+ "xC +- xB 0 dx0",
12578
+ "dx1 tan ad1 alfa",
12579
+ "yF +- yB ad1 0",
12580
+ "xF +- xB dx1 0",
12581
+ "xE +- xF dx0 0",
12582
+ "yE +- yF ssd8 0",
12583
+ "dy2 +- yE 0 t",
12584
+ "dy22 */ dy2 1 2",
12585
+ "dy3 */ h 1 20",
12586
+ "yD +- dy22 0 dy3",
12587
+ "dy4 */ hd6 1 1",
12588
+ "yP1 +- hd6 dy4 0",
12589
+ "xP1 val wd6",
12590
+ "dy5 */ hd6 1 2",
12591
+ "yP2 +- yF dy5 0",
12592
+ "xP2 val wd4"
12593
+ ],
12594
+ "l t r b",
12595
+ [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")]
12596
+ );
12584
12597
  var EXACT_ARROW_PRESET_DEFINITIONS = {
12585
12598
  leftRightArrow: leftRightArrow2,
12586
12599
  upDownArrow: upDownArrow2,
12587
12600
  quadArrow: quadArrow2,
12588
12601
  leftUpArrow: leftUpArrow2,
12589
- leftRightUpArrow: leftRightUpArrow2
12602
+ leftRightUpArrow: leftRightUpArrow2,
12603
+ swooshArrow: swooshArrow3
12590
12604
  };
12591
12605
 
12592
12606
  // geometry/preset-shape-definitions-exact-circular.ts
@@ -13392,10 +13406,13 @@ var verticalScroll = exactDef(
13392
13406
  p(
13393
13407
  "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"
13394
13408
  ),
13395
- p("M l y4 A ch2 ch2 10800000 21600000 Z M xsw cy3 A ch4 ch4 0 21600000 Z", {
13396
- fill: "darkenLess",
13397
- stroke: false
13398
- }),
13409
+ p(
13410
+ "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",
13411
+ {
13412
+ fill: "darkenLess",
13413
+ stroke: false
13414
+ }
13415
+ ),
13399
13416
  p(
13400
13417
  "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",
13401
13418
  { fill: "none" }
@@ -13411,10 +13428,13 @@ var horizontalScroll = exactDef(
13411
13428
  p(
13412
13429
  "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"
13413
13430
  ),
13414
- p("M y4 t A ch2 ch2 16200000 21600000 Z M ch cyw A ch4 ch4 0 21600000 Z", {
13415
- fill: "darkenLess",
13416
- stroke: false
13417
- }),
13431
+ p(
13432
+ "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",
13433
+ {
13434
+ fill: "darkenLess",
13435
+ stroke: false
13436
+ }
13437
+ ),
13418
13438
  p(
13419
13439
  "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",
13420
13440
  { fill: "none" }
@@ -34789,10 +34809,13 @@ var FALLBACKS = {
34789
34809
  calibri: '"Calibri", "Carlito", "Segoe UI", Arial, sans-serif',
34790
34810
  "calibri light": '"Calibri Light", "Calibri", "Carlito", "Segoe UI", Arial, sans-serif',
34791
34811
  cambria: '"Cambria", "Caladea", Georgia, serif',
34792
- arial: 'Arial, "Liberation Sans", Helvetica, sans-serif',
34793
- "times new roman": '"Times New Roman", "Liberation Serif", Times, serif',
34794
- "courier new": '"Courier New", "Liberation Mono", monospace',
34795
- aptos: '"Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif'
34812
+ arial: 'Arial, "Arimo", "Liberation Sans", Helvetica, sans-serif',
34813
+ "times new roman": '"Times New Roman", "Tinos", "Liberation Serif", Times, serif',
34814
+ "courier new": '"Courier New", "Cousine", "Liberation Mono", monospace',
34815
+ georgia: '"Georgia", "Gelasio", serif',
34816
+ aptos: '"Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif',
34817
+ "aptos narrow": '"Aptos Narrow", "Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif',
34818
+ "aptos display": '"Aptos Display", "Aptos", "Calibri", "Carlito", "Segoe UI", sans-serif'
34796
34819
  };
34797
34820
  function cssFontFamily(name2) {
34798
34821
  const known = FALLBACKS[name2.toLowerCase()];
@@ -38569,7 +38592,7 @@ function radarSvg(model, area) {
38569
38592
  }
38570
38593
 
38571
38594
  // chart/render/chart-svg-hierarchy.ts
38572
- var colorAt2 = (model, index) => {
38595
+ var colorAt = (model, index) => {
38573
38596
  const first3 = model.series[0];
38574
38597
  const colors = first3?.pointColors;
38575
38598
  return (colors && colors.length > 0 ? colors[index % colors.length] : void 0) ?? first3?.color ?? "#4472C4";
@@ -38598,7 +38621,7 @@ function treemapSvg(model, area) {
38598
38621
  }
38599
38622
  out.push(`<g data-chart-series="${cell2.seriesIndex}" data-chart-point="${cell2.pointIndex}">`);
38600
38623
  out.push(
38601
- rect2(cell2.x, cell2.y, cell2.w, cell2.h, colorAt2(model, cell2.colorIndex)).replace(
38624
+ rect2(cell2.x, cell2.y, cell2.w, cell2.h, colorAt(model, cell2.colorIndex)).replace(
38602
38625
  "/>",
38603
38626
  ' rx="2"/>'
38604
38627
  )
@@ -38637,7 +38660,7 @@ function sunburstSvg(model, area) {
38637
38660
  );
38638
38661
  for (const arc3 of arcs)
38639
38662
  out.push(
38640
- `<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}"`}/>`
38663
+ `<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}"`}/>`
38641
38664
  );
38642
38665
  const flatLabels = levels.length > 1 || model.series.length !== 1 ? void 0 : model.categories;
38643
38666
  for (const arc3 of model.hierarchy?.labels === false ? [] : arcs) {
@@ -53024,16 +53047,6 @@ var DEFAULT_DRAWN_SHAPE = { widthPx: 96, heightPx: 64 };
53024
53047
  var isDirectionalPreset = (preset) => /^(line|straightConnector1|bentConnector\d|curvedConnector\d)$/.test(preset);
53025
53048
 
53026
53049
  // docx/shape-svg.ts
53027
- var DASHES2 = {
53028
- dash: "4 3",
53029
- sysDash: "3 1",
53030
- dot: "1 2",
53031
- sysDot: "1 1",
53032
- dashDot: "4 3 1 3",
53033
- lgDash: "8 3",
53034
- lgDashDot: "8 3 1 3",
53035
- sysDashDot: "3 1 1 1"
53036
- };
53037
53050
  var escapeXml = (text2) => text2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
53038
53051
  var round2 = (value) => Math.round(value * 100) / 100;
53039
53052
  function shapeColorCss(color, theme) {
@@ -53054,11 +53067,13 @@ function fillPaint(fill, theme) {
53054
53067
  }
53055
53068
  function shapeAppearance(spec, theme) {
53056
53069
  const line4 = spec.line;
53070
+ const strokeWidthPx = round2((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL);
53071
+ const dashUnits = dashPatternUnits(line4?.dash);
53057
53072
  return {
53058
53073
  fill: isLinePreset(spec.preset) ? "none" : fillPaint(spec.fill, theme),
53059
53074
  stroke: linePaint(line4?.fill, theme),
53060
- strokeWidthPx: round2((line4?.widthEmu ?? DEFAULT_SHAPE_LINE_EMU) / EMU_PER_PIXEL),
53061
- ...line4?.dash && DASHES2[line4.dash] ? { dash: DASHES2[line4.dash] } : {}
53075
+ strokeWidthPx,
53076
+ ...dashUnits ? { dash: capCompensatedDashArray(dashUnits, strokeWidthPx) } : {}
53062
53077
  };
53063
53078
  }
53064
53079
  var luminance = (css) => {