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.cjs.js CHANGED
@@ -1637,7 +1637,10 @@ const BusinessUtils = {
1637
1637
  }
1638
1638
  if (!isShowBlankRow) {
1639
1639
  // 设置行不可见
1640
- if (!isEnable || createBlackRowIndex != -1) {
1640
+ // if (!isEnable || createBlackRowIndex != -1) {
1641
+ // sheet.setRowVisible(createBlackRowIndex, false);
1642
+ // }
1643
+ if (createBlackRowIndex != -1) {
1641
1644
  sheet.setRowVisible(createBlackRowIndex, false);
1642
1645
  }
1643
1646
  return;
@@ -5387,9 +5390,9 @@ const EChartsUtilsAll = {
5387
5390
  }
5388
5391
  allData.push(point);
5389
5392
  });
5390
- allData.sort(function (a, b) {
5391
- return a.x - b.x;
5392
- });
5393
+ // allData.sort(function (a, b) {
5394
+ // return a.x - b.x;
5395
+ // });
5393
5396
  // 每条线的数据数组
5394
5397
  const yDataSources = [];
5395
5398
  for (let i = 0; i < lineCount; i++) {
@@ -5590,8 +5593,12 @@ const EChartsUtilsAll = {
5590
5593
  splitLine: {
5591
5594
  show: false,
5592
5595
  },
5593
- min: xData.length > 0 ? (xData[0] > 0.2 ? xData[0] - 0.2 : 0) : null,
5594
- max: xData.length > 0 ? xData[xData.length - 1] + 0.1 : null,
5596
+ // min: xData.length > 0 ? (xData[0] > 0.2 ? xData[0] - 0.2 : 0) : null,
5597
+ // max: xData.length > 0 ? xData[xData.length - 1] + 0.1 : null,
5598
+ min: xData.length > 0 ? (Math.min(...xData) > 0.2 ? Math.min(...xData) - 0.2 : 0) : null,
5599
+ max: xData.length > 0 ? Math.max(...xData) + 0.2 : null,
5600
+ // 控制x轴是否为反方向,如果x轴录入的数据从左到右为从大到小的顺序,则开启反方向
5601
+ inverse: xData.length > 0 ? (xData[0] > xData[xData.length - 1] ? true : false) : false,
5595
5602
  },
5596
5603
  yAxis: [
5597
5604
  {