@visactor/vchart 1.4.1-alpha.0 → 1.4.1
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/build/es5/index.js +1 -1
- package/build/index.js +126 -137
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base-chart.d.ts +4 -4
- package/cjs/chart/base-chart.js +9 -9
- package/cjs/chart/base-chart.js.map +1 -1
- package/cjs/chart/interface/chart.d.ts +1 -1
- package/cjs/chart/interface/chart.js.map +1 -1
- package/cjs/chart/rose/rose.js +1 -1
- package/cjs/chart/rose/rose.js.map +1 -1
- package/cjs/component/axis/cartesian/band-axis.js +2 -2
- package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/config.d.ts +1 -0
- package/cjs/component/axis/cartesian/config.js +3 -2
- package/cjs/component/axis/cartesian/config.js.map +1 -1
- package/cjs/component/axis/interface.d.ts +1 -0
- package/cjs/component/axis/interface.js.map +1 -1
- package/cjs/component/axis/polar/axis.js +5 -4
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/axis/polar/band-axis.d.ts +2 -2
- package/cjs/component/axis/polar/band-axis.js +4 -3
- package/cjs/component/axis/polar/band-axis.js.map +1 -1
- package/cjs/component/axis/polar/config.d.ts +1 -0
- package/cjs/component/axis/polar/config.js +3 -2
- package/cjs/component/axis/polar/config.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/marker/interface.d.ts +5 -2
- package/cjs/component/marker/interface.js.map +1 -1
- package/cjs/component/marker/mark-area/interface/theme.d.ts +2 -2
- package/cjs/component/marker/mark-area/interface/theme.js.map +1 -1
- package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/vchart.js +2 -1
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/model/base-model.d.ts +1 -0
- package/cjs/model/base-model.js +3 -0
- package/cjs/model/base-model.js.map +1 -1
- package/cjs/model/interface.d.ts +1 -0
- package/cjs/model/interface.js.map +1 -1
- package/cjs/series/cartesian/cartesian.js.map +1 -1
- package/cjs/series/rose/rose.js +2 -2
- package/cjs/series/rose/rose.js.map +1 -1
- package/cjs/series/word-cloud/base.js +39 -35
- package/cjs/series/word-cloud/base.js.map +1 -1
- package/cjs/series/word-cloud/word-cloud-3d.js +39 -35
- package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/cjs/theme/builtin/common/component/axis/common-axis.js +0 -2
- package/cjs/theme/builtin/common/component/axis/common-axis.js.map +1 -1
- package/cjs/theme/builtin/common/component/crosshair.js +1 -2
- package/cjs/theme/builtin/common/component/crosshair.js.map +1 -1
- package/cjs/theme/builtin/common/component/data-zoom.js +0 -2
- package/cjs/theme/builtin/common/component/data-zoom.js.map +1 -1
- package/cjs/theme/builtin/common/component/indicator.js +0 -2
- package/cjs/theme/builtin/common/component/indicator.js.map +1 -1
- package/cjs/theme/builtin/common/component/legend/continuous.js +0 -4
- package/cjs/theme/builtin/common/component/legend/continuous.js.map +1 -1
- package/cjs/theme/builtin/common/component/legend/discrete-legend.js +0 -2
- package/cjs/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
- package/cjs/theme/builtin/common/component/map-label.js +2 -4
- package/cjs/theme/builtin/common/component/map-label.js.map +1 -1
- package/cjs/theme/builtin/common/component/mark-area.js +0 -1
- package/cjs/theme/builtin/common/component/mark-area.js.map +1 -1
- package/cjs/theme/builtin/common/component/mark-line.js +0 -1
- package/cjs/theme/builtin/common/component/mark-line.js.map +1 -1
- package/cjs/theme/builtin/common/component/poptip.js +0 -2
- package/cjs/theme/builtin/common/component/poptip.js.map +1 -1
- package/cjs/theme/builtin/common/component/title.js +0 -2
- package/cjs/theme/builtin/common/component/title.js.map +1 -1
- package/cjs/theme/builtin/common/component/tooltip.js +0 -3
- package/cjs/theme/builtin/common/component/tooltip.js.map +1 -1
- package/cjs/theme/builtin/common/component/total-label.js +0 -1
- package/cjs/theme/builtin/common/component/total-label.js.map +1 -1
- package/cjs/theme/builtin/common/mark.js +0 -2
- package/cjs/theme/builtin/common/mark.js.map +1 -1
- package/cjs/theme/builtin/common/series/circle-packing.js +1 -2
- package/cjs/theme/builtin/common/series/circle-packing.js.map +1 -1
- package/cjs/theme/builtin/common/series/dot.js +2 -4
- package/cjs/theme/builtin/common/series/dot.js.map +1 -1
- package/cjs/theme/builtin/common/series/funnel.js +0 -2
- package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
- package/cjs/theme/builtin/common/series/funnel3d.js +0 -2
- package/cjs/theme/builtin/common/series/funnel3d.js.map +1 -1
- package/cjs/theme/builtin/common/series/sunburst.js +1 -2
- package/cjs/theme/builtin/common/series/sunburst.js.map +1 -1
- package/cjs/theme/builtin/common/series/treemap.js +1 -3
- package/cjs/theme/builtin/common/series/treemap.js.map +1 -1
- package/cjs/theme/builtin/common/series/waterfall.js +1 -2
- package/cjs/theme/builtin/common/series/waterfall.js.map +1 -1
- package/esm/chart/base-chart.d.ts +4 -4
- package/esm/chart/base-chart.js +9 -9
- package/esm/chart/base-chart.js.map +1 -1
- package/esm/chart/interface/chart.d.ts +1 -1
- package/esm/chart/interface/chart.js.map +1 -1
- package/esm/chart/rose/rose.js +2 -2
- package/esm/chart/rose/rose.js.map +1 -1
- package/esm/component/axis/cartesian/band-axis.js +3 -3
- package/esm/component/axis/cartesian/band-axis.js.map +1 -1
- package/esm/component/axis/cartesian/config.d.ts +1 -0
- package/esm/component/axis/cartesian/config.js +2 -0
- package/esm/component/axis/cartesian/config.js.map +1 -1
- package/esm/component/axis/interface.d.ts +1 -0
- package/esm/component/axis/interface.js.map +1 -1
- package/esm/component/axis/polar/axis.js +6 -3
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/axis/polar/band-axis.d.ts +2 -2
- package/esm/component/axis/polar/band-axis.js +5 -4
- package/esm/component/axis/polar/band-axis.js.map +1 -1
- package/esm/component/axis/polar/config.d.ts +1 -0
- package/esm/component/axis/polar/config.js +2 -0
- package/esm/component/axis/polar/config.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.js +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/marker/interface.d.ts +5 -2
- package/esm/component/marker/interface.js.map +1 -1
- package/esm/component/marker/mark-area/interface/theme.d.ts +2 -2
- package/esm/component/marker/mark-area/interface/theme.js.map +1 -1
- package/esm/component/marker/mark-area/mark-area.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/core/vchart.js +3 -2
- package/esm/core/vchart.js.map +1 -1
- package/esm/model/base-model.d.ts +1 -0
- package/esm/model/base-model.js +3 -0
- package/esm/model/base-model.js.map +1 -1
- package/esm/model/interface.d.ts +1 -0
- package/esm/model/interface.js.map +1 -1
- package/esm/series/cartesian/cartesian.js.map +1 -1
- package/esm/series/rose/rose.js +2 -2
- package/esm/series/rose/rose.js.map +1 -1
- package/esm/series/word-cloud/base.js +38 -34
- package/esm/series/word-cloud/base.js.map +1 -1
- package/esm/series/word-cloud/word-cloud-3d.js +38 -34
- package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/esm/theme/builtin/common/component/axis/common-axis.js +0 -2
- package/esm/theme/builtin/common/component/axis/common-axis.js.map +1 -1
- package/esm/theme/builtin/common/component/crosshair.js +1 -2
- package/esm/theme/builtin/common/component/crosshair.js.map +1 -1
- package/esm/theme/builtin/common/component/data-zoom.js +0 -2
- package/esm/theme/builtin/common/component/data-zoom.js.map +1 -1
- package/esm/theme/builtin/common/component/indicator.js +0 -2
- package/esm/theme/builtin/common/component/indicator.js.map +1 -1
- package/esm/theme/builtin/common/component/legend/continuous.js +0 -4
- package/esm/theme/builtin/common/component/legend/continuous.js.map +1 -1
- package/esm/theme/builtin/common/component/legend/discrete-legend.js +0 -2
- package/esm/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
- package/esm/theme/builtin/common/component/map-label.js +2 -4
- package/esm/theme/builtin/common/component/map-label.js.map +1 -1
- package/esm/theme/builtin/common/component/mark-area.js +0 -1
- package/esm/theme/builtin/common/component/mark-area.js.map +1 -1
- package/esm/theme/builtin/common/component/mark-line.js +0 -1
- package/esm/theme/builtin/common/component/mark-line.js.map +1 -1
- package/esm/theme/builtin/common/component/poptip.js +0 -2
- package/esm/theme/builtin/common/component/poptip.js.map +1 -1
- package/esm/theme/builtin/common/component/title.js +0 -2
- package/esm/theme/builtin/common/component/title.js.map +1 -1
- package/esm/theme/builtin/common/component/tooltip.js +0 -3
- package/esm/theme/builtin/common/component/tooltip.js.map +1 -1
- package/esm/theme/builtin/common/component/total-label.js +0 -1
- package/esm/theme/builtin/common/component/total-label.js.map +1 -1
- package/esm/theme/builtin/common/mark.js +0 -2
- package/esm/theme/builtin/common/mark.js.map +1 -1
- package/esm/theme/builtin/common/series/circle-packing.js +1 -2
- package/esm/theme/builtin/common/series/circle-packing.js.map +1 -1
- package/esm/theme/builtin/common/series/dot.js +2 -4
- package/esm/theme/builtin/common/series/dot.js.map +1 -1
- package/esm/theme/builtin/common/series/funnel.js +0 -2
- package/esm/theme/builtin/common/series/funnel.js.map +1 -1
- package/esm/theme/builtin/common/series/funnel3d.js +0 -2
- package/esm/theme/builtin/common/series/funnel3d.js.map +1 -1
- package/esm/theme/builtin/common/series/sunburst.js +1 -2
- package/esm/theme/builtin/common/series/sunburst.js.map +1 -1
- package/esm/theme/builtin/common/series/treemap.js +1 -3
- package/esm/theme/builtin/common/series/treemap.js.map +1 -1
- package/esm/theme/builtin/common/series/waterfall.js +1 -2
- package/esm/theme/builtin/common/series/waterfall.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -38138,8 +38138,7 @@
|
|
|
38138
38138
|
textAlign: 'left',
|
|
38139
38139
|
textBaseline: 'middle',
|
|
38140
38140
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
38141
|
-
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
38142
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
38141
|
+
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
38143
38142
|
}
|
|
38144
38143
|
},
|
|
38145
38144
|
subTitle: {
|
|
@@ -38147,8 +38146,7 @@
|
|
|
38147
38146
|
textAlign: 'left',
|
|
38148
38147
|
textBaseline: 'top',
|
|
38149
38148
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
38150
|
-
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
38151
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
38149
|
+
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
38152
38150
|
}
|
|
38153
38151
|
}
|
|
38154
38152
|
};
|
|
@@ -38170,7 +38168,6 @@
|
|
|
38170
38168
|
style: {
|
|
38171
38169
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
38172
38170
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
38173
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
38174
38171
|
fill: '#707070'
|
|
38175
38172
|
},
|
|
38176
38173
|
line: {
|
|
@@ -38183,7 +38180,6 @@
|
|
|
38183
38180
|
style: {
|
|
38184
38181
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
38185
38182
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
38186
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
38187
38183
|
fill: '#707070',
|
|
38188
38184
|
textBaseline: 'middle'
|
|
38189
38185
|
}
|
|
@@ -38207,7 +38203,6 @@
|
|
|
38207
38203
|
style: {
|
|
38208
38204
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
38209
38205
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
38210
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
38211
38206
|
fill: '#707070'
|
|
38212
38207
|
},
|
|
38213
38208
|
line: {
|
|
@@ -38220,7 +38215,6 @@
|
|
|
38220
38215
|
style: {
|
|
38221
38216
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
38222
38217
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
38223
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
38224
38218
|
fill: '#707070',
|
|
38225
38219
|
textBaseline: 'middle'
|
|
38226
38220
|
}
|
|
@@ -38423,8 +38417,7 @@
|
|
|
38423
38417
|
style: {
|
|
38424
38418
|
fill: 'black',
|
|
38425
38419
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
38426
|
-
lineHeight: THEME_CONSTANTS.l4LineHeight
|
|
38427
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
38420
|
+
lineHeight: THEME_CONSTANTS.l4LineHeight
|
|
38428
38421
|
}
|
|
38429
38422
|
},
|
|
38430
38423
|
label: {
|
|
@@ -38469,8 +38462,7 @@
|
|
|
38469
38462
|
textBaseline: 'middle',
|
|
38470
38463
|
textAlign: 'center',
|
|
38471
38464
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
38472
|
-
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
38473
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
38465
|
+
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
38474
38466
|
}
|
|
38475
38467
|
},
|
|
38476
38468
|
nonLeafLabel: {
|
|
@@ -38481,7 +38473,6 @@
|
|
|
38481
38473
|
lineWidth: 2,
|
|
38482
38474
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
38483
38475
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
38484
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
38485
38476
|
textBaseline: 'middle',
|
|
38486
38477
|
textAlign: 'center'
|
|
38487
38478
|
}
|
|
@@ -55415,8 +55406,7 @@
|
|
|
55415
55406
|
cursor: 'pointer',
|
|
55416
55407
|
fill: { type: 'palette', key: 'primaryFontColor' },
|
|
55417
55408
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
55418
|
-
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
55419
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
55409
|
+
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
55420
55410
|
}
|
|
55421
55411
|
}
|
|
55422
55412
|
};
|
|
@@ -55469,8 +55459,7 @@
|
|
|
55469
55459
|
stroke: 'white',
|
|
55470
55460
|
lineWidth: 2,
|
|
55471
55461
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
55472
|
-
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
55473
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
55462
|
+
lineHeight: THEME_CONSTANTS.l5LineHeight
|
|
55474
55463
|
}
|
|
55475
55464
|
}
|
|
55476
55465
|
};
|
|
@@ -55555,7 +55544,6 @@
|
|
|
55555
55544
|
style: {
|
|
55556
55545
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
55557
55546
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
55558
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
55559
55547
|
fontWeight: 'normal',
|
|
55560
55548
|
fillOpacity: 1
|
|
55561
55549
|
}
|
|
@@ -55565,7 +55553,6 @@
|
|
|
55565
55553
|
label: {
|
|
55566
55554
|
style: {
|
|
55567
55555
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
55568
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
55569
55556
|
fontWeight: 'normal',
|
|
55570
55557
|
fillOpacity: 1
|
|
55571
55558
|
}
|
|
@@ -55708,7 +55695,6 @@
|
|
|
55708
55695
|
space: 10,
|
|
55709
55696
|
style: {
|
|
55710
55697
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
55711
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
55712
55698
|
fill: { type: 'palette', key: 'axisFontColor' },
|
|
55713
55699
|
fontWeight: 'normal',
|
|
55714
55700
|
fillOpacity: 1
|
|
@@ -55719,7 +55705,6 @@
|
|
|
55719
55705
|
style: {
|
|
55720
55706
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
55721
55707
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
55722
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
55723
55708
|
fill: { type: 'palette', key: 'secondaryFontColor' },
|
|
55724
55709
|
fontWeight: 'normal',
|
|
55725
55710
|
fillOpacity: 1
|
|
@@ -55787,8 +55772,7 @@
|
|
|
55787
55772
|
style: {
|
|
55788
55773
|
fontWeight: 'normal',
|
|
55789
55774
|
fill: { type: 'palette', key: 'labelReverseFontColor' },
|
|
55790
|
-
fontSize: THEME_CONSTANTS.l5FontSize
|
|
55791
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
55775
|
+
fontSize: THEME_CONSTANTS.l5FontSize
|
|
55792
55776
|
},
|
|
55793
55777
|
labelBackground: {
|
|
55794
55778
|
padding: {
|
|
@@ -55931,7 +55915,6 @@
|
|
|
55931
55915
|
style: {
|
|
55932
55916
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
55933
55917
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
55934
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
55935
55918
|
fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
|
|
55936
55919
|
}
|
|
55937
55920
|
},
|
|
@@ -55940,7 +55923,6 @@
|
|
|
55940
55923
|
style: {
|
|
55941
55924
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
55942
55925
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
55943
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
55944
55926
|
fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
|
|
55945
55927
|
}
|
|
55946
55928
|
},
|
|
@@ -55967,7 +55949,6 @@
|
|
|
55967
55949
|
autoFit: false,
|
|
55968
55950
|
style: {
|
|
55969
55951
|
fontSize: THEME_CONSTANTS.l1FontSize,
|
|
55970
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
55971
55952
|
fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
|
|
55972
55953
|
fontWeight: 'normal',
|
|
55973
55954
|
fillOpacity: 1,
|
|
@@ -55979,7 +55960,6 @@
|
|
|
55979
55960
|
visible: true,
|
|
55980
55961
|
style: {
|
|
55981
55962
|
fontSize: THEME_CONSTANTS.l2FontSize,
|
|
55982
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
55983
55963
|
fill: { type: 'palette', key: 'secondaryFontColor' },
|
|
55984
55964
|
fontWeight: 'normal',
|
|
55985
55965
|
fillOpacity: 1,
|
|
@@ -55999,7 +55979,6 @@
|
|
|
55999
55979
|
textStyle: {
|
|
56000
55980
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
56001
55981
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
56002
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56003
55982
|
fontWeight: 'normal',
|
|
56004
55983
|
fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
|
|
56005
55984
|
},
|
|
@@ -56012,7 +55991,6 @@
|
|
|
56012
55991
|
style: {
|
|
56013
55992
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
56014
55993
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
56015
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56016
55994
|
fontWeight: 'normal',
|
|
56017
55995
|
fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
|
|
56018
55996
|
},
|
|
@@ -56022,7 +56000,6 @@
|
|
|
56022
56000
|
style: {
|
|
56023
56001
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
56024
56002
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
56025
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56026
56003
|
fontWeight: 'normal',
|
|
56027
56004
|
fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
|
|
56028
56005
|
},
|
|
@@ -56032,7 +56009,6 @@
|
|
|
56032
56009
|
style: {
|
|
56033
56010
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
56034
56011
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
56035
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56036
56012
|
fontWeight: 'normal',
|
|
56037
56013
|
fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
|
|
56038
56014
|
},
|
|
@@ -56082,7 +56058,6 @@
|
|
|
56082
56058
|
textStyle: {
|
|
56083
56059
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
56084
56060
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
56085
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56086
56061
|
fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
|
|
56087
56062
|
fontWeight: 'normal'
|
|
56088
56063
|
},
|
|
@@ -56123,7 +56098,6 @@
|
|
|
56123
56098
|
fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' },
|
|
56124
56099
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
56125
56100
|
lineHeight: THEME_CONSTANTS.l5LineHeight,
|
|
56126
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56127
56101
|
opacity: 1
|
|
56128
56102
|
},
|
|
56129
56103
|
state: {
|
|
@@ -56189,8 +56163,7 @@
|
|
|
56189
56163
|
textBaseline: 'middle',
|
|
56190
56164
|
textAlign: 'left',
|
|
56191
56165
|
fill: 'black',
|
|
56192
|
-
fontSize: THEME_CONSTANTS.l6FontSize
|
|
56193
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
56166
|
+
fontSize: THEME_CONSTANTS.l6FontSize
|
|
56194
56167
|
}
|
|
56195
56168
|
},
|
|
56196
56169
|
valueLabel: {
|
|
@@ -56199,8 +56172,7 @@
|
|
|
56199
56172
|
textBaseline: 'middle',
|
|
56200
56173
|
textAlign: 'left',
|
|
56201
56174
|
fill: 'black',
|
|
56202
|
-
fontSize: THEME_CONSTANTS.l6FontSize
|
|
56203
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily
|
|
56175
|
+
fontSize: THEME_CONSTANTS.l6FontSize
|
|
56204
56176
|
}
|
|
56205
56177
|
},
|
|
56206
56178
|
background: {
|
|
@@ -56231,7 +56203,6 @@
|
|
|
56231
56203
|
label: {
|
|
56232
56204
|
style: {
|
|
56233
56205
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
56234
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56235
56206
|
fontWeight: 'normal',
|
|
56236
56207
|
fontStyle: 'normal',
|
|
56237
56208
|
fill: { type: 'palette', key: 'labelReverseFontColor' },
|
|
@@ -56284,7 +56255,6 @@
|
|
|
56284
56255
|
refY: 5,
|
|
56285
56256
|
style: {
|
|
56286
56257
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
56287
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56288
56258
|
fontWeight: 'normal',
|
|
56289
56259
|
fontStyle: 'normal',
|
|
56290
56260
|
fill: { type: 'palette', key: 'labelReverseFontColor' },
|
|
@@ -56402,13 +56372,11 @@
|
|
|
56402
56372
|
textStyle: {
|
|
56403
56373
|
fontSize: THEME_CONSTANTS.l3FontSize,
|
|
56404
56374
|
lineHeight: THEME_CONSTANTS.l3LineHeight,
|
|
56405
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56406
56375
|
fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
|
|
56407
56376
|
},
|
|
56408
56377
|
subtextStyle: {
|
|
56409
56378
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
56410
56379
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
56411
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56412
56380
|
fill: { type: 'palette', key: 'secondaryFontColor' }
|
|
56413
56381
|
}
|
|
56414
56382
|
};
|
|
@@ -56443,7 +56411,6 @@
|
|
|
56443
56411
|
titleLabel: {
|
|
56444
56412
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
56445
56413
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
56446
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56447
56414
|
fontColor: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
|
|
56448
56415
|
fontWeight: 'bold',
|
|
56449
56416
|
textAlign: 'left',
|
|
@@ -56457,7 +56424,6 @@
|
|
|
56457
56424
|
keyLabel: {
|
|
56458
56425
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
56459
56426
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
56460
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56461
56427
|
fontColor: { type: 'palette', key: 'secondaryFontColor' },
|
|
56462
56428
|
textAlign: 'left',
|
|
56463
56429
|
textBaseline: 'middle',
|
|
@@ -56466,7 +56432,6 @@
|
|
|
56466
56432
|
valueLabel: {
|
|
56467
56433
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
56468
56434
|
lineHeight: THEME_CONSTANTS.l4LineHeight,
|
|
56469
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56470
56435
|
fontColor: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
|
|
56471
56436
|
fontWeight: 'bold',
|
|
56472
56437
|
textBaseline: 'middle',
|
|
@@ -56480,13 +56445,11 @@
|
|
|
56480
56445
|
padding: 8,
|
|
56481
56446
|
titleStyle: {
|
|
56482
56447
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
56483
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56484
56448
|
fontWeight: 'bold',
|
|
56485
56449
|
fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
|
|
56486
56450
|
},
|
|
56487
56451
|
contentStyle: {
|
|
56488
56452
|
fontSize: THEME_CONSTANTS.l5FontSize,
|
|
56489
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56490
56453
|
fill: { type: 'palette', key: 'secondaryFontColor' }
|
|
56491
56454
|
},
|
|
56492
56455
|
panel: {
|
|
@@ -56514,7 +56477,6 @@
|
|
|
56514
56477
|
animation: false,
|
|
56515
56478
|
style: {
|
|
56516
56479
|
fontSize: THEME_CONSTANTS.l4FontSize,
|
|
56517
|
-
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
56518
56480
|
fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
|
|
56519
56481
|
}
|
|
56520
56482
|
};
|
|
@@ -59812,8 +59774,10 @@
|
|
|
59812
59774
|
spec = specTransform(spec);
|
|
59813
59775
|
const lastSpec = this._spec;
|
|
59814
59776
|
this._spec = spec;
|
|
59815
|
-
|
|
59816
|
-
|
|
59777
|
+
if (!isEqual$1(lastSpec.theme, spec.theme)) {
|
|
59778
|
+
this._updateCurrentTheme();
|
|
59779
|
+
(_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(this._currentTheme, false);
|
|
59780
|
+
}
|
|
59817
59781
|
const reSize = this._updateChartConfiguration(lastSpec);
|
|
59818
59782
|
(_c = (_b = this._compiler) === null || _b === void 0 ? void 0 : _b.getVGrammarView()) === null || _c === void 0 ? void 0 : _c.updateLayoutTag();
|
|
59819
59783
|
return mergeUpdateResult(this._chart.updateSpec(spec, morphConfig), {
|
|
@@ -61166,6 +61130,9 @@
|
|
|
61166
61130
|
this._theme = theme;
|
|
61167
61131
|
this._mergeMarkTheme();
|
|
61168
61132
|
}
|
|
61133
|
+
setTheme(theme) {
|
|
61134
|
+
this._theme = theme;
|
|
61135
|
+
}
|
|
61169
61136
|
_mergeMarkTheme() {
|
|
61170
61137
|
var _a, _b;
|
|
61171
61138
|
const globalTheme = (_b = (_a = this._option).getTheme) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
@@ -63465,7 +63432,7 @@
|
|
|
63465
63432
|
VChart.useMark([ComponentMark, GroupMark, ImageMark]);
|
|
63466
63433
|
Factory.registerRegion('region', Region);
|
|
63467
63434
|
Factory.registerLayout('base', Layout);
|
|
63468
|
-
const version = "1.4.1
|
|
63435
|
+
const version = "1.4.1";
|
|
63469
63436
|
Logger.getInstance(LoggerLevel.Error);
|
|
63470
63437
|
|
|
63471
63438
|
const WordCloud3dAnimation = (params) => {
|
|
@@ -67839,6 +67806,7 @@
|
|
|
67839
67806
|
this.setLayoutTag(true);
|
|
67840
67807
|
}
|
|
67841
67808
|
updateViewBox(viewBox, reLayout) {
|
|
67809
|
+
this._option.viewBox = viewBox;
|
|
67842
67810
|
this._updateLayoutRect(viewBox);
|
|
67843
67811
|
this.setLayoutTag(true, null, reLayout);
|
|
67844
67812
|
}
|
|
@@ -68334,28 +68302,28 @@
|
|
|
68334
68302
|
getCurrentTheme() {
|
|
68335
68303
|
return this._theme;
|
|
68336
68304
|
}
|
|
68337
|
-
setCurrentTheme(theme) {
|
|
68305
|
+
setCurrentTheme(theme, reInit = true) {
|
|
68338
68306
|
this._theme = theme;
|
|
68339
68307
|
this.setLayoutTag(true);
|
|
68340
68308
|
this.transformSpec(this._spec);
|
|
68341
68309
|
this.updateGlobalScaleTheme();
|
|
68342
|
-
this.setRegionTheme();
|
|
68343
|
-
this.setComponentTheme(theme);
|
|
68344
|
-
this.setSeriesTheme(theme);
|
|
68310
|
+
this.setRegionTheme(reInit);
|
|
68311
|
+
this.setComponentTheme(theme, reInit);
|
|
68312
|
+
this.setSeriesTheme(theme, reInit);
|
|
68345
68313
|
}
|
|
68346
|
-
setRegionTheme() {
|
|
68314
|
+
setRegionTheme(reInit = true) {
|
|
68347
68315
|
this._regions.forEach(r => {
|
|
68348
|
-
r.reInit();
|
|
68316
|
+
reInit ? r.reInit() : r.setTheme();
|
|
68349
68317
|
});
|
|
68350
68318
|
}
|
|
68351
|
-
setComponentTheme(theme) {
|
|
68319
|
+
setComponentTheme(theme, reInit = true) {
|
|
68352
68320
|
this._components.forEach(c => {
|
|
68353
|
-
c.setCurrentTheme(theme.
|
|
68321
|
+
reInit ? c.setCurrentTheme(theme.component[c.type], true) : c.setTheme(theme.component[c.type]);
|
|
68354
68322
|
});
|
|
68355
68323
|
}
|
|
68356
|
-
setSeriesTheme(theme) {
|
|
68324
|
+
setSeriesTheme(theme, reInit = true) {
|
|
68357
68325
|
this._series.forEach((s) => __awaiter$i(this, void 0, void 0, function* () {
|
|
68358
|
-
yield s.setCurrentTheme(theme.series[s.type], true);
|
|
68326
|
+
reInit ? yield s.setCurrentTheme(theme.series[s.type], true) : s.setTheme(theme.series[s.type]);
|
|
68359
68327
|
}));
|
|
68360
68328
|
}
|
|
68361
68329
|
clear() {
|
|
@@ -75732,10 +75700,10 @@
|
|
|
75732
75700
|
x: () => this.angleAxisHelper.center().x,
|
|
75733
75701
|
y: () => this.angleAxisHelper.center().y,
|
|
75734
75702
|
startAngle: (datum) => this.angleAxisHelper.dataToPosition(this.getDatumPositionValues(datum, this.getGroupFields())) -
|
|
75735
|
-
this.angleAxisHelper.getBandwidth(
|
|
75703
|
+
this.angleAxisHelper.getBandwidth(this.getGroupFields().length - 1) * 0.5,
|
|
75736
75704
|
endAngle: (datum) => this.angleAxisHelper.dataToPosition(this.getDatumPositionValues(datum, this.getGroupFields())) +
|
|
75737
75705
|
this.getRoseAngle() -
|
|
75738
|
-
this.angleAxisHelper.getBandwidth(
|
|
75706
|
+
this.angleAxisHelper.getBandwidth(this.getGroupFields().length - 1) * 0.5,
|
|
75739
75707
|
fill: this.getColorAttribute(),
|
|
75740
75708
|
outerRadius: (datum) => valueInScaleRange(this.radiusAxisHelper.dataToPosition([datum[this._radiusField[0]]]), this.radiusAxisHelper.getScale(0)),
|
|
75741
75709
|
innerRadius: (datum) => {
|
|
@@ -75806,6 +75774,9 @@
|
|
|
75806
75774
|
axis[configName] = { visible: false };
|
|
75807
75775
|
}
|
|
75808
75776
|
});
|
|
75777
|
+
if (axis.orient === 'angle' && isNil$1(axis.bandPosition)) {
|
|
75778
|
+
axis.bandPosition = 0.5;
|
|
75779
|
+
}
|
|
75809
75780
|
});
|
|
75810
75781
|
spec.crosshair = array(spec.crosshair || {}).map(crosshairCfg => {
|
|
75811
75782
|
return mergeSpec({
|
|
@@ -82630,7 +82601,7 @@
|
|
|
82630
82601
|
}
|
|
82631
82602
|
}
|
|
82632
82603
|
initMarkStyle() {
|
|
82633
|
-
var _a, _b, _c;
|
|
82604
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
82634
82605
|
const wordMark = this._wordMark;
|
|
82635
82606
|
const fillingWordMark = this._fillingWordMark;
|
|
82636
82607
|
const textField = ((_a = this._spec.word) === null || _a === void 0 ? void 0 : _a.formatMethod) ? WORD_CLOUD_TEXT : this._nameField;
|
|
@@ -82649,6 +82620,9 @@
|
|
|
82649
82620
|
angle: (datum) => datum.angle,
|
|
82650
82621
|
visible: (datum) => !datum.isFillingWord
|
|
82651
82622
|
}, 'normal', AttributeLevel.Series);
|
|
82623
|
+
this.setMarkStyle(wordMark, {
|
|
82624
|
+
fontFamily: (_d = (_c = (_b = this._spec.word) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.fontFamily) !== null && _d !== void 0 ? _d : (_f = (_e = this._option) === null || _e === void 0 ? void 0 : _e.getTheme()) === null || _f === void 0 ? void 0 : _f.fontFamily
|
|
82625
|
+
}, 'normal', AttributeLevel.User_Mark);
|
|
82652
82626
|
}
|
|
82653
82627
|
if (fillingWordMark) {
|
|
82654
82628
|
this.setMarkStyle(fillingWordMark, {
|
|
@@ -82665,11 +82639,14 @@
|
|
|
82665
82639
|
angle: (datum) => datum.angle,
|
|
82666
82640
|
visible: (datum) => datum.isFillingWord
|
|
82667
82641
|
}, 'normal', AttributeLevel.Series);
|
|
82642
|
+
this.setMarkStyle(fillingWordMark, {
|
|
82643
|
+
fontFamily: (_j = (_h = (_g = this._spec.word) === null || _g === void 0 ? void 0 : _g.style) === null || _h === void 0 ? void 0 : _h.fontFamily) !== null && _j !== void 0 ? _j : (_l = (_k = this._option) === null || _k === void 0 ? void 0 : _k.getTheme()) === null || _l === void 0 ? void 0 : _l.fontFamily
|
|
82644
|
+
}, 'normal', AttributeLevel.User_Mark);
|
|
82668
82645
|
}
|
|
82669
82646
|
this._trigger.registerMark(wordMark);
|
|
82670
|
-
(
|
|
82647
|
+
(_m = this._tooltipHelper) === null || _m === void 0 ? void 0 : _m.activeTriggerSet.mark.add(wordMark);
|
|
82671
82648
|
this._trigger.registerMark(fillingWordMark);
|
|
82672
|
-
(
|
|
82649
|
+
(_o = this._tooltipHelper) === null || _o === void 0 ? void 0 : _o.activeTriggerSet.mark.add(fillingWordMark);
|
|
82673
82650
|
}
|
|
82674
82651
|
initAnimation() {
|
|
82675
82652
|
[this._wordMark, this._fillingWordMark].forEach(mark => {
|
|
@@ -82705,7 +82682,7 @@
|
|
|
82705
82682
|
return (datum) => colorList[0];
|
|
82706
82683
|
}
|
|
82707
82684
|
compile() {
|
|
82708
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23;
|
|
82685
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
82709
82686
|
super.compile();
|
|
82710
82687
|
const { width, height } = this._region.getLayoutRect();
|
|
82711
82688
|
if (!isValidNumber$1(width) || !isValidNumber$1(height) || !(height > 0 && width > 0)) {
|
|
@@ -82766,9 +82743,9 @@
|
|
|
82766
82743
|
fontSizeRange: this._fontSizeRange,
|
|
82767
82744
|
padding: this._fontPadding,
|
|
82768
82745
|
rotate: { field: WORD_CLOUD_ANGLE },
|
|
82769
|
-
fontFamily: (_d = this._fontFamilyField) !== null && _d !== void 0 ? _d : (_f = (_e = this._spec.word) === null || _e === void 0 ? void 0 : _e.style) === null || _f === void 0 ? void 0 : _f.fontFamily,
|
|
82746
|
+
fontFamily: (_g = (_d = this._fontFamilyField) !== null && _d !== void 0 ? _d : (_f = (_e = this._spec.word) === null || _e === void 0 ? void 0 : _e.style) === null || _f === void 0 ? void 0 : _f.fontFamily) !== null && _g !== void 0 ? _g : (_j = (_h = this._option) === null || _h === void 0 ? void 0 : _h.getTheme()) === null || _j === void 0 ? void 0 : _j.fontFamily,
|
|
82770
82747
|
fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
|
|
82771
|
-
fontStyle: (
|
|
82748
|
+
fontStyle: (_k = this._fontStyleField) !== null && _k !== void 0 ? _k : (_m = (_l = this._spec.word) === null || _l === void 0 ? void 0 : _l.style) === null || _m === void 0 ? void 0 : _m.fontStyle,
|
|
82772
82749
|
randomVisible: this._random,
|
|
82773
82750
|
clip: this._wordCloudConfig.drawOutOfBound === 'clip',
|
|
82774
82751
|
shrink: this._wordCloudConfig.zoomToFit.shrink,
|
|
@@ -82785,39 +82762,39 @@
|
|
|
82785
82762
|
dataIndexKey: DEFAULT_DATA_KEY,
|
|
82786
82763
|
size: [width, height],
|
|
82787
82764
|
shape: this._maskShape,
|
|
82788
|
-
text: { field: ((
|
|
82765
|
+
text: { field: ((_o = this._spec.word) === null || _o === void 0 ? void 0 : _o.formatMethod) ? WORD_CLOUD_TEXT : this._nameField },
|
|
82789
82766
|
fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],
|
|
82790
82767
|
fontSizeRange: this._fontSizeRange,
|
|
82791
82768
|
padding: this._fontPadding,
|
|
82792
82769
|
rotateList: rotateAngles,
|
|
82793
|
-
fontFamily: (
|
|
82770
|
+
fontFamily: (_s = (_p = this._fontFamilyField) !== null && _p !== void 0 ? _p : (_r = (_q = this._spec.word) === null || _q === void 0 ? void 0 : _q.style) === null || _r === void 0 ? void 0 : _r.fontFamily) !== null && _s !== void 0 ? _s : (_u = (_t = this._option) === null || _t === void 0 ? void 0 : _t.getTheme()) === null || _u === void 0 ? void 0 : _u.fontFamily,
|
|
82794
82771
|
fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
|
|
82795
|
-
fontStyle: (
|
|
82796
|
-
fillingFontFamily: (
|
|
82772
|
+
fontStyle: (_v = this._fontStyleField) !== null && _v !== void 0 ? _v : (_x = (_w = this._spec.word) === null || _w === void 0 ? void 0 : _w.style) === null || _x === void 0 ? void 0 : _x.fontStyle,
|
|
82773
|
+
fillingFontFamily: (_2 = (_z = (_y = this._wordCloudShapeConfig) === null || _y === void 0 ? void 0 : _y.fillingFontFamilyField) !== null && _z !== void 0 ? _z : (_1 = (_0 = this._spec.word) === null || _0 === void 0 ? void 0 : _0.style) === null || _1 === void 0 ? void 0 : _1.fontFamily) !== null && _2 !== void 0 ? _2 : (_4 = (_3 = this._option) === null || _3 === void 0 ? void 0 : _3.getTheme()) === null || _4 === void 0 ? void 0 : _4.fontFamily,
|
|
82797
82774
|
fillingPadding: this._fillingFontPadding,
|
|
82798
|
-
fillingFontStyle: (
|
|
82799
|
-
fillingFontWeight: (
|
|
82775
|
+
fillingFontStyle: (_6 = (_5 = this._wordCloudShapeConfig) === null || _5 === void 0 ? void 0 : _5.fillingFontStyleField) !== null && _6 !== void 0 ? _6 : (_8 = (_7 = this._spec.word) === null || _7 === void 0 ? void 0 : _7.style) === null || _8 === void 0 ? void 0 : _8.fontStyle,
|
|
82776
|
+
fillingFontWeight: (_10 = (_9 = this._wordCloudShapeConfig) === null || _9 === void 0 ? void 0 : _9.fillingFontWeightField) !== null && _10 !== void 0 ? _10 : (_12 = (_11 = this._spec.word) === null || _11 === void 0 ? void 0 : _11.style) === null || _12 === void 0 ? void 0 : _12.fontWeight,
|
|
82800
82777
|
fillingRotateList: fillingRotateAngles,
|
|
82801
|
-
fillingTimes: (
|
|
82802
|
-
fillingXStep: (
|
|
82803
|
-
fillingYStep: (
|
|
82804
|
-
fillingXRatioStep: (
|
|
82805
|
-
fillingYRatioStep: (
|
|
82806
|
-
fillingInitialOpacity: (
|
|
82807
|
-
fillingDeltaOpacity: (
|
|
82808
|
-
fillingInitialFontSize: (
|
|
82809
|
-
fillingDeltaFontSize: (
|
|
82810
|
-
ratio: (
|
|
82811
|
-
fillingRatio: (
|
|
82812
|
-
removeWhiteBorder: (
|
|
82813
|
-
textLayoutTimes: (
|
|
82814
|
-
fontSizeShrinkFactor: (
|
|
82815
|
-
stepFactor: (
|
|
82816
|
-
layoutMode: (
|
|
82817
|
-
importantWordCount: (
|
|
82818
|
-
globalShinkLimit: (
|
|
82819
|
-
fontSizeEnlargeFactor: (
|
|
82820
|
-
fillingDeltaFontSizeFactor: (
|
|
82778
|
+
fillingTimes: (_13 = this._wordCloudShapeConfig) === null || _13 === void 0 ? void 0 : _13.fillingTimes,
|
|
82779
|
+
fillingXStep: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingXStep,
|
|
82780
|
+
fillingYStep: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingYStep,
|
|
82781
|
+
fillingXRatioStep: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.fillingXRatioStep,
|
|
82782
|
+
fillingYRatioStep: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fillingYRatioStep,
|
|
82783
|
+
fillingInitialOpacity: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fillingInitialOpacity,
|
|
82784
|
+
fillingDeltaOpacity: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.fillingDeltaOpacity,
|
|
82785
|
+
fillingInitialFontSize: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.fillingInitialFontSize,
|
|
82786
|
+
fillingDeltaFontSize: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.fillingDeltaFontSize,
|
|
82787
|
+
ratio: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.ratio,
|
|
82788
|
+
fillingRatio: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.fillingRatio,
|
|
82789
|
+
removeWhiteBorder: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.removeWhiteBorder,
|
|
82790
|
+
textLayoutTimes: (_25 = this._wordCloudShapeConfig) === null || _25 === void 0 ? void 0 : _25.textLayoutTimes,
|
|
82791
|
+
fontSizeShrinkFactor: (_26 = this._wordCloudShapeConfig) === null || _26 === void 0 ? void 0 : _26.fontSizeShrinkFactor,
|
|
82792
|
+
stepFactor: (_27 = this._wordCloudShapeConfig) === null || _27 === void 0 ? void 0 : _27.stepFactor,
|
|
82793
|
+
layoutMode: (_28 = this._wordCloudShapeConfig) === null || _28 === void 0 ? void 0 : _28.layoutMode,
|
|
82794
|
+
importantWordCount: (_29 = this._wordCloudShapeConfig) === null || _29 === void 0 ? void 0 : _29.importantWordCount,
|
|
82795
|
+
globalShinkLimit: (_30 = this._wordCloudShapeConfig) === null || _30 === void 0 ? void 0 : _30.globalShinkLimit,
|
|
82796
|
+
fontSizeEnlargeFactor: (_31 = this._wordCloudShapeConfig) === null || _31 === void 0 ? void 0 : _31.fontSizeEnlargeFactor,
|
|
82797
|
+
fillingDeltaFontSizeFactor: (_32 = this._wordCloudShapeConfig) === null || _32 === void 0 ? void 0 : _32.fillingDeltaFontSizeFactor
|
|
82821
82798
|
});
|
|
82822
82799
|
}
|
|
82823
82800
|
this._data.getProduct().transform(wordCloudTransforms);
|
|
@@ -82899,7 +82876,7 @@
|
|
|
82899
82876
|
this.type = SeriesTypeEnum.wordCloud3d;
|
|
82900
82877
|
}
|
|
82901
82878
|
compile() {
|
|
82902
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24;
|
|
82879
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33;
|
|
82903
82880
|
super.compile();
|
|
82904
82881
|
const wordCloudTransforms = [];
|
|
82905
82882
|
const valueField = this._valueField;
|
|
@@ -82957,9 +82934,9 @@
|
|
|
82957
82934
|
fontSizeRange: this._fontSizeRange,
|
|
82958
82935
|
padding: this._fontPadding,
|
|
82959
82936
|
rotate: { field: WORD_CLOUD_ANGLE },
|
|
82960
|
-
fontFamily: (_e = this._fontFamilyField) !== null && _e !== void 0 ? _e : (_g = (_f = this._spec.word) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fontFamily,
|
|
82937
|
+
fontFamily: (_h = (_e = this._fontFamilyField) !== null && _e !== void 0 ? _e : (_g = (_f = this._spec.word) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fontFamily) !== null && _h !== void 0 ? _h : (_k = (_j = this._option) === null || _j === void 0 ? void 0 : _j.getTheme()) === null || _k === void 0 ? void 0 : _k.fontFamily,
|
|
82961
82938
|
fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
|
|
82962
|
-
fontStyle: (
|
|
82939
|
+
fontStyle: (_l = this._fontStyleField) !== null && _l !== void 0 ? _l : (_o = (_m = this._spec.word) === null || _m === void 0 ? void 0 : _m.style) === null || _o === void 0 ? void 0 : _o.fontStyle,
|
|
82963
82940
|
depth_3d: this._spec.depth_3d,
|
|
82964
82941
|
randomVisible: this._random,
|
|
82965
82942
|
clip: this._wordCloudConfig.drawOutOfBound === 'clip',
|
|
@@ -82976,42 +82953,42 @@
|
|
|
82976
82953
|
type: 'wordcloudShape',
|
|
82977
82954
|
size: [this._region.getLayoutRect().width, this._region.getLayoutRect().height],
|
|
82978
82955
|
shape: this._maskShape,
|
|
82979
|
-
postProjection: (
|
|
82956
|
+
postProjection: (_p = this._spec.postProjection) !== null && _p !== void 0 ? _p : 'StereographicProjection',
|
|
82980
82957
|
dataIndexKey: DEFAULT_DATA_KEY,
|
|
82981
82958
|
text: { field: textField },
|
|
82982
82959
|
fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],
|
|
82983
82960
|
fontSizeRange: this._fontSizeRange,
|
|
82984
82961
|
padding: this._fontPadding,
|
|
82985
82962
|
rotateList: rotateAngles,
|
|
82986
|
-
fontFamily: (
|
|
82963
|
+
fontFamily: (_t = (_q = this._fontFamilyField) !== null && _q !== void 0 ? _q : (_s = (_r = this._spec.word) === null || _r === void 0 ? void 0 : _r.style) === null || _s === void 0 ? void 0 : _s.fontFamily) !== null && _t !== void 0 ? _t : (_v = (_u = this._option) === null || _u === void 0 ? void 0 : _u.getTheme()) === null || _v === void 0 ? void 0 : _v.fontFamily,
|
|
82987
82964
|
fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
|
|
82988
|
-
fontStyle: (
|
|
82965
|
+
fontStyle: (_w = this._fontStyleField) !== null && _w !== void 0 ? _w : (_y = (_x = this._spec.word) === null || _x === void 0 ? void 0 : _x.style) === null || _y === void 0 ? void 0 : _y.fontStyle,
|
|
82989
82966
|
depth_3d: this._spec.depth_3d,
|
|
82990
|
-
fillingFontFamily: (
|
|
82967
|
+
fillingFontFamily: (_3 = (_0 = (_z = this._wordCloudShapeConfig) === null || _z === void 0 ? void 0 : _z.fillingFontFamilyField) !== null && _0 !== void 0 ? _0 : (_2 = (_1 = this._spec.word) === null || _1 === void 0 ? void 0 : _1.style) === null || _2 === void 0 ? void 0 : _2.fontFamily) !== null && _3 !== void 0 ? _3 : (_5 = (_4 = this._option) === null || _4 === void 0 ? void 0 : _4.getTheme()) === null || _5 === void 0 ? void 0 : _5.fontFamily,
|
|
82991
82968
|
fillingPadding: this._fillingFontPadding,
|
|
82992
|
-
fillingFontStyle: (
|
|
82993
|
-
fillingFontWeight: (
|
|
82969
|
+
fillingFontStyle: (_7 = (_6 = this._wordCloudShapeConfig) === null || _6 === void 0 ? void 0 : _6.fillingFontStyleField) !== null && _7 !== void 0 ? _7 : (_9 = (_8 = this._spec.word) === null || _8 === void 0 ? void 0 : _8.style) === null || _9 === void 0 ? void 0 : _9.fontStyle,
|
|
82970
|
+
fillingFontWeight: (_11 = (_10 = this._wordCloudShapeConfig) === null || _10 === void 0 ? void 0 : _10.fillingFontWeightField) !== null && _11 !== void 0 ? _11 : (_13 = (_12 = this._spec.word) === null || _12 === void 0 ? void 0 : _12.style) === null || _13 === void 0 ? void 0 : _13.fontWeight,
|
|
82994
82971
|
fillingRotateList: fillingRotateAngles,
|
|
82995
|
-
fillingTimes: (
|
|
82996
|
-
fillingXStep: (
|
|
82997
|
-
fillingYStep: (
|
|
82998
|
-
fillingXRatioStep: (
|
|
82999
|
-
fillingYRatioStep: (
|
|
83000
|
-
fillingInitialOpacity: (
|
|
83001
|
-
fillingDeltaOpacity: (
|
|
83002
|
-
fillingInitialFontSize: (
|
|
83003
|
-
fillingDeltaFontSize: (
|
|
83004
|
-
ratio: (
|
|
83005
|
-
fillingRatio: (
|
|
83006
|
-
removeWhiteBorder: (
|
|
83007
|
-
textLayoutTimes: (
|
|
83008
|
-
fontSizeShrinkFactor: (
|
|
83009
|
-
stepFactor: (
|
|
83010
|
-
layoutMode: (
|
|
83011
|
-
importantWordCount: (
|
|
83012
|
-
globalShinkLimit: (
|
|
83013
|
-
fontSizeEnlargeFactor: (
|
|
83014
|
-
fillingDeltaFontSizeFactor: (
|
|
82972
|
+
fillingTimes: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingTimes,
|
|
82973
|
+
fillingXStep: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingXStep,
|
|
82974
|
+
fillingYStep: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.fillingYStep,
|
|
82975
|
+
fillingXRatioStep: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fillingXRatioStep,
|
|
82976
|
+
fillingYRatioStep: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fillingYRatioStep,
|
|
82977
|
+
fillingInitialOpacity: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.fillingInitialOpacity,
|
|
82978
|
+
fillingDeltaOpacity: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.fillingDeltaOpacity,
|
|
82979
|
+
fillingInitialFontSize: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.fillingInitialFontSize,
|
|
82980
|
+
fillingDeltaFontSize: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.fillingDeltaFontSize,
|
|
82981
|
+
ratio: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.ratio,
|
|
82982
|
+
fillingRatio: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.fillingRatio,
|
|
82983
|
+
removeWhiteBorder: (_25 = this._wordCloudShapeConfig) === null || _25 === void 0 ? void 0 : _25.removeWhiteBorder,
|
|
82984
|
+
textLayoutTimes: (_26 = this._wordCloudShapeConfig) === null || _26 === void 0 ? void 0 : _26.textLayoutTimes,
|
|
82985
|
+
fontSizeShrinkFactor: (_27 = this._wordCloudShapeConfig) === null || _27 === void 0 ? void 0 : _27.fontSizeShrinkFactor,
|
|
82986
|
+
stepFactor: (_28 = this._wordCloudShapeConfig) === null || _28 === void 0 ? void 0 : _28.stepFactor,
|
|
82987
|
+
layoutMode: (_29 = this._wordCloudShapeConfig) === null || _29 === void 0 ? void 0 : _29.layoutMode,
|
|
82988
|
+
importantWordCount: (_30 = this._wordCloudShapeConfig) === null || _30 === void 0 ? void 0 : _30.importantWordCount,
|
|
82989
|
+
globalShinkLimit: (_31 = this._wordCloudShapeConfig) === null || _31 === void 0 ? void 0 : _31.globalShinkLimit,
|
|
82990
|
+
fontSizeEnlargeFactor: (_32 = this._wordCloudShapeConfig) === null || _32 === void 0 ? void 0 : _32.fontSizeEnlargeFactor,
|
|
82991
|
+
fillingDeltaFontSizeFactor: (_33 = this._wordCloudShapeConfig) === null || _33 === void 0 ? void 0 : _33.fillingDeltaFontSizeFactor
|
|
83015
82992
|
});
|
|
83016
82993
|
}
|
|
83017
82994
|
this._data.getProduct().transform(wordCloudTransforms);
|
|
@@ -83031,7 +83008,7 @@
|
|
|
83031
83008
|
}
|
|
83032
83009
|
}
|
|
83033
83010
|
initMarkStyle() {
|
|
83034
|
-
var _a, _b;
|
|
83011
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
83035
83012
|
const wordMark = this._wordMark;
|
|
83036
83013
|
const fillingWordMark = this._fillingWordMark;
|
|
83037
83014
|
if (wordMark) {
|
|
@@ -83050,6 +83027,9 @@
|
|
|
83050
83027
|
angle: (datum) => datum.angle,
|
|
83051
83028
|
visible: (datum) => !datum.isFillingWord
|
|
83052
83029
|
}, 'normal', AttributeLevel.Series);
|
|
83030
|
+
this.setMarkStyle(wordMark, {
|
|
83031
|
+
fontFamily: (_c = (_b = (_a = this._spec.word) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.fontFamily) !== null && _c !== void 0 ? _c : (_e = (_d = this._option) === null || _d === void 0 ? void 0 : _d.getTheme()) === null || _e === void 0 ? void 0 : _e.fontFamily
|
|
83032
|
+
}, 'normal', AttributeLevel.User_Mark);
|
|
83053
83033
|
}
|
|
83054
83034
|
if (fillingWordMark) {
|
|
83055
83035
|
this.setMarkStyle(fillingWordMark, {
|
|
@@ -83067,11 +83047,14 @@
|
|
|
83067
83047
|
angle: (datum) => datum.angle,
|
|
83068
83048
|
visible: (datum) => datum.isFillingWord
|
|
83069
83049
|
}, 'normal', AttributeLevel.Series);
|
|
83050
|
+
this.setMarkStyle(fillingWordMark, {
|
|
83051
|
+
fontFamily: (_h = (_g = (_f = this._spec.word) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fontFamily) !== null && _h !== void 0 ? _h : (_k = (_j = this._option) === null || _j === void 0 ? void 0 : _j.getTheme()) === null || _k === void 0 ? void 0 : _k.fontFamily
|
|
83052
|
+
}, 'normal', AttributeLevel.User_Mark);
|
|
83070
83053
|
}
|
|
83071
83054
|
this._trigger.registerMark(wordMark);
|
|
83072
|
-
(
|
|
83055
|
+
(_l = this._tooltipHelper) === null || _l === void 0 ? void 0 : _l.activeTriggerSet.mark.add(wordMark);
|
|
83073
83056
|
this._trigger.registerMark(fillingWordMark);
|
|
83074
|
-
(
|
|
83057
|
+
(_m = this._tooltipHelper) === null || _m === void 0 ? void 0 : _m.activeTriggerSet.mark.add(fillingWordMark);
|
|
83075
83058
|
}
|
|
83076
83059
|
initAnimation() {
|
|
83077
83060
|
if (this._wordMark) {
|
|
@@ -84354,7 +84337,7 @@
|
|
|
84354
84337
|
}, orient: this._orient, size: {
|
|
84355
84338
|
width: this.getLayoutRect().width,
|
|
84356
84339
|
height: this.getLayoutRect().height
|
|
84357
|
-
}, showDetail: (_a = this._spec) === null || _a === void 0 ? void 0 : _a.showDetail, brushSelect: (_c = (_b = this._spec) === null || _b === void 0 ? void 0 : _b.brushSelect) !== null && _c !== void 0 ? _c : false, previewData: this._data.getLatestData(), previewCallbackX: isNeedPreview && this._dataToPositionX, previewCallbackY: isNeedPreview && this._dataToPositionY }, this._getComponentAttrs()));
|
|
84340
|
+
}, showDetail: (_a = this._spec) === null || _a === void 0 ? void 0 : _a.showDetail, brushSelect: (_c = (_b = this._spec) === null || _b === void 0 ? void 0 : _b.brushSelect) !== null && _c !== void 0 ? _c : false, previewData: isNeedPreview && this._data.getLatestData(), previewCallbackX: isNeedPreview && this._dataToPositionX, previewCallbackY: isNeedPreview && this._dataToPositionY }, this._getComponentAttrs()));
|
|
84358
84341
|
if (this._isHorizontal) {
|
|
84359
84342
|
isNeedPreview && this._component.setPreviewCallbackY1(this._dataToPositionY2);
|
|
84360
84343
|
}
|
|
@@ -86984,6 +86967,7 @@
|
|
|
86984
86967
|
|
|
86985
86968
|
const DEFAULT_BAND_INNER_PADDING$1 = 0.1;
|
|
86986
86969
|
const DEFAULT_BAND_OUTER_PADDING$1 = 0.3;
|
|
86970
|
+
const DEFAULT_BAND_POSITION$1 = 0.5;
|
|
86987
86971
|
|
|
86988
86972
|
class BandAxisMixin {
|
|
86989
86973
|
valueToPosition(value) {
|
|
@@ -87097,12 +87081,12 @@
|
|
|
87097
87081
|
};
|
|
87098
87082
|
}
|
|
87099
87083
|
dataToPosition(values, cfg = {}) {
|
|
87100
|
-
var _a;
|
|
87084
|
+
var _a, _b;
|
|
87101
87085
|
if (values.length === 0 || this._scales.length === 0) {
|
|
87102
87086
|
return 0;
|
|
87103
87087
|
}
|
|
87104
87088
|
const { position, bandScale } = this.getPosition(values);
|
|
87105
|
-
return position + bandScale.bandwidth() * ((_a = cfg.bandPosition) !== null && _a !== void 0 ? _a :
|
|
87089
|
+
return (position + bandScale.bandwidth() * ((_b = (_a = cfg.bandPosition) !== null && _a !== void 0 ? _a : this.getSpec().bandPosition) !== null && _b !== void 0 ? _b : DEFAULT_BAND_POSITION$1));
|
|
87106
87090
|
}
|
|
87107
87091
|
transformScaleDomain() {
|
|
87108
87092
|
this.updateFixedWholeLength();
|
|
@@ -87285,6 +87269,10 @@
|
|
|
87285
87269
|
CartesianSymlogAxis.type = ComponentTypeEnum.cartesianSymlogAxis;
|
|
87286
87270
|
mixin(CartesianSymlogAxis, LinearAxisMixin);
|
|
87287
87271
|
|
|
87272
|
+
const DEFAULT_BAND_INNER_PADDING = 0;
|
|
87273
|
+
const DEFAULT_BAND_OUTER_PADDING = 0;
|
|
87274
|
+
const DEFAULT_BAND_POSITION = 0;
|
|
87275
|
+
|
|
87288
87276
|
class PolarAxis extends AxisComponent {
|
|
87289
87277
|
constructor() {
|
|
87290
87278
|
super(...arguments);
|
|
@@ -87546,6 +87534,7 @@
|
|
|
87546
87534
|
return this._scale.scale(values);
|
|
87547
87535
|
}
|
|
87548
87536
|
positionToData(position) {
|
|
87537
|
+
var _a;
|
|
87549
87538
|
const coord = this.pointToCoord(position);
|
|
87550
87539
|
if (this.getOrient() === 'radius') {
|
|
87551
87540
|
return this._scale.invert(coord.radius);
|
|
@@ -87553,12 +87542,14 @@
|
|
|
87553
87542
|
if (this._scale.type === 'band') {
|
|
87554
87543
|
const range = this._scale.range();
|
|
87555
87544
|
const rangeValue = range[range.length - 1] - range[0];
|
|
87545
|
+
const bandPosition = (_a = this.getSpec().bandPosition) !== null && _a !== void 0 ? _a : DEFAULT_BAND_POSITION;
|
|
87546
|
+
const offset = bandPosition === 0.5 ? 0 : this._scale.bandwidth() / 2;
|
|
87556
87547
|
if (range[0] < 0) {
|
|
87557
|
-
const angle = coord.angle +
|
|
87548
|
+
const angle = coord.angle + offset;
|
|
87558
87549
|
const transformedAngle = ((angle + Math.abs(range[0])) % rangeValue) - Math.abs(range[0]);
|
|
87559
87550
|
return this._scale.invert(transformedAngle);
|
|
87560
87551
|
}
|
|
87561
|
-
return this._scale.invert((coord.angle +
|
|
87552
|
+
return this._scale.invert((coord.angle + offset) % rangeValue);
|
|
87562
87553
|
}
|
|
87563
87554
|
return this._scale.invert(coord.angle);
|
|
87564
87555
|
}
|
|
@@ -87750,9 +87741,6 @@
|
|
|
87750
87741
|
PolarLinearAxis.type = ComponentTypeEnum.polarLinearAxis;
|
|
87751
87742
|
mixin(PolarLinearAxis, LinearAxisMixin);
|
|
87752
87743
|
|
|
87753
|
-
const DEFAULT_BAND_INNER_PADDING = 0;
|
|
87754
|
-
const DEFAULT_BAND_OUTER_PADDING = 0;
|
|
87755
|
-
|
|
87756
87744
|
class PolarBandAxis extends PolarAxis {
|
|
87757
87745
|
constructor() {
|
|
87758
87746
|
super(...arguments);
|
|
@@ -87762,12 +87750,13 @@
|
|
|
87762
87750
|
computeDomain(data) {
|
|
87763
87751
|
return this.computeBandDomain(data);
|
|
87764
87752
|
}
|
|
87765
|
-
dataToPosition(values) {
|
|
87753
|
+
dataToPosition(values, cfg = {}) {
|
|
87754
|
+
var _a, _b;
|
|
87766
87755
|
if (values.length === 0 || this._scales.length === 0) {
|
|
87767
87756
|
return 0;
|
|
87768
87757
|
}
|
|
87769
|
-
const { position } = this.getPosition(values);
|
|
87770
|
-
return position;
|
|
87758
|
+
const { position, bandScale } = this.getPosition(values);
|
|
87759
|
+
return (position + bandScale.bandwidth() * ((_b = (_a = cfg.bandPosition) !== null && _a !== void 0 ? _a : this.getSpec().bandPosition) !== null && _b !== void 0 ? _b : DEFAULT_BAND_POSITION));
|
|
87771
87760
|
}
|
|
87772
87761
|
updateScaleRange() {
|
|
87773
87762
|
super.updateScaleRange();
|