@fileverse-dev/fortune-core 1.0.2-mod-16 → 1.0.2-mod-18

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
@@ -60690,7 +60690,8 @@ function updateCell(ctx, r, c, $input, value, canvas) {
60690
60690
  if (textInfo) {
60691
60691
  currentRowLen = textInfo.textHeightAll + 2;
60692
60692
  }
60693
- if (currentRowLen > defaultrowlen && !((_cfg$customHeight = cfg.customHeight) === null || _cfg$customHeight === void 0 ? void 0 : _cfg$customHeight[r])) {
60693
+ var previousRowHeight = getRowHeight(ctx, [r])[r];
60694
+ if (currentRowLen > defaultrowlen && !((_cfg$customHeight = cfg.customHeight) === null || _cfg$customHeight === void 0 ? void 0 : _cfg$customHeight[r]) && previousRowHeight < currentRowLen) {
60694
60695
  if (_.isNil(cfg.rowlen)) cfg.rowlen = {};
60695
60696
  cfg.rowlen[r] = currentRowLen;
60696
60697
  }
package/dist/index.js CHANGED
@@ -60700,7 +60700,8 @@ function updateCell(ctx, r, c, $input, value, canvas) {
60700
60700
  if (textInfo) {
60701
60701
  currentRowLen = textInfo.textHeightAll + 2;
60702
60702
  }
60703
- if (currentRowLen > defaultrowlen && !((_cfg$customHeight = cfg.customHeight) === null || _cfg$customHeight === void 0 ? void 0 : _cfg$customHeight[r])) {
60703
+ var previousRowHeight = getRowHeight(ctx, [r])[r];
60704
+ if (currentRowLen > defaultrowlen && !((_cfg$customHeight = cfg.customHeight) === null || _cfg$customHeight === void 0 ? void 0 : _cfg$customHeight[r]) && previousRowHeight < currentRowLen) {
60704
60705
  if (___default['default'].isNil(cfg.rowlen)) cfg.rowlen = {};
60705
60706
  cfg.rowlen[r] = currentRowLen;
60706
60707
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.2-mod-16",
3
+ "version": "1.0.2-mod-18",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",