rapid-spreadjs 1.0.100 → 1.0.101

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
@@ -145,7 +145,8 @@ const SheetUtils = {
145
145
  let allCellObjs = [];
146
146
  selectRanges.forEach((item, index) => {
147
147
  // 得到当前item中所有合并的单元格对象集合
148
- const itemSpanCells = sheet.getSpans(item);
148
+ let itemSpanCells = sheet.getSpans(item);
149
+ itemSpanCells = rapidUtils.orderByJson(itemSpanCells, !isMulColOrder ? ['row', 'col'] : ['col', 'row'], ['asc', 'asc']);
149
150
  itemSpanCells.forEach((itemSpanCell) => {
150
151
  allCellObjs.push({
151
152
  row: itemSpanCell.row,
@@ -4660,6 +4661,11 @@ const EChartsUtilsAll = {
4660
4661
  yDataSourceXxOld.some((item) => item != null && item != undefined && item != '/')) {
4661
4662
  yValIsAllNull = false;
4662
4663
  }
4664
+ if (xData.filter((x) => x[1] == 0).length == xData.length &&
4665
+ xDataSx.filter((x) => x[1] == 0).length == xDataSx.length &&
4666
+ xDataXx.filter((x) => x[1] == 0).length == xDataXx.length) {
4667
+ yValIsAllNull = true;
4668
+ }
4663
4669
  let option = {
4664
4670
  grid: {
4665
4671
  // show: true,// 是否显示外边框线
@@ -4732,7 +4738,7 @@ const EChartsUtilsAll = {
4732
4738
  {
4733
4739
  type: 'value',
4734
4740
  name: yName,
4735
- nameGap: !yValIsAllNull ? 30 : 5,
4741
+ nameGap: !yValIsAllNull ? 30 : 30,
4736
4742
  nameRotate: 90,
4737
4743
  nameLocation: 'middle',
4738
4744
  splitLine: {
@@ -4742,6 +4748,7 @@ const EChartsUtilsAll = {
4742
4748
  type: 'solid',
4743
4749
  },
4744
4750
  },
4751
+ max: 100,
4745
4752
  splitNumber: 10, // 设置y轴分隔的段数,如0~100之间默认情况可能会按照0、20、40、60……的间隔显示,设置相应的数字后就会根据实际情况显示的更细,如0、10、20、30……
4746
4753
  axisLabel: {
4747
4754
  fontSize: xyFontSize,