pptx-react-viewer 2.12.1 → 2.13.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.
- package/CHANGELOG.md +2 -0
- package/dist/{AiChatPanel-CGGUPVQX.mjs → AiChatPanel-4YS6DEIT.mjs} +3 -3
- package/dist/AiChatPanel-4YS6DEIT.mjs.br +0 -0
- package/dist/AiChatPanel-4YS6DEIT.mjs.gz +0 -0
- package/dist/{AiChatPanel-UEFYTUJN.js → AiChatPanel-DEI3EQFM.js} +22 -22
- package/dist/AiChatPanel-DEI3EQFM.js.br +0 -0
- package/dist/AiChatPanel-DEI3EQFM.js.gz +0 -0
- package/dist/{Model3DScene-TU4NTHRM.mjs → Model3DScene-JSNQCKCJ.mjs} +1 -1
- package/dist/Model3DScene-JSNQCKCJ.mjs.br +0 -0
- package/dist/Model3DScene-JSNQCKCJ.mjs.gz +0 -0
- package/dist/{Model3DScene-QYXJNALP.js → Model3DScene-X4W7GZVY.js} +2 -2
- package/dist/Model3DScene-X4W7GZVY.js.br +0 -0
- package/dist/Model3DScene-X4W7GZVY.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-VTJBKUQY.mjs → SurfaceChart3DScene-3MSU74YH.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-VTJBKUQY.mjs.br → SurfaceChart3DScene-3MSU74YH.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-3MSU74YH.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-4VCO3DRP.js → SurfaceChart3DScene-IZLUWT27.js} +2 -2
- package/dist/SurfaceChart3DScene-IZLUWT27.js.br +0 -0
- package/dist/SurfaceChart3DScene-IZLUWT27.js.gz +0 -0
- package/dist/{chunk-CABQXGPI.mjs → chunk-4TD7EINA.mjs} +770 -358
- package/dist/chunk-4TD7EINA.mjs.br +0 -0
- package/dist/chunk-4TD7EINA.mjs.gz +0 -0
- package/dist/{chunk-4GYNTY2G.mjs → chunk-6KRNQ2KF.mjs} +2 -2
- package/dist/chunk-6KRNQ2KF.mjs.br +0 -0
- package/dist/chunk-6KRNQ2KF.mjs.gz +0 -0
- package/dist/{chunk-TDUDH7S4.js → chunk-EFSQW6S5.js} +771 -357
- package/dist/chunk-EFSQW6S5.js.br +0 -0
- package/dist/chunk-EFSQW6S5.js.gz +0 -0
- package/dist/{chunk-UIWY4XJT.js → chunk-G2LZT5SV.js} +3 -3
- package/dist/chunk-G2LZT5SV.js.br +0 -0
- package/dist/chunk-G2LZT5SV.js.gz +0 -0
- package/dist/{chunk-YIPR3GKG.mjs → chunk-HRLF4REI.mjs} +34 -15
- package/dist/chunk-HRLF4REI.mjs.br +0 -0
- package/dist/chunk-HRLF4REI.mjs.gz +0 -0
- package/dist/{chunk-LE6YA5WB.js → chunk-IDW5UPXW.js} +264 -245
- package/dist/chunk-IDW5UPXW.js.br +0 -0
- package/dist/chunk-IDW5UPXW.js.gz +0 -0
- package/dist/{chunk-NUDH7TI2.js → chunk-RWIQHVZQ.js} +326 -326
- package/dist/chunk-RWIQHVZQ.js.br +0 -0
- package/dist/chunk-RWIQHVZQ.js.gz +0 -0
- package/dist/{chunk-GBKIWNW6.js → chunk-SHZ3GWOD.js} +1045 -1042
- package/dist/chunk-SHZ3GWOD.js.br +0 -0
- package/dist/chunk-SHZ3GWOD.js.gz +0 -0
- package/dist/{chunk-N3NKU7SC.mjs → chunk-WEU5EMKK.mjs} +1 -1
- package/dist/chunk-WEU5EMKK.mjs.br +0 -0
- package/dist/chunk-WEU5EMKK.mjs.gz +0 -0
- package/dist/{chunk-4SGXEGVL.mjs → chunk-YA7VFYTW.mjs} +17 -14
- package/dist/chunk-YA7VFYTW.mjs.br +0 -0
- package/dist/chunk-YA7VFYTW.mjs.gz +0 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +34 -34
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +18 -0
- package/dist/internals.js +78 -78
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.d.ts +18 -0
- package/dist/viewer/index.js +21 -21
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +5 -5
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-CGGUPVQX.mjs.br +0 -0
- package/dist/AiChatPanel-CGGUPVQX.mjs.gz +0 -0
- package/dist/AiChatPanel-UEFYTUJN.js.br +0 -0
- package/dist/AiChatPanel-UEFYTUJN.js.gz +0 -0
- package/dist/Model3DScene-QYXJNALP.js.br +0 -0
- package/dist/Model3DScene-QYXJNALP.js.gz +0 -0
- package/dist/Model3DScene-TU4NTHRM.mjs.br +0 -0
- package/dist/Model3DScene-TU4NTHRM.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-4VCO3DRP.js.br +0 -0
- package/dist/SurfaceChart3DScene-4VCO3DRP.js.gz +0 -0
- package/dist/SurfaceChart3DScene-VTJBKUQY.mjs.gz +0 -0
- package/dist/chunk-4GYNTY2G.mjs.br +0 -0
- package/dist/chunk-4GYNTY2G.mjs.gz +0 -0
- package/dist/chunk-4SGXEGVL.mjs.br +0 -0
- package/dist/chunk-4SGXEGVL.mjs.gz +0 -0
- package/dist/chunk-CABQXGPI.mjs.br +0 -0
- package/dist/chunk-CABQXGPI.mjs.gz +0 -0
- package/dist/chunk-GBKIWNW6.js.br +0 -0
- package/dist/chunk-GBKIWNW6.js.gz +0 -0
- package/dist/chunk-LE6YA5WB.js.br +0 -0
- package/dist/chunk-LE6YA5WB.js.gz +0 -0
- package/dist/chunk-N3NKU7SC.mjs.br +0 -0
- package/dist/chunk-N3NKU7SC.mjs.gz +0 -0
- package/dist/chunk-NUDH7TI2.js.br +0 -0
- package/dist/chunk-NUDH7TI2.js.gz +0 -0
- package/dist/chunk-TDUDH7S4.js.br +0 -0
- package/dist/chunk-TDUDH7S4.js.gz +0 -0
- package/dist/chunk-UIWY4XJT.js.br +0 -0
- package/dist/chunk-UIWY4XJT.js.gz +0 -0
- package/dist/chunk-YIPR3GKG.mjs.br +0 -0
- package/dist/chunk-YIPR3GKG.mjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEFSQW6S5_js = require('./chunk-EFSQW6S5.js');
|
|
4
4
|
var chunk4VNS5WPM_js = require('./chunk-4VNS5WPM.js');
|
|
5
5
|
var mcp = require('pptx-viewer-mcp');
|
|
6
6
|
var mcpSchemas = require('pptx-viewer-mcp/schemas');
|
|
@@ -14879,7 +14879,7 @@ async function buildSlideMarkdown(slides, slideIndex2, meta3, options = {}) {
|
|
|
14879
14879
|
};
|
|
14880
14880
|
let markdown;
|
|
14881
14881
|
try {
|
|
14882
|
-
const converter = new
|
|
14882
|
+
const converter = new chunkEFSQW6S5_js.PptxMarkdownConverter(
|
|
14883
14883
|
"",
|
|
14884
14884
|
{
|
|
14885
14885
|
sourceName: meta3.title ?? "deck.pptx",
|
|
@@ -15470,7 +15470,7 @@ var getTheme = (ctx) => {
|
|
|
15470
15470
|
name: theme?.name,
|
|
15471
15471
|
colorScheme: theme?.colorScheme,
|
|
15472
15472
|
fontScheme: theme?.fontScheme,
|
|
15473
|
-
availablePresets: Object.keys(
|
|
15473
|
+
availablePresets: Object.keys(chunkEFSQW6S5_js.ThemePresets)
|
|
15474
15474
|
};
|
|
15475
15475
|
};
|
|
15476
15476
|
var readExecutors = {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { translationsEn } from './chunk-TEXIGSA6.mjs';
|
|
2
|
-
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, isTemplateElement, getImageFitStyle, isImageLikeElement, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, resolveParagraphStrutFontSize, colorWithOpacity, normalizeHexColor, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, suppressesCssBorder, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx, substituteFieldText, resolveUnderlineDecorationStyle, resolveAutoFitFontScale, getSubstituteFontFamily, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, evaluatePresetShape, sanitizeGradientStops, getGradientTileFlipCss, getGradientTileRectCss, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, ooxmlGradientAngleToCssDegrees, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-
|
|
2
|
+
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, isTemplateElement, getImageFitStyle, isImageLikeElement, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, resolveParagraphStrutFontSize, colorWithOpacity, normalizeHexColor, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, suppressesCssBorder, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx, substituteFieldText, resolveUnderlineDecorationStyle, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, evaluatePresetShape, sanitizeGradientStops, getGradientTileFlipCss, getGradientTileRectCss, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, chartAreaFill, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, ooxmlGradientAngleToCssDegrees, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-4TD7EINA.mjs';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import React6, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useLayoutEffect } from 'react';
|
|
@@ -1770,12 +1770,25 @@ function renderSingleSegment(element, segment, segmentIndex, fallbackColor, find
|
|
|
1770
1770
|
const baseFontSizePt = baseFontSize * (72 / 96);
|
|
1771
1771
|
const fontKerning = typeof segmentStyle.kerning === "number" ? segmentStyle.kerning === 0 ? "none" : baseFontSizePt >= segmentStyle.kerning / 100 ? "normal" : "none" : void 0;
|
|
1772
1772
|
const rawFontFamily = segmentStyle.fontFamily || element.textStyle?.fontFamily;
|
|
1773
|
-
const baseFontFamily = rawFontFamily ? getSubstituteFontFamily(
|
|
1773
|
+
const baseFontFamily = rawFontFamily ? getSubstituteFontFamily(
|
|
1774
|
+
rawFontFamily,
|
|
1775
|
+
parsePanoseString(segmentStyle.latinFontPanose ?? element.textStyle?.latinFontPanose)
|
|
1776
|
+
) : DEFAULT_FONT_FAMILY;
|
|
1777
|
+
const scriptFont = (name, panose) => name ? getSubstituteFontFamily(name, parsePanoseString(panose)) : baseFontFamily;
|
|
1774
1778
|
const scriptFonts = {
|
|
1775
1779
|
latin: baseFontFamily,
|
|
1776
|
-
eastAsia:
|
|
1777
|
-
|
|
1778
|
-
|
|
1780
|
+
eastAsia: scriptFont(
|
|
1781
|
+
segmentStyle.eastAsiaFont || element.textStyle?.eastAsiaFont,
|
|
1782
|
+
segmentStyle.eastAsiaFontPanose ?? element.textStyle?.eastAsiaFontPanose
|
|
1783
|
+
),
|
|
1784
|
+
complexScript: scriptFont(
|
|
1785
|
+
segmentStyle.complexScriptFont || element.textStyle?.complexScriptFont,
|
|
1786
|
+
segmentStyle.complexScriptFontPanose ?? element.textStyle?.complexScriptFontPanose
|
|
1787
|
+
),
|
|
1788
|
+
symbol: scriptFont(
|
|
1789
|
+
segmentStyle.symbolFont || element.textStyle?.symbolFont,
|
|
1790
|
+
segmentStyle.symbolFontPanose ?? element.textStyle?.symbolFontPanose
|
|
1791
|
+
)
|
|
1779
1792
|
};
|
|
1780
1793
|
const needsScriptFonts = hasDistinctScriptFonts(scriptFonts);
|
|
1781
1794
|
const spanStyle = {
|
|
@@ -2544,8 +2557,8 @@ function getConnectorAdjustment(element, key, fallback) {
|
|
|
2544
2557
|
return clampUnitInterval(fallback);
|
|
2545
2558
|
}
|
|
2546
2559
|
function getConnectorPathGeometry(element) {
|
|
2547
|
-
const width = Math.max(element.width,
|
|
2548
|
-
const height = Math.max(element.height,
|
|
2560
|
+
const width = Math.max(element.width, 0);
|
|
2561
|
+
const height = Math.max(element.height, 0);
|
|
2549
2562
|
const normalizedType = (element.shapeType || "").toLowerCase();
|
|
2550
2563
|
const mapX = (value) => value;
|
|
2551
2564
|
const mapY = (value) => value;
|
|
@@ -4557,7 +4570,7 @@ function renderChartViewModel(elementId, vm, preserveAspectRatio = "none") {
|
|
|
4557
4570
|
viewBox: `0 0 ${vm.svgWidth} ${vm.svgHeight}`,
|
|
4558
4571
|
preserveAspectRatio,
|
|
4559
4572
|
children: [
|
|
4560
|
-
/* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: vm.svgWidth, height: vm.svgHeight, fill:
|
|
4573
|
+
vm.areaFill && /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: vm.svgWidth, height: vm.svgHeight, fill: vm.areaFill }),
|
|
4561
4574
|
vm.title && /* @__PURE__ */ jsx(
|
|
4562
4575
|
"text",
|
|
4563
4576
|
{
|
|
@@ -6108,6 +6121,7 @@ function renderChartDataTable(elementId, chartData, svgWidth) {
|
|
|
6108
6121
|
}
|
|
6109
6122
|
function renderStockChart(element, chartData, categoryLabels) {
|
|
6110
6123
|
const style = chartData.style;
|
|
6124
|
+
const areaFill = chartAreaFill(chartData);
|
|
6111
6125
|
const legendPos = style?.legendPosition || "b";
|
|
6112
6126
|
const range = computeValueRangeForChart(chartData.series, chartData.axes);
|
|
6113
6127
|
const layout = computeLayout(element.width, element.height, style, true, legendPos);
|
|
@@ -6192,7 +6206,7 @@ function renderStockChart(element, chartData, categoryLabels) {
|
|
|
6192
6206
|
viewBox: `0 0 ${layout.svgWidth} ${layout.svgHeight}`,
|
|
6193
6207
|
preserveAspectRatio: "none",
|
|
6194
6208
|
children: [
|
|
6195
|
-
/* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill:
|
|
6209
|
+
areaFill && /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill: areaFill }),
|
|
6196
6210
|
renderChrome(element.id, chartData, layout, range, categoryLabels, {
|
|
6197
6211
|
categoryAxisStyle: "bar"
|
|
6198
6212
|
}),
|
|
@@ -6219,7 +6233,7 @@ function FailedToLoad() {
|
|
|
6219
6233
|
var LazySurfaceChart3DScene = React6.lazy(
|
|
6220
6234
|
async () => {
|
|
6221
6235
|
try {
|
|
6222
|
-
return await import('./SurfaceChart3DScene-
|
|
6236
|
+
return await import('./SurfaceChart3DScene-3MSU74YH.mjs');
|
|
6223
6237
|
} catch {
|
|
6224
6238
|
return { default: FailedToLoad };
|
|
6225
6239
|
}
|
|
@@ -6362,6 +6376,7 @@ function darkenRgb(r, g, b, factor) {
|
|
|
6362
6376
|
}
|
|
6363
6377
|
function renderIsometricSurfaceChart(element, chartData, categoryLabels) {
|
|
6364
6378
|
const style = chartData.style;
|
|
6379
|
+
const areaFill = chartAreaFill(chartData);
|
|
6365
6380
|
const legendPos = style?.legendPosition || "b";
|
|
6366
6381
|
const layout = computeLayout(element.width, element.height, style, false, legendPos);
|
|
6367
6382
|
const range = computeValueRangeForChart(chartData.series, chartData.axes);
|
|
@@ -6443,7 +6458,7 @@ function renderIsometricSurfaceChart(element, chartData, categoryLabels) {
|
|
|
6443
6458
|
viewBox: `0 0 ${layout.svgWidth} ${layout.svgHeight}`,
|
|
6444
6459
|
preserveAspectRatio: "xMidYMid meet",
|
|
6445
6460
|
children: [
|
|
6446
|
-
/* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill:
|
|
6461
|
+
areaFill && /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill: areaFill }),
|
|
6447
6462
|
renderTitle(element.id, style, chartData.title, layout.svgWidth),
|
|
6448
6463
|
renderLegend(element.id, style, chartData.series, layout),
|
|
6449
6464
|
polygons
|
|
@@ -6453,6 +6468,7 @@ function renderIsometricSurfaceChart(element, chartData, categoryLabels) {
|
|
|
6453
6468
|
}
|
|
6454
6469
|
function renderFlatSurfaceChart(element, chartData, categoryLabels) {
|
|
6455
6470
|
const style = chartData.style;
|
|
6471
|
+
const areaFill = chartAreaFill(chartData);
|
|
6456
6472
|
const legendPos = style?.legendPosition || "b";
|
|
6457
6473
|
const layout = computeLayout(element.width, element.height, style, true, legendPos);
|
|
6458
6474
|
const range = computeValueRangeForChart(chartData.series, chartData.axes);
|
|
@@ -6489,7 +6505,7 @@ function renderFlatSurfaceChart(element, chartData, categoryLabels) {
|
|
|
6489
6505
|
viewBox: `0 0 ${layout.svgWidth} ${layout.svgHeight}`,
|
|
6490
6506
|
preserveAspectRatio: "none",
|
|
6491
6507
|
children: [
|
|
6492
|
-
/* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill:
|
|
6508
|
+
areaFill && /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill: areaFill }),
|
|
6493
6509
|
renderChrome(element.id, chartData, layout, range, categoryLabels, {
|
|
6494
6510
|
categoryAxisStyle: "bar"
|
|
6495
6511
|
}),
|
|
@@ -6517,6 +6533,7 @@ function renderSurfaceChart(element, chartData, categoryLabels) {
|
|
|
6517
6533
|
}
|
|
6518
6534
|
function renderTreemapChart(element, chartData, categoryLabels) {
|
|
6519
6535
|
const style = chartData.style;
|
|
6536
|
+
const areaFill = chartAreaFill(chartData);
|
|
6520
6537
|
const legendPos = style?.legendPosition || "b";
|
|
6521
6538
|
const layout = computeLayout(element.width, element.height, style, false, legendPos);
|
|
6522
6539
|
const allValues = chartData.series.flatMap((s) => s.values);
|
|
@@ -6582,7 +6599,7 @@ function renderTreemapChart(element, chartData, categoryLabels) {
|
|
|
6582
6599
|
viewBox: `0 0 ${layout.svgWidth} ${layout.svgHeight}`,
|
|
6583
6600
|
preserveAspectRatio: "none",
|
|
6584
6601
|
children: [
|
|
6585
|
-
/* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill:
|
|
6602
|
+
areaFill && /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill: areaFill }),
|
|
6586
6603
|
renderTitle(element.id, style, chartData.title, layout.svgWidth),
|
|
6587
6604
|
renderLegend(element.id, style, chartData.series, layout),
|
|
6588
6605
|
rects
|
|
@@ -6592,6 +6609,7 @@ function renderTreemapChart(element, chartData, categoryLabels) {
|
|
|
6592
6609
|
}
|
|
6593
6610
|
function renderWaterfallChart(element, chartData, categoryLabels) {
|
|
6594
6611
|
const style = chartData.style;
|
|
6612
|
+
const areaFill = chartAreaFill(chartData);
|
|
6595
6613
|
const legendPos = style?.legendPosition || "b";
|
|
6596
6614
|
const values = chartData.series[0]?.values ?? [];
|
|
6597
6615
|
const range = computeValueRangeForChart(chartData.series, chartData.axes);
|
|
@@ -6671,7 +6689,7 @@ function renderWaterfallChart(element, chartData, categoryLabels) {
|
|
|
6671
6689
|
viewBox: `0 0 ${layout.svgWidth} ${layout.svgHeight}`,
|
|
6672
6690
|
preserveAspectRatio: "none",
|
|
6673
6691
|
children: [
|
|
6674
|
-
/* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill:
|
|
6692
|
+
areaFill && /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill: areaFill }),
|
|
6675
6693
|
renderChrome(element.id, chartData, layout, range, categoryLabels, {
|
|
6676
6694
|
categoryAxisStyle: "bar"
|
|
6677
6695
|
}),
|
|
@@ -6683,6 +6701,7 @@ function renderWaterfallChart(element, chartData, categoryLabels) {
|
|
|
6683
6701
|
}
|
|
6684
6702
|
function renderComboChart(element, chartData, categoryLabels) {
|
|
6685
6703
|
const style = chartData.style;
|
|
6704
|
+
const areaFill = chartAreaFill(chartData);
|
|
6686
6705
|
const legendPos = style?.legendPosition || "b";
|
|
6687
6706
|
const layoutOpts = computeLayoutOptions(
|
|
6688
6707
|
chartData.axes,
|
|
@@ -6802,7 +6821,7 @@ function renderComboChart(element, chartData, categoryLabels) {
|
|
|
6802
6821
|
viewBox: `0 0 ${layout.svgWidth} ${layout.svgHeight}`,
|
|
6803
6822
|
preserveAspectRatio: "none",
|
|
6804
6823
|
children: [
|
|
6805
|
-
/* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill:
|
|
6824
|
+
areaFill && /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: layout.svgWidth, height: layout.svgHeight, fill: areaFill }),
|
|
6806
6825
|
renderChrome(
|
|
6807
6826
|
element.id,
|
|
6808
6827
|
chartData,
|
|
Binary file
|
|
Binary file
|