@visactor/vseed 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/builder/builder/advanced/colorItems.d.ts +1 -0
  2. package/dist/builder/builder/advanced/index.d.ts +1 -1
  3. package/dist/builder/builder/builder.d.ts +947 -63
  4. package/dist/builder/register/chartType.d.ts +1 -0
  5. package/dist/builder/register/custom.d.ts +3 -0
  6. package/dist/builder/register/index.d.ts +1 -0
  7. package/dist/dataReshape/dataReshapeFor1D.d.ts +19 -0
  8. package/dist/dataReshape/index.d.ts +1 -0
  9. package/dist/index.cjs +713 -51
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +667 -48
  12. package/dist/index.js.map +1 -1
  13. package/dist/pipeline/advanced/chart/pipeline/areaRange.d.ts +2 -0
  14. package/dist/pipeline/advanced/chart/pipeline/index.d.ts +1 -0
  15. package/dist/pipeline/advanced/chart/pipes/analysis/index.d.ts +1 -0
  16. package/dist/pipeline/advanced/chart/pipes/analysis/sort.d.ts +4 -0
  17. package/dist/pipeline/advanced/chart/pipes/encoding/encodingXYY.d.ts +2 -0
  18. package/dist/pipeline/advanced/chart/pipes/encoding/index.d.ts +1 -0
  19. package/dist/pipeline/advanced/chart/pipes/index.d.ts +1 -0
  20. package/dist/pipeline/advanced/chart/pipes/init/autoMeasuresBy2M1Group.d.ts +8 -0
  21. package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +1 -0
  22. package/dist/pipeline/advanced/chart/pipes/reshape/index.d.ts +2 -0
  23. package/dist/pipeline/advanced/chart/pipes/reshape/pivotReshapeTo1D.d.ts +8 -0
  24. package/dist/pipeline/advanced/chart/pipes/reshape/reshapeTo1D.d.ts +8 -0
  25. package/dist/pipeline/spec/chart/pipeline/areaRange.d.ts +1 -0
  26. package/dist/pipeline/spec/chart/pipeline/index.d.ts +1 -0
  27. package/dist/pipeline/spec/chart/pipes/dataset/datasetPivot.d.ts +0 -1
  28. package/dist/pipeline/spec/chart/pipes/dataset/index.d.ts +1 -1
  29. package/dist/pipeline/spec/chart/pipes/index.d.ts +1 -0
  30. package/dist/pipeline/spec/chart/pipes/init/areaRange.d.ts +4 -0
  31. package/dist/pipeline/spec/chart/pipes/init/index.d.ts +1 -0
  32. package/dist/pipeline/spec/chart/pipes/series/index.d.ts +1 -0
  33. package/dist/pipeline/spec/chart/pipes/series/series.d.ts +2 -0
  34. package/dist/types/advancedVSeed.d.ts +310 -0
  35. package/dist/types/chartType/area/area.d.ts +25 -1
  36. package/dist/types/chartType/areaPercent/areaPercent.d.ts +25 -1
  37. package/dist/types/chartType/areaRange/areaRange.d.ts +1337 -0
  38. package/dist/types/chartType/areaRange/index.d.ts +1 -0
  39. package/dist/types/chartType/bar/bar.d.ts +25 -1
  40. package/dist/types/chartType/barParallel/barParallel.d.ts +25 -1
  41. package/dist/types/chartType/barPercent/barPercent.d.ts +25 -1
  42. package/dist/types/chartType/column/column.d.ts +25 -1
  43. package/dist/types/chartType/columnParallel/columnParallel.d.ts +25 -1
  44. package/dist/types/chartType/columnPercent/columnPercent.d.ts +25 -1
  45. package/dist/types/chartType/index.d.ts +1 -0
  46. package/dist/types/chartType/line/line.d.ts +41 -1
  47. package/dist/types/properties/analysis/analysis.d.ts +4 -0
  48. package/dist/types/properties/analysis/index.d.ts +3 -0
  49. package/dist/types/properties/analysis/sortAxis.d.ts +39 -0
  50. package/dist/types/properties/analysis/sortLegend.d.ts +39 -0
  51. package/dist/types/properties/chartType/chartType.d.ts +3 -1
  52. package/dist/types/properties/config/config.d.ts +307 -0
  53. package/dist/types/properties/index.d.ts +1 -0
  54. package/dist/types/properties/theme/customTheme.d.ts +306 -0
  55. package/dist/types/vseed.d.ts +1206 -1
  56. package/dist/umd/index.js +8847 -350
  57. package/dist/umd/index.js.map +1 -1
  58. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import type { AdvancedPipeline } from '../../../../types';
2
+ export declare const areaRangeAdvancedPipeline: AdvancedPipeline;
@@ -7,6 +7,7 @@ export { columnParallelAdvancedPipeline } from './columnParallel';
7
7
  export { columnPercentAdvancedPipeline } from './columnPercent';
8
8
  export { areaAdvancedPipeline } from './area';
9
9
  export { areaPercentAdvancedPipeline } from './areaPercent';
10
+ export { areaRangeAdvancedPipeline } from './areaRange';
10
11
  export { pieAdvancedPipeline } from './pie';
11
12
  export { donutAdvancedPipeline } from './donut';
12
13
  export { roseAdvancedPipeline } from './rose';
@@ -0,0 +1 @@
1
+ export { sortXBandAxis, sortYBandAxis, sortLegend } from './sort';
@@ -0,0 +1,4 @@
1
+ import type { AdvancedPipe } from '../../../../../types';
2
+ export declare const sortXBandAxis: AdvancedPipe;
3
+ export declare const sortYBandAxis: AdvancedPipe;
4
+ export declare const sortLegend: AdvancedPipe;
@@ -0,0 +1,2 @@
1
+ import type { AdvancedPipe } from '../../../../../types';
2
+ export declare const encodingXYY: AdvancedPipe;
@@ -1,6 +1,7 @@
1
1
  export { encodingXY } from './encodingXY';
2
2
  export { encodingYX } from './encodingYX';
3
3
  export { encodingYY } from './encodingYY';
4
+ export { encodingXYY } from './encodingXYY';
4
5
  export { encodingRose } from './encodingRose';
5
6
  export { encodingPie } from './encodingPie';
6
7
  export { encodingFunnel } from './encodingFunnel';
@@ -6,3 +6,4 @@ export * from './theme';
6
6
  export * from './pivot';
7
7
  export * from './markStyle';
8
8
  export * from './annotation';
9
+ export * from './analysis';
@@ -0,0 +1,8 @@
1
+ import type { AdvancedPipe } from '../../../../../types';
2
+ /**
3
+ * 自动处理指标, 如果超出了2个指标, 则按每2个指标一个组的逻辑维护
4
+ * @param advancedVSeed
5
+ * @param context
6
+ * @returns
7
+ */
8
+ export declare const autoMeasuresBy2M1Group: AdvancedPipe;
@@ -1,3 +1,4 @@
1
1
  export { initAdvancedVSeed } from './initAdvancedVSeed';
2
2
  export { autoMeasures } from './autoMeasures';
3
3
  export { autoDimensions } from './autoDimensions';
4
+ export { autoMeasuresBy2M1Group } from './autoMeasuresBy2M1Group';
@@ -1,6 +1,8 @@
1
1
  export { reshapeTo2D1M } from './reshapeTo2D1M';
2
2
  export { reshapeTo1D1M } from './reshapeTo1D1M';
3
3
  export { reshapeTo1D2M } from './reshapeTo1D2M';
4
+ export { reshapeTo1D } from './reshapeTo1D';
4
5
  export { pivotReshapeTo1D1M } from './pivotReshapeTo1D1M';
5
6
  export { pivotReshapeTo1D2M } from './pivotReshapeTo1D2M';
6
7
  export { pivotReshapeTo2D1M } from './pivotReshapeTo2D1M';
8
+ export { pivotReshapeTo1D } from './pivotReshapeTo1D';
@@ -0,0 +1,8 @@
1
+ import type { AdvancedPipe } from '../../../../../types';
2
+ /**
3
+ * 数据重塑为透视结构, 如果存在指标分组, 则将数据按组划分
4
+ * @param advancedVSeed
5
+ * @param context
6
+ * @returns
7
+ */
8
+ export declare const pivotReshapeTo1D: AdvancedPipe;
@@ -0,0 +1,8 @@
1
+ import type { AdvancedPipe } from '../../../../../types';
2
+ /**
3
+ * 数据重塑, 将任意维度、任意指标, 重塑为1个维度2个指标.
4
+ * @param advancedVSeed
5
+ * @param context
6
+ * @returns
7
+ */
8
+ export declare const reshapeTo1D: AdvancedPipe;
@@ -0,0 +1 @@
1
+ export declare const areaRangeSpecPipeline: import("../../../../types").SpecPipe[];
@@ -7,6 +7,7 @@ export { barParallelSpecPipeline } from './barParallel';
7
7
  export { barPercentSpecPipeline } from './barPercent';
8
8
  export { areaSpecPipeline } from './area';
9
9
  export { areaPercentSpecPipeline } from './areaPercent';
10
+ export { areaRangeSpecPipeline } from './areaRange';
10
11
  export { pieSpecPipeline } from './pie';
11
12
  export { donutSpecPipeline } from './donut';
12
13
  export { roseSpecPipeline } from './rose';
@@ -1,3 +1,2 @@
1
1
  import type { SpecPipe } from '../../../../../types';
2
2
  export declare const datasetPivot: SpecPipe;
3
- export declare const datasetPivotPlaceholder: SpecPipe;
@@ -1,2 +1,2 @@
1
1
  export { dataset } from './dataset';
2
- export { datasetPivot, datasetPivotPlaceholder } from './datasetPivot';
2
+ export { datasetPivot } from './datasetPivot';
@@ -12,3 +12,4 @@ export * from './pivotChart';
12
12
  export * from './markStyle';
13
13
  export * from './annotation';
14
14
  export * from './crosshair';
15
+ export * from './series';
@@ -0,0 +1,4 @@
1
+ import type { SpecPipe } from '../../../../../types';
2
+ export declare const initAreaRange: SpecPipe;
3
+ export declare const initAreaRangeLine1: SpecPipe;
4
+ export declare const initAreaRangeLine2: SpecPipe;
@@ -2,6 +2,7 @@ export { initColumn } from './column';
2
2
  export { initBar } from './bar';
3
3
  export { initBarParallel } from './barParallel';
4
4
  export { initArea } from './area';
5
+ export { initAreaRange, initAreaRangeLine1, initAreaRangeLine2 } from './areaRange';
5
6
  export { initLine } from './line';
6
7
  export { initColumnParallel } from './columnParallel';
7
8
  export { initPie } from './pie';
@@ -0,0 +1 @@
1
+ export { series } from './series';
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe, SpecPipeline } from '../../../../../types';
2
+ export declare const series: (...args: SpecPipeline[]) => SpecPipe;
@@ -12,6 +12,7 @@ export declare const zAdvancedVSeed: z.ZodObject<{
12
12
  barParallel: "barParallel";
13
13
  area: "area";
14
14
  areaPercent: "areaPercent";
15
+ areaRange: "areaRange";
15
16
  rose: "rose";
16
17
  roseParallel: "roseParallel";
17
18
  pie: "pie";
@@ -1498,6 +1499,159 @@ export declare const zAdvancedVSeed: z.ZodObject<{
1498
1499
  labelBackgroundColor: z.ZodOptional<z.ZodString>;
1499
1500
  }, z.core.$strip>>;
1500
1501
  }, z.core.$strip>>;
1502
+ areaRange: z.ZodOptional<z.ZodObject<{
1503
+ backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
1504
+ label: z.ZodOptional<z.ZodObject<{
1505
+ enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1506
+ }, z.core.$strip>>;
1507
+ color: z.ZodOptional<z.ZodObject<{
1508
+ colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
1509
+ colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1510
+ }, z.core.$strip>>;
1511
+ tooltip: z.ZodOptional<z.ZodObject<{
1512
+ enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1513
+ }, z.core.$strip>>;
1514
+ legend: z.ZodOptional<z.ZodObject<{
1515
+ enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1516
+ border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1517
+ maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1518
+ shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1519
+ circle: "circle";
1520
+ cross: "cross";
1521
+ diamond: "diamond";
1522
+ square: "square";
1523
+ arrow: "arrow";
1524
+ arrow2Left: "arrow2Left";
1525
+ arrow2Right: "arrow2Right";
1526
+ wedge: "wedge";
1527
+ thinTriangle: "thinTriangle";
1528
+ triangle: "triangle";
1529
+ triangleUp: "triangleUp";
1530
+ triangleDown: "triangleDown";
1531
+ triangleRight: "triangleRight";
1532
+ triangleLeft: "triangleLeft";
1533
+ stroke: "stroke";
1534
+ star: "star";
1535
+ wye: "wye";
1536
+ rect: "rect";
1537
+ arrowLeft: "arrowLeft";
1538
+ arrowRight: "arrowRight";
1539
+ rectRound: "rectRound";
1540
+ roundLine: "roundLine";
1541
+ }>>>;
1542
+ position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1543
+ left: "left";
1544
+ leftTop: "leftTop";
1545
+ leftBottom: "leftBottom";
1546
+ lt: "lt";
1547
+ lb: "lb";
1548
+ top: "top";
1549
+ topLeft: "topLeft";
1550
+ topRight: "topRight";
1551
+ tl: "tl";
1552
+ tr: "tr";
1553
+ right: "right";
1554
+ rightTop: "rightTop";
1555
+ rightBottom: "rightBottom";
1556
+ rt: "rt";
1557
+ rb: "rb";
1558
+ bottom: "bottom";
1559
+ bottomLeft: "bottomLeft";
1560
+ bottomRight: "bottomRight";
1561
+ bl: "bl";
1562
+ br: "br";
1563
+ }>>>;
1564
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1565
+ labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1566
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
1567
+ }, z.core.$strip>>;
1568
+ xAxis: z.ZodOptional<z.ZodObject<{
1569
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1570
+ labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1571
+ labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1572
+ labelAutoRotate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1573
+ labelAutoRotateAngleRange: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNumber>>>;
1574
+ labelAutoLimit: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1575
+ labelAutoLimitLength: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1576
+ label: z.ZodOptional<z.ZodObject<{
1577
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1578
+ labelColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1579
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1580
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1581
+ labelAngle: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1582
+ }, z.core.$strip>>;
1583
+ line: z.ZodOptional<z.ZodObject<{
1584
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1585
+ lineColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1586
+ lineWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1587
+ }, z.core.$strip>>;
1588
+ tick: z.ZodOptional<z.ZodObject<{
1589
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1590
+ tickInside: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1591
+ tickColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1592
+ tickSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1593
+ }, z.core.$strip>>;
1594
+ title: z.ZodOptional<z.ZodObject<{
1595
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1596
+ titleText: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1597
+ titleColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1598
+ titleFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1599
+ titleFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1600
+ }, z.core.$strip>>;
1601
+ grid: z.ZodOptional<z.ZodObject<{
1602
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1603
+ gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1604
+ gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1605
+ }, z.core.$strip>>;
1606
+ }, z.core.$strip>>;
1607
+ yAxis: z.ZodOptional<z.ZodObject<{
1608
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1609
+ min: z.ZodOptional<z.ZodNumber>;
1610
+ max: z.ZodOptional<z.ZodNumber>;
1611
+ nice: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1612
+ zero: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1613
+ log: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1614
+ logBase: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1615
+ inverse: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1616
+ label: z.ZodOptional<z.ZodObject<{
1617
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1618
+ labelColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1619
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1620
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1621
+ labelAngle: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1622
+ }, z.core.$strip>>;
1623
+ line: z.ZodOptional<z.ZodObject<{
1624
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1625
+ lineColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1626
+ lineWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1627
+ }, z.core.$strip>>;
1628
+ tick: z.ZodOptional<z.ZodObject<{
1629
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1630
+ tickInside: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1631
+ tickColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1632
+ tickSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1633
+ }, z.core.$strip>>;
1634
+ title: z.ZodOptional<z.ZodObject<{
1635
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1636
+ titleText: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1637
+ titleColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1638
+ titleFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1639
+ titleFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1640
+ }, z.core.$strip>>;
1641
+ grid: z.ZodOptional<z.ZodObject<{
1642
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1643
+ gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1644
+ gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1645
+ }, z.core.$strip>>;
1646
+ }, z.core.$strip>>;
1647
+ crosshairLine: z.ZodOptional<z.ZodObject<{
1648
+ visible: z.ZodOptional<z.ZodBoolean>;
1649
+ lineColor: z.ZodOptional<z.ZodString>;
1650
+ labelColor: z.ZodOptional<z.ZodString>;
1651
+ labelVisible: z.ZodOptional<z.ZodBoolean>;
1652
+ labelBackgroundColor: z.ZodOptional<z.ZodString>;
1653
+ }, z.core.$strip>>;
1654
+ }, z.core.$strip>>;
1501
1655
  rose: z.ZodOptional<z.ZodObject<{
1502
1656
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
1503
1657
  label: z.ZodOptional<z.ZodObject<{
@@ -2055,6 +2209,9 @@ export declare const zAdvancedVSeed: z.ZodObject<{
2055
2209
  }, z.core.$strip>>;
2056
2210
  }, z.core.$strip>>;
2057
2211
  }, z.core.$strip>;
2212
+ analysis: z.ZodObject<{
2213
+ orderMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2214
+ }, z.core.$strip>;
2058
2215
  theme: z.ZodString;
2059
2216
  markStyle: z.ZodObject<{
2060
2217
  barStyle: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -4085,6 +4242,159 @@ export declare const zAdvancedVSeed: z.ZodObject<{
4085
4242
  labelBackgroundColor: z.ZodOptional<z.ZodString>;
4086
4243
  }, z.core.$strip>>;
4087
4244
  }, z.core.$strip>>;
4245
+ areaRange: z.ZodOptional<z.ZodObject<{
4246
+ backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
4247
+ label: z.ZodOptional<z.ZodObject<{
4248
+ enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4249
+ }, z.core.$strip>>;
4250
+ color: z.ZodOptional<z.ZodObject<{
4251
+ colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
4252
+ colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4253
+ }, z.core.$strip>>;
4254
+ tooltip: z.ZodOptional<z.ZodObject<{
4255
+ enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4256
+ }, z.core.$strip>>;
4257
+ legend: z.ZodOptional<z.ZodObject<{
4258
+ enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4259
+ border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4260
+ maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4261
+ shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
4262
+ circle: "circle";
4263
+ cross: "cross";
4264
+ diamond: "diamond";
4265
+ square: "square";
4266
+ arrow: "arrow";
4267
+ arrow2Left: "arrow2Left";
4268
+ arrow2Right: "arrow2Right";
4269
+ wedge: "wedge";
4270
+ thinTriangle: "thinTriangle";
4271
+ triangle: "triangle";
4272
+ triangleUp: "triangleUp";
4273
+ triangleDown: "triangleDown";
4274
+ triangleRight: "triangleRight";
4275
+ triangleLeft: "triangleLeft";
4276
+ stroke: "stroke";
4277
+ star: "star";
4278
+ wye: "wye";
4279
+ rect: "rect";
4280
+ arrowLeft: "arrowLeft";
4281
+ arrowRight: "arrowRight";
4282
+ rectRound: "rectRound";
4283
+ roundLine: "roundLine";
4284
+ }>>>;
4285
+ position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
4286
+ left: "left";
4287
+ leftTop: "leftTop";
4288
+ leftBottom: "leftBottom";
4289
+ lt: "lt";
4290
+ lb: "lb";
4291
+ top: "top";
4292
+ topLeft: "topLeft";
4293
+ topRight: "topRight";
4294
+ tl: "tl";
4295
+ tr: "tr";
4296
+ right: "right";
4297
+ rightTop: "rightTop";
4298
+ rightBottom: "rightBottom";
4299
+ rt: "rt";
4300
+ rb: "rb";
4301
+ bottom: "bottom";
4302
+ bottomLeft: "bottomLeft";
4303
+ bottomRight: "bottomRight";
4304
+ bl: "bl";
4305
+ br: "br";
4306
+ }>>>;
4307
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4308
+ labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4309
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
4310
+ }, z.core.$strip>>;
4311
+ xAxis: z.ZodOptional<z.ZodObject<{
4312
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4313
+ labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4314
+ labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4315
+ labelAutoRotate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4316
+ labelAutoRotateAngleRange: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNumber>>>;
4317
+ labelAutoLimit: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4318
+ labelAutoLimitLength: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4319
+ label: z.ZodOptional<z.ZodObject<{
4320
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4321
+ labelColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4322
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4323
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4324
+ labelAngle: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4325
+ }, z.core.$strip>>;
4326
+ line: z.ZodOptional<z.ZodObject<{
4327
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4328
+ lineColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4329
+ lineWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4330
+ }, z.core.$strip>>;
4331
+ tick: z.ZodOptional<z.ZodObject<{
4332
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4333
+ tickInside: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4334
+ tickColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4335
+ tickSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4336
+ }, z.core.$strip>>;
4337
+ title: z.ZodOptional<z.ZodObject<{
4338
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4339
+ titleText: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4340
+ titleColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4341
+ titleFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4342
+ titleFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4343
+ }, z.core.$strip>>;
4344
+ grid: z.ZodOptional<z.ZodObject<{
4345
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4346
+ gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4347
+ gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4348
+ }, z.core.$strip>>;
4349
+ }, z.core.$strip>>;
4350
+ yAxis: z.ZodOptional<z.ZodObject<{
4351
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4352
+ min: z.ZodOptional<z.ZodNumber>;
4353
+ max: z.ZodOptional<z.ZodNumber>;
4354
+ nice: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4355
+ zero: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4356
+ log: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4357
+ logBase: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4358
+ inverse: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4359
+ label: z.ZodOptional<z.ZodObject<{
4360
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4361
+ labelColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4362
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4363
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4364
+ labelAngle: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4365
+ }, z.core.$strip>>;
4366
+ line: z.ZodOptional<z.ZodObject<{
4367
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4368
+ lineColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4369
+ lineWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4370
+ }, z.core.$strip>>;
4371
+ tick: z.ZodOptional<z.ZodObject<{
4372
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4373
+ tickInside: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4374
+ tickColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4375
+ tickSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4376
+ }, z.core.$strip>>;
4377
+ title: z.ZodOptional<z.ZodObject<{
4378
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4379
+ titleText: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4380
+ titleColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4381
+ titleFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4382
+ titleFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4383
+ }, z.core.$strip>>;
4384
+ grid: z.ZodOptional<z.ZodObject<{
4385
+ visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4386
+ gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4387
+ gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4388
+ }, z.core.$strip>>;
4389
+ }, z.core.$strip>>;
4390
+ crosshairLine: z.ZodOptional<z.ZodObject<{
4391
+ visible: z.ZodOptional<z.ZodBoolean>;
4392
+ lineColor: z.ZodOptional<z.ZodString>;
4393
+ labelColor: z.ZodOptional<z.ZodString>;
4394
+ labelVisible: z.ZodOptional<z.ZodBoolean>;
4395
+ labelBackgroundColor: z.ZodOptional<z.ZodString>;
4396
+ }, z.core.$strip>>;
4397
+ }, z.core.$strip>>;
4088
4398
  rose: z.ZodOptional<z.ZodObject<{
4089
4399
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
4090
4400
  label: z.ZodOptional<z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, MeasureTree } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, MeasureTree, SortAxis, SortLegend } from '../../properties';
3
3
  import { z } from 'zod';
4
4
  /**
5
5
  * 面积图类型定义
@@ -86,6 +86,30 @@ export interface Area {
86
86
  * @description 鼠标移动到图表上时, 显示的垂直提示线
87
87
  */
88
88
  crosshairLine?: CrosshairLine;
89
+ /**
90
+ * @description X轴排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
91
+ * @example
92
+ * sortAxis: {
93
+ * orderBy: 'profit',
94
+ * order: 'asc',
95
+ * }
96
+ * sortAxis: {
97
+ * customOrder:['2019', '2020', '2021']
98
+ * }
99
+ */
100
+ sortAxis?: SortAxis;
101
+ /**
102
+ * @description 图例排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
103
+ * @example
104
+ * sortLegend: {
105
+ * orderBy: 'profit',
106
+ * order: 'asc',
107
+ * }
108
+ * sortLegend: {
109
+ * customOrder:['2019', '2020', '2021']
110
+ * }
111
+ */
112
+ sortLegend?: SortLegend;
89
113
  /**
90
114
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
91
115
  * @default light 默认为亮色主题
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, MeasureTree } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, MeasureTree, SortAxis, SortLegend } from '../../properties';
3
3
  import { z } from 'zod';
4
4
  /**
5
5
  * 百分比面积图类型定义
@@ -85,6 +85,30 @@ export interface AreaPercent {
85
85
  * @description 鼠标移动到图表上时, 显示的垂直提示线
86
86
  */
87
87
  crosshairLine?: CrosshairLine;
88
+ /**
89
+ * @description X轴排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
90
+ * @example
91
+ * sortAxis: {
92
+ * orderBy: 'profit',
93
+ * order: 'asc',
94
+ * }
95
+ * sortAxis: {
96
+ * customOrder:['2019', '2020', '2021']
97
+ * }
98
+ */
99
+ sortAxis?: SortAxis;
100
+ /**
101
+ * @description 图例排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
102
+ * @example
103
+ * sortLegend: {
104
+ * orderBy: 'profit',
105
+ * order: 'asc',
106
+ * }
107
+ * sortLegend: {
108
+ * customOrder:['2019', '2020', '2021']
109
+ * }
110
+ */
111
+ sortLegend?: SortLegend;
88
112
  /**
89
113
  * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
90
114
  * @default light 默认为亮色主题