@visactor/vseed 0.0.5 → 0.0.7
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.
- package/dist/builder/builder/build.d.ts +2 -2
- package/dist/builder/builder/buildSpec.d.ts +2 -2
- package/dist/builder/builder/builder.d.ts +8 -5
- package/dist/builder/register/chartType.d.ts +1 -0
- package/dist/dataReshape/constant.d.ts +1 -1
- package/dist/dataReshape/dataReshapeFor1D1M.d.ts +6 -1
- package/dist/dataReshape/dataReshapeFor2D1M.d.ts +6 -1
- package/dist/index.cjs +1174 -349
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +920 -104
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipeline/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/line copy.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/pie.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingPolar.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/encoding/{encodingCartesian.d.ts → encodingXY copy.d.ts } +0 -1
- package/dist/pipeline/advanced/pipes/encoding/encodingXY.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/encoding/index.d.ts +3 -1
- package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/pivot/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/pivot/pivotAdapter.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/reshape/index.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo1D1M.d.ts +8 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo2D1M.d.ts +8 -0
- package/dist/pipeline/spec/pipeline/area.d.ts +1 -2
- package/dist/pipeline/spec/pipeline/areaPercent.d.ts +1 -2
- package/dist/pipeline/spec/pipeline/column.d.ts +1 -2
- package/dist/pipeline/spec/pipeline/index.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/pie.d.ts +2 -0
- package/dist/pipeline/spec/pipes/dataset/datasetPivot.d.ts +3 -0
- package/dist/pipeline/spec/pipes/dataset/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/init/index.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/line copy.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/pie.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/pivot.d.ts +4 -0
- package/dist/pipeline/spec/pipes/legend/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/legend/pivotLegend.d.ts +2 -0
- package/dist/pipeline/spec/pipes/pivotChart/index.d.ts +5 -0
- package/dist/pipeline/spec/pipes/pivotChart/pivotAdapter.d.ts +2 -0
- package/dist/pipeline/spec/pipes/pivotChart/pivotColumnDimensions.d.ts +2 -0
- package/dist/pipeline/spec/pipes/pivotChart/pivotGridStyle copy.d.ts +2 -0
- package/dist/pipeline/spec/pipes/pivotChart/pivotGridStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/pivotChart/pivotIndicators.d.ts +4 -0
- package/dist/pipeline/spec/pipes/pivotChart/pivotRowDimensions copy.d.ts +2 -0
- package/dist/pipeline/spec/pipes/pivotChart/pivotRowDimensions.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +37 -1
- package/dist/pipeline/utils/index.d.ts +1 -1
- package/dist/types/advancedVSeed.d.ts +3 -2
- package/dist/types/builder/builder.d.ts +3 -3
- package/dist/types/builder/index.d.ts +1 -0
- package/dist/types/builder/spec.d.ts +3 -0
- package/dist/types/pipeline/spec/spec.d.ts +2 -2
- package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +3 -2
- package/dist/types/properties/datasetReshapeInfo/index.d.ts +1 -1
- package/package.json +1 -1
@@ -1,3 +1,3 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Spec } from '../../types';
|
2
2
|
import type { Builder } from './builder';
|
3
|
-
export declare const build: (builder: Builder) =>
|
3
|
+
export declare const build: (builder: Builder) => Spec;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
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) =>
|
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("
|
7
|
-
buildSpec: (advanced: AdvancedVSeed) => import("
|
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;
|
@@ -8,3 +8,4 @@ export declare const registerBarPercent: () => void;
|
|
8
8
|
export declare const registerColumnPercent: () => void;
|
9
9
|
export declare const registerColumnParallel: () => void;
|
10
10
|
export declare const registerBarParallel: () => void;
|
11
|
+
export declare const registerPie: () => void;
|
@@ -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
|
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;
|