hoeditor-web 3.3.3-beta.0 → 3.3.3-beta.2

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-D7dNVUUV.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-Dko_H-WC.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -9405,27 +9405,29 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
9405
9405
  n.isTransToText ? "" : this._text,
9406
9406
  p.getStyleKey(),
9407
9407
  p.color
9408
- );
9409
- let m = 0;
9410
- p.size <= 12 ? m = 18 : p.size <= 16 ? m = 22 : p.size <= 22 ? m = 24 : m = 42, l === "CheckBox" ? this._dBox = new createjs$1.Text(
9411
- "þ",
9412
- m.toString() + "px wingdings",
9408
+ ), p.size <= 12 || p.size <= 16 || p.size <= 22, l === "CheckBox" ? this._dBox = new createjs$1.Text(
9409
+ //"\u00FE",
9410
+ //fontSize.toString() + "px wingdings",
9411
+ "",
9412
+ p.getStyleKey(),
9413
9413
  p.color
9414
9414
  ) : this._dBox = new createjs$1.Text(
9415
- "¤",
9416
- m.toString() + "px wingdings",
9415
+ // "\u00A4",
9416
+ // fontSize.toString() + "px wingdings",
9417
+ "○",
9418
+ p.getStyleKey(),
9417
9419
  p.color
9418
9420
  );
9419
- let g = 0;
9420
- this.text !== "" && (g = 6);
9421
- const y = this._dText.getMeasuredWidth(), w = this._dBox.getMeasuredWidth();
9422
- if (this.dBoxWidth = w, this.dWidth = y + w + g, n.isEditText) {
9423
- let v = 40;
9421
+ let m = 0;
9422
+ this.text !== "" && (m = 6);
9423
+ const g = this._dText.getMeasuredWidth(), y = this._dBox.getMeasuredWidth();
9424
+ if (this.dBoxWidth = y, this.dWidth = g + y + m, n.isEditText) {
9425
+ let w = 40;
9424
9426
  n.appendText.length > 0 && (this._dAppendText = new createjs$1.Text(
9425
9427
  n.appendText,
9426
9428
  p.getStyleKey(),
9427
9429
  p.color
9428
- ), v = this._dAppendText.getMeasuredWidth()), this._dUnderLine = new createjs$1.Shape(), this._dUnderLine.graphics.beginStroke(p.color).moveTo(this.dWidth - g, 1).lineTo(this.dWidth - g + v, 1), this.dWidth = this.dWidth - g + v;
9430
+ ), w = this._dAppendText.getMeasuredWidth()), this._dUnderLine = new createjs$1.Shape(), this._dUnderLine.graphics.beginStroke(p.color).moveTo(this.dWidth - m, 1).lineTo(this.dWidth - m + w, 1), this.dWidth = this.dWidth - m + w;
9429
9431
  }
9430
9432
  this.dHeight = f, this._textStyle = p, this.drawRadioAndCheckBox();
9431
9433
  }
@@ -9466,22 +9468,30 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
9466
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());
9467
9469
  }
9468
9470
  drawBox() {
9469
- let r, o = 0;
9470
- 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(
9471
- "þ",
9472
- o.toString() + "px wingdings",
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(),
9473
9477
  this.textStyle.color
9474
9478
  ) : r = new createjs$1.Text(
9475
- "¨",
9476
- o.toString() + "px wingdings",
9479
+ //"\u00A8",
9480
+ //fontSize.toString() + "px wingdings",
9481
+ "☐",
9482
+ this.textStyle.getStyleKey(),
9477
9483
  this.textStyle.color
9478
9484
  ) : this.isSelected ? r = new createjs$1.Text(
9479
- "¤",
9480
- o.toString() + "px wingdings",
9485
+ //"\u00A4",
9486
+ //fontSize.toString() + "px wingdings",
9487
+ "◉",
9488
+ this.textStyle.getStyleKey(),
9481
9489
  this.textStyle.color
9482
9490
  ) : r = new createjs$1.Text(
9483
- "¡",
9484
- o.toString() + "px wingdings",
9491
+ //"\u00A1",
9492
+ //fontSize.toString() + "px wingdings",
9493
+ "○",
9494
+ this.textStyle.getStyleKey(),
9485
9495
  this.textStyle.color
9486
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);
9487
9497
  }
@@ -15260,7 +15270,7 @@ class DrawSignNode extends DrawCombineNode {
15260
15270
  }
15261
15271
  }
15262
15272
  }
15263
- const version = "3.3.3-beta.0";
15273
+ const version = "3.3.3-beta.2";
15264
15274
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
15265
15275
  class SignNode extends BaseNode {
15266
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) {
@@ -65250,7 +65260,7 @@ WebPDecoder.prototype.getData = function() {
65250
65260
  (function(a) {
65251
65261
  function t() {
65252
65262
  return function() {
65253
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-S9e5EiYE.mjs");
65263
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-DXOlX84d.mjs");
65254
65264
  }().catch(function(r) {
65255
65265
  return Promise.reject(new Error("Could not load canvg: " + r));
65256
65266
  }).then(function(r) {
@@ -73763,7 +73773,7 @@ var _sfc_render$16 = function a() {
73763
73773
  t.innerIdentifier = o;
73764
73774
  }, expression: "innerIdentifier" } }, t._l(t.innerIdentifierList, function(o) {
73765
73775
  return r("a-select-option", { key: o.code, attrs: { value: o.code } }, [t._v(t._s(o.name))]);
73766
- }), 1)], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.242", null, "内部标识符"))]), r("a-input", { attrs: { size: "small", placeholder: i18nHelper("04-001-009-EMR.3.3.242", null, "内部标识符") }, model: { value: t.innerIdentifier, callback: function(o) {
73776
+ }), 1)], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.242", null, "内部标识符"))]), r("a-input", { attrs: { size: "small", disabled: !0, placeholder: i18nHelper("04-001-009-EMR.3.3.242", null, "内部标识符") }, model: { value: t.innerIdentifier, callback: function(o) {
73767
73777
  t.innerIdentifier = o;
73768
73778
  }, expression: "innerIdentifier" } })], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.226", null, "文本内容"))]), r("a-input", { attrs: { clearable: "", "show-word-limit": "", size: "small", type: "textarea", placeholder: i18nHelper("04-001-009-EMR.3.3.226", null, "文本内容"), "max-length": 256, "auto-size": { minRows: 2, maxRows: 4 } }, on: { input: t.codeChange }, model: { value: t.textContent, callback: function(o) {
73769
73779
  t.textContent = o;
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-D7dNVUUV.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-Dko_H-WC.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.0",
3
+ "version": "3.3.3-beta.2",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",