evui 3.4.118 → 3.4.119

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.4.118",
3
+ "version": "3.4.119",
4
4
  "description": "A EXEM Library project",
5
5
  "author": "exem <dev_client@ex-em.com>",
6
6
  "license": "MIT",
@@ -47,10 +47,12 @@ const modules = {
47
47
  seriesIDs.forEach((seriesID) => {
48
48
  const series = this.seriesList[seriesID];
49
49
 
50
- const hasPassingValueInData = data[seriesID].some(item => item === series.passingValue);
50
+ const hasPassingValueInData = data?.[seriesID]
51
+ ?.some(item => item === series.passingValue);
52
+
51
53
  series.hasPassingValueInData = hasPassingValueInData;
52
54
 
53
- const sData = data[seriesID].map((item) => {
55
+ const sData = data?.[seriesID]?.map((item) => {
54
56
  if (series.interpolation === 'zero' && !item) {
55
57
  return 0;
56
58
  }
@@ -349,8 +349,8 @@ class Scale {
349
349
  && (this.options.horizontal === (this.type === 'y'))
350
350
  && selectLabelInfo?.dataIndex?.length
351
351
  && !selectLabelInfo?.label
352
- .map((t, index) => this.getLabelFormat(Math.min(axisMax, t), {
353
- prev: selectLabelInfo?.label[index - 1] ?? '',
352
+ .map(t => this.getLabelFormat(Math.min(axisMax, t), {
353
+ prev: ticks[ix - 1] ?? '',
354
354
  })).includes(labelText);
355
355
 
356
356
  const labelColor = this.labelStyle.color;
@@ -205,8 +205,8 @@ class TimeCategoryScale extends Scale {
205
205
  && (this.options.horizontal === (this.type === 'y'))
206
206
  && selectLabelInfo?.dataIndex?.length
207
207
  && !selectLabelInfo?.label
208
- .map((t, index) => this.getLabelFormat(Math.min(axisMax, t), {
209
- prev: selectLabelInfo?.label[index - 1] ?? '',
208
+ .map(t => this.getLabelFormat(Math.min(axisMax, t), {
209
+ prev,
210
210
  })).includes(labelText);
211
211
 
212
212
  const labelColor = this.labelStyle.color;