rapid-spreadjs 1.0.181 → 1.0.183
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 +34 -8
- 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 +34 -8
- 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/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1296,7 +1296,8 @@ const BusinessUtils = {
|
|
|
1296
1296
|
.indicatorColor(commentColor)
|
|
1297
1297
|
.indicatorSize(commentSize)
|
|
1298
1298
|
.fontSize('10pt')
|
|
1299
|
-
.width(
|
|
1299
|
+
.width(250)
|
|
1300
|
+
.height(Math.ceil(item.tipMsg.length / 20) * 30);
|
|
1300
1301
|
if (commentDefaultTextIsSet) {
|
|
1301
1302
|
sheet.setValue(item.row, item.col, commentDefaultText);
|
|
1302
1303
|
}
|
|
@@ -1367,7 +1368,13 @@ const BusinessUtils = {
|
|
|
1367
1368
|
try {
|
|
1368
1369
|
//设置批注
|
|
1369
1370
|
if (eval(lastFor)) {
|
|
1370
|
-
sheet.comments
|
|
1371
|
+
sheet.comments
|
|
1372
|
+
.add(item.row, item.col, item.tipMsg)
|
|
1373
|
+
.indicatorColor(commentColor)
|
|
1374
|
+
.indicatorSize(commentSize)
|
|
1375
|
+
.fontSize('10pt')
|
|
1376
|
+
.width(250)
|
|
1377
|
+
.height(Math.ceil(item.tipMsg.length / 20) * 30);
|
|
1371
1378
|
if (commentDefaultTextIsSet) {
|
|
1372
1379
|
sheet.setValue(item.row, item.col, commentDefaultText);
|
|
1373
1380
|
}
|
|
@@ -5198,6 +5205,17 @@ const EChartsUtilsAll = {
|
|
|
5198
5205
|
yAxisMax = null;
|
|
5199
5206
|
seriesData = [];
|
|
5200
5207
|
}
|
|
5208
|
+
let yMinVal = 0, yMaxVal = 0;
|
|
5209
|
+
let allYVal = [];
|
|
5210
|
+
if (seriesData.length > 0) {
|
|
5211
|
+
seriesData.forEach((item) => {
|
|
5212
|
+
item.data.forEach((itemData) => {
|
|
5213
|
+
allYVal.push(itemData.value[1]);
|
|
5214
|
+
});
|
|
5215
|
+
});
|
|
5216
|
+
yMinVal = Number(EChartsUtilsComm.getRound(Math.min(...allYVal) - 0.02, 0.01));
|
|
5217
|
+
yMaxVal = Number(EChartsUtilsComm.getRound(Math.max(...allYVal) + 0.02, 0.01));
|
|
5218
|
+
}
|
|
5201
5219
|
let option = {
|
|
5202
5220
|
grid: {
|
|
5203
5221
|
// show: true,//是否显示外边框线
|
|
@@ -5264,8 +5282,8 @@ const EChartsUtilsAll = {
|
|
|
5264
5282
|
yAxis: [
|
|
5265
5283
|
{
|
|
5266
5284
|
type: 'value',
|
|
5267
|
-
max: !yValIsAllNull ?
|
|
5268
|
-
min: !yValIsAllNull ?
|
|
5285
|
+
max: !yValIsAllNull ? yMaxVal : 0,
|
|
5286
|
+
min: !yValIsAllNull ? yMinVal : 0,
|
|
5269
5287
|
name: yName,
|
|
5270
5288
|
nameGap: !yValIsAllNull ? 40 : 25,
|
|
5271
5289
|
nameRotate: 90,
|
|
@@ -19599,10 +19617,18 @@ const FormulaUtils = {
|
|
|
19599
19617
|
getddn.y2 = array_x[_index];
|
|
19600
19618
|
getddn.x = dn;
|
|
19601
19619
|
if (_index == array_y.length) {
|
|
19602
|
-
|
|
19603
|
-
|
|
19604
|
-
|
|
19605
|
-
|
|
19620
|
+
if (dn < array_y[0]) {
|
|
19621
|
+
getddn.x1 = array_y[_index - _index];
|
|
19622
|
+
getddn.x2 = array_y[_index - _index + 1];
|
|
19623
|
+
getddn.y1 = array_x[_index - _index];
|
|
19624
|
+
getddn.y2 = array_x[_index - _index + 1];
|
|
19625
|
+
}
|
|
19626
|
+
else {
|
|
19627
|
+
getddn.x1 = array_y[_index - 2];
|
|
19628
|
+
getddn.x2 = array_y[_index - 1];
|
|
19629
|
+
getddn.y1 = array_x[_index - 2];
|
|
19630
|
+
getddn.y2 = array_x[_index - 1];
|
|
19631
|
+
}
|
|
19606
19632
|
getddn.x = dn;
|
|
19607
19633
|
}
|
|
19608
19634
|
else if (_index == 0) {
|