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
@@ -25607,84 +25607,22 @@ var triangle = (g3, dir) => g3.poly([
25607
25607
  [D * dir, 0],
25608
25608
  [-D * dir, D]
25609
25609
  ]);
25610
- var QUESTION = [
25611
- [-4.8, -33.7],
25612
- [-6.3, -31.5],
25613
- [-7.8, -31.5],
25614
- [-12.3, -28.5],
25615
- [-14.5, -28.5],
25616
- [-15.3, -27.7],
25617
- [-15.3, -25.5],
25618
- [-18.3, -21],
25619
- [-19, -17.2],
25620
- [-20.5, -16.5],
25621
- [-20.5, -12.7],
25622
- [-19, -12.7],
25623
- [-18.3, -14.2],
25624
- [-10.8, -14.2],
25625
- [-10, -13.5],
25626
- [-8.5, -13.5],
25627
- [-9.3, -17.2],
25628
- [-7.8, -19.5],
25629
- [-4, -22.5],
25630
- [-3.3, -21.7],
25631
- [-1.8, -21.7],
25632
- [-1, -23.2],
25633
- [0.5, -23.2],
25634
- [1.2, -21.7],
25635
- [2.7, -21.7],
25636
- [3.5, -22.5],
25637
- [8, -18.7],
25638
- [8.7, -17.2],
25639
- [8, -16.5],
25640
- [8, -15],
25641
- [9.5, -14.2],
25642
- [9.5, -13.5],
25643
- [8, -12.7],
25644
- [8.7, -9.7],
25645
- [5, -6],
25646
- [2, -6],
25647
- [-2.5, -2.2],
25648
- [-3.3, 0.8],
25649
- [-5.5, 2.3],
25650
- [-4.8, 6.8],
25651
- [-6.3, 7.5],
25652
- [-6.3, 18],
25653
- [-4.8, 18],
25654
- [-4, 17.3],
25655
- [4.2, 17.3],
25656
- [4.2, 6.8],
25657
- [6.5, 5.3],
25658
- [6.5, 3.8],
25659
- [8, 3],
25660
- [8, 1.5],
25661
- [8.7, 0.8],
25662
- [13.2, 0],
25663
- [17, -4.5],
25664
- [18.5, -4.5],
25665
- [18.5, -6],
25666
- [17.7, -6.7],
25667
- [18.5, -8.2],
25668
- [18.5, -15],
25669
- [20, -15.7],
25670
- [20, -18],
25671
- [17.7, -19.5],
25672
- [17.7, -21],
25673
- [15.5, -24.7],
25674
- [15.5, -27],
25675
- [14, -27],
25676
- [13.2, -27.7],
25677
- [13.2, -29.2],
25678
- [9.5, -30],
25679
- [8.7, -30.7],
25680
- [8.7, -32.2],
25681
- [5.7, -31.5],
25682
- [4.2, -33.7],
25683
- [2.7, -33.7],
25684
- [2, -32.2],
25685
- [-2.5, -32.2],
25686
- [-3.3, -33.7]
25687
- ];
25610
+ var U = 90;
25611
+ var question = (g3) => {
25612
+ const x = (v) => g3.x(v * U);
25613
+ const y = (v) => g3.y(v * U);
25614
+ const r = (v) => g3.len(v * U);
25615
+ return [
25616
+ `M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
25617
+ `A ${r(0.108)} ${r(0.162)} 0 5400000`,
25618
+ `A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
25619
+ `L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
25620
+ `A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
25621
+ `A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
25622
+ `A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
25623
+ `L ${x(-0.214)} ${y(-0.162)} Z`
25624
+ ].join(" ");
25625
+ };
25688
25626
  var MOVIE = [
25689
25627
  [-33.75, -16.5],
25690
25628
  [-33.75, -3],
@@ -25791,8 +25729,8 @@ var buttons = {
25791
25729
  )
25792
25730
  ]),
25793
25731
  actionButtonHelp: build("actionButtonHelp", (g3) => [
25794
- darken(g3.poly(QUESTION)),
25795
- darken(g3.circle(-0.2, 27.4, 7))
25732
+ darken(question(g3)),
25733
+ darken(g3.circle(0, 0.295 * U, 0.08 * U))
25796
25734
  ]),
25797
25735
  actionButtonInformation: build("actionButtonInformation", (g3) => [
25798
25736
  darken(g3.circle(0, 0.4, 34)),
@@ -29115,12 +29053,46 @@ var leftRightUpArrow2 = exactDef(
29115
29053
  )
29116
29054
  ]
29117
29055
  );
29056
+ var swooshArrow3 = exactDef(
29057
+ "swooshArrow",
29058
+ { adj1: 25e3, adj2: 16667 },
29059
+ [
29060
+ "a1 pin 1 adj1 75000",
29061
+ "maxAdj2 */ 70000 w ss",
29062
+ "a2 pin 0 adj2 maxAdj2",
29063
+ "ad1 */ h a1 100000",
29064
+ "ad2 */ ss a2 100000",
29065
+ "xB +- r 0 ad2",
29066
+ "yB +- t ssd8 0",
29067
+ "alfa */ cd4 1 14",
29068
+ "dx0 tan ssd8 alfa",
29069
+ "xC +- xB 0 dx0",
29070
+ "dx1 tan ad1 alfa",
29071
+ "yF +- yB ad1 0",
29072
+ "xF +- xB dx1 0",
29073
+ "xE +- xF dx0 0",
29074
+ "yE +- yF ssd8 0",
29075
+ "dy2 +- yE 0 t",
29076
+ "dy22 */ dy2 1 2",
29077
+ "dy3 */ h 1 20",
29078
+ "yD +- dy22 0 dy3",
29079
+ "dy4 */ hd6 1 1",
29080
+ "yP1 +- hd6 dy4 0",
29081
+ "xP1 val wd6",
29082
+ "dy5 */ hd6 1 2",
29083
+ "yP2 +- yF dy5 0",
29084
+ "xP2 val wd4"
29085
+ ],
29086
+ "l t r b",
29087
+ [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")]
29088
+ );
29118
29089
  var EXACT_ARROW_PRESET_DEFINITIONS = {
29119
29090
  leftRightArrow: leftRightArrow2,
29120
29091
  upDownArrow: upDownArrow2,
29121
29092
  quadArrow: quadArrow2,
29122
29093
  leftUpArrow: leftUpArrow2,
29123
- leftRightUpArrow: leftRightUpArrow2
29094
+ leftRightUpArrow: leftRightUpArrow2,
29095
+ swooshArrow: swooshArrow3
29124
29096
  };
29125
29097
 
29126
29098
  // geometry/preset-shape-definitions-exact-circular.ts
@@ -29926,10 +29898,13 @@ var verticalScroll = exactDef(
29926
29898
  p(
29927
29899
  "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"
29928
29900
  ),
29929
- p("M l y4 A ch2 ch2 10800000 21600000 Z M xsw cy3 A ch4 ch4 0 21600000 Z", {
29930
- fill: "darkenLess",
29931
- stroke: false
29932
- }),
29901
+ p(
29902
+ "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",
29903
+ {
29904
+ fill: "darkenLess",
29905
+ stroke: false
29906
+ }
29907
+ ),
29933
29908
  p(
29934
29909
  "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",
29935
29910
  { fill: "none" }
@@ -29945,10 +29920,13 @@ var horizontalScroll = exactDef(
29945
29920
  p(
29946
29921
  "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"
29947
29922
  ),
29948
- p("M y4 t A ch2 ch2 16200000 21600000 Z M ch cyw A ch4 ch4 0 21600000 Z", {
29949
- fill: "darkenLess",
29950
- stroke: false
29951
- }),
29923
+ p(
29924
+ "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",
29925
+ {
29926
+ fill: "darkenLess",
29927
+ stroke: false
29928
+ }
29929
+ ),
29952
29930
  p(
29953
29931
  "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",
29954
29932
  { fill: "none" }
@@ -45658,7 +45636,7 @@ function lerpStops(a2, b, t) {
45658
45636
  opacity: oa + (ob - oa) * t
45659
45637
  };
45660
45638
  }
45661
- function colorAt(stops, position2) {
45639
+ function gradientColorAt(stops, position2) {
45662
45640
  const first2 = stops[0];
45663
45641
  const last = stops[stops.length - 1];
45664
45642
  if (position2 <= first2.position) {
@@ -45713,7 +45691,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
45713
45691
  if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
45714
45692
  for (let i2 = bands; i2 >= 0; i2 -= 1) {
45715
45693
  const t = i2 / bands;
45716
- const { color: color3, opacity } = colorAt(sorted2, t * 100);
45694
+ const { color: color3, opacity } = gradientColorAt(sorted2, t * 100);
45717
45695
  const left2 = lerpEdge(inner2.left, 0, t);
45718
45696
  const top = lerpEdge(inner2.top, 0, t);
45719
45697
  const right2 = lerpEdge(inner2.right, 100, t);
@@ -69811,6 +69789,48 @@ function drawingPathData(path3, width, height) {
69811
69789
  return out.join(" ");
69812
69790
  }
69813
69791
 
69792
+ // drawingml/dash-pattern.ts
69793
+ var PRESET_PATTERNS = {
69794
+ dash: [4, 3],
69795
+ dot: [1, 3],
69796
+ lgDash: [8, 3],
69797
+ dashDot: [4, 3, 1, 3],
69798
+ lgDashDot: [8, 3, 1, 3],
69799
+ lgDashDotDot: [8, 3, 1, 3, 1, 3],
69800
+ sysDash: [3, 1],
69801
+ sysDot: [1, 1],
69802
+ sysDashDot: [3, 1, 1, 1],
69803
+ sysDashDotDot: [3, 1, 1, 1, 1, 1]
69804
+ };
69805
+ var CUSTOM_DASH_UNIT = 1e5;
69806
+ var FALLBACK_CUSTOM_PATTERN = [3, 2];
69807
+ function dashPenWidth(strokeWidth) {
69808
+ if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
69809
+ return Math.max(1, Math.ceil(strokeWidth - 0.5));
69810
+ }
69811
+ function dashPatternUnits(dashType, customSegments) {
69812
+ if (!dashType || dashType === "solid") return void 0;
69813
+ if (dashType === "custom") {
69814
+ const pattern = ([]).flatMap((seg) => [
69815
+ Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
69816
+ Math.max(0, seg.space) / CUSTOM_DASH_UNIT
69817
+ ]);
69818
+ return pattern.some((n2) => n2 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
69819
+ }
69820
+ return PRESET_PATTERNS[dashType];
69821
+ }
69822
+ function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
69823
+ const pen = dashPenWidth(strokeWidth);
69824
+ const out = [];
69825
+ for (let i2 = 0; i2 < pattern.length; i2 += 1) {
69826
+ const len = (pattern[i2] ?? 0) * pen;
69827
+ {
69828
+ out.push(len);
69829
+ }
69830
+ }
69831
+ return out.map((n2) => Number(n2.toFixed(4))).join(" ");
69832
+ }
69833
+
69814
69834
  // chart/region-map/value-color-positions.ts
69815
69835
  function schemaPosition(node2, end) {
69816
69836
  for (const kind of ["number", "percent"]) {
@@ -72511,7 +72531,7 @@ function radarSvg(model2, area) {
72511
72531
  }
72512
72532
 
72513
72533
  // chart/render/chart-svg-hierarchy.ts
72514
- var colorAt2 = (model2, index3) => {
72534
+ var colorAt = (model2, index3) => {
72515
72535
  const first2 = model2.series[0];
72516
72536
  const colors = first2?.pointColors;
72517
72537
  return (colors && colors.length > 0 ? colors[index3 % colors.length] : void 0) ?? first2?.color ?? "#4472C4";
@@ -72540,7 +72560,7 @@ function treemapSvg(model2, area) {
72540
72560
  }
72541
72561
  out.push(`<g data-chart-series="${cell.seriesIndex}" data-chart-point="${cell.pointIndex}">`);
72542
72562
  out.push(
72543
- rect2(cell.x, cell.y, cell.w, cell.h, colorAt2(model2, cell.colorIndex)).replace(
72563
+ rect2(cell.x, cell.y, cell.w, cell.h, colorAt(model2, cell.colorIndex)).replace(
72544
72564
  "/>",
72545
72565
  ' rx="2"/>'
72546
72566
  )
@@ -72579,7 +72599,7 @@ function sunburstSvg(model2, area) {
72579
72599
  );
72580
72600
  for (const arc3 of arcs)
72581
72601
  out.push(
72582
- `<path d="${arc3.d}" fill="${colorAt2(model2, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
72602
+ `<path d="${arc3.d}" fill="${colorAt(model2, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
72583
72603
  );
72584
72604
  const flatLabels = levels.length > 1 || model2.series.length !== 1 ? void 0 : model2.categories;
72585
72605
  for (const arc3 of model2.hierarchy?.labels === false ? [] : arcs) {
@@ -78137,18 +78157,6 @@ function patchHeaderFooterSection(setup, key, section, text3) {
78137
78157
 
78138
78158
  // xlsx/layout/shape-paint.ts
78139
78159
  var EMU_PER_PX3 = 9525;
78140
- var DASHES2 = {
78141
- dash: [4, 3],
78142
- sysDash: [3, 1],
78143
- dot: [1, 2],
78144
- sysDot: [1, 1],
78145
- dashDot: [4, 3, 1, 3],
78146
- lgDash: [8, 3],
78147
- lgDashDot: [8, 3, 1, 3],
78148
- lgDashDotDot: [8, 3, 1, 3, 1, 3],
78149
- sysDashDot: [3, 1, 1, 1],
78150
- sysDashDotDot: [3, 1, 1, 1, 1, 1]
78151
- };
78152
78160
  var STYLE_LINE_EMU = [0, 9525, 12700, 19050];
78153
78161
  function shapeColor(color3, theme2) {
78154
78162
  if (!color3) return void 0;
@@ -78193,11 +78201,11 @@ function shapeStroke(node2, scale2, theme2) {
78193
78201
  const styleWidth = STYLE_LINE_EMU[ref?.idx ?? 0] ?? STYLE_LINE_EMU[1];
78194
78202
  const emu = line5?.widthEmu ?? (styleWidth || STYLE_LINE_EMU[1]);
78195
78203
  const width = Math.max(0.5, emu / EMU_PER_PX3 * scale2);
78196
- const dash = line5?.dash ? DASHES2[line5.dash] : void 0;
78204
+ const dash = dashPatternUnits(line5?.dash);
78197
78205
  return {
78198
78206
  stroke,
78199
78207
  width,
78200
- ...dash ? { dash: dash.map((part) => Math.round(part * width * 100) / 100).join(" ") } : {}
78208
+ ...dash ? { dash: capCompensatedDashArray(dash, width) } : {}
78201
78209
  };
78202
78210
  }
78203
78211
 
@@ -25582,84 +25582,22 @@ var triangle = (g3, dir) => g3.poly([
25582
25582
  [D * dir, 0],
25583
25583
  [-D * dir, D]
25584
25584
  ]);
25585
- var QUESTION = [
25586
- [-4.8, -33.7],
25587
- [-6.3, -31.5],
25588
- [-7.8, -31.5],
25589
- [-12.3, -28.5],
25590
- [-14.5, -28.5],
25591
- [-15.3, -27.7],
25592
- [-15.3, -25.5],
25593
- [-18.3, -21],
25594
- [-19, -17.2],
25595
- [-20.5, -16.5],
25596
- [-20.5, -12.7],
25597
- [-19, -12.7],
25598
- [-18.3, -14.2],
25599
- [-10.8, -14.2],
25600
- [-10, -13.5],
25601
- [-8.5, -13.5],
25602
- [-9.3, -17.2],
25603
- [-7.8, -19.5],
25604
- [-4, -22.5],
25605
- [-3.3, -21.7],
25606
- [-1.8, -21.7],
25607
- [-1, -23.2],
25608
- [0.5, -23.2],
25609
- [1.2, -21.7],
25610
- [2.7, -21.7],
25611
- [3.5, -22.5],
25612
- [8, -18.7],
25613
- [8.7, -17.2],
25614
- [8, -16.5],
25615
- [8, -15],
25616
- [9.5, -14.2],
25617
- [9.5, -13.5],
25618
- [8, -12.7],
25619
- [8.7, -9.7],
25620
- [5, -6],
25621
- [2, -6],
25622
- [-2.5, -2.2],
25623
- [-3.3, 0.8],
25624
- [-5.5, 2.3],
25625
- [-4.8, 6.8],
25626
- [-6.3, 7.5],
25627
- [-6.3, 18],
25628
- [-4.8, 18],
25629
- [-4, 17.3],
25630
- [4.2, 17.3],
25631
- [4.2, 6.8],
25632
- [6.5, 5.3],
25633
- [6.5, 3.8],
25634
- [8, 3],
25635
- [8, 1.5],
25636
- [8.7, 0.8],
25637
- [13.2, 0],
25638
- [17, -4.5],
25639
- [18.5, -4.5],
25640
- [18.5, -6],
25641
- [17.7, -6.7],
25642
- [18.5, -8.2],
25643
- [18.5, -15],
25644
- [20, -15.7],
25645
- [20, -18],
25646
- [17.7, -19.5],
25647
- [17.7, -21],
25648
- [15.5, -24.7],
25649
- [15.5, -27],
25650
- [14, -27],
25651
- [13.2, -27.7],
25652
- [13.2, -29.2],
25653
- [9.5, -30],
25654
- [8.7, -30.7],
25655
- [8.7, -32.2],
25656
- [5.7, -31.5],
25657
- [4.2, -33.7],
25658
- [2.7, -33.7],
25659
- [2, -32.2],
25660
- [-2.5, -32.2],
25661
- [-3.3, -33.7]
25662
- ];
25585
+ var U = 90;
25586
+ var question = (g3) => {
25587
+ const x = (v) => g3.x(v * U);
25588
+ const y = (v) => g3.y(v * U);
25589
+ const r = (v) => g3.len(v * U);
25590
+ return [
25591
+ `M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
25592
+ `A ${r(0.108)} ${r(0.162)} 0 5400000`,
25593
+ `A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
25594
+ `L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
25595
+ `A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
25596
+ `A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
25597
+ `A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
25598
+ `L ${x(-0.214)} ${y(-0.162)} Z`
25599
+ ].join(" ");
25600
+ };
25663
25601
  var MOVIE = [
25664
25602
  [-33.75, -16.5],
25665
25603
  [-33.75, -3],
@@ -25766,8 +25704,8 @@ var buttons = {
25766
25704
  )
25767
25705
  ]),
25768
25706
  actionButtonHelp: build("actionButtonHelp", (g3) => [
25769
- darken(g3.poly(QUESTION)),
25770
- darken(g3.circle(-0.2, 27.4, 7))
25707
+ darken(question(g3)),
25708
+ darken(g3.circle(0, 0.295 * U, 0.08 * U))
25771
25709
  ]),
25772
25710
  actionButtonInformation: build("actionButtonInformation", (g3) => [
25773
25711
  darken(g3.circle(0, 0.4, 34)),
@@ -29090,12 +29028,46 @@ var leftRightUpArrow2 = exactDef(
29090
29028
  )
29091
29029
  ]
29092
29030
  );
29031
+ var swooshArrow3 = exactDef(
29032
+ "swooshArrow",
29033
+ { adj1: 25e3, adj2: 16667 },
29034
+ [
29035
+ "a1 pin 1 adj1 75000",
29036
+ "maxAdj2 */ 70000 w ss",
29037
+ "a2 pin 0 adj2 maxAdj2",
29038
+ "ad1 */ h a1 100000",
29039
+ "ad2 */ ss a2 100000",
29040
+ "xB +- r 0 ad2",
29041
+ "yB +- t ssd8 0",
29042
+ "alfa */ cd4 1 14",
29043
+ "dx0 tan ssd8 alfa",
29044
+ "xC +- xB 0 dx0",
29045
+ "dx1 tan ad1 alfa",
29046
+ "yF +- yB ad1 0",
29047
+ "xF +- xB dx1 0",
29048
+ "xE +- xF dx0 0",
29049
+ "yE +- yF ssd8 0",
29050
+ "dy2 +- yE 0 t",
29051
+ "dy22 */ dy2 1 2",
29052
+ "dy3 */ h 1 20",
29053
+ "yD +- dy22 0 dy3",
29054
+ "dy4 */ hd6 1 1",
29055
+ "yP1 +- hd6 dy4 0",
29056
+ "xP1 val wd6",
29057
+ "dy5 */ hd6 1 2",
29058
+ "yP2 +- yF dy5 0",
29059
+ "xP2 val wd4"
29060
+ ],
29061
+ "l t r b",
29062
+ [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")]
29063
+ );
29093
29064
  var EXACT_ARROW_PRESET_DEFINITIONS = {
29094
29065
  leftRightArrow: leftRightArrow2,
29095
29066
  upDownArrow: upDownArrow2,
29096
29067
  quadArrow: quadArrow2,
29097
29068
  leftUpArrow: leftUpArrow2,
29098
- leftRightUpArrow: leftRightUpArrow2
29069
+ leftRightUpArrow: leftRightUpArrow2,
29070
+ swooshArrow: swooshArrow3
29099
29071
  };
29100
29072
 
29101
29073
  // geometry/preset-shape-definitions-exact-circular.ts
@@ -29901,10 +29873,13 @@ var verticalScroll = exactDef(
29901
29873
  p(
29902
29874
  "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"
29903
29875
  ),
29904
- p("M l y4 A ch2 ch2 10800000 21600000 Z M xsw cy3 A ch4 ch4 0 21600000 Z", {
29905
- fill: "darkenLess",
29906
- stroke: false
29907
- }),
29876
+ p(
29877
+ "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",
29878
+ {
29879
+ fill: "darkenLess",
29880
+ stroke: false
29881
+ }
29882
+ ),
29908
29883
  p(
29909
29884
  "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",
29910
29885
  { fill: "none" }
@@ -29920,10 +29895,13 @@ var horizontalScroll = exactDef(
29920
29895
  p(
29921
29896
  "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"
29922
29897
  ),
29923
- p("M y4 t A ch2 ch2 16200000 21600000 Z M ch cyw A ch4 ch4 0 21600000 Z", {
29924
- fill: "darkenLess",
29925
- stroke: false
29926
- }),
29898
+ p(
29899
+ "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",
29900
+ {
29901
+ fill: "darkenLess",
29902
+ stroke: false
29903
+ }
29904
+ ),
29927
29905
  p(
29928
29906
  "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",
29929
29907
  { fill: "none" }
@@ -45633,7 +45611,7 @@ function lerpStops(a2, b, t) {
45633
45611
  opacity: oa + (ob - oa) * t
45634
45612
  };
45635
45613
  }
45636
- function colorAt(stops, position2) {
45614
+ function gradientColorAt(stops, position2) {
45637
45615
  const first2 = stops[0];
45638
45616
  const last = stops[stops.length - 1];
45639
45617
  if (position2 <= first2.position) {
@@ -45688,7 +45666,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
45688
45666
  if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
45689
45667
  for (let i2 = bands; i2 >= 0; i2 -= 1) {
45690
45668
  const t = i2 / bands;
45691
- const { color: color3, opacity } = colorAt(sorted2, t * 100);
45669
+ const { color: color3, opacity } = gradientColorAt(sorted2, t * 100);
45692
45670
  const left2 = lerpEdge(inner2.left, 0, t);
45693
45671
  const top = lerpEdge(inner2.top, 0, t);
45694
45672
  const right2 = lerpEdge(inner2.right, 100, t);
@@ -69786,6 +69764,48 @@ function drawingPathData(path3, width, height) {
69786
69764
  return out.join(" ");
69787
69765
  }
69788
69766
 
69767
+ // drawingml/dash-pattern.ts
69768
+ var PRESET_PATTERNS = {
69769
+ dash: [4, 3],
69770
+ dot: [1, 3],
69771
+ lgDash: [8, 3],
69772
+ dashDot: [4, 3, 1, 3],
69773
+ lgDashDot: [8, 3, 1, 3],
69774
+ lgDashDotDot: [8, 3, 1, 3, 1, 3],
69775
+ sysDash: [3, 1],
69776
+ sysDot: [1, 1],
69777
+ sysDashDot: [3, 1, 1, 1],
69778
+ sysDashDotDot: [3, 1, 1, 1, 1, 1]
69779
+ };
69780
+ var CUSTOM_DASH_UNIT = 1e5;
69781
+ var FALLBACK_CUSTOM_PATTERN = [3, 2];
69782
+ function dashPenWidth(strokeWidth) {
69783
+ if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
69784
+ return Math.max(1, Math.ceil(strokeWidth - 0.5));
69785
+ }
69786
+ function dashPatternUnits(dashType, customSegments) {
69787
+ if (!dashType || dashType === "solid") return void 0;
69788
+ if (dashType === "custom") {
69789
+ const pattern = ([]).flatMap((seg) => [
69790
+ Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
69791
+ Math.max(0, seg.space) / CUSTOM_DASH_UNIT
69792
+ ]);
69793
+ return pattern.some((n2) => n2 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
69794
+ }
69795
+ return PRESET_PATTERNS[dashType];
69796
+ }
69797
+ function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
69798
+ const pen = dashPenWidth(strokeWidth);
69799
+ const out = [];
69800
+ for (let i2 = 0; i2 < pattern.length; i2 += 1) {
69801
+ const len = (pattern[i2] ?? 0) * pen;
69802
+ {
69803
+ out.push(len);
69804
+ }
69805
+ }
69806
+ return out.map((n2) => Number(n2.toFixed(4))).join(" ");
69807
+ }
69808
+
69789
69809
  // chart/region-map/value-color-positions.ts
69790
69810
  function schemaPosition(node2, end) {
69791
69811
  for (const kind of ["number", "percent"]) {
@@ -72486,7 +72506,7 @@ function radarSvg(model2, area) {
72486
72506
  }
72487
72507
 
72488
72508
  // chart/render/chart-svg-hierarchy.ts
72489
- var colorAt2 = (model2, index3) => {
72509
+ var colorAt = (model2, index3) => {
72490
72510
  const first2 = model2.series[0];
72491
72511
  const colors = first2?.pointColors;
72492
72512
  return (colors && colors.length > 0 ? colors[index3 % colors.length] : void 0) ?? first2?.color ?? "#4472C4";
@@ -72515,7 +72535,7 @@ function treemapSvg(model2, area) {
72515
72535
  }
72516
72536
  out.push(`<g data-chart-series="${cell.seriesIndex}" data-chart-point="${cell.pointIndex}">`);
72517
72537
  out.push(
72518
- rect2(cell.x, cell.y, cell.w, cell.h, colorAt2(model2, cell.colorIndex)).replace(
72538
+ rect2(cell.x, cell.y, cell.w, cell.h, colorAt(model2, cell.colorIndex)).replace(
72519
72539
  "/>",
72520
72540
  ' rx="2"/>'
72521
72541
  )
@@ -72554,7 +72574,7 @@ function sunburstSvg(model2, area) {
72554
72574
  );
72555
72575
  for (const arc3 of arcs)
72556
72576
  out.push(
72557
- `<path d="${arc3.d}" fill="${colorAt2(model2, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
72577
+ `<path d="${arc3.d}" fill="${colorAt(model2, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
72558
72578
  );
72559
72579
  const flatLabels = levels.length > 1 || model2.series.length !== 1 ? void 0 : model2.categories;
72560
72580
  for (const arc3 of model2.hierarchy?.labels === false ? [] : arcs) {
@@ -78112,18 +78132,6 @@ function patchHeaderFooterSection(setup, key, section, text3) {
78112
78132
 
78113
78133
  // xlsx/layout/shape-paint.ts
78114
78134
  var EMU_PER_PX3 = 9525;
78115
- var DASHES2 = {
78116
- dash: [4, 3],
78117
- sysDash: [3, 1],
78118
- dot: [1, 2],
78119
- sysDot: [1, 1],
78120
- dashDot: [4, 3, 1, 3],
78121
- lgDash: [8, 3],
78122
- lgDashDot: [8, 3, 1, 3],
78123
- lgDashDotDot: [8, 3, 1, 3, 1, 3],
78124
- sysDashDot: [3, 1, 1, 1],
78125
- sysDashDotDot: [3, 1, 1, 1, 1, 1]
78126
- };
78127
78135
  var STYLE_LINE_EMU = [0, 9525, 12700, 19050];
78128
78136
  function shapeColor(color3, theme2) {
78129
78137
  if (!color3) return void 0;
@@ -78168,11 +78176,11 @@ function shapeStroke(node2, scale2, theme2) {
78168
78176
  const styleWidth = STYLE_LINE_EMU[ref?.idx ?? 0] ?? STYLE_LINE_EMU[1];
78169
78177
  const emu = line5?.widthEmu ?? (styleWidth || STYLE_LINE_EMU[1]);
78170
78178
  const width = Math.max(0.5, emu / EMU_PER_PX3 * scale2);
78171
- const dash = line5?.dash ? DASHES2[line5.dash] : void 0;
78179
+ const dash = dashPatternUnits(line5?.dash);
78172
78180
  return {
78173
78181
  stroke,
78174
78182
  width,
78175
- ...dash ? { dash: dash.map((part) => Math.round(part * width * 100) / 100).join(" ") } : {}
78183
+ ...dash ? { dash: capCompensatedDashArray(dash, width) } : {}
78176
78184
  };
78177
78185
  }
78178
78186
 
@@ -1 +1 @@
1
- {"version":3,"file":"shape-paint.d.ts","sourceRoot":"","sources":["../../../xlsx/layout/shape-paint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,uBAAuB,CAAC;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,eAAO,MAAM,UAAU,OAAO,CAAC;AAkB/B,6FAA6F;AAC7F,wBAAgB,UAAU,CACzB,KAAK,EAAE,YAAY,GAAG,SAAS,EAC/B,KAAK,CAAC,EAAE,YAAY,GAClB,MAAM,GAAG,SAAS,CAIpB;AAED,MAAM,WAAW,UAAU;IAC1B,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAoBD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,UAAU,CAgBvF;AAED,MAAM,WAAW,WAAW;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,4FAA4F;AAC5F,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,WAAW,CAiB7F"}
1
+ {"version":3,"file":"shape-paint.d.ts","sourceRoot":"","sources":["../../../xlsx/layout/shape-paint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,uBAAuB,CAAC;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,eAAO,MAAM,UAAU,OAAO,CAAC;AAK/B,6FAA6F;AAC7F,wBAAgB,UAAU,CACzB,KAAK,EAAE,YAAY,GAAG,SAAS,EAC/B,KAAK,CAAC,EAAE,YAAY,GAClB,MAAM,GAAG,SAAS,CAIpB;AAED,MAAM,WAAW,UAAU;IAC1B,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAoBD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,UAAU,CAgBvF;AAED,MAAM,WAAW,WAAW;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,4FAA4F;AAC5F,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,WAAW,CAiB7F"}