@fileverse-dev/fortune-core 1.2.96-scroll-4 → 1.2.97

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.
@@ -204,7 +204,6 @@ export function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_
204
204
  }
205
205
  }
206
206
  export function updateFormat(ctx, $input, d, attr, foucsStatus, canvas) {
207
- console.log("updateFormat", attr, foucsStatus);
208
207
  var allowEdit = isAllowEdit(ctx);
209
208
  if (!allowEdit) return;
210
209
  if (attr in inlineStyleAffectAttribute) {
@@ -228,7 +227,6 @@ export function updateFormat(ctx, $input, d, attr, foucsStatus, canvas) {
228
227
  col_st = _b[0],
229
228
  col_ed = _b[1];
230
229
  updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col_ed, canvas);
231
- ctx.luckysheetCellUpdate = [];
232
230
  });
233
231
  }
234
232
  function toggleAttr(ctx, cellInput, attr) {
@@ -239,7 +237,6 @@ function toggleAttr(ctx, cellInput, attr) {
239
237
  updateFormat(ctx, cellInput, flowdata, attr, foucsStatus);
240
238
  }
241
239
  function setAttr(ctx, cellInput, attr, value, canvas) {
242
- console.log("setAttr", attr, value);
243
240
  var flowdata = getFlowdata(ctx);
244
241
  if (!flowdata) return;
245
242
  updateFormat(ctx, cellInput, flowdata, attr, value, canvas);
@@ -967,7 +964,6 @@ export function handleFreeze(ctx, type) {
967
964
  }
968
965
  }
969
966
  export function handleTextSize(ctx, cellInput, size, canvas) {
970
- console.log("handleTextSize", size);
971
967
  setAttr(ctx, cellInput, "fs", size, canvas);
972
968
  }
973
969
  export function handleSum(ctx, cellInput, fxInput, cache) {
@@ -25,7 +25,7 @@ export function isRealNull(val) {
25
25
  return _.isNil(val) || val.toString().replace(/\s/g, "") === "";
26
26
  }
27
27
  export function isHexValue(str) {
28
- return /^0x?[a-fA-F0-9]+$/.test(str);
28
+ return /^0x[a-fA-F0-9]+$/i.test(str);
29
29
  }
30
30
  export function isRealNum(val) {
31
31
  if (isHexValue(val === null || val === void 0 ? void 0 : val.toString())) {
@@ -19,16 +19,6 @@ var _utils = require("../utils");
19
19
  var _copy = require("./copy");
20
20
  var _refresh = require("../modules/refresh");
21
21
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
- var __assign = void 0 && (void 0).__assign || function () {
23
- __assign = Object.assign || function (t) {
24
- for (var s, i = 1, n = arguments.length; i < n; i++) {
25
- s = arguments[i];
26
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
- }
28
- return t;
29
- };
30
- return __assign.apply(this, arguments);
31
- };
32
22
  var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
33
23
  function adopt(value) {
34
24
  return value instanceof P ? value : new P(function (resolve) {
@@ -151,7 +141,6 @@ function handleGlobalEnter(ctx, cellInput, e, canvas) {
151
141
  if (last && !_lodash.default.isNil(last.row_focus) && !_lodash.default.isNil(last.column_focus)) {}
152
142
  e.preventDefault();
153
143
  } else if (ctx.luckysheetCellUpdate.length > 0) {
154
- console.log("handleGlobalEnter", __assign({}, ctx.luckysheetCellUpdate));
155
144
  var lastCellUpdate = _lodash.default.clone(ctx.luckysheetCellUpdate);
156
145
  (0, _cell.updateCell)(ctx, ctx.luckysheetCellUpdate[0], ctx.luckysheetCellUpdate[1], cellInput, undefined, canvas);
157
146
  ctx.luckysheet_select_save = [{