@extend-ai/react-xlsx 0.18.1 → 0.20.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/README.md +154 -6
- package/dist/chart-renderer-AAVZ34BF.cjs +5048 -0
- package/dist/chart-renderer-AAVZ34BF.cjs.map +1 -0
- package/dist/{chart-renderer-HQSQHDCB.js → chart-renderer-KGLAI4DN.js} +25 -20
- package/dist/chart-renderer-KGLAI4DN.js.map +1 -0
- package/dist/{chart-renderer-ZUWRNNZT.cjs → chart-renderer-NM5UVCTO.cjs} +44 -39
- package/dist/chart-renderer-NM5UVCTO.cjs.map +1 -0
- package/dist/chart-renderer-RXO7WP4Q.js +5047 -0
- package/dist/chart-renderer-RXO7WP4Q.js.map +1 -0
- package/dist/chunk-2YBG7XQ3.cjs +26981 -0
- package/dist/chunk-2YBG7XQ3.cjs.map +1 -0
- package/dist/chunk-3JTCYAUX.js +50 -0
- package/dist/{chunk-OZLJPZUX.js.map → chunk-3JTCYAUX.js.map} +1 -1
- package/dist/chunk-6K3NSKDJ.cjs +50 -0
- package/dist/chunk-6K3NSKDJ.cjs.map +1 -0
- package/dist/chunk-CJBI5F6V.cjs +816 -0
- package/dist/chunk-CJBI5F6V.cjs.map +1 -0
- package/dist/{chunk-WFQGZI2Z.cjs → chunk-MCFUTO4J.cjs} +12 -8
- package/dist/chunk-MCFUTO4J.cjs.map +1 -0
- package/dist/chunk-NBH72POD.js +816 -0
- package/dist/chunk-NBH72POD.js.map +1 -0
- package/dist/{chunk-E2VSYCP2.cjs → chunk-O3V2MCOC.cjs} +18 -2
- package/dist/chunk-O3V2MCOC.cjs.map +1 -0
- package/dist/chunk-QN3D3JS2.js +26978 -0
- package/dist/chunk-QN3D3JS2.js.map +1 -0
- package/dist/{chunk-FO6MIHX4.cjs → chunk-T5WZHPIN.cjs} +2 -2
- package/dist/{chunk-FO6MIHX4.cjs.map → chunk-T5WZHPIN.cjs.map} +1 -1
- package/dist/{chunk-BAAMDEDS.js → chunk-VXBNYHW5.js} +18 -2
- package/dist/{chunk-BAAMDEDS.js.map → chunk-VXBNYHW5.js.map} +1 -1
- package/dist/{chunk-OZLJPZUX.js → chunk-WSQDFXDW.js} +10 -6
- package/dist/chunk-WSQDFXDW.js.map +1 -0
- package/dist/index.cjs +600 -11270
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -14
- package/dist/index.d.ts +5 -14
- package/dist/index.js +479 -11149
- package/dist/index.js.map +1 -1
- package/dist/internal-DrXSHYJZ.d.cts +1498 -0
- package/dist/internal-DrXSHYJZ.d.ts +1498 -0
- package/dist/internal.cjs +24 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +3 -0
- package/dist/internal.d.ts +3 -0
- package/dist/internal.js +23 -0
- package/dist/internal.js.map +1 -0
- package/dist/{region-map-geography-5E5SVPGS.cjs → region-map-geography-6TGXBY3V.cjs} +2 -2
- package/dist/{region-map-geography-5E5SVPGS.cjs.map → region-map-geography-6TGXBY3V.cjs.map} +1 -1
- package/dist/{spreadsheet-font-assets-7QMV43XD.cjs → spreadsheet-font-assets-4AHYDTAQ.cjs} +2 -2
- package/dist/{spreadsheet-font-assets-7QMV43XD.cjs.map → spreadsheet-font-assets-4AHYDTAQ.cjs.map} +1 -1
- package/dist/{surface-regl-WVLW3SEA.cjs → surface-regl-5Z6IVOID.cjs} +18 -15
- package/dist/surface-regl-5Z6IVOID.cjs.map +1 -0
- package/dist/{surface-regl-NWR5ZZ5D.js → surface-regl-7CDGGVDG.js} +10 -7
- package/dist/surface-regl-7CDGGVDG.js.map +1 -0
- package/dist/surface-regl-AY7JZVYY.cjs +727 -0
- package/dist/surface-regl-AY7JZVYY.cjs.map +1 -0
- package/dist/surface-regl-TJUWTLAZ.js +726 -0
- package/dist/surface-regl-TJUWTLAZ.js.map +1 -0
- package/dist/vanilla.cjs +20 -0
- package/dist/vanilla.cjs.map +1 -0
- package/dist/vanilla.d.cts +9 -0
- package/dist/vanilla.d.ts +9 -0
- package/dist/vanilla.js +19 -0
- package/dist/vanilla.js.map +1 -0
- package/dist/xlsx-worker.js +2888 -34
- package/dist/xlsx-worker.js.map +1 -1
- package/package.json +23 -3
- package/dist/chart-renderer-HQSQHDCB.js.map +0 -1
- package/dist/chart-renderer-ZUWRNNZT.cjs.map +0 -1
- package/dist/chunk-E2VSYCP2.cjs.map +0 -1
- package/dist/chunk-WFQGZI2Z.cjs.map +0 -1
- package/dist/surface-regl-NWR5ZZ5D.js.map +0 -1
- package/dist/surface-regl-WVLW3SEA.cjs.map +0 -1
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
regionMapResources,
|
|
3
3
|
surfaceRenderer,
|
|
4
4
|
useChartModule
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3JTCYAUX.js";
|
|
6
6
|
import {
|
|
7
7
|
clipSurfaceBand,
|
|
8
|
+
groupSurfaceBandEdges,
|
|
8
9
|
normalizeSurfaceValue,
|
|
9
10
|
shadeSurfaceMatteColor,
|
|
10
|
-
surfaceBandEdges,
|
|
11
11
|
surfaceDataRatios,
|
|
12
12
|
surfaceNormal,
|
|
13
13
|
transformSurfaceNormal,
|
|
14
14
|
triangulateSurfaceQuad
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VXBNYHW5.js";
|
|
16
16
|
import {
|
|
17
17
|
getBuiltinChartColor,
|
|
18
18
|
getBuiltinChartSurfaceLine,
|
|
@@ -4019,20 +4019,21 @@ function renderSurfaceChart(chart, palette, layout, selectedChartElement) {
|
|
|
4019
4019
|
faces2.push(/* @__PURE__ */ jsx("polygon", { fill: chart.surfaceMaterial === "flat" ? resolveSurfaceBandColor(chart, palette, domain, midpoint) : shadeSurfaceMatteColor(resolveSurfaceBandColor(chart, palette, domain, midpoint), normal), points: polygon.map((point) => `${point.x},${point.y}`).join(" ") }, `surface-band-${key}`));
|
|
4020
4020
|
}
|
|
4021
4021
|
const widths = chart.raw?.bandFormatLineWidths;
|
|
4022
|
-
const
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4022
|
+
for (const group of groupSurfaceBandEdges(polygon, triangle, band, lower, chart.wireframe === true)) {
|
|
4023
|
+
const edgeMidpoint = (domain.ticks[group.band] + domain.ticks[group.band + 1]) / 2;
|
|
4024
|
+
lines.push(
|
|
4025
|
+
/* @__PURE__ */ jsx(
|
|
4026
|
+
"path",
|
|
4027
|
+
{
|
|
4028
|
+
d: group.edges.map(([from, to]) => `M ${from.x} ${from.y} L ${to.x} ${to.y}`).join(" "),
|
|
4029
|
+
fill: "none",
|
|
4030
|
+
stroke: resolveSurfaceWireframeColor(chart, palette, domain, edgeMidpoint),
|
|
4031
|
+
strokeWidth: widths?.[group.band] ?? chart.series[0]?.lineWidthPx ?? 1
|
|
4032
|
+
},
|
|
4033
|
+
`surface-edge-${key}-${group.band}`
|
|
4034
|
+
)
|
|
4035
|
+
);
|
|
4036
|
+
}
|
|
4036
4037
|
}
|
|
4037
4038
|
});
|
|
4038
4039
|
}
|
|
@@ -4166,12 +4167,16 @@ function renderSurfaceChart(chart, palette, layout, selectedChartElement) {
|
|
|
4166
4167
|
const projected = polygon.map(projectPoint);
|
|
4167
4168
|
const midpoint = (lower + upper) / 2;
|
|
4168
4169
|
const widths = chart.raw?.bandFormatLineWidths;
|
|
4169
|
-
const
|
|
4170
|
+
const edgeGroups = groupSurfaceBandEdges(polygon, triangle, band, lower, chart.wireframe === true);
|
|
4170
4171
|
faces.push({
|
|
4171
4172
|
depth: projected.reduce((sum, point) => sum + point.depth, 0) / projected.length,
|
|
4172
4173
|
node: /* @__PURE__ */ jsxs("g", { children: [
|
|
4173
4174
|
!chart.wireframe && /* @__PURE__ */ jsx("polygon", { fill: chart.surfaceMaterial === "flat" ? resolveSurfaceBandColor(chart, palette, domain, midpoint) : shadeSurfaceMatteColor(resolveSurfaceBandColor(chart, palette, domain, midpoint), normal), points: projected.map((point) => `${point.x},${point.y}`).join(" ") }),
|
|
4174
|
-
|
|
4175
|
+
edgeGroups.map((group) => {
|
|
4176
|
+
const edgeMidpoint = (domain.ticks[group.band] + domain.ticks[group.band + 1]) / 2;
|
|
4177
|
+
const edges = group.edges.map(([from, to]) => [projectPoint(from), projectPoint(to)]);
|
|
4178
|
+
return /* @__PURE__ */ jsx("path", { fill: "none", stroke: resolveSurfaceWireframeColor(chart, palette, domain, edgeMidpoint), strokeWidth: widths?.[group.band] ?? chart.series[0]?.lineWidthPx ?? 1, d: edges.map(([from, to]) => `M ${from.x} ${from.y} L ${to.x} ${to.y}`).join(" ") }, `surface-edge-${group.band}`);
|
|
4179
|
+
})
|
|
4175
4180
|
] }, `surface-band-${rowIndex}-${columnIndex}-${triangleIndex}-${band}`)
|
|
4176
4181
|
});
|
|
4177
4182
|
}
|
|
@@ -5037,4 +5042,4 @@ var MemoChartSvg = React.memo(function MemoChartSvg2({
|
|
|
5037
5042
|
export {
|
|
5038
5043
|
MemoChartSvg
|
|
5039
5044
|
};
|
|
5040
|
-
//# sourceMappingURL=chart-renderer-
|
|
5045
|
+
//# sourceMappingURL=chart-renderer-KGLAI4DN.js.map
|