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.cjs.js CHANGED
@@ -4093,6 +4093,40 @@ const EChartsUtilsAll = {
4093
4093
  xDataSource2 = isTwoLine ? xDataArr[1] : [], // [1.5, 2.4, 3.6, 4.3, 5.4],
4094
4094
  yDataSource1 = yDataArr[0], // [2.25, 2.29, 2.34, 2.29, 2.23],
4095
4095
  yDataSource2 = isTwoLine ? yDataArr[1] : []; // [2.27, 2.32, 2.36, 2.33, 2.26];
4096
+ let xDataLs1 = [], yDataLs1 = [];
4097
+ xDataSource1.forEach((x, index) => {
4098
+ if (x != '/' &&
4099
+ x != 0 &&
4100
+ x != null &&
4101
+ x != undefined &&
4102
+ yDataSource1[index] != '/' &&
4103
+ yDataSource1[index] != 0 &&
4104
+ yDataSource1[index] != null &&
4105
+ yDataSource1[index] != undefined) {
4106
+ xDataLs1.push(x);
4107
+ yDataLs1.push(yDataSource1[index]);
4108
+ }
4109
+ });
4110
+ xDataSource1 = xDataLs1;
4111
+ yDataSource1 = yDataLs1;
4112
+ if (isTwoLine) {
4113
+ let xDataLs2 = [], yDataLs2 = [];
4114
+ xDataSource2.forEach((x, index) => {
4115
+ if (x != '/' &&
4116
+ x != 0 &&
4117
+ x != null &&
4118
+ x != undefined &&
4119
+ yDataSource2[index] != '/' &&
4120
+ yDataSource2[index] != 0 &&
4121
+ yDataSource2[index] != null &&
4122
+ yDataSource2[index] != undefined) {
4123
+ xDataLs2.push(x);
4124
+ yDataLs2.push(yDataSource2[index]);
4125
+ }
4126
+ });
4127
+ xDataSource2 = xDataLs2;
4128
+ yDataSource2 = yDataLs2;
4129
+ }
4096
4130
  let title = config.chartTitle, xName = config.chartXName, yName = config.chartYName, legendName = '图例1';
4097
4131
  const lineFunc = (xDataSource, yDataSource, isShowMarkPoint, isShowMarkLine, isTwoLineData) => {
4098
4132
  //原始数据
@@ -8634,13 +8668,13 @@ const EChartsUtilsAll = {
8634
8668
  return option;
8635
8669
  },
8636
8670
  /**
8637
- * 最大剪应力与法向应力关系曲线
8671
+ * 土工合成材料(拉拔摩擦特性)
8638
8672
  * @param config 折线配置
8639
8673
  * @param xDataArr x轴原始数据(二维数组)
8640
8674
  * @param yDataArr y轴原始数据(二维数组)
8641
8675
  * @returns 返回ECharts配置项
8642
8676
  */
8643
- chart450: (config, xDataArr, yDataArr, sheet) => {
8677
+ chart450: (config, xDataArr, yDataArr) => {
8644
8678
  let lineData = JSON.parse(config.chartLinesJson);
8645
8679
  // const chartExtJson = config.chartExtJson == null || config.chartExtJson == undefined ? null : JSON.parse(config.chartExtJson);
8646
8680
  let title = config.chartTitle, xName = config.chartXName, yName = config.chartYName, color = lineData[0].lineColor;
@@ -9067,6 +9101,9 @@ const EChartsUtils = {
9067
9101
  else if (config.chartType == 430) {
9068
9102
  option = EChartsUtilsAll.chart430(config, xDataArr, yDataArr, sheet);
9069
9103
  }
9104
+ else if (config.chartType == 450) {
9105
+ option = EChartsUtilsAll.chart450(config, xDataArr, yDataArr);
9106
+ }
9070
9107
  if (option && typeof option === 'object') {
9071
9108
  //如果是隐藏的图表,则需要禁用ECharts的动画效果
9072
9109
  //原因是:如果ECharts使用了动画效果,图表渲染完成可能需要0.5秒,但是在导出ECharts统计图为图片的场景下时,可能在图表还没有渲染完成(动画效果还没结束)前就要获取图像了,此时可能就会造成获取到的图像内容丢失的情况