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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evui",
3
- "version": "3.3.64",
3
+ "version": "3.3.66",
4
4
  "description": "A EXEM Library project",
5
5
  "author": "exem <dev_client@ex-em.com>",
6
6
  "license": "MIT",
@@ -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 || null;
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 || null;
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;
@@ -85,8 +85,6 @@ class StepScale extends Scale {
85
85
  } else {
86
86
  interval = oriSteps;
87
87
  }
88
- } else if (numberOfSteps > maxSteps * 2) {
89
- interval *= 2;
90
88
  }
91
89
 
92
90
  return {