rapid-spreadjs 1.0.178 → 1.0.180
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 +29 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +29 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/utils/echarts-all.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -917,9 +917,9 @@ const BusinessUtils = {
|
|
|
917
917
|
sheet.getCell(totalRowCount, contentColStartIndex).wordWrap(true);
|
|
918
918
|
sheet.getCell(totalRowCount, contentColStartIndex + titleCellColumnCount).wordWrap(true);
|
|
919
919
|
sheet.autoFitRow(totalRowCount);
|
|
920
|
-
if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
921
|
-
|
|
922
|
-
}
|
|
920
|
+
// if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
921
|
+
// sheet.setRowHeight(totalRowCount, 31);
|
|
922
|
+
// }
|
|
923
923
|
curRowCells.push({ row: totalRowCount, col: contentColStartIndex });
|
|
924
924
|
curRowCells.push({ row: totalRowCount, col: contentColStartIndex + titleCellColumnCount });
|
|
925
925
|
setFontSizeFamily(totalRowCount, contentColStartIndex);
|
|
@@ -950,9 +950,9 @@ const BusinessUtils = {
|
|
|
950
950
|
sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
|
|
951
951
|
sheet.getCell(totalRowCount, colIndexValue).wordWrap(true);
|
|
952
952
|
sheet.autoFitRow(totalRowCount);
|
|
953
|
-
if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
954
|
-
|
|
955
|
-
}
|
|
953
|
+
// if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
954
|
+
// sheet.setRowHeight(totalRowCount, 31);
|
|
955
|
+
// }
|
|
956
956
|
curRowCells.push({ row: totalRowCount, col: colIndexTitle });
|
|
957
957
|
curRowCells.push({ row: totalRowCount, col: colIndexValue });
|
|
958
958
|
setFontSizeFamily(totalRowCount, colIndexTitle);
|
|
@@ -976,9 +976,9 @@ const BusinessUtils = {
|
|
|
976
976
|
sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
|
|
977
977
|
sheet.getCell(totalRowCount, colIndexValue).wordWrap(true);
|
|
978
978
|
sheet.autoFitRow(totalRowCount);
|
|
979
|
-
if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
980
|
-
|
|
981
|
-
}
|
|
979
|
+
// if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
980
|
+
// sheet.setRowHeight(totalRowCount, 31);
|
|
981
|
+
// }
|
|
982
982
|
curRowCells.push({ row: totalRowCount, col: colIndexTitle });
|
|
983
983
|
curRowCells.push({ row: totalRowCount, col: colIndexValue });
|
|
984
984
|
setFontSizeFamily(totalRowCount, colIndexTitle);
|
|
@@ -6326,10 +6326,12 @@ const EChartsUtilsAll = {
|
|
|
6326
6326
|
//x和y轴的数据
|
|
6327
6327
|
const xData = xDataArr[0], // [60, 40, 20, 10, 5, 2, 1, 0.5, 0.25, 0.075],
|
|
6328
6328
|
yData = yDataArr[0]; // [100.0, 100.0, 88.3, 69.3, 46.7, 27.0, 19.7, 5.6, 0.5, 0.3];
|
|
6329
|
-
let xMin = 0.
|
|
6329
|
+
let xMin = 0.035, xMax = 100;
|
|
6330
6330
|
let seriesData = [];
|
|
6331
6331
|
xData.forEach((item, index) => {
|
|
6332
|
-
|
|
6332
|
+
if (item != '筛底' && yData[index] != 0) {
|
|
6333
|
+
seriesData.push([item == '筛底' ? 0 : item, yData[index]]);
|
|
6334
|
+
}
|
|
6333
6335
|
});
|
|
6334
6336
|
//验证是否没有任何数据,以便控制显示y轴的名称的距离位置
|
|
6335
6337
|
let yValIsAllNull = false;
|
|
@@ -6408,6 +6410,22 @@ const EChartsUtilsAll = {
|
|
|
6408
6410
|
inverse: true,
|
|
6409
6411
|
min: xMin,
|
|
6410
6412
|
max: xMax,
|
|
6413
|
+
// min: 0.035,
|
|
6414
|
+
// max: 100,
|
|
6415
|
+
// 关键:用 customValues 指定刻度位置(需 ECharts >= 5.5.1)
|
|
6416
|
+
axisTick: {
|
|
6417
|
+
show: true,
|
|
6418
|
+
alignWithLabel: true,
|
|
6419
|
+
customValues: xData,
|
|
6420
|
+
},
|
|
6421
|
+
axisLabel: {
|
|
6422
|
+
show: true,
|
|
6423
|
+
hideOverlap: false,
|
|
6424
|
+
customValues: xData,
|
|
6425
|
+
formatter: function (value) {
|
|
6426
|
+
return value;
|
|
6427
|
+
},
|
|
6428
|
+
},
|
|
6411
6429
|
},
|
|
6412
6430
|
yAxis: [
|
|
6413
6431
|
{
|