@fileverse-dev/fortune-core 1.2.90-ydoc-14 → 1.2.90-ydoc-15

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.
@@ -15,8 +15,8 @@ import { showLinkCard } from "./hyperlink";
15
15
  import { cfSplitRange } from "./conditionalFormat";
16
16
  import { clearMeasureTextCache, getCellTextInfo } from "./text";
17
17
  export function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col_ed, canvas) {
18
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10;
19
- var _11;
18
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
19
+ var _9;
20
20
  console.log("updateFormatCell", row_st, row_ed, col_st, col_ed);
21
21
  if (_.isNil(d) || _.isNil(attr)) {
22
22
  return;
@@ -144,7 +144,7 @@ export function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_
144
144
  if (value && _.isPlainObject(value)) {
145
145
  updateInlineStringFormatOutside(value, attr, foucsStatus);
146
146
  value[attr] = foucsStatus;
147
- (_11 = ctx.luckysheetfile[sheetIndex]).config || (_11.config = {});
147
+ (_9 = ctx.luckysheetfile[sheetIndex]).config || (_9.config = {});
148
148
  var cfg = ctx.luckysheetfile[sheetIndex].config;
149
149
  var cellWidth = ((_z = cfg.columnlen) === null || _z === void 0 ? void 0 : _z[c]) || ctx.luckysheetfile[sheetIndex].defaultColWidth;
150
150
  if (attr === "tb" && canvas && foucsStatus === "2") {
@@ -229,9 +229,6 @@ export function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_
229
229
  _loop_1(c);
230
230
  }
231
231
  }
232
- if ((_9 = ctx === null || ctx === void 0 ? void 0 : ctx.hooks) === null || _9 === void 0 ? void 0 : _9.updateCellYdoc) {
233
- (_10 = ctx.hooks) === null || _10 === void 0 ? void 0 : _10.updateCellYdoc(changes);
234
- }
235
232
  }
236
233
  }
237
234
  export function updateFormat(ctx, $input, d, attr, foucsStatus, canvas) {
@@ -48,8 +48,8 @@ var _conditionalFormat = require("./conditionalFormat");
48
48
  var _text = require("./text");
49
49
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
50
50
  function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col_ed, canvas) {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10;
52
- var _11;
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
52
+ var _9;
53
53
  console.log("updateFormatCell", row_st, row_ed, col_st, col_ed);
54
54
  if (_lodash.default.isNil(d) || _lodash.default.isNil(attr)) {
55
55
  return;
@@ -177,7 +177,7 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
177
177
  if (value && _lodash.default.isPlainObject(value)) {
178
178
  (0, _inlineString.updateInlineStringFormatOutside)(value, attr, foucsStatus);
179
179
  value[attr] = foucsStatus;
180
- (_11 = ctx.luckysheetfile[sheetIndex]).config || (_11.config = {});
180
+ (_9 = ctx.luckysheetfile[sheetIndex]).config || (_9.config = {});
181
181
  var cfg = ctx.luckysheetfile[sheetIndex].config;
182
182
  var cellWidth = ((_z = cfg.columnlen) === null || _z === void 0 ? void 0 : _z[c]) || ctx.luckysheetfile[sheetIndex].defaultColWidth;
183
183
  if (attr === "tb" && canvas && foucsStatus === "2") {
@@ -262,9 +262,6 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
262
262
  _loop_1(c);
263
263
  }
264
264
  }
265
- if ((_9 = ctx === null || ctx === void 0 ? void 0 : ctx.hooks) === null || _9 === void 0 ? void 0 : _9.updateCellYdoc) {
266
- (_10 = ctx.hooks) === null || _10 === void 0 ? void 0 : _10.updateCellYdoc(changes);
267
- }
268
265
  }
269
266
  }
270
267
  function updateFormat(ctx, $input, d, attr, foucsStatus, canvas) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.90-ydoc-14",
3
+ "version": "1.2.90-ydoc-15",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",