hoeditor-web 3.2.37 → 3.2.38

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-DV-2G7Ch.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-jywwGYdm.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -14904,7 +14904,7 @@ class DrawSignNode extends DrawCombineNode {
14904
14904
  }
14905
14905
  }
14906
14906
  }
14907
- const version = "3.2.37";
14907
+ const version = "3.2.38";
14908
14908
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
14909
14909
  class SignNode extends BaseNode {
14910
14910
  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) {
@@ -28052,8 +28052,8 @@ class DrawTree {
28052
28052
  const w = DomRange.getSelectDomNodesForUpdate(this._hoEditorFactoryID, r, d);
28053
28053
  for (let C = 0; C < w.length; C++)
28054
28054
  if (c = w[C], c instanceof ParagraphNode) {
28055
- const _ = f.docTree.styles[c.styleIndex];
28056
- if (!(_.deleterIndex === void 0 || _.deleterIndex === -1)) continue;
28055
+ let _ = f.docTree.styles[c.styleIndex];
28056
+ if (_ || (_ = f.docTree.styles[0]), !((_ == null ? void 0 : _.deleterIndex) === void 0 || (_ == null ? void 0 : _.deleterIndex) === -1)) continue;
28057
28057
  if (n && c.refreshParaStyle(), s.paragraphNode !== c ? (s instanceof DrawLine && (s.fitLines(), s.paragraphNode.updateDrawLineStyle()), s.paragraphNode.updateDrawInfos(), c.clear(), c.node2DrawNode(), c.placeDNodeAfterDline(s)) : s.paragraphNode.drootNodes.indexOf(s) < 0 && c.placeDNodeAfterDline(null), s = c.drawlines[0], l = c, s.paragraphNode.parentNode instanceof CellNode) {
28058
28058
  const E = s.paragraphNode.parentNode;
28059
28059
  E && (E.drawCell.needUpdate = !0, u.indexOf(E.table) < 0 && u.push(E.table));
@@ -64320,7 +64320,7 @@ WebPDecoder.prototype.getData = function() {
64320
64320
  (function(a) {
64321
64321
  function t() {
64322
64322
  return function() {
64323
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-mr7Vz-Hr.mjs");
64323
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-BGJ_MJMK.mjs");
64324
64324
  }().catch(function(r) {
64325
64325
  return Promise.reject(new Error("Could not load canvg: " + r));
64326
64326
  }).then(function(r) {
@@ -69098,6 +69098,13 @@ class DocController {
69098
69098
  b(this, "_count", 0);
69099
69099
  b(this, "_hoEditorFactoryID");
69100
69100
  b(this, "_onInsertNodeByID");
69101
+ b(this, "findNodeWithDeleterIndex", (a) => {
69102
+ var o, n, s, l;
69103
+ let r = (o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(a)) == null ? void 0 : o.node;
69104
+ for (; r && !(!((n = r._dCombineStyle) != null && n.deleterIndex) || ((s = r._dCombineStyle) == null ? void 0 : s.deleterIndex) === -1); )
69105
+ r = (l = r.previousLeaf) == null ? void 0 : l.call(r);
69106
+ return r;
69107
+ });
69101
69108
  this._hoEditorFactoryID = a, this._onInsertNodeByID = null;
69102
69109
  }
69103
69110
  // public static get instance() {
@@ -69555,7 +69562,8 @@ class DocController {
69555
69562
  directionKey(a) {
69556
69563
  const t = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), r = t.docTree.curDomRange.normalize();
69557
69564
  t.docTree.curDomRange.clone();
69558
- const o = r.startPath, n = r.endPath;
69565
+ let o = r.startPath;
69566
+ const n = r.endPath;
69559
69567
  let s = r;
69560
69568
  if (!r.isEmpty)
69561
69569
  a === "left" || a === "up" ? s = new DomRange(this._hoEditorFactoryID, o, o) : s = new DomRange(this._hoEditorFactoryID, n, n);
@@ -1,4 +1,4 @@
1
- import { c as Ma, _ as qa, g as Zu } from "./index-DV-2G7Ch.mjs";
1
+ import { c as Ma, _ as qa, g as Zu } from "./index-jywwGYdm.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.37",
3
+ "version": "3.2.38",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",