@visactor/vseed 0.1.3 → 0.1.5

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 (49) hide show
  1. package/dist/builder/builder/builder.d.ts +4 -2
  2. package/dist/dataReshape/foldMeasures.d.ts +2 -2
  3. package/dist/index.cjs +1001 -765
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.js +1014 -778
  6. package/dist/index.js.map +1 -1
  7. package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +1 -0
  8. package/dist/pipeline/advanced/chart/pipes/init/utils.d.ts +2 -0
  9. package/dist/pipeline/advanced/chart/pipes/measures/index.d.ts +1 -0
  10. package/dist/pipeline/spec/chart/pipes/color/colorCellStyleFill.d.ts +2 -0
  11. package/dist/pipeline/spec/chart/pipes/color/colorFunnelStyleFill.d.ts +2 -0
  12. package/dist/pipeline/spec/chart/pipes/color/colorPieStyleFill.d.ts +2 -0
  13. package/dist/pipeline/spec/chart/pipes/color/colorRoseStyleFill.d.ts +2 -0
  14. package/dist/pipeline/spec/chart/pipes/color/index.d.ts +4 -0
  15. package/dist/pipeline/spec/chart/pipes/markStyle/cellStyle.d.ts +2 -0
  16. package/dist/pipeline/spec/chart/pipes/markStyle/funnelStyle.d.ts +2 -0
  17. package/dist/pipeline/spec/chart/pipes/markStyle/index.d.ts +5 -1
  18. package/dist/pipeline/spec/chart/pipes/markStyle/pieStyle.d.ts +2 -0
  19. package/dist/pipeline/spec/chart/pipes/markStyle/roseStyle.d.ts +2 -0
  20. package/dist/types/advancedVSeed.d.ts +16 -5
  21. package/dist/types/chartType/area/zArea.d.ts +16 -5
  22. package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +16 -5
  23. package/dist/types/chartType/bar/zBar.d.ts +16 -5
  24. package/dist/types/chartType/barParallel/zBarParallel.d.ts +16 -5
  25. package/dist/types/chartType/barPercent/zBarPercent.d.ts +16 -5
  26. package/dist/types/chartType/column/zColumn.d.ts +16 -5
  27. package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +16 -5
  28. package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +16 -5
  29. package/dist/types/chartType/donut/zDonut.d.ts +16 -5
  30. package/dist/types/chartType/dualAxis/zDualAxis.d.ts +36 -25
  31. package/dist/types/chartType/funnel/zFunnel.d.ts +16 -5
  32. package/dist/types/chartType/heatmap/zHeatmap.d.ts +16 -5
  33. package/dist/types/chartType/line/zLine.d.ts +16 -5
  34. package/dist/types/chartType/pie/zPie.d.ts +16 -5
  35. package/dist/types/chartType/pivotTable/zPivotTable.d.ts +16 -5
  36. package/dist/types/chartType/radar/zRadar.d.ts +16 -5
  37. package/dist/types/chartType/rose/zRose.d.ts +16 -5
  38. package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +16 -5
  39. package/dist/types/chartType/scatter/zScatter.d.ts +36 -25
  40. package/dist/types/chartType/table/zTable.d.ts +16 -5
  41. package/dist/types/properties/dimensions/dimensions.d.ts +16 -0
  42. package/dist/types/properties/dimensions/zDimensions.d.ts +33 -0
  43. package/dist/types/properties/measures/zDualMeasures.d.ts +40 -40
  44. package/dist/types/properties/measures/zMeasures.d.ts +15 -15
  45. package/dist/types/properties/measures/zScatterMeasures.d.ts +40 -40
  46. package/dist/types/zVseed.d.ts +360 -140
  47. package/dist/umd/index.js +953 -703
  48. package/dist/umd/index.js.map +1 -1
  49. package/package.json +1 -1
@@ -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,7 +100,7 @@ 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;
102
- encoding?: "primaryYAxis" | "secondaryYAxis" | "xAxis" | "yAxis" | "angle" | "radius" | "size" | "color" | "label" | "tooltip" | undefined;
103
+ encoding?: "xAxis" | "yAxis" | "angle" | "color" | "tooltip" | "label" | "primaryYAxis" | "secondaryYAxis" | "radius" | "size" | undefined;
103
104
  parentId?: string | undefined;
104
105
  })[];
105
106
  encoding: {
@@ -3804,6 +3805,7 @@ export declare class Builder implements VSeedBuilder {
3804
3805
  id: string;
3805
3806
  location: "dimension" | "rowDimension" | "columnDimension";
3806
3807
  alias?: string | undefined;
3808
+ encoding?: "column" | "xAxis" | "yAxis" | "angle" | "color" | "detail" | "tooltip" | "label" | "row" | undefined;
3807
3809
  })[];
3808
3810
  measures: (import("src/types").MeasureGroup | {
3809
3811
  id: string;
@@ -3821,7 +3823,7 @@ export declare class Builder implements VSeedBuilder {
3821
3823
  roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
3822
3824
  };
3823
3825
  alias?: string | undefined;
3824
- encoding?: "primaryYAxis" | "secondaryYAxis" | "xAxis" | "yAxis" | "angle" | "radius" | "size" | "color" | "label" | "tooltip" | undefined;
3826
+ encoding?: "xAxis" | "yAxis" | "angle" | "color" | "tooltip" | "label" | "primaryYAxis" | "secondaryYAxis" | "radius" | "size" | undefined;
3825
3827
  parentId?: string | undefined;
3826
3828
  })[];
3827
3829
  encoding: {
@@ -1,9 +1,9 @@
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: {
6
+ export declare const foldMeasures: (dataset: Dataset, measures: Measures, options: {
7
7
  measureId: string;
8
8
  measureName: string;
9
9
  measureValue: string;