evui 3.3.64 → 3.3.66
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/evui.common.js +22 -13
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +22 -13
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/plugins/plugins.legend.js +6 -0
- package/src/components/chart/plugins/plugins.scrollbar.js +4 -4
- package/src/components/chart/scale/scale.step.js +0 -2
package/package.json
CHANGED
|
@@ -234,6 +234,9 @@ const modules = {
|
|
|
234
234
|
*/
|
|
235
235
|
this.onLegendBoxClick = (e) => {
|
|
236
236
|
const { legend: opt } = this.options;
|
|
237
|
+
if (opt?.stopClickEvt) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
237
240
|
const { chartIdx } = this.data;
|
|
238
241
|
|
|
239
242
|
const targetDOM = this.getContainerDOM(e);
|
|
@@ -369,6 +372,9 @@ const modules = {
|
|
|
369
372
|
*/
|
|
370
373
|
this.onLegendBoxClick = (e) => {
|
|
371
374
|
const opt = this.options.legend;
|
|
375
|
+
if (opt?.stopClickEvt) {
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
372
378
|
const series = Object.values(this.seriesList)[0];
|
|
373
379
|
|
|
374
380
|
const targetDOM = this.getContainerDOM(e);
|
|
@@ -31,7 +31,7 @@ const module = {
|
|
|
31
31
|
|
|
32
32
|
if (!scrollbarOpt.isInit) {
|
|
33
33
|
scrollbarOpt.type = axisOpt?.[0]?.type;
|
|
34
|
-
scrollbarOpt.range = axisOpt?.[0]?.range
|
|
34
|
+
scrollbarOpt.range = axisOpt?.[0]?.range?.length ? [...axisOpt?.[0]?.range] : null;
|
|
35
35
|
|
|
36
36
|
this.initScrollbarRange(dir);
|
|
37
37
|
this.createScrollbarLayout(dir);
|
|
@@ -44,15 +44,15 @@ const module = {
|
|
|
44
44
|
initScrollbarRange(dir) {
|
|
45
45
|
const scrollbarOpt = this.scrollbar[dir];
|
|
46
46
|
const axesType = scrollbarOpt.type;
|
|
47
|
+
const labels = this.options.type === 'heatMap' ? this.data.labels[dir] : this.data.labels;
|
|
47
48
|
|
|
48
|
-
if (scrollbarOpt.range?.length) {
|
|
49
|
+
if (scrollbarOpt.range?.length && labels.length) {
|
|
49
50
|
const [min, max] = scrollbarOpt.range;
|
|
50
51
|
let limitMin;
|
|
51
52
|
let limitMax;
|
|
52
53
|
|
|
53
54
|
if ((truthyNumber(min) && truthyNumber(max))) {
|
|
54
55
|
if (axesType === 'step') {
|
|
55
|
-
const labels = this.options.type === 'heatMap' ? this.data.labels[dir] : this.data.labels;
|
|
56
56
|
limitMin = 0;
|
|
57
57
|
limitMax = labels.length - 1;
|
|
58
58
|
} else {
|
|
@@ -93,7 +93,7 @@ const module = {
|
|
|
93
93
|
const axisOpt = dir === 'x' ? this.axesX : this.axesY;
|
|
94
94
|
const isUpdateAxesRange = !isEqual(newOpt?.[0]?.range, axisOpt?.[0]?.range);
|
|
95
95
|
if (isUpdateAxesRange || updateData) {
|
|
96
|
-
this.scrollbar[dir].range = newOpt?.[0]?.range
|
|
96
|
+
this.scrollbar[dir].range = newOpt?.[0]?.range?.length ? [...newOpt?.[0]?.range] : null;
|
|
97
97
|
this.initScrollbarRange(dir);
|
|
98
98
|
}
|
|
99
99
|
this.scrollbar[dir].use = !!newOpt?.[0].scrollbar?.use;
|