hoeditor-web 3.3.3-beta.5 → 3.3.3-beta.7

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-C3FemQeH.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-XbB12t0n.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -9468,30 +9468,30 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
9468
9468
  this.clear(), this.boxAlign ? (this.drawBox(), !this.node.isTransToText && this.text.length > 0 && this.drawText(), this.node.isEditText && this.drawAppend()) : (this.text.length > 0 && this.drawText(), this.drawBox());
9469
9469
  }
9470
9470
  drawBox() {
9471
- let r;
9472
- this.textStyle.size <= 12 || this.textStyle.size <= 16 || this.textStyle.size <= 22, this.controlStyle === "CheckBox" ? this.isSelected ? r = new createjs$1.Text(
9473
- //"\u00FE",
9474
- //fontSize.toString() + "px wingdings",
9475
- "☑",
9476
- this.textStyle.getStyleKey(),
9471
+ let r, o = 0;
9472
+ this.textStyle.size <= 12 ? o = 18 : this.textStyle.size <= 16 ? o = 22 : this.textStyle.size <= 22 ? o = 24 : o = 42, this.controlStyle === "CheckBox" ? this.isSelected ? r = new createjs$1.Text(
9473
+ "þ",
9474
+ o.toString() + "px wingdings",
9475
+ // "☑",
9476
+ // this.textStyle.getStyleKey(),
9477
9477
  this.textStyle.color
9478
9478
  ) : r = new createjs$1.Text(
9479
- //"\u00A8",
9480
- //fontSize.toString() + "px wingdings",
9481
- "☐",
9482
- this.textStyle.getStyleKey(),
9479
+ "¨",
9480
+ o.toString() + "px wingdings",
9481
+ // "☐",
9482
+ // this.textStyle.getStyleKey(),
9483
9483
  this.textStyle.color
9484
9484
  ) : this.isSelected ? r = new createjs$1.Text(
9485
- //"\u00A4",
9486
- //fontSize.toString() + "px wingdings",
9487
- "◉",
9488
- this.textStyle.getStyleKey(),
9485
+ "¤",
9486
+ o.toString() + "px wingdings",
9487
+ // "◉",
9488
+ // this.textStyle.getStyleKey(),
9489
9489
  this.textStyle.color
9490
9490
  ) : r = new createjs$1.Text(
9491
- //"\u00A1",
9492
- //fontSize.toString() + "px wingdings",
9493
- "○",
9494
- this.textStyle.getStyleKey(),
9491
+ "¡",
9492
+ o.toString() + "px wingdings",
9493
+ // "○",
9494
+ // this.textStyle.getStyleKey(),
9495
9495
  this.textStyle.color
9496
9496
  ), r.textBaseline = "alphabetic", r.textAlign = "left", r.name = "box", this.boxAlign ? r.x = 0 : r.x = this._dText.getMeasuredWidth(), r.getBounds().clone() && (r.y = this.y), r.setBounds(0, 0, r.getMeasuredWidth(), r.getMeasuredHeight() - 10), this.addChild(r);
9497
9497
  }
@@ -15270,7 +15270,7 @@ class DrawSignNode extends DrawCombineNode {
15270
15270
  }
15271
15271
  }
15272
15272
  }
15273
- const version = "3.3.3-beta.5";
15273
+ const version = "3.3.3-beta.7";
15274
15274
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15275
15275
  class SignNode extends BaseNode {
15276
15276
  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) {
@@ -38235,9 +38235,9 @@ class DrawImageNode extends DrawCombineNode {
38235
38235
  }
38236
38236
  insertImage() {
38237
38237
  const r = this;
38238
- this._imageManager.addImageQueue(this, () => new Promise((o) => {
38238
+ this.imagePath && this._imageManager.addImageQueue(this, () => new Promise((o) => {
38239
38239
  const n = new Image();
38240
- process.env.NODE_ENV !== "production" && !this.imagePath.startsWith("http") && !this.imagePath.startsWith("data:image") ? n.src = "http://192.168.1.211:8088" + this.imagePath : n.src = this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
38240
+ process.env.NODE_ENV !== "production" && !this.imagePath.startsWith("http") && !this.imagePath.startsWith("data:image") ? n.src = "http://192.168.1.211:8088" + this.imagePath : n.src = this.imagePath, n.src = this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
38241
38241
  const s = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID);
38242
38242
  this._bitMap.y = this._imageY, this._bitMap.x = 0, this._bitMap.name = this.node.id;
38243
38243
  const l = new createjs$1.Shape();
@@ -65259,7 +65259,7 @@ WebPDecoder.prototype.getData = function() {
65259
65259
  (function(a) {
65260
65260
  function t() {
65261
65261
  return function() {
65262
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CNrQZlwv.mjs");
65262
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-CExR_G_Z.mjs");
65263
65263
  }().catch(function(r) {
65264
65264
  return Promise.reject(new Error("Could not load canvg: " + r));
65265
65265
  }).then(function(r) {
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-C3FemQeH.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-XbB12t0n.mjs";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoeditor-web",
3
- "version": "3.3.3-beta.5",
3
+ "version": "3.3.3-beta.7",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",