@visactor/vseed 0.3.10 → 0.3.11
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/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +1428 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +3 -2
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/heatmap.js +3 -2
- package/dist/esm/pipeline/advanced/chart/pipes/config/heatmap.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +3 -2
- package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerAdapter.js +50 -5
- package/dist/esm/pipeline/spec/chart/pipes/player/playerAdapter.js.map +1 -1
- package/dist/esm/theme/common/index.d.ts +1 -0
- package/dist/esm/theme/common/index.js +1 -0
- package/dist/esm/theme/common/player.d.ts +3 -0
- package/dist/esm/theme/common/player.js +39 -0
- package/dist/esm/theme/common/player.js.map +1 -0
- package/dist/esm/theme/dark/dark.js +33 -15
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +18 -1
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +646 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +14 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +14 -0
- package/dist/esm/types/properties/config/area.d.ts +38 -0
- package/dist/esm/types/properties/config/area.js +2 -0
- package/dist/esm/types/properties/config/area.js.map +1 -1
- package/dist/esm/types/properties/config/bar.d.ts +57 -0
- package/dist/esm/types/properties/config/bar.js +2 -0
- package/dist/esm/types/properties/config/bar.js.map +1 -1
- package/dist/esm/types/properties/config/column.d.ts +57 -0
- package/dist/esm/types/properties/config/column.js +2 -0
- package/dist/esm/types/properties/config/column.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +323 -0
- package/dist/esm/types/properties/config/funnel.d.ts +19 -0
- package/dist/esm/types/properties/config/funnel.js +2 -0
- package/dist/esm/types/properties/config/funnel.js.map +1 -1
- package/dist/esm/types/properties/config/heatmap.d.ts +19 -0
- package/dist/esm/types/properties/config/heatmap.js +2 -0
- package/dist/esm/types/properties/config/heatmap.js.map +1 -1
- package/dist/esm/types/properties/config/line.d.ts +19 -0
- package/dist/esm/types/properties/config/line.js +3 -1
- package/dist/esm/types/properties/config/line.js.map +1 -1
- package/dist/esm/types/properties/config/pie.d.ts +57 -0
- package/dist/esm/types/properties/config/pie.js +2 -0
- package/dist/esm/types/properties/config/pie.js.map +1 -1
- package/dist/esm/types/properties/config/player/player.d.ts +54 -0
- package/dist/esm/types/properties/config/player/zPlayer.d.ts +20 -0
- package/dist/esm/types/properties/config/player/zPlayer.js +23 -0
- package/dist/esm/types/properties/config/player/zPlayer.js.map +1 -0
- package/dist/esm/types/properties/config/rose.d.ts +38 -0
- package/dist/esm/types/properties/config/rose.js +2 -0
- package/dist/esm/types/properties/config/rose.js.map +1 -1
- package/dist/esm/types/properties/config/scatter.d.ts +19 -0
- package/dist/esm/types/properties/config/scatter.js +2 -0
- package/dist/esm/types/properties/config/scatter.js.map +1 -1
- package/dist/esm/types/properties/index.d.ts +1 -1
- package/dist/esm/types/properties/index.js +1 -1
- package/dist/esm/types/properties/theme/customTheme.d.ts +646 -0
- package/dist/esm/types/zVseed.d.ts +28 -0
- package/dist/umd/index.js +178 -36
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/types/properties/player/player.d.ts +0 -22
- package/dist/esm/types/properties/player/zPlayer.d.ts +0 -6
- package/dist/esm/types/properties/player/zPlayer.js +0 -9
- package/dist/esm/types/properties/player/zPlayer.js.map +0 -1
- /package/dist/esm/types/properties/{player → config/player}/index.d.ts +0 -0
- /package/dist/esm/types/properties/{player → config/player}/index.js +0 -0
- /package/dist/esm/types/properties/{player → config/player}/player.js +0 -0
|
@@ -1940,6 +1940,20 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1940
1940
|
field: z.ZodString;
|
|
1941
1941
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
1942
1942
|
autoPlay: z.ZodOptional<z.ZodBoolean>;
|
|
1943
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
1944
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
1945
|
+
left: "left";
|
|
1946
|
+
top: "top";
|
|
1947
|
+
right: "right";
|
|
1948
|
+
bottom: "bottom";
|
|
1949
|
+
}>>;
|
|
1950
|
+
railColor: z.ZodOptional<z.ZodString>;
|
|
1951
|
+
trackColor: z.ZodOptional<z.ZodString>;
|
|
1952
|
+
sliderHandleColor: z.ZodOptional<z.ZodString>;
|
|
1953
|
+
startButtonColor: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
pauseButtonColor: z.ZodOptional<z.ZodString>;
|
|
1955
|
+
backwardButtonColor: z.ZodOptional<z.ZodString>;
|
|
1956
|
+
forwardButtonColor: z.ZodOptional<z.ZodString>;
|
|
1943
1957
|
}, z.core.$strip>>>;
|
|
1944
1958
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
1945
1959
|
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -3176,6 +3190,20 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3176
3190
|
field: z.ZodString;
|
|
3177
3191
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
3178
3192
|
autoPlay: z.ZodOptional<z.ZodBoolean>;
|
|
3193
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
3194
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
3195
|
+
left: "left";
|
|
3196
|
+
top: "top";
|
|
3197
|
+
right: "right";
|
|
3198
|
+
bottom: "bottom";
|
|
3199
|
+
}>>;
|
|
3200
|
+
railColor: z.ZodOptional<z.ZodString>;
|
|
3201
|
+
trackColor: z.ZodOptional<z.ZodString>;
|
|
3202
|
+
sliderHandleColor: z.ZodOptional<z.ZodString>;
|
|
3203
|
+
startButtonColor: z.ZodOptional<z.ZodString>;
|
|
3204
|
+
pauseButtonColor: z.ZodOptional<z.ZodString>;
|
|
3205
|
+
backwardButtonColor: z.ZodOptional<z.ZodString>;
|
|
3206
|
+
forwardButtonColor: z.ZodOptional<z.ZodString>;
|
|
3179
3207
|
}, z.core.$strip>>>;
|
|
3180
3208
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
3181
3209
|
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
package/dist/umd/index.js
CHANGED
|
@@ -2703,11 +2703,12 @@
|
|
|
2703
2703
|
'yAxis',
|
|
2704
2704
|
'crosshairLine',
|
|
2705
2705
|
'brush',
|
|
2706
|
-
'dimensionLinkage'
|
|
2706
|
+
'dimensionLinkage',
|
|
2707
|
+
'player'
|
|
2707
2708
|
]);
|
|
2708
2709
|
const config = replaceNullToUndefined(pickedConfig);
|
|
2709
2710
|
result.config = {
|
|
2710
|
-
...result.config
|
|
2711
|
+
...result.config,
|
|
2711
2712
|
[chartType]: {
|
|
2712
2713
|
...config
|
|
2713
2714
|
}
|
|
@@ -2903,12 +2904,13 @@
|
|
|
2903
2904
|
};
|
|
2904
2905
|
const playerAdapter = (pipe)=>(spec, context)=>{
|
|
2905
2906
|
const { vseed, advancedVSeed } = context;
|
|
2906
|
-
const { datasetReshapeInfo } = advancedVSeed;
|
|
2907
|
-
const
|
|
2908
|
-
|
|
2907
|
+
const { datasetReshapeInfo, chartType } = advancedVSeed;
|
|
2908
|
+
const baseConfig = advancedVSeed.config[chartType];
|
|
2909
|
+
const { player } = baseConfig;
|
|
2910
|
+
if (!player || !baseConfig || isVTable(vseed) || chatType_isPivotChart(vseed)) return pipe(spec, context);
|
|
2909
2911
|
const id = datasetReshapeInfo[0].id;
|
|
2910
2912
|
const nextSpec = pipe(spec, context);
|
|
2911
|
-
const { field, autoPlay = true, interval = 1000, loop = false } = player;
|
|
2913
|
+
const { field, autoPlay = true, interval = 1000, loop = false, position, railColor, trackColor, sliderHandleColor, startButtonColor, pauseButtonColor, backwardButtonColor, forwardButtonColor } = player;
|
|
2912
2914
|
const dataGroups = chunk_HVPVHFDT_i(advancedVSeed.dataset, (item)=>item[field]);
|
|
2913
2915
|
const specs = Object.values(dataGroups).map((items)=>({
|
|
2914
2916
|
data: {
|
|
@@ -2924,8 +2926,52 @@
|
|
|
2924
2926
|
loop: loop,
|
|
2925
2927
|
alternate: false,
|
|
2926
2928
|
position: 'middle',
|
|
2929
|
+
orient: position,
|
|
2927
2930
|
type: 'discrete',
|
|
2928
|
-
specs
|
|
2931
|
+
specs,
|
|
2932
|
+
controller: {
|
|
2933
|
+
visible: true,
|
|
2934
|
+
start: {
|
|
2935
|
+
visible: true,
|
|
2936
|
+
style: {
|
|
2937
|
+
fill: startButtonColor
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
pause: {
|
|
2941
|
+
visible: true,
|
|
2942
|
+
style: {
|
|
2943
|
+
fill: pauseButtonColor
|
|
2944
|
+
}
|
|
2945
|
+
},
|
|
2946
|
+
backward: {
|
|
2947
|
+
visible: true,
|
|
2948
|
+
style: {
|
|
2949
|
+
fill: backwardButtonColor
|
|
2950
|
+
}
|
|
2951
|
+
},
|
|
2952
|
+
forward: {
|
|
2953
|
+
visible: true,
|
|
2954
|
+
style: {
|
|
2955
|
+
fill: forwardButtonColor
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
},
|
|
2959
|
+
slider: {
|
|
2960
|
+
visible: true,
|
|
2961
|
+
railStyle: {
|
|
2962
|
+
visible: true,
|
|
2963
|
+
fill: railColor
|
|
2964
|
+
},
|
|
2965
|
+
trackStyle: {
|
|
2966
|
+
visible: true,
|
|
2967
|
+
fill: trackColor
|
|
2968
|
+
},
|
|
2969
|
+
handlerStyle: {
|
|
2970
|
+
visible: true,
|
|
2971
|
+
fill: sliderHandleColor,
|
|
2972
|
+
lineWidth: 1
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2929
2975
|
}
|
|
2930
2976
|
};
|
|
2931
2977
|
};
|
|
@@ -5903,11 +5949,12 @@
|
|
|
5903
5949
|
'barMaxWidth',
|
|
5904
5950
|
'barGapInGroup',
|
|
5905
5951
|
'brush',
|
|
5906
|
-
'dimensionLinkage'
|
|
5952
|
+
'dimensionLinkage',
|
|
5953
|
+
'player'
|
|
5907
5954
|
]);
|
|
5908
5955
|
const config = replaceNullToUndefined(pickedConfig);
|
|
5909
5956
|
result.config = {
|
|
5910
|
-
...result.config
|
|
5957
|
+
...result.config,
|
|
5911
5958
|
[chartType]: {
|
|
5912
5959
|
...config
|
|
5913
5960
|
}
|
|
@@ -6816,11 +6863,12 @@
|
|
|
6816
6863
|
'label',
|
|
6817
6864
|
'legend',
|
|
6818
6865
|
'tooltip',
|
|
6866
|
+
'player',
|
|
6819
6867
|
'brush'
|
|
6820
6868
|
]);
|
|
6821
6869
|
const config = replaceNullToUndefined(pickedConfig);
|
|
6822
6870
|
result.config = {
|
|
6823
|
-
...result.config
|
|
6871
|
+
...result.config,
|
|
6824
6872
|
[chartType]: {
|
|
6825
6873
|
...config
|
|
6826
6874
|
}
|
|
@@ -8107,12 +8155,13 @@
|
|
|
8107
8155
|
'sizeRange',
|
|
8108
8156
|
'size',
|
|
8109
8157
|
'crosshairLine',
|
|
8158
|
+
'player',
|
|
8110
8159
|
'brush',
|
|
8111
8160
|
'dimensionLinkage'
|
|
8112
8161
|
]);
|
|
8113
8162
|
const config = replaceNullToUndefined(pickedConfig);
|
|
8114
8163
|
result.config = {
|
|
8115
|
-
...result.config
|
|
8164
|
+
...result.config,
|
|
8116
8165
|
[chartType]: {
|
|
8117
8166
|
...config
|
|
8118
8167
|
}
|
|
@@ -9253,7 +9302,7 @@
|
|
|
9253
9302
|
]);
|
|
9254
9303
|
const config = replaceNullToUndefined(pickedConfig);
|
|
9255
9304
|
result.config = {
|
|
9256
|
-
...result.config
|
|
9305
|
+
...result.config,
|
|
9257
9306
|
[chartType]: {
|
|
9258
9307
|
...config
|
|
9259
9308
|
}
|
|
@@ -11012,11 +11061,12 @@
|
|
|
11012
11061
|
'xAxis',
|
|
11013
11062
|
'yAxis',
|
|
11014
11063
|
'brush',
|
|
11015
|
-
'dimensionLinkage'
|
|
11064
|
+
'dimensionLinkage',
|
|
11065
|
+
'player'
|
|
11016
11066
|
]);
|
|
11017
11067
|
const config = replaceNullToUndefined(pickedConfig);
|
|
11018
11068
|
result.config = {
|
|
11019
|
-
...result.config
|
|
11069
|
+
...result.config,
|
|
11020
11070
|
[chartType]: {
|
|
11021
11071
|
...config
|
|
11022
11072
|
}
|
|
@@ -11317,7 +11367,7 @@
|
|
|
11317
11367
|
]);
|
|
11318
11368
|
const config = replaceNullToUndefined(pickedConfig);
|
|
11319
11369
|
result.config = {
|
|
11320
|
-
...result.config
|
|
11370
|
+
...result.config,
|
|
11321
11371
|
[chartType]: {
|
|
11322
11372
|
...config
|
|
11323
11373
|
}
|
|
@@ -12178,7 +12228,7 @@
|
|
|
12178
12228
|
}
|
|
12179
12229
|
};
|
|
12180
12230
|
result.config = {
|
|
12181
|
-
...result.config
|
|
12231
|
+
...result.config,
|
|
12182
12232
|
[chartType]: {
|
|
12183
12233
|
...config
|
|
12184
12234
|
}
|
|
@@ -13488,6 +13538,40 @@
|
|
|
13488
13538
|
res.hoverHeaderInlineBackgroundColor = '#4b4f5446';
|
|
13489
13539
|
return res;
|
|
13490
13540
|
};
|
|
13541
|
+
const getDarkPlayer = ()=>{
|
|
13542
|
+
const primaryColor = getDarkColorScheme()[0];
|
|
13543
|
+
const railColor = getDarkColorLegend().railBackgroundColor;
|
|
13544
|
+
return {
|
|
13545
|
+
interval: 1000,
|
|
13546
|
+
loop: false,
|
|
13547
|
+
autoPlay: true,
|
|
13548
|
+
position: 'bottom',
|
|
13549
|
+
railColor,
|
|
13550
|
+
trackColor: primaryColor,
|
|
13551
|
+
sliderHandleColor: primaryColor,
|
|
13552
|
+
startButtonColor: primaryColor,
|
|
13553
|
+
pauseButtonColor: primaryColor,
|
|
13554
|
+
backwardButtonColor: primaryColor,
|
|
13555
|
+
forwardButtonColor: primaryColor
|
|
13556
|
+
};
|
|
13557
|
+
};
|
|
13558
|
+
const getLightPlayer = ()=>{
|
|
13559
|
+
const primaryColor = getLightColorScheme()[0];
|
|
13560
|
+
const railColor = getLightColorLegend().railBackgroundColor;
|
|
13561
|
+
return {
|
|
13562
|
+
interval: 1000,
|
|
13563
|
+
loop: false,
|
|
13564
|
+
autoPlay: true,
|
|
13565
|
+
position: 'bottom',
|
|
13566
|
+
railColor,
|
|
13567
|
+
trackColor: primaryColor,
|
|
13568
|
+
sliderHandleColor: primaryColor,
|
|
13569
|
+
startButtonColor: primaryColor,
|
|
13570
|
+
pauseButtonColor: primaryColor,
|
|
13571
|
+
backwardButtonColor: primaryColor,
|
|
13572
|
+
forwardButtonColor: primaryColor
|
|
13573
|
+
};
|
|
13574
|
+
};
|
|
13491
13575
|
const getDefaultTooltip = ()=>({
|
|
13492
13576
|
enable: true,
|
|
13493
13577
|
borderRadius: 12,
|
|
@@ -13906,6 +13990,7 @@
|
|
|
13906
13990
|
brush: getLightBrushConfig()
|
|
13907
13991
|
};
|
|
13908
13992
|
const tableConfig = getLightTableConfig();
|
|
13993
|
+
const player = getLightPlayer();
|
|
13909
13994
|
return {
|
|
13910
13995
|
config: {
|
|
13911
13996
|
table: tableConfig,
|
|
@@ -13915,6 +14000,7 @@
|
|
|
13915
14000
|
xAxis: bandAxis,
|
|
13916
14001
|
yAxis: linearAxis,
|
|
13917
14002
|
crosshairLine,
|
|
14003
|
+
player,
|
|
13918
14004
|
pivotGrid: getLightPivotChartGridConfig(),
|
|
13919
14005
|
annotation: getLightAnnotation()
|
|
13920
14006
|
},
|
|
@@ -13923,6 +14009,7 @@
|
|
|
13923
14009
|
xAxis: bandAxis,
|
|
13924
14010
|
yAxis: linearAxis,
|
|
13925
14011
|
crosshairRect,
|
|
14012
|
+
player,
|
|
13926
14013
|
stackCornerRadius: [
|
|
13927
14014
|
4,
|
|
13928
14015
|
4,
|
|
@@ -13938,6 +14025,7 @@
|
|
|
13938
14025
|
xAxis: bandAxis,
|
|
13939
14026
|
yAxis: linearAxis,
|
|
13940
14027
|
crosshairRect,
|
|
14028
|
+
player,
|
|
13941
14029
|
stackCornerRadius: [
|
|
13942
14030
|
4,
|
|
13943
14031
|
4,
|
|
@@ -13953,6 +14041,7 @@
|
|
|
13953
14041
|
yAxis: {
|
|
13954
14042
|
...linearAxis
|
|
13955
14043
|
},
|
|
14044
|
+
player,
|
|
13956
14045
|
crosshairRect,
|
|
13957
14046
|
stackCornerRadius: [
|
|
13958
14047
|
4,
|
|
@@ -13968,6 +14057,7 @@
|
|
|
13968
14057
|
xAxis: linearAxis,
|
|
13969
14058
|
yAxis: barBandAxis,
|
|
13970
14059
|
crosshairRect,
|
|
14060
|
+
player,
|
|
13971
14061
|
stackCornerRadius: [
|
|
13972
14062
|
0,
|
|
13973
14063
|
4,
|
|
@@ -13998,6 +14088,7 @@
|
|
|
13998
14088
|
},
|
|
13999
14089
|
yAxis: barBandAxis,
|
|
14000
14090
|
crosshairRect,
|
|
14091
|
+
player,
|
|
14001
14092
|
stackCornerRadius: [
|
|
14002
14093
|
0,
|
|
14003
14094
|
4,
|
|
@@ -14012,6 +14103,7 @@
|
|
|
14012
14103
|
xAxis: bandAxis,
|
|
14013
14104
|
yAxis: linearAxis,
|
|
14014
14105
|
crosshairLine,
|
|
14106
|
+
player,
|
|
14015
14107
|
pivotGrid: getLightPivotChartGridConfig(),
|
|
14016
14108
|
annotation: getLightAnnotation()
|
|
14017
14109
|
},
|
|
@@ -14021,6 +14113,7 @@
|
|
|
14021
14113
|
yAxis: {
|
|
14022
14114
|
...linearAxis
|
|
14023
14115
|
},
|
|
14116
|
+
player,
|
|
14024
14117
|
crosshairLine,
|
|
14025
14118
|
pivotGrid: getLightPivotChartGridConfig(),
|
|
14026
14119
|
annotation: getLightAnnotation()
|
|
@@ -14051,6 +14144,7 @@
|
|
|
14051
14144
|
showValue: false,
|
|
14052
14145
|
showValuePercent: false
|
|
14053
14146
|
},
|
|
14147
|
+
player,
|
|
14054
14148
|
pivotGrid: getLightPivotChartGridConfig(),
|
|
14055
14149
|
annotation: getLightAnnotation(),
|
|
14056
14150
|
regressionLine: getLightRegressionLine()
|
|
@@ -14077,6 +14171,7 @@
|
|
|
14077
14171
|
labelLayout: 'arc',
|
|
14078
14172
|
showDimension: true
|
|
14079
14173
|
},
|
|
14174
|
+
player,
|
|
14080
14175
|
pivotGrid: getLightPivotChartGridConfig()
|
|
14081
14176
|
},
|
|
14082
14177
|
donut: {
|
|
@@ -14087,10 +14182,12 @@
|
|
|
14087
14182
|
labelLayout: 'arc',
|
|
14088
14183
|
showDimension: true
|
|
14089
14184
|
},
|
|
14185
|
+
player,
|
|
14090
14186
|
pivotGrid: getLightPivotChartGridConfig()
|
|
14091
14187
|
},
|
|
14092
14188
|
radar: {
|
|
14093
14189
|
...baseConfig,
|
|
14190
|
+
player,
|
|
14094
14191
|
pivotGrid: getLightPivotChartGridConfig()
|
|
14095
14192
|
},
|
|
14096
14193
|
rose: {
|
|
@@ -14100,6 +14197,7 @@
|
|
|
14100
14197
|
showValuePercent: true,
|
|
14101
14198
|
showDimension: true
|
|
14102
14199
|
},
|
|
14200
|
+
player,
|
|
14103
14201
|
pivotGrid: getLightPivotChartGridConfig()
|
|
14104
14202
|
},
|
|
14105
14203
|
roseParallel: {
|
|
@@ -14109,12 +14207,14 @@
|
|
|
14109
14207
|
showValuePercent: true,
|
|
14110
14208
|
showDimension: true
|
|
14111
14209
|
},
|
|
14210
|
+
player,
|
|
14112
14211
|
pivotGrid: getLightPivotChartGridConfig()
|
|
14113
14212
|
},
|
|
14114
14213
|
funnel: {
|
|
14115
14214
|
...baseConfig,
|
|
14116
14215
|
label: getFunnelLightLabel(),
|
|
14117
14216
|
transform: getLightFunnelTransformTheme(),
|
|
14217
|
+
player,
|
|
14118
14218
|
pivotGrid: getLightPivotChartGridConfig()
|
|
14119
14219
|
},
|
|
14120
14220
|
heatmap: {
|
|
@@ -14126,6 +14226,7 @@
|
|
|
14126
14226
|
...baseConfig.label,
|
|
14127
14227
|
labelColorSmartInvert: true
|
|
14128
14228
|
},
|
|
14229
|
+
player,
|
|
14129
14230
|
cell: getLightHeatmapCellTheme(),
|
|
14130
14231
|
pivotGrid: getLightPivotChartGridConfig()
|
|
14131
14232
|
},
|
|
@@ -14177,6 +14278,7 @@
|
|
|
14177
14278
|
tooltip: getDarkTooltip(),
|
|
14178
14279
|
brush: getDarkBrushConfig()
|
|
14179
14280
|
};
|
|
14281
|
+
const player = getDarkPlayer();
|
|
14180
14282
|
const tableConfig = getDarkTableConfig();
|
|
14181
14283
|
return {
|
|
14182
14284
|
config: {
|
|
@@ -14187,6 +14289,7 @@
|
|
|
14187
14289
|
xAxis: bandAxis,
|
|
14188
14290
|
yAxis: linearAxis,
|
|
14189
14291
|
crosshairLine: crosshairLine,
|
|
14292
|
+
player,
|
|
14190
14293
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14191
14294
|
annotation: getDarkAnnotation()
|
|
14192
14295
|
},
|
|
@@ -14203,6 +14306,7 @@
|
|
|
14203
14306
|
],
|
|
14204
14307
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14205
14308
|
annotation: getDarkAnnotation(),
|
|
14309
|
+
player,
|
|
14206
14310
|
regressionLine: getDarkRegressionLine()
|
|
14207
14311
|
},
|
|
14208
14312
|
columnParallel: {
|
|
@@ -14217,7 +14321,8 @@
|
|
|
14217
14321
|
0
|
|
14218
14322
|
],
|
|
14219
14323
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14220
|
-
annotation: getDarkAnnotation()
|
|
14324
|
+
annotation: getDarkAnnotation(),
|
|
14325
|
+
player
|
|
14221
14326
|
},
|
|
14222
14327
|
columnPercent: {
|
|
14223
14328
|
...baseConfig,
|
|
@@ -14231,7 +14336,8 @@
|
|
|
14231
14336
|
0
|
|
14232
14337
|
],
|
|
14233
14338
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14234
|
-
annotation: getDarkAnnotation()
|
|
14339
|
+
annotation: getDarkAnnotation(),
|
|
14340
|
+
player
|
|
14235
14341
|
},
|
|
14236
14342
|
bar: {
|
|
14237
14343
|
...baseConfig,
|
|
@@ -14245,7 +14351,8 @@
|
|
|
14245
14351
|
0
|
|
14246
14352
|
],
|
|
14247
14353
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14248
|
-
annotation: getDarkAnnotation()
|
|
14354
|
+
annotation: getDarkAnnotation(),
|
|
14355
|
+
player
|
|
14249
14356
|
},
|
|
14250
14357
|
barParallel: {
|
|
14251
14358
|
...baseConfig,
|
|
@@ -14259,7 +14366,8 @@
|
|
|
14259
14366
|
0
|
|
14260
14367
|
],
|
|
14261
14368
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14262
|
-
annotation: getDarkAnnotation()
|
|
14369
|
+
annotation: getDarkAnnotation(),
|
|
14370
|
+
player
|
|
14263
14371
|
},
|
|
14264
14372
|
barPercent: {
|
|
14265
14373
|
...baseConfig,
|
|
@@ -14273,7 +14381,8 @@
|
|
|
14273
14381
|
0
|
|
14274
14382
|
],
|
|
14275
14383
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14276
|
-
annotation: getDarkAnnotation()
|
|
14384
|
+
annotation: getDarkAnnotation(),
|
|
14385
|
+
player
|
|
14277
14386
|
},
|
|
14278
14387
|
area: {
|
|
14279
14388
|
...baseConfig,
|
|
@@ -14281,7 +14390,8 @@
|
|
|
14281
14390
|
yAxis: linearAxis,
|
|
14282
14391
|
crosshairLine: crosshairLine,
|
|
14283
14392
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14284
|
-
annotation: getDarkAnnotation()
|
|
14393
|
+
annotation: getDarkAnnotation(),
|
|
14394
|
+
player
|
|
14285
14395
|
},
|
|
14286
14396
|
areaPercent: {
|
|
14287
14397
|
...baseConfig,
|
|
@@ -14289,7 +14399,8 @@
|
|
|
14289
14399
|
yAxis: linearAxis,
|
|
14290
14400
|
crosshairLine: crosshairLine,
|
|
14291
14401
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14292
|
-
annotation: getDarkAnnotation()
|
|
14402
|
+
annotation: getDarkAnnotation(),
|
|
14403
|
+
player
|
|
14293
14404
|
},
|
|
14294
14405
|
scatter: {
|
|
14295
14406
|
...baseConfig,
|
|
@@ -14319,7 +14430,8 @@
|
|
|
14319
14430
|
},
|
|
14320
14431
|
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14321
14432
|
annotation: getDarkAnnotation(),
|
|
14322
|
-
regressionLine: getDarkRegressionLine()
|
|
14433
|
+
regressionLine: getDarkRegressionLine(),
|
|
14434
|
+
player
|
|
14323
14435
|
},
|
|
14324
14436
|
dualAxis: {
|
|
14325
14437
|
...baseConfig,
|
|
@@ -14343,7 +14455,8 @@
|
|
|
14343
14455
|
labelLayout: 'arc',
|
|
14344
14456
|
showDimension: true
|
|
14345
14457
|
},
|
|
14346
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
14458
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14459
|
+
player
|
|
14347
14460
|
},
|
|
14348
14461
|
donut: {
|
|
14349
14462
|
...baseConfig,
|
|
@@ -14353,11 +14466,13 @@
|
|
|
14353
14466
|
labelLayout: 'arc',
|
|
14354
14467
|
showDimension: true
|
|
14355
14468
|
},
|
|
14356
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
14469
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14470
|
+
player
|
|
14357
14471
|
},
|
|
14358
14472
|
radar: {
|
|
14359
14473
|
...baseConfig,
|
|
14360
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
14474
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14475
|
+
player
|
|
14361
14476
|
},
|
|
14362
14477
|
rose: {
|
|
14363
14478
|
...baseConfig,
|
|
@@ -14366,7 +14481,8 @@
|
|
|
14366
14481
|
showValuePercent: true,
|
|
14367
14482
|
showDimension: true
|
|
14368
14483
|
},
|
|
14369
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
14484
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14485
|
+
player
|
|
14370
14486
|
},
|
|
14371
14487
|
roseParallel: {
|
|
14372
14488
|
...baseConfig,
|
|
@@ -14375,13 +14491,15 @@
|
|
|
14375
14491
|
showValuePercent: true,
|
|
14376
14492
|
showDimension: true
|
|
14377
14493
|
},
|
|
14378
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
14494
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14495
|
+
player
|
|
14379
14496
|
},
|
|
14380
14497
|
funnel: {
|
|
14381
14498
|
...baseConfig,
|
|
14382
14499
|
label: getFunnelDarkLabel(),
|
|
14383
14500
|
transform: getDarkFunnelTransformTheme(),
|
|
14384
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
14501
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
14502
|
+
player
|
|
14385
14503
|
},
|
|
14386
14504
|
heatmap: {
|
|
14387
14505
|
...baseConfig,
|
|
@@ -14392,6 +14510,7 @@
|
|
|
14392
14510
|
...baseConfig.label,
|
|
14393
14511
|
labelColorSmartInvert: true
|
|
14394
14512
|
},
|
|
14513
|
+
player,
|
|
14395
14514
|
cell: getDarkHeatmapCellTheme(),
|
|
14396
14515
|
pivotGrid: getDarkPivotChartGridConfig()
|
|
14397
14516
|
},
|
|
@@ -18630,6 +18749,25 @@
|
|
|
18630
18749
|
inBrushStyle: zBrushStyleConfig.optional(),
|
|
18631
18750
|
outOfBrushStyle: zBrushStyleConfig.optional()
|
|
18632
18751
|
});
|
|
18752
|
+
const zPlayer = schemas_object({
|
|
18753
|
+
field: schemas_string(),
|
|
18754
|
+
interval: schemas_number().optional(),
|
|
18755
|
+
autoPlay: schemas_boolean().optional(),
|
|
18756
|
+
loop: schemas_boolean().optional(),
|
|
18757
|
+
position: schemas_enum([
|
|
18758
|
+
'top',
|
|
18759
|
+
'bottom',
|
|
18760
|
+
'left',
|
|
18761
|
+
'right'
|
|
18762
|
+
]).optional(),
|
|
18763
|
+
railColor: schemas_string().optional(),
|
|
18764
|
+
trackColor: schemas_string().optional(),
|
|
18765
|
+
sliderHandleColor: schemas_string().optional(),
|
|
18766
|
+
startButtonColor: schemas_string().optional(),
|
|
18767
|
+
pauseButtonColor: schemas_string().optional(),
|
|
18768
|
+
backwardButtonColor: schemas_string().optional(),
|
|
18769
|
+
forwardButtonColor: schemas_string().optional()
|
|
18770
|
+
});
|
|
18633
18771
|
const zLineConfig = schemas_object({
|
|
18634
18772
|
backgroundColor: zBackgroundColor.nullish(),
|
|
18635
18773
|
label: zLabel.nullish(),
|
|
@@ -18642,7 +18780,8 @@
|
|
|
18642
18780
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
18643
18781
|
annotation: zAnnotationConfig.nullish(),
|
|
18644
18782
|
dimensionLinkage: zDimensionLinkage.nullish(),
|
|
18645
|
-
brush: zBrushConfig.nullish()
|
|
18783
|
+
brush: zBrushConfig.nullish(),
|
|
18784
|
+
player: zPlayer.nullish()
|
|
18646
18785
|
});
|
|
18647
18786
|
const zStackCornerRadius = schemas_number().or(schemas_array(schemas_number())).default([
|
|
18648
18787
|
3,
|
|
@@ -18691,6 +18830,7 @@
|
|
|
18691
18830
|
color: zColor.nullish(),
|
|
18692
18831
|
tooltip: zTooltip.nullish(),
|
|
18693
18832
|
legend: zLegend.nullish(),
|
|
18833
|
+
player: zPlayer.nullish(),
|
|
18694
18834
|
xAxis: zXBandAxis.nullish(),
|
|
18695
18835
|
yAxis: zYLinearAxis.nullish(),
|
|
18696
18836
|
crosshairRect: zCrosshairRect.nullish(),
|
|
@@ -18712,6 +18852,7 @@
|
|
|
18712
18852
|
color: zColor.nullish(),
|
|
18713
18853
|
tooltip: zTooltip.nullish(),
|
|
18714
18854
|
legend: zLegend.nullish(),
|
|
18855
|
+
player: zPlayer.nullish(),
|
|
18715
18856
|
xAxis: zXLinearAxis.nullish(),
|
|
18716
18857
|
yAxis: zYBandAxis.nullish(),
|
|
18717
18858
|
crosshairRect: zCrosshairRect.nullish(),
|
|
@@ -18729,6 +18870,7 @@
|
|
|
18729
18870
|
color: zColor.nullish(),
|
|
18730
18871
|
tooltip: zTooltip.nullish(),
|
|
18731
18872
|
legend: zLegend.nullish(),
|
|
18873
|
+
player: zPlayer.nullish(),
|
|
18732
18874
|
xAxis: zXBandAxis.nullish(),
|
|
18733
18875
|
yAxis: zYLinearAxis.nullish(),
|
|
18734
18876
|
crosshairLine: zCrosshairLine.nullish(),
|
|
@@ -18744,6 +18886,7 @@
|
|
|
18744
18886
|
color: zColor.nullish(),
|
|
18745
18887
|
tooltip: zTooltip.nullish(),
|
|
18746
18888
|
legend: zLegend.nullish(),
|
|
18889
|
+
player: zPlayer.nullish(),
|
|
18747
18890
|
xAxis: zXLinearAxis.nullish(),
|
|
18748
18891
|
yAxis: zYLinearAxis.nullish(),
|
|
18749
18892
|
crosshairLine: zCrosshairLine.nullish(),
|
|
@@ -18783,6 +18926,7 @@
|
|
|
18783
18926
|
color: zColor.nullish(),
|
|
18784
18927
|
tooltip: zTooltip.nullish(),
|
|
18785
18928
|
legend: zLegend.nullish(),
|
|
18929
|
+
player: zPlayer.nullish(),
|
|
18786
18930
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
18787
18931
|
cornerRadius: schemas_number().nullish(),
|
|
18788
18932
|
brush: zBrushConfig.nullish()
|
|
@@ -18795,6 +18939,7 @@
|
|
|
18795
18939
|
color: zColor.nullish(),
|
|
18796
18940
|
tooltip: zTooltip.nullish(),
|
|
18797
18941
|
legend: zLegend.nullish(),
|
|
18942
|
+
player: zPlayer.nullish(),
|
|
18798
18943
|
pivotGrid: zPivotChartGridConfig.nullish()
|
|
18799
18944
|
});
|
|
18800
18945
|
const zRoseParallelConfig = zRoseConfig;
|
|
@@ -18808,6 +18953,7 @@
|
|
|
18808
18953
|
color: zColor.nullish(),
|
|
18809
18954
|
tooltip: zTooltip.nullish(),
|
|
18810
18955
|
legend: zLegend.nullish(),
|
|
18956
|
+
player: zPlayer.nullish(),
|
|
18811
18957
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
18812
18958
|
transform: zFunnelTransform.nullish()
|
|
18813
18959
|
});
|
|
@@ -18823,6 +18969,7 @@
|
|
|
18823
18969
|
color: zColor.nullish(),
|
|
18824
18970
|
tooltip: zTooltip.nullish(),
|
|
18825
18971
|
legend: zColorLegend.nullish(),
|
|
18972
|
+
player: zPlayer.nullish(),
|
|
18826
18973
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
18827
18974
|
cell: zHeatmapCell.nullish(),
|
|
18828
18975
|
xAxis: zXBandAxis.nullish(),
|
|
@@ -19092,11 +19239,6 @@
|
|
|
19092
19239
|
field: schemas_string(),
|
|
19093
19240
|
currentValue: schemas_string()
|
|
19094
19241
|
});
|
|
19095
|
-
const zPlayer = schemas_object({
|
|
19096
|
-
field: schemas_string(),
|
|
19097
|
-
interval: schemas_number().optional(),
|
|
19098
|
-
autoPlay: schemas_boolean().optional()
|
|
19099
|
-
});
|
|
19100
19242
|
const zLocale = schemas_enum([
|
|
19101
19243
|
'zh-CN',
|
|
19102
19244
|
'en-US'
|