@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.
@@ -237,7 +237,6 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
237
237
  }
238
238
  }
239
239
  function updateFormat(ctx, $input, d, attr, foucsStatus, canvas) {
240
- console.log("updateFormat", attr, foucsStatus);
241
240
  var allowEdit = (0, _utils.isAllowEdit)(ctx);
242
241
  if (!allowEdit) return;
243
242
  if (attr in _inlineString.inlineStyleAffectAttribute) {
@@ -261,7 +260,6 @@ function updateFormat(ctx, $input, d, attr, foucsStatus, canvas) {
261
260
  col_st = _b[0],
262
261
  col_ed = _b[1];
263
262
  updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col_ed, canvas);
264
- ctx.luckysheetCellUpdate = [];
265
263
  });
266
264
  }
267
265
  function toggleAttr(ctx, cellInput, attr) {
@@ -272,7 +270,6 @@ function toggleAttr(ctx, cellInput, attr) {
272
270
  updateFormat(ctx, cellInput, flowdata, attr, foucsStatus);
273
271
  }
274
272
  function setAttr(ctx, cellInput, attr, value, canvas) {
275
- console.log("setAttr", attr, value);
276
273
  var flowdata = (0, _context.getFlowdata)(ctx);
277
274
  if (!flowdata) return;
278
275
  updateFormat(ctx, cellInput, flowdata, attr, value, canvas);
@@ -1000,7 +997,6 @@ function handleFreeze(ctx, type) {
1000
997
  }
1001
998
  }
1002
999
  function handleTextSize(ctx, cellInput, size, canvas) {
1003
- console.log("handleTextSize", size);
1004
1000
  setAttr(ctx, cellInput, "fs", size, canvas);
1005
1001
  }
1006
1002
  function handleSum(ctx, cellInput, fxInput, cache) {
@@ -42,7 +42,7 @@ function isRealNull(val) {
42
42
  return _lodash.default.isNil(val) || val.toString().replace(/\s/g, "") === "";
43
43
  }
44
44
  function isHexValue(str) {
45
- return /^0x?[a-fA-F0-9]+$/.test(str);
45
+ return /^0x[a-fA-F0-9]+$/i.test(str);
46
46
  }
47
47
  function isRealNum(val) {
48
48
  if (isHexValue(val === null || val === void 0 ? void 0 : val.toString())) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.96-scroll-4",
3
+ "version": "1.2.97",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "dev": "father-build --watch"
16
16
  },
17
17
  "dependencies": {
18
- "@fileverse-dev/formula-parser": "0.2.94",
18
+ "@fileverse-dev/formula-parser": "0.2.95",
19
19
  "dayjs": "^1.11.0",
20
20
  "immer": "^9.0.12",
21
21
  "lodash": "^4.17.21",