rapid-spreadjs 1.0.102 → 1.0.104

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
@@ -4071,6 +4071,40 @@ const EChartsUtilsAll = {
4071
4071
  xDataSource2 = isTwoLine ? xDataArr[1] : [], // [1.5, 2.4, 3.6, 4.3, 5.4],
4072
4072
  yDataSource1 = yDataArr[0], // [2.25, 2.29, 2.34, 2.29, 2.23],
4073
4073
  yDataSource2 = isTwoLine ? yDataArr[1] : []; // [2.27, 2.32, 2.36, 2.33, 2.26];
4074
+ let xDataLs1 = [], yDataLs1 = [];
4075
+ xDataSource1.forEach((x, index) => {
4076
+ if (x != '/' &&
4077
+ x != 0 &&
4078
+ x != null &&
4079
+ x != undefined &&
4080
+ yDataSource1[index] != '/' &&
4081
+ yDataSource1[index] != 0 &&
4082
+ yDataSource1[index] != null &&
4083
+ yDataSource1[index] != undefined) {
4084
+ xDataLs1.push(x);
4085
+ yDataLs1.push(yDataSource1[index]);
4086
+ }
4087
+ });
4088
+ xDataSource1 = xDataLs1;
4089
+ yDataSource1 = yDataLs1;
4090
+ if (isTwoLine) {
4091
+ let xDataLs2 = [], yDataLs2 = [];
4092
+ xDataSource2.forEach((x, index) => {
4093
+ if (x != '/' &&
4094
+ x != 0 &&
4095
+ x != null &&
4096
+ x != undefined &&
4097
+ yDataSource2[index] != '/' &&
4098
+ yDataSource2[index] != 0 &&
4099
+ yDataSource2[index] != null &&
4100
+ yDataSource2[index] != undefined) {
4101
+ xDataLs2.push(x);
4102
+ yDataLs2.push(yDataSource2[index]);
4103
+ }
4104
+ });
4105
+ xDataSource2 = xDataLs2;
4106
+ yDataSource2 = yDataLs2;
4107
+ }
4074
4108
  let title = config.chartTitle, xName = config.chartXName, yName = config.chartYName, legendName = '图例1';
4075
4109
  const lineFunc = (xDataSource, yDataSource, isShowMarkPoint, isShowMarkLine, isTwoLineData) => {
4076
4110
  //原始数据
@@ -8612,13 +8646,13 @@ const EChartsUtilsAll = {
8612
8646
  return option;
8613
8647
  },
8614
8648
  /**
8615
- * 最大剪应力与法向应力关系曲线
8649
+ * 土工合成材料(拉拔摩擦特性)
8616
8650
  * @param config 折线配置
8617
8651
  * @param xDataArr x轴原始数据(二维数组)
8618
8652
  * @param yDataArr y轴原始数据(二维数组)
8619
8653
  * @returns 返回ECharts配置项
8620
8654
  */
8621
- chart450: (config, xDataArr, yDataArr, sheet) => {
8655
+ chart450: (config, xDataArr, yDataArr) => {
8622
8656
  let lineData = JSON.parse(config.chartLinesJson);
8623
8657
  // const chartExtJson = config.chartExtJson == null || config.chartExtJson == undefined ? null : JSON.parse(config.chartExtJson);
8624
8658
  let title = config.chartTitle, xName = config.chartXName, yName = config.chartYName, color = lineData[0].lineColor;
@@ -9045,6 +9079,9 @@ const EChartsUtils = {
9045
9079
  else if (config.chartType == 430) {
9046
9080
  option = EChartsUtilsAll.chart430(config, xDataArr, yDataArr, sheet);
9047
9081
  }
9082
+ else if (config.chartType == 450) {
9083
+ option = EChartsUtilsAll.chart450(config, xDataArr, yDataArr);
9084
+ }
9048
9085
  if (option && typeof option === 'object') {
9049
9086
  //如果是隐藏的图表,则需要禁用ECharts的动画效果
9050
9087
  //原因是:如果ECharts使用了动画效果,图表渲染完成可能需要0.5秒,但是在导出ECharts统计图为图片的场景下时,可能在图表还没有渲染完成(动画效果还没结束)前就要获取图像了,此时可能就会造成获取到的图像内容丢失的情况