@visactor/vseed 0.1.2 → 0.1.4

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/builder.d.ts +6 -28
  2. package/dist/dataReshape/dataReshapeByEncoding.d.ts +1 -0
  3. package/dist/dataReshape/foldMeasures.d.ts +6 -5
  4. package/dist/index.cjs +844 -609
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.js +857 -619
  7. package/dist/index.js.map +1 -1
  8. package/dist/pipeline/advanced/chart/pipes/index.d.ts +1 -0
  9. package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +1 -3
  10. package/dist/pipeline/advanced/chart/pipes/init/utils.d.ts +2 -0
  11. package/dist/pipeline/advanced/chart/pipes/{init/autoMeasures.d.ts → measures/buildMeasures.d.ts} +1 -1
  12. package/dist/pipeline/advanced/chart/pipes/measures/buildMeasuresForDualAxis.d.ts +2 -0
  13. package/dist/pipeline/advanced/chart/pipes/measures/buildMeasuresForScatter.d.ts +2 -0
  14. package/dist/pipeline/advanced/chart/pipes/measures/index.d.ts +4 -0
  15. package/dist/pipeline/advanced/chart/pipes/measures/utils.d.ts +28 -0
  16. package/dist/pipeline/spec/chart/pipes/color/colorAdapter.d.ts +2 -1
  17. package/dist/pipeline/spec/chart/pipes/color/index.d.ts +2 -1
  18. package/dist/pipeline/spec/chart/pipes/color/linearColorForDualAxis.d.ts +2 -0
  19. package/dist/pipeline/utils/chatType.d.ts +1 -1
  20. package/dist/types/advancedVSeed.d.ts +24 -14
  21. package/dist/types/chartType/area/zArea.d.ts +24 -0
  22. package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +24 -0
  23. package/dist/types/chartType/bar/zBar.d.ts +24 -0
  24. package/dist/types/chartType/barParallel/zBarParallel.d.ts +24 -0
  25. package/dist/types/chartType/barPercent/zBarPercent.d.ts +24 -0
  26. package/dist/types/chartType/column/zColumn.d.ts +24 -0
  27. package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +24 -0
  28. package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +24 -0
  29. package/dist/types/chartType/donut/zDonut.d.ts +24 -0
  30. package/dist/types/chartType/dualAxis/zDualAxis.d.ts +76 -0
  31. package/dist/types/chartType/funnel/zFunnel.d.ts +24 -0
  32. package/dist/types/chartType/heatmap/zHeatmap.d.ts +24 -0
  33. package/dist/types/chartType/line/line.d.ts +0 -1
  34. package/dist/types/chartType/line/zLine.d.ts +24 -0
  35. package/dist/types/chartType/pie/zPie.d.ts +24 -0
  36. package/dist/types/chartType/pivotTable/zPivotTable.d.ts +24 -0
  37. package/dist/types/chartType/radar/zRadar.d.ts +24 -0
  38. package/dist/types/chartType/rose/zRose.d.ts +24 -0
  39. package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +24 -0
  40. package/dist/types/chartType/scatter/zScatter.d.ts +76 -0
  41. package/dist/types/chartType/table/zTable.d.ts +24 -0
  42. package/dist/types/properties/dimensions/dimensions.d.ts +16 -0
  43. package/dist/types/properties/dimensions/zDimensions.d.ts +33 -0
  44. package/dist/types/properties/encoding/encoding.d.ts +0 -1
  45. package/dist/types/properties/encoding/index.d.ts +2 -2
  46. package/dist/types/properties/encoding/zEncoding.d.ts +0 -14
  47. package/dist/types/properties/measures/dualMeasures.d.ts +1 -0
  48. package/dist/types/properties/measures/measures.d.ts +19 -0
  49. package/dist/types/properties/measures/scatterMeasures.d.ts +1 -0
  50. package/dist/types/properties/measures/zDualMeasures.d.ts +104 -0
  51. package/dist/types/properties/measures/zMeasures.d.ts +39 -0
  52. package/dist/types/properties/measures/zScatterMeasures.d.ts +104 -0
  53. package/dist/types/zVseed.d.ts +584 -0
  54. package/dist/umd/index.js +858 -607
  55. package/dist/umd/index.js.map +1 -1
  56. package/package.json +1 -1
  57. package/dist/pipeline/advanced/chart/pipes/init/autoDualMeasures.d.ts +0 -2
  58. package/dist/pipeline/advanced/chart/pipes/init/autoScatterMeasures.d.ts +0 -2
@@ -82,6 +82,7 @@ export declare class Builder implements VSeedBuilder {
82
82
  id: string;
83
83
  location: "dimension" | "rowDimension" | "columnDimension";
84
84
  alias?: string | undefined;
85
+ encoding?: "column" | "xAxis" | "yAxis" | "angle" | "color" | "detail" | "tooltip" | "label" | "row" | undefined;
85
86
  })[];
86
87
  measures: (import("../../types").MeasureGroup | {
87
88
  id: string;
@@ -99,6 +100,8 @@ export declare class Builder implements VSeedBuilder {
99
100
  roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
100
101
  };
101
102
  alias?: string | undefined;
103
+ encoding?: "xAxis" | "yAxis" | "angle" | "color" | "tooltip" | "label" | "primaryYAxis" | "secondaryYAxis" | "radius" | "size" | undefined;
104
+ parentId?: string | undefined;
102
105
  })[];
103
106
  encoding: {
104
107
  x?: string[] | null | undefined;
@@ -114,20 +117,6 @@ export declare class Builder implements VSeedBuilder {
114
117
  column?: string[] | null | undefined;
115
118
  group?: string[] | null | undefined;
116
119
  };
117
- encodings: {
118
- x?: string[] | null | undefined;
119
- y?: string[] | null | undefined;
120
- angle?: string[] | null | undefined;
121
- radius?: string[] | null | undefined;
122
- detail?: string[] | null | undefined;
123
- color?: string[] | null | undefined;
124
- size?: string[] | null | undefined;
125
- tooltip?: string[] | null | undefined;
126
- label?: string[] | null | undefined;
127
- row?: string[] | null | undefined;
128
- column?: string[] | null | undefined;
129
- group?: string[] | null | undefined;
130
- }[];
131
120
  config: {
132
121
  table?: {
133
122
  backgroundColor?: string | null | undefined;
@@ -3816,6 +3805,7 @@ export declare class Builder implements VSeedBuilder {
3816
3805
  id: string;
3817
3806
  location: "dimension" | "rowDimension" | "columnDimension";
3818
3807
  alias?: string | undefined;
3808
+ encoding?: "column" | "xAxis" | "yAxis" | "angle" | "color" | "detail" | "tooltip" | "label" | "row" | undefined;
3819
3809
  })[];
3820
3810
  measures: (import("src/types").MeasureGroup | {
3821
3811
  id: string;
@@ -3833,6 +3823,8 @@ export declare class Builder implements VSeedBuilder {
3833
3823
  roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
3834
3824
  };
3835
3825
  alias?: string | undefined;
3826
+ encoding?: "xAxis" | "yAxis" | "angle" | "color" | "tooltip" | "label" | "primaryYAxis" | "secondaryYAxis" | "radius" | "size" | undefined;
3827
+ parentId?: string | undefined;
3836
3828
  })[];
3837
3829
  encoding: {
3838
3830
  x?: string[] | null | undefined;
@@ -3848,20 +3840,6 @@ export declare class Builder implements VSeedBuilder {
3848
3840
  column?: string[] | null | undefined;
3849
3841
  group?: string[] | null | undefined;
3850
3842
  };
3851
- encodings: {
3852
- x?: string[] | null | undefined;
3853
- y?: string[] | null | undefined;
3854
- angle?: string[] | null | undefined;
3855
- radius?: string[] | null | undefined;
3856
- detail?: string[] | null | undefined;
3857
- color?: string[] | null | undefined;
3858
- size?: string[] | null | undefined;
3859
- tooltip?: string[] | null | undefined;
3860
- label?: string[] | null | undefined;
3861
- row?: string[] | null | undefined;
3862
- column?: string[] | null | undefined;
3863
- group?: string[] | null | undefined;
3864
- }[];
3865
3843
  config: {
3866
3844
  table?: {
3867
3845
  backgroundColor?: string | null | undefined;
@@ -4,6 +4,7 @@ export declare const dataReshapeByEncoding: (dataset: Dataset, dimensions: Dimen
4
4
  foldMeasureName?: string;
5
5
  foldMeasureValue?: string;
6
6
  colorItemAsId?: boolean;
7
+ colorMeasureId?: string;
7
8
  }) => {
8
9
  dataset: Dataset;
9
10
  foldInfo: FoldInfo;
@@ -1,12 +1,13 @@
1
- import type { Dataset, FoldInfo, Dimension, Encoding } from '../types';
1
+ import type { Dataset, FoldInfo, Measures } from '../types';
2
2
  /**
3
3
  * 折叠指定的指标
4
4
  * @description 合并指定的指标为1个, 无论多少个, 都能转换为1个, 取名为fold, 意为折叠后混合在一起.
5
5
  */
6
- export declare const foldMeasures: (dataset: Dataset, measures: Dimension[], encoding: Encoding, options?: {
7
- measureId?: string;
8
- measureName?: string;
9
- measureValue?: string;
6
+ export declare const foldMeasures: (dataset: Dataset, measures: Measures, options: {
7
+ measureId: string;
8
+ measureName: string;
9
+ measureValue: string;
10
+ colorMeasureId?: string;
10
11
  }) => {
11
12
  dataset: Dataset;
12
13
  foldInfo: FoldInfo;