ooxml-ui 1.44.0 → 1.45.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 (149) hide show
  1. package/README.md +4 -0
  2. package/dist/base.d.ts +1 -0
  3. package/dist/chart/format-pane-3d.d.ts +1 -0
  4. package/dist/chart/format-pane-advanced-intent.d.ts +1 -0
  5. package/dist/chart/format-pane-analysis.d.ts +1 -0
  6. package/dist/chart/format-pane-axis.d.ts +1 -0
  7. package/dist/chart/format-pane-common.d.ts +1 -0
  8. package/dist/chart/format-pane-effects.d.ts +1 -0
  9. package/dist/chart/format-pane-fields.d.ts +1 -0
  10. package/dist/chart/format-pane-fill-kinds.d.ts +1 -0
  11. package/dist/chart/format-pane-fill-line.d.ts +1 -0
  12. package/dist/chart/format-pane-locales/es.d.ts +1 -0
  13. package/dist/chart/format-pane-model.d.ts +1 -0
  14. package/dist/chart/format-pane-options.d.ts +1 -0
  15. package/dist/chart/format-pane-space.d.ts +1 -0
  16. package/dist/chart/format-pane-text.d.ts +1 -0
  17. package/dist/chart/format-pane-types.d.ts +1 -0
  18. package/dist/chart/format-pane-view.d.ts +1 -0
  19. package/dist/chrome/find-bar.d.ts +2 -1
  20. package/dist/{chunk-NH5ZSZMI.js → chunk-2YRHRV4H.js} +1 -1
  21. package/dist/{chunk-JWBWLGEY.js → chunk-LPI7LT4B.js} +2 -2
  22. package/dist/{chunk-2ZYRZANE.js → chunk-MWDG776V.js} +1 -1
  23. package/dist/{chunk-I57TCM2Q.js → chunk-UEFVC6V4.js} +1 -1
  24. package/dist/{chunk-M4ARYL3L.js → chunk-ZTLP52FH.js} +1 -1
  25. package/dist/controls.d.ts +1 -0
  26. package/dist/controls.js +1 -1
  27. package/dist/docx.js +4 -4
  28. package/dist/embedding/region-host.d.ts +1 -0
  29. package/dist/files/save-progress-label.d.ts +1 -0
  30. package/dist/fonts/custom-fonts.d.ts +1 -0
  31. package/dist/form/color-swatches.d.ts +1 -0
  32. package/dist/image-native-size.d.ts +1 -0
  33. package/dist/index.js +4 -4
  34. package/dist/picture-artistic-filters.d.ts +1 -0
  35. package/dist/picture-artistic-preview.d.ts +1 -0
  36. package/dist/picture-paint.d.ts +1 -0
  37. package/dist/pptx/{chart-3d-view-scene-D6OJTZYC.mjs → chart-3d-view-scene-7LIMCTEM.mjs} +3 -3
  38. package/dist/pptx/{chart-3d-view-scene-PC2RUBL4.cjs → chart-3d-view-scene-RCWYLVC3.cjs} +38 -38
  39. package/dist/pptx/{chunk-W2QJX2ON.mjs → chunk-2P6TH4ZE.mjs} +3 -0
  40. package/dist/pptx/{chunk-H6M3FKNG.mjs → chunk-3DJZBAQ2.mjs} +1 -1
  41. package/dist/pptx/{chunk-BNPTGOEZ.mjs → chunk-6JTQ7AG6.mjs} +3 -3
  42. package/dist/pptx/{chunk-LK35P6RE.cjs → chunk-CWBVJ4DC.cjs} +1043 -427
  43. package/dist/pptx/{chunk-HWJKBKCW.cjs → chunk-FI2ATACZ.cjs} +3 -3
  44. package/dist/pptx/{chunk-EDIAPF6J.mjs → chunk-G5NEBI7N.mjs} +3 -3
  45. package/dist/pptx/{chunk-HB6CH2FF.cjs → chunk-GYI2TFSW.cjs} +3 -3
  46. package/dist/pptx/{chunk-D3DQS2J2.mjs → chunk-HGT3CA36.mjs} +796 -200
  47. package/dist/pptx/{chunk-2SO3BL67.cjs → chunk-HTFYAGHG.cjs} +238 -87
  48. package/dist/pptx/{chunk-2GDYTHUY.cjs → chunk-LOUVYGWX.cjs} +12 -12
  49. package/dist/pptx/{chunk-ZH35NTNU.cjs → chunk-MZCAYJ7H.cjs} +49 -49
  50. package/dist/pptx/{chunk-KYTG7WNC.mjs → chunk-S6P7UWGZ.mjs} +2 -2
  51. package/dist/pptx/{chunk-ZHVKGGLQ.cjs → chunk-UFJBHFSD.cjs} +3 -0
  52. package/dist/pptx/{chunk-TDALHSYV.mjs → chunk-XL5AF4U3.mjs} +211 -73
  53. package/dist/pptx/dom/elements/connector.d.ts.map +1 -1
  54. package/dist/pptx/dom/index.cjs +458 -449
  55. package/dist/pptx/dom/index.mjs +32 -23
  56. package/dist/pptx/export/html2canvas-clone.cjs +7 -7
  57. package/dist/pptx/export/html2canvas-clone.mjs +2 -2
  58. package/dist/pptx/i18n/index.cjs +6 -6
  59. package/dist/pptx/i18n/index.mjs +1 -1
  60. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  61. package/dist/pptx/index.cjs +3547 -3459
  62. package/dist/pptx/index.mjs +6 -6
  63. package/dist/pptx/render/chart-combo-stock.cjs +4 -4
  64. package/dist/pptx/render/chart-combo-stock.mjs +2 -2
  65. package/dist/pptx/render/chart-overlays.cjs +8 -8
  66. package/dist/pptx/render/chart-overlays.mjs +2 -2
  67. package/dist/pptx/render/chart-surface-treemap.cjs +5 -5
  68. package/dist/pptx/render/chart-surface-treemap.mjs +2 -2
  69. package/dist/pptx/render/chart-view-model.cjs +45 -45
  70. package/dist/pptx/render/chart-view-model.mjs +2 -2
  71. package/dist/pptx/render/chart-waterfall-map.cjs +7 -7
  72. package/dist/pptx/render/chart-waterfall-map.mjs +2 -2
  73. package/dist/pptx/render/connector-dash.d.ts +15 -0
  74. package/dist/pptx/render/connector-dash.d.ts.map +1 -1
  75. package/dist/pptx/render/connector-path.d.ts +1 -1
  76. package/dist/pptx/render/connector-path.d.ts.map +1 -1
  77. package/dist/pptx/render/customization/customization-controller.d.ts +8 -0
  78. package/dist/pptx/render/customization/customization-controller.d.ts.map +1 -1
  79. package/dist/pptx/render/dash-pattern.d.ts +5 -56
  80. package/dist/pptx/render/dash-pattern.d.ts.map +1 -1
  81. package/dist/pptx/render/dash-square-cap.d.ts +34 -0
  82. package/dist/pptx/render/dash-square-cap.d.ts.map +1 -0
  83. package/dist/pptx/render/deck-webfont-outlines.d.ts +25 -0
  84. package/dist/pptx/render/deck-webfont-outlines.d.ts.map +1 -0
  85. package/dist/pptx/render/deck-webfont-readiness.d.ts +59 -0
  86. package/dist/pptx/render/deck-webfont-readiness.d.ts.map +1 -0
  87. package/dist/pptx/render/device-pixel-stroke.d.ts +1 -1
  88. package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
  89. package/dist/pptx/render/fill-style.d.ts +6 -0
  90. package/dist/pptx/render/fill-style.d.ts.map +1 -1
  91. package/dist/pptx/render/google-webfonts.d.ts +11 -1
  92. package/dist/pptx/render/google-webfonts.d.ts.map +1 -1
  93. package/dist/pptx/render/gradient-svg-image.d.ts +9 -0
  94. package/dist/pptx/render/gradient-svg-image.d.ts.map +1 -1
  95. package/dist/pptx/render/index.d.ts +4 -0
  96. package/dist/pptx/render/index.d.ts.map +1 -1
  97. package/dist/pptx/render/options/font-download-policy.d.ts +52 -0
  98. package/dist/pptx/render/options/font-download-policy.d.ts.map +1 -0
  99. package/dist/pptx/render/options/index.d.ts +1 -0
  100. package/dist/pptx/render/options/index.d.ts.map +1 -1
  101. package/dist/pptx/render/options/viewer-options-tabs-advanced.d.ts.map +1 -1
  102. package/dist/pptx/render/options/viewer-options.d.ts +2 -0
  103. package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
  104. package/dist/pptx/render/paragraph-baseline.d.ts +13 -2
  105. package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
  106. package/dist/pptx/render/paragraph-run-build.d.ts.map +1 -1
  107. package/dist/pptx/render/paragraph-trailing-break.d.ts +15 -0
  108. package/dist/pptx/render/paragraph-trailing-break.d.ts.map +1 -0
  109. package/dist/pptx/render/shape-path-gradient-fill.d.ts +20 -0
  110. package/dist/pptx/render/shape-path-gradient-fill.d.ts.map +1 -0
  111. package/dist/pptx/render/silhouette-effects.d.ts.map +1 -1
  112. package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
  113. package/dist/pptx/render/svg-attr-escape.d.ts +30 -0
  114. package/dist/pptx/render/svg-attr-escape.d.ts.map +1 -0
  115. package/dist/pptx/render/svg-gradient-paint.d.ts +6 -1
  116. package/dist/pptx/render/svg-gradient-paint.d.ts.map +1 -1
  117. package/dist/pptx/render/table-cell-baseline.d.ts +2 -1
  118. package/dist/pptx/render/table-cell-baseline.d.ts.map +1 -1
  119. package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
  120. package/dist/pptx/render/text-body-top-snap.d.ts +43 -0
  121. package/dist/pptx/render/text-body-top-snap.d.ts.map +1 -0
  122. package/dist/pptx/render/text-design-tracking.d.ts +20 -0
  123. package/dist/pptx/render/text-design-tracking.d.ts.map +1 -0
  124. package/dist/pptx/render/text-line-height.d.ts +8 -0
  125. package/dist/pptx/render/text-line-height.d.ts.map +1 -1
  126. package/dist/pptx/render/text-metric-tracking.d.ts.map +1 -1
  127. package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
  128. package/dist/pptx/render/text-warp-arch-fit.d.ts +51 -0
  129. package/dist/pptx/render/text-warp-arch-fit.d.ts.map +1 -0
  130. package/dist/pptx/render/text-warp-arch.d.ts +53 -13
  131. package/dist/pptx/render/text-warp-arch.d.ts.map +1 -1
  132. package/dist/pptx/render/text-warp-envelope-measure.d.ts +5 -0
  133. package/dist/pptx/render/text-warp-envelope-measure.d.ts.map +1 -1
  134. package/dist/pptx/render/text-warp-outline-webfont-fetch.d.ts.map +1 -1
  135. package/dist/pptx/render/text-warp.d.ts +3 -1
  136. package/dist/pptx/render/text-warp.d.ts.map +1 -1
  137. package/dist/pptx/render/visual-effects.d.ts +2 -21
  138. package/dist/pptx/render/visual-effects.d.ts.map +1 -1
  139. package/dist/pptx/{smartart-insert-preview-55QCEISC.cjs → smartart-insert-preview-R7USUBIX.cjs} +8 -8
  140. package/dist/pptx/{smartart-insert-preview-GPBTE3HU.mjs → smartart-insert-preview-ZKVFXFSI.mjs} +7 -7
  141. package/dist/render-cache.d.ts +1 -0
  142. package/dist/ribbon/ribbon-group.d.ts +2 -1
  143. package/dist/ribbon/svg-preview.d.ts +1 -0
  144. package/dist/teams.js +2 -2
  145. package/dist/theme-bridge.d.ts +1 -0
  146. package/dist/theme.d.ts +1 -0
  147. package/dist/visio.js +23 -6
  148. package/dist/xlsx.js +7 -7
  149. package/package.json +2 -2
@@ -1,10 +1,12 @@
1
- import { screenBorderWidth, screenStrokeWidth, screenBorder, DEVICE_PX_VAR, snappedStrokeTransform } from './chunk-EDIAPF6J.mjs';
1
+ import { screenBorderWidth, screenStrokeWidth, screenBorder, DEVICE_PX_VAR, snappedStrokeTransform } from './chunk-G5NEBI7N.mjs';
2
2
  import { getSubstituteFonts, buildFontFamilyString, evaluateCustomGeometryPathData, getShapeClipPath, getAdjustmentAwareClipPath, getShapeClipPathFromPreset, getCloudPathForRendering, hasShapeProperties, evaluatePresetShape, getShapeType, getRoundRectRadiusPx, isImageLikeElement, ooxmlGradientAngleToCssDegrees, chartDataChangeType, isParetoChartData, resolveDisplayedChartTypeName, evaluateCustomGeometryPaths, customGeometryPathsToSvgSubpaths, parseDataUrlToBytes, sampleFirstPixelColorFromBytes, flattenChartUserShapes } from 'ooxml-core/pptx';
3
3
  import { DEFAULT_CHART_PALETTE, computeAxisStackedValueRange, computeAxisValueRange, formatCompactAxisValue, automaticMarkerSymbol, markerOutline, getChartStylePalette, formatChartNumber, clusteredBarGeometry, tint, shade, hasManualLayoutFields, resolveManualLayoutRect, applyLabelManualLayout, resolveDataLabelFlags, composeDataLabelText, generateAxisTicks, generateMinorAxisTicks, computeStackedValueRangeForAxis, computeValueRangeForChart, computeValueRangeForAxis, groupRowsByCategory, boxWhiskerDistribution, computeHistogramBins as computeHistogramBins$1, aggregateByCategory, computeSunburstArcs as computeSunburstArcs$1, computeHierarchicalSunburstArcs as computeHierarchicalSunburstArcs$1, computeFunnelGeometry, resolveManualPlotRect, radarRingPoints, radarAngle, computeRadarPoints, buildWaterfallSteps, computeWaterfallRange, buildMarkerPrimitive as buildMarkerPrimitive$1, chartDataTableMetrics, resolveBlankDisplay, computeStackedSeriesPlots, visibleRuns, smoothLinePath, maxBubbleSize, medianBubbleRadius, computeBubbleRadius, resolveAutoTitleText, STOCK_DEFAULT_WICK_COLOR, stockCandle, STOCK_DEFAULT_UP_FILL, STOCK_DEFAULT_DOWN_FILL, STOCK_TICK_WIDTH, boxMeanMarkerPath, buildHierarchyRoots, layoutTreemap, hierarchyBranchLabels, placeBestFitLabel, nudgeOutsideLabels, impliesAutoTitle, buildChartGradientDef, chartErrorBarAmount, fitChartTrendline, chartLineDashArray, calendarTicks, formatDate, excelSerialToDate, sampleSmoothLine, polylineRunsPath } from 'ooxml-core/chart';
4
4
  export { DEFAULT_BAR_GAP_WIDTH, DEFAULT_CHART_PALETTE, applyLabelManualLayout, computeBoxStats, computeBubbleRadius, computeLinearRegression, computeLogValueRange, computeRSquared, computeRadarPoints, computeStackedSeriesPlots, computeStackedValueRangeForAxis, computeValueRangeForAxis, computeValueRangeForChart, findLogAxis, fitPolynomial, generateAxisTicks, generateLogTicks, generateMinorAxisTicks, getChartStylePalette, hasManualLayoutFields, radarAngle, radarRingPoints, resolveManualLayoutRect, shade, tint, valueToYLog } from 'ooxml-core/chart';
5
+ import { isDashedStroke, dashPatternUnits, capCompensatedDashArray, dashPenWidth } from 'ooxml-core/drawingml';
6
+ export { capCompensatedDashArray, dashPatternUnits, dashPenWidth, isDashedStroke } from 'ooxml-core/drawingml';
5
7
  import { colorWithOpacity, normalizeHexColor, hexToRgbUnit, clampUnitInterval as clampUnitInterval$1, officeGradientStops, officeTwoStopGradientStops, hexToRgbChannels as hexToRgbChannels$1 } from 'ooxml-core/color';
6
8
  export { clampUnitInterval, colorWithOpacity, hexToRgbChannels, hexToRgbUnit, normalizeHexColor } from 'ooxml-core/color';
7
- import { buildRectPathGradientImage, buildRectPathGradientExactSvg } from 'ooxml-core/diagram';
9
+ import { buildRectPathGradientImage, shapePathGradientField, buildOutlinePathGradientSvg, buildRectPathGradientExactSvg, closedSubpaths } from 'ooxml-core/diagram';
8
10
  export { buildRectPathGradientExactSvg, buildRectPathGradientImage, buildRectPathGradientSvg } from 'ooxml-core/diagram';
9
11
  import { regionMapGeometry, buildRegionMapEntries, resolveValueColorStops, buildValueColorScale, sequentialColorScale, regionViewBounds, normalizeValue, scalePathD, regionBounds, shouldRenderRegionLabel, resolveRegionCode } from 'ooxml-core/chart/region-map';
10
12
  export { buildRegionMapEntries, formatRegionMapValue, normalizeValue, resolveRegionCode, resolveRegionEntityCode, sequentialColorScale, shouldRenderRegionLabel } from 'ooxml-core/chart/region-map';
@@ -153,57 +155,6 @@ function upsertDataPoint(dataPoints, point) {
153
155
  return next;
154
156
  }
155
157
 
156
- // src/pptx/render/dash-pattern.ts
157
- var PRESET_PATTERNS = {
158
- dash: [4, 3],
159
- dot: [1, 3],
160
- lgDash: [8, 3],
161
- dashDot: [4, 3, 1, 3],
162
- lgDashDot: [8, 3, 1, 3],
163
- lgDashDotDot: [8, 3, 1, 3, 1, 3],
164
- sysDash: [3, 1],
165
- sysDot: [1, 1],
166
- sysDashDot: [3, 1, 1, 1],
167
- sysDashDotDot: [3, 1, 1, 1, 1, 1]
168
- };
169
- var CUSTOM_DASH_UNIT = 1e5;
170
- var FALLBACK_CUSTOM_PATTERN = [3, 2];
171
- function dashPenWidth(strokeWidth) {
172
- if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
173
- return Math.max(1, Math.ceil(strokeWidth - 0.5));
174
- }
175
- function dashPatternUnits(dashType, customSegments) {
176
- if (!dashType || dashType === "solid") return void 0;
177
- if (dashType === "custom") {
178
- const pattern = (customSegments ?? []).flatMap((seg) => [
179
- Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
180
- Math.max(0, seg.space) / CUSTOM_DASH_UNIT
181
- ]);
182
- return pattern.some((n) => n > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
183
- }
184
- return PRESET_PATTERNS[dashType];
185
- }
186
- function isDashedStroke(dashType) {
187
- return dashType !== void 0 && dashType !== "solid" && dashType !== "";
188
- }
189
- function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
190
- const pen = dashPenWidth(strokeWidth);
191
- const round = lineCap === "rnd";
192
- const out = [];
193
- for (let i = 0; i < pattern.length; i += 1) {
194
- const len = (pattern[i] ?? 0) * pen;
195
- if (!round) {
196
- out.push(len);
197
- } else if (i % 2 === 0) {
198
- out.push(Math.max(0, len - pen));
199
- } else {
200
- const dash = (pattern[i - 1] ?? 0) * pen;
201
- out.push(len + (dash - Math.max(0, dash - pen)));
202
- }
203
- }
204
- return out.map((n) => Number(n.toFixed(4))).join(" ");
205
- }
206
-
207
158
  // src/pptx/constants.ts
208
159
  var DEFAULT_CANVAS_WIDTH = 1280;
209
160
  var DEFAULT_CANVAS_HEIGHT = 720;
@@ -1090,6 +1041,9 @@ function linearEndpoints(angleDegrees) {
1090
1041
  y2: round4(0.5 + dy * span)
1091
1042
  };
1092
1043
  }
1044
+ function imageDef(id, svg) {
1045
+ return { kind: "rectPath", id, href: `data:image/svg+xml,${encodeURIComponent(svg)}` };
1046
+ }
1093
1047
  function buildFromSource(source, id) {
1094
1048
  const { stops } = source;
1095
1049
  if (stops.length === 0) {
@@ -1102,13 +1056,34 @@ function buildFromSource(source, id) {
1102
1056
  const { cx, cy } = computeGradientCenter(source.fillToRect, source.focalPoint);
1103
1057
  const fx = cx / 100;
1104
1058
  const fy = cy / 100;
1059
+ if (source.bounds) {
1060
+ const { width, height } = source.bounds;
1061
+ const imageStops = stops.map((stop) => ({
1062
+ color: stop.color,
1063
+ position: stop.offset * 100,
1064
+ ...typeof stop.opacity === "number" ? { opacity: stop.opacity } : {}
1065
+ }));
1066
+ return imageDef(id, buildFocalCircleGradientSvg(imageStops, fx, fy, width, height));
1067
+ }
1105
1068
  const r = Math.hypot(Math.max(fx, 1 - fx), Math.max(fy, 1 - fy));
1106
1069
  return { kind: "radial", id, cx: round4(fx), cy: round4(fy), r: round4(r), stops };
1107
1070
  }
1108
1071
  const angle = typeof source.angle === "number" && Number.isFinite(source.angle) ? source.angle : 90;
1072
+ const { bounds } = source;
1073
+ if (bounds && source.scaled === false && Math.abs(bounds.width - bounds.height) >= 0.5 && Math.abs(angle % 90) > 0.01) {
1074
+ const imageStops = stops.map((stop) => ({
1075
+ color: stop.color,
1076
+ position: stop.offset * 100,
1077
+ ...typeof stop.opacity === "number" ? { opacity: stop.opacity } : {}
1078
+ }));
1079
+ return imageDef(
1080
+ id,
1081
+ buildTrueAngleLinearGradientSvg(imageStops, angle, bounds.width, bounds.height)
1082
+ );
1083
+ }
1109
1084
  return { kind: "linear", id, ...linearEndpoints(angle), stops };
1110
1085
  }
1111
- function buildSvgGradientDef(style, elementId) {
1086
+ function buildSvgGradientDef(style, elementId, bounds) {
1112
1087
  if (!style || style.fillMode !== "gradient") {
1113
1088
  return void 0;
1114
1089
  }
@@ -1119,7 +1094,9 @@ function buildSvgGradientDef(style, elementId) {
1119
1094
  pathType: style.fillGradientPathType,
1120
1095
  angle: style.fillGradientAngle,
1121
1096
  fillToRect: style.fillGradientFillToRect,
1122
- focalPoint: style.fillGradientFocalPoint
1097
+ focalPoint: style.fillGradientFocalPoint,
1098
+ scaled: style.fillGradientScaled,
1099
+ bounds: bounds && bounds.width > 0 && bounds.height > 0 ? bounds : void 0
1123
1100
  },
1124
1101
  svgGradientId(elementId)
1125
1102
  );
@@ -1321,7 +1298,15 @@ function snapTransform(element, isOpenPreset, strokeWidth) {
1321
1298
  return void 0;
1322
1299
  }
1323
1300
  const axis = element.height === 0 ? "h" : element.width === 0 ? "v" : void 0;
1324
- return axis ? snappedStrokeTransform(axis, place.x, place.y, strokeWidth, void 0, place.exact) : void 0;
1301
+ return axis ? snappedStrokeTransform(
1302
+ axis,
1303
+ place.x,
1304
+ place.y,
1305
+ strokeWidth,
1306
+ void 0,
1307
+ place.exact,
1308
+ isDashedStroke(hasShapeProperties(element) ? element.shapeStyle?.strokeDash : void 0)
1309
+ ) : void 0;
1325
1310
  }
1326
1311
  return shapeType === "rect" ? snappedStrokeTransform(
1327
1312
  "box",
@@ -1366,9 +1351,17 @@ function buildStrokeOutline(element) {
1366
1351
  const snap = paint || strands.length !== 1 ? void 0 : snapTransform(element, !!openPresetD, strokeWidth);
1367
1352
  const snapped = snap ? strands.map((strand) => ({ ...strand, cssTransform: snap })) : strands;
1368
1353
  const dashStartD = !ownPathD && isDashedStroke(style?.strokeDash) ? dashStartPathData(d, element.shapeType) : d;
1354
+ const markers = buildCustomPathMarkers(element, stroke);
1355
+ const dashedD = ownPathD && !markers && isDashedStroke(style?.strokeDash) ? squareCapDashedPathData(
1356
+ dashStartD,
1357
+ Math.max(lineWidth, 1),
1358
+ style?.strokeDash,
1359
+ style?.lineCap,
1360
+ style?.customDashSegments
1361
+ ) : dashStartD;
1369
1362
  return {
1370
- markers: buildCustomPathMarkers(element, stroke),
1371
- d: dashStartD,
1363
+ markers,
1364
+ d: dashedD,
1372
1365
  paint,
1373
1366
  stroke,
1374
1367
  strokeWidth,
@@ -1736,6 +1729,11 @@ function getSubpathGeometry(element, force = false) {
1736
1729
  return force || needsPerSubpathPaint(subpaths) ? { subpaths, width, height } : void 0;
1737
1730
  }
1738
1731
 
1732
+ // src/pptx/render/svg-attr-escape.ts
1733
+ function escapeSvgAttr(value) {
1734
+ return String(value).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1735
+ }
1736
+
1739
1737
  // src/pptx/render/silhouette-effects.ts
1740
1738
  var DEFAULT_SHADOW = "#000000";
1741
1739
  var DEFAULT_GLOW = "#ffff00";
@@ -1999,7 +1997,7 @@ function pairLayers(a, b, tag, parts) {
1999
1997
  function buildSilhouetteFilterMarkup(filterId, width, height, params, outgoing) {
2000
1998
  const pad = Math.ceil(Math.max(effectReach(params), outgoing ? effectReach(outgoing) : 0)) + 4;
2001
1999
  const parts = [
2002
- `<filter id="${filterId}" filterUnits="userSpaceOnUse" x="${-pad}" y="${-pad}" width="${px(Math.max(width, 1) + 2 * pad)}" height="${px(Math.max(height, 1) + 2 * pad)}" color-interpolation-filters="sRGB">`
2000
+ `<filter id="${escapeSvgAttr(filterId)}" filterUnits="userSpaceOnUse" x="${-pad}" y="${-pad}" width="${px(Math.max(width, 1) + 2 * pad)}" height="${px(Math.max(height, 1) + 2 * pad)}" color-interpolation-filters="sRGB">`
2003
2001
  ];
2004
2002
  const into = effectLayers(params, "", outgoing ? "in" : void 0);
2005
2003
  parts.push(...into.parts);
@@ -2053,9 +2051,6 @@ function usesSilhouetteEffects(element) {
2053
2051
  // src/pptx/render/visual-effects.ts
2054
2052
  var DEFAULT_SHADOW_COLOR = "#000000";
2055
2053
  var DEFAULT_GLOW_COLOR = "#ffff00";
2056
- function escapeSvgAttr(value) {
2057
- return String(value).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2058
- }
2059
2054
  function clampUnitInterval(value) {
2060
2055
  return Math.min(1, Math.max(0, value));
2061
2056
  }
@@ -2624,11 +2619,45 @@ function buildScaledLinearGradientImage(stops, ooxmlAngleDegrees) {
2624
2619
  return toCssUrl(svg);
2625
2620
  }
2626
2621
  function buildFocalCircleGradientImage(stops, fx, fy, width, height) {
2622
+ return toCssUrl(buildFocalCircleGradientSvg(stops, fx, fy, width, height));
2623
+ }
2624
+ function buildFocalCircleGradientSvg(stops, fx, fy, width, height) {
2627
2625
  const radius = Math.hypot(width, height) / 2;
2628
- const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${num2(width)} ${num2(height)}" preserveAspectRatio="none"><defs><radialGradient id="g" gradientUnits="userSpaceOnUse" cx="${num2(width / 2)}" cy="${num2(
2626
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${num2(width)} ${num2(height)}" preserveAspectRatio="none"><defs><radialGradient id="g" gradientUnits="userSpaceOnUse" cx="${num2(width / 2)}" cy="${num2(
2629
2627
  height / 2
2630
2628
  )}" r="${num2(radius)}" fx="${num2(fx * width)}" fy="${num2(fy * height)}">${stopMarkup(stops)}</radialGradient></defs><rect width="${num2(width)}" height="${num2(height)}" fill="url(#g)"/></svg>`;
2631
- return toCssUrl(svg);
2629
+ }
2630
+ function buildTrueAngleLinearGradientSvg(stops, ooxmlAngleDegrees, width, height) {
2631
+ const radians = ooxmlAngleDegrees * Math.PI / 180;
2632
+ const dx = Math.cos(radians);
2633
+ const dy = Math.sin(radians);
2634
+ const half = (Math.abs(dx) * width + Math.abs(dy) * height) / 2;
2635
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${num2(width)} ${num2(height)}" preserveAspectRatio="none"><defs><linearGradient id="g" gradientUnits="userSpaceOnUse" x1="${num2(width / 2 - dx * half)}" y1="${num2(
2636
+ height / 2 - dy * half
2637
+ )}" x2="${num2(width / 2 + dx * half)}" y2="${num2(height / 2 + dy * half)}">${stopMarkup(stops)}</linearGradient></defs><rect width="${num2(width)}" height="${num2(height)}" fill="url(#g)"/></svg>`;
2638
+ }
2639
+ var CACHE_LIMIT = 64;
2640
+ var cache = /* @__PURE__ */ new Map();
2641
+ function toCssUrl2(svg) {
2642
+ return `url("data:image/svg+xml,${encodeURIComponent(svg).replace(/[()]/gu, (c) => c === "(" ? "%28" : "%29")}")`;
2643
+ }
2644
+ function bodyPath(geometry) {
2645
+ const { shapeType, width, height, adjustments } = geometry;
2646
+ const evaluated = evaluatePresetShape(shapeType, width, height, adjustments) ?? evaluatePresetShape(getShapeType(shapeType), width, height, adjustments);
2647
+ const body = evaluated?.paths.find((path) => !path.fill || path.fill === "norm");
2648
+ return body ? closedSubpaths(body.d) : void 0;
2649
+ }
2650
+ function buildOutlineShapePathGradient(stops, geometry, focus) {
2651
+ if (!(geometry.width > 0) || !(geometry.height > 0)) return void 0;
2652
+ const key = JSON.stringify([stops, geometry, focus]);
2653
+ const known = cache.get(key);
2654
+ if (known !== void 0) return known ?? void 0;
2655
+ const d = bodyPath(geometry);
2656
+ const svg = d ? buildOutlinePathGradientSvg(stops, d, geometry.width, geometry.height, focus.x, focus.y) : void 0;
2657
+ const result = svg ? toCssUrl2(svg) : null;
2658
+ if (cache.size >= CACHE_LIMIT) cache.delete(cache.keys().next().value);
2659
+ cache.set(key, result);
2660
+ return result ?? void 0;
2632
2661
  }
2633
2662
 
2634
2663
  // src/pptx/render/vector-subpath-paint.ts
@@ -2926,6 +2955,24 @@ function buildGradientCss(gradient, context) {
2926
2955
  return buildRectPathGradient(stops, fp, ftr);
2927
2956
  }
2928
2957
  if (pathType === "shape") {
2958
+ const field = context?.freeform ? "circle" : context?.shapeType ? shapePathGradientField(context.shapeType) : "legacy";
2959
+ if (field === "circle") {
2960
+ return buildCirclePathGradient(stops, fp, ftr, context);
2961
+ }
2962
+ if (field === "outline" && context?.shapeType) {
2963
+ const { cx, cy } = computeGradientCenter(ftr, fp);
2964
+ const scaled = buildOutlineShapePathGradient(
2965
+ stops,
2966
+ {
2967
+ shapeType: context.shapeType,
2968
+ width: context.width ?? 0,
2969
+ height: context.height ?? 0,
2970
+ adjustments: context.shapeAdjustments
2971
+ },
2972
+ { x: cx / 100, y: cy / 100 }
2973
+ );
2974
+ if (scaled) return scaled;
2975
+ }
2929
2976
  return buildShapePathGradient(stops, fp, ftr);
2930
2977
  }
2931
2978
  return buildCirclePathGradient(stops, fp, ftr, context);
@@ -3323,11 +3370,19 @@ function resolveComputedFill(ss, element) {
3323
3370
  backgroundSize: tile ? "auto" : "100% 100%"
3324
3371
  };
3325
3372
  }
3373
+ const freeform = element.type === "shape" && (Boolean(element.pathData) || (element.customGeometryPaths?.length ?? 0) > 0);
3326
3374
  const geometry = {
3327
3375
  rotation: element.rotation,
3328
3376
  width: element.width,
3329
3377
  height: element.height,
3330
- rectangular: element.type === "shape" && getShapeType(element.shapeType) === "rect"
3378
+ // `getShapeType` folds every preset it does not model onto `rect`, so the
3379
+ // raw name decides: only a real rectangle follows the box.
3380
+ rectangular: element.type === "shape" && !freeform && (!element.shapeType || element.shapeType.toLowerCase() === "rect"),
3381
+ ...element.type === "shape" ? {
3382
+ freeform,
3383
+ ...element.shapeType ? { shapeType: element.shapeType } : {},
3384
+ shapeAdjustments: element.shapeAdjustments
3385
+ } : {}
3331
3386
  };
3332
3387
  const gradient = buildGradientCss(ss, geometry) ?? (ss.fillMode === "gradient" ? ss.fillGradient : void 0);
3333
3388
  if (gradient) {
@@ -3524,12 +3579,95 @@ function parseDrawingPercent(value) {
3524
3579
  return clampUnitInterval$1(parsed / 1e5);
3525
3580
  }
3526
3581
 
3582
+ // src/pptx/render/dash-square-cap.ts
3583
+ function parsePolyline(d) {
3584
+ const tokens = d.match(/[A-Za-z]|-?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/giu);
3585
+ if (!tokens || tokens[0] !== "M") return void 0;
3586
+ const points = [];
3587
+ let cmd = "";
3588
+ let i = 0;
3589
+ while (i < tokens.length) {
3590
+ const token = tokens[i];
3591
+ if (/^[A-Za-z]$/u.test(token)) {
3592
+ cmd = token;
3593
+ i += 1;
3594
+ if (cmd !== "M" && cmd !== "L") return void 0;
3595
+ if (cmd === "M" && points.length > 0) return void 0;
3596
+ continue;
3597
+ }
3598
+ const x = Number(token);
3599
+ const y = Number(tokens[i + 1]);
3600
+ if (!Number.isFinite(x) || !Number.isFinite(y)) return void 0;
3601
+ points.push([x, y]);
3602
+ i += 2;
3603
+ }
3604
+ return points.length >= 2 ? points : void 0;
3605
+ }
3606
+ var fmt4 = (n) => String(Number(n.toFixed(4)));
3607
+ function endsInDash(lengths, length) {
3608
+ const period = lengths.reduce((a, b) => a + b, 0);
3609
+ if (period <= 0) return false;
3610
+ let at = length % period;
3611
+ for (let i = 0; i < lengths.length; i += 1) {
3612
+ const len = lengths[i];
3613
+ if (at < len) return i % 2 === 0 && at > 0;
3614
+ at -= len;
3615
+ }
3616
+ return false;
3617
+ }
3618
+ function squareCapDashedPathData(d, strokeWidth, dashType, lineCap, customSegments) {
3619
+ if (lineCap !== "sq") return d;
3620
+ const pattern = dashPatternUnits(
3621
+ customSegments && customSegments.length > 0 ? "custom" : normalizeStrokeDashType(dashType),
3622
+ customSegments
3623
+ );
3624
+ const points = parsePolyline(d);
3625
+ if (!pattern || !points || !(strokeWidth > 0)) return d;
3626
+ const pen = dashPenWidth(strokeWidth);
3627
+ const half = pen / 2;
3628
+ const unit2 = pattern.map((n) => n * pen);
3629
+ const lengths = unit2.length % 2 === 1 ? [...unit2, ...unit2] : unit2;
3630
+ if ((lengths[0] ?? 0) < half) return d;
3631
+ let total = 0;
3632
+ let first;
3633
+ let last;
3634
+ for (let i = 1; i < points.length; i += 1) {
3635
+ const a = points[i - 1];
3636
+ const b = points[i];
3637
+ const len = Math.hypot(b[0] - a[0], b[1] - a[1]);
3638
+ if (len === 0) continue;
3639
+ total += len;
3640
+ first ??= [(b[0] - a[0]) / len, (b[1] - a[1]) / len];
3641
+ last = [(b[0] - a[0]) / len, (b[1] - a[1]) / len];
3642
+ }
3643
+ if (!first || !last || total === 0) return d;
3644
+ const p0 = points[0];
3645
+ const pn = points[points.length - 1];
3646
+ let out = `M${fmt4(p0[0] - first[0] * half)},${fmt4(p0[1] - first[1] * half)} L${fmt4(p0[0])},${fmt4(p0[1])} ${d}`;
3647
+ if (endsInDash(lengths, total)) {
3648
+ out += ` M${fmt4(pn[0])},${fmt4(pn[1])} L${fmt4(pn[0] + last[0] * half)},${fmt4(pn[1] + last[1] * half)}`;
3649
+ }
3650
+ return out;
3651
+ }
3652
+
3527
3653
  // src/pptx/render/connector-dash.ts
3528
3654
  function buildDashArray(dash, strokeWidth, customDashSegments, lineCap) {
3529
3655
  const segments = customDashSegments && customDashSegments.length > 0 ? customDashSegments.map((seg) => ({ dash: seg.dash, space: seg.space })) : void 0;
3530
3656
  const dashType = segments ? "custom" : normalizeStrokeDashType(dash);
3531
3657
  return getSvgStrokeDasharray(dashType, strokeWidth, segments, lineCap);
3532
3658
  }
3659
+ function connectorSquareCapPath(d, style, strokeWidth, hasMarkersOrStrands) {
3660
+ if (hasMarkersOrStrands || style?.lineCap !== "sq" || !style.strokeDash) return void 0;
3661
+ if (normalizeStrokeDashType(style.strokeDash) === "solid") return void 0;
3662
+ const out = squareCapDashedPathData(
3663
+ d,
3664
+ Math.max(strokeWidth, 1),
3665
+ style.strokeDash,
3666
+ style.lineCap,
3667
+ style.customDashSegments
3668
+ );
3669
+ return out === d ? void 0 : out;
3670
+ }
3533
3671
 
3534
3672
  // src/pptx/render/chart-legend-swatch.ts
3535
3673
  var LEGEND_LINE_SWATCH_WIDTH = 2;
@@ -5206,18 +5344,18 @@ function build3DSurfacePanels(prims, surfaces, depth) {
5206
5344
 
5207
5345
  // src/render-cache.ts
5208
5346
  var RENDER_CACHE_MAX_BYTES = 8 * 1024 * 1024;
5209
- function setBoundedRenderCache(cache, key, value, maxEntries) {
5347
+ function setBoundedRenderCache(cache2, key, value, maxEntries) {
5210
5348
  const bytesOf = (entryKey, entryValue) => (entryKey.length + (typeof entryValue === "string" ? entryValue.length : 0)) * 2;
5211
- cache.delete(key);
5349
+ cache2.delete(key);
5212
5350
  if (bytesOf(key, value) > RENDER_CACHE_MAX_BYTES) return;
5213
- cache.set(key, value);
5351
+ cache2.set(key, value);
5214
5352
  let bytes = 0;
5215
- for (const [entryKey, entryValue] of cache) bytes += bytesOf(entryKey, entryValue);
5216
- while (cache.size > maxEntries || bytes > RENDER_CACHE_MAX_BYTES) {
5217
- const first = cache.entries().next().value;
5353
+ for (const [entryKey, entryValue] of cache2) bytes += bytesOf(entryKey, entryValue);
5354
+ while (cache2.size > maxEntries || bytes > RENDER_CACHE_MAX_BYTES) {
5355
+ const first = cache2.entries().next().value;
5218
5356
  if (!first) break;
5219
5357
  bytes -= bytesOf(first[0], first[1]);
5220
- cache.delete(first[0]);
5358
+ cache2.delete(first[0]);
5221
5359
  }
5222
5360
  }
5223
5361
 
@@ -12755,4 +12893,4 @@ function computeTrendlinePrimitives(chartData, catCount, layout, range, mode = "
12755
12893
  return out;
12756
12894
  }
12757
12895
 
12758
- export { AXIS_LABEL_COLOR, CHART_PX_PER_PT, CHART_TITLE_FONT_PX, CHART_TITLE_TOP_INSET_PX, DATA_LABEL_LINE_HEIGHT, DATA_LABEL_PAD_X, DATA_LABEL_PAD_Y, DATA_TABLE_HEADER_H, DATA_TABLE_KEY_W, DATA_TABLE_PADDING, DATA_TABLE_ROW_H, DEFAULT_BODY_INSET_LR_PX, DEFAULT_BODY_INSET_TB_PX, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_CHART_AREA_FILL, DEFAULT_CHART_DATA_LABEL_PX, DEFAULT_CHART_TEXT_PX, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_PALETTE, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, GRIDLINE_COLOR3 as GRIDLINE_COLOR, HYPERLINK_COLOR, LEGACY_CHART_TITLE_BAND_PX, LEGEND_LINE_SWATCH_WIDTH, LEGEND_MARKER_RADIUS, MORPH_PROGRESS_VAR, OOXML_PATTERN_PRESETS, PIE_AUTO_INSET_PX, TEXT_ORIENTATION_IDENTITY, TEXT_SHADOW_BLUR_TO_CSS, ZERO_LINE_COLOR, adjustFillForMode, applyDataPointPictureFills, applyLegendEntryOverrides, applyParetoConversion, axisShowsMajorGridlines, axisTickValues, buildBoxWhiskerViewModel, buildCartesianViewModel, buildCategoryLabels, buildChartViewModel, buildCirclePathGradient, buildComboViewModel, buildCssGradientFromShapeStyle, buildCustomGeometryClipPath, buildCustomPathMarkers, buildDashArray, buildDataLabelText, buildFallbackViewModel, buildFunnelViewModel, buildGlowBoxShadow, buildGradientCss, buildGridlinesAndLabels, buildHistogramViewModel, buildInnerShadowCssFromShapeStyle, buildLegend, buildLineGlowFilter, buildLineLegendSwatch, buildLineShadowCss, buildMarkTooltip, buildMultiLayerShadowCss, buildPatternFill, buildPatternFillCss, buildPieViewModel, buildPrimaryAxis, buildRadarViewModel, buildRectPathGradient, buildReflectedGradientStops, buildRegionMapViewModel, buildSecondaryAxis, buildShadowCssFromShapeStyle, buildShapePathGradient, buildSilhouetteFilterMarkup, buildStockCloseLabel, buildStockViewModel, buildStrokeOutline, buildSubpathFillOverlay, buildSubpathPaints, buildSunburstViewModel, buildSurfaceViewModel, buildSvgGradientDef, buildSvgStrokeGradientDef, buildSvgStrokePatternDef, buildTreemapViewModel, buildTrendlineLegendSwatch, buildValueAxisGridlinesAndLabels, buildWaterfallViewModel, buildZeroLine, canvasFontFamily, capCompensatedDashArray, chartAreaCornerRadius, chartAreaFill, chartAxisIndex, chartFontPx, chartFrameToViewOffset, chartGridlinesPatch, chartGridlinesState, chartPlotBounds, chartPreserveAspectRatio, chartTextBox, chartTextFontFamily, chartTitleBand, chartTitleBandFor, chartTitleFontPx, chartTitleReservePx, clampCropValue, clearBarFacePicturePixelCache, clipStackedSegment, collapseChartTitleRunsForEdit, compoundStrandPath, computeAxisTitlePrimitives, computeBarRects, computeBoxWhiskerGeometry, computeChartLegendLayout, computeDataTableHeight, computeDataTablePrimitives, computeErrorBarPrimitives, computeFunnelSegments, computeGradientCenter, computeHierarchicalSunburstArcs, computeHistogramBars, computeHistogramBins, computeLayout, computeLayoutOptions, computeLinePoints, computePieLayout, computePieSlicePath, computePieSlices, computePlotLayout, computeScatterDots, computeScatterXDomain, computeStackedBarRects, computeStackedValueRange, computeSunburstArcs, computeTrendlinePrimitives, computeValueRange, computeValueRange2, connectorKind, connectorNeedsPath, connectorStrandScreenWidth, convertOoxmlAngleToCss, createArrayBufferCopy, cumulativePercentOfTotal, dashPatternUnits, dashPenWidth, dashStartPathData, dataLabelBox, dataLabelBoxSize, dataLabelFontOverride, decodeFirstPixelColor, ensureBarFacePicturePixelSampled, escapeSvgAttr, estimateChartTextWidth, estimateTextWidth, findDataPoint, findPointLabel, findValueAxis, fitTitleBand, flattenPath, formatAxisValue, formatAxisValue2, formatAxisValueWithUnits, getBarFacePicturePixelSampleVersion, getBoxShadowCss, getCachedBarFacePicturePixelColor, getCompositeOuterShadowFilterCss, getCompoundLineBorderWidth, getCompoundLineBoxShadow, getCompoundLineOffsets, getCompoundLineStyle, getCompoundLineWidths, getComputedEffectStyle, getComputedFillStyle, getComputedStrokeStyle, getCssBorderDashStyle, getDisplayUnitDivisor, getDisplayUnitLabel, getDuotoneFilterId, getDuotoneSvgFilter, getDuotoneSvgFilterMarkup, getEffectDagBlendMode, getEffectDagCssFilter, getEffectDagFillOverlay, getEffectDagFilter, getEffectDagOpacity, getEffectFilterCss, getEffectStyleSource, getElementOrientationMatrix, getElementTransform, getElementTransformWithoutRotation, getGlowBoxShadowCss, getGradientTileFlipCss, getGradientTileRectCss, getInnerShadowCss, getLineGlowFilterCss, getLineShadowCss, getLineShadowParams, getMultiLayerShadowCss, getOuterShadowCss, getPatternSvg, getPatternTile, getPptxRenderCacheEpoch, getPresetShapeVectorGeometry, getPrimaryValueAxis, getPrimaryValueAxisId, getReflectionWrapperStyle, getResolvedShapeClipPath, getResolvedShapeClipPathFor, getSecondaryCategoryAxis, getSecondaryValueAxis, getSecondaryValueAxisId, getShapeEffectFilterDefs, getShapeFillOverlay, getSilhouetteEffectParams, getSilhouetteEffects, getSilhouetteFilterId, getSoftEdgeFilterId, getSoftEdgeSvgFilter, getSplitStrokePresetPaths, getStrokeOnlyPresetPaths, getSvgStrokeDasharray, getTextCompensationTransform, getTextReflectionWrapperStyle, glowFilterLengths, hasEffectDagProperties, hasImageEffects, hasSecondaryCategoryAxis, hasSecondaryValueAxis, hasStrokePaint, invalidatePptxRenderCacheEpoch, isArrowedCustomPath, isDashedStroke, isIdentityRectClip, isParetoChart, isPatternPaint, isPrimaryCategoryAxisAtTop, isSeriesOnSecondaryAxis, isStrokeOnlyPresetElement, isTextOrientationMatrix, isWedgeCalloutPresetShape, linePointsToSvgString, manualLayoutOf, manualLegendAnchor, manualTitleAnchor, markerPath, measureChartTextWidth, multiplyTextOrientationMatrices, normalizeArrow, normalizeStrokeDashType, orderParetoEntries, outlinePathData, outlineStrokeJoin, outsetClipPathForStroke, paintedStrokeWidth, paletteColor, paletteColor2, parseDrawingPercent, plotAreaFill, primaryValueAxis, registerGroupChildren, registerSilhouetteMorph, reserveLegendSpace, resetBarFacePicturePixelCacheForTests, resolveActiveDataPointPicture, resolveBarFacePicturePixelColor, resolveBarFaceTargets, resolveBarLabelAnchor, resolveBarLabelPlacement, resolveBaseShapeGeometry, resolveCategoryLabels, resolveChartKind, resolveChartPalette, resolveChartStyleDefaults, resolveChartTitleRunSpans, resolveChartTitleTextStyle, resolveComputedFill, resolveDataLabelContent, resolveDataLabelTextStyle, resolveDataPointExplosion, resolveDataPointFill, resolveDataPointMarker, resolveDataPointPictureFill, resolveDisplayedChartType, resolveExtrusionFaceFill, resolveGlow, resolveInnerShadow, resolveLabelPosition, resolveLegendAnchorPosition, resolveLegendPlacement, resolveLegendSwatchKind, resolveLiveCustomGeometryPath, resolveMarkerLabelAnchor, resolveMarkerLabelPlacement, resolveOuterShadowLayers, resolveUntargetedBarFaceFill, resolveVaryColorFill, sanitizeGradientStops, seriesColor, seriesColor2, seriesXValues, setBoundedRenderCache, setChartTextMeasurer, shouldRenderMajorGridlines, silhouetteFillsLayer, silhouetteFillsOverlay, silhouetteMorphEntry, snapPlacement, splitLabelLines, splitSeriesByAxis, splitStrokePresetPathData, stackedBarWidth, stackedSegmentExtent, straddlingStrokeWidth, strokeMiterLimit, strokeOnlyPresetPathData, strokeOutlineViewBox, subscribeBarFacePicturePixelSamples, suppressesCssBorder, suppressesCssFill, surfaceColor, svgGradientFillRef, svgGradientId, svgGradientMarkup, svgLineCap, titleBaselineFor, toCssGradientStop, unitsCaptionOffset, upsertDataPoint, usesSilhouetteEffects, valueToY, valueToY2, withChartTitleBand, withManualLayouts, withResolvedPalette, wrapTextByEstimatedWidth };
12896
+ export { AXIS_LABEL_COLOR, CHART_PX_PER_PT, CHART_TITLE_FONT_PX, CHART_TITLE_TOP_INSET_PX, DATA_LABEL_LINE_HEIGHT, DATA_LABEL_PAD_X, DATA_LABEL_PAD_Y, DATA_TABLE_HEADER_H, DATA_TABLE_KEY_W, DATA_TABLE_PADDING, DATA_TABLE_ROW_H, DEFAULT_BODY_INSET_LR_PX, DEFAULT_BODY_INSET_TB_PX, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_CHART_AREA_FILL, DEFAULT_CHART_DATA_LABEL_PX, DEFAULT_CHART_TEXT_PX, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_PALETTE, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, GRIDLINE_COLOR3 as GRIDLINE_COLOR, HYPERLINK_COLOR, LEGACY_CHART_TITLE_BAND_PX, LEGEND_LINE_SWATCH_WIDTH, LEGEND_MARKER_RADIUS, MORPH_PROGRESS_VAR, OOXML_PATTERN_PRESETS, PIE_AUTO_INSET_PX, TEXT_ORIENTATION_IDENTITY, TEXT_SHADOW_BLUR_TO_CSS, ZERO_LINE_COLOR, adjustFillForMode, applyDataPointPictureFills, applyLegendEntryOverrides, applyParetoConversion, axisShowsMajorGridlines, axisTickValues, buildBoxWhiskerViewModel, buildCartesianViewModel, buildCategoryLabels, buildChartViewModel, buildCirclePathGradient, buildComboViewModel, buildCssGradientFromShapeStyle, buildCustomGeometryClipPath, buildCustomPathMarkers, buildDashArray, buildDataLabelText, buildFallbackViewModel, buildFunnelViewModel, buildGlowBoxShadow, buildGradientCss, buildGridlinesAndLabels, buildHistogramViewModel, buildInnerShadowCssFromShapeStyle, buildLegend, buildLineGlowFilter, buildLineLegendSwatch, buildLineShadowCss, buildMarkTooltip, buildMultiLayerShadowCss, buildPatternFill, buildPatternFillCss, buildPieViewModel, buildPrimaryAxis, buildRadarViewModel, buildRectPathGradient, buildReflectedGradientStops, buildRegionMapViewModel, buildSecondaryAxis, buildShadowCssFromShapeStyle, buildShapePathGradient, buildSilhouetteFilterMarkup, buildStockCloseLabel, buildStockViewModel, buildStrokeOutline, buildSubpathFillOverlay, buildSubpathPaints, buildSunburstViewModel, buildSurfaceViewModel, buildSvgGradientDef, buildSvgStrokeGradientDef, buildSvgStrokePatternDef, buildTreemapViewModel, buildTrendlineLegendSwatch, buildValueAxisGridlinesAndLabels, buildWaterfallViewModel, buildZeroLine, canvasFontFamily, chartAreaCornerRadius, chartAreaFill, chartAxisIndex, chartFontPx, chartFrameToViewOffset, chartGridlinesPatch, chartGridlinesState, chartPlotBounds, chartPreserveAspectRatio, chartTextBox, chartTextFontFamily, chartTitleBand, chartTitleBandFor, chartTitleFontPx, chartTitleReservePx, clampCropValue, clearBarFacePicturePixelCache, clipStackedSegment, collapseChartTitleRunsForEdit, compoundStrandPath, computeAxisTitlePrimitives, computeBarRects, computeBoxWhiskerGeometry, computeChartLegendLayout, computeDataTableHeight, computeDataTablePrimitives, computeErrorBarPrimitives, computeFunnelSegments, computeGradientCenter, computeHierarchicalSunburstArcs, computeHistogramBars, computeHistogramBins, computeLayout, computeLayoutOptions, computeLinePoints, computePieLayout, computePieSlicePath, computePieSlices, computePlotLayout, computeScatterDots, computeScatterXDomain, computeStackedBarRects, computeStackedValueRange, computeSunburstArcs, computeTrendlinePrimitives, computeValueRange, computeValueRange2, connectorKind, connectorNeedsPath, connectorSquareCapPath, connectorStrandScreenWidth, convertOoxmlAngleToCss, createArrayBufferCopy, cumulativePercentOfTotal, dashStartPathData, dataLabelBox, dataLabelBoxSize, dataLabelFontOverride, decodeFirstPixelColor, ensureBarFacePicturePixelSampled, escapeSvgAttr, estimateChartTextWidth, estimateTextWidth, findDataPoint, findPointLabel, findValueAxis, fitTitleBand, flattenPath, formatAxisValue, formatAxisValue2, formatAxisValueWithUnits, getBarFacePicturePixelSampleVersion, getBoxShadowCss, getCachedBarFacePicturePixelColor, getCompositeOuterShadowFilterCss, getCompoundLineBorderWidth, getCompoundLineBoxShadow, getCompoundLineOffsets, getCompoundLineStyle, getCompoundLineWidths, getComputedEffectStyle, getComputedFillStyle, getComputedStrokeStyle, getCssBorderDashStyle, getDisplayUnitDivisor, getDisplayUnitLabel, getDuotoneFilterId, getDuotoneSvgFilter, getDuotoneSvgFilterMarkup, getEffectDagBlendMode, getEffectDagCssFilter, getEffectDagFillOverlay, getEffectDagFilter, getEffectDagOpacity, getEffectFilterCss, getEffectStyleSource, getElementOrientationMatrix, getElementTransform, getElementTransformWithoutRotation, getGlowBoxShadowCss, getGradientTileFlipCss, getGradientTileRectCss, getInnerShadowCss, getLineGlowFilterCss, getLineShadowCss, getLineShadowParams, getMultiLayerShadowCss, getOuterShadowCss, getPatternSvg, getPatternTile, getPptxRenderCacheEpoch, getPresetShapeVectorGeometry, getPrimaryValueAxis, getPrimaryValueAxisId, getReflectionWrapperStyle, getResolvedShapeClipPath, getResolvedShapeClipPathFor, getSecondaryCategoryAxis, getSecondaryValueAxis, getSecondaryValueAxisId, getShapeEffectFilterDefs, getShapeFillOverlay, getSilhouetteEffectParams, getSilhouetteEffects, getSilhouetteFilterId, getSoftEdgeFilterId, getSoftEdgeSvgFilter, getSplitStrokePresetPaths, getStrokeOnlyPresetPaths, getSvgStrokeDasharray, getTextCompensationTransform, getTextReflectionWrapperStyle, glowFilterLengths, hasEffectDagProperties, hasImageEffects, hasSecondaryCategoryAxis, hasSecondaryValueAxis, hasStrokePaint, invalidatePptxRenderCacheEpoch, isArrowedCustomPath, isIdentityRectClip, isParetoChart, isPatternPaint, isPrimaryCategoryAxisAtTop, isSeriesOnSecondaryAxis, isStrokeOnlyPresetElement, isTextOrientationMatrix, isWedgeCalloutPresetShape, linePointsToSvgString, manualLayoutOf, manualLegendAnchor, manualTitleAnchor, markerPath, measureChartTextWidth, multiplyTextOrientationMatrices, normalizeArrow, normalizeStrokeDashType, orderParetoEntries, outlinePathData, outlineStrokeJoin, outsetClipPathForStroke, paintedStrokeWidth, paletteColor, paletteColor2, parseDrawingPercent, plotAreaFill, primaryValueAxis, registerGroupChildren, registerSilhouetteMorph, reserveLegendSpace, resetBarFacePicturePixelCacheForTests, resolveActiveDataPointPicture, resolveBarFacePicturePixelColor, resolveBarFaceTargets, resolveBarLabelAnchor, resolveBarLabelPlacement, resolveBaseShapeGeometry, resolveCategoryLabels, resolveChartKind, resolveChartPalette, resolveChartStyleDefaults, resolveChartTitleRunSpans, resolveChartTitleTextStyle, resolveComputedFill, resolveDataLabelContent, resolveDataLabelTextStyle, resolveDataPointExplosion, resolveDataPointFill, resolveDataPointMarker, resolveDataPointPictureFill, resolveDisplayedChartType, resolveExtrusionFaceFill, resolveGlow, resolveInnerShadow, resolveLabelPosition, resolveLegendAnchorPosition, resolveLegendPlacement, resolveLegendSwatchKind, resolveLiveCustomGeometryPath, resolveMarkerLabelAnchor, resolveMarkerLabelPlacement, resolveOuterShadowLayers, resolveUntargetedBarFaceFill, resolveVaryColorFill, sanitizeGradientStops, seriesColor, seriesColor2, seriesXValues, setBoundedRenderCache, setChartTextMeasurer, shouldRenderMajorGridlines, silhouetteFillsLayer, silhouetteFillsOverlay, silhouetteMorphEntry, snapPlacement, splitLabelLines, splitSeriesByAxis, splitStrokePresetPathData, squareCapDashedPathData, stackedBarWidth, stackedSegmentExtent, straddlingStrokeWidth, strokeMiterLimit, strokeOnlyPresetPathData, strokeOutlineViewBox, subscribeBarFacePicturePixelSamples, suppressesCssBorder, suppressesCssFill, surfaceColor, svgGradientFillRef, svgGradientId, svgGradientMarkup, svgLineCap, titleBaselineFor, toCssGradientStop, unitsCaptionOffset, upsertDataPoint, usesSilhouetteEffects, valueToY, valueToY2, withChartTitleBand, withManualLayouts, withResolvedPalette, wrapTextByEstimatedWidth };
@@ -1 +1 @@
1
- {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/pptx/dom/elements/connector.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAwB,eAAe,EAAE,MAAM,UAAU,CAAC;AAGtE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,EAAE,eA2LpC,CAAC"}
1
+ {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/pptx/dom/elements/connector.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAwB,eAAe,EAAE,MAAM,UAAU,CAAC;AAGtE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,EAAE,eAoMpC,CAAC"}