@visactor/vseed 0.0.8 → 0.0.9

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 (36) hide show
  1. package/dist/builder/builder/builder.d.ts +137 -0
  2. package/dist/dataReshape/constant.d.ts +1 -0
  3. package/dist/dataSelector/index.d.ts +1 -0
  4. package/dist/dataSelector/selector.d.ts +7 -0
  5. package/dist/index.cjs +495 -79
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.js +488 -81
  8. package/dist/index.js.map +1 -1
  9. package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
  10. package/dist/pipeline/advanced/pipes/markStyle/index.d.ts +1 -0
  11. package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +2 -0
  12. package/dist/pipeline/spec/pipes/index.d.ts +1 -0
  13. package/dist/pipeline/spec/pipes/legend/{pivotLegend.d.ts → discreteLegend.d.ts} +1 -1
  14. package/dist/pipeline/spec/pipes/legend/index.d.ts +2 -2
  15. package/dist/pipeline/spec/pipes/legend/pivotDiscreteLegend.d.ts +2 -0
  16. package/dist/pipeline/spec/pipes/{legend/legend.d.ts → markStyle/barStyle.d.ts} +1 -1
  17. package/dist/pipeline/spec/pipes/markStyle/index.d.ts +1 -0
  18. package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -1
  19. package/dist/pipeline/spec/pipes/stack/stack.d.ts +2 -2
  20. package/dist/types/advancedVSeed.d.ts +129 -0
  21. package/dist/types/chartType/bar/bar.d.ts +10 -1
  22. package/dist/types/chartType/barParallel/barParallel.d.ts +10 -1
  23. package/dist/types/chartType/barPercent/barPercent.d.ts +10 -1
  24. package/dist/types/chartType/column/column.d.ts +10 -1
  25. package/dist/types/chartType/columnParallel/columnParallel.d.ts +10 -1
  26. package/dist/types/chartType/columnPercent/columnPercent.d.ts +10 -1
  27. package/dist/types/dataSelector/index.d.ts +1 -0
  28. package/dist/types/dataSelector/selector.d.ts +34 -0
  29. package/dist/types/properties/baseConfig/baseConfig.d.ts +102 -0
  30. package/dist/types/properties/baseConfig/legend.d.ts +101 -4
  31. package/dist/types/properties/index.d.ts +1 -0
  32. package/dist/types/properties/markStyle/barStyle.d.ts +114 -0
  33. package/dist/types/properties/markStyle/index.d.ts +2 -0
  34. package/dist/types/properties/markStyle/markStyle.d.ts +29 -0
  35. package/dist/types/properties/theme/customTheme.d.ts +102 -0
  36. package/package.json +1 -1
@@ -45,6 +45,13 @@ export declare class Builder implements VSeedBuilder {
45
45
  } | undefined;
46
46
  legend?: {
47
47
  enable?: boolean | undefined;
48
+ border?: boolean | undefined;
49
+ maxSize?: number | undefined;
50
+ shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined;
51
+ position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined;
52
+ labelFontSize?: number | undefined;
53
+ labelFontColor?: string | undefined;
54
+ labelFontWeight?: string | number | undefined;
48
55
  } | undefined;
49
56
  } | undefined;
50
57
  vtable?: {
@@ -771,6 +778,33 @@ export declare class Builder implements VSeedBuilder {
771
778
  pivotTable?: Record<string, never> | undefined;
772
779
  };
773
780
  theme: string;
781
+ markStyle: {
782
+ barStyle?: {
783
+ selector: string | number | {
784
+ field: string;
785
+ operator: string;
786
+ value: string | number | (string | number)[];
787
+ } | {
788
+ field: string;
789
+ operator: string;
790
+ value: string | number | (string | number)[];
791
+ } | (string | number | {
792
+ field: string;
793
+ operator: string;
794
+ value: string | number | (string | number)[];
795
+ } | {
796
+ field: string;
797
+ operator: string;
798
+ value: string | number | (string | number)[];
799
+ })[];
800
+ barColor: string;
801
+ barColorOpacity: number;
802
+ barBorderColor: string;
803
+ barBorderWidth: number;
804
+ barBorderStyle: "solid" | "dashed" | "dotted";
805
+ barRadius: number | number[];
806
+ } | undefined;
807
+ };
774
808
  dimensions?: {
775
809
  id: string;
776
810
  location: "dimension" | "rowDimension" | "columnDimension";
@@ -829,6 +863,13 @@ export declare class Builder implements VSeedBuilder {
829
863
  } | undefined;
830
864
  legend?: {
831
865
  enable?: boolean | undefined;
866
+ border?: boolean | undefined;
867
+ maxSize?: number | undefined;
868
+ shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined;
869
+ position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined;
870
+ labelFontSize?: number | undefined;
871
+ labelFontColor?: string | undefined;
872
+ labelFontWeight?: string | number | undefined;
832
873
  } | undefined;
833
874
  } | undefined;
834
875
  vtable?: {
@@ -1574,6 +1615,13 @@ export declare class Builder implements VSeedBuilder {
1574
1615
  } | undefined;
1575
1616
  legend?: {
1576
1617
  enable?: boolean | undefined;
1618
+ border?: boolean | undefined;
1619
+ maxSize?: number | undefined;
1620
+ shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined;
1621
+ position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined;
1622
+ labelFontSize?: number | undefined;
1623
+ labelFontColor?: string | undefined;
1624
+ labelFontWeight?: string | number | undefined;
1577
1625
  } | undefined;
1578
1626
  } | undefined;
1579
1627
  vtable?: {
@@ -2316,6 +2364,13 @@ export declare class Builder implements VSeedBuilder {
2316
2364
  } | undefined;
2317
2365
  legend?: {
2318
2366
  enable?: boolean | undefined;
2367
+ border?: boolean | undefined;
2368
+ maxSize?: number | undefined;
2369
+ shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined;
2370
+ position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined;
2371
+ labelFontSize?: number | undefined;
2372
+ labelFontColor?: string | undefined;
2373
+ labelFontWeight?: string | number | undefined;
2319
2374
  } | undefined;
2320
2375
  } | undefined;
2321
2376
  vtable?: {
@@ -3084,6 +3139,13 @@ export declare class Builder implements VSeedBuilder {
3084
3139
  } | undefined;
3085
3140
  legend?: {
3086
3141
  enable?: boolean | undefined;
3142
+ border?: boolean | undefined;
3143
+ maxSize?: number | undefined;
3144
+ shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined;
3145
+ position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined;
3146
+ labelFontSize?: number | undefined;
3147
+ labelFontColor?: string | undefined;
3148
+ labelFontWeight?: string | number | undefined;
3087
3149
  } | undefined;
3088
3150
  } | undefined;
3089
3151
  vtable?: {
@@ -3810,6 +3872,33 @@ export declare class Builder implements VSeedBuilder {
3810
3872
  pivotTable?: Record<string, never> | undefined;
3811
3873
  };
3812
3874
  theme: string;
3875
+ markStyle: {
3876
+ barStyle?: {
3877
+ selector: string | number | {
3878
+ field: string;
3879
+ operator: string;
3880
+ value: string | number | (string | number)[];
3881
+ } | {
3882
+ field: string;
3883
+ operator: string;
3884
+ value: string | number | (string | number)[];
3885
+ } | (string | number | {
3886
+ field: string;
3887
+ operator: string;
3888
+ value: string | number | (string | number)[];
3889
+ } | {
3890
+ field: string;
3891
+ operator: string;
3892
+ value: string | number | (string | number)[];
3893
+ })[];
3894
+ barColor: string;
3895
+ barColorOpacity: number;
3896
+ barBorderColor: string;
3897
+ barBorderWidth: number;
3898
+ barBorderStyle: "solid" | "dashed" | "dotted";
3899
+ barRadius: number | number[];
3900
+ } | undefined;
3901
+ };
3813
3902
  dimensions?: {
3814
3903
  id: string;
3815
3904
  location: "dimension" | "rowDimension" | "columnDimension";
@@ -3868,6 +3957,13 @@ export declare class Builder implements VSeedBuilder {
3868
3957
  } | undefined;
3869
3958
  legend?: {
3870
3959
  enable?: boolean | undefined;
3960
+ border?: boolean | undefined;
3961
+ maxSize?: number | undefined;
3962
+ shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined;
3963
+ position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined;
3964
+ labelFontSize?: number | undefined;
3965
+ labelFontColor?: string | undefined;
3966
+ labelFontWeight?: string | number | undefined;
3871
3967
  } | undefined;
3872
3968
  } | undefined;
3873
3969
  vtable?: {
@@ -4635,6 +4731,13 @@ export declare class Builder implements VSeedBuilder {
4635
4731
  } | undefined;
4636
4732
  legend?: {
4637
4733
  enable?: boolean | undefined;
4734
+ border?: boolean | undefined;
4735
+ maxSize?: number | undefined;
4736
+ shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined;
4737
+ position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined;
4738
+ labelFontSize?: number | undefined;
4739
+ labelFontColor?: string | undefined;
4740
+ labelFontWeight?: string | number | undefined;
4638
4741
  } | undefined;
4639
4742
  } | undefined;
4640
4743
  vtable?: {
@@ -5361,6 +5464,33 @@ export declare class Builder implements VSeedBuilder {
5361
5464
  pivotTable?: Record<string, never> | undefined;
5362
5465
  };
5363
5466
  theme: string;
5467
+ markStyle: {
5468
+ barStyle?: {
5469
+ selector: string | number | {
5470
+ field: string;
5471
+ operator: string;
5472
+ value: string | number | (string | number)[];
5473
+ } | {
5474
+ field: string;
5475
+ operator: string;
5476
+ value: string | number | (string | number)[];
5477
+ } | (string | number | {
5478
+ field: string;
5479
+ operator: string;
5480
+ value: string | number | (string | number)[];
5481
+ } | {
5482
+ field: string;
5483
+ operator: string;
5484
+ value: string | number | (string | number)[];
5485
+ })[];
5486
+ barColor: string;
5487
+ barColorOpacity: number;
5488
+ barBorderColor: string;
5489
+ barBorderWidth: number;
5490
+ barBorderStyle: "solid" | "dashed" | "dotted";
5491
+ barRadius: number | number[];
5492
+ } | undefined;
5493
+ };
5364
5494
  dimensions?: {
5365
5495
  id: string;
5366
5496
  location: "dimension" | "rowDimension" | "columnDimension";
@@ -5419,6 +5549,13 @@ export declare class Builder implements VSeedBuilder {
5419
5549
  } | undefined;
5420
5550
  legend?: {
5421
5551
  enable?: boolean | undefined;
5552
+ border?: boolean | undefined;
5553
+ maxSize?: number | undefined;
5554
+ shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined;
5555
+ position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined;
5556
+ labelFontSize?: number | undefined;
5557
+ labelFontColor?: string | undefined;
5558
+ labelFontWeight?: string | number | undefined;
5422
5559
  } | undefined;
5423
5560
  } | undefined;
5424
5561
  vtable?: {
@@ -3,3 +3,4 @@ export declare const FoldMeasureValue = "__MeaValue__";
3
3
  export declare const FoldMeasureId = "__MeaId__";
4
4
  export declare const UnfoldDimensionGroup = "__DimGroup__";
5
5
  export declare const Separator = "-";
6
+ export declare const ORIGINAL_DATA = "__OriginalData__";
@@ -0,0 +1 @@
1
+ export * from './selector';
@@ -0,0 +1,7 @@
1
+ import type { Datum } from '../types';
2
+ import type { DimensionSelector, MeasureSelector, PartialDatumSelector, Selector, Selectors, ValueSelector } from '../types/dataSelector';
3
+ export declare const selector: (datum: Datum, selector: Selector | Selectors | undefined | null) => boolean;
4
+ export declare const isValueSelector: (selector: Selector) => selector is ValueSelector;
5
+ export declare const isPartialDatumSelector: (selector: Selector) => selector is PartialDatumSelector;
6
+ export declare const isMeasureSelector: (selector: Selector) => selector is MeasureSelector;
7
+ export declare const isDimensionSelector: (selector: Selector) => selector is DimensionSelector;