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.esm.js CHANGED
@@ -123,7 +123,8 @@ const SheetUtils = {
123
123
  let allCellObjs = [];
124
124
  selectRanges.forEach((item, index) => {
125
125
  // 得到当前item中所有合并的单元格对象集合
126
- const itemSpanCells = sheet.getSpans(item);
126
+ let itemSpanCells = sheet.getSpans(item);
127
+ itemSpanCells = orderByJson(itemSpanCells, !isMulColOrder ? ['row', 'col'] : ['col', 'row'], ['asc', 'asc']);
127
128
  itemSpanCells.forEach((itemSpanCell) => {
128
129
  allCellObjs.push({
129
130
  row: itemSpanCell.row,
@@ -4638,6 +4639,11 @@ const EChartsUtilsAll = {
4638
4639
  yDataSourceXxOld.some((item) => item != null && item != undefined && item != '/')) {
4639
4640
  yValIsAllNull = false;
4640
4641
  }
4642
+ if (xData.filter((x) => x[1] == 0).length == xData.length &&
4643
+ xDataSx.filter((x) => x[1] == 0).length == xDataSx.length &&
4644
+ xDataXx.filter((x) => x[1] == 0).length == xDataXx.length) {
4645
+ yValIsAllNull = true;
4646
+ }
4641
4647
  let option = {
4642
4648
  grid: {
4643
4649
  // show: true,// 是否显示外边框线
@@ -4710,7 +4716,7 @@ const EChartsUtilsAll = {
4710
4716
  {
4711
4717
  type: 'value',
4712
4718
  name: yName,
4713
- nameGap: !yValIsAllNull ? 30 : 5,
4719
+ nameGap: !yValIsAllNull ? 30 : 30,
4714
4720
  nameRotate: 90,
4715
4721
  nameLocation: 'middle',
4716
4722
  splitLine: {
@@ -4720,6 +4726,7 @@ const EChartsUtilsAll = {
4720
4726
  type: 'solid',
4721
4727
  },
4722
4728
  },
4729
+ max: 100,
4723
4730
  splitNumber: 10, // 设置y轴分隔的段数,如0~100之间默认情况可能会按照0、20、40、60……的间隔显示,设置相应的数字后就会根据实际情况显示的更细,如0、10、20、30……
4724
4731
  axisLabel: {
4725
4732
  fontSize: xyFontSize,