@leankylin-sheet/core 5.2.42 → 5.2.44

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
@@ -36089,36 +36089,92 @@ function delFunctionGroup(ctx, r, c, id) {
36089
36089
  var calcChain = file.calcChain;
36090
36090
  if (!_.isNil(calcChain)) {
36091
36091
  var modified = false;
36092
- var calcChainClone = _.cloneDeep(calcChain);
36093
- for (var _i4 = 0; _i4 < calcChainClone.length; _i4 += 1) {
36094
- var calc = calcChainClone[_i4];
36092
+ var nextCalcChain = [];
36093
+ for (var _i4 = 0; _i4 < calcChain.length; _i4 += 1) {
36094
+ var calc = calcChain[_i4];
36095
36095
  if (calc.r === r && calc.c === c && calc.id === id) {
36096
- calcChainClone.splice(_i4, 1);
36097
36096
  modified = true;
36098
- break;
36097
+ continue;
36099
36098
  }
36099
+ nextCalcChain.push(calc);
36100
36100
  }
36101
36101
  if (modified) {
36102
- file.calcChain = calcChainClone;
36102
+ file.calcChain = nextCalcChain;
36103
36103
  }
36104
36104
  }
36105
36105
  var dynamicArray = file.dynamicArray;
36106
36106
  if (!_.isNil(dynamicArray)) {
36107
36107
  var _modified = false;
36108
- var dynamicArrayClone = _.cloneDeep(dynamicArray);
36109
- for (var _i5 = 0; _i5 < dynamicArrayClone.length; _i5 += 1) {
36110
- var _calc = dynamicArrayClone[_i5];
36108
+ var nextDynamicArray = [];
36109
+ for (var _i5 = 0; _i5 < dynamicArray.length; _i5 += 1) {
36110
+ var _calc = dynamicArray[_i5];
36111
36111
  if (_calc.r === r && _calc.c === c && (_.isNil(_calc.id) || _calc.id === id)) {
36112
- dynamicArrayClone.splice(_i5, 1);
36113
36112
  _modified = true;
36114
- break;
36113
+ continue;
36115
36114
  }
36115
+ nextDynamicArray.push(_calc);
36116
36116
  }
36117
36117
  if (_modified) {
36118
- file.dynamicArray = dynamicArrayClone;
36118
+ file.dynamicArray = nextDynamicArray;
36119
36119
  }
36120
36120
  }
36121
36121
  }
36122
+ function delFunctionGroups(ctx, cells, id) {
36123
+ if (cells.length === 0) return;
36124
+ if (_.isNil(id)) {
36125
+ id = ctx.currentSheetId;
36126
+ }
36127
+ var toDeleteMap = new Map();
36128
+ for (var _i6 = 0; _i6 < cells.length; _i6 += 1) {
36129
+ var _cell$id;
36130
+ var cell = cells[_i6];
36131
+ var cellId = (_cell$id = cell.id) !== null && _cell$id !== void 0 ? _cell$id : id;
36132
+ var keys = toDeleteMap.get(cellId);
36133
+ if (keys == null) {
36134
+ keys = new Set();
36135
+ toDeleteMap.set(cellId, keys);
36136
+ }
36137
+ keys.add("".concat(cell.r, "_").concat(cell.c));
36138
+ }
36139
+ toDeleteMap.forEach(function (keys, sheetId) {
36140
+ var idx = getSheetIndex(ctx, sheetId);
36141
+ if (idx == null) return;
36142
+ var file = ctx.luckysheetfile[idx];
36143
+ if (file == null) return;
36144
+ var calcChain = file.calcChain;
36145
+ if (!_.isNil(calcChain)) {
36146
+ var modified = false;
36147
+ var nextCalcChain = [];
36148
+ for (var _i7 = 0; _i7 < calcChain.length; _i7 += 1) {
36149
+ var calc = calcChain[_i7];
36150
+ if (calc.id === sheetId && keys.has("".concat(calc.r, "_").concat(calc.c))) {
36151
+ modified = true;
36152
+ continue;
36153
+ }
36154
+ nextCalcChain.push(calc);
36155
+ }
36156
+ if (modified) {
36157
+ file.calcChain = nextCalcChain;
36158
+ }
36159
+ }
36160
+ var dynamicArray = file.dynamicArray;
36161
+ if (!_.isNil(dynamicArray)) {
36162
+ var _modified2 = false;
36163
+ var nextDynamicArray = [];
36164
+ for (var _i8 = 0; _i8 < dynamicArray.length; _i8 += 1) {
36165
+ var _calc2 = dynamicArray[_i8];
36166
+ if ((_.isNil(_calc2.id) || _calc2.id === sheetId) && keys.has("".concat(_calc2.r, "_").concat(_calc2.c))) {
36167
+ _modified2 = true;
36168
+ continue;
36169
+ }
36170
+ nextDynamicArray.push(_calc2);
36171
+ }
36172
+ if (_modified2) {
36173
+ file.dynamicArray = nextDynamicArray;
36174
+ }
36175
+ }
36176
+ });
36177
+ }
36122
36178
  function checkBracketNum(fp) {
36123
36179
  var bra_l = fp.match(/\(/g);
36124
36180
  var bra_r = fp.match(/\)/g);
@@ -36135,16 +36191,16 @@ function checkBracketNum(fp) {
36135
36191
  var bra_tl_len = 0;
36136
36192
  var bra_tr_len = 0;
36137
36193
  if (!_.isNil(bra_tl_txt)) {
36138
- for (var _i6 = 0; _i6 < bra_tl_txt.length; _i6 += 1) {
36139
- var bra_tl = bra_tl_txt[_i6].match(/\(/g);
36194
+ for (var _i9 = 0; _i9 < bra_tl_txt.length; _i9 += 1) {
36195
+ var bra_tl = bra_tl_txt[_i9].match(/\(/g);
36140
36196
  if (!_.isNil(bra_tl)) {
36141
36197
  bra_tl_len += bra_tl.length;
36142
36198
  }
36143
36199
  }
36144
36200
  }
36145
36201
  if (!_.isNil(bra_tr_txt)) {
36146
- for (var _i7 = 0; _i7 < bra_tr_txt.length; _i7 += 1) {
36147
- var bra_tr = bra_tr_txt[_i7].match(/\)/g);
36202
+ for (var _i10 = 0; _i10 < bra_tr_txt.length; _i10 += 1) {
36203
+ var bra_tr = bra_tr_txt[_i10].match(/\)/g);
36148
36204
  if (!_.isNil(bra_tr)) {
36149
36205
  bra_tr_len += bra_tr.length;
36150
36206
  }
@@ -36171,8 +36227,8 @@ function insertUpdateFunctionGroup(ctx, r, c, id) {
36171
36227
  if (_.isNil(calcChain)) {
36172
36228
  calcChain = [];
36173
36229
  }
36174
- for (var _i8 = 0; _i8 < calcChain.length; _i8 += 1) {
36175
- var calc = calcChain[_i8];
36230
+ for (var _i11 = 0; _i11 < calcChain.length; _i11 += 1) {
36231
+ var calc = calcChain[_i11];
36176
36232
  if (calc.r === r && calc.c === c && calc.id === id) {
36177
36233
  return;
36178
36234
  }
@@ -36243,8 +36299,8 @@ function insertUpdateDynamicArray(ctx, dynamicArrayItem) {
36243
36299
  if (_.isNil(dynamicArray)) {
36244
36300
  dynamicArray = [];
36245
36301
  }
36246
- for (var _i9 = 0; _i9 < dynamicArray.length; _i9 += 1) {
36247
- var calc = dynamicArray[_i9];
36302
+ for (var _i12 = 0; _i12 < dynamicArray.length; _i12 += 1) {
36303
+ var calc = dynamicArray[_i12];
36248
36304
  if (calc.r === r && calc.c === c && calc.id === id) {
36249
36305
  calc.data = dynamicArrayItem.data;
36250
36306
  calc.f = dynamicArrayItem.f;
@@ -36257,8 +36313,8 @@ function insertUpdateDynamicArray(ctx, dynamicArrayItem) {
36257
36313
  function groupValuesRefresh(ctx) {
36258
36314
  var luckysheetfile = ctx.luckysheetfile;
36259
36315
  if (ctx.groupValuesRefreshData.length > 0) {
36260
- for (var _i10 = 0; _i10 < ctx.groupValuesRefreshData.length; _i10 += 1) {
36261
- var item = ctx.groupValuesRefreshData[_i10];
36316
+ for (var _i13 = 0; _i13 < ctx.groupValuesRefreshData.length; _i13 += 1) {
36317
+ var item = ctx.groupValuesRefreshData[_i13];
36262
36318
  var idx = getSheetIndex(ctx, item.id);
36263
36319
  if (idx == null) continue;
36264
36320
  var file = luckysheetfile[idx];
@@ -36284,7 +36340,6 @@ function groupValuesRefresh(ctx) {
36284
36340
  function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36285
36341
  var isForce = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
36286
36342
  var notInsertFunc = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : true;
36287
- console.time('execFunctionGroup-before');
36288
36343
  if (_.isNil(data)) {
36289
36344
  data = getFlowdata(ctx);
36290
36345
  }
@@ -36306,8 +36361,8 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36306
36361
  var formulaObjects = {};
36307
36362
  var sheets = ctx.luckysheetfile;
36308
36363
  var sheetData = {};
36309
- for (var _i11 = 0; _i11 < sheets.length; _i11 += 1) {
36310
- var sheet = sheets[_i11];
36364
+ for (var _i14 = 0; _i14 < sheets.length; _i14 += 1) {
36365
+ var sheet = sheets[_i14];
36311
36366
  sheetData[sheet.id] = sheet.data;
36312
36367
  }
36313
36368
  var updateValueOjects = {};
@@ -36322,7 +36377,6 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36322
36377
  updateValueOjects[_key] = 1;
36323
36378
  }
36324
36379
  }
36325
- console.time('arrayMatchCache');
36326
36380
  var arrayMatchCache = {};
36327
36381
  var arrayMatch = function arrayMatch(formulaArray, _formulaObjects, _updateValueOjects, func) {
36328
36382
  for (var a = 0; a < formulaArray.length; a += 1) {
@@ -36355,10 +36409,8 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36355
36409
  }
36356
36410
  }
36357
36411
  };
36358
- console.timeEnd('arrayMatchCache');
36359
- console.time('cache1');
36360
36412
  var _loop = function _loop() {
36361
- var formulaCell = calcChains[_i12];
36413
+ var formulaCell = calcChains[_i15];
36362
36414
  var key = "r".concat(formulaCell.r, "c").concat(formulaCell.c, "i").concat(formulaCell.id);
36363
36415
  var calc_funcStr = getcellFormula(ctx, formulaCell.r, formulaCell.c, formulaCell.id);
36364
36416
  if (_.isNil(calc_funcStr)) {
@@ -36456,11 +36508,9 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36456
36508
  };
36457
36509
  formulaObjects[key] = item;
36458
36510
  };
36459
- for (var _i12 = 0; _i12 < calcChains.length; _i12 += 1) {
36511
+ for (var _i15 = 0; _i15 < calcChains.length; _i15 += 1) {
36460
36512
  if (_loop()) continue;
36461
36513
  }
36462
- console.timeEnd('cache1');
36463
- console.time('cache2');
36464
36514
  Object.keys(formulaObjects).forEach(function (key) {
36465
36515
  var formulaObject = formulaObjects[key];
36466
36516
  arrayMatch(formulaObject.formulaArray, formulaObjects, updateValueOjects, function (childKey) {
@@ -36477,8 +36527,6 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36477
36527
  updateValueArray.push(formulaObject);
36478
36528
  }
36479
36529
  });
36480
- console.timeEnd('cache2');
36481
- console.time('dev');
36482
36530
  var visited = {};
36483
36531
  var inStack = {};
36484
36532
  var circularNodes = {};
@@ -36488,8 +36536,8 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36488
36536
  var node = formulaObjects[nodeKey];
36489
36537
  if (!node) return false;
36490
36538
  var children = Object.keys(node.chidren);
36491
- for (var _i13 = 0; _i13 < children.length; _i13 += 1) {
36492
- var childKey = children[_i13];
36539
+ for (var _i16 = 0; _i16 < children.length; _i16 += 1) {
36540
+ var childKey = children[_i16];
36493
36541
  if (inStack[childKey]) {
36494
36542
  Object.keys(inStack).forEach(function (key) {
36495
36543
  if (inStack[key]) {
@@ -36541,7 +36589,6 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36541
36589
  }
36542
36590
  });
36543
36591
  }
36544
- console.timeEnd('dev');
36545
36592
  var formulaRunList = [];
36546
36593
  var stack = updateValueArray;
36547
36594
  var existsFormulaRunList = {};
@@ -36577,11 +36624,8 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36577
36624
  if (_ret === 0) continue;
36578
36625
  }
36579
36626
  formulaRunList.reverse();
36580
- console.timeEnd('execFunctionGroup-before');
36581
- console.time('formulaRunList');
36582
- console.log('formulaRunList', formulaRunList);
36583
- for (var _i14 = 0; _i14 < formulaRunList.length; _i14 += 1) {
36584
- var formulaCell = formulaRunList[_i14];
36627
+ for (var _i17 = 0; _i17 < formulaRunList.length; _i17 += 1) {
36628
+ var formulaCell = formulaRunList[_i17];
36585
36629
  if (formulaCell.level === Math.max) {
36586
36630
  continue;
36587
36631
  }
@@ -36600,7 +36644,6 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36600
36644
  f: v[2]
36601
36645
  };
36602
36646
  }
36603
- console.timeEnd('formulaRunList');
36604
36647
  ctx.formulaCache.execFunctionExist = undefined;
36605
36648
  }
36606
36649
  function findrangeindex(ctx, v, vp) {
@@ -36614,26 +36657,26 @@ function findrangeindex(ctx, v, vp) {
36614
36657
  var vplen = vp_a.length;
36615
36658
  var vlen = v_a.length;
36616
36659
  if (vplen === vlen) {
36617
- var _i15 = pfri[0];
36618
- var p = vp_a[_i15];
36619
- var n = v_a[_i15];
36660
+ var _i18 = pfri[0];
36661
+ var p = vp_a[_i18];
36662
+ var n = v_a[_i18];
36620
36663
  if (_.isNil(p)) {
36621
- if (vp_a.length <= _i15) {
36664
+ if (vp_a.length <= _i18) {
36622
36665
  pfri = [vp_a.length - 1, vp_a.length - 1];
36623
- } else if (v_a.length <= _i15) {
36666
+ } else if (v_a.length <= _i18) {
36624
36667
  pfri = [v_a.length - 1, v_a.length - 1];
36625
36668
  }
36626
36669
  return pfri;
36627
36670
  }
36628
36671
  if (p.length === n.length) {
36629
- if (!_.isNil(vp_a[_i15 + 1]) && !_.isNil(v_a[_i15 + 1]) && vp_a[_i15 + 1].length < v_a[_i15 + 1].length) {
36672
+ if (!_.isNil(vp_a[_i18 + 1]) && !_.isNil(v_a[_i18 + 1]) && vp_a[_i18 + 1].length < v_a[_i18 + 1].length) {
36630
36673
  pfri[0] += 1;
36631
36674
  pfri[1] = 1;
36632
36675
  }
36633
36676
  return pfri;
36634
36677
  }
36635
36678
  if (p.length > n.length) {
36636
- if (!_.isNil(p) && !_.isNil(v_a[_i15 + 1]) && v_a[_i15 + 1].substring(0, 1) === '"' && (p.indexOf("{") > -1 || p.indexOf("}") > -1)) {
36679
+ if (!_.isNil(p) && !_.isNil(v_a[_i18 + 1]) && v_a[_i18 + 1].substring(0, 1) === '"' && (p.indexOf("{") > -1 || p.indexOf("}") > -1)) {
36637
36680
  pfri[0] += 1;
36638
36681
  pfri[1] = 1;
36639
36682
  }
@@ -36646,34 +36689,34 @@ function findrangeindex(ctx, v, vp) {
36646
36689
  return pfri;
36647
36690
  }
36648
36691
  } else if (vplen > vlen) {
36649
- var _i16 = pfri[0];
36650
- var _p = vp_a[_i16];
36651
- var _n = v_a[_i16];
36692
+ var _i19 = pfri[0];
36693
+ var _p = vp_a[_i19];
36694
+ var _n = v_a[_i19];
36652
36695
  if (_.isNil(_n)) {
36653
- if (v_a[_i16 - 1].indexOf("{") > -1) {
36696
+ if (v_a[_i19 - 1].indexOf("{") > -1) {
36654
36697
  pfri[0] -= 1;
36655
- var start = v_a[_i16 - 1].search("{");
36698
+ var start = v_a[_i19 - 1].search("{");
36656
36699
  pfri[1] += start;
36657
36700
  } else {
36658
36701
  pfri[0] = 0;
36659
36702
  pfri[1] = 0;
36660
36703
  }
36661
36704
  } else if (_p.length === _n.length) {
36662
- if (!_.isNil(v_a[_i16 + 1]) && (v_a[_i16 + 1].substring(0, 1) === '"' || v_a[_i16 + 1].substring(0, 1) === "{" || v_a[_i16 + 1].substring(0, 1) === "}")) {
36705
+ if (!_.isNil(v_a[_i19 + 1]) && (v_a[_i19 + 1].substring(0, 1) === '"' || v_a[_i19 + 1].substring(0, 1) === "{" || v_a[_i19 + 1].substring(0, 1) === "}")) {
36663
36706
  pfri[0] += 1;
36664
36707
  pfri[1] = 1;
36665
- } else if (!_.isNil(_p) && _p.length > 2 && _p.substring(0, 1) === '"' && _p.substring(_p.length - 1, 1) === '"') ; else if (!_.isNil(v_a[_i16]) && v_a[_i16] === '")') {
36708
+ } else if (!_.isNil(_p) && _p.length > 2 && _p.substring(0, 1) === '"' && _p.substring(_p.length - 1, 1) === '"') ; else if (!_.isNil(v_a[_i19]) && v_a[_i19] === '")') {
36666
36709
  pfri[1] = 1;
36667
- } else if (!_.isNil(v_a[_i16]) && v_a[_i16] === '"}') {
36710
+ } else if (!_.isNil(v_a[_i19]) && v_a[_i19] === '"}') {
36668
36711
  pfri[1] = 1;
36669
- } else if (!_.isNil(v_a[_i16]) && v_a[_i16] === "{)") {
36712
+ } else if (!_.isNil(v_a[_i19]) && v_a[_i19] === "{)") {
36670
36713
  pfri[1] = 1;
36671
36714
  } else {
36672
36715
  pfri[1] = _n.length;
36673
36716
  }
36674
36717
  return pfri;
36675
36718
  } else if (_p.length > _n.length) {
36676
- if (!_.isNil(v_a[_i16 + 1]) && (v_a[_i16 + 1].substring(0, 1) === '"' || v_a[_i16 + 1].substring(0, 1) === "{" || v_a[_i16 + 1].substring(0, 1) === "}")) {
36719
+ if (!_.isNil(v_a[_i19 + 1]) && (v_a[_i19 + 1].substring(0, 1) === '"' || v_a[_i19 + 1].substring(0, 1) === "{" || v_a[_i19 + 1].substring(0, 1) === "}")) {
36677
36720
  pfri[0] += 1;
36678
36721
  pfri[1] = 1;
36679
36722
  }
@@ -36683,9 +36726,9 @@ function findrangeindex(ctx, v, vp) {
36683
36726
  }
36684
36727
  return pfri;
36685
36728
  } else if (vplen < vlen) {
36686
- var _i17 = pfri[0];
36687
- var _p2 = vp_a[_i17];
36688
- var _n2 = v_a[_i17];
36729
+ var _i20 = pfri[0];
36730
+ var _p2 = vp_a[_i20];
36731
+ var _n2 = v_a[_i20];
36689
36732
  if (_.isNil(_p2)) {
36690
36733
  pfri[0] = v_a.length - 1;
36691
36734
  if (!_.isNil(_n2)) {
@@ -36694,9 +36737,9 @@ function findrangeindex(ctx, v, vp) {
36694
36737
  pfri[1] = 1;
36695
36738
  }
36696
36739
  } else if (_p2.length === _n2.length) {
36697
- if (vp_a[_i17 + 1] != null && (vp_a[_i17 + 1].substring(0, 1) === '"' || vp_a[_i17 + 1].substring(0, 1) === "{" || vp_a[_i17 + 1].substring(0, 1) === "}")) {
36740
+ if (vp_a[_i20 + 1] != null && (vp_a[_i20 + 1].substring(0, 1) === '"' || vp_a[_i20 + 1].substring(0, 1) === "{" || vp_a[_i20 + 1].substring(0, 1) === "}")) {
36698
36741
  pfri[1] = _n2.length;
36699
- } else if (!_.isNil(v_a[_i17 + 1]) && v_a[_i17 + 1].substring(0, 1) === '"' && (v_a[_i17 + 1].substring(0, 1) === "{" || v_a[_i17 + 1].substring(0, 1) === "}")) {
36742
+ } else if (!_.isNil(v_a[_i20 + 1]) && v_a[_i20 + 1].substring(0, 1) === '"' && (v_a[_i20 + 1].substring(0, 1) === "{" || v_a[_i20 + 1].substring(0, 1) === "}")) {
36700
36743
  pfri[0] += 1;
36701
36744
  pfri[1] = 1;
36702
36745
  } else if (!_.isNil(_n2) && _n2.substring(0, 1) === '"' && _n2.substring(_n2.length - 1, 1) === '"' && _p2.substring(0, 1) === '"' && _p2.substring(_p2.length - 1, 1) === ")") {
@@ -36706,7 +36749,7 @@ function findrangeindex(ctx, v, vp) {
36706
36749
  } else {
36707
36750
  pfri[0] = pfri[0] + vlen - vplen;
36708
36751
  if (v_a.length > vp_a.length) {
36709
- pfri[1] = v_a[_i17 + 1].length;
36752
+ pfri[1] = v_a[_i20 + 1].length;
36710
36753
  } else {
36711
36754
  pfri[1] = 1;
36712
36755
  }
@@ -36715,17 +36758,17 @@ function findrangeindex(ctx, v, vp) {
36715
36758
  } else if (_p2.length > _n2.length) {
36716
36759
  if (!_.isNil(_p2) && _p2.substring(0, 1) === '"') {
36717
36760
  pfri[1] = _n2.length;
36718
- } else if (_.isNil(v_a[_i17 + 1]) && /{.*?}/.test(v_a[_i17 + 1])) {
36761
+ } else if (_.isNil(v_a[_i20 + 1]) && /{.*?}/.test(v_a[_i20 + 1])) {
36719
36762
  pfri[0] += 1;
36720
- pfri[1] = v_a[_i17 + 1].length;
36721
- } else if (!_.isNil(_p2) && v_a[_i17 + 1].substring(0, 1) === '"' && (_p2.indexOf("{") > -1 || _p2.indexOf("}") > -1)) {
36763
+ pfri[1] = v_a[_i20 + 1].length;
36764
+ } else if (!_.isNil(_p2) && v_a[_i20 + 1].substring(0, 1) === '"' && (_p2.indexOf("{") > -1 || _p2.indexOf("}") > -1)) {
36722
36765
  pfri[0] += 1;
36723
36766
  pfri[1] = 1;
36724
36767
  } else if (!_.isNil(_p2) && (_p2.indexOf("{") > -1 || _p2.indexOf("}") > -1)) ; else if (!_.isNil(_p2) && !_.startsWith(_p2[0], "=") && _.startsWith(_n2, "=")) {
36725
36768
  return [vlen - 1, v_a[vlen - 1].length];
36726
36769
  } else {
36727
36770
  pfri[0] = pfri[0] + vlen - vplen - 1;
36728
- pfri[1] = v_a[(_i17 || 1) - 1].length;
36771
+ pfri[1] = v_a[(_i20 || 1) - 1].length;
36729
36772
  }
36730
36773
  return pfri;
36731
36774
  } else if (_p2.length < _n2.length) {
@@ -36799,8 +36842,8 @@ function searchFunction(ctx, searchtxt) {
36799
36842
  var f = [];
36800
36843
  var s = [];
36801
36844
  var t = [];
36802
- for (var _i18 = 0; _i18 < functionlist.length; _i18 += 1) {
36803
- var item = functionlist[_i18];
36845
+ for (var _i21 = 0; _i21 < functionlist.length; _i21 += 1) {
36846
+ var item = functionlist[_i21];
36804
36847
  var n = item.n;
36805
36848
  if (n === searchtxt) {
36806
36849
  f.unshift(item);
@@ -36856,8 +36899,8 @@ function helpFunctionExe($editer, currSelection, ctx) {
36856
36899
  var _locale2 = locale(ctx),
36857
36900
  functionlist = _locale2.functionlist;
36858
36901
  if (_.isEmpty(ctx.formulaCache.functionlistMap)) {
36859
- for (var _i19 = 0; _i19 < functionlist.length; _i19 += 1) {
36860
- ctx.formulaCache.functionlistMap[functionlist[_i19].n] = functionlist[_i19];
36902
+ for (var _i22 = 0; _i22 < functionlist.length; _i22 += 1) {
36903
+ ctx.formulaCache.functionlistMap[functionlist[_i22].n] = functionlist[_i22];
36861
36904
  }
36862
36905
  }
36863
36906
  if (!currSelection) {
@@ -42671,6 +42714,7 @@ function deepClear(ctx) {
42671
42714
  if (selection && !_.isEmpty(selection)) {
42672
42715
  var d = getFlowdata(ctx);
42673
42716
  var hyperlinkMap = ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)].hyperlink;
42717
+ var deletedFormulas = [];
42674
42718
  for (var s = 0; s < selection.length; s += 1) {
42675
42719
  var r1 = selection[s].row[0];
42676
42720
  var r2 = selection[s].row[1];
@@ -42681,15 +42725,22 @@ function deepClear(ctx) {
42681
42725
  var _d$r2;
42682
42726
  var cell = d === null || d === void 0 ? void 0 : (_d$r2 = d[r]) === null || _d$r2 === void 0 ? void 0 : _d$r2[c];
42683
42727
  d[r][c] = null;
42684
- if ((cell === null || cell === void 0 ? void 0 : cell.f) != null) ;
42728
+ if ((cell === null || cell === void 0 ? void 0 : cell.f) != null) {
42729
+ deletedFormulas.push({
42730
+ r: r,
42731
+ c: c
42732
+ });
42733
+ }
42685
42734
  if (hyperlinkMap && hyperlinkMap["".concat(r, "_").concat(c)]) {
42686
42735
  delete hyperlinkMap["".concat(r, "_").concat(c)];
42687
42736
  }
42688
42737
  }
42689
42738
  }
42690
42739
  }
42740
+ if (deletedFormulas.length > 0) {
42741
+ delFunctionGroups(ctx, deletedFormulas, ctx.currentSheetId);
42742
+ }
42691
42743
  }
42692
- updateFunctionGroup(ctx);
42693
42744
  return "success";
42694
42745
  }
42695
42746
  function deleteSelectedCellText(ctx, deep) {
@@ -42719,6 +42770,8 @@ function deleteSelectedCellText(ctx, deep) {
42719
42770
  return "partMC";
42720
42771
  }
42721
42772
  var hyperlinkMap = ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)].hyperlink;
42773
+ var hasChanged = false;
42774
+ var deletedFormulas = [];
42722
42775
  for (var _s = 0; _s < selection.length; _s += 1) {
42723
42776
  var _r3 = selection[_s].row[0];
42724
42777
  var _r4 = selection[_s].row[1];
@@ -42728,27 +42781,39 @@ function deleteSelectedCellText(ctx, deep) {
42728
42781
  for (var c = _c3; c <= _c4; c += 1) {
42729
42782
  if (_.isPlainObject(d[r][c])) {
42730
42783
  var cell = d[r][c];
42784
+ if (cell.m != null || cell.v != null || cell.f != null || cell.ct != null && cell.ct.t === "inlineStr") {
42785
+ hasChanged = true;
42786
+ }
42731
42787
  delete cell.m;
42732
42788
  delete cell.v;
42733
42789
  if (cell.f != null) {
42790
+ deletedFormulas.push({
42791
+ r: r,
42792
+ c: c
42793
+ });
42734
42794
  delete cell.f;
42735
42795
  delete cell.spl;
42736
42796
  }
42737
42797
  if (cell.ct != null && cell.ct.t === "inlineStr") {
42738
42798
  delete cell.ct;
42739
42799
  }
42740
- } else {
42800
+ } else if (d[r][c] != null) {
42741
42801
  d[r][c] = null;
42802
+ hasChanged = true;
42742
42803
  }
42743
42804
  if (hyperlinkMap && hyperlinkMap["".concat(r, "_").concat(c)]) {
42744
42805
  delete hyperlinkMap["".concat(r, "_").concat(c)];
42806
+ hasChanged = true;
42745
42807
  }
42746
42808
  }
42747
42809
  }
42748
42810
  }
42749
- console.time('deleteSelectedCellText');
42750
- updateFunctionGroup(ctx);
42751
- console.timeEnd('deleteSelectedCellText');
42811
+ if (deletedFormulas.length > 0) {
42812
+ delFunctionGroups(ctx, deletedFormulas, ctx.currentSheetId);
42813
+ }
42814
+ if (!hasChanged) {
42815
+ return "noChange";
42816
+ }
42752
42817
  }
42753
42818
  return "success";
42754
42819
  }
@@ -46766,8 +46831,9 @@ function calculateSheetFromula(ctx, id, isrefresh) {
46766
46831
  console.time("calcTime:all}");
46767
46832
  execFunctionGroup(ctx, null, null, null, undefined, [], true);
46768
46833
  groupValuesRefresh(ctx);
46834
+ ctx.formulaCache.execFunctionGlobalData = null;
46835
+ console.timeEnd("calcTime:".concat(id));
46769
46836
  }
46770
- console.timeEnd("calcTime:".concat(id));
46771
46837
  function updateFunctionGroupBySheetId(ctx, id) {
46772
46838
  var _ctx$luckysheetfile$i, _ctx$luckysheetfile$i2, _ctx$luckysheetfile$i3;
46773
46839
  var luckysheetfile = ctx.luckysheetfile;
@@ -46829,8 +46895,8 @@ function calculateSheetByCells(ctx, cells) {
46829
46895
  var _cells$index = cells[index$1],
46830
46896
  r = _cells$index.r,
46831
46897
  c = _cells$index.c,
46832
- _id = _cells$index.id;
46833
- updatedMap["".concat(sheetIdNameMap[_id], "!").concat(indexToColumnChar(c) + (r + 1))] = true;
46898
+ id = _cells$index.id;
46899
+ updatedMap["".concat(sheetIdNameMap[id], "!").concat(indexToColumnChar(c) + (r + 1))] = true;
46834
46900
  }
46835
46901
  var _loop = function _loop() {
46836
46902
  var file = fileList[fIndex];
@@ -46873,16 +46939,16 @@ function calculateSheetByCells(ctx, cells) {
46873
46939
  var _needUpdateCell$nInde = needUpdateCell[nIndex],
46874
46940
  _r = _needUpdateCell$nInde.r,
46875
46941
  _c = _needUpdateCell$nInde.c,
46876
- _id2 = _needUpdateCell$nInde.id,
46942
+ _id = _needUpdateCell$nInde.id,
46877
46943
  _f = _needUpdateCell$nInde.f,
46878
46944
  v = _needUpdateCell$nInde.v;
46879
- var result = execfunction(ctx, _f, _r, _c, _id2, undefined, true);
46945
+ var result = execfunction(ctx, _f, _r, _c, _id, undefined, true);
46880
46946
  var newV = result[1];
46881
46947
  if (newV === v) {
46882
46948
  continue;
46883
46949
  }
46884
46950
  setCellValue$1(ctx, _r, _c, result[1], null, {
46885
- id: _id2
46951
+ id: _id
46886
46952
  });
46887
46953
  }
46888
46954
  console.timeEnd("calculateSheetByCellsTime");
@@ -47662,9 +47728,8 @@ function runExecFunction(ctx, range, index, data) {
47662
47728
  }
47663
47729
  }
47664
47730
  ctx.formulaCache.execFunctionExist.reverse();
47665
- console.time('execFunctionGroup');
47666
47731
  execFunctionGroup(ctx, null, null, null, null, data);
47667
- console.timeEnd('execFunctionGroup');
47732
+ groupValuesRefresh(ctx);
47668
47733
  ctx.formulaCache.execFunctionGlobalData = null;
47669
47734
  updateFunctionGroup(ctx);
47670
47735
  }
@@ -47677,7 +47742,6 @@ function jfrefreshgrid(ctx, data, range) {
47677
47742
  range = ctx.luckysheet_select_save;
47678
47743
  if (range == null) return;
47679
47744
  }
47680
- console.log('isRunExecFunction', isRunExecFunction);
47681
47745
  if (isRunExecFunction) {
47682
47746
  runExecFunction(ctx, range, ctx.currentSheetId, data);
47683
47747
  }
@@ -56692,11 +56756,17 @@ function setCellValuesByRange(ctx, data, range, cellInput) {
56692
56756
  cfg.merge = {};
56693
56757
  }
56694
56758
  var formulaCells = [];
56759
+ var modifiedCells = [];
56695
56760
  for (var i = 0; i < rowCount; i += 1) {
56696
56761
  for (var j = 0; j < columnCount; j += 1) {
56697
56762
  var row = rowStart + i;
56698
56763
  var column = colStart + j;
56699
56764
  var value = data[i][j];
56765
+ modifiedCells.push({
56766
+ r: row,
56767
+ c: column,
56768
+ i: sheet.id
56769
+ });
56700
56770
  setCellValueInBatch(ctx, sheet, row, column, value, cellInput, formulaCells);
56701
56771
  if (setMerge) {
56702
56772
  var _value$mc, _value$mc2, _value$mc3, _value$mc4;
@@ -56718,25 +56788,30 @@ function setCellValuesByRange(ctx, data, range, cellInput) {
56718
56788
  if (setMerge) {
56719
56789
  sheet.config = cfg;
56720
56790
  }
56721
- if (formulaCells.length > 0) {
56722
- ctx.formulaCache.execFunctionExist = [];
56723
- for (var k = 0; k < formulaCells.length; k += 1) {
56724
- var fc = formulaCells[k];
56791
+ if (modifiedCells.length > 0) {
56792
+ ctx.formulaCache.execFunctionExist = formulaCells.map(function (fc) {
56793
+ return {
56794
+ r: fc.r,
56795
+ c: fc.c,
56796
+ i: sheet.id
56797
+ };
56798
+ });
56799
+ for (var k = 0; k < modifiedCells.length; k += 1) {
56800
+ ctx.formulaCache.execFunctionExist.push(modifiedCells[k]);
56801
+ }
56802
+ for (var _k = 0; _k < formulaCells.length; _k += 1) {
56803
+ var fc = formulaCells[_k];
56725
56804
  var v = execfunction(ctx, fc.f, fc.r, fc.c, sheet.id, false, true);
56726
56805
  setCellValue(ctx, fc.r, fc.c, flowdata, {
56727
56806
  v: v[1],
56728
56807
  f: v[2]
56729
56808
  });
56730
- ctx.formulaCache.execFunctionExist.push({
56731
- r: fc.r,
56732
- c: fc.c,
56733
- i: sheet.id
56734
- });
56735
56809
  }
56736
56810
  ctx.formulaCache.execFunctionExist.reverse();
56737
56811
  execFunctionGroup(ctx, null, null, null, null, flowdata, false, true);
56738
56812
  groupValuesRefresh(ctx);
56739
56813
  updateFunctionGroup(ctx);
56814
+ ctx.formulaCache.execFunctionGlobalData = null;
56740
56815
  }
56741
56816
  }
56742
56817
  function setCellValues(ctx, data, cellInput) {
@@ -56780,23 +56855,33 @@ function setCellValues(ctx, data, cellInput) {
56780
56855
  _v = _data$_j.v;
56781
56856
  setCellValueInBatch(ctx, sheet, _r, _c, _v, cellInput, formulaCells);
56782
56857
  }
56783
- if (formulaCells.length > 0) {
56784
- ctx.formulaCache.execFunctionExist = [];
56785
- for (var k = 0; k < formulaCells.length; k += 1) {
56786
- var fc = formulaCells[k];
56787
- var val = execfunction(ctx, fc.f, fc.r, fc.c, sheet.id, false, false);
56788
- setCellValue(ctx, fc.r, fc.c, flowdata, {
56789
- v: val[1],
56790
- f: val[2]
56791
- });
56792
- ctx.formulaCache.execFunctionExist.push({
56793
- r: fc.r,
56794
- c: fc.c,
56795
- i: sheet.id
56796
- });
56797
- }
56798
- ctx.formulaCache.execFunctionExist.reverse();
56858
+ ctx.formulaCache.execFunctionExist = formulaCells.map(function (fc) {
56859
+ return {
56860
+ r: fc.r,
56861
+ c: fc.c,
56862
+ i: sheet.id
56863
+ };
56864
+ });
56865
+ for (var _j2 = 0; _j2 < data.length; _j2 += 1) {
56866
+ ctx.formulaCache.execFunctionExist.push({
56867
+ r: data[_j2].r,
56868
+ c: data[_j2].c,
56869
+ i: sheet.id
56870
+ });
56871
+ }
56872
+ for (var k = 0; k < formulaCells.length; k += 1) {
56873
+ var fc = formulaCells[k];
56874
+ var val = execfunction(ctx, fc.f, fc.r, fc.c, sheet.id, false, true);
56875
+ setCellValue(ctx, fc.r, fc.c, flowdata, {
56876
+ v: val[1],
56877
+ f: val[2]
56878
+ });
56799
56879
  }
56880
+ ctx.formulaCache.execFunctionExist.reverse();
56881
+ execFunctionGroup(ctx, null, null, null, null, flowdata);
56882
+ groupValuesRefresh(ctx);
56883
+ updateFunctionGroup(ctx);
56884
+ ctx.formulaCache.execFunctionGlobalData = null;
56800
56885
  }
56801
56886
  function setCellFormatByRange(ctx, attr, value, range) {
56802
56887
  var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
@@ -57304,7 +57389,10 @@ function handleGlobalKeyDown(ctx, cellInput, fxInput, e, cache, handleUndo, hand
57304
57389
  if (ctx.activeImg != null) {
57305
57390
  removeActiveImage(ctx);
57306
57391
  } else {
57307
- deleteSelectedCellText(ctx);
57392
+ if (deleteSelectedCellText(ctx) === "noChange") {
57393
+ e.preventDefault();
57394
+ return;
57395
+ }
57308
57396
  }
57309
57397
  jfrefreshgrid(ctx, null, undefined);
57310
57398
  e.preventDefault();
@@ -60875,4 +60963,4 @@ function handlePasteByClick(ctx, triggerType) {
60875
60963
  } else if (data.indexOf("leankylin-copy-action-image") > -1) ; else ;
60876
60964
  }
60877
60965
 
60878
- export { CFSplitRange, Canvas, FormulaCache, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, addSheet, index as api, applyLocation, attrToCssName, autoSelectionFormula, calcSelectionInfo, cancelActiveImgItem, cancelFunctionrangeSelected, cancelNormalSelected, cancelPaintModel, cellFocus, cfSplitRange, changeSheet, chatatABC, checkCF, checkCellIsLocked, checkProtectionAllSelected, checkProtectionFormatCells, checkProtectionSelectLockedOrUnLockedCells, checkboxChange, clearFilter, clearMeasureTextCache, colHasMerged, colLocation, colLocationByIndex, colors, columnCharToIndex, commentBoxProps, compute, computeRowlenArr, confirmMessage, convertCssToStyleList, convertSpanToShareString, copy, copy2, createDropCellRange, createFilter, createFilterOptions, createFormulaRangeSelect, createRangeHightlight, dataRangeSelection, datenum_local, defaultContext, defaultFont, defaultSettings, defaultStyle, delFunctionGroup, deleteCellInSave, deleteComment, deleteRowCol, deleteSelectedCellText, deleteSheet, diff, drawArrow, drawLineInfo, dropCellCache, editComment, editSheetName, ensureSheetIndex, error, escapeHTMLTag, escapeRegExpStr, escapeScriptTag, execFunctionGroup, execfunction, expandRowsAndColumns, extractFormulaCellOps, filterPatch, fixColumnStyleOverflowInFreeze, fixPositionOnFrozenCells, fixRowStyleOverflowInFreeze, functionCopy, functionHTMLGenerate, functionStrChange, genarate, generateRandomId, generateRandomSheetName, getAllFunctionGroup, getArrowCanvasSize, getBorderInfoCompute, getBorderInfoComputeRange, getCellHyperlink, getCellRowColumn, getCellTextInfo, getCellTopRightPostion, getCellValue, getClipboardContent, getColMerge, getColorGradation, getCommentBoxByRC, getCommentBoxPosition, getComputeMap, getCurrentRules, getDataArr, getDataBySelectionNoCopy, getDropdownList, getFailureText, getFilterColumnColors, getFilterColumnValues, getFlattenedRange, getFlowdata, getFontSet, getFontStyleByCell, getFrozenHandleLeft, getFrozenHandleTop, getHLColor, getHintText, getHistoryRules, getInlineStringHTML, getInlineStringNoStyle, getMeasureText, getNowDateTime, getNullData, getOptionValue, getOrigincell, getQKBorder, getRange, getRangeArr, getRangeByTxt, getRangetxt, getRealCellValue, getRegExpStr, getRegStr, getRowMerge, getSearchIndexArr, getSelectRange, getSheetByIndex, getSheetIdByName, getSheetIndex, getStyleByCell, getTypeItemHide, getcellFormula, getcellrange, getdatabyselection, getrangeseleciton, goToLink, groupValuesRefresh, handleArrowKey, handleBold, handleBorder, handleCellAreaDoubleClick, handleCellAreaDragOver, handleCellAreaMouseDown, handleCellAreaMouseMove, handleCellDrop, handleClearFormat, handleColFreezeHandleMouseDown, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, handleContextMenu, handleCopy, handleCurrencyFormat, handleFormatPainter, handleFormulaInput, handleFreeze, handleGlobalEnter, handleGlobalKeyDown, handleGlobalWheel, handleHorizontalAlign, handleItalic, handleKeydownForZoom, handleLink, handleMerge, handleNumberDecrease, handleNumberIncrease, handleOverlayMouseMove, handleOverlayMouseUp, handleOverlayTouchEnd, handleOverlayTouchMove, handleOverlayTouchStart, handlePaste, handlePasteByClick, handlePasteByLeanklin, handlePercentageFormat, handleRowFreezeHandleMouseDown, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, handleScreenShot, handleSort, handleStrikeThrough, handleSum, handleTextBackground, handleTextColor, handleTextSize, handleUnderline, handleVerticalAlign, handleWithCtrlOrMetaKey, hasChinaword, hasPartMC, hideCRCount, hideDropCellSelection, hideSelected, imageProps, indexToColumnChar, initFreeze, initSheetIndex, inlineStyleAffectAttribute, inlineStyleAffectCssName, insertImage, insertRowCol, insertUpdateFunctionGroup, inverseRowColOptions, isAllSelectedCellsInStatus, isAllowEdit, isInlineStringCT, isInlineStringCell, isLinkValid, isRealNull, isRealNum, isShowHidenCR, isSupportBoundingBox, is_date, iscelldata, isdatatype, isdatatypemulti, isdatetime, israngeseleciton, jfrefreshgrid, labelFilterOptionState, locale, luckysheetUpdateCell, mergeBorder, mergeCells, mergeMoveMain, mousePosition, moveHighlightCell, moveHighlightRange, moveToEnd, newComment, normalizeSelection, normalizedAttr, normalizedCellAttr, onCellsMove, onCellsMoveEnd, onCellsMoveStart, onCommentBoxMove, onCommentBoxMoveEnd, onCommentBoxMoveStart, onCommentBoxResize, onCommentBoxResizeEnd, onCommentBoxResizeStart, onDropCellSelect, onDropCellSelectEnd, onFormulaRangeDragEnd, onImageMove, onImageMoveEnd, onImageMoveStart, onImageResize, onImageResizeEnd, onImageResizeStart, onRangeSelectionModalMove, onRangeSelectionModalMoveEnd, onRangeSelectionModalMoveStart, onSearchDialogMove, onSearchDialogMoveEnd, onSearchDialogMoveStart, opToPatch, orderbydata, orderbydatafiler, overShowComment, pasteHandlerOfPaintModel, patchToOp, rangeDrag, rangeDragColumn, rangeDragRow, rangeHightlightselected, rangeSetValue, rangeValueToHtml, removeActiveImage, removeEditingComment, removeHyperlink, replace, replaceAll, replaceHtml, rgbToHex, rowHasMerged, rowLocation, rowLocationByIndex, saveFilter, saveHyperlink, saveImage, scrollToFrozenRowCol, scrollToHighlightCell, searchAll, searchNext, selectAll, selectIsOverlap, selectTextContent, selectTextContentCross, selectTitlesMap, selectTitlesRange, selectionCache, selectionCopyShow, seletedHighlistByindex, setCaretPosition, setCellValue, setConditionRules, setDropcownValue, setEditingComment, setNextSheet, showComments, showDropCellSelection, showHideAllComments, showHideComment, showImgChooser, showLinkCard, showSelected, sortDataRange, sortSelection, storeSheetParamALL, toolbarItemClickHandler, toolbarItemSelectedFunc, update, updateCell, updateContextWithCanvas, updateContextWithSheetData, updateDropCell, updateFormat, updateFormatCell, updateInlineStringFormat, updateInlineStringFormatOutside, updateItem, updateMoreCell, updateSheet, validateCellData, validateIdCard, valueIsError, valueShowEs };
60966
+ export { CFSplitRange, Canvas, FormulaCache, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, addSheet, index as api, applyLocation, attrToCssName, autoSelectionFormula, calcSelectionInfo, cancelActiveImgItem, cancelFunctionrangeSelected, cancelNormalSelected, cancelPaintModel, cellFocus, cfSplitRange, changeSheet, chatatABC, checkCF, checkCellIsLocked, checkProtectionAllSelected, checkProtectionFormatCells, checkProtectionSelectLockedOrUnLockedCells, checkboxChange, clearFilter, clearMeasureTextCache, colHasMerged, colLocation, colLocationByIndex, colors, columnCharToIndex, commentBoxProps, compute, computeRowlenArr, confirmMessage, convertCssToStyleList, convertSpanToShareString, copy, copy2, createDropCellRange, createFilter, createFilterOptions, createFormulaRangeSelect, createRangeHightlight, dataRangeSelection, datenum_local, defaultContext, defaultFont, defaultSettings, defaultStyle, delFunctionGroup, delFunctionGroups, deleteCellInSave, deleteComment, deleteRowCol, deleteSelectedCellText, deleteSheet, diff, drawArrow, drawLineInfo, dropCellCache, editComment, editSheetName, ensureSheetIndex, error, escapeHTMLTag, escapeRegExpStr, escapeScriptTag, execFunctionGroup, execfunction, expandRowsAndColumns, extractFormulaCellOps, filterPatch, fixColumnStyleOverflowInFreeze, fixPositionOnFrozenCells, fixRowStyleOverflowInFreeze, functionCopy, functionHTMLGenerate, functionStrChange, genarate, generateRandomId, generateRandomSheetName, getAllFunctionGroup, getArrowCanvasSize, getBorderInfoCompute, getBorderInfoComputeRange, getCellHyperlink, getCellRowColumn, getCellTextInfo, getCellTopRightPostion, getCellValue, getClipboardContent, getColMerge, getColorGradation, getCommentBoxByRC, getCommentBoxPosition, getComputeMap, getCurrentRules, getDataArr, getDataBySelectionNoCopy, getDropdownList, getFailureText, getFilterColumnColors, getFilterColumnValues, getFlattenedRange, getFlowdata, getFontSet, getFontStyleByCell, getFrozenHandleLeft, getFrozenHandleTop, getHLColor, getHintText, getHistoryRules, getInlineStringHTML, getInlineStringNoStyle, getMeasureText, getNowDateTime, getNullData, getOptionValue, getOrigincell, getQKBorder, getRange, getRangeArr, getRangeByTxt, getRangetxt, getRealCellValue, getRegExpStr, getRegStr, getRowMerge, getSearchIndexArr, getSelectRange, getSheetByIndex, getSheetIdByName, getSheetIndex, getStyleByCell, getTypeItemHide, getcellFormula, getcellrange, getdatabyselection, getrangeseleciton, goToLink, groupValuesRefresh, handleArrowKey, handleBold, handleBorder, handleCellAreaDoubleClick, handleCellAreaDragOver, handleCellAreaMouseDown, handleCellAreaMouseMove, handleCellDrop, handleClearFormat, handleColFreezeHandleMouseDown, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, handleContextMenu, handleCopy, handleCurrencyFormat, handleFormatPainter, handleFormulaInput, handleFreeze, handleGlobalEnter, handleGlobalKeyDown, handleGlobalWheel, handleHorizontalAlign, handleItalic, handleKeydownForZoom, handleLink, handleMerge, handleNumberDecrease, handleNumberIncrease, handleOverlayMouseMove, handleOverlayMouseUp, handleOverlayTouchEnd, handleOverlayTouchMove, handleOverlayTouchStart, handlePaste, handlePasteByClick, handlePasteByLeanklin, handlePercentageFormat, handleRowFreezeHandleMouseDown, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, handleScreenShot, handleSort, handleStrikeThrough, handleSum, handleTextBackground, handleTextColor, handleTextSize, handleUnderline, handleVerticalAlign, handleWithCtrlOrMetaKey, hasChinaword, hasPartMC, hideCRCount, hideDropCellSelection, hideSelected, imageProps, indexToColumnChar, initFreeze, initSheetIndex, inlineStyleAffectAttribute, inlineStyleAffectCssName, insertImage, insertRowCol, insertUpdateFunctionGroup, inverseRowColOptions, isAllSelectedCellsInStatus, isAllowEdit, isInlineStringCT, isInlineStringCell, isLinkValid, isRealNull, isRealNum, isShowHidenCR, isSupportBoundingBox, is_date, iscelldata, isdatatype, isdatatypemulti, isdatetime, israngeseleciton, jfrefreshgrid, labelFilterOptionState, locale, luckysheetUpdateCell, mergeBorder, mergeCells, mergeMoveMain, mousePosition, moveHighlightCell, moveHighlightRange, moveToEnd, newComment, normalizeSelection, normalizedAttr, normalizedCellAttr, onCellsMove, onCellsMoveEnd, onCellsMoveStart, onCommentBoxMove, onCommentBoxMoveEnd, onCommentBoxMoveStart, onCommentBoxResize, onCommentBoxResizeEnd, onCommentBoxResizeStart, onDropCellSelect, onDropCellSelectEnd, onFormulaRangeDragEnd, onImageMove, onImageMoveEnd, onImageMoveStart, onImageResize, onImageResizeEnd, onImageResizeStart, onRangeSelectionModalMove, onRangeSelectionModalMoveEnd, onRangeSelectionModalMoveStart, onSearchDialogMove, onSearchDialogMoveEnd, onSearchDialogMoveStart, opToPatch, orderbydata, orderbydatafiler, overShowComment, pasteHandlerOfPaintModel, patchToOp, rangeDrag, rangeDragColumn, rangeDragRow, rangeHightlightselected, rangeSetValue, rangeValueToHtml, removeActiveImage, removeEditingComment, removeHyperlink, replace, replaceAll, replaceHtml, rgbToHex, rowHasMerged, rowLocation, rowLocationByIndex, saveFilter, saveHyperlink, saveImage, scrollToFrozenRowCol, scrollToHighlightCell, searchAll, searchNext, selectAll, selectIsOverlap, selectTextContent, selectTextContentCross, selectTitlesMap, selectTitlesRange, selectionCache, selectionCopyShow, seletedHighlistByindex, setCaretPosition, setCellValue, setConditionRules, setDropcownValue, setEditingComment, setNextSheet, showComments, showDropCellSelection, showHideAllComments, showHideComment, showImgChooser, showLinkCard, showSelected, sortDataRange, sortSelection, storeSheetParamALL, toolbarItemClickHandler, toolbarItemSelectedFunc, update, updateCell, updateContextWithCanvas, updateContextWithSheetData, updateDropCell, updateFormat, updateFormatCell, updateInlineStringFormat, updateInlineStringFormatOutside, updateItem, updateMoreCell, updateSheet, validateCellData, validateIdCard, valueIsError, valueShowEs };