rapid-spreadjs 1.0.46 → 1.0.48

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
@@ -7738,10 +7738,13 @@ const EChartsUtils = {
7738
7738
  * @param GC GC对象
7739
7739
  * @param spread 工作簿对象
7740
7740
  * @param sheet 工作表对象
7741
- * @param config 折现配置
7741
+ * @param config 折线配置
7742
7742
  * @param isHideChart 是否隐藏图表
7743
7743
  */
7744
7744
  create: (GC_1, spread_1, sheet_1, config_1, ...args_1) => __awaiter(void 0, [GC_1, spread_1, sheet_1, config_1, ...args_1], void 0, function* (GC, spread, sheet, config, isHideChart = false) {
7745
+ if (config.chartIdStr && config.chartIdStr.length > 0) {
7746
+ config.chartId = config.chartIdStr;
7747
+ }
7745
7748
  // 获取扩展配置
7746
7749
  const chartExtJson = config.chartExtJson == null || config.chartExtJson == undefined ? null : JSON.parse(config.chartExtJson);
7747
7750
  // 如果isShowCon配置存在,则验证isShowCon对应单元格的值是否和输入的配置chartExtJson.isShowVal相等,不相等的话,就不创建图表
@@ -18961,6 +18964,37 @@ const FormulaUtils = {
18961
18964
  return avg;
18962
18965
  },
18963
18966
  },
18967
+ {
18968
+ funName: 'YJSZFBZC',
18969
+ funDesc: '四组分标准差',
18970
+ funDefaultVal: null,
18971
+ funParams: [
18972
+ {
18973
+ name: '数值数组',
18974
+ repeatable: false,
18975
+ optional: false,
18976
+ },
18977
+ ],
18978
+ funCallback: (spread, sheet, retData) => {
18979
+ //如果传递的参数小于1个,则返回空字符串
18980
+ if (retData.allCellVals.length < 1) {
18981
+ return '';
18982
+ }
18983
+ let arr = retData.allCellVals;
18984
+ var bzc;
18985
+ bzc = FormulaUtils.commFun.GetS(arr);
18986
+ if (bzc <= 5) {
18987
+ return bzc;
18988
+ }
18989
+ else {
18990
+ arr.sort((a, b) => a - b); //排序
18991
+ arr.shift(); // 删除首元素
18992
+ arr.pop(); // 删除尾元素
18993
+ bzc = FormulaUtils.commFun.GetS(arr); //剔除后的标准差
18994
+ }
18995
+ return bzc;
18996
+ },
18997
+ },
18964
18998
  ],
18965
18999
  };
18966
19000