@elaraai/east-ui 0.0.1-beta.16 → 0.0.1-beta.18
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/dist/src/charts/area/index.d.ts +91 -2
- package/dist/src/charts/area/index.d.ts.map +1 -1
- package/dist/src/charts/area/index.js +255 -34
- package/dist/src/charts/area/index.js.map +1 -1
- package/dist/src/charts/area/types.d.ts +1344 -16
- package/dist/src/charts/area/types.d.ts.map +1 -1
- package/dist/src/charts/area/types.js +76 -1
- package/dist/src/charts/area/types.js.map +1 -1
- package/dist/src/charts/bar/index.d.ts +1 -1
- package/dist/src/charts/bar/index.d.ts.map +1 -1
- package/dist/src/charts/bar/index.js +62 -33
- package/dist/src/charts/bar/index.js.map +1 -1
- package/dist/src/charts/bar/types.d.ts +391 -16
- package/dist/src/charts/bar/types.d.ts.map +1 -1
- package/dist/src/charts/bar/types.js +6 -1
- package/dist/src/charts/bar/types.js.map +1 -1
- package/dist/src/charts/composed/index.d.ts +103 -0
- package/dist/src/charts/composed/index.d.ts.map +1 -0
- package/dist/src/charts/composed/index.js +300 -0
- package/dist/src/charts/composed/index.js.map +1 -0
- package/dist/src/charts/composed/types.d.ts +1183 -0
- package/dist/src/charts/composed/types.d.ts.map +1 -0
- package/dist/src/charts/composed/types.js +87 -0
- package/dist/src/charts/composed/types.js.map +1 -0
- package/dist/src/charts/index.d.ts +4488 -847
- package/dist/src/charts/index.d.ts.map +1 -1
- package/dist/src/charts/index.js +308 -55
- package/dist/src/charts/index.js.map +1 -1
- package/dist/src/charts/line/index.d.ts +1 -1
- package/dist/src/charts/line/index.d.ts.map +1 -1
- package/dist/src/charts/line/index.js +62 -33
- package/dist/src/charts/line/index.js.map +1 -1
- package/dist/src/charts/line/types.d.ts +395 -16
- package/dist/src/charts/line/types.d.ts.map +1 -1
- package/dist/src/charts/line/types.js +7 -1
- package/dist/src/charts/line/types.js.map +1 -1
- package/dist/src/charts/pie/index.d.ts.map +1 -1
- package/dist/src/charts/pie/index.js +8 -3
- package/dist/src/charts/pie/index.js.map +1 -1
- package/dist/src/charts/pie/types.d.ts +4 -4
- package/dist/src/charts/pie/types.d.ts.map +1 -1
- package/dist/src/charts/pie/types.js.map +1 -1
- package/dist/src/charts/radar/index.d.ts.map +1 -1
- package/dist/src/charts/radar/index.js +11 -4
- package/dist/src/charts/radar/index.js.map +1 -1
- package/dist/src/charts/radar/types.d.ts +4 -0
- package/dist/src/charts/radar/types.d.ts.map +1 -1
- package/dist/src/charts/scatter/index.d.ts +1 -1
- package/dist/src/charts/scatter/index.d.ts.map +1 -1
- package/dist/src/charts/scatter/index.js +55 -20
- package/dist/src/charts/scatter/index.js.map +1 -1
- package/dist/src/charts/scatter/types.d.ts +386 -24
- package/dist/src/charts/scatter/types.d.ts.map +1 -1
- package/dist/src/charts/scatter/types.js +5 -1
- package/dist/src/charts/scatter/types.js.map +1 -1
- package/dist/src/charts/types.d.ts +625 -4
- package/dist/src/charts/types.d.ts.map +1 -1
- package/dist/src/charts/types.js +406 -1
- package/dist/src/charts/types.js.map +1 -1
- package/dist/src/collections/gantt/index.d.ts +1103 -24773
- package/dist/src/collections/gantt/index.d.ts.map +1 -1
- package/dist/src/collections/planner/index.d.ts +5 -9473
- package/dist/src/collections/planner/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.d.ts +626 -19562
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/component.d.ts +3850 -709
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +4 -1
- package/dist/src/component.js.map +1 -1
- package/dist/src/container/card/index.d.ts +9 -28415
- package/dist/src/container/card/index.d.ts.map +1 -1
- package/dist/src/container/card/index.js.map +1 -1
- package/dist/src/disclosure/accordion/index.d.ts +4 -18908
- package/dist/src/disclosure/accordion/index.d.ts.map +1 -1
- package/dist/src/disclosure/accordion/index.js.map +1 -1
- package/dist/src/disclosure/carousel/index.d.ts +5 -9473
- package/dist/src/disclosure/carousel/index.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/index.js.map +1 -1
- package/dist/src/disclosure/tabs/index.d.ts +25 -18929
- package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +5 -9601
- package/dist/src/layout/box/index.d.ts.map +1 -1
- package/dist/src/layout/box/index.js.map +1 -1
- package/dist/src/layout/flex/index.d.ts +5 -9591
- package/dist/src/layout/flex/index.d.ts.map +1 -1
- package/dist/src/layout/flex/index.js.map +1 -1
- package/dist/src/layout/grid/index.d.ts +7 -19043
- package/dist/src/layout/grid/index.d.ts.map +1 -1
- package/dist/src/layout/grid/index.js.map +1 -1
- package/dist/src/layout/splitter/index.d.ts +7 -18949
- package/dist/src/layout/splitter/index.d.ts.map +1 -1
- package/dist/src/layout/splitter/index.js.map +1 -1
- package/dist/src/layout/stack/index.d.ts +5 -9587
- package/dist/src/layout/stack/index.d.ts.map +1 -1
- package/dist/src/layout/stack/index.js.map +1 -1
- package/dist/src/overlays/action-bar/index.d.ts +5 -25
- package/dist/src/overlays/action-bar/index.d.ts.map +1 -1
- package/dist/src/overlays/action-bar/index.js.map +1 -1
- package/dist/src/overlays/dialog/index.d.ts +97 -38115
- package/dist/src/overlays/dialog/index.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.js.map +1 -1
- package/dist/src/overlays/drawer/index.d.ts +97 -38013
- package/dist/src/overlays/drawer/index.d.ts.map +1 -1
- package/dist/src/overlays/drawer/index.js.map +1 -1
- package/dist/src/overlays/hover-card/index.d.ts +7 -18961
- package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.js.map +1 -1
- package/dist/src/overlays/menu/index.d.ts +7 -9499
- package/dist/src/overlays/menu/index.d.ts.map +1 -1
- package/dist/src/overlays/menu/index.js.map +1 -1
- package/dist/src/overlays/popover/index.d.ts +7 -18959
- package/dist/src/overlays/popover/index.d.ts.map +1 -1
- package/dist/src/overlays/popover/index.js.map +1 -1
- package/dist/src/overlays/toggle-tip/index.d.ts +5 -9491
- package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/index.js.map +1 -1
- package/dist/src/overlays/tooltip/index.d.ts +5 -9483
- package/dist/src/overlays/tooltip/index.d.ts.map +1 -1
- package/dist/src/overlays/tooltip/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ArrayType, DictType, East, Expr, LiteralValueType, none, some, StringType, StructType, variant, IntegerType, FloatType, } from "@elaraai/east";
|
|
6
6
|
import { UIComponentType } from "../../component.js";
|
|
7
|
-
import { CurveType, MultiSeriesDataType } from "../types.js";
|
|
7
|
+
import { ChartBrushType, CurveType, MultiSeriesDataType, ReferenceLineType, ReferenceDotType, ReferenceAreaType, YAxisIdType, axisStyleToType, gridStyleToType, tooltipStyleToType, legendStyleToType, marginStyleToType, referenceLineStyleToType, referenceDotStyleToType, referenceAreaStyleToType, } from "../types.js";
|
|
8
8
|
// Re-export types
|
|
9
9
|
export { LineChartType, LineChartSeriesType, } from "./types.js";
|
|
10
10
|
// ============================================================================
|
|
@@ -128,53 +128,82 @@ export function createLineChartMulti(data, style) {
|
|
|
128
128
|
// Shared Chart Builder
|
|
129
129
|
// ============================================================================
|
|
130
130
|
function buildLineChart(data_mapped, dataSeries_mapped, seriesEntries, style, valueKey) {
|
|
131
|
-
const series_mapped = seriesEntries.map(([name, config]) =>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
131
|
+
const series_mapped = seriesEntries.map(([name, config]) => {
|
|
132
|
+
// Convert yAxisId string literal to variant
|
|
133
|
+
const yAxisIdValue = config?.yAxisId !== undefined
|
|
134
|
+
? (typeof config.yAxisId === "string"
|
|
135
|
+
? some(East.value(variant(config.yAxisId, null), YAxisIdType))
|
|
136
|
+
: some(config.yAxisId))
|
|
137
|
+
: none;
|
|
138
|
+
return {
|
|
139
|
+
name: name,
|
|
140
|
+
color: config?.color !== undefined ? some(config.color) : none,
|
|
141
|
+
stackId: none,
|
|
142
|
+
label: config?.label !== undefined ? some(config.label) : none,
|
|
143
|
+
stroke: config?.stroke !== undefined ? some(config.stroke) : none,
|
|
144
|
+
strokeWidth: config?.strokeWidth !== undefined ? some(config.strokeWidth) : none,
|
|
145
|
+
strokeDasharray: config?.strokeDasharray !== undefined ? some(config.strokeDasharray) : none,
|
|
146
|
+
showDots: config?.showDots !== undefined ? some(config.showDots) : none,
|
|
147
|
+
showLine: config?.showLine !== undefined ? some(config.showLine) : none,
|
|
148
|
+
yAxisId: yAxisIdValue,
|
|
149
|
+
};
|
|
150
|
+
});
|
|
142
151
|
const curveValue = style?.curveType
|
|
143
152
|
? (typeof style.curveType === "string"
|
|
144
153
|
? East.value(variant(style.curveType, null), CurveType)
|
|
145
154
|
: style.curveType)
|
|
146
155
|
: undefined;
|
|
147
|
-
//
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
// Convert axis styles to types
|
|
157
|
+
const xAxisExpr = axisStyleToType(style?.xAxis);
|
|
158
|
+
const yAxisExpr = axisStyleToType(style?.yAxis);
|
|
159
|
+
const yAxis2Expr = axisStyleToType(style?.yAxis2);
|
|
160
|
+
// Convert other style properties
|
|
161
|
+
const gridExpr = gridStyleToType(style?.grid);
|
|
162
|
+
const tooltipExpr = tooltipStyleToType(style?.tooltip);
|
|
163
|
+
const legendExpr = legendStyleToType(style?.legend);
|
|
164
|
+
const marginExpr = marginStyleToType(style?.margin);
|
|
165
|
+
// Build brush value
|
|
166
|
+
const brushValue = style?.brush
|
|
167
|
+
? variant("some", East.value({
|
|
168
|
+
dataKey: style.brush.dataKey !== undefined ? some(style.brush.dataKey) : none,
|
|
169
|
+
height: style.brush.height !== undefined ? some(style.brush.height) : none,
|
|
170
|
+
travellerWidth: style.brush.travellerWidth !== undefined ? some(style.brush.travellerWidth) : none,
|
|
171
|
+
startIndex: style.brush.startIndex !== undefined ? some(style.brush.startIndex) : none,
|
|
172
|
+
endIndex: style.brush.endIndex !== undefined ? some(style.brush.endIndex) : none,
|
|
173
|
+
stroke: style.brush.stroke !== undefined ? some(style.brush.stroke) : none,
|
|
174
|
+
fill: style.brush.fill !== undefined ? some(style.brush.fill) : none,
|
|
175
|
+
}, ChartBrushType))
|
|
176
|
+
: variant("none", null);
|
|
177
|
+
// Convert reference annotations
|
|
178
|
+
const referenceLinesExpr = style?.referenceLines?.length
|
|
179
|
+
? variant("some", East.value(style.referenceLines.map(referenceLineStyleToType), ArrayType(ReferenceLineType)))
|
|
180
|
+
: variant("none", null);
|
|
181
|
+
const referenceDotsExpr = style?.referenceDots?.length
|
|
182
|
+
? variant("some", East.value(style.referenceDots.map(referenceDotStyleToType), ArrayType(ReferenceDotType)))
|
|
183
|
+
: variant("none", null);
|
|
184
|
+
const referenceAreasExpr = style?.referenceAreas?.length
|
|
185
|
+
? variant("some", East.value(style.referenceAreas.map(referenceAreaStyleToType), ArrayType(ReferenceAreaType)))
|
|
162
186
|
: variant("none", null);
|
|
163
187
|
return East.value(variant("LineChart", {
|
|
164
188
|
data: data_mapped,
|
|
165
189
|
dataSeries: dataSeries_mapped ? variant("some", dataSeries_mapped) : variant("none", null),
|
|
166
190
|
valueKey: valueKey !== undefined ? variant("some", valueKey) : variant("none", null),
|
|
167
191
|
series: series_mapped,
|
|
168
|
-
xAxis:
|
|
169
|
-
yAxis:
|
|
192
|
+
xAxis: xAxisExpr ? variant("some", xAxisExpr) : variant("none", null),
|
|
193
|
+
yAxis: yAxisExpr ? variant("some", yAxisExpr) : variant("none", null),
|
|
194
|
+
yAxis2: yAxis2Expr ? variant("some", yAxis2Expr) : variant("none", null),
|
|
170
195
|
curveType: curveValue ? variant("some", curveValue) : variant("none", null),
|
|
171
|
-
grid:
|
|
172
|
-
tooltip:
|
|
173
|
-
legend:
|
|
174
|
-
margin:
|
|
196
|
+
grid: gridExpr ? variant("some", gridExpr) : variant("none", null),
|
|
197
|
+
tooltip: tooltipExpr ? variant("some", tooltipExpr) : variant("none", null),
|
|
198
|
+
legend: legendExpr ? variant("some", legendExpr) : variant("none", null),
|
|
199
|
+
margin: marginExpr ? variant("some", marginExpr) : variant("none", null),
|
|
200
|
+
brush: brushValue,
|
|
175
201
|
showDots: style?.showDots !== undefined ? variant("some", style.showDots) : variant("none", null),
|
|
176
202
|
strokeWidth: style?.strokeWidth !== undefined ? variant("some", style.strokeWidth) : variant("none", null),
|
|
177
203
|
connectNulls: style?.connectNulls !== undefined ? variant("some", style.connectNulls) : variant("none", null),
|
|
204
|
+
referenceLines: referenceLinesExpr,
|
|
205
|
+
referenceDots: referenceDotsExpr,
|
|
206
|
+
referenceAreas: referenceAreasExpr,
|
|
178
207
|
}), UIComponentType);
|
|
179
208
|
}
|
|
180
209
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/charts/line/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAIH,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,UAAU,EACV,OAAO,EACP,WAAW,EACX,SAAS,GACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/charts/line/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAIH,SAAS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,iBAAiB;QAChC,cAAc,EAAE,kBAAkB;KACrC,CAAC,EAAE,eAAe,CAAC,CAAC;AACzB,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
import { type SubtypeExprOrValue, OptionType, StructType, ArrayType, BooleanType, IntegerType, StringType, DictType } from "@elaraai/east";
|
|
6
|
-
import {
|
|
6
|
+
import { CurveType, YAxisIdType, type CurveLiteral, type YAxisIdLiteral, type BaseChartStyle, type ChartBrushStyleBase, type ChartAxisStyle, type ReferenceLineStyle, type ReferenceDotStyle, type ReferenceAreaStyle } from "../types.js";
|
|
7
7
|
/**
|
|
8
8
|
* Series configuration for Line charts.
|
|
9
9
|
*
|
|
@@ -31,6 +31,10 @@ export declare const LineChartSeriesType: StructType<{
|
|
|
31
31
|
strokeDasharray: OptionType<StringType>;
|
|
32
32
|
showDots: OptionType<BooleanType>;
|
|
33
33
|
showLine: OptionType<BooleanType>;
|
|
34
|
+
yAxisId: OptionType<import("@elaraai/east").VariantType<{
|
|
35
|
+
left: import("@elaraai/east").NullType;
|
|
36
|
+
right: import("@elaraai/east").NullType;
|
|
37
|
+
}>>;
|
|
34
38
|
}>;
|
|
35
39
|
/**
|
|
36
40
|
* Type representing line chart series configuration.
|
|
@@ -92,6 +96,10 @@ export declare const LineChartType: StructType<{
|
|
|
92
96
|
strokeDasharray: OptionType<StringType>;
|
|
93
97
|
showDots: OptionType<BooleanType>;
|
|
94
98
|
showLine: OptionType<BooleanType>;
|
|
99
|
+
yAxisId: OptionType<import("@elaraai/east").VariantType<{
|
|
100
|
+
left: import("@elaraai/east").NullType;
|
|
101
|
+
right: import("@elaraai/east").NullType;
|
|
102
|
+
}>>;
|
|
95
103
|
}>>;
|
|
96
104
|
xAxis: OptionType<StructType<{
|
|
97
105
|
dataKey: OptionType<StringType>;
|
|
@@ -473,6 +481,196 @@ export declare const LineChartType: StructType<{
|
|
|
473
481
|
}>>;
|
|
474
482
|
axisId: OptionType<StringType>;
|
|
475
483
|
}>>;
|
|
484
|
+
yAxis2: OptionType<StructType<{
|
|
485
|
+
dataKey: OptionType<StringType>;
|
|
486
|
+
label: OptionType<StringType>;
|
|
487
|
+
tickFormat: OptionType<import("@elaraai/east").VariantType<{
|
|
488
|
+
number: StructType<{
|
|
489
|
+
minimumFractionDigits: OptionType<IntegerType>;
|
|
490
|
+
maximumFractionDigits: OptionType<IntegerType>;
|
|
491
|
+
signDisplay: OptionType<import("@elaraai/east").VariantType<{
|
|
492
|
+
auto: import("@elaraai/east").NullType;
|
|
493
|
+
never: import("@elaraai/east").NullType;
|
|
494
|
+
always: import("@elaraai/east").NullType;
|
|
495
|
+
exceptZero: import("@elaraai/east").NullType;
|
|
496
|
+
}>>;
|
|
497
|
+
}>;
|
|
498
|
+
currency: StructType<{
|
|
499
|
+
currency: import("@elaraai/east").VariantType<{
|
|
500
|
+
USD: import("@elaraai/east").NullType;
|
|
501
|
+
EUR: import("@elaraai/east").NullType;
|
|
502
|
+
GBP: import("@elaraai/east").NullType;
|
|
503
|
+
JPY: import("@elaraai/east").NullType;
|
|
504
|
+
CHF: import("@elaraai/east").NullType;
|
|
505
|
+
CAD: import("@elaraai/east").NullType;
|
|
506
|
+
AUD: import("@elaraai/east").NullType;
|
|
507
|
+
NZD: import("@elaraai/east").NullType;
|
|
508
|
+
CNY: import("@elaraai/east").NullType;
|
|
509
|
+
HKD: import("@elaraai/east").NullType;
|
|
510
|
+
SGD: import("@elaraai/east").NullType;
|
|
511
|
+
KRW: import("@elaraai/east").NullType;
|
|
512
|
+
INR: import("@elaraai/east").NullType;
|
|
513
|
+
TWD: import("@elaraai/east").NullType;
|
|
514
|
+
THB: import("@elaraai/east").NullType;
|
|
515
|
+
MYR: import("@elaraai/east").NullType;
|
|
516
|
+
IDR: import("@elaraai/east").NullType;
|
|
517
|
+
PHP: import("@elaraai/east").NullType;
|
|
518
|
+
VND: import("@elaraai/east").NullType;
|
|
519
|
+
SEK: import("@elaraai/east").NullType;
|
|
520
|
+
NOK: import("@elaraai/east").NullType;
|
|
521
|
+
DKK: import("@elaraai/east").NullType;
|
|
522
|
+
PLN: import("@elaraai/east").NullType;
|
|
523
|
+
CZK: import("@elaraai/east").NullType;
|
|
524
|
+
HUF: import("@elaraai/east").NullType;
|
|
525
|
+
RUB: import("@elaraai/east").NullType;
|
|
526
|
+
UAH: import("@elaraai/east").NullType;
|
|
527
|
+
RON: import("@elaraai/east").NullType;
|
|
528
|
+
MXN: import("@elaraai/east").NullType;
|
|
529
|
+
BRL: import("@elaraai/east").NullType;
|
|
530
|
+
ARS: import("@elaraai/east").NullType;
|
|
531
|
+
CLP: import("@elaraai/east").NullType;
|
|
532
|
+
COP: import("@elaraai/east").NullType;
|
|
533
|
+
PEN: import("@elaraai/east").NullType;
|
|
534
|
+
AED: import("@elaraai/east").NullType;
|
|
535
|
+
SAR: import("@elaraai/east").NullType;
|
|
536
|
+
ILS: import("@elaraai/east").NullType;
|
|
537
|
+
ZAR: import("@elaraai/east").NullType;
|
|
538
|
+
TRY: import("@elaraai/east").NullType;
|
|
539
|
+
EGP: import("@elaraai/east").NullType;
|
|
540
|
+
NGN: import("@elaraai/east").NullType;
|
|
541
|
+
KES: import("@elaraai/east").NullType;
|
|
542
|
+
}>;
|
|
543
|
+
display: OptionType<import("@elaraai/east").VariantType<{
|
|
544
|
+
code: import("@elaraai/east").NullType;
|
|
545
|
+
symbol: import("@elaraai/east").NullType;
|
|
546
|
+
narrowSymbol: import("@elaraai/east").NullType;
|
|
547
|
+
name: import("@elaraai/east").NullType;
|
|
548
|
+
}>>;
|
|
549
|
+
minimumFractionDigits: OptionType<IntegerType>;
|
|
550
|
+
maximumFractionDigits: OptionType<IntegerType>;
|
|
551
|
+
}>;
|
|
552
|
+
percent: StructType<{
|
|
553
|
+
minimumFractionDigits: OptionType<IntegerType>;
|
|
554
|
+
maximumFractionDigits: OptionType<IntegerType>;
|
|
555
|
+
signDisplay: OptionType<import("@elaraai/east").VariantType<{
|
|
556
|
+
auto: import("@elaraai/east").NullType;
|
|
557
|
+
never: import("@elaraai/east").NullType;
|
|
558
|
+
always: import("@elaraai/east").NullType;
|
|
559
|
+
exceptZero: import("@elaraai/east").NullType;
|
|
560
|
+
}>>;
|
|
561
|
+
}>;
|
|
562
|
+
compact: StructType<{
|
|
563
|
+
display: OptionType<import("@elaraai/east").VariantType<{
|
|
564
|
+
short: import("@elaraai/east").NullType;
|
|
565
|
+
long: import("@elaraai/east").NullType;
|
|
566
|
+
}>>;
|
|
567
|
+
}>;
|
|
568
|
+
unit: StructType<{
|
|
569
|
+
unit: import("@elaraai/east").VariantType<{
|
|
570
|
+
bit: import("@elaraai/east").NullType;
|
|
571
|
+
byte: import("@elaraai/east").NullType;
|
|
572
|
+
kilobit: import("@elaraai/east").NullType;
|
|
573
|
+
kilobyte: import("@elaraai/east").NullType;
|
|
574
|
+
megabit: import("@elaraai/east").NullType;
|
|
575
|
+
megabyte: import("@elaraai/east").NullType;
|
|
576
|
+
gigabit: import("@elaraai/east").NullType;
|
|
577
|
+
gigabyte: import("@elaraai/east").NullType;
|
|
578
|
+
terabit: import("@elaraai/east").NullType;
|
|
579
|
+
terabyte: import("@elaraai/east").NullType;
|
|
580
|
+
petabyte: import("@elaraai/east").NullType;
|
|
581
|
+
nanosecond: import("@elaraai/east").NullType;
|
|
582
|
+
microsecond: import("@elaraai/east").NullType;
|
|
583
|
+
millisecond: import("@elaraai/east").NullType;
|
|
584
|
+
second: import("@elaraai/east").NullType;
|
|
585
|
+
minute: import("@elaraai/east").NullType;
|
|
586
|
+
hour: import("@elaraai/east").NullType;
|
|
587
|
+
day: import("@elaraai/east").NullType;
|
|
588
|
+
week: import("@elaraai/east").NullType;
|
|
589
|
+
month: import("@elaraai/east").NullType;
|
|
590
|
+
year: import("@elaraai/east").NullType;
|
|
591
|
+
millimeter: import("@elaraai/east").NullType;
|
|
592
|
+
centimeter: import("@elaraai/east").NullType;
|
|
593
|
+
meter: import("@elaraai/east").NullType;
|
|
594
|
+
kilometer: import("@elaraai/east").NullType;
|
|
595
|
+
inch: import("@elaraai/east").NullType;
|
|
596
|
+
foot: import("@elaraai/east").NullType;
|
|
597
|
+
yard: import("@elaraai/east").NullType;
|
|
598
|
+
mile: import("@elaraai/east").NullType;
|
|
599
|
+
gram: import("@elaraai/east").NullType;
|
|
600
|
+
kilogram: import("@elaraai/east").NullType;
|
|
601
|
+
milligram: import("@elaraai/east").NullType;
|
|
602
|
+
ounce: import("@elaraai/east").NullType;
|
|
603
|
+
pound: import("@elaraai/east").NullType;
|
|
604
|
+
stone: import("@elaraai/east").NullType;
|
|
605
|
+
celsius: import("@elaraai/east").NullType;
|
|
606
|
+
fahrenheit: import("@elaraai/east").NullType;
|
|
607
|
+
milliliter: import("@elaraai/east").NullType;
|
|
608
|
+
liter: import("@elaraai/east").NullType;
|
|
609
|
+
gallon: import("@elaraai/east").NullType;
|
|
610
|
+
fluidOunce: import("@elaraai/east").NullType;
|
|
611
|
+
acre: import("@elaraai/east").NullType;
|
|
612
|
+
hectare: import("@elaraai/east").NullType;
|
|
613
|
+
meterPerSecond: import("@elaraai/east").NullType;
|
|
614
|
+
kilometerPerHour: import("@elaraai/east").NullType;
|
|
615
|
+
milePerHour: import("@elaraai/east").NullType;
|
|
616
|
+
percent: import("@elaraai/east").NullType;
|
|
617
|
+
degree: import("@elaraai/east").NullType;
|
|
618
|
+
}>;
|
|
619
|
+
display: OptionType<import("@elaraai/east").VariantType<{
|
|
620
|
+
short: import("@elaraai/east").NullType;
|
|
621
|
+
narrow: import("@elaraai/east").NullType;
|
|
622
|
+
long: import("@elaraai/east").NullType;
|
|
623
|
+
}>>;
|
|
624
|
+
}>;
|
|
625
|
+
scientific: import("@elaraai/east").NullType;
|
|
626
|
+
engineering: import("@elaraai/east").NullType;
|
|
627
|
+
date: StructType<{
|
|
628
|
+
style: OptionType<import("@elaraai/east").VariantType<{
|
|
629
|
+
full: import("@elaraai/east").NullType;
|
|
630
|
+
long: import("@elaraai/east").NullType;
|
|
631
|
+
medium: import("@elaraai/east").NullType;
|
|
632
|
+
short: import("@elaraai/east").NullType;
|
|
633
|
+
}>>;
|
|
634
|
+
}>;
|
|
635
|
+
time: StructType<{
|
|
636
|
+
style: OptionType<import("@elaraai/east").VariantType<{
|
|
637
|
+
full: import("@elaraai/east").NullType;
|
|
638
|
+
long: import("@elaraai/east").NullType;
|
|
639
|
+
medium: import("@elaraai/east").NullType;
|
|
640
|
+
short: import("@elaraai/east").NullType;
|
|
641
|
+
}>>;
|
|
642
|
+
hour12: OptionType<BooleanType>;
|
|
643
|
+
}>;
|
|
644
|
+
datetime: StructType<{
|
|
645
|
+
dateStyle: OptionType<import("@elaraai/east").VariantType<{
|
|
646
|
+
full: import("@elaraai/east").NullType;
|
|
647
|
+
long: import("@elaraai/east").NullType;
|
|
648
|
+
medium: import("@elaraai/east").NullType;
|
|
649
|
+
short: import("@elaraai/east").NullType;
|
|
650
|
+
}>>;
|
|
651
|
+
timeStyle: OptionType<import("@elaraai/east").VariantType<{
|
|
652
|
+
full: import("@elaraai/east").NullType;
|
|
653
|
+
long: import("@elaraai/east").NullType;
|
|
654
|
+
medium: import("@elaraai/east").NullType;
|
|
655
|
+
short: import("@elaraai/east").NullType;
|
|
656
|
+
}>>;
|
|
657
|
+
hour12: OptionType<BooleanType>;
|
|
658
|
+
}>;
|
|
659
|
+
}>>;
|
|
660
|
+
domain: OptionType<ArrayType<import("@elaraai/east").FloatType>>;
|
|
661
|
+
hide: OptionType<BooleanType>;
|
|
662
|
+
axisLine: OptionType<BooleanType>;
|
|
663
|
+
tickLine: OptionType<BooleanType>;
|
|
664
|
+
tickMargin: OptionType<IntegerType>;
|
|
665
|
+
strokeColor: OptionType<StringType>;
|
|
666
|
+
orientation: OptionType<import("@elaraai/east").VariantType<{
|
|
667
|
+
top: import("@elaraai/east").NullType;
|
|
668
|
+
bottom: import("@elaraai/east").NullType;
|
|
669
|
+
left: import("@elaraai/east").NullType;
|
|
670
|
+
right: import("@elaraai/east").NullType;
|
|
671
|
+
}>>;
|
|
672
|
+
axisId: OptionType<StringType>;
|
|
673
|
+
}>>;
|
|
476
674
|
curveType: OptionType<import("@elaraai/east").VariantType<{
|
|
477
675
|
linear: import("@elaraai/east").NullType;
|
|
478
676
|
natural: import("@elaraai/east").NullType;
|
|
@@ -520,9 +718,175 @@ export declare const LineChartType: StructType<{
|
|
|
520
718
|
bottom: OptionType<IntegerType>;
|
|
521
719
|
left: OptionType<IntegerType>;
|
|
522
720
|
}>>;
|
|
721
|
+
brush: OptionType<StructType<{
|
|
722
|
+
dataKey: OptionType<StringType>;
|
|
723
|
+
height: OptionType<IntegerType>;
|
|
724
|
+
travellerWidth: OptionType<IntegerType>;
|
|
725
|
+
startIndex: OptionType<IntegerType>;
|
|
726
|
+
endIndex: OptionType<IntegerType>;
|
|
727
|
+
stroke: OptionType<StringType>;
|
|
728
|
+
fill: OptionType<StringType>;
|
|
729
|
+
}>>;
|
|
523
730
|
showDots: OptionType<BooleanType>;
|
|
524
731
|
strokeWidth: OptionType<IntegerType>;
|
|
525
732
|
connectNulls: OptionType<BooleanType>;
|
|
733
|
+
referenceLines: OptionType<ArrayType<StructType<{
|
|
734
|
+
x: OptionType<import("@elaraai/east").VariantType<{
|
|
735
|
+
Null: import("@elaraai/east").NullType;
|
|
736
|
+
Boolean: BooleanType;
|
|
737
|
+
Integer: IntegerType;
|
|
738
|
+
Float: import("@elaraai/east").FloatType;
|
|
739
|
+
String: StringType;
|
|
740
|
+
DateTime: import("@elaraai/east").DateTimeType;
|
|
741
|
+
Blob: import("@elaraai/east").BlobType;
|
|
742
|
+
}>>;
|
|
743
|
+
y: OptionType<import("@elaraai/east").VariantType<{
|
|
744
|
+
Null: import("@elaraai/east").NullType;
|
|
745
|
+
Boolean: BooleanType;
|
|
746
|
+
Integer: IntegerType;
|
|
747
|
+
Float: import("@elaraai/east").FloatType;
|
|
748
|
+
String: StringType;
|
|
749
|
+
DateTime: import("@elaraai/east").DateTimeType;
|
|
750
|
+
Blob: import("@elaraai/east").BlobType;
|
|
751
|
+
}>>;
|
|
752
|
+
stroke: OptionType<StringType>;
|
|
753
|
+
strokeWidth: OptionType<IntegerType>;
|
|
754
|
+
strokeDasharray: OptionType<StringType>;
|
|
755
|
+
label: OptionType<StringType>;
|
|
756
|
+
labelPosition: OptionType<import("@elaraai/east").VariantType<{
|
|
757
|
+
top: import("@elaraai/east").NullType;
|
|
758
|
+
bottom: import("@elaraai/east").NullType;
|
|
759
|
+
left: import("@elaraai/east").NullType;
|
|
760
|
+
right: import("@elaraai/east").NullType;
|
|
761
|
+
center: import("@elaraai/east").NullType;
|
|
762
|
+
insideTop: import("@elaraai/east").NullType;
|
|
763
|
+
insideBottom: import("@elaraai/east").NullType;
|
|
764
|
+
insideLeft: import("@elaraai/east").NullType;
|
|
765
|
+
insideRight: import("@elaraai/east").NullType;
|
|
766
|
+
insideTopLeft: import("@elaraai/east").NullType;
|
|
767
|
+
insideTopRight: import("@elaraai/east").NullType;
|
|
768
|
+
insideBottomLeft: import("@elaraai/east").NullType;
|
|
769
|
+
insideBottomRight: import("@elaraai/east").NullType;
|
|
770
|
+
}>>;
|
|
771
|
+
labelOffset: OptionType<IntegerType>;
|
|
772
|
+
ifOverflow: OptionType<import("@elaraai/east").VariantType<{
|
|
773
|
+
discard: import("@elaraai/east").NullType;
|
|
774
|
+
hidden: import("@elaraai/east").NullType;
|
|
775
|
+
visible: import("@elaraai/east").NullType;
|
|
776
|
+
extendDomain: import("@elaraai/east").NullType;
|
|
777
|
+
}>>;
|
|
778
|
+
}>>>;
|
|
779
|
+
referenceDots: OptionType<ArrayType<StructType<{
|
|
780
|
+
x: import("@elaraai/east").VariantType<{
|
|
781
|
+
Null: import("@elaraai/east").NullType;
|
|
782
|
+
Boolean: BooleanType;
|
|
783
|
+
Integer: IntegerType;
|
|
784
|
+
Float: import("@elaraai/east").FloatType;
|
|
785
|
+
String: StringType;
|
|
786
|
+
DateTime: import("@elaraai/east").DateTimeType;
|
|
787
|
+
Blob: import("@elaraai/east").BlobType;
|
|
788
|
+
}>;
|
|
789
|
+
y: import("@elaraai/east").VariantType<{
|
|
790
|
+
Null: import("@elaraai/east").NullType;
|
|
791
|
+
Boolean: BooleanType;
|
|
792
|
+
Integer: IntegerType;
|
|
793
|
+
Float: import("@elaraai/east").FloatType;
|
|
794
|
+
String: StringType;
|
|
795
|
+
DateTime: import("@elaraai/east").DateTimeType;
|
|
796
|
+
Blob: import("@elaraai/east").BlobType;
|
|
797
|
+
}>;
|
|
798
|
+
r: OptionType<IntegerType>;
|
|
799
|
+
fill: OptionType<StringType>;
|
|
800
|
+
stroke: OptionType<StringType>;
|
|
801
|
+
strokeWidth: OptionType<IntegerType>;
|
|
802
|
+
label: OptionType<StringType>;
|
|
803
|
+
labelPosition: OptionType<import("@elaraai/east").VariantType<{
|
|
804
|
+
top: import("@elaraai/east").NullType;
|
|
805
|
+
bottom: import("@elaraai/east").NullType;
|
|
806
|
+
left: import("@elaraai/east").NullType;
|
|
807
|
+
right: import("@elaraai/east").NullType;
|
|
808
|
+
center: import("@elaraai/east").NullType;
|
|
809
|
+
insideTop: import("@elaraai/east").NullType;
|
|
810
|
+
insideBottom: import("@elaraai/east").NullType;
|
|
811
|
+
insideLeft: import("@elaraai/east").NullType;
|
|
812
|
+
insideRight: import("@elaraai/east").NullType;
|
|
813
|
+
insideTopLeft: import("@elaraai/east").NullType;
|
|
814
|
+
insideTopRight: import("@elaraai/east").NullType;
|
|
815
|
+
insideBottomLeft: import("@elaraai/east").NullType;
|
|
816
|
+
insideBottomRight: import("@elaraai/east").NullType;
|
|
817
|
+
}>>;
|
|
818
|
+
labelOffset: OptionType<IntegerType>;
|
|
819
|
+
ifOverflow: OptionType<import("@elaraai/east").VariantType<{
|
|
820
|
+
discard: import("@elaraai/east").NullType;
|
|
821
|
+
hidden: import("@elaraai/east").NullType;
|
|
822
|
+
visible: import("@elaraai/east").NullType;
|
|
823
|
+
extendDomain: import("@elaraai/east").NullType;
|
|
824
|
+
}>>;
|
|
825
|
+
}>>>;
|
|
826
|
+
referenceAreas: OptionType<ArrayType<StructType<{
|
|
827
|
+
x1: OptionType<import("@elaraai/east").VariantType<{
|
|
828
|
+
Null: import("@elaraai/east").NullType;
|
|
829
|
+
Boolean: BooleanType;
|
|
830
|
+
Integer: IntegerType;
|
|
831
|
+
Float: import("@elaraai/east").FloatType;
|
|
832
|
+
String: StringType;
|
|
833
|
+
DateTime: import("@elaraai/east").DateTimeType;
|
|
834
|
+
Blob: import("@elaraai/east").BlobType;
|
|
835
|
+
}>>;
|
|
836
|
+
x2: OptionType<import("@elaraai/east").VariantType<{
|
|
837
|
+
Null: import("@elaraai/east").NullType;
|
|
838
|
+
Boolean: BooleanType;
|
|
839
|
+
Integer: IntegerType;
|
|
840
|
+
Float: import("@elaraai/east").FloatType;
|
|
841
|
+
String: StringType;
|
|
842
|
+
DateTime: import("@elaraai/east").DateTimeType;
|
|
843
|
+
Blob: import("@elaraai/east").BlobType;
|
|
844
|
+
}>>;
|
|
845
|
+
y1: OptionType<import("@elaraai/east").VariantType<{
|
|
846
|
+
Null: import("@elaraai/east").NullType;
|
|
847
|
+
Boolean: BooleanType;
|
|
848
|
+
Integer: IntegerType;
|
|
849
|
+
Float: import("@elaraai/east").FloatType;
|
|
850
|
+
String: StringType;
|
|
851
|
+
DateTime: import("@elaraai/east").DateTimeType;
|
|
852
|
+
Blob: import("@elaraai/east").BlobType;
|
|
853
|
+
}>>;
|
|
854
|
+
y2: OptionType<import("@elaraai/east").VariantType<{
|
|
855
|
+
Null: import("@elaraai/east").NullType;
|
|
856
|
+
Boolean: BooleanType;
|
|
857
|
+
Integer: IntegerType;
|
|
858
|
+
Float: import("@elaraai/east").FloatType;
|
|
859
|
+
String: StringType;
|
|
860
|
+
DateTime: import("@elaraai/east").DateTimeType;
|
|
861
|
+
Blob: import("@elaraai/east").BlobType;
|
|
862
|
+
}>>;
|
|
863
|
+
fill: OptionType<StringType>;
|
|
864
|
+
fillOpacity: OptionType<import("@elaraai/east").FloatType>;
|
|
865
|
+
stroke: OptionType<StringType>;
|
|
866
|
+
label: OptionType<StringType>;
|
|
867
|
+
labelPosition: OptionType<import("@elaraai/east").VariantType<{
|
|
868
|
+
top: import("@elaraai/east").NullType;
|
|
869
|
+
bottom: import("@elaraai/east").NullType;
|
|
870
|
+
left: import("@elaraai/east").NullType;
|
|
871
|
+
right: import("@elaraai/east").NullType;
|
|
872
|
+
center: import("@elaraai/east").NullType;
|
|
873
|
+
insideTop: import("@elaraai/east").NullType;
|
|
874
|
+
insideBottom: import("@elaraai/east").NullType;
|
|
875
|
+
insideLeft: import("@elaraai/east").NullType;
|
|
876
|
+
insideRight: import("@elaraai/east").NullType;
|
|
877
|
+
insideTopLeft: import("@elaraai/east").NullType;
|
|
878
|
+
insideTopRight: import("@elaraai/east").NullType;
|
|
879
|
+
insideBottomLeft: import("@elaraai/east").NullType;
|
|
880
|
+
insideBottomRight: import("@elaraai/east").NullType;
|
|
881
|
+
}>>;
|
|
882
|
+
labelOffset: OptionType<IntegerType>;
|
|
883
|
+
ifOverflow: OptionType<import("@elaraai/east").VariantType<{
|
|
884
|
+
discard: import("@elaraai/east").NullType;
|
|
885
|
+
hidden: import("@elaraai/east").NullType;
|
|
886
|
+
visible: import("@elaraai/east").NullType;
|
|
887
|
+
extendDomain: import("@elaraai/east").NullType;
|
|
888
|
+
}>>;
|
|
889
|
+
}>>>;
|
|
526
890
|
}>;
|
|
527
891
|
/**
|
|
528
892
|
* Type representing a line chart.
|
|
@@ -545,9 +909,13 @@ export type LineChartType = typeof LineChartType;
|
|
|
545
909
|
/**
|
|
546
910
|
* Base style options shared by Line and LineMulti charts.
|
|
547
911
|
*/
|
|
548
|
-
export interface LineChartStyleBase extends BaseChartStyle {
|
|
549
|
-
/**
|
|
550
|
-
|
|
912
|
+
export interface LineChartStyleBase<DataKey extends string = string> extends BaseChartStyle {
|
|
913
|
+
/** X-axis configuration */
|
|
914
|
+
xAxis?: ChartAxisStyle<DataKey>;
|
|
915
|
+
/** Y-axis configuration (primary, left side) */
|
|
916
|
+
yAxis?: ChartAxisStyle<DataKey>;
|
|
917
|
+
/** Secondary Y-axis configuration (right side) */
|
|
918
|
+
yAxis2?: ChartAxisStyle<DataKey>;
|
|
551
919
|
/** Line curve interpolation type */
|
|
552
920
|
curveType?: SubtypeExprOrValue<CurveType> | CurveLiteral;
|
|
553
921
|
/** Show dots at data points */
|
|
@@ -556,19 +924,30 @@ export interface LineChartStyleBase extends BaseChartStyle {
|
|
|
556
924
|
strokeWidth?: SubtypeExprOrValue<IntegerType>;
|
|
557
925
|
/** Connect line across null data points */
|
|
558
926
|
connectNulls?: SubtypeExprOrValue<BooleanType>;
|
|
559
|
-
/**
|
|
560
|
-
|
|
927
|
+
/** Reference lines (horizontal/vertical lines at specific values) */
|
|
928
|
+
referenceLines?: ReferenceLineStyle[];
|
|
929
|
+
/** Reference dots (markers at specific x,y coordinates) */
|
|
930
|
+
referenceDots?: ReferenceDotStyle[];
|
|
931
|
+
/** Reference areas (highlighted rectangular regions) */
|
|
932
|
+
referenceAreas?: ReferenceAreaStyle[];
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* Brush configuration for Line charts with type-safe dataKey.
|
|
936
|
+
*
|
|
937
|
+
* @typeParam DataKey - Union of field keys from the data struct
|
|
938
|
+
*/
|
|
939
|
+
export interface LineChartBrushStyle<DataKey extends string = string> extends ChartBrushStyleBase {
|
|
940
|
+
/** Data key for brush labels (defaults to xAxis dataKey) */
|
|
941
|
+
dataKey?: DataKey;
|
|
561
942
|
}
|
|
562
943
|
/**
|
|
563
944
|
* Style for Line charts (single array form).
|
|
564
945
|
*
|
|
565
946
|
* @typeParam DataKey - Union of field keys from the data struct
|
|
566
947
|
*/
|
|
567
|
-
export interface LineChartStyle<DataKey extends string = string> extends LineChartStyleBase {
|
|
568
|
-
/**
|
|
569
|
-
|
|
570
|
-
dataKey: DataKey;
|
|
571
|
-
};
|
|
948
|
+
export interface LineChartStyle<DataKey extends string = string> extends LineChartStyleBase<DataKey> {
|
|
949
|
+
/** Brush configuration for data range selection */
|
|
950
|
+
brush?: LineChartBrushStyle<DataKey>;
|
|
572
951
|
}
|
|
573
952
|
/**
|
|
574
953
|
* Style for LineMulti charts (multi-series with separate arrays).
|
|
@@ -577,17 +956,15 @@ export interface LineChartStyle<DataKey extends string = string> extends LineCha
|
|
|
577
956
|
* @typeParam NumericKey - Union of numeric field keys (for valueKey)
|
|
578
957
|
* @typeParam SeriesKey - Union of series names (record keys)
|
|
579
958
|
*/
|
|
580
|
-
export interface LineChartMultiStyle<DataKey extends string = string, NumericKey extends string = string, SeriesKey extends string = string> extends LineChartStyleBase {
|
|
581
|
-
/** X-axis configuration with type-safe dataKey */
|
|
582
|
-
xAxis?: {
|
|
583
|
-
dataKey: DataKey;
|
|
584
|
-
};
|
|
959
|
+
export interface LineChartMultiStyle<DataKey extends string = string, NumericKey extends string = string, SeriesKey extends string = string> extends LineChartStyleBase<DataKey> {
|
|
585
960
|
/** Field name containing Y values in each series array (must be numeric) */
|
|
586
961
|
valueKey: NumericKey;
|
|
587
962
|
/** Per-series configuration (keyed by series name) */
|
|
588
963
|
series?: {
|
|
589
964
|
[K in SeriesKey]?: LineChartSeriesConfig;
|
|
590
965
|
};
|
|
966
|
+
/** Brush configuration for data range selection */
|
|
967
|
+
brush?: LineChartBrushStyle<DataKey>;
|
|
591
968
|
}
|
|
592
969
|
/**
|
|
593
970
|
* TypeScript interface for Line chart series configuration.
|
|
@@ -618,5 +995,7 @@ export interface LineChartSeriesConfig {
|
|
|
618
995
|
showDots?: SubtypeExprOrValue<BooleanType>;
|
|
619
996
|
/** Whether to show the line (per-series override) */
|
|
620
997
|
showLine?: SubtypeExprOrValue<BooleanType>;
|
|
998
|
+
/** Y-axis binding (left = primary yAxis, right = secondary yAxis2) */
|
|
999
|
+
yAxisId?: SubtypeExprOrValue<YAxisIdType> | YAxisIdLiteral;
|
|
621
1000
|
}
|
|
622
1001
|
//# sourceMappingURL=types.d.ts.map
|