hoeditor-web 3.2.8 → 3.2.9

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/lib/hoeditor.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-CQAgk93M.mjs";
2
+ import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-BguUEI_C.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -10350,12 +10350,12 @@ function expressionCalculator(l) {
10350
10350
  break;
10351
10351
  }
10352
10352
  case "+": {
10353
- const C = new Decimal(v).add(new Decimal(m)).toNumber();
10353
+ const C = new Decimal(v || 0).add(new Decimal(m || 0)).toNumber();
10354
10354
  f.pop(), f.pop(), p.pop(), f.push(C);
10355
10355
  break;
10356
10356
  }
10357
10357
  case "-": {
10358
- const C = new Decimal(v).minus(new Decimal(m)).toNumber();
10358
+ const C = new Decimal(v || 0).minus(new Decimal(m || 0)).toNumber();
10359
10359
  f.pop(), f.pop(), p.pop(), f.push(C);
10360
10360
  break;
10361
10361
  }
@@ -10390,12 +10390,12 @@ function expressionCalculator(l) {
10390
10390
  break;
10391
10391
  }
10392
10392
  case "+": {
10393
- const b = new Decimal(w).add(new Decimal(C)).toNumber();
10393
+ const b = new Decimal(w || 0).add(new Decimal(C || 0)).toNumber();
10394
10394
  p.pop(), p.pop(), f.pop(), p.push(b), d(f, p, g);
10395
10395
  break;
10396
10396
  }
10397
10397
  case "-": {
10398
- const b = new Decimal(w).minus(new Decimal(C)).toNumber();
10398
+ const b = new Decimal(w || 0).minus(new Decimal(C || 0)).toNumber();
10399
10399
  p.pop(), p.pop(), f.pop(), p.push(b), d(f, p, g);
10400
10400
  break;
10401
10401
  }
@@ -10432,12 +10432,12 @@ function expressionCalculator(l) {
10432
10432
  break;
10433
10433
  }
10434
10434
  case "+": {
10435
- const m = new Decimal(y).add(new Decimal(g)).toNumber();
10435
+ const m = new Decimal(y || 0).add(new Decimal(g || 0)).toNumber();
10436
10436
  a.pop(), a.pop(), n.pop(), a.push(m);
10437
10437
  break;
10438
10438
  }
10439
10439
  case "-": {
10440
- const m = new Decimal(y).minus(new Decimal(g)).toNumber();
10440
+ const m = new Decimal(y || 0).minus(new Decimal(g || 0)).toNumber();
10441
10441
  a.pop(), a.pop(), n.pop(), a.push(m);
10442
10442
  break;
10443
10443
  }
@@ -16047,7 +16047,7 @@ class DrawSignNode extends DrawCombineNode {
16047
16047
  }
16048
16048
  }
16049
16049
  }
16050
- const version$1 = "3.2.8";
16050
+ const version$1 = "3.2.9";
16051
16051
  var FingerPosition = /* @__PURE__ */ ((l) => (l[l.left = 0] = "left", l[l.center = 1] = "center", l[l.right = 2] = "right", l))(FingerPosition || {});
16052
16052
  class SignNode extends BaseNode {
16053
16053
  constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
@@ -65336,7 +65336,7 @@ WebPDecoder.prototype.getData = function() {
65336
65336
  (function(l) {
65337
65337
  function r() {
65338
65338
  return function() {
65339
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B_u99Wfu.mjs");
65339
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B86J5b17.mjs");
65340
65340
  }().catch(function(o) {
65341
65341
  return Promise.reject(new Error("Could not load canvg: " + o));
65342
65342
  }).then(function(o) {
@@ -1,4 +1,4 @@
1
- import { c as Ma, _ as qa, g as Zu } from "./index-CQAgk93M.mjs";
1
+ import { c as Ma, _ as qa, g as Zu } from "./index-BguUEI_C.mjs";
2
2
  var un = {}, ln = {}, lr, hn;
3
3
  function Z() {
4
4
  if (hn) return lr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoeditor-web",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",