@visactor/vseed 0.0.5 → 0.0.6

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 (40) hide show
  1. package/dist/builder/builder/build.d.ts +2 -2
  2. package/dist/builder/builder/buildSpec.d.ts +2 -2
  3. package/dist/builder/builder/builder.d.ts +8 -5
  4. package/dist/dataReshape/constant.d.ts +1 -1
  5. package/dist/dataReshape/dataReshapeFor1D1M.d.ts +6 -1
  6. package/dist/dataReshape/dataReshapeFor2D1M.d.ts +6 -1
  7. package/dist/index.cjs +759 -348
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +518 -107
  10. package/dist/index.js.map +1 -1
  11. package/dist/pipeline/advanced/pipes/encoding/{encodingCartesian.d.ts → encodingXY.d.ts} +0 -1
  12. package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts +2 -0
  13. package/dist/pipeline/advanced/pipes/encoding/index.d.ts +2 -1
  14. package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
  15. package/dist/pipeline/advanced/pipes/pivot/index.d.ts +1 -0
  16. package/dist/pipeline/advanced/pipes/pivot/pivotAdapter.d.ts +2 -0
  17. package/dist/pipeline/advanced/pipes/reshape/index.d.ts +2 -0
  18. package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo1D1M.d.ts +8 -0
  19. package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo2D1M.d.ts +8 -0
  20. package/dist/pipeline/spec/pipeline/area.d.ts +1 -2
  21. package/dist/pipeline/spec/pipeline/areaPercent.d.ts +1 -2
  22. package/dist/pipeline/spec/pipeline/column.d.ts +1 -2
  23. package/dist/pipeline/spec/pipes/dataset/datasetPivot.d.ts +3 -0
  24. package/dist/pipeline/spec/pipes/dataset/index.d.ts +1 -0
  25. package/dist/pipeline/spec/pipes/index.d.ts +1 -0
  26. package/dist/pipeline/spec/pipes/init/index.d.ts +1 -0
  27. package/dist/pipeline/spec/pipes/init/pivot.d.ts +4 -0
  28. package/dist/pipeline/spec/pipes/legend/index.d.ts +1 -0
  29. package/dist/pipeline/spec/pipes/legend/pivotLegend.d.ts +2 -0
  30. package/dist/pipeline/spec/pipes/pivotChart/index.d.ts +2 -0
  31. package/dist/pipeline/spec/pipes/pivotChart/pivotAdapter.d.ts +2 -0
  32. package/dist/pipeline/spec/pipes/pivotChart/pivotIndicators.d.ts +4 -0
  33. package/dist/types/advancedVSeed.d.ts +3 -2
  34. package/dist/types/builder/builder.d.ts +3 -3
  35. package/dist/types/builder/index.d.ts +1 -0
  36. package/dist/types/builder/spec.d.ts +3 -0
  37. package/dist/types/pipeline/spec/spec.d.ts +2 -2
  38. package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +3 -2
  39. package/dist/types/properties/datasetReshapeInfo/index.d.ts +1 -1
  40. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
- import type { ISpec } from '@visactor/vchart';
1
+ import type { Spec } from '../../types';
2
2
  import type { Builder } from './builder';
3
- export declare const build: (builder: Builder) => ISpec;
3
+ export declare const build: (builder: Builder) => Spec;
@@ -1,4 +1,4 @@
1
- import type { ISpec } from '@visactor/vchart';
1
+ import type { Spec } from '../../types';
2
2
  import type { Builder } from './builder';
3
3
  import type { AdvancedVSeed } from '../../types';
4
- export declare const buildSpec: (builder: Builder, advancedVSeed: AdvancedVSeed) => ISpec;
4
+ export declare const buildSpec: (builder: Builder, advancedVSeed: AdvancedVSeed) => Spec;
@@ -3,12 +3,13 @@ export declare class Builder implements VSeedBuilder {
3
3
  private _vseed;
4
4
  private _advancedVSeed;
5
5
  constructor(vseed: VSeed);
6
- build: () => import("@visactor/vchart").ISpec;
7
- buildSpec: (advanced: AdvancedVSeed) => import("@visactor/vchart").ISpec;
6
+ build: () => import("../../types").Spec;
7
+ buildSpec: (advanced: AdvancedVSeed) => import("../../types").Spec;
8
8
  buildAdvanced: () => {
9
9
  chartType: "table" | "pivotTable" | "line" | "column" | "columnPercent" | "columnParallel" | "bar" | "barPercent" | "barParallel" | "area" | "areaPercent" | "rose" | "pie" | "donut" | "dualAxis";
10
10
  dataset: Record<string | number, any>[];
11
11
  datasetReshapeInfo: {
12
+ id: string;
12
13
  foldInfo: {
13
14
  foldMap: Record<string, string | undefined>;
14
15
  measureId: string;
@@ -19,7 +20,7 @@ export declare class Builder implements VSeedBuilder {
19
20
  colorItems: string[];
20
21
  groupName: string;
21
22
  };
22
- };
23
+ }[];
23
24
  encoding: {
24
25
  x?: string[] | undefined;
25
26
  y?: string[] | undefined;
@@ -171,6 +172,7 @@ export declare class Builder implements VSeedBuilder {
171
172
  chartType: "table" | "pivotTable" | "line" | "column" | "columnPercent" | "columnParallel" | "bar" | "barPercent" | "barParallel" | "area" | "areaPercent" | "rose" | "pie" | "donut" | "dualAxis";
172
173
  dataset: Record<string | number, any>[];
173
174
  datasetReshapeInfo: {
175
+ id: string;
174
176
  foldInfo: {
175
177
  foldMap: Record<string, string | undefined>;
176
178
  measureId: string;
@@ -181,7 +183,7 @@ export declare class Builder implements VSeedBuilder {
181
183
  colorItems: string[];
182
184
  groupName: string;
183
185
  };
184
- };
186
+ }[];
185
187
  encoding: {
186
188
  x?: string[] | undefined;
187
189
  y?: string[] | undefined;
@@ -283,6 +285,7 @@ export declare class Builder implements VSeedBuilder {
283
285
  chartType: "table" | "pivotTable" | "line" | "column" | "columnPercent" | "columnParallel" | "bar" | "barPercent" | "barParallel" | "area" | "areaPercent" | "rose" | "pie" | "donut" | "dualAxis";
284
286
  dataset: Record<string | number, any>[];
285
287
  datasetReshapeInfo: {
288
+ id: string;
286
289
  foldInfo: {
287
290
  foldMap: Record<string, string | undefined>;
288
291
  measureId: string;
@@ -293,7 +296,7 @@ export declare class Builder implements VSeedBuilder {
293
296
  colorItems: string[];
294
297
  groupName: string;
295
298
  };
296
- };
299
+ }[];
297
300
  encoding: {
298
301
  x?: string[] | undefined;
299
302
  y?: string[] | undefined;
@@ -1,5 +1,5 @@
1
1
  export declare const FoldMeasureName = "__MeaName__";
2
2
  export declare const FoldMeasureValue = "__MeaValue__";
3
3
  export declare const FoldMeasureId = "__MeaId__";
4
- export declare const FoldDimensionGroup = "__DimGroup__";
4
+ export declare const UnfoldDimensionGroup = "__DimGroup__";
5
5
  export declare const Separator = "-";
@@ -6,7 +6,12 @@ import type { Dataset, Dimension, FoldInfo, Measure, UnfoldInfo } from '../types
6
6
  * @param measures
7
7
  * @returns
8
8
  */
9
- export declare const dataReshapeFor1D1M: (dataset: Dataset, dimensions: Dimension[], measures: Measure[]) => {
9
+ export declare const dataReshapeFor1D1M: (dataset: Dataset, dimensions: Dimension[], measures: Measure[], options?: {
10
+ foldMeasureId?: string;
11
+ foldMeasureName?: string;
12
+ foldMeasureValue?: string;
13
+ unfoldDimensionGroup?: string;
14
+ }) => {
10
15
  dataset: Dataset;
11
16
  foldInfo: FoldInfo;
12
17
  unfoldInfo: UnfoldInfo;
@@ -6,7 +6,12 @@ import type { Dataset, Dimension, FoldInfo, Measure, UnfoldInfo } from '../types
6
6
  * @param measures
7
7
  * @returns
8
8
  */
9
- export declare const dataReshapeFor2D1M: (dataset: Dataset, dimensions: Dimension[], measures: Measure[]) => {
9
+ export declare const dataReshapeFor2D1M: (dataset: Dataset, dimensions: Dimension[], measures: Measure[], options?: {
10
+ foldMeasureId?: string;
11
+ foldMeasureName?: string;
12
+ foldMeasureValue?: string;
13
+ unfoldDimensionGroup?: string;
14
+ }) => {
10
15
  dataset: Dataset;
11
16
  foldInfo: FoldInfo;
12
17
  unfoldInfo: UnfoldInfo;