@tabler/charts 0.0.1-alpha.0 → 0.1.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 +14 -4
- package/dist/{sweep-WSgn2etB.js → arc-BXpLrt9b.cjs} +25 -58
- package/dist/arc-BXpLrt9b.cjs.map +1 -0
- package/dist/{sweep-Duowaput.cjs → arc-a1tRTEw7.js} +2 -93
- package/dist/arc-a1tRTEw7.js.map +1 -0
- package/dist/{area-DaO4MQl4.d.ts → area-CF__HOwL.d.ts} +3 -3
- package/dist/{area-BFvkc-ZM.d.cts → area-DIxaAbYZ.d.cts} +3 -3
- package/dist/area.d.cts +1 -1
- package/dist/area.d.ts +1 -1
- package/dist/{bar-DdsDxk3W.d.ts → bar-BBM8RhoL.d.ts} +2 -2
- package/dist/{bar-a0h9KC8A.d.cts → bar-CRKLDg98.d.cts} +2 -2
- package/dist/bar.d.cts +1 -1
- package/dist/bar.d.ts +1 -1
- package/dist/{candlestick-BnUG1SGi.d.ts → candlestick-D_vV0_XZ.d.ts} +2 -2
- package/dist/{candlestick-BKdPyorY.d.cts → candlestick-__pXl_pV.d.cts} +2 -2
- package/dist/candlestick.d.cts +1 -1
- package/dist/candlestick.d.ts +1 -1
- package/dist/{chart-Qa417fJo.d.cts → chart-D7ooEFnk.d.cts} +7 -1
- package/dist/{chart-iJGxMz9z.d.ts → chart-DyN7bcx8.d.ts} +7 -1
- package/dist/{core-plobgBC7.js → core-CegR_j55.js} +16 -7
- package/dist/core-CegR_j55.js.map +1 -0
- package/dist/{core-CnGFKojH.d.cts → core-D1vO1LrC.d.cts} +4 -3
- package/dist/{core-CjgbhS_v.d.ts → core-DcbemzGf.d.ts} +4 -3
- package/dist/{core-C7fPm6t7.cjs → core-RzS9IQO5.cjs} +16 -7
- package/dist/core-RzS9IQO5.cjs.map +1 -0
- package/dist/core.cjs +9 -7
- package/dist/core.d.cts +15 -14
- package/dist/core.d.ts +15 -14
- package/dist/core.js +6 -5
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/{gauge-CEfkWXSu.cjs → gauge-D-FYhuds.cjs} +7 -6
- package/dist/{gauge-CEfkWXSu.cjs.map → gauge-D-FYhuds.cjs.map} +1 -1
- package/dist/{gauge-Cu_OFxBd.d.cts → gauge-DP_EB2z3.d.cts} +2 -2
- package/dist/{gauge-_ljQHrMN.js → gauge-Dh423FHh.js} +3 -2
- package/dist/{gauge-_ljQHrMN.js.map → gauge-Dh423FHh.js.map} +1 -1
- package/dist/{gauge-Cu9jttC0.d.ts → gauge-zpia05t2.d.ts} +2 -2
- package/dist/gauge.cjs +1 -1
- package/dist/gauge.d.cts +1 -1
- package/dist/gauge.d.ts +1 -1
- package/dist/gauge.js +1 -1
- package/dist/{heatmap-PhLPXIg1.d.ts → heatmap-BectCEeE.d.ts} +2 -2
- package/dist/{heatmap-BwS-y0c6.d.cts → heatmap-CCso6m61.d.cts} +2 -2
- package/dist/heatmap.d.cts +1 -1
- package/dist/heatmap.d.ts +1 -1
- package/dist/index.cjs +11 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -14
- package/dist/index.d.ts +15 -14
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/{line-D5kb8e6w.d.ts → line-CN4uZ9ZX.d.ts} +2 -2
- package/dist/{line-CMDGH6q5.d.cts → line-W7VD_qs1.d.cts} +2 -2
- package/dist/line.d.cts +1 -1
- package/dist/line.d.ts +1 -1
- package/dist/parliament-1Zv2Xh0D.d.ts +69 -0
- package/dist/parliament-CpWnoEvG.cjs +308 -0
- package/dist/parliament-CpWnoEvG.cjs.map +1 -0
- package/dist/parliament-DdrLVZwt.d.cts +69 -0
- package/dist/parliament-Dw0sOERi.js +303 -0
- package/dist/parliament-Dw0sOERi.js.map +1 -0
- package/dist/parliament.cjs +3 -0
- package/dist/parliament.d.cts +2 -0
- package/dist/parliament.d.ts +2 -0
- package/dist/parliament.js +2 -0
- package/dist/patterns.d.cts +1 -1
- package/dist/patterns.d.ts +1 -1
- package/dist/{pie-B8UlOZiq.d.ts → pie-5z1fDdKO.d.ts} +2 -2
- package/dist/{pie-DnQQmxkk.d.cts → pie-BF9yI5mE.d.cts} +2 -2
- package/dist/{pie-C1Pa6W_l.cjs → pie-BxTZt6Go.cjs} +9 -8
- package/dist/{pie-C1Pa6W_l.cjs.map → pie-BxTZt6Go.cjs.map} +1 -1
- package/dist/{pie-RnMTQWMS.js → pie-DzUXDTcn.js} +3 -2
- package/dist/{pie-RnMTQWMS.js.map → pie-DzUXDTcn.js.map} +1 -1
- package/dist/pie.cjs +1 -1
- package/dist/pie.d.cts +1 -1
- package/dist/pie.d.ts +1 -1
- package/dist/pie.js +1 -1
- package/dist/point-shapes.d.cts +1 -1
- package/dist/point-shapes.d.ts +1 -1
- package/dist/{radar-pFI6fvOq.d.ts → radar-1-EryihA.d.ts} +2 -2
- package/dist/{radar-BB13CGmq.d.cts → radar-DBW4O0Vt.d.cts} +2 -2
- package/dist/radar.d.cts +1 -1
- package/dist/radar.d.ts +1 -1
- package/dist/{sankey-B9JYnx7e.d.cts → sankey-DuGI3Qc5.d.cts} +2 -2
- package/dist/{sankey-Bm518bqL.d.ts → sankey-OV_WoPrl.d.ts} +2 -2
- package/dist/sankey.d.cts +1 -1
- package/dist/sankey.d.ts +1 -1
- package/dist/{scatter-Bl7nasE6.d.ts → scatter-BqzgJqdX.d.ts} +2 -2
- package/dist/{scatter-DrJ8xYz4.d.cts → scatter-DbxLyZX0.d.cts} +2 -2
- package/dist/scatter.d.cts +1 -1
- package/dist/scatter.d.ts +1 -1
- package/dist/{sparkline-iWuXbKpd.d.ts → sparkline-BfyO_oNM.d.ts} +2 -2
- package/dist/{sparkline-BG13V4Pz.d.cts → sparkline-CWlJDKyh.d.cts} +2 -2
- package/dist/sparkline.d.cts +1 -1
- package/dist/sparkline.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/sweep-CbfR7--d.js +60 -0
- package/dist/sweep-CbfR7--d.js.map +1 -0
- package/dist/sweep-DaTEDDuC.cjs +71 -0
- package/dist/sweep-DaTEDDuC.cjs.map +1 -0
- package/dist/value-labels.d.cts +1 -1
- package/dist/value-labels.d.ts +1 -1
- package/package.json +11 -1
- package/dist/core-C7fPm6t7.cjs.map +0 -1
- package/dist/core-plobgBC7.js.map +0 -1
- package/dist/sweep-Duowaput.cjs.map +0 -1
- package/dist/sweep-WSgn2etB.js.map +0 -1
package/dist/pie.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-
|
|
1
|
+
import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-BF9yI5mE.cjs";
|
|
2
2
|
export { type PieOptions, type PieSlice, donut, pie };
|
package/dist/pie.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-
|
|
1
|
+
import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-5z1fDdKO.js";
|
|
2
2
|
export { type PieOptions, type PieSlice, donut, pie };
|
package/dist/pie.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as pie, t as donut } from "./pie-
|
|
1
|
+
import { n as pie, t as donut } from "./pie-DzUXDTcn.js";
|
|
2
2
|
export { donut, pie };
|
package/dist/point-shapes.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { U as markerPath, W as shapesStep } from "./chart-
|
|
1
|
+
import { U as markerPath, W as shapesStep } from "./chart-D7ooEFnk.cjs";
|
|
2
2
|
export { markerPath, shapesStep };
|
package/dist/point-shapes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { U as markerPath, W as shapesStep } from "./chart-
|
|
1
|
+
import { U as markerPath, W as shapesStep } from "./chart-DyN7bcx8.js";
|
|
2
2
|
export { markerPath, shapesStep };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as InsetsInput } from "./annotations-Bp7HwtF5.js";
|
|
2
|
-
import { Q as CartesianData, a as ChartType, tt as Label } from "./chart-
|
|
2
|
+
import { Q as CartesianData, a as ChartType, tt as Label } from "./chart-DyN7bcx8.js";
|
|
3
3
|
import { c as NumberFormat } from "./time-CHjiY9Q4.js";
|
|
4
4
|
//#region src/charts/radar.d.ts
|
|
5
5
|
/** Options for the radial value axis. */
|
|
@@ -57,4 +57,4 @@ interface RadarOptions {
|
|
|
57
57
|
declare const radar: ChartType<RadarOptions>;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { RadialAxisOptions as n, radar as r, RadarOptions as t };
|
|
60
|
-
//# sourceMappingURL=radar-
|
|
60
|
+
//# sourceMappingURL=radar-1-EryihA.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as InsetsInput } from "./annotations-lyt0I3HU.cjs";
|
|
2
|
-
import { Q as CartesianData, a as ChartType, tt as Label } from "./chart-
|
|
2
|
+
import { Q as CartesianData, a as ChartType, tt as Label } from "./chart-D7ooEFnk.cjs";
|
|
3
3
|
import { c as NumberFormat } from "./time-CNVnt-B2.cjs";
|
|
4
4
|
//#region src/charts/radar.d.ts
|
|
5
5
|
/** Options for the radial value axis. */
|
|
@@ -57,4 +57,4 @@ interface RadarOptions {
|
|
|
57
57
|
declare const radar: ChartType<RadarOptions>;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { RadialAxisOptions as n, radar as r, RadarOptions as t };
|
|
60
|
-
//# sourceMappingURL=radar-
|
|
60
|
+
//# sourceMappingURL=radar-DBW4O0Vt.d.cts.map
|
package/dist/radar.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-
|
|
1
|
+
import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-DBW4O0Vt.cjs";
|
|
2
2
|
export { type RadarOptions, type RadialAxisOptions, radar };
|
package/dist/radar.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-
|
|
1
|
+
import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-1-EryihA.js";
|
|
2
2
|
export { type RadarOptions, type RadialAxisOptions, radar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as InsetsInput } from "./annotations-lyt0I3HU.cjs";
|
|
2
|
-
import { a as ChartType } from "./chart-
|
|
2
|
+
import { a as ChartType } from "./chart-D7ooEFnk.cjs";
|
|
3
3
|
import { c as NumberFormat } from "./time-CNVnt-B2.cjs";
|
|
4
4
|
//#region src/charts/sankey.d.ts
|
|
5
5
|
/** A node of the flow; nodes left out are made from the links. */
|
|
@@ -64,4 +64,4 @@ interface SankeyOptions {
|
|
|
64
64
|
declare const sankey: ChartType<SankeyOptions>;
|
|
65
65
|
//#endregion
|
|
66
66
|
export { sankey as a, SankeyOptions as i, SankeyLink as n, SankeyNode as r, SankeyData as t };
|
|
67
|
-
//# sourceMappingURL=sankey-
|
|
67
|
+
//# sourceMappingURL=sankey-DuGI3Qc5.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as InsetsInput } from "./annotations-Bp7HwtF5.js";
|
|
2
|
-
import { a as ChartType } from "./chart-
|
|
2
|
+
import { a as ChartType } from "./chart-DyN7bcx8.js";
|
|
3
3
|
import { c as NumberFormat } from "./time-CHjiY9Q4.js";
|
|
4
4
|
//#region src/charts/sankey.d.ts
|
|
5
5
|
/** A node of the flow; nodes left out are made from the links. */
|
|
@@ -64,4 +64,4 @@ interface SankeyOptions {
|
|
|
64
64
|
declare const sankey: ChartType<SankeyOptions>;
|
|
65
65
|
//#endregion
|
|
66
66
|
export { sankey as a, SankeyOptions as i, SankeyLink as n, SankeyNode as r, SankeyData as t };
|
|
67
|
-
//# sourceMappingURL=sankey-
|
|
67
|
+
//# sourceMappingURL=sankey-OV_WoPrl.d.ts.map
|
package/dist/sankey.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-
|
|
1
|
+
import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-DuGI3Qc5.cjs";
|
|
2
2
|
export { type SankeyData, type SankeyLink, type SankeyNode, type SankeyOptions, sankey };
|
package/dist/sankey.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-
|
|
1
|
+
import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-OV_WoPrl.js";
|
|
2
2
|
export { type SankeyData, type SankeyLink, type SankeyNode, type SankeyOptions, sankey };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as InsetsInput } from "./annotations-Bp7HwtF5.js";
|
|
2
2
|
import { a as ClassValue } from "./vnode-BUflsBsa.js";
|
|
3
|
-
import { a as ChartType, rt as ValueAxisOptions } from "./chart-
|
|
3
|
+
import { a as ChartType, rt as ValueAxisOptions } from "./chart-DyN7bcx8.js";
|
|
4
4
|
//#region src/charts/scatter.d.ts
|
|
5
5
|
/** A point of a scatter or bubble chart. */
|
|
6
6
|
interface ScatterPoint {
|
|
@@ -58,4 +58,4 @@ interface ScatterOptions {
|
|
|
58
58
|
declare const scatter: ChartType<ScatterOptions>;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { scatter as i, ScatterPoint as n, ScatterSeries as r, ScatterOptions as t };
|
|
61
|
-
//# sourceMappingURL=scatter-
|
|
61
|
+
//# sourceMappingURL=scatter-BqzgJqdX.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as InsetsInput } from "./annotations-lyt0I3HU.cjs";
|
|
2
2
|
import { a as ClassValue } from "./vnode-BUflsBsa.cjs";
|
|
3
|
-
import { a as ChartType, rt as ValueAxisOptions } from "./chart-
|
|
3
|
+
import { a as ChartType, rt as ValueAxisOptions } from "./chart-D7ooEFnk.cjs";
|
|
4
4
|
//#region src/charts/scatter.d.ts
|
|
5
5
|
/** A point of a scatter or bubble chart. */
|
|
6
6
|
interface ScatterPoint {
|
|
@@ -58,4 +58,4 @@ interface ScatterOptions {
|
|
|
58
58
|
declare const scatter: ChartType<ScatterOptions>;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { scatter as i, ScatterPoint as n, ScatterSeries as r, ScatterOptions as t };
|
|
61
|
-
//# sourceMappingURL=scatter-
|
|
61
|
+
//# sourceMappingURL=scatter-DbxLyZX0.d.cts.map
|
package/dist/scatter.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-
|
|
1
|
+
import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-DbxLyZX0.cjs";
|
|
2
2
|
export { type ScatterOptions, type ScatterPoint, type ScatterSeries, scatter };
|
package/dist/scatter.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-
|
|
1
|
+
import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-BqzgJqdX.js";
|
|
2
2
|
export { type ScatterOptions, type ScatterPoint, type ScatterSeries, scatter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as InsetsInput } from "./annotations-Bp7HwtF5.js";
|
|
2
|
-
import { a as ChartType, tt as Label } from "./chart-
|
|
2
|
+
import { a as ChartType, tt as Label } from "./chart-DyN7bcx8.js";
|
|
3
3
|
import { c as NumberFormat } from "./time-CHjiY9Q4.js";
|
|
4
4
|
import { t as Curve } from "./path-CwB28da0.js";
|
|
5
5
|
//#region src/charts/sparkline.d.ts
|
|
@@ -40,4 +40,4 @@ interface SparklineOptions {
|
|
|
40
40
|
declare const sparkline: ChartType<SparklineOptions>;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { sparkline as n, SparklineOptions as t };
|
|
43
|
-
//# sourceMappingURL=sparkline-
|
|
43
|
+
//# sourceMappingURL=sparkline-BfyO_oNM.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as InsetsInput } from "./annotations-lyt0I3HU.cjs";
|
|
2
|
-
import { a as ChartType, tt as Label } from "./chart-
|
|
2
|
+
import { a as ChartType, tt as Label } from "./chart-D7ooEFnk.cjs";
|
|
3
3
|
import { c as NumberFormat } from "./time-CNVnt-B2.cjs";
|
|
4
4
|
import { t as Curve } from "./path-CwB28da0.cjs";
|
|
5
5
|
//#region src/charts/sparkline.d.ts
|
|
@@ -40,4 +40,4 @@ interface SparklineOptions {
|
|
|
40
40
|
declare const sparkline: ChartType<SparklineOptions>;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { sparkline as n, SparklineOptions as t };
|
|
43
|
-
//# sourceMappingURL=sparkline-
|
|
43
|
+
//# sourceMappingURL=sparkline-CWlJDKyh.d.cts.map
|
package/dist/sparkline.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as sparkline, t as SparklineOptions } from "./sparkline-
|
|
1
|
+
import { n as sparkline, t as SparklineOptions } from "./sparkline-CWlJDKyh.cjs";
|
|
2
2
|
export { type SparklineOptions, sparkline };
|
package/dist/sparkline.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as sparkline, t as SparklineOptions } from "./sparkline-
|
|
1
|
+
import { n as sparkline, t as SparklineOptions } from "./sparkline-BfyO_oNM.js";
|
|
2
2
|
export { type SparklineOptions, sparkline };
|
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! @tabler/charts | MIT */
|
|
2
|
-
:where(:root),:where([data-theme=light]){--tc-color-1:#2a78d6;--tc-color-2:#eb6834;--tc-color-3:#1baf7a;--tc-color-4:#eda100;--tc-color-5:#e87ba4;--tc-color-6:#008300;--tc-color-7:#4a3aa7;--tc-color-8:#e34948;--tc-color-other:#8a8983;--tc-surface:#fff;--tc-text-color:#0b0b0b;--tc-text-muted:#6f6e69;--tc-grid-color:#e1e0d9;--tc-baseline-color:#c3c2b7;--tc-hover-color:#0b0b0b0a;--tc-tooltip-bg:#fff;--tc-tooltip-color:var(--tc-text-color);--tc-tooltip-border:#0b0b0b1a;--tc-tooltip-shadow:0 4px 16px #0b0b0b1f;--tc-tooltip-radius:6px;--tc-focus-color:var(--tc-color-1);--tc-font-family:inherit;--tc-font-size:12px;--tc-stroke-width:2px;--tc-grid-width:1px;--tc-area-opacity:.1;--tc-area-gradient-start:.24;--tc-area-gradient-end:0;--tc-pie-value-size:1.75em;--tc-bubble-opacity:.7;--tc-point-ring:2px;--tc-duration:.4s;--tc-duration-fast:.12s;--tc-easing:cubic-bezier(.4, 0, .2, 1)}@media (prefers-color-scheme:dark){:where(:root:not([data-theme=light])){--tc-color-1:#3987e5;--tc-color-2:#d95926;--tc-color-3:#199e70;--tc-color-4:#c98500;--tc-color-5:#d55181;--tc-color-6:#008300;--tc-color-7:#9085e9;--tc-color-8:#e66767;--tc-color-other:#7c7b76;--tc-surface:#1a1a19;--tc-text-color:#fff;--tc-text-muted:#a3a29c;--tc-grid-color:#2c2c2a;--tc-baseline-color:#4a4a46;--tc-hover-color:#ffffff0f;--tc-tooltip-bg:#262625;--tc-tooltip-color:var(--tc-text-color);--tc-tooltip-border:#ffffff1a;--tc-tooltip-shadow:0 4px 16px #0006;--tc-focus-color:var(--tc-color-1)}}:where([data-theme=dark]){--tc-color-1:#3987e5;--tc-color-2:#d95926;--tc-color-3:#199e70;--tc-color-4:#c98500;--tc-color-5:#d55181;--tc-color-6:#008300;--tc-color-7:#9085e9;--tc-color-8:#e66767;--tc-color-other:#7c7b76;--tc-surface:#1a1a19;--tc-text-color:#fff;--tc-text-muted:#a3a29c;--tc-grid-color:#2c2c2a;--tc-baseline-color:#4a4a46;--tc-hover-color:#ffffff0f;--tc-tooltip-bg:#262625;--tc-tooltip-color:var(--tc-text-color);--tc-tooltip-border:#ffffff1a;--tc-tooltip-shadow:0 4px 16px #0006;--tc-focus-color:var(--tc-color-1)}.tc-chart{max-width:100%;height:auto;font-family:var(--tc-font-family);font-size:var(--tc-font-size);letter-spacing:normal;word-spacing:normal;text-transform:none;color:var(--tc-text-color);-webkit-tap-highlight-color:transparent;display:block;overflow:visible}.tc-chart :where(text){font:inherit}.tc-series{--tc-series-color:var(--tc-color-other);--tc-series-pattern:var(--tc-pattern-other);--tc-pattern-dash:1 3;--tc-pattern-ink:var(--tc-pattern-color,var(--tc-surface));--tc-swatch-pattern:repeating-linear-gradient(45deg, var(--tc-pattern-ink) 0 1px, #0000 0 3px)}.tc-series-1{--tc-series-color:var(--tc-color-1);--tc-series-pattern:var(--tc-pattern-1);--tc-pattern-dash:none;--tc-swatch-pattern:repeating-linear-gradient(45deg, var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-series-2{--tc-series-color:var(--tc-color-2);--tc-series-pattern:var(--tc-pattern-2);--tc-pattern-dash:6 3;--tc-swatch-pattern:radial-gradient(var(--tc-pattern-ink) .8px, #0000 1.2px) 0 0 / 4px 4px}.tc-series-3{--tc-series-color:var(--tc-color-3);--tc-series-pattern:var(--tc-pattern-3);--tc-pattern-dash:2 3;--tc-swatch-pattern:repeating-linear-gradient(-45deg, var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-series-4{--tc-series-color:var(--tc-color-4);--tc-series-pattern:var(--tc-pattern-4);--tc-pattern-dash:10 3 2 3;--tc-swatch-pattern:repeating-linear-gradient(var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-series-5{--tc-series-color:var(--tc-color-5);--tc-series-pattern:var(--tc-pattern-5);--tc-pattern-dash:4 4;--tc-swatch-pattern:repeating-linear-gradient(45deg, var(--tc-pattern-ink) 0 1px, #0000 0 4px), repeating-linear-gradient(-45deg, var(--tc-pattern-ink) 0 1px, #0000 0 4px)}.tc-series-6{--tc-series-color:var(--tc-color-6);--tc-series-pattern:var(--tc-pattern-6);--tc-pattern-dash:12 4;--tc-swatch-pattern:repeating-linear-gradient(90deg, var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-series-7{--tc-series-color:var(--tc-color-7);--tc-series-pattern:var(--tc-pattern-7);--tc-pattern-dash:2 2 6 2;--tc-swatch-pattern:repeating-linear-gradient(var(--tc-pattern-ink) 0 1px, #0000 0 4px), repeating-linear-gradient(90deg, var(--tc-pattern-ink) 0 1px, #0000 0 4px)}.tc-series-8{--tc-series-color:var(--tc-color-8);--tc-series-pattern:var(--tc-pattern-8);--tc-pattern-dash:8 2 2 2;--tc-swatch-pattern:linear-gradient(90deg, #0000 50%, var(--tc-series-color) 0) 0 0 / 4px 4px, repeating-linear-gradient(var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-tick-label{fill:var(--tc-text-muted);font-variant-numeric:tabular-nums}.tc-grid-line,.tc-grid-line-zero,.tc-axis-line,.tc-tick-line,.tc-crosshair,.tc-sparkline-zero,.tc-radar-ring,.tc-radar-spoke{stroke:var(--tc-baseline-color);stroke-width:var(--tc-grid-width);shape-rendering:crispedges;vector-effect:non-scaling-stroke}.tc-grid-line,.tc-sparkline-zero,.tc-radar-ring,.tc-radar-spoke{stroke:var(--tc-grid-color)}.tc-grid-line-zero{stroke:var(--tc-baseline-color)}.tc-line{fill:none;stroke:var(--tc-series-color);stroke-width:var(--tc-series-width,var(--tc-stroke-width));stroke-dasharray:var(--tc-series-dash,none);stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.tc-area{fill:var(--tc-series-color);fill-opacity:var(--tc-area-opacity);stroke:none}.tc-pie-slices{--tc-pie-gap:0px}.tc-slice{fill:var(--tc-series-color);stroke:var(--tc-surface);stroke-width:var(--tc-pie-gap);stroke-linejoin:round}.tc-pie-track,.tc-gauge-track{fill:var(--tc-grid-color)}.tc-gauge-arc{fill:var(--tc-series-color)}.tc-pie-value,.tc-gauge-value{font-size:var(--tc-pie-value-size);fill:var(--tc-text-color);font-variant-numeric:tabular-nums;font-weight:600}.tc-pie-label,.tc-gauge-label{fill:var(--tc-text-muted)}.tc-sankey-node{fill:var(--tc-series-color)}.tc-sankey-link{fill:var(--tc-series-color);fill-opacity:var(--tc-area-opacity);stroke:none}.tc-chart-sankey{--tc-area-opacity:.35}.tc-sankey-value{font-size:.92em}.tc-chart-sankey .tc-hover-mark{opacity:.5}.tc-radar-ring,.tc-radar-spoke,.tc-chart-radar .tc-crosshair{fill:none;shape-rendering:auto}.tc-area-gradient{fill-opacity:1}.tc-fade-start{stop-color:#fff;stop-opacity:var(--tc-area-gradient-start)}.tc-fade-end{stop-color:#fff;stop-opacity:var(--tc-area-gradient-end)}.tc-chart-sparkline{--tc-stroke-width:1.5px;--tc-area-gradient-start:.3}.tc-bubble{fill-opacity:var(--tc-bubble-opacity)}.tc-point{fill:var(--tc-series-color);stroke:var(--tc-surface);stroke-width:var(--tc-point-ring);paint-order:stroke;transition:cx var(--tc-duration) var(--tc-easing), cy var(--tc-duration) var(--tc-easing)}.tc-point-min,.tc-point-max{fill:var(--tc-text-muted)}.tc-annotation{--tc-annotation-color:var(--tc-text-muted)}.tc-annotation-line{stroke:var(--tc-annotation-color);stroke-width:1px;stroke-dasharray:4 3;shape-rendering:crispedges;vector-effect:non-scaling-stroke}.tc-annotation-band{fill:var(--tc-annotation-color);fill-opacity:.1}.tc-annotation-label{fill:var(--tc-annotation-color);font-weight:500}.tc-annotation-label,.tc-radar-value{paint-order:stroke;stroke:var(--tc-surface);stroke-width:3px;stroke-linejoin:round;font-size:.92em}.tc-annotations{pointer-events:none}.tc-value-label{fill:var(--tc-text-color);font-variant-numeric:tabular-nums;paint-order:stroke;stroke:var(--tc-surface);stroke-width:3px;stroke-linejoin:round;transition:transform var(--tc-duration) var(--tc-easing);animation:tc-fade-in var(--tc-duration) var(--tc-easing);font-weight:500}.tc-marker{transition:d var(--tc-duration) var(--tc-easing)}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) :is(.tc-legend-swatch,.tc-tooltip-swatch){background:var(--tc-series-color);width:10px;height:10px}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-2 :is(.tc-legend-swatch,.tc-tooltip-swatch){border-radius:1px;scale:.8}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-3 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(50% 3.6%,92.9% 82.1%,7.1% 82.1%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-4 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(50% 3.6%,96.4% 50%,50% 96.4%,3.6% 50%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-5 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(7.1% 17.9%,92.9% 17.9%,50% 96.4%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-6 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(35.7% 7.1%,64.3% 7.1%,64.3% 35.7%,92.9% 35.7%,92.9% 64.3%,64.3% 64.3%,64.3% 92.9%,35.7% 92.9%,35.7% 64.3%,7.1% 64.3%,7.1% 35.7%,35.7% 35.7%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-7 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(25% 7.1%,50% 32.1%,75% 7.1%,92.9% 25%,67.9% 50%,92.9% 75%,75% 92.9%,50% 67.9%,25% 92.9%,7.1% 75%,32.1% 50%,7.1% 25%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-8 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(50% 0%,61.4% 34.3%,97.5% 34.6%,68.6% 56.1%,79.3% 90.4%,50% 69.6%,20.7% 90.4%,31.4% 56.1%,2.5% 34.6%,38.6% 34.3%);border-radius:0}.tc-pattern-bg{fill:var(--tc-series-color)}.tc-pattern-ink{fill:none;stroke:var(--tc-pattern-ink);stroke-width:1.5px;stroke-linecap:round}.tc-patterned :is(.tc-bar,.tc-area,.tc-slice,.tc-gauge-arc,.tc-bubble){fill:var(--tc-series-pattern,var(--tc-series-color))}.tc-patterned .tc-area{fill-opacity:max(var(--tc-area-opacity), .4)}.tc-patterned .tc-line{stroke-dasharray:var(--tc-series-dash,var(--tc-pattern-dash))}:has(>.tc-patterned)>:is(.tc-legend,.tc-tooltip) :is(.tc-legend-swatch,.tc-tooltip-swatch){background:var(--tc-swatch-pattern), var(--tc-series-color)}@keyframes tc-reveal{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}@keyframes tc-grow{0%{transform:scaleY(0)}}@keyframes tc-grow-x{0%{transform:scaleX(0)}}@keyframes tc-fade-in{0%{opacity:0}}.tc-line,.tc-area,.tc-bar,.tc-radar-ring,.tc-dots{transition:d var(--tc-duration) var(--tc-easing)}.tc-slice,.tc-gauge-arc,.tc-gauge-track{transition:none var(--tc-duration)}.tc-chart-line .tc-series-list,.tc-chart-area .tc-series-list{animation:tc-reveal calc(var(--tc-duration) * 2) var(--tc-easing)}.tc-series-list .tc-series,.tc-areas .tc-series,.tc-sankey-links .tc-sankey-link,.tc-sankey-nodes .tc-series,.tc-series-list .tc-point,.tc-heatmap-cells,.tc-candles,.tc-tick,.tc-grid-line{animation:tc-fade-in var(--tc-duration) var(--tc-easing)}.tc-bar{fill:var(--tc-series-color);transform-box:fill-box;transform-origin:50% 100%;animation:tc-grow var(--tc-duration) var(--tc-easing)}.tc-bar-negative{transform-origin:50% 0}.tc-cell{fill:var(--tc-cell-fill,var(--tc-heat-color,var(--tc-color-1)));transition:fill var(--tc-duration) var(--tc-easing)}@supports (color:color-mix(in oklab, red 50%, blue)){.tc-cell{fill:var(--tc-cell-fill,color-mix(in oklab, var(--tc-heat-color,var(--tc-color-1)) var(--tc-heat,100%), var(--tc-heat-empty,var(--tc-grid-color))))}}.tc-heatmap-row.tc-series{--tc-heat-color:var(--tc-series-color)}.tc-cell-empty{fill:var(--tc-heat-empty,var(--tc-grid-color));opacity:.5}.tc-candle{--tc-candle-color:var(--tc-up-color,var(--tc-color-6))}.tc-candle-down{--tc-candle-color:var(--tc-negative-color,var(--tc-color-8))}.tc-candle-body{fill:var(--tc-candle-color);transition:d var(--tc-duration) var(--tc-easing), fill var(--tc-duration) var(--tc-easing)}.tc-candle-wick{fill:none;stroke:var(--tc-candle-color);stroke-width:1px;vector-effect:non-scaling-stroke;transition:d var(--tc-duration) var(--tc-easing), stroke var(--tc-duration) var(--tc-easing)}.tc-tristate-loss{fill:var(--tc-negative-color,var(--tc-color-8))}.tc-tristate-draw{fill:var(--tc-baseline-color)}.tc-bar-horizontal{transform-origin:0;animation-name:tc-grow-x}.tc-bar-horizontal.tc-bar-negative{transform-origin:100%}.tc-tick,.tc-grid-line{transition:transform var(--tc-duration) var(--tc-easing)}@keyframes tc-pie-in{0%{opacity:0;transform:scale(.85)}}.tc-pie-slices,.tc-gauge-rings,.tc-radar-series{animation:tc-pie-in calc(var(--tc-duration) * 1.5) var(--tc-easing)}.tc-hover .tc-point{transition:none;animation:none}.tc-static,.tc-chart[data-resizing]{--tc-duration:0s}:where(.tc-container){position:relative}.tc-hover{pointer-events:none}.tc-hover-band{fill:var(--tc-hover-color)}.tc-hover-mark{fill:var(--tc-series-color);opacity:.35}.tc-chart-heatmap .tc-hover-mark{fill:none;stroke:var(--tc-text-color);stroke-width:2px;opacity:.6}.tc-tooltip{z-index:10;pointer-events:none;opacity:0;min-width:120px;max-width:min(280px,100%);font-family:var(--tc-font-family);font-size:var(--tc-font-size);overflow-wrap:anywhere;color:var(--tc-tooltip-color);background:var(--tc-tooltip-bg);border:1px solid var(--tc-tooltip-border);border-radius:var(--tc-tooltip-radius);box-shadow:var(--tc-tooltip-shadow);transition:opacity var(--tc-duration-fast) var(--tc-easing);padding:8px 10px;line-height:1.4;position:absolute;top:0;left:0}.tc-tooltip[data-visible]{opacity:1;transition:opacity var(--tc-duration-fast) var(--tc-easing), transform var(--tc-duration-fast) var(--tc-easing)}.tc-tooltip-title{margin-bottom:4px;font-weight:600}.tc-tooltip-item{align-items:center;gap:8px;display:flex}.tc-tooltip-swatch,.tc-legend-swatch{background:var(--tc-series-color);border-radius:50%;flex:none;width:8px;height:8px}.tc-tooltip-name{color:var(--tc-text-muted);flex:1}.tc-tooltip-value{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}.tc-tooltip-footer{border-top:1px solid var(--tc-tooltip-border);margin-top:4px;padding-top:4px}.tc-tooltip-item-active .tc-tooltip-name{color:var(--tc-tooltip-color)}.tc-legend{font-family:var(--tc-font-family);font-size:var(--tc-font-size);margin-bottom:8px;line-height:1.4}.tc-legend[data-position=bottom]{margin:8px 0 0}.tc-legend-items{flex-wrap:wrap;gap:4px 12px;display:flex}.tc-legend-item{appearance:none;font:inherit;text-align:start;color:var(--tc-text-color);cursor:pointer;transition:color var(--tc-duration-fast) var(--tc-easing);background:0 0;border:0;border-radius:4px;align-items:center;gap:6px;margin:0;padding:2px 4px;display:inline-flex}.tc-legend-item:hover{background:var(--tc-hover-color)}.tc-legend-item:focus-visible{outline:2px solid var(--tc-focus-color);outline-offset:1px}.tc-legend-item-hidden{color:var(--tc-text-muted)}.tc-legend-item-hidden .tc-legend-swatch{box-shadow:inset 0 0 0 1.5px var(--tc-series-color);background:0 0}.tc-download{z-index:5;font-family:var(--tc-font-family);font-size:var(--tc-font-size);line-height:1.4;position:absolute;top:0;right:0}.tc-download-toggle,.tc-download-item{appearance:none;font:inherit;color:var(--tc-text-muted);cursor:pointer;background:0 0;border:0;border-radius:4px;align-items:center;margin:0;display:flex}.tc-download-toggle{justify-content:center;width:24px;height:24px;padding:0}.tc-download-toggle:hover,.tc-download-toggle[aria-expanded=true],.tc-download-item:hover{color:var(--tc-text-color);background:var(--tc-hover-color)}.tc-download-toggle:focus-visible,.tc-download-item:focus-visible{outline:2px solid var(--tc-focus-color);outline-offset:1px}.tc-download-menu{min-width:80px;color:var(--tc-tooltip-color);background:var(--tc-tooltip-bg);border:1px solid var(--tc-tooltip-border);border-radius:var(--tc-tooltip-radius);box-shadow:var(--tc-tooltip-shadow);margin-top:2px;padding:4px;position:absolute;top:100%;right:0}.tc-download-item{text-align:start;white-space:nowrap;width:100%;padding:4px 8px}.tc-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tc-chart:focus{outline:none}.tc-chart:focus-visible{outline:2px solid var(--tc-focus-color);outline-offset:2px;border-radius:2px}.tc-table-wrap:not(.tc-sr-only){margin-top:12px;overflow-x:auto}.tc-table{border-collapse:collapse;width:100%;font-family:var(--tc-font-family);font-size:var(--tc-font-size);font-variant-numeric:tabular-nums;color:var(--tc-text-color)}.tc-table caption{text-align:start;margin-bottom:4px;font-weight:600}.tc-table th,.tc-table td{text-align:end;border-bottom:1px solid var(--tc-grid-color);padding:4px 8px}.tc-table th[scope=row],.tc-table thead th:first-child{text-align:start}.tc-table thead th{color:var(--tc-text-muted);border-bottom-color:var(--tc-baseline-color);font-weight:600}@media (prefers-reduced-motion:reduce){.tc-chart,.tc-tooltip{--tc-duration:0s;--tc-duration-fast:0s}}@media (forced-colors:active){.tc-value-label{fill:canvastext;stroke:canvas}.tc-tick-label{fill:canvastext}.tc-grid-line,.tc-radar-ring,.tc-radar-spoke{stroke:graytext}.tc-grid-line-zero,.tc-axis-line,.tc-tick-line,.tc-line{stroke:canvastext}.tc-area{fill:graytext}.tc-bar,.tc-point{fill:canvastext;stroke:canvas}.tc-crosshair{stroke:highlight}.tc-tooltip{border-color:canvastext}.tc-legend-swatch{background:canvastext}.tc-legend-item-hidden .tc-legend-swatch{background:0 0;box-shadow:inset 0 0 0 1.5px canvastext}.tc-pattern-bg{fill:canvas}.tc-pattern-ink{stroke:canvastext}:is(.tc-patterned,.tc-patterns-auto) :is(.tc-bar,.tc-area,.tc-slice,.tc-gauge-arc,.tc-bubble){fill:var(--tc-series-pattern,CanvasText);fill-opacity:1;stroke:canvastext;stroke-width:1px}.tc-patterns-auto .tc-line{stroke-dasharray:var(--tc-series-dash,var(--tc-pattern-dash))}:has(>:is(.tc-patterned,.tc-patterns-auto))>:is(.tc-legend,.tc-tooltip) .tc-series{--tc-pattern-color:CanvasText;--tc-series-color:Canvas}:has(>:is(.tc-patterned,.tc-patterns-auto))>:is(.tc-legend,.tc-tooltip) :is(.tc-legend-swatch,.tc-tooltip-swatch){forced-color-adjust:none;background:var(--tc-swatch-pattern), Canvas;box-shadow:inset 0 0 0 1px canvastext}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) :is(.tc-legend-swatch,.tc-tooltip-swatch){box-shadow:none;background:canvastext}}
|
|
2
|
+
:where(:root),:where([data-theme=light]){--tc-color-1:var(--tblr-primary,#2a78d6);--tc-color-2:var(--tblr-orange,#eb6834);--tc-color-3:var(--tblr-teal,#1baf7a);--tc-color-4:var(--tblr-yellow,#eda100);--tc-color-5:var(--tblr-pink,#e87ba4);--tc-color-6:var(--tblr-green,#008300);--tc-color-7:var(--tblr-indigo,#4a3aa7);--tc-color-8:var(--tblr-red,#e34948);--tc-color-other:var(--tblr-secondary,#8a8983);--tc-surface:var(--tblr-bg-surface,#fff);--tc-text-color:var(--tblr-body-color,#0b0b0b);--tc-text-muted:var(--tblr-secondary,#6f6e69);--tc-grid-color:var(--tblr-border-color-translucent,#e1e0d9);--tc-baseline-color:var(--tblr-border-color,#c3c2b7);--tc-hover-color:rgba(var(--tblr-emphasis-color-rgb,11, 11, 11), .04);--tc-tooltip-bg:var(--tblr-dark,#0b0b0b);--tc-tooltip-color:#fff;--tc-tooltip-muted:#ffffffb3;--tc-tooltip-border:#ffffff1f;--tc-tooltip-shadow:var(--tblr-box-shadow,0 4px 16px #0b0b0b1f);--tc-tooltip-radius:var(--tblr-border-radius,6px);--tc-tooltip-light-bg:#fff;--tc-tooltip-light-color:#0b0b0b;--tc-tooltip-light-muted:#6f6e69;--tc-tooltip-light-border:#0b0b0b1a;--tc-focus-color:var(--tc-color-1);--tc-font-family:var(--tblr-body-font-family,inherit);--tc-font-size:12px;--tc-stroke-width:2px;--tc-grid-width:1px;--tc-area-opacity:.1;--tc-area-gradient-start:.24;--tc-area-gradient-end:0;--tc-pie-value-size:1.75em;--tc-bubble-opacity:.7;--tc-point-ring:2px;--tc-duration:.4s;--tc-duration-fast:.12s;--tc-easing:cubic-bezier(.4, 0, .2, 1)}@media (prefers-color-scheme:dark){:where(:root:not([data-theme=light])){--tc-color-1:var(--tblr-primary,#3987e5);--tc-color-2:var(--tblr-orange,#d95926);--tc-color-3:var(--tblr-teal,#199e70);--tc-color-4:var(--tblr-yellow,#c98500);--tc-color-5:var(--tblr-pink,#d55181);--tc-color-6:var(--tblr-green,#008300);--tc-color-7:var(--tblr-indigo,#9085e9);--tc-color-8:var(--tblr-red,#e66767);--tc-color-other:var(--tblr-secondary,#7c7b76);--tc-surface:var(--tblr-bg-surface,#1a1a19);--tc-text-color:var(--tblr-body-color,#fff);--tc-text-muted:var(--tblr-secondary,#a3a29c);--tc-grid-color:var(--tblr-border-color-translucent,#2c2c2a);--tc-baseline-color:var(--tblr-border-color,#4a4a46);--tc-hover-color:rgba(var(--tblr-emphasis-color-rgb,255, 255, 255), .06);--tc-tooltip-bg:var(--tblr-dark,#262625);--tc-tooltip-shadow:var(--tblr-box-shadow,0 4px 16px #0006);--tc-focus-color:var(--tc-color-1)}}:where([data-theme=dark]){--tc-color-1:var(--tblr-primary,#3987e5);--tc-color-2:var(--tblr-orange,#d95926);--tc-color-3:var(--tblr-teal,#199e70);--tc-color-4:var(--tblr-yellow,#c98500);--tc-color-5:var(--tblr-pink,#d55181);--tc-color-6:var(--tblr-green,#008300);--tc-color-7:var(--tblr-indigo,#9085e9);--tc-color-8:var(--tblr-red,#e66767);--tc-color-other:var(--tblr-secondary,#7c7b76);--tc-surface:var(--tblr-bg-surface,#1a1a19);--tc-text-color:var(--tblr-body-color,#fff);--tc-text-muted:var(--tblr-secondary,#a3a29c);--tc-grid-color:var(--tblr-border-color-translucent,#2c2c2a);--tc-baseline-color:var(--tblr-border-color,#4a4a46);--tc-hover-color:rgba(var(--tblr-emphasis-color-rgb,255, 255, 255), .06);--tc-tooltip-bg:var(--tblr-dark,#262625);--tc-tooltip-shadow:var(--tblr-box-shadow,0 4px 16px #0006);--tc-focus-color:var(--tc-color-1)}.tc-chart{max-width:100%;height:auto;font-family:var(--tc-font-family);font-size:var(--tc-font-size);letter-spacing:normal;word-spacing:normal;text-transform:none;color:var(--tc-text-color);-webkit-tap-highlight-color:transparent;display:block;overflow:visible}.tc-chart :where(text){font:inherit}.tc-series{--tc-series-color:var(--tc-color-other);--tc-series-pattern:var(--tc-pattern-other);--tc-pattern-dash:1 3;--tc-pattern-ink:var(--tc-pattern-color,var(--tc-surface));--tc-swatch-pattern:repeating-linear-gradient(45deg, var(--tc-pattern-ink) 0 1px, #0000 0 3px)}.tc-series-1{--tc-series-color:var(--tc-color-1);--tc-series-pattern:var(--tc-pattern-1);--tc-pattern-dash:none;--tc-swatch-pattern:repeating-linear-gradient(45deg, var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-series-2{--tc-series-color:var(--tc-color-2);--tc-series-pattern:var(--tc-pattern-2);--tc-pattern-dash:6 3;--tc-swatch-pattern:radial-gradient(var(--tc-pattern-ink) .8px, #0000 1.2px) 0 0 / 4px 4px}.tc-series-3{--tc-series-color:var(--tc-color-3);--tc-series-pattern:var(--tc-pattern-3);--tc-pattern-dash:2 3;--tc-swatch-pattern:repeating-linear-gradient(-45deg, var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-series-4{--tc-series-color:var(--tc-color-4);--tc-series-pattern:var(--tc-pattern-4);--tc-pattern-dash:10 3 2 3;--tc-swatch-pattern:repeating-linear-gradient(var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-series-5{--tc-series-color:var(--tc-color-5);--tc-series-pattern:var(--tc-pattern-5);--tc-pattern-dash:4 4;--tc-swatch-pattern:repeating-linear-gradient(45deg, var(--tc-pattern-ink) 0 1px, #0000 0 4px), repeating-linear-gradient(-45deg, var(--tc-pattern-ink) 0 1px, #0000 0 4px)}.tc-series-6{--tc-series-color:var(--tc-color-6);--tc-series-pattern:var(--tc-pattern-6);--tc-pattern-dash:12 4;--tc-swatch-pattern:repeating-linear-gradient(90deg, var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-series-7{--tc-series-color:var(--tc-color-7);--tc-series-pattern:var(--tc-pattern-7);--tc-pattern-dash:2 2 6 2;--tc-swatch-pattern:repeating-linear-gradient(var(--tc-pattern-ink) 0 1px, #0000 0 4px), repeating-linear-gradient(90deg, var(--tc-pattern-ink) 0 1px, #0000 0 4px)}.tc-series-8{--tc-series-color:var(--tc-color-8);--tc-series-pattern:var(--tc-pattern-8);--tc-pattern-dash:8 2 2 2;--tc-swatch-pattern:linear-gradient(90deg, #0000 50%, var(--tc-series-color) 0) 0 0 / 4px 4px, repeating-linear-gradient(var(--tc-pattern-ink) 0 1.5px, #0000 0 4px)}.tc-tick-label{fill:var(--tc-text-muted);font-variant-numeric:tabular-nums}.tc-grid-line,.tc-grid-line-zero,.tc-axis-line,.tc-tick-line,.tc-crosshair,.tc-sparkline-zero,.tc-radar-ring,.tc-radar-spoke{stroke:var(--tc-baseline-color);stroke-width:var(--tc-grid-width);shape-rendering:crispedges;vector-effect:non-scaling-stroke}.tc-grid-line,.tc-sparkline-zero,.tc-radar-ring,.tc-radar-spoke{stroke:var(--tc-grid-color)}.tc-grid-line-zero{stroke:var(--tc-baseline-color)}.tc-line{fill:none;stroke:var(--tc-series-color);stroke-width:var(--tc-series-width,var(--tc-stroke-width));stroke-dasharray:var(--tc-series-dash,none);stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.tc-area{fill:var(--tc-series-color);fill-opacity:var(--tc-area-opacity);stroke:none}.tc-pie-slices{--tc-pie-gap:0px}.tc-slice{fill:var(--tc-series-color);stroke:var(--tc-surface);stroke-width:var(--tc-pie-gap);stroke-linejoin:round}.tc-pie-track,.tc-gauge-track{fill:var(--tc-grid-color)}.tc-gauge-arc{fill:var(--tc-series-color)}.tc-pie-value,.tc-gauge-value,.tc-parliament-value{font-size:var(--tc-pie-value-size);fill:var(--tc-text-color);font-variant-numeric:tabular-nums;font-weight:600}.tc-pie-label,.tc-gauge-label,.tc-parliament-label{fill:var(--tc-text-muted)}.tc-seat{fill:var(--tc-series-color);transition:transform var(--tc-duration) var(--tc-easing), r var(--tc-duration) var(--tc-easing)}.tc-seat-vacant{fill:var(--tc-grid-color)}.tc-chart-parliament .tc-hover-mark{opacity:.25}.tc-sankey-node{fill:var(--tc-series-color)}.tc-sankey-link{fill:var(--tc-series-color);fill-opacity:var(--tc-area-opacity);stroke:none}.tc-chart-sankey{--tc-area-opacity:.35}.tc-sankey-value{font-size:.92em}.tc-chart-sankey .tc-hover-mark{opacity:.5}.tc-radar-ring,.tc-radar-spoke,.tc-chart-radar .tc-crosshair{fill:none;shape-rendering:auto}.tc-area-gradient{fill-opacity:1}.tc-fade-start{stop-color:#fff;stop-opacity:var(--tc-area-gradient-start)}.tc-fade-end{stop-color:#fff;stop-opacity:var(--tc-area-gradient-end)}.tc-chart-sparkline{--tc-stroke-width:1.5px;--tc-area-gradient-start:.3}.tc-bubble{fill-opacity:var(--tc-bubble-opacity)}.tc-point{fill:var(--tc-series-color);stroke:var(--tc-surface);stroke-width:var(--tc-point-ring);paint-order:stroke;transition:cx var(--tc-duration) var(--tc-easing), cy var(--tc-duration) var(--tc-easing)}.tc-point-min,.tc-point-max{fill:var(--tc-text-muted)}.tc-annotation{--tc-annotation-color:var(--tc-text-muted)}.tc-annotation-line{stroke:var(--tc-annotation-color);stroke-width:1px;stroke-dasharray:4 3;shape-rendering:crispedges;vector-effect:non-scaling-stroke}.tc-annotation-band{fill:var(--tc-annotation-color);fill-opacity:.1}.tc-annotation-label{fill:var(--tc-annotation-color);font-weight:500}.tc-annotation-label,.tc-radar-value{paint-order:stroke;stroke:var(--tc-surface);stroke-width:3px;stroke-linejoin:round;font-size:.92em}.tc-annotations{pointer-events:none}.tc-value-label{fill:var(--tc-text-color);font-variant-numeric:tabular-nums;paint-order:stroke;stroke:var(--tc-surface);stroke-width:3px;stroke-linejoin:round;transition:transform var(--tc-duration) var(--tc-easing);animation:tc-fade-in var(--tc-duration) var(--tc-easing);font-weight:500}.tc-marker{transition:d var(--tc-duration) var(--tc-easing)}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) :is(.tc-legend-swatch,.tc-tooltip-swatch){background:var(--tc-series-color);width:10px;height:10px}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-2 :is(.tc-legend-swatch,.tc-tooltip-swatch){border-radius:1px;scale:.8}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-3 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(50% 3.6%,92.9% 82.1%,7.1% 82.1%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-4 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(50% 3.6%,96.4% 50%,50% 96.4%,3.6% 50%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-5 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(7.1% 17.9%,92.9% 17.9%,50% 96.4%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-6 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(35.7% 7.1%,64.3% 7.1%,64.3% 35.7%,92.9% 35.7%,92.9% 64.3%,64.3% 64.3%,64.3% 92.9%,35.7% 92.9%,35.7% 64.3%,7.1% 64.3%,7.1% 35.7%,35.7% 35.7%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-7 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(25% 7.1%,50% 32.1%,75% 7.1%,92.9% 25%,67.9% 50%,92.9% 75%,75% 92.9%,50% 67.9%,25% 92.9%,7.1% 75%,32.1% 50%,7.1% 25%);border-radius:0}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) .tc-series-8 :is(.tc-legend-swatch,.tc-tooltip-swatch){clip-path:polygon(50% 0%,61.4% 34.3%,97.5% 34.6%,68.6% 56.1%,79.3% 90.4%,50% 69.6%,20.7% 90.4%,31.4% 56.1%,2.5% 34.6%,38.6% 34.3%);border-radius:0}.tc-pattern-bg{fill:var(--tc-series-color)}.tc-pattern-ink{fill:none;stroke:var(--tc-pattern-ink);stroke-width:1.5px;stroke-linecap:round}.tc-patterned :is(.tc-bar,.tc-area,.tc-slice,.tc-gauge-arc,.tc-bubble){fill:var(--tc-series-pattern,var(--tc-series-color))}.tc-patterned .tc-area{fill-opacity:max(var(--tc-area-opacity), .4)}.tc-patterned .tc-line{stroke-dasharray:var(--tc-series-dash,var(--tc-pattern-dash))}:has(>.tc-patterned)>:is(.tc-legend,.tc-tooltip) :is(.tc-legend-swatch,.tc-tooltip-swatch){background:var(--tc-swatch-pattern), var(--tc-series-color)}@keyframes tc-reveal{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}@keyframes tc-grow{0%{transform:scaleY(0)}}@keyframes tc-grow-x{0%{transform:scaleX(0)}}@keyframes tc-fade-in{0%{opacity:0}}.tc-line,.tc-area,.tc-bar,.tc-radar-ring,.tc-dots{transition:d var(--tc-duration) var(--tc-easing)}.tc-slice,.tc-gauge-arc,.tc-gauge-track{transition:none var(--tc-duration)}.tc-chart-line .tc-series-list,.tc-chart-area .tc-series-list{animation:tc-reveal calc(var(--tc-duration) * 2) var(--tc-easing)}.tc-series-list .tc-series,.tc-areas .tc-series,.tc-sankey-links .tc-sankey-link,.tc-sankey-nodes .tc-series,.tc-parliament-seats .tc-series,.tc-parliament-seats .tc-seat,.tc-series-list .tc-point,.tc-heatmap-cells,.tc-candles,.tc-tick,.tc-grid-line{animation:tc-fade-in var(--tc-duration) var(--tc-easing)}.tc-bar{fill:var(--tc-series-color);transform-box:fill-box;transform-origin:50% 100%;animation:tc-grow var(--tc-duration) var(--tc-easing)}.tc-bar-negative{transform-origin:50% 0}.tc-cell{fill:var(--tc-cell-fill,var(--tc-heat-color,var(--tc-color-1)));transition:fill var(--tc-duration) var(--tc-easing)}@supports (color:color-mix(in oklab, red 50%, blue)){.tc-cell{fill:var(--tc-cell-fill,color-mix(in oklab, var(--tc-heat-color,var(--tc-color-1)) var(--tc-heat,100%), var(--tc-heat-empty,var(--tc-grid-color))))}}.tc-heatmap-row.tc-series{--tc-heat-color:var(--tc-series-color)}.tc-cell-empty{fill:var(--tc-heat-empty,var(--tc-grid-color));opacity:.5}.tc-candle{--tc-candle-color:var(--tc-up-color,var(--tc-color-6))}.tc-candle-down{--tc-candle-color:var(--tc-negative-color,var(--tc-color-8))}.tc-candle-body{fill:var(--tc-candle-color);transition:d var(--tc-duration) var(--tc-easing), fill var(--tc-duration) var(--tc-easing)}.tc-candle-wick{fill:none;stroke:var(--tc-candle-color);stroke-width:1px;vector-effect:non-scaling-stroke;transition:d var(--tc-duration) var(--tc-easing), stroke var(--tc-duration) var(--tc-easing)}.tc-tristate-loss{fill:var(--tc-negative-color,var(--tc-color-8))}.tc-tristate-draw{fill:var(--tc-baseline-color)}.tc-bar-horizontal{transform-origin:0;animation-name:tc-grow-x}.tc-bar-horizontal.tc-bar-negative{transform-origin:100%}.tc-tick,.tc-grid-line{transition:transform var(--tc-duration) var(--tc-easing)}@keyframes tc-pie-in{0%{opacity:0;transform:scale(.85)}}.tc-pie-slices,.tc-gauge-rings,.tc-parliament-seats,.tc-radar-series{animation:tc-pie-in calc(var(--tc-duration) * 1.5) var(--tc-easing)}.tc-hover .tc-point{transition:none;animation:none}.tc-static,.tc-chart[data-resizing]{--tc-duration:0s}:where(.tc-container){position:relative}.tc-hover{pointer-events:none}.tc-hover-band{fill:var(--tc-hover-color)}.tc-hover-mark{fill:var(--tc-series-color);opacity:.35}.tc-chart-heatmap .tc-hover-mark{fill:none;stroke:var(--tc-text-color);stroke-width:2px;opacity:.6}.tc-tooltip{z-index:10;pointer-events:none;opacity:0;min-width:120px;max-width:min(280px,100%);font-family:var(--tc-font-family);font-size:var(--tc-font-size);overflow-wrap:anywhere;color:var(--tc-tooltip-color);background:var(--tc-tooltip-bg);border:1px solid var(--tc-tooltip-border);border-radius:var(--tc-tooltip-radius);box-shadow:var(--tc-tooltip-shadow);transition:opacity var(--tc-duration-fast) var(--tc-easing);padding:8px 10px;line-height:1.4;position:absolute;top:0;left:0}.tc-tooltip-light{--tc-tooltip-bg:var(--tc-tooltip-light-bg);--tc-tooltip-color:var(--tc-tooltip-light-color);--tc-tooltip-muted:var(--tc-tooltip-light-muted);--tc-tooltip-border:var(--tc-tooltip-light-border)}.tc-tooltip .tc-series{--tc-pattern-ink:var(--tc-pattern-color,var(--tc-tooltip-bg))}.tc-tooltip[data-visible]{opacity:1;transition:opacity var(--tc-duration-fast) var(--tc-easing), transform var(--tc-duration-fast) var(--tc-easing)}.tc-tooltip-title{margin-bottom:4px;font-weight:600}.tc-tooltip-item{align-items:center;gap:8px;display:flex}.tc-tooltip-swatch,.tc-legend-swatch{background:var(--tc-series-color);border-radius:50%;flex:none;width:8px;height:8px}.tc-tooltip-name{color:var(--tc-tooltip-muted);flex:1}.tc-tooltip-value{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}.tc-tooltip-footer{border-top:1px solid var(--tc-tooltip-border);margin-top:4px;padding-top:4px}.tc-tooltip-item-active .tc-tooltip-name{color:var(--tc-tooltip-color)}.tc-legend{font-family:var(--tc-font-family);font-size:var(--tc-font-size);margin-bottom:8px;line-height:1.4}.tc-legend[data-position=bottom]{margin:8px 0 0}.tc-legend-items{flex-wrap:wrap;gap:4px 12px;display:flex}.tc-legend-item{appearance:none;font:inherit;text-align:start;color:var(--tc-text-color);cursor:pointer;transition:color var(--tc-duration-fast) var(--tc-easing);background:0 0;border:0;border-radius:4px;align-items:center;gap:6px;margin:0;padding:2px 4px;display:inline-flex}.tc-legend-item:hover{background:var(--tc-hover-color)}.tc-legend-item:focus-visible{outline:2px solid var(--tc-focus-color);outline-offset:1px}.tc-legend-item-hidden{color:var(--tc-text-muted)}.tc-legend-item-hidden .tc-legend-swatch{box-shadow:inset 0 0 0 1.5px var(--tc-series-color);background:0 0}.tc-download{z-index:11;font-family:var(--tc-font-family);font-size:var(--tc-font-size);line-height:1.4;position:absolute;top:0;right:0}.tc-download-toggle,.tc-download-item{appearance:none;font:inherit;color:var(--tc-text-muted);cursor:pointer;background:0 0;border:0;border-radius:4px;align-items:center;margin:0;display:flex}.tc-download-toggle{justify-content:center;width:24px;height:24px;padding:0}.tc-download-toggle:hover,.tc-download-toggle[aria-expanded=true],.tc-download-item:hover{color:var(--tc-text-color);background:var(--tc-hover-color)}.tc-download-toggle:focus-visible,.tc-download-item:focus-visible{outline:2px solid var(--tc-focus-color);outline-offset:1px}.tc-download-menu{min-width:80px;color:var(--tc-text-color);background:var(--tc-surface);border:1px solid var(--tc-grid-color);border-radius:var(--tc-tooltip-radius);box-shadow:var(--tc-tooltip-shadow);margin-top:2px;padding:4px;position:absolute;top:100%;right:0}.tc-download-item{text-align:start;white-space:nowrap;width:100%;padding:4px 8px}.tc-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tc-chart:focus{outline:none}.tc-chart:focus-visible{outline:2px solid var(--tc-focus-color);outline-offset:2px;border-radius:2px}.tc-table-wrap:not(.tc-sr-only){margin-top:12px;overflow-x:auto}.tc-table{border-collapse:collapse;width:100%;font-family:var(--tc-font-family);font-size:var(--tc-font-size);font-variant-numeric:tabular-nums;color:var(--tc-text-color)}.tc-table caption{text-align:start;margin-bottom:4px;font-weight:600}.tc-table th,.tc-table td{text-align:end;border-bottom:1px solid var(--tc-grid-color);padding:4px 8px}.tc-table th[scope=row],.tc-table thead th:first-child{text-align:start}.tc-table thead th{color:var(--tc-text-muted);border-bottom-color:var(--tc-baseline-color);font-weight:600}@media (prefers-reduced-motion:reduce){.tc-chart,.tc-tooltip{--tc-duration:0s;--tc-duration-fast:0s}}@media (forced-colors:active){.tc-value-label{fill:canvastext;stroke:canvas}.tc-tick-label{fill:canvastext}.tc-grid-line,.tc-radar-ring,.tc-radar-spoke{stroke:graytext}.tc-grid-line-zero,.tc-axis-line,.tc-tick-line,.tc-line{stroke:canvastext}.tc-area{fill:graytext}.tc-bar,.tc-point{fill:canvastext;stroke:canvas}.tc-crosshair{stroke:highlight}.tc-tooltip{border-color:canvastext}.tc-legend-swatch{background:canvastext}.tc-legend-item-hidden .tc-legend-swatch{background:0 0;box-shadow:inset 0 0 0 1.5px canvastext}.tc-pattern-bg{fill:canvas}.tc-pattern-ink{stroke:canvastext}:is(.tc-patterned,.tc-patterns-auto) :is(.tc-bar,.tc-area,.tc-slice,.tc-gauge-arc,.tc-bubble){fill:var(--tc-series-pattern,CanvasText);fill-opacity:1;stroke:canvastext;stroke-width:1px}.tc-patterns-auto .tc-line{stroke-dasharray:var(--tc-series-dash,var(--tc-pattern-dash))}:has(>:is(.tc-patterned,.tc-patterns-auto))>:is(.tc-legend,.tc-tooltip) .tc-series{--tc-pattern-color:CanvasText;--tc-series-color:Canvas}:has(>:is(.tc-patterned,.tc-patterns-auto))>:is(.tc-legend,.tc-tooltip) :is(.tc-legend-swatch,.tc-tooltip-swatch){forced-color-adjust:none;background:var(--tc-swatch-pattern), Canvas;box-shadow:inset 0 0 0 1px canvastext}:has(>svg .tc-marker)>:is(.tc-legend,.tc-tooltip) :is(.tc-legend-swatch,.tc-tooltip-swatch){box-shadow:none;background:canvastext}}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { t as h } from "./vnode-tCWItoUH.js";
|
|
2
|
+
import { n as tween, t as stop } from "./tween-BCYd0RTY.js";
|
|
3
|
+
import { r as arcPathStable } from "./arc-a1tRTEw7.js";
|
|
4
|
+
//#region src/render/sweep.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arcs that turn to their new angles: a transition of `d` moves each point
|
|
7
|
+
* of a path along a straight line, which bends a slice out of its ring on
|
|
8
|
+
* the way. A path that knows which arc it draws (the `arc` of its node, see
|
|
9
|
+
* `arcNode`) is redrawn frame by frame instead, with the angles and radii
|
|
10
|
+
* in between, so slices grow and shrink around the center. Timed by the
|
|
11
|
+
* path's `transition-duration` (`--tc-duration`), with an ease-out curve.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* A path drawing this arc, which keeps the arc with it (radii, angles, pad
|
|
15
|
+
* angle, corner radius): out of the markup, for the next render to sweep from.
|
|
16
|
+
*/
|
|
17
|
+
function arcNode(name, arc) {
|
|
18
|
+
const node = h("path", {
|
|
19
|
+
class: name,
|
|
20
|
+
d: arcPathStable(arc)
|
|
21
|
+
});
|
|
22
|
+
node.arc = [
|
|
23
|
+
arc.innerRadius,
|
|
24
|
+
arc.outerRadius,
|
|
25
|
+
arc.startAngle,
|
|
26
|
+
arc.endAngle,
|
|
27
|
+
arc.padAngle ?? 0,
|
|
28
|
+
arc.cornerRadius ?? 0
|
|
29
|
+
];
|
|
30
|
+
return node;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Take `el` from the arc of its last render, `prev`, to the arc of `next`.
|
|
34
|
+
* Returns the attributes left for the caller to patch (all but `d`, set
|
|
35
|
+
* here frame by frame), or nothing when there is no sweep: not an arc, the
|
|
36
|
+
* same path, no arc to come from, or a chart without transitions.
|
|
37
|
+
*/
|
|
38
|
+
function sweep(el, prev, next) {
|
|
39
|
+
const { arc, attrs } = next;
|
|
40
|
+
if (!arc || prev.attrs.d === attrs.d) return;
|
|
41
|
+
const origin = stop(el) ?? prev.arc;
|
|
42
|
+
const duration = Number.parseFloat(getComputedStyle(el).transitionDuration) * 1e3;
|
|
43
|
+
if (!origin || !(duration > 0)) return;
|
|
44
|
+
tween(el, origin, arc, duration, ([innerRadius, outerRadius, startAngle, endAngle, padAngle, cornerRadius]) => arcPathStable({
|
|
45
|
+
innerRadius,
|
|
46
|
+
outerRadius,
|
|
47
|
+
startAngle,
|
|
48
|
+
endAngle,
|
|
49
|
+
padAngle,
|
|
50
|
+
cornerRadius
|
|
51
|
+
}), String(attrs.d));
|
|
52
|
+
return {
|
|
53
|
+
...attrs,
|
|
54
|
+
d: prev.attrs.d
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { sweep as n, arcNode as t };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=sweep-CbfR7--d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sweep-CbfR7--d.js","names":[],"sources":["../src/render/sweep.ts"],"sourcesContent":["/**\n * Arcs that turn to their new angles: a transition of `d` moves each point\n * of a path along a straight line, which bends a slice out of its ring on\n * the way. A path that knows which arc it draws (the `arc` of its node, see\n * `arcNode`) is redrawn frame by frame instead, with the angles and radii\n * in between, so slices grow and shrink around the center. Timed by the\n * path's `transition-duration` (`--tc-duration`), with an ease-out curve.\n */\n\nimport { type ArcOptions, arcPathStable } from '../shapes/arc.ts'\nimport { type Attrs, h, type VNode } from '../vnode.ts'\nimport { stop, tween } from './tween.ts'\n\n/**\n * A path drawing this arc, which keeps the arc with it (radii, angles, pad\n * angle, corner radius): out of the markup, for the next render to sweep from.\n */\nexport function arcNode(name: string, arc: ArcOptions): VNode {\n const node = h('path', { class: name, d: arcPathStable(arc) })\n node.arc = [\n arc.innerRadius,\n arc.outerRadius,\n arc.startAngle,\n arc.endAngle,\n arc.padAngle ?? 0,\n arc.cornerRadius ?? 0,\n ]\n return node\n}\n\n/**\n * Take `el` from the arc of its last render, `prev`, to the arc of `next`.\n * Returns the attributes left for the caller to patch (all but `d`, set\n * here frame by frame), or nothing when there is no sweep: not an arc, the\n * same path, no arc to come from, or a chart without transitions.\n */\nexport function sweep(el: Element, prev: VNode, next: VNode): Attrs | undefined {\n const { arc, attrs } = next\n if (!arc || prev.attrs.d === attrs.d) return\n // An interrupted sweep continues from where the arc is now.\n const origin = stop(el) ?? prev.arc\n // Zero in a chart without transitions (static, resizing, reduced motion).\n const duration = Number.parseFloat(getComputedStyle(el).transitionDuration) * 1000\n if (!origin || !(duration > 0)) return\n tween(\n el,\n origin,\n arc,\n duration,\n ([innerRadius, outerRadius, startAngle, endAngle, padAngle, cornerRadius]) =>\n arcPathStable({\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n padAngle,\n cornerRadius,\n } as ArcOptions),\n String(attrs.d),\n )\n return { ...attrs, d: prev.attrs.d as string }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,SAAgB,QAAQ,MAAc,KAAwB;CAC5D,MAAM,OAAO,EAAE,QAAQ;EAAE,OAAO;EAAM,GAAG,cAAc,GAAG;CAAE,CAAC;CAC7D,KAAK,MAAM;EACT,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI,YAAY;EAChB,IAAI,gBAAgB;CACtB;CACA,OAAO;AACT;;;;;;;AAQA,SAAgB,MAAM,IAAa,MAAa,MAAgC;CAC9E,MAAM,EAAE,KAAK,UAAU;CACvB,IAAI,CAAC,OAAO,KAAK,MAAM,MAAM,MAAM,GAAG;CAEtC,MAAM,SAAS,KAAK,EAAE,KAAK,KAAK;CAEhC,MAAM,WAAW,OAAO,WAAW,iBAAiB,EAAE,CAAC,CAAC,kBAAkB,IAAI;CAC9E,IAAI,CAAC,UAAU,EAAE,WAAW,IAAI;CAChC,MACE,IACA,QACA,KACA,WACC,CAAC,aAAa,aAAa,YAAY,UAAU,UAAU,kBAC1D,cAAc;EACZ;EACA;EACA;EACA;EACA;EACA;CACF,CAAe,GACjB,OAAO,MAAM,CAAC,CAChB;CACA,OAAO;EAAE,GAAG;EAAO,GAAG,KAAK,MAAM;CAAY;AAC/C"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const require_vnode = require("./vnode-CkQ27Cxe.cjs");
|
|
2
|
+
const require_tween = require("./tween-CIGBlryn.cjs");
|
|
3
|
+
const require_arc = require("./arc-BXpLrt9b.cjs");
|
|
4
|
+
//#region src/render/sweep.ts
|
|
5
|
+
/**
|
|
6
|
+
* Arcs that turn to their new angles: a transition of `d` moves each point
|
|
7
|
+
* of a path along a straight line, which bends a slice out of its ring on
|
|
8
|
+
* the way. A path that knows which arc it draws (the `arc` of its node, see
|
|
9
|
+
* `arcNode`) is redrawn frame by frame instead, with the angles and radii
|
|
10
|
+
* in between, so slices grow and shrink around the center. Timed by the
|
|
11
|
+
* path's `transition-duration` (`--tc-duration`), with an ease-out curve.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* A path drawing this arc, which keeps the arc with it (radii, angles, pad
|
|
15
|
+
* angle, corner radius): out of the markup, for the next render to sweep from.
|
|
16
|
+
*/
|
|
17
|
+
function arcNode(name, arc) {
|
|
18
|
+
const node = require_vnode.h("path", {
|
|
19
|
+
class: name,
|
|
20
|
+
d: require_arc.arcPathStable(arc)
|
|
21
|
+
});
|
|
22
|
+
node.arc = [
|
|
23
|
+
arc.innerRadius,
|
|
24
|
+
arc.outerRadius,
|
|
25
|
+
arc.startAngle,
|
|
26
|
+
arc.endAngle,
|
|
27
|
+
arc.padAngle ?? 0,
|
|
28
|
+
arc.cornerRadius ?? 0
|
|
29
|
+
];
|
|
30
|
+
return node;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Take `el` from the arc of its last render, `prev`, to the arc of `next`.
|
|
34
|
+
* Returns the attributes left for the caller to patch (all but `d`, set
|
|
35
|
+
* here frame by frame), or nothing when there is no sweep: not an arc, the
|
|
36
|
+
* same path, no arc to come from, or a chart without transitions.
|
|
37
|
+
*/
|
|
38
|
+
function sweep(el, prev, next) {
|
|
39
|
+
const { arc, attrs } = next;
|
|
40
|
+
if (!arc || prev.attrs.d === attrs.d) return;
|
|
41
|
+
const origin = require_tween.stop(el) ?? prev.arc;
|
|
42
|
+
const duration = Number.parseFloat(getComputedStyle(el).transitionDuration) * 1e3;
|
|
43
|
+
if (!origin || !(duration > 0)) return;
|
|
44
|
+
require_tween.tween(el, origin, arc, duration, ([innerRadius, outerRadius, startAngle, endAngle, padAngle, cornerRadius]) => require_arc.arcPathStable({
|
|
45
|
+
innerRadius,
|
|
46
|
+
outerRadius,
|
|
47
|
+
startAngle,
|
|
48
|
+
endAngle,
|
|
49
|
+
padAngle,
|
|
50
|
+
cornerRadius
|
|
51
|
+
}), String(attrs.d));
|
|
52
|
+
return {
|
|
53
|
+
...attrs,
|
|
54
|
+
d: prev.attrs.d
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
Object.defineProperty(exports, "arcNode", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function() {
|
|
61
|
+
return arcNode;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "sweep", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function() {
|
|
67
|
+
return sweep;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=sweep-DaTEDDuC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sweep-DaTEDDuC.cjs","names":["h","arcPathStable","stop"],"sources":["../src/render/sweep.ts"],"sourcesContent":["/**\n * Arcs that turn to their new angles: a transition of `d` moves each point\n * of a path along a straight line, which bends a slice out of its ring on\n * the way. A path that knows which arc it draws (the `arc` of its node, see\n * `arcNode`) is redrawn frame by frame instead, with the angles and radii\n * in between, so slices grow and shrink around the center. Timed by the\n * path's `transition-duration` (`--tc-duration`), with an ease-out curve.\n */\n\nimport { type ArcOptions, arcPathStable } from '../shapes/arc.ts'\nimport { type Attrs, h, type VNode } from '../vnode.ts'\nimport { stop, tween } from './tween.ts'\n\n/**\n * A path drawing this arc, which keeps the arc with it (radii, angles, pad\n * angle, corner radius): out of the markup, for the next render to sweep from.\n */\nexport function arcNode(name: string, arc: ArcOptions): VNode {\n const node = h('path', { class: name, d: arcPathStable(arc) })\n node.arc = [\n arc.innerRadius,\n arc.outerRadius,\n arc.startAngle,\n arc.endAngle,\n arc.padAngle ?? 0,\n arc.cornerRadius ?? 0,\n ]\n return node\n}\n\n/**\n * Take `el` from the arc of its last render, `prev`, to the arc of `next`.\n * Returns the attributes left for the caller to patch (all but `d`, set\n * here frame by frame), or nothing when there is no sweep: not an arc, the\n * same path, no arc to come from, or a chart without transitions.\n */\nexport function sweep(el: Element, prev: VNode, next: VNode): Attrs | undefined {\n const { arc, attrs } = next\n if (!arc || prev.attrs.d === attrs.d) return\n // An interrupted sweep continues from where the arc is now.\n const origin = stop(el) ?? prev.arc\n // Zero in a chart without transitions (static, resizing, reduced motion).\n const duration = Number.parseFloat(getComputedStyle(el).transitionDuration) * 1000\n if (!origin || !(duration > 0)) return\n tween(\n el,\n origin,\n arc,\n duration,\n ([innerRadius, outerRadius, startAngle, endAngle, padAngle, cornerRadius]) =>\n arcPathStable({\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n padAngle,\n cornerRadius,\n } as ArcOptions),\n String(attrs.d),\n )\n return { ...attrs, d: prev.attrs.d as string }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,SAAgB,QAAQ,MAAc,KAAwB;CAC5D,MAAM,OAAOA,cAAAA,EAAE,QAAQ;EAAE,OAAO;EAAM,GAAGC,YAAAA,cAAc,GAAG;CAAE,CAAC;CAC7D,KAAK,MAAM;EACT,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI,YAAY;EAChB,IAAI,gBAAgB;CACtB;CACA,OAAO;AACT;;;;;;;AAQA,SAAgB,MAAM,IAAa,MAAa,MAAgC;CAC9E,MAAM,EAAE,KAAK,UAAU;CACvB,IAAI,CAAC,OAAO,KAAK,MAAM,MAAM,MAAM,GAAG;CAEtC,MAAM,SAASC,cAAAA,KAAK,EAAE,KAAK,KAAK;CAEhC,MAAM,WAAW,OAAO,WAAW,iBAAiB,EAAE,CAAC,CAAC,kBAAkB,IAAI;CAC9E,IAAI,CAAC,UAAU,EAAE,WAAW,IAAI;CAChC,cAAA,MACE,IACA,QACA,KACA,WACC,CAAC,aAAa,aAAa,YAAY,UAAU,UAAU,kBAC1DD,YAAAA,cAAc;EACZ;EACA;EACA;EACA;EACA;EACA;CACF,CAAe,GACjB,OAAO,MAAM,CAAC,CAChB;CACA,OAAO;EAAE,GAAG;EAAO,GAAG,KAAK,MAAM;CAAY;AAC/C"}
|
package/dist/value-labels.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as labelsStep, j as valueLabels, k as ValueLabelOptions } from "./chart-
|
|
1
|
+
import { A as labelsStep, j as valueLabels, k as ValueLabelOptions } from "./chart-D7ooEFnk.cjs";
|
|
2
2
|
export { type ValueLabelOptions, labelsStep, valueLabels };
|
package/dist/value-labels.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as labelsStep, j as valueLabels, k as ValueLabelOptions } from "./chart-
|
|
1
|
+
import { A as labelsStep, j as valueLabels, k as ValueLabelOptions } from "./chart-DyN7bcx8.js";
|
|
2
2
|
export { type ValueLabelOptions, labelsStep, valueLabels };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tabler/charts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Zero-dependency SVG charts styled with CSS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"charts",
|
|
@@ -155,6 +155,16 @@
|
|
|
155
155
|
"default": "./dist/sankey.cjs"
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
|
+
"./parliament": {
|
|
159
|
+
"import": {
|
|
160
|
+
"types": "./dist/parliament.d.ts",
|
|
161
|
+
"default": "./dist/parliament.js"
|
|
162
|
+
},
|
|
163
|
+
"require": {
|
|
164
|
+
"types": "./dist/parliament.d.cts",
|
|
165
|
+
"default": "./dist/parliament.cjs"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
158
168
|
"./export": {
|
|
159
169
|
"import": {
|
|
160
170
|
"types": "./dist/export.d.ts",
|