rapid-spreadjs 1.0.188 → 1.0.190

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/index.esm.js CHANGED
@@ -1615,7 +1615,10 @@ const BusinessUtils = {
1615
1615
  }
1616
1616
  if (!isShowBlankRow) {
1617
1617
  // 设置行不可见
1618
- if (!isEnable || createBlackRowIndex != -1) {
1618
+ // if (!isEnable || createBlackRowIndex != -1) {
1619
+ // sheet.setRowVisible(createBlackRowIndex, false);
1620
+ // }
1621
+ if (createBlackRowIndex != -1) {
1619
1622
  sheet.setRowVisible(createBlackRowIndex, false);
1620
1623
  }
1621
1624
  return;
@@ -5365,9 +5368,9 @@ const EChartsUtilsAll = {
5365
5368
  }
5366
5369
  allData.push(point);
5367
5370
  });
5368
- allData.sort(function (a, b) {
5369
- return a.x - b.x;
5370
- });
5371
+ // allData.sort(function (a, b) {
5372
+ // return a.x - b.x;
5373
+ // });
5371
5374
  // 每条线的数据数组
5372
5375
  const yDataSources = [];
5373
5376
  for (let i = 0; i < lineCount; i++) {
@@ -5568,8 +5571,12 @@ const EChartsUtilsAll = {
5568
5571
  splitLine: {
5569
5572
  show: false,
5570
5573
  },
5571
- min: xData.length > 0 ? (xData[0] > 0.2 ? xData[0] - 0.2 : 0) : null,
5572
- max: xData.length > 0 ? xData[xData.length - 1] + 0.1 : null,
5574
+ // min: xData.length > 0 ? (xData[0] > 0.2 ? xData[0] - 0.2 : 0) : null,
5575
+ // max: xData.length > 0 ? xData[xData.length - 1] + 0.1 : null,
5576
+ min: xData.length > 0 ? (Math.min(...xData) > 0.2 ? Math.min(...xData) - 0.2 : 0) : null,
5577
+ max: xData.length > 0 ? Math.max(...xData) + 0.2 : null,
5578
+ // 控制x轴是否为反方向,如果x轴录入的数据从左到右为从大到小的顺序,则开启反方向
5579
+ inverse: xData.length > 0 ? (xData[0] > xData[xData.length - 1] ? true : false) : false,
5573
5580
  },
5574
5581
  yAxis: [
5575
5582
  {