@visactor/vseed 0.0.9 → 0.0.10
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/builder.d.ts +222 -21
- package/dist/index.cjs +198 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +191 -50
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/annotation/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/annotation/annotationPoint.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +91 -8
- package/dist/types/chartType/area/area.d.ts +6 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +6 -1
- package/dist/types/chartType/bar/bar.d.ts +6 -1
- package/dist/types/chartType/barParallel/barParallel.d.ts +6 -1
- package/dist/types/chartType/barPercent/barPercent.d.ts +6 -1
- package/dist/types/chartType/column/column.d.ts +6 -1
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +6 -1
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +6 -1
- package/dist/types/chartType/line/line.d.ts +6 -1
- package/dist/types/properties/annotation/annotation.d.ts +85 -0
- package/dist/types/properties/annotation/annotationPoint.d.ts +147 -0
- package/dist/types/properties/annotation/index.d.ts +2 -0
- package/dist/types/properties/index.d.ts +1 -0
- package/dist/types/properties/markStyle/barStyle.d.ts +9 -9
- package/dist/types/properties/markStyle/markStyle.d.ts +8 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -41,6 +41,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
41
41
|
columnPercentAdvancedPipeline: ()=>columnPercentAdvancedPipeline,
|
42
42
|
zAxis: ()=>zAxis,
|
43
43
|
isVTable: ()=>isVTable,
|
44
|
+
zAnnotation: ()=>zAnnotation,
|
44
45
|
columnSpecPipeline: ()=>columnSpecPipeline,
|
45
46
|
UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
|
46
47
|
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
@@ -54,9 +55,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
54
55
|
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
55
56
|
zLabel: ()=>zLabel,
|
56
57
|
registerColumn: ()=>registerColumn,
|
57
|
-
|
58
|
+
zAnnotationPoint: ()=>zAnnotationPoint,
|
58
59
|
lightTheme: ()=>lightTheme,
|
59
60
|
registerColumnParallel: ()=>registerColumnParallel,
|
61
|
+
zDimension: ()=>zDimension,
|
60
62
|
isPivotChart: ()=>isPivotChart,
|
61
63
|
zCustomTheme: ()=>zCustomTheme,
|
62
64
|
zXBandAxis: ()=>zXBandAxis,
|
@@ -86,8 +88,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
86
88
|
foldMeasures: ()=>foldMeasures,
|
87
89
|
dataReshapeFor2D1M: ()=>dataReshapeFor2D1M,
|
88
90
|
registerLightTheme: ()=>registerLightTheme,
|
89
|
-
zChartType: ()=>zChartType,
|
90
91
|
registerDarkTheme: ()=>registerDarkTheme,
|
92
|
+
zChartType: ()=>zChartType,
|
91
93
|
barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
|
92
94
|
FoldMeasureValue: ()=>FoldMeasureValue,
|
93
95
|
barPercentSpecPipeline: ()=>barPercentSpecPipeline,
|
@@ -744,6 +746,16 @@ const markStyle_markStyle = (advancedVSeed, context)=>{
|
|
744
746
|
markStyle
|
745
747
|
};
|
746
748
|
};
|
749
|
+
const annotation_annotation = (advancedVSeed, context)=>{
|
750
|
+
const { vseed } = context;
|
751
|
+
const annotation = (0, external_remeda_namespaceObject.pick)(vseed, [
|
752
|
+
'annotationPoint'
|
753
|
+
]);
|
754
|
+
return {
|
755
|
+
...advancedVSeed,
|
756
|
+
annotation
|
757
|
+
};
|
758
|
+
};
|
747
759
|
const lineAdvancedPipeline = [
|
748
760
|
initAdvancedVSeed,
|
749
761
|
autoMeasures,
|
@@ -756,7 +768,8 @@ const lineAdvancedPipeline = [
|
|
756
768
|
encodingXY,
|
757
769
|
vchartBaseConfig,
|
758
770
|
lineConfig,
|
759
|
-
vchartTheme
|
771
|
+
vchartTheme,
|
772
|
+
annotation_annotation
|
760
773
|
];
|
761
774
|
const barAdvancedPipeline = [
|
762
775
|
initAdvancedVSeed,
|
@@ -771,7 +784,8 @@ const barAdvancedPipeline = [
|
|
771
784
|
barConfig,
|
772
785
|
vchartBaseConfig,
|
773
786
|
vchartTheme,
|
774
|
-
markStyle_markStyle
|
787
|
+
markStyle_markStyle,
|
788
|
+
annotation_annotation
|
775
789
|
];
|
776
790
|
const barParallelAdvancedPipeline = [
|
777
791
|
initAdvancedVSeed,
|
@@ -786,7 +800,8 @@ const barParallelAdvancedPipeline = [
|
|
786
800
|
barParallelConfig,
|
787
801
|
vchartBaseConfig,
|
788
802
|
vchartTheme,
|
789
|
-
markStyle_markStyle
|
803
|
+
markStyle_markStyle,
|
804
|
+
annotation_annotation
|
790
805
|
];
|
791
806
|
const barPercentAdvancedPipeline = [
|
792
807
|
initAdvancedVSeed,
|
@@ -801,7 +816,8 @@ const barPercentAdvancedPipeline = [
|
|
801
816
|
barPercentConfig,
|
802
817
|
vchartBaseConfig,
|
803
818
|
vchartTheme,
|
804
|
-
markStyle_markStyle
|
819
|
+
markStyle_markStyle,
|
820
|
+
annotation_annotation
|
805
821
|
];
|
806
822
|
const columnAdvancedPipeline = [
|
807
823
|
initAdvancedVSeed,
|
@@ -816,7 +832,8 @@ const columnAdvancedPipeline = [
|
|
816
832
|
columnConfig,
|
817
833
|
vchartBaseConfig,
|
818
834
|
vchartTheme,
|
819
|
-
markStyle_markStyle
|
835
|
+
markStyle_markStyle,
|
836
|
+
annotation_annotation
|
820
837
|
];
|
821
838
|
const columnParallelAdvancedPipeline = [
|
822
839
|
initAdvancedVSeed,
|
@@ -831,7 +848,8 @@ const columnParallelAdvancedPipeline = [
|
|
831
848
|
columnParallelConfig,
|
832
849
|
vchartBaseConfig,
|
833
850
|
vchartTheme,
|
834
|
-
markStyle_markStyle
|
851
|
+
markStyle_markStyle,
|
852
|
+
annotation_annotation
|
835
853
|
];
|
836
854
|
const columnPercentAdvancedPipeline = [
|
837
855
|
initAdvancedVSeed,
|
@@ -846,7 +864,8 @@ const columnPercentAdvancedPipeline = [
|
|
846
864
|
columnPercentConfig,
|
847
865
|
vchartBaseConfig,
|
848
866
|
vchartTheme,
|
849
|
-
markStyle_markStyle
|
867
|
+
markStyle_markStyle,
|
868
|
+
annotation_annotation
|
850
869
|
];
|
851
870
|
const areaAdvancedPipeline = [
|
852
871
|
initAdvancedVSeed,
|
@@ -860,7 +879,8 @@ const areaAdvancedPipeline = [
|
|
860
879
|
encodingXY,
|
861
880
|
areaConfig,
|
862
881
|
vchartBaseConfig,
|
863
|
-
vchartTheme
|
882
|
+
vchartTheme,
|
883
|
+
annotation_annotation
|
864
884
|
];
|
865
885
|
const areaPercentAdvancedPipeline = [
|
866
886
|
initAdvancedVSeed,
|
@@ -874,7 +894,8 @@ const areaPercentAdvancedPipeline = [
|
|
874
894
|
encodingXY,
|
875
895
|
areaPercentConfig,
|
876
896
|
vchartBaseConfig,
|
877
|
-
vchartTheme
|
897
|
+
vchartTheme,
|
898
|
+
annotation_annotation
|
878
899
|
];
|
879
900
|
const pieAdvancedPipeline = [
|
880
901
|
initAdvancedVSeed,
|
@@ -888,7 +909,8 @@ const pieAdvancedPipeline = [
|
|
888
909
|
encodingPolar,
|
889
910
|
pieConfig,
|
890
911
|
vchartBaseConfig,
|
891
|
-
vchartTheme
|
912
|
+
vchartTheme,
|
913
|
+
annotation_annotation
|
892
914
|
];
|
893
915
|
const dataset_dataset = (spec, context)=>{
|
894
916
|
const { advancedVSeed } = context;
|
@@ -1984,23 +2006,23 @@ const barStyle_barStyle = (spec, context)=>{
|
|
1984
2006
|
...result,
|
1985
2007
|
bar: {
|
1986
2008
|
style: {
|
1987
|
-
fill: (datum, context)=>{
|
2009
|
+
fill: barColor ? (datum, context)=>{
|
1988
2010
|
if (selector_selector(datum, barSelector)) return barColor;
|
1989
2011
|
return context.seriesColor(datum[encoding[0]?.group?.[0]]);
|
1990
|
-
},
|
1991
|
-
fillOpacity: (datum)=>{
|
2012
|
+
} : void 0,
|
2013
|
+
fillOpacity: barColorOpacity ? (datum)=>{
|
1992
2014
|
if (selector_selector(datum, barSelector)) return barColorOpacity;
|
1993
2015
|
return 1;
|
1994
|
-
},
|
1995
|
-
stroke: (datum, context)=>{
|
2016
|
+
} : void 0,
|
2017
|
+
stroke: barBorderColor ? (datum, context)=>{
|
1996
2018
|
if (selector_selector(datum, barSelector)) return barBorderColor;
|
1997
2019
|
return context.seriesColor(datum[encoding[0]?.group?.[0]]);
|
1998
|
-
},
|
1999
|
-
lineWidth: (datum)=>{
|
2020
|
+
} : void 0,
|
2021
|
+
lineWidth: barBorderWidth ? (datum)=>{
|
2000
2022
|
if (selector_selector(datum, barSelector)) return barBorderWidth;
|
2001
2023
|
return 0;
|
2002
|
-
},
|
2003
|
-
lineDash: (datum)=>{
|
2024
|
+
} : void 0,
|
2025
|
+
lineDash: barBorderStyle ? (datum)=>{
|
2004
2026
|
if (selector_selector(datum, barSelector)) {
|
2005
2027
|
if ('solid' === barBorderStyle) ;
|
2006
2028
|
else if ('dashed' === barBorderStyle) return [
|
@@ -2016,15 +2038,85 @@ const barStyle_barStyle = (spec, context)=>{
|
|
2016
2038
|
0,
|
2017
2039
|
0
|
2018
2040
|
];
|
2019
|
-
},
|
2020
|
-
cornerRadius: (datum)=>{
|
2041
|
+
} : void 0,
|
2042
|
+
cornerRadius: barRadius ? (datum)=>{
|
2021
2043
|
if (selector_selector(datum, barSelector)) return barRadius;
|
2022
2044
|
return 0;
|
2023
|
-
}
|
2045
|
+
} : void 0
|
2024
2046
|
}
|
2025
2047
|
}
|
2026
2048
|
};
|
2027
2049
|
};
|
2050
|
+
const annotationPoint_annotationPoint = (spec, context)=>{
|
2051
|
+
const { advancedVSeed } = context;
|
2052
|
+
const { annotation } = advancedVSeed;
|
2053
|
+
if (!annotation || !annotation.annotationPoint) return spec;
|
2054
|
+
const { annotationPoint } = annotation;
|
2055
|
+
const annotationPointList = Array.isArray(annotationPoint) ? annotationPoint : [
|
2056
|
+
annotationPoint
|
2057
|
+
];
|
2058
|
+
const markPoint = annotationPointList.flatMap((annotationPoint)=>{
|
2059
|
+
const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'middle', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 4, backgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
|
2060
|
+
const dataset = advancedVSeed.dataset.flat();
|
2061
|
+
const selectedData = dataset.filter((datum)=>selector_selector(datum, selectorPoint));
|
2062
|
+
return selectedData.map((datum)=>({
|
2063
|
+
regionRelative: true,
|
2064
|
+
position: (data, context)=>{
|
2065
|
+
const targetDatum = data.find((item)=>isSubset(datum, item));
|
2066
|
+
if (targetDatum) {
|
2067
|
+
const { x, y } = context.dataToPosition(targetDatum);
|
2068
|
+
const xBandWidth = context.scaleX?.bandwidth?.();
|
2069
|
+
const yBandWidth = context.scaleY?.bandwidth?.();
|
2070
|
+
if (xBandWidth) return {
|
2071
|
+
x: x,
|
2072
|
+
y: y
|
2073
|
+
};
|
2074
|
+
if (yBandWidth) return {
|
2075
|
+
x,
|
2076
|
+
y: y
|
2077
|
+
};
|
2078
|
+
}
|
2079
|
+
},
|
2080
|
+
itemLine: {
|
2081
|
+
visible: false
|
2082
|
+
},
|
2083
|
+
itemContent: {
|
2084
|
+
offsetY,
|
2085
|
+
offsetX,
|
2086
|
+
text: {
|
2087
|
+
visible: true,
|
2088
|
+
text: text,
|
2089
|
+
style: {
|
2090
|
+
textAlign: textAlign,
|
2091
|
+
textBaseline: textBaseline,
|
2092
|
+
fill: textColor,
|
2093
|
+
fontSize: textFontSize,
|
2094
|
+
fontWeight: textFontWeight
|
2095
|
+
},
|
2096
|
+
labelBackground: {
|
2097
|
+
visible: backgroundVisible,
|
2098
|
+
padding: backgroundPadding,
|
2099
|
+
style: {
|
2100
|
+
cornerRadius: backgroundBorderRadius ?? 4,
|
2101
|
+
fill: backgroundColor,
|
2102
|
+
stroke: backgroundBorderColor,
|
2103
|
+
strokeWidth: backgroundBorderWidth
|
2104
|
+
}
|
2105
|
+
}
|
2106
|
+
}
|
2107
|
+
}
|
2108
|
+
}));
|
2109
|
+
});
|
2110
|
+
return {
|
2111
|
+
...spec,
|
2112
|
+
markPoint
|
2113
|
+
};
|
2114
|
+
};
|
2115
|
+
const isSubset = (sub, obj)=>Object.entries(sub).every(([key, value])=>{
|
2116
|
+
if ('string' == typeof value) return obj[key] === value;
|
2117
|
+
if ('number' == typeof value) return obj[key] === value;
|
2118
|
+
return true;
|
2119
|
+
});
|
2028
2120
|
const line_line = [
|
2029
2121
|
initLine,
|
2030
2122
|
color_color,
|
@@ -2034,7 +2126,8 @@ const line_line = [
|
|
2034
2126
|
yLinear,
|
2035
2127
|
label_label,
|
2036
2128
|
tooltip_tooltip,
|
2037
|
-
discreteLegend
|
2129
|
+
discreteLegend,
|
2130
|
+
annotationPoint_annotationPoint
|
2038
2131
|
];
|
2039
2132
|
const pivotLine = [
|
2040
2133
|
initPivot,
|
@@ -2049,7 +2142,8 @@ const pivotLine = [
|
|
2049
2142
|
xBand,
|
2050
2143
|
yLinear,
|
2051
2144
|
label_label,
|
2052
|
-
tooltip_tooltip
|
2145
|
+
tooltip_tooltip,
|
2146
|
+
annotationPoint_annotationPoint
|
2053
2147
|
]),
|
2054
2148
|
pivotRowDimensions,
|
2055
2149
|
pivotColumnDimensions,
|
@@ -2069,7 +2163,8 @@ const column = [
|
|
2069
2163
|
label_label,
|
2070
2164
|
tooltip_tooltip,
|
2071
2165
|
discreteLegend,
|
2072
|
-
barStyle_barStyle
|
2166
|
+
barStyle_barStyle,
|
2167
|
+
annotationPoint_annotationPoint
|
2073
2168
|
];
|
2074
2169
|
const pivotColumn = [
|
2075
2170
|
initPivot,
|
@@ -2086,7 +2181,8 @@ const pivotColumn = [
|
|
2086
2181
|
yLinear,
|
2087
2182
|
label_label,
|
2088
2183
|
tooltip_tooltip,
|
2089
|
-
barStyle_barStyle
|
2184
|
+
barStyle_barStyle,
|
2185
|
+
annotationPoint_annotationPoint
|
2090
2186
|
]),
|
2091
2187
|
pivotRowDimensions,
|
2092
2188
|
pivotColumnDimensions,
|
@@ -2105,7 +2201,8 @@ const columnParallel = [
|
|
2105
2201
|
label_label,
|
2106
2202
|
tooltip_tooltip,
|
2107
2203
|
discreteLegend,
|
2108
|
-
barStyle_barStyle
|
2204
|
+
barStyle_barStyle,
|
2205
|
+
annotationPoint_annotationPoint
|
2109
2206
|
];
|
2110
2207
|
const pivotColumnParallel = [
|
2111
2208
|
initPivot,
|
@@ -2121,7 +2218,8 @@ const pivotColumnParallel = [
|
|
2121
2218
|
yLinear,
|
2122
2219
|
label_label,
|
2123
2220
|
tooltip_tooltip,
|
2124
|
-
barStyle_barStyle
|
2221
|
+
barStyle_barStyle,
|
2222
|
+
annotationPoint_annotationPoint
|
2125
2223
|
]),
|
2126
2224
|
pivotRowDimensions,
|
2127
2225
|
pivotColumnDimensions,
|
@@ -2142,7 +2240,8 @@ const columnPercent = [
|
|
2142
2240
|
label_label,
|
2143
2241
|
tooltip_tooltip,
|
2144
2242
|
discreteLegend,
|
2145
|
-
barStyle_barStyle
|
2243
|
+
barStyle_barStyle,
|
2244
|
+
annotationPoint_annotationPoint
|
2146
2245
|
];
|
2147
2246
|
const pivotColumnPercent = [
|
2148
2247
|
initPivot,
|
@@ -2160,7 +2259,8 @@ const pivotColumnPercent = [
|
|
2160
2259
|
yLinear,
|
2161
2260
|
label_label,
|
2162
2261
|
tooltip_tooltip,
|
2163
|
-
barStyle_barStyle
|
2262
|
+
barStyle_barStyle,
|
2263
|
+
annotationPoint_annotationPoint
|
2164
2264
|
]),
|
2165
2265
|
pivotRowDimensions,
|
2166
2266
|
pivotColumnDimensions,
|
@@ -2179,7 +2279,8 @@ const bar = [
|
|
2179
2279
|
label_label,
|
2180
2280
|
tooltip_tooltip,
|
2181
2281
|
discreteLegend,
|
2182
|
-
barStyle_barStyle
|
2282
|
+
barStyle_barStyle,
|
2283
|
+
annotationPoint_annotationPoint
|
2183
2284
|
];
|
2184
2285
|
const pivotBar = [
|
2185
2286
|
initPivot,
|
@@ -2195,7 +2296,8 @@ const pivotBar = [
|
|
2195
2296
|
label_label,
|
2196
2297
|
label_label,
|
2197
2298
|
tooltip_tooltip,
|
2198
|
-
barStyle_barStyle
|
2299
|
+
barStyle_barStyle,
|
2300
|
+
annotationPoint_annotationPoint
|
2199
2301
|
]),
|
2200
2302
|
pivotRowDimensions,
|
2201
2303
|
pivotColumnDimensions,
|
@@ -2214,7 +2316,8 @@ const barParallel = [
|
|
2214
2316
|
label_label,
|
2215
2317
|
tooltip_tooltip,
|
2216
2318
|
discreteLegend,
|
2217
|
-
barStyle_barStyle
|
2319
|
+
barStyle_barStyle,
|
2320
|
+
annotationPoint_annotationPoint
|
2218
2321
|
];
|
2219
2322
|
const pivotBarParallel = [
|
2220
2323
|
initPivot,
|
@@ -2230,7 +2333,8 @@ const pivotBarParallel = [
|
|
2230
2333
|
xLinear,
|
2231
2334
|
label_label,
|
2232
2335
|
tooltip_tooltip,
|
2233
|
-
barStyle_barStyle
|
2336
|
+
barStyle_barStyle,
|
2337
|
+
annotationPoint_annotationPoint
|
2234
2338
|
]),
|
2235
2339
|
pivotRowDimensions,
|
2236
2340
|
pivotColumnDimensions,
|
@@ -2250,7 +2354,8 @@ const barPercent = [
|
|
2250
2354
|
label_label,
|
2251
2355
|
tooltip_tooltip,
|
2252
2356
|
discreteLegend,
|
2253
|
-
barStyle_barStyle
|
2357
|
+
barStyle_barStyle,
|
2358
|
+
annotationPoint_annotationPoint
|
2254
2359
|
];
|
2255
2360
|
const pivotBarPercent = [
|
2256
2361
|
initPivot,
|
@@ -2267,7 +2372,8 @@ const pivotBarPercent = [
|
|
2267
2372
|
xLinear,
|
2268
2373
|
label_label,
|
2269
2374
|
tooltip_tooltip,
|
2270
|
-
barStyle_barStyle
|
2375
|
+
barStyle_barStyle,
|
2376
|
+
annotationPoint_annotationPoint
|
2271
2377
|
]),
|
2272
2378
|
pivotRowDimensions,
|
2273
2379
|
pivotColumnDimensions,
|
@@ -2286,7 +2392,8 @@ const area_area = [
|
|
2286
2392
|
yLinear,
|
2287
2393
|
label_label,
|
2288
2394
|
tooltip_tooltip,
|
2289
|
-
discreteLegend
|
2395
|
+
discreteLegend,
|
2396
|
+
annotationPoint_annotationPoint
|
2290
2397
|
];
|
2291
2398
|
const pivotArea = [
|
2292
2399
|
initPivot,
|
@@ -2302,7 +2409,8 @@ const pivotArea = [
|
|
2302
2409
|
xBand,
|
2303
2410
|
yLinear,
|
2304
2411
|
label_label,
|
2305
|
-
tooltip_tooltip
|
2412
|
+
tooltip_tooltip,
|
2413
|
+
annotationPoint_annotationPoint
|
2306
2414
|
]),
|
2307
2415
|
pivotRowDimensions,
|
2308
2416
|
pivotColumnDimensions,
|
@@ -2322,7 +2430,8 @@ const areaPercent = [
|
|
2322
2430
|
yLinear,
|
2323
2431
|
label_label,
|
2324
2432
|
tooltip_tooltip,
|
2325
|
-
discreteLegend
|
2433
|
+
discreteLegend,
|
2434
|
+
annotationPoint_annotationPoint
|
2326
2435
|
];
|
2327
2436
|
const pivotAreaPercent = [
|
2328
2437
|
initPivot,
|
@@ -2339,7 +2448,8 @@ const pivotAreaPercent = [
|
|
2339
2448
|
xBand,
|
2340
2449
|
yLinear,
|
2341
2450
|
label_label,
|
2342
|
-
tooltip_tooltip
|
2451
|
+
tooltip_tooltip,
|
2452
|
+
annotationPoint_annotationPoint
|
2343
2453
|
]),
|
2344
2454
|
pivotRowDimensions,
|
2345
2455
|
pivotColumnDimensions,
|
@@ -2355,7 +2465,8 @@ const pie = [
|
|
2355
2465
|
dataset_dataset,
|
2356
2466
|
label_label,
|
2357
2467
|
tooltip_tooltip,
|
2358
|
-
discreteLegend
|
2468
|
+
discreteLegend,
|
2469
|
+
annotationPoint_annotationPoint
|
2359
2470
|
];
|
2360
2471
|
const pivotPie = [
|
2361
2472
|
initPivot,
|
@@ -2368,7 +2479,8 @@ const pivotPie = [
|
|
2368
2479
|
background_backgroundColor,
|
2369
2480
|
datasetPivotPlaceholder,
|
2370
2481
|
label_label,
|
2371
|
-
tooltip_tooltip
|
2482
|
+
tooltip_tooltip,
|
2483
|
+
annotationPoint_annotationPoint
|
2372
2484
|
]),
|
2373
2485
|
pivotRowDimensions,
|
2374
2486
|
pivotColumnDimensions,
|
@@ -3218,24 +3330,55 @@ const zBarStyle = external_zod_namespaceObject.z.object({
|
|
3218
3330
|
selector: external_zod_namespaceObject.z.union([
|
3219
3331
|
zSelector,
|
3220
3332
|
zSelectors
|
3221
|
-
]),
|
3222
|
-
barColor: external_zod_namespaceObject.z.string(),
|
3223
|
-
barColorOpacity: external_zod_namespaceObject.z.number(),
|
3224
|
-
barBorderColor: external_zod_namespaceObject.z.string(),
|
3225
|
-
barBorderWidth: external_zod_namespaceObject.z.number(),
|
3333
|
+
]).optional(),
|
3334
|
+
barColor: external_zod_namespaceObject.z.string().optional(),
|
3335
|
+
barColorOpacity: external_zod_namespaceObject.z.number().optional(),
|
3336
|
+
barBorderColor: external_zod_namespaceObject.z.string().optional(),
|
3337
|
+
barBorderWidth: external_zod_namespaceObject.z.number().optional(),
|
3226
3338
|
barBorderStyle: external_zod_namespaceObject.z.union([
|
3227
3339
|
external_zod_namespaceObject.z.literal('solid'),
|
3228
3340
|
external_zod_namespaceObject.z.literal('dashed'),
|
3229
3341
|
external_zod_namespaceObject.z.literal('dotted')
|
3230
|
-
]),
|
3342
|
+
]).optional(),
|
3231
3343
|
barRadius: external_zod_namespaceObject.z.union([
|
3232
3344
|
external_zod_namespaceObject.z.number(),
|
3233
3345
|
external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number())
|
3234
|
-
])
|
3346
|
+
]).optional()
|
3235
3347
|
});
|
3236
3348
|
const zMarkStyle = external_zod_namespaceObject.z.object({
|
3237
3349
|
barStyle: zBarStyle.optional()
|
3238
3350
|
});
|
3351
|
+
const zAnnotationPoint = external_zod_namespaceObject.z.object({
|
3352
|
+
selector: external_zod_namespaceObject.z.union([
|
3353
|
+
zSelector,
|
3354
|
+
zSelectors
|
3355
|
+
]),
|
3356
|
+
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
|
3357
|
+
textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
|
3358
|
+
textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
|
3359
|
+
textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
|
3360
|
+
textAlign: external_zod_namespaceObject.z["enum"]([
|
3361
|
+
'left',
|
3362
|
+
'right',
|
3363
|
+
'center'
|
3364
|
+
]).default('center').optional(),
|
3365
|
+
textBaseline: external_zod_namespaceObject.z["enum"]([
|
3366
|
+
'top',
|
3367
|
+
'middle',
|
3368
|
+
'bottom'
|
3369
|
+
]).default('middle').optional(),
|
3370
|
+
backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
|
3371
|
+
backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
|
3372
|
+
backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
|
3373
|
+
backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
|
3374
|
+
backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
3375
|
+
backgroundPadding: external_zod_namespaceObject.z.number().optional(),
|
3376
|
+
offsetY: external_zod_namespaceObject.z.number().default(0).optional(),
|
3377
|
+
offsetX: external_zod_namespaceObject.z.number().default(0).optional()
|
3378
|
+
});
|
3379
|
+
const zAnnotation = external_zod_namespaceObject.z.object({
|
3380
|
+
annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).optional()
|
3381
|
+
});
|
3239
3382
|
exports.Builder = __webpack_exports__.Builder;
|
3240
3383
|
exports.FoldMeasureId = __webpack_exports__.FoldMeasureId;
|
3241
3384
|
exports.FoldMeasureName = __webpack_exports__.FoldMeasureName;
|
@@ -3286,6 +3429,8 @@ exports.registerDarkTheme = __webpack_exports__.registerDarkTheme;
|
|
3286
3429
|
exports.registerLightTheme = __webpack_exports__.registerLightTheme;
|
3287
3430
|
exports.registerLine = __webpack_exports__.registerLine;
|
3288
3431
|
exports.unfoldDimensions = __webpack_exports__.unfoldDimensions;
|
3432
|
+
exports.zAnnotation = __webpack_exports__.zAnnotation;
|
3433
|
+
exports.zAnnotationPoint = __webpack_exports__.zAnnotationPoint;
|
3289
3434
|
exports.zAxis = __webpack_exports__.zAxis;
|
3290
3435
|
exports.zBackgroundColor = __webpack_exports__.zBackgroundColor;
|
3291
3436
|
exports.zBarStyle = __webpack_exports__.zBarStyle;
|
@@ -3366,6 +3511,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
3366
3511
|
"registerLightTheme",
|
3367
3512
|
"registerLine",
|
3368
3513
|
"unfoldDimensions",
|
3514
|
+
"zAnnotation",
|
3515
|
+
"zAnnotationPoint",
|
3369
3516
|
"zAxis",
|
3370
3517
|
"zBackgroundColor",
|
3371
3518
|
"zBarStyle",
|