rapid-spreadjs 1.0.75 → 1.0.77

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
@@ -8196,13 +8196,13 @@ const EChartsUtilsAll = {
8196
8196
  const gsS = EChartsUtilsComm.calcTrend(xData, yDataSource, xData[0]);
8197
8197
  //输出方程表达式
8198
8198
  if (chartExtJson != null) {
8199
- if (chartExtJson.jxhslSnShScfc != null && chartExtJson.jxhslSnShScfc != undefined) {
8199
+ if (chartExtJson.yhmhlBzHgx != null && chartExtJson.yhmhlBzHgx != undefined) {
8200
8200
  // console.log('输出公式:',`Y=${getRound(gsS.xl,0.0001)}X+${getRound(gsS.jj,0.0001)}`)
8201
8201
  if (gsS.xl == '' || gsS.jj == '') {
8202
- sheet.setValue(chartExtJson.jxhslSnShScfc.row, chartExtJson.jxhslSnShScfc.col, '/');
8202
+ sheet.setValue(chartExtJson.yhmhlBzHgx.row, chartExtJson.yhmhlBzHgx.col, '/');
8203
8203
  }
8204
8204
  else {
8205
- sheet.setValue(chartExtJson.jxhslSnShScfc.row, chartExtJson.jxhslSnShScfc.col, `Y=${EChartsUtilsComm.getRound(gsS.xl, 0.0001)}X+${EChartsUtilsComm.getRound(gsS.jj, 0.0001)}`);
8205
+ sheet.setValue(chartExtJson.yhmhlBzHgx.row, chartExtJson.yhmhlBzHgx.col, `Y=${EChartsUtilsComm.getRound(gsS.xl, 0.0001)}X+${EChartsUtilsComm.getRound(gsS.jj, 0.0001)}`);
8206
8206
  }
8207
8207
  }
8208
8208
  }
@@ -8597,6 +8597,9 @@ const EChartsUtils = {
8597
8597
  else if (config.chartType == 390) {
8598
8598
  option = EChartsUtilsAll.chart390(config, xDataArr, yDataArr);
8599
8599
  }
8600
+ else if (config.chartType == 410) {
8601
+ option = EChartsUtilsAll.chart410(config, xDataArr, yDataArr, sheet);
8602
+ }
8600
8603
  if (option && typeof option === 'object') {
8601
8604
  //如果是隐藏的图表,则需要禁用ECharts的动画效果
8602
8605
  //原因是:如果ECharts使用了动画效果,图表渲染完成可能需要0.5秒,但是在导出ECharts统计图为图片的场景下时,可能在图表还没有渲染完成(动画效果还没结束)前就要获取图像了,此时可能就会造成获取到的图像内容丢失的情况