hoeditor-web 3.1.78 → 3.1.80

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.
@@ -15853,7 +15853,7 @@ var component = (0,componentNormalizer/* default */.Z)(
15853
15853
 
15854
15854
  /***/ }),
15855
15855
 
15856
- /***/ 8494:
15856
+ /***/ 1545:
15857
15857
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
15858
15858
 
15859
15859
  "use strict";
@@ -15869,7 +15869,7 @@ __webpack_require__.d(__webpack_exports__, {
15869
15869
  var es_function_name = __webpack_require__(68309);
15870
15870
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
15871
15871
  var es_array_concat = __webpack_require__(92222);
15872
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=9c073ac8&
15872
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=5d84ec10&
15873
15873
 
15874
15874
 
15875
15875
  var render = function render() {
@@ -16268,6 +16268,18 @@ var render = function render() {
16268
16268
  },
16269
16269
  expression: "isHigher"
16270
16270
  }
16271
+ })], 1) : _vm._e(), _vm.signType !== 1 ? _c('li', {
16272
+ staticClass: "control-item"
16273
+ }, [_c('span', {
16274
+ staticClass: "label"
16275
+ }, [_vm._v("允许补充编辑")]), _c('a-checkbox', {
16276
+ model: {
16277
+ value: _vm.additionsEditor,
16278
+ callback: function callback($$v) {
16279
+ _vm.additionsEditor = $$v;
16280
+ },
16281
+ expression: "additionsEditor"
16282
+ }
16271
16283
  })], 1) : _vm._e()], 2), _vm.signType >= 9 ? _c('div', {
16272
16284
  staticClass: "section-right"
16273
16285
  }, [_c('div', {
@@ -16370,7 +16382,7 @@ var render = function render() {
16370
16382
  };
16371
16383
  var staticRenderFns = [];
16372
16384
 
16373
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=9c073ac8&
16385
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=5d84ec10&
16374
16386
 
16375
16387
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
16376
16388
  var objectSpread2 = __webpack_require__(63442);
@@ -16456,13 +16468,14 @@ var SignNode = __webpack_require__(24701);
16456
16468
  animationClassNames: 'control-modal-contents sign-modal animation-in',
16457
16469
  isDisplayTitle: false,
16458
16470
  isHigher: false,
16471
+ additionsEditor: false,
16459
16472
  isDisplayTime: false,
16460
16473
  timePosition: '0',
16461
16474
  dateTimeList: [],
16462
16475
  associatedElement: '',
16463
16476
  modifyProps: {},
16464
16477
  unwatchProps: [],
16465
- watchProps: ['name', 'signType', 'signFormat', 'connectMode', 'connectChar', 'isFront', 'signTimeFormat', 'customFormatContent', 'isDisplayTitle', 'isDisplayTime', 'timePosition', 'associatedElement', 'isHigher']
16478
+ watchProps: ['name', 'signType', 'signFormat', 'connectMode', 'connectChar', 'isFront', 'signTimeFormat', 'customFormatContent', 'isDisplayTitle', 'isDisplayTime', 'timePosition', 'associatedElement', 'isHigher', 'additionsEditor']
16466
16479
  };
16467
16480
  },
16468
16481
  mounted: function mounted() {
@@ -16480,7 +16493,7 @@ var SignNode = __webpack_require__(24701);
16480
16493
  if (this.controlStatus === 'update') {
16481
16494
  var node = this.getCurrentSelectNode();
16482
16495
  if (node) {
16483
- var _node$otherProperties, _node$otherProperties2, _node$otherProperties3, _node$otherProperties4, _node$otherProperties5, _node$otherProperties6, _node$otherProperties7;
16496
+ var _node$otherProperties, _node$otherProperties2, _node$otherProperties3, _node$otherProperties4, _node$otherProperties5, _node$otherProperties6, _node$otherProperties7, _node$otherProperties8, _node$otherProperties9;
16484
16497
  this.name = node.name;
16485
16498
  if (node.attribute == 2) {
16486
16499
  this.signType = 2; // 自定义多人签名(带职称)
@@ -16507,8 +16520,9 @@ var SignNode = __webpack_require__(24701);
16507
16520
  // this.customSignFormatList = node.customSignFormatList ? node.customSignFormatList : [];
16508
16521
  this.isDisplayTitle = ((_node$otherProperties = node.otherProperties) === null || _node$otherProperties === void 0 ? void 0 : _node$otherProperties.isDisplayTitle) === 'true' | ((_node$otherProperties2 = node.otherProperties) === null || _node$otherProperties2 === void 0 ? void 0 : _node$otherProperties2.isDisplayTitle) === true ? true : false;
16509
16522
  this.isHigher = ((_node$otherProperties3 = node.otherProperties) === null || _node$otherProperties3 === void 0 ? void 0 : _node$otherProperties3.isHigher) === 'true' | ((_node$otherProperties4 = node.otherProperties) === null || _node$otherProperties4 === void 0 ? void 0 : _node$otherProperties4.isHigher) === true ? true : false;
16510
- this.isDisplayTime = ((_node$otherProperties5 = node.otherProperties) === null || _node$otherProperties5 === void 0 ? void 0 : _node$otherProperties5.isDisplayTime) === 'true' | ((_node$otherProperties6 = node.otherProperties) === null || _node$otherProperties6 === void 0 ? void 0 : _node$otherProperties6.isDisplayTime) === true ? true : false;
16511
- this.timePosition = ((_node$otherProperties7 = node.otherProperties) === null || _node$otherProperties7 === void 0 ? void 0 : _node$otherProperties7.timePosition) == '1' ? '1' : '0';
16523
+ this.additionsEditor = ((_node$otherProperties5 = node.otherProperties) === null || _node$otherProperties5 === void 0 ? void 0 : _node$otherProperties5.additionsEditor) === 'true' | ((_node$otherProperties6 = node.otherProperties) === null || _node$otherProperties6 === void 0 ? void 0 : _node$otherProperties6.additionsEditor) === true ? true : false;
16524
+ this.isDisplayTime = ((_node$otherProperties7 = node.otherProperties) === null || _node$otherProperties7 === void 0 ? void 0 : _node$otherProperties7.isDisplayTime) === 'true' | ((_node$otherProperties8 = node.otherProperties) === null || _node$otherProperties8 === void 0 ? void 0 : _node$otherProperties8.isDisplayTime) === true ? true : false;
16525
+ this.timePosition = ((_node$otherProperties9 = node.otherProperties) === null || _node$otherProperties9 === void 0 ? void 0 : _node$otherProperties9.timePosition) == '1' ? '1' : '0';
16512
16526
  this.associatedElement = node.associatedElement ? node.associatedElement : '';
16513
16527
  list.forEach(function (v) {
16514
16528
  if (v.nodeType == 8 && (!associatedElementList.includes(v.dataId) || node.associatedElement == v.dataId)) {
@@ -16609,28 +16623,33 @@ var SignNode = __webpack_require__(24701);
16609
16623
  if (this.signType === 9) {
16610
16624
  // 自定义医生签名
16611
16625
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义医生签名', 1, this.signFormat, this.signTimeFormat, customProperty, this.connectMode, this.isFront, this.allowEditSignTime, 0, '', {
16612
- isHigher: this.isHigher
16626
+ isHigher: this.isHigher,
16627
+ additionsEditor: this.additionsEditor
16613
16628
  }, this.associatedElement);
16614
16629
  } else if (this.signType === 2) {
16615
16630
  // 多人签名(默认带职称)
16616
16631
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义多人签名(默认带出职称)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar, {
16617
- isHigher: this.isHigher
16632
+ isHigher: this.isHigher,
16633
+ additionsEditor: this.additionsEditor
16618
16634
  }, this.associatedElement);
16619
16635
  } else if (this.signType === 3) {
16620
16636
  // 自定义多人签名(默认带出职称和日期)
16621
16637
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义多人签名(默认带出职称和日期)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar, {
16622
- isHigher: this.isHigher
16638
+ isHigher: this.isHigher,
16639
+ additionsEditor: this.additionsEditor
16623
16640
  }, this.associatedElement);
16624
16641
  } else if (this.signType === 4) {
16625
16642
  // 自定义多人签名(职称,连接符可选)
16626
16643
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义多人签名(职称,连接符可选)', 0, '', this.signTimeFormat, customProperty, this.connectMode, undefined, undefined, this.signType, this.connectChar, (0,objectSpread2/* default */.Z)({
16627
16644
  isDisplayTitle: this.isDisplayTitle,
16645
+ additionsEditor: this.additionsEditor,
16628
16646
  isHigher: this.isHigher
16629
16647
  }, otherProperty), this.associatedElement);
16630
16648
  } else {
16631
16649
  var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
16632
16650
  var otherProperties = {
16633
- isHigher: this.isHigher
16651
+ isHigher: this.isHigher,
16652
+ additionsEditor: this.additionsEditor
16634
16653
  };
16635
16654
  if (this.signType == 1) {
16636
16655
  otherProperties = {};
@@ -16645,7 +16664,8 @@ var SignNode = __webpack_require__(24701);
16645
16664
  var signType = this.signType == 9 ? 1 : 0; // 自定义签名的signType=1 其他签名 signType=0
16646
16665
  var _otherProperties = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, node.otherProperties), {}, {
16647
16666
  isDisplayTitle: this.isDisplayTitle,
16648
- isHigher: this.isHigher
16667
+ isHigher: this.isHigher,
16668
+ additionsEditor: this.additionsEditor
16649
16669
  }, otherProperty);
16650
16670
  if (Object.keys(this.modifyProps).length) {
16651
16671
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
@@ -16668,10 +16688,10 @@ var SignNode = __webpack_require__(24701);
16668
16688
  });
16669
16689
  ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
16670
16690
  /* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
16671
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=9c073ac8&prod&lang=less&
16691
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=5d84ec10&prod&lang=less&
16672
16692
  // extracted by mini-css-extract-plugin
16673
16693
 
16674
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=9c073ac8&prod&lang=less&
16694
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=5d84ec10&prod&lang=less&
16675
16695
 
16676
16696
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
16677
16697
  var componentNormalizer = __webpack_require__(70713);
@@ -24671,7 +24691,7 @@ var component = (0,componentNormalizer/* default */.Z)(
24671
24691
 
24672
24692
  /***/ }),
24673
24693
 
24674
- /***/ 92682:
24694
+ /***/ 86559:
24675
24695
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
24676
24696
 
24677
24697
  "use strict";
@@ -24685,7 +24705,7 @@ __webpack_require__.d(__webpack_exports__, {
24685
24705
 
24686
24706
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
24687
24707
  var es_function_name = __webpack_require__(68309);
24688
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/HoFabric.vue?vue&type=template&id=2d0c0396&
24708
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/HoFabric.vue?vue&type=template&id=515347a9&
24689
24709
 
24690
24710
  var render = function render() {
24691
24711
  var _vm = this,
@@ -24988,7 +25008,7 @@ var render = function render() {
24988
25008
  };
24989
25009
  var staticRenderFns = [];
24990
25010
 
24991
- ;// CONCATENATED MODULE: ./src/components/controls/upload/HoFabric.vue?vue&type=template&id=2d0c0396&
25011
+ ;// CONCATENATED MODULE: ./src/components/controls/upload/HoFabric.vue?vue&type=template&id=515347a9&
24992
25012
 
24993
25013
  // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
24994
25014
  var style = __webpack_require__(94310);
@@ -25068,6 +25088,8 @@ var CircleSvgIcon = {
25068
25088
  };
25069
25089
  }
25070
25090
  };
25091
+ // EXTERNAL MODULE: ./src/components/controls/upload/HoFabricConfig.ts
25092
+ var HoFabricConfig = __webpack_require__(3573);
25071
25093
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/HoFabric.vue?vue&type=script&lang=js&
25072
25094
 
25073
25095
 
@@ -25082,6 +25104,7 @@ var CircleSvgIcon = {
25082
25104
 
25083
25105
 
25084
25106
 
25107
+
25085
25108
  /* harmony default export */ var HoFabricvue_type_script_lang_js_ = ({
25086
25109
  name: 'HoFabric',
25087
25110
  data: function data() {
@@ -25163,9 +25186,9 @@ var CircleSvgIcon = {
25163
25186
  //边框线条选择数据
25164
25187
  borderWidth: 2,
25165
25188
  //所有图形边框的宽度
25166
- borderColor: '#1e90ff',
25189
+ borderColor: '#F00',
25167
25190
  //所有图形边框的颜色
25168
- fontSize: 20,
25191
+ fontSize: '35',
25169
25192
  textObj: '',
25170
25193
  //存储绘制文字对象
25171
25194
  // backStack: [], //所有的绘画对象栈
@@ -25703,6 +25726,9 @@ var CircleSvgIcon = {
25703
25726
  if (!this.fabric) {
25704
25727
  this.fabric = (__webpack_require__(86357).fabric);
25705
25728
  }
25729
+ var config = HoFabricConfig/* HoFabricConfig */.G.instance();
25730
+ this.fontSize = config.fontSize;
25731
+ this.borderColor = config.borderColor;
25706
25732
  },
25707
25733
  mounted: function mounted() {
25708
25734
  var _this4 = this;
@@ -25785,10 +25811,10 @@ var CircleSvgIcon = {
25785
25811
  });
25786
25812
  ;// CONCATENATED MODULE: ./src/components/controls/upload/HoFabric.vue?vue&type=script&lang=js&
25787
25813
  /* harmony default export */ var upload_HoFabricvue_type_script_lang_js_ = (HoFabricvue_type_script_lang_js_);
25788
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/HoFabric.vue?vue&type=style&index=0&id=2d0c0396&prod&lang=less&
25814
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/HoFabric.vue?vue&type=style&index=0&id=515347a9&prod&lang=less&
25789
25815
  // extracted by mini-css-extract-plugin
25790
25816
 
25791
- ;// CONCATENATED MODULE: ./src/components/controls/upload/HoFabric.vue?vue&type=style&index=0&id=2d0c0396&prod&lang=less&
25817
+ ;// CONCATENATED MODULE: ./src/components/controls/upload/HoFabric.vue?vue&type=style&index=0&id=515347a9&prod&lang=less&
25792
25818
 
25793
25819
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
25794
25820
  var componentNormalizer = __webpack_require__(70713);
@@ -32378,6 +32404,46 @@ var getCellNode = function getCellNode(nodes) {
32378
32404
 
32379
32405
  /***/ }),
32380
32406
 
32407
+ /***/ 3573:
32408
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
32409
+
32410
+ "use strict";
32411
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
32412
+ /* harmony export */ G: function() { return /* binding */ HoFabricConfig; }
32413
+ /* harmony export */ });
32414
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70280);
32415
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66298);
32416
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78255);
32417
+
32418
+
32419
+
32420
+ var HoFabricConfig = /*#__PURE__*/function () {
32421
+ function HoFabricConfig() {
32422
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, HoFabricConfig);
32423
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "fontSize", '35');
32424
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "borderColor", "#F00");
32425
+ }
32426
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(HoFabricConfig, [{
32427
+ key: "setConfig",
32428
+ value: function setConfig(value) {
32429
+ this.fontSize = value.fontSize ? value.fontSize : '35';
32430
+ this.borderColor = value.borderColor ? value.borderColor : '35';
32431
+ }
32432
+ }], [{
32433
+ key: "instance",
32434
+ value: function instance() {
32435
+ if (!this._instance) {
32436
+ this._instance = new HoFabricConfig();
32437
+ }
32438
+ return this._instance;
32439
+ }
32440
+ }]);
32441
+ return HoFabricConfig;
32442
+ }();
32443
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(HoFabricConfig, "_instance", void 0);
32444
+
32445
+ /***/ }),
32446
+
32381
32447
  /***/ 95677:
32382
32448
  /***/ (function(__unused_webpack_module, __webpack_exports__) {
32383
32449
 
@@ -40800,11 +40866,12 @@ var DocController = /*#__PURE__*/function () {
40800
40866
  */
40801
40867
  }, {
40802
40868
  key: "insertSignNode",
40803
- value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
40869
+ value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties, signType) {
40804
40870
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
40805
40871
  var startPath = domRange.startPath;
40806
40872
  var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
40807
- var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntSign, 1, type, name, 0, '医师签名', signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition);
40873
+ var attribute = signType ? signType : 0;
40874
+ var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntSign, 1, type, name, 0, '医师签名', signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition, attribute, undefined, otherProperties);
40808
40875
  //插入该表达式节点
40809
40876
  hoEditorFactory.undoService.begin();
40810
40877
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_27__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
@@ -41432,6 +41499,9 @@ var DocTree = /*#__PURE__*/function () {
41432
41499
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_isSaveValid", false);
41433
41500
  //是否是保存校验
41434
41501
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_elementChangeRecords", void 0);
41502
+ //元素修改记录
41503
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_redrawHiddenParas", void 0);
41504
+ //病历加载时需要重绘的表格格内的隐藏段落
41435
41505
  // private _curUserIndex: number; //当前用户
41436
41506
  //private _curOnSelectedComment: Comment | null; //当前处于选中状态的批注
41437
41507
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_ctlKey", 0);
@@ -41458,6 +41528,7 @@ var DocTree = /*#__PURE__*/function () {
41458
41528
  //this._comments = new Array<Comment>();
41459
41529
  this._userHistories = new Array();
41460
41530
  this._elementChangeRecords = new Map();
41531
+ this._redrawHiddenParas = [];
41461
41532
  // this._docProperty = new DocProperty(this);
41462
41533
  // this._curUserIndex = -1;
41463
41534
  //this._curOnSelectedComment = null;
@@ -41621,6 +41692,16 @@ var DocTree = /*#__PURE__*/function () {
41621
41692
  this._elementChangeRecords = value;
41622
41693
  }
41623
41694
  }
41695
+ }, {
41696
+ key: "redrawHiddenParas",
41697
+ get: function get() {
41698
+ return this._redrawHiddenParas;
41699
+ },
41700
+ set: function set(value) {
41701
+ if (value !== this._redrawHiddenParas) {
41702
+ this._redrawHiddenParas = value;
41703
+ }
41704
+ }
41624
41705
  }, {
41625
41706
  key: "docProperty",
41626
41707
  get: function get() {
@@ -43364,6 +43445,7 @@ var DocTree = /*#__PURE__*/function () {
43364
43445
  this._curOnDragNode = null;
43365
43446
  this._userHistories = new Array();
43366
43447
  this._elementChangeRecords = new Map();
43448
+ this._redrawHiddenParas = [];
43367
43449
  var curPath = this._mainNodes[0].getNodePath();
43368
43450
  this._curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_24__/* .DomRange */ .a(this._hoEditorFactoryID, curPath, curPath);
43369
43451
  }
@@ -67014,6 +67096,10 @@ var BaseNode = __webpack_require__(62358);
67014
67096
  var DrawDownListNode = __webpack_require__(93541);
67015
67097
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
67016
67098
  var TextInputFieldNode = __webpack_require__(90161);
67099
+ // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawRadioAndCheckBox.ts
67100
+ var DrawRadioAndCheckBox = __webpack_require__(88666);
67101
+ // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawRadioAndCheckBoxPrint.ts
67102
+ var DrawRadioAndCheckBoxPrint = __webpack_require__(91757);
67017
67103
  ;// CONCATENATED MODULE: ./src/editor/draw/DrawLine.ts
67018
67104
 
67019
67105
 
@@ -67036,6 +67122,8 @@ var TextInputFieldNode = __webpack_require__(90161);
67036
67122
 
67037
67123
 
67038
67124
 
67125
+
67126
+
67039
67127
 
67040
67128
 
67041
67129
 
@@ -67373,6 +67461,10 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
67373
67461
  dWidth = dItem.dWidth;
67374
67462
  iCount += dItem.charCount;
67375
67463
  maxFontHeight = Math.max(maxFontHeight, dItem.dHeight);
67464
+ } else if (dItem instanceof DrawRadioAndCheckBox/* DrawRadioAndCheckBox */.e || dItem instanceof DrawRadioAndCheckBoxPrint/* DrawRadioAndCheckBoxPrint */.w) {
67465
+ dWidth = dItem.dWidth;
67466
+ iCount += dItem.charCount;
67467
+ maxFontHeight = Math.max(maxFontHeight, dItem.dHeight);
67376
67468
  } else {
67377
67469
  dWidth = this.drawItems[i].dWidth;
67378
67470
  iCount += 1;
@@ -67664,9 +67756,10 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
67664
67756
  this.drawItems[j].refresh(tmp);
67665
67757
  var dwidth = this.drawItems[j].dWidth;
67666
67758
  //((this.drawItems[j] as unknown) as DrawInfos).dHeight = this._dHeight;
67667
- this.drawItems[j].x = usedWidth; // + 1;
67759
+ this.drawItems[j].x = usedWidth;
67668
67760
  this.drawItems[j].y = bottompos;
67669
- usedWidth += this.drawItems[j].dWidth + charSpace;
67761
+ usedWidth += dwidth + charSpace;
67762
+ // + 1;
67670
67763
  // this._charSpace;
67671
67764
  }
67672
67765
  }
@@ -68685,12 +68778,12 @@ var StagePosition = /*#__PURE__*/function () {
68685
68778
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__);
68686
68779
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(40561);
68687
68780
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_12__);
68688
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(54747);
68689
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_13__);
68690
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(68309);
68691
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14__);
68692
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(57658);
68693
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_15__);
68781
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(57658);
68782
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__);
68783
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(54747);
68784
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__);
68785
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(68309);
68786
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__);
68694
68787
  /* harmony import */ var _DrawLine__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96635);
68695
68788
  /* harmony import */ var _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(34311);
68696
68789
  /* harmony import */ var _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(74298);
@@ -69282,11 +69375,13 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
69282
69375
  // }
69283
69376
  var restHeight = Infinity;
69284
69377
  if (this.allowAcrossPage) restHeight = this.maxHeight - dTop;
69378
+ var mark = false;
69285
69379
  while (nextDline < dlines.length) {
69286
69380
  var dline = dlines[nextDline];
69287
69381
  var hidden = dline.paragraphNode.customProperty.hidden;
69288
69382
  if (hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_26__/* .PaintState */ .Dh.psDesign && hidden && hidden.toString() === "true") {
69289
69383
  nextDline += 1;
69384
+ mark = true;
69290
69385
  continue;
69291
69386
  }
69292
69387
  // const pagePos = hoEditorFactory.drawTree.getDrawLinePagePos(dline);
@@ -69398,6 +69493,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
69398
69493
  this._docHeight -= aTop;
69399
69494
  this.paintFrontGround();
69400
69495
  this.paintBackground();
69496
+ if (mark && dlines.length > 0 && dlines[0].parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_24__/* .DrawPageCell */ .k) {
69497
+ dlines[0].parent.cell.drawCell.needUpdate = true;
69498
+ hoEditorFactory.docTree.redrawHiddenParas.push(dlines[0].parent.cell.table);
69499
+ }
69401
69500
  // drawPage.repaint();
69402
69501
  return [isFull, dTop, restHeight];
69403
69502
  }
@@ -75783,7 +75882,13 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
75783
75882
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dBox", void 0);
75784
75883
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dAppendText", void 0);
75785
75884
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dUnderLine", void 0);
75885
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_charCount", void 0);
75786
75886
  _this._controlStyle = controlStyle;
75887
+ if (node.isTransToText) {
75888
+ _this._charCount = 1;
75889
+ } else {
75890
+ _this._charCount = node.text.length + 1;
75891
+ }
75787
75892
  //this._name = name;
75788
75893
  _this._isSelected = isSelected;
75789
75894
  _this._boxAlign = boxAlign;
@@ -75870,6 +75975,11 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
75870
75975
  this._text = value;
75871
75976
  }
75872
75977
  }
75978
+ }, {
75979
+ key: "charCount",
75980
+ get: function get() {
75981
+ return this._charCount;
75982
+ }
75873
75983
  }, {
75874
75984
  key: "textStyle",
75875
75985
  get: function get() {
@@ -76040,6 +76150,12 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
76040
76150
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dBox", void 0);
76041
76151
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dAppendText", void 0);
76042
76152
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dUnderLine", void 0);
76153
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_charCount", void 0);
76154
+ if (node.isTransToText) {
76155
+ _this._charCount = 1;
76156
+ } else {
76157
+ _this._charCount = node.text.length + 1;
76158
+ }
76043
76159
  _this._controlStyle = controlStyle;
76044
76160
  //this._name = name;
76045
76161
  _this._isSelected = isSelected;
@@ -76114,6 +76230,11 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
76114
76230
  this._text = value;
76115
76231
  }
76116
76232
  }
76233
+ }, {
76234
+ key: "charCount",
76235
+ get: function get() {
76236
+ return this._charCount;
76237
+ }
76117
76238
  }, {
76118
76239
  key: "textStyle",
76119
76240
  get: function get() {
@@ -81206,7 +81327,7 @@ var RectNode = __webpack_require__(67800);
81206
81327
  var DrawSelect = /*#__PURE__*/function (_createjs$Shape) {
81207
81328
  (0,inherits/* default */.Z)(DrawSelect, _createjs$Shape);
81208
81329
  var _super = (0,createSuper/* default */.Z)(DrawSelect);
81209
- function DrawSelect(hoEditorFactoryID, pageIndex, dline, left, right, inSameRect, startParent, endParent, color) {
81330
+ function DrawSelect(hoEditorFactoryID, pageIndex, dline, left, right, inSameRect, startParent, endParent, color, isMultiRange) {
81210
81331
  var _this;
81211
81332
  (0,classCallCheck/* default */.Z)(this, DrawSelect);
81212
81333
  _this = _super.call(this);
@@ -81232,7 +81353,7 @@ var DrawSelect = /*#__PURE__*/function (_createjs$Shape) {
81232
81353
  _this._startParent = startParent;
81233
81354
  _this._endParent = endParent;
81234
81355
  _this._color = color;
81235
- _this.updateShape();
81356
+ _this.updateShape(isMultiRange);
81236
81357
  return _this;
81237
81358
  }
81238
81359
  (0,createClass/* default */.Z)(DrawSelect, [{
@@ -81266,7 +81387,7 @@ var DrawSelect = /*#__PURE__*/function (_createjs$Shape) {
81266
81387
  }
81267
81388
  }, {
81268
81389
  key: "updateShape",
81269
- value: function updateShape() {
81390
+ value: function updateShape(isMultiRange) {
81270
81391
  if (!this._bChanged) {
81271
81392
  return;
81272
81393
  }
@@ -81300,7 +81421,7 @@ var DrawSelect = /*#__PURE__*/function (_createjs$Shape) {
81300
81421
  // left;
81301
81422
  // }
81302
81423
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
81303
- if (hoEditorFactory.drawTree.paintStatus == PaintState.psPreview) {
81424
+ if (hoEditorFactory.drawTree.paintStatus == PaintState.psPreview && !isMultiRange) {
81304
81425
  //打印预览时,变更样式
81305
81426
  width = hoEditorFactory.pageProperty.widthPixes;
81306
81427
  this._color = "green";
@@ -84744,7 +84865,7 @@ var DrawTree = /*#__PURE__*/function () {
84744
84865
  }
84745
84866
  var color = hoeditorfacotry.option.getColorByLevel(15);
84746
84867
  if (dPage && dPage.selectContainer) {
84747
- var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, color);
84868
+ var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, color, true);
84748
84869
  //shape.alpha = 0.3;
84749
84870
  dPage.selectContainer.addChild(shape);
84750
84871
  if (dPages.indexOf(dPage) < 0) {
@@ -166440,7 +166561,7 @@ var map = {
166440
166561
  "./qrCode/QrCode.vue": 59805,
166441
166562
  "./radioCheckBox/RadioCheckbox.vue": 22876,
166442
166563
  "./selectDialog/SelectDialog.vue": 32497,
166443
- "./sign/Sign.vue": 8494,
166564
+ "./sign/Sign.vue": 1545,
166444
166565
  "./table/TableCellPoper.vue": 97628,
166445
166566
  "./table/TableCellPoper1.vue": 44645,
166446
166567
  "./table/TableCellProperty.vue": 63689,
@@ -166454,7 +166575,7 @@ var map = {
166454
166575
  "./textDialog/TextToLabelDialog.vue": 2355,
166455
166576
  "./textDialog/VerifyTip.vue": 74618,
166456
166577
  "./upload/CanvasImageDialog.vue": 40061,
166457
- "./upload/HoFabric.vue": 92682,
166578
+ "./upload/HoFabric.vue": 86559,
166458
166579
  "./upload/UploadImageDialog.vue": 12625,
166459
166580
  "./upload/hoFabricRight.vue": 94185,
166460
166581
  "./verifyTip/VerifyTip.vue": 23664
@@ -203761,7 +203882,7 @@ Input.install = function (Vue) {
203761
203882
 
203762
203883
 
203763
203884
  /* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
203764
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=b6d65e5c&
203885
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=45b99f15&
203765
203886
  var render = function render() {
203766
203887
  var _vm = this,
203767
203888
  _c = _vm._self._c;
@@ -203888,8 +204009,8 @@ var es_string_match = __webpack_require__(4723);
203888
204009
  var es_number_constructor = __webpack_require__(9653);
203889
204010
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
203890
204011
  var es_json_stringify = __webpack_require__(38862);
203891
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=c9703c12&
203892
- var HoDocvue_type_template_id_c9703c12_render = function render() {
204012
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=436915e3&
204013
+ var HoDocvue_type_template_id_436915e3_render = function render() {
203893
204014
  var _vm = this,
203894
204015
  _c = _vm._self._c;
203895
204016
  return _c('div', {
@@ -204090,7 +204211,7 @@ var HoDocvue_type_template_id_c9703c12_render = function render() {
204090
204211
  }
204091
204212
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
204092
204213
  };
204093
- var HoDocvue_type_template_id_c9703c12_staticRenderFns = [];
204214
+ var HoDocvue_type_template_id_436915e3_staticRenderFns = [];
204094
204215
 
204095
204216
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
204096
204217
  var es_array_filter = __webpack_require__(57327);
@@ -207081,7 +207202,7 @@ var TextNode = __webpack_require__(27198);
207081
207202
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207082
207203
  var ParagraphNode = __webpack_require__(67945);
207083
207204
  ;// CONCATENATED MODULE: ./src/components/version.ts
207084
- /* harmony default export */ var version = ('3.1.78');
207205
+ /* harmony default export */ var version = ('3.1.80');
207085
207206
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
207086
207207
  var PoperTipText = __webpack_require__(50987);
207087
207208
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -207529,23 +207650,59 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
207529
207650
  if (type !== 'dblclick') return false;
207530
207651
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
207531
207652
  var paintStatus = hoEditorFactory.drawTree.paintStatus;
207532
- if (paintStatus === 5 || paintStatus == 2) {
207653
+ if (paintStatus == DrawTree/* PaintState */.Dh.psPreview) {
207533
207654
  return false;
207534
207655
  }
207535
207656
  this.domRange = {
207536
207657
  startPath: hoEditorFactory.docTree.curDomRange.normalize().startPath,
207537
207658
  endPath: hoEditorFactory.docTree.curDomRange.normalize().endPath
207538
207659
  };
207660
+ if (paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
207661
+ var otherProperties = (node === null || node === void 0 ? void 0 : node.otherProperties) || {};
207662
+ if (node instanceof SignNode/* SignNode */.N && (otherProperties.additionsEditor == 'true' || otherProperties.additionsEditor == true)) {
207663
+ if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.vaq01) return false;
207664
+ this.$emit('dblNodeClick', {
207665
+ setActiveDoc: this.setActiveDocIndex,
207666
+ node: this.getCurrentSelectNode,
207667
+ type: 'sign',
207668
+ paintStatus: paintStatus
207669
+ });
207670
+ this.poperType = '';
207671
+ } else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
207672
+ // 文本域
207673
+ var parentNode = node.parentNode;
207674
+ var customProperty = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.customProperty) || {};
207675
+ if (Number(parentNode.inputFieldType) === 0 && (customProperty.additionsEditor == 'true' || customProperty.additionsEditor == true)) {
207676
+ if (parentNode.canModifyContent) {
207677
+ this.$emit('dblNodeClick', {
207678
+ setActiveDoc: this.setActiveDocIndex,
207679
+ node: this.getCurrentSelectNode,
207680
+ type: 'text',
207681
+ paintStatus: paintStatus
207682
+ });
207683
+ } else {
207684
+ this.$emit('dblNodeClick', {
207685
+ setActiveDoc: this.setActiveDocIndex,
207686
+ node: this.getCurrentSelectNode,
207687
+ type: 'modify_node',
207688
+ paintStatus: paintStatus
207689
+ });
207690
+ }
207691
+ this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
207692
+ }
207693
+ }
207694
+ return false;
207695
+ }
207539
207696
  var _hoEditorFactory$vueC2 = hoEditorFactory.vueController.getDomRange().inSameTable(),
207540
207697
  _hoEditorFactory$vueC3 = (0,esm_slicedToArray/* default */.Z)(_hoEditorFactory$vueC2, 2),
207541
207698
  isInTable = _hoEditorFactory$vueC3[0],
207542
207699
  tableNode = _hoEditorFactory$vueC3[1];
207543
- if (paintStatus == 1 && isInTable) {
207700
+ if (paintStatus == DrawTree/* PaintState */.Dh.psEdit && isInTable) {
207544
207701
  var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
207545
207702
  if (!result) return;
207546
207703
  }
207547
207704
  if (node instanceof SignNode/* SignNode */.N) {
207548
- if (paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
207705
+ if (paintStatus === DrawTree/* PaintState */.Dh.psDesign && !node.imgSrc && !node.fingerPrintSrc) {
207549
207706
  this.hoEditorProvider.setControlProperty('sign', 'update', '');
207550
207707
  return;
207551
207708
  }
@@ -207560,10 +207717,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
207560
207717
  this.poperType = '';
207561
207718
  return;
207562
207719
  } else {
207563
- if (paintStatus === 4) {
207720
+ if (paintStatus === DrawTree/* PaintState */.Dh.psReview) {
207564
207721
  if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
207565
- var parentNode = node.parentNode;
207566
- if (Number(parentNode.inputFieldType) === 0) {
207722
+ var _parentNode = node.parentNode;
207723
+ if (Number(_parentNode.inputFieldType) === 0) {
207567
207724
  this.$emit('dblNodeClick', {
207568
207725
  setActiveDoc: this.setActiveDocIndex,
207569
207726
  node: this.getCurrentSelectNode,
@@ -207578,7 +207735,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
207578
207735
  return false;
207579
207736
  }
207580
207737
  if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
207581
- if (paintStatus === 0) {
207738
+ if (paintStatus === DrawTree/* PaintState */.Dh.psDesign) {
207582
207739
  this.hoEditorProvider.setControlProperty('date', 'update', '');
207583
207740
  this.hoEditorProvider.setUpdateNodeValue(node);
207584
207741
  return;
@@ -207592,9 +207749,9 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
207592
207749
  this.createDownListProper(node, paintStatus, pageIndex);
207593
207750
  } else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
207594
207751
  // 文本域
207595
- var _parentNode = node.parentNode;
207596
- if (Number(_parentNode.inputFieldType) === 0) {
207597
- if (_parentNode.canModifyContent) {
207752
+ var _parentNode2 = node.parentNode;
207753
+ if (Number(_parentNode2.inputFieldType) === 0) {
207754
+ if (_parentNode2.canModifyContent) {
207598
207755
  this.$emit('dblNodeClick', {
207599
207756
  setActiveDoc: this.setActiveDocIndex,
207600
207757
  node: this.getCurrentSelectNode,
@@ -207612,17 +207769,17 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
207612
207769
  this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
207613
207770
  return false;
207614
207771
  }
207615
- if (_parentNode.readOnlyStatus === 0 && _parentNode.text.replace(/\s*/g, '') !== '') {
207772
+ if (_parentNode2.readOnlyStatus === 0 && _parentNode2.text.replace(/\s*/g, '') !== '') {
207616
207773
  return false;
207617
207774
  }
207618
- if (Number(_parentNode.inputFieldType) === 2) {
207619
- if (paintStatus === 0) {
207775
+ if (Number(_parentNode2.inputFieldType) === 2) {
207776
+ if (paintStatus === DrawTree/* PaintState */.Dh.psDesign) {
207620
207777
  this.hoEditorProvider.setControlProperty('date', 'update', '');
207621
207778
  return;
207622
207779
  }
207623
207780
  this.poperType = 'datePoper';
207624
- } else if (Number(_parentNode.inputFieldType) === 1) {
207625
- this.createInputProper(node, _parentNode, paintStatus, pageIndex);
207781
+ } else if (Number(_parentNode2.inputFieldType) === 1) {
207782
+ this.createInputProper(node, _parentNode2, paintStatus, pageIndex);
207626
207783
  }
207627
207784
  } else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType */.Jq.ntImage) {
207628
207785
  this.handleCellNode(node, node.parentNode, pageIndex, paintStatus);
@@ -207667,8 +207824,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
207667
207824
  index--;
207668
207825
  flag = parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.downListProperty.listItems.includes('<元素>');
207669
207826
  if (!flag) {
207670
- var _parentNode2;
207671
- parentNode = (_parentNode2 = parentNode) === null || _parentNode2 === void 0 ? void 0 : _parentNode2.parentNode;
207827
+ var _parentNode3;
207828
+ parentNode = (_parentNode3 = parentNode) === null || _parentNode3 === void 0 ? void 0 : _parentNode3.parentNode;
207672
207829
  }
207673
207830
  }
207674
207831
  }
@@ -208022,10 +208179,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
208022
208179
  });
208023
208180
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
208024
208181
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
208025
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=c9703c12&prod&lang=less&
208182
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=436915e3&prod&lang=less&
208026
208183
  // extracted by mini-css-extract-plugin
208027
208184
 
208028
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=c9703c12&prod&lang=less&
208185
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=436915e3&prod&lang=less&
208029
208186
 
208030
208187
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
208031
208188
 
@@ -208038,8 +208195,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
208038
208195
 
208039
208196
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
208040
208197
  components_HoDocvue_type_script_lang_js_,
208041
- HoDocvue_type_template_id_c9703c12_render,
208042
- HoDocvue_type_template_id_c9703c12_staticRenderFns,
208198
+ HoDocvue_type_template_id_436915e3_render,
208199
+ HoDocvue_type_template_id_436915e3_staticRenderFns,
208043
208200
  false,
208044
208201
  null,
208045
208202
  null,
@@ -212481,15 +212638,31 @@ var StructureConvert = /*#__PURE__*/function () {
212481
212638
  if (pageSettings) {
212482
212639
  // const pageProperty = new PageProperty(this._hoEditorFactory);
212483
212640
  var pageProperty = hoEditorFactory.pageProperty;
212484
- pageProperty.printDirection = Number(pageSettings.printDirection);
212485
212641
  pageProperty.borderColor = pageSettings.borderColor;
212486
212642
  pageProperty.isPaintBorder = pageSettings.isPaintBorder == 'true' ? true : false;
212487
212643
  pageProperty.paintRowLine = Number(pageSettings.paintRowLine);
212488
- pageProperty.pageSize = pageSettings.pageSize;
212489
212644
  // pageProperty.commentWidthMm = Number(pageSettings.commentWidthMm);
212490
212645
  // pageProperty.commentWidthMm = pageProperty.commentWidthMm;
212491
- pageProperty.widthMm = Number(pageSettings.widthMm);
212492
- pageProperty.heightMm = Number(pageSettings.heightMm);
212646
+ var widthMm = Number(pageSettings.widthMm);
212647
+ var heightMm = Number(pageSettings.heightMm);
212648
+ var isA5 = hoEditorFactory.vueController.isA5(widthMm, heightMm);
212649
+ if (isA5) {
212650
+ pageProperty.pageSize = 'A5';
212651
+ if (widthMm > heightMm) {
212652
+ pageProperty.widthMm = 210;
212653
+ pageProperty.heightMm = 148;
212654
+ pageProperty.printDirection = 1;
212655
+ } else {
212656
+ pageProperty.widthMm = 148;
212657
+ pageProperty.heightMm = 210;
212658
+ pageProperty.printDirection = 0;
212659
+ }
212660
+ } else {
212661
+ pageProperty.widthMm = widthMm;
212662
+ pageProperty.heightMm = heightMm;
212663
+ pageProperty.printDirection = Number(pageSettings.printDirection);
212664
+ pageProperty.pageSize = pageSettings.pageSize;
212665
+ }
212493
212666
  pageProperty.source = pageSettings.source;
212494
212667
  pageProperty.topMarginMm = Number(pageSettings.topMarginMm);
212495
212668
  pageProperty.bottomMarginMm = Number(pageSettings.bottomMarginMm);
@@ -213311,6 +213484,12 @@ var StructureConvert = /*#__PURE__*/function () {
213311
213484
  area.addChild(container);
213312
213485
  hoEditorFactory.drawPageTree.updateDrawPage(area.index);
213313
213486
  }
213487
+ var tables = hoEditorFactory.docTree.redrawHiddenParas;
213488
+ if (tables.length > 0) {
213489
+ for (var m = 0; m < tables.length; m++) {
213490
+ tables[m].update();
213491
+ }
213492
+ }
213314
213493
  /*
213315
213494
  //错别字检测
213316
213495
  let errors = [];
@@ -214519,6 +214698,8 @@ var hoCreateHistory = {
214519
214698
  }
214520
214699
  };
214521
214700
 
214701
+ // EXTERNAL MODULE: ./src/components/controls/upload/HoFabricConfig.ts
214702
+ var HoFabricConfig = __webpack_require__(3573);
214522
214703
  ;// CONCATENATED MODULE: ./src/editor/VueController.ts
214523
214704
 
214524
214705
 
@@ -214629,6 +214810,7 @@ var hoCreateHistory = {
214629
214810
 
214630
214811
 
214631
214812
 
214813
+
214632
214814
 
214633
214815
 
214634
214816
  var VueController = /*#__PURE__*/function () {
@@ -217000,6 +217182,9 @@ var VueController = /*#__PURE__*/function () {
217000
217182
  key: "insertText",
217001
217183
  value: function insertText(text) {
217002
217184
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
217185
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
217186
+ return;
217187
+ }
217003
217188
  var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
217004
217189
  if (result) {
217005
217190
  //hoEditorFactory.docController.keyBoardInput(text);
@@ -217527,20 +217712,26 @@ var VueController = /*#__PURE__*/function () {
217527
217712
  return _context.abrupt("return");
217528
217713
  case 2:
217529
217714
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
217715
+ if (!(hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly)) {
217716
+ _context.next = 5;
217717
+ break;
217718
+ }
217719
+ return _context.abrupt("return");
217720
+ case 5:
217530
217721
  if (!strHtml.includes('<MedicalExpress>')) {
217531
- _context.next = 8;
217722
+ _context.next = 10;
217532
217723
  break;
217533
217724
  }
217534
217725
  strHtml = strHtml.replace("<span>", "").replace("</span>", "");
217535
217726
  nodes = this.text2MedicalExpress(strHtml, hoEditorFactory.docTree.curDomRange.npEnd.node, 0);
217536
217727
  hoEditorFactory.docController.parseNodeData(nodes);
217537
217728
  return _context.abrupt("return");
217538
- case 8:
217729
+ case 10:
217539
217730
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</上标>', '<上标/>');
217540
217731
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</下标>', '<下标/>');
217541
217732
  result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
217542
217733
  if (!result) {
217543
- _context.next = 43;
217734
+ _context.next = 45;
217544
217735
  break;
217545
217736
  }
217546
217737
  _nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
@@ -217562,23 +217753,23 @@ var VueController = /*#__PURE__*/function () {
217562
217753
  }
217563
217754
  }
217564
217755
  if (!(value && keyValue && listItems)) {
217565
- _context.next = 42;
217756
+ _context.next = 44;
217566
217757
  break;
217567
217758
  }
217568
217759
  startPath = hoEditorFactory.docTree.curDomRange.normalize().startPath;
217569
217760
  parentNode = hoEditorFactory.docTree.getParentNode(startPath);
217570
217761
  if (!(parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.insCheckSyncUpdateList)) {
217571
- _context.next = 42;
217762
+ _context.next = 44;
217572
217763
  break;
217573
217764
  }
217574
217765
  downListProperty = parentNode.downListProperty;
217575
217766
  if (!downListProperty.allowMultiSelected) {
217576
- _context.next = 42;
217767
+ _context.next = 44;
217577
217768
  break;
217578
217769
  }
217579
217770
  arr = downListProperty.listItems ? JSON.parse(downListProperty.listItems) : [];
217580
217771
  if (!clear) {
217581
- _context.next = 36;
217772
+ _context.next = 38;
217582
217773
  break;
217583
217774
  }
217584
217775
  parentNode.value = '';
@@ -217592,12 +217783,12 @@ var VueController = /*#__PURE__*/function () {
217592
217783
  if (!canModifyContent) {
217593
217784
  parentNode.canModifyContent = true;
217594
217785
  }
217595
- _context.next = 34;
217786
+ _context.next = 36;
217596
217787
  return hoEditorFactory.docController.deleteRange(range, true, 'update');
217597
- case 34:
217788
+ case 36:
217598
217789
  parentNode.canModifyContent = canModifyContent;
217599
217790
  hoEditorFactory.docTree.curDomRange.setSamePath(spath);
217600
- case 36:
217791
+ case 38:
217601
217792
  parentNode.text = strHtml;
217602
217793
  parentNode.value = parentNode.value ? parentNode.value + ',' + value : value;
217603
217794
  parentNode.keyValue = parentNode.keyValue ? parentNode.keyValue + ',' + keyValue : keyValue;
@@ -217606,9 +217797,9 @@ var VueController = /*#__PURE__*/function () {
217606
217797
  if (_nodes[_nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C) {
217607
217798
  _nodes.splice(_nodes.length - 1, 1);
217608
217799
  }
217609
- case 42:
217800
+ case 44:
217610
217801
  hoEditorFactory.docController.parseNodeData(_nodes);
217611
- case 43:
217802
+ case 45:
217612
217803
  case "end":
217613
217804
  return _context.stop();
217614
217805
  }
@@ -219111,14 +219302,14 @@ var VueController = /*#__PURE__*/function () {
219111
219302
  */
219112
219303
  }, {
219113
219304
  key: "insertSignNode",
219114
- value: function insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
219305
+ value: function insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, otherProperties, signType) {
219115
219306
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
219116
219307
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
219117
219308
  var startPath = curDomRange.normalize().startPath;
219118
219309
  var endPath = curDomRange.normalize().endPath;
219119
219310
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertSign);
219120
219311
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219121
- hoEditorFactory.docController.insertSignNode(curDomRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
219312
+ hoEditorFactory.docController.insertSignNode(curDomRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, '', 0, otherProperties, signType);
219122
219313
  }
219123
219314
  }
219124
219315
  /**
@@ -219598,6 +219789,9 @@ var VueController = /*#__PURE__*/function () {
219598
219789
  key: "updateElementById",
219599
219790
  value: function updateElementById(id, eleJson, name) {
219600
219791
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
219792
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
219793
+ return;
219794
+ }
219601
219795
  var node = this.getNodeByID('all', id);
219602
219796
  if (!node && name) {
219603
219797
  node = this.getNodesByName('all', false, name)[0];
@@ -220425,6 +220619,11 @@ var VueController = /*#__PURE__*/function () {
220425
220619
  }
220426
220620
  DrawConfig/* DrawConfig */.f.instance().transformScale = scaleXY;
220427
220621
  }
220622
+ }, {
220623
+ key: "setFabricConfig",
220624
+ value: function setFabricConfig(value) {
220625
+ HoFabricConfig/* HoFabricConfig */.G.instance().setConfig(value);
220626
+ }
220428
220627
  /**
220429
220628
  * 根据节点名称和文本查询并设置高亮区域
220430
220629
  * @param items name 元素名称 text 高亮文本
@@ -220904,7 +221103,11 @@ var VueController = /*#__PURE__*/function () {
220904
221103
  node = node.previousLeaf();
220905
221104
  }
220906
221105
  whileText = this.getCaretPreviousNode(node);
220907
- text = whileText + text;
221106
+ if (whileText) {
221107
+ text = whileText + text;
221108
+ } else {
221109
+ text = "";
221110
+ }
220908
221111
  }
220909
221112
  if (text.length < 3) {
220910
221113
  console.error("\u7B7E\u540D\u5143\u7D20\u524D\u6587\u672C\u5173\u952E\u5B57\u3010".concat(text, "\u3011,\u67E5\u8BE2\u8282\u70B9\u6B21\u6570\u3010").concat(count, "\u3011"));
@@ -223059,6 +223262,17 @@ var VueController = /*#__PURE__*/function () {
223059
223262
  }
223060
223263
  return "\n <html>\n <head>\n <style>\n html, body {\n padding: 0;\n margin: 0;\n background: #f2f4f7;\n }\n #hoEmrContent {\n margin: 20px auto;\n background: #fff;\n box-shadow: 0px 2px 12px 0px #c7cacf;\n }\n </style>\n </head>\n <body>\n <div id=\"hoEmrContent\" style='width: ".concat(hoEditorFactory.pageProperty.widthPixes, "px; padding: ").concat(padding, ";'>\n ").concat(content, "\n </div>\n </body>\n </html>");
223061
223264
  }
223265
+ }, {
223266
+ key: "isA5",
223267
+ value: function isA5(widthMm, heightMm) {
223268
+ var A5_WIDTH = 210;
223269
+ var A5_HEIGHT = 148;
223270
+ var TOLERANCE = 5; // 误差值
223271
+ // 检查宽度和高度是否在允许的误差范围内
223272
+ var isWidthValid = Math.abs(widthMm - A5_WIDTH) <= TOLERANCE || Math.abs(widthMm - A5_HEIGHT) <= TOLERANCE;
223273
+ var isHeightValid = Math.abs(heightMm - A5_HEIGHT) <= TOLERANCE || Math.abs(heightMm - A5_WIDTH) <= TOLERANCE;
223274
+ return isWidthValid && isHeightValid;
223275
+ }
223062
223276
  }]);
223063
223277
  return VueController;
223064
223278
  }();
@@ -224240,6 +224454,7 @@ var EditController = /*#__PURE__*/function () {
224240
224454
 
224241
224455
 
224242
224456
 
224457
+
224243
224458
  var ElementController = /*#__PURE__*/function () {
224244
224459
  function ElementController(hoEditorFactoryID) {
224245
224460
  (0,esm_classCallCheck/* default */.Z)(this, ElementController);
@@ -224312,11 +224527,18 @@ var ElementController = /*#__PURE__*/function () {
224312
224527
  value: function updateTextInputFieldValue(node, text, customProperty, keyValue, value) {
224313
224528
  var _this = this;
224314
224529
  if (node.text === text && customProperty == undefined) return;
224530
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
224531
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
224532
+ var _customProperty = (node === null || node === void 0 ? void 0 : node.customProperty) || {};
224533
+ if (_customProperty.additionsEditor != true && _customProperty.additionsEditor != "true") {
224534
+ return;
224535
+ }
224536
+ }
224315
224537
  var hPromise = Promise.resolve();
224316
224538
  hPromise = hPromise.then(function (res) {
224317
224539
  return new Promise( /*#__PURE__*/function () {
224318
224540
  var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(resolve) {
224319
- var hoEditorFactory, dArea;
224541
+ var _hoEditorFactory, dArea;
224320
224542
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
224321
224543
  while (1) switch (_context.prev = _context.next) {
224322
224544
  case 0:
@@ -224328,10 +224550,10 @@ var ElementController = /*#__PURE__*/function () {
224328
224550
  return node.setFieldText(text, customProperty, keyValue, value);
224329
224551
  case 3:
224330
224552
  if (node.rootPath.includes("header")) {
224331
- hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this._hoEditorFactoryID);
224332
- dArea = hoEditorFactory.drawPageTree.getMainRootArea(node.EndMarkNode.drawNodes[0]);
224553
+ _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this._hoEditorFactoryID);
224554
+ dArea = _hoEditorFactory.drawPageTree.getMainRootArea(node.EndMarkNode.drawNodes[0]);
224333
224555
  node.update(0);
224334
- hoEditorFactory.subDocManger.updateAllSameSubDoc(dArea ? dArea.index : 0, SubDocManger/* HeaderFooterType */.pi.hftHead, false, false);
224556
+ _hoEditorFactory.subDocManger.updateAllSameSubDoc(dArea ? dArea.index : 0, SubDocManger/* HeaderFooterType */.pi.hftHead, false, false);
224335
224557
  }
224336
224558
  _context.next = 7;
224337
224559
  break;
@@ -224370,6 +224592,10 @@ var ElementController = /*#__PURE__*/function () {
224370
224592
  key: "updateDateTimeText",
224371
224593
  value: function updateDateTimeText(node, text) {
224372
224594
  if (node.text === text) return;
224595
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
224596
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
224597
+ return;
224598
+ }
224373
224599
  node.setDateTimeText(text);
224374
224600
  }
224375
224601
  /**
@@ -224445,7 +224671,7 @@ var ElementController = /*#__PURE__*/function () {
224445
224671
  key: "insertSignNode",
224446
224672
  value: function insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
224447
224673
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
224448
- hoEditorFactory.vueController.insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
224674
+ hoEditorFactory.vueController.insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty);
224449
224675
  }
224450
224676
  /**
224451
224677
  * 更新签名
@@ -228601,7 +228827,7 @@ function unzipSync(data) {
228601
228827
  /** @license
228602
228828
  *
228603
228829
  * jsPDF - PDF Document creation from JavaScript
228604
- * Version 2.4.0 Built on 2021-09-14T10:30:30.230Z
228830
+ * Version 2.5.1 Built on 2021-09-14T10:30:30.230Z
228605
228831
  * CommitID 00000000
228606
228832
  *
228607
228833
  * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
@@ -228990,7 +229216,7 @@ objectNumber=0;contentLength=0;content=[];offsets=[];additionalObjects=[];rootDi
228990
229216
  * @memberof jsPDF#
228991
229217
  * @name getR2L
228992
229218
  */API.__private__.getR2L=API.getR2L=function(){return R2L;};var zoomMode;// default: 1;
228993
- var setZoomMode=API.__private__.setZoomMode=function(zoom){var validZoomModes=[undefined,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(zoom)){zoomMode=zoom;}else if(!isNaN(zoom)){zoomMode=parseInt(zoom,10);}else if(validZoomModes.indexOf(zoom)!==-1){zoomMode=zoom;}else{throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+zoom+'" is not recognized.');}};API.__private__.getZoomMode=function(){return zoomMode;};var pageMode;// default: 'UseOutlines';
229219
+ var setZoomMode=API.__private__.setZoomMode=function(zoom){var validZoomModes=[undefined,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(zoom)){zoomMode=zoom;}else if(!isNaN(zoom)){zoomMode=parseInt(zoom,10);}else if(validZoomModes.indexOf(zoom)!==-1){zoomMode=zoom;}else{throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+zoom+'" is not recognized.');}};API.__private__.getZoomMode=function(){return zoomMode;};var pageMode;// default: 'UseOutlines';
228994
229220
  var setPageMode=API.__private__.setPageMode=function(pmode){var validPageModes=[undefined,null,"UseNone","UseOutlines","UseThumbs","FullScreen"];if(validPageModes.indexOf(pmode)==-1){throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+pmode+'" is not recognized.');}pageMode=pmode;};API.__private__.getPageMode=function(){return pageMode;};var layoutMode;// default: 'continuous';
228995
229221
  var setLayoutMode=API.__private__.setLayoutMode=function(layout){var validLayoutModes=[undefined,null,"continuous","single","twoleft","tworight","two"];if(validLayoutModes.indexOf(layout)==-1){throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+layout+'" is not recognized.');}layoutMode=layout;};API.__private__.getLayoutMode=function(){return layoutMode;};/**
228996
229222
  * Set the display mode options of the page like zoom and layout.
@@ -229324,7 +229550,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
229324
229550
  */return to8bitStream(text,flags).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)");};var beginPage=API.__private__.beginPage=function(format){pages[++page]=[];pagesContext[page]={objId:0,contentsObjId:0,userUnit:Number(userUnit),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(format[0]),topRightY:Number(format[1])}};_setPage(page);setOutputDestination(pages[currentPage]);};var _addPage=function _addPage(parmFormat,parmOrientation){var dimensions,width,height;orientation=parmOrientation||orientation;if(typeof parmFormat==="string"){dimensions=getPageFormat(parmFormat.toLowerCase());if(Array.isArray(dimensions)){width=dimensions[0];height=dimensions[1];}}if(Array.isArray(parmFormat)){width=parmFormat[0]*scaleFactor;height=parmFormat[1]*scaleFactor;}if(isNaN(width)){width=format[0];height=format[1];}if(width>14400||height>14400){jspdf_console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400");width=Math.min(14400,width);height=Math.min(14400,height);}format=[width,height];switch(orientation.substr(0,1)){case"l":if(height>width){format=[height,width];}break;case"p":if(width>height){format=[height,width];}break;}beginPage(format);// Set line width
229325
229551
  setLineWidth(lineWidth);// Set draw color
229326
229552
  out(strokeColor);// resurrecting non-default line caps, joins
229327
- if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}jspdf_console.log(page,'delete page');this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
229553
+ if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
229328
229554
  * Returns a document-specific font key - a label assigned to a
229329
229555
  * font name + font type combination at the time the font was added
229330
229556
  * to the font inventory.
@@ -229345,7 +229571,10 @@ if(!zoomMode)zoomMode="fullwidth";switch(zoomMode){case"fullwidth":out("/OpenAct
229345
229571
  * UseThumbs : Thumbnail images visible
229346
229572
  * FullScreen : Full-screen mode, with no menu bar, window controls, or any other window visible
229347
229573
  */out("/PageMode /"+pageMode);}events.publish("putCatalog");out(">>");out("endobj");};var putTrailer=API.__private__.putTrailer=function(){out("trailer");out("<<");out("/Size "+(objectNumber+1));// Root and Info must be the last and second last objects written respectively
229348
- out("/Root "+objectNumber+" 0 R");out("/Info "+(objectNumber-1)+" 0 R");if(encryptionOptions!==null){out("/Encrypt "+encryption.oid+" 0 R");}out("/ID [ <"+fileId+"> <"+fileId+"> ]");out(">>");};var putHeader=API.__private__.putHeader=function(){out("%PDF-"+pdfVersion);out("%\xBA\xDF\xAC\xE0");};var putXRef=API.__private__.putXRef=function(){var p="0000000000";out("xref");out("0 "+(objectNumber+1));out("0000000000 65535 f ");for(var i=1;i<=objectNumber;i++){var offset=offsets[i];if(typeof offset==="function"){out((p+offsets[i]()).slice(-10)+" 00000 n ");}else{if(typeof offsets[i]!=="undefined"){out((p+offsets[i]).slice(-10)+" 00000 n ");}else{out("0000000000 00000 n ");}}}};var buildDocument=API.__private__.buildDocument=function(){resetDocument();setOutputDestination(content);events.publish("buildDocument");putHeader();putPages();putAdditionalObjects();putResources();if(encryptionOptions!==null)putEncryptionDict();putInfo();putCatalog();var offsetOfXRef=contentLength;putXRef();putTrailer();out("startxref");out(""+offsetOfXRef);out("%%EOF");setOutputDestination(pages[currentPage]);return content.join("\n");};var getBlob=API.__private__.getBlob=function(data){return new Blob([getArrayBuffer(data)],{type:"application/pdf"});};/**
229574
+ out("/Root "+objectNumber+" 0 R");out("/Info "+(objectNumber-1)+" 0 R");if(encryptionOptions!==null){out("/Encrypt "+encryption.oid+" 0 R");}out("/ID [ <"+fileId+"> <"+fileId+"> ]");out(">>");};var putHeader=API.__private__.putHeader=function(){out("%PDF-"+pdfVersion);out("%\xBA\xDF\xAC\xE0");};var putXRef=API.__private__.putXRef=function(){var p="0000000000";out("xref");out("0 "+(objectNumber+1));out("0000000000 65535 f ");for(var i=1;i<=objectNumber;i++){var offset=offsets[i];if(typeof offset==="function"){out((p+offsets[i]()).slice(-10)+" 00000 n ");}else{if(typeof offsets[i]!=="undefined"){out((p+offsets[i]).slice(-10)+" 00000 n ");}else{out("0000000000 00000 n ");}}}};var buildDocument=API.__private__.buildDocument=function(){resetDocument();setOutputDestination(content);events.publish("buildDocument");putHeader();putPages();putAdditionalObjects();putResources();if(encryptionOptions!==null)putEncryptionDict();putInfo();putCatalog();var offsetOfXRef=contentLength;putXRef();putTrailer();out("startxref");out(""+offsetOfXRef);out("%%EOF");setOutputDestination(pages[currentPage]);// var contentString = content.join("\n");
229575
+ // content = 0;
229576
+ // return contentString;
229577
+ return content.join("\n");};var getBlob=API.__private__.getBlob=function(data){return new Blob([getArrayBuffer(data)],{type:"application/pdf"});};/**
229349
229578
  * Generates the PDF document.
229350
229579
  *
229351
229580
  * If `type` argument is undefined, output is raw body of resulting PDF returned as a string.
@@ -229373,7 +229602,7 @@ if(typeof globalObject.URL!=="undefined"&&typeof globalObject.URL.createObjectUR
229373
229602
  * Used to see if a supplied hotfix was requested when the pdf instance was created.
229374
229603
  * @param {string} hotfixName - The name of the hotfix to check.
229375
229604
  * @returns {boolean}
229376
- */var hasHotfix=function hasHotfix(hotfixName){return Array.isArray(hotfixes)===true&&hotfixes.indexOf(hotfixName)>-1;};switch(unit){case"pt":scaleFactor=1;break;case"mm":scaleFactor=72/25.4;break;case"cm":scaleFactor=72/2.54;break;case"in":scaleFactor=72;break;case"px":if(hasHotfix("px_scaling")==true){scaleFactor=72/96;}else{scaleFactor=96/72;}break;case"pc":scaleFactor=12;break;case"em":scaleFactor=12;break;case"ex":scaleFactor=6;break;default:throw new Error("Invalid unit: "+unit);}var encryption=null;setCreationDate();setFileId();var getEncryptor=function getEncryptor(objectId){if(encryptionOptions!==null){return encryption.encryptor(objectId,0);}return function(data){return data;};};//---------------------------------------
229605
+ */var hasHotfix=function hasHotfix(hotfixName){return Array.isArray(hotfixes)===true&&hotfixes.indexOf(hotfixName)>-1;};switch(unit){case"pt":scaleFactor=1;break;case"mm":scaleFactor=72/25.4;break;case"cm":scaleFactor=72/2.54;break;case"in":scaleFactor=72;break;case"px":if(hasHotfix("px_scaling")==true){scaleFactor=72/96;}else{scaleFactor=96/72;}break;case"pc":scaleFactor=12;break;case"em":scaleFactor=12;break;case"ex":scaleFactor=6;break;default:if(typeof unit==="number"){scaleFactor=unit;}else{throw new Error("Invalid unit: "+unit);}}var encryption=null;setCreationDate();setFileId();var getEncryptor=function getEncryptor(objectId){if(encryptionOptions!==null){return encryption.encryptor(objectId,0);}return function(data){return data;};};//---------------------------------------
229377
229606
  // Public API
229378
229607
  var getPageInfo=API.__private__.getPageInfo=API.getPageInfo=function(pageNumberOneBased){if(isNaN(pageNumberOneBased)||pageNumberOneBased%1!==0){throw new Error("Invalid argument passed to jsPDF.getPageInfo");}var objId=pagesContext[pageNumberOneBased].objId;return{objId:objId,pageNumber:pageNumberOneBased,pageContext:pagesContext[pageNumberOneBased]};};var getPageInfoByObjId=API.__private__.getPageInfoByObjId=function(objId){if(isNaN(objId)||objId%1!==0){throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");}for(var pageNumber in pagesContext){if(pagesContext[pageNumber].objId===objId){break;}}return getPageInfo(pageNumber);};var getCurrentPageInfo=API.__private__.getCurrentPageInfo=API.getCurrentPageInfo=function(){return{objId:pagesContext[currentPage].objId,pageNumber:currentPage,pageContext:pagesContext[currentPage]};};/**
229379
229608
  * Adds (and transfers the focus to) new page to the PDF document.
@@ -229440,6 +229669,7 @@ var getPageInfo=API.__private__.getPageInfo=API.getPageInfo=function(pageNumberO
229440
229669
  * @param {number|Matrix} [options.angle=0] - Rotate the text clockwise or counterclockwise. Expects the angle in degree.
229441
229670
  * @param {number} [options.rotationDirection=1] - Direction of the rotation. 0 = clockwise, 1 = counterclockwise.
229442
229671
  * @param {number} [options.charSpace=0] - The space between each letter.
229672
+ * @param {number} [options.horizontalScale=1] - Horizontal scale of the text as a factor of the regular size.
229443
229673
  * @param {number} [options.lineHeightFactor=1.15] - The lineheight of each line.
229444
229674
  * @param {Object} [options.flags] - Flags for to8bitStream.
229445
229675
  * @param {boolean} [options.flags.noBOM=true] - Don't add BOM to Unicode-text.
@@ -229471,7 +229701,7 @@ var getPageInfo=API.__private__.getPageInfo=API.getPageInfo=function(pageNumberO
229471
229701
  * T* (line two) Tj
229472
229702
  * T* (line three) Tj
229473
229703
  * ET
229474
- */options=options||{};var scope=options.scope||this;var payload,da,angle,align,charSpace,maxWidth,flags;// Pre-August-2012 the order of arguments was function(x, y, text, flags)
229704
+ */options=options||{};var scope=options.scope||this;var payload,da,angle,align,charSpace,maxWidth,flags,horizontalScale;// Pre-August-2012 the order of arguments was function(x, y, text, flags)
229475
229705
  // in effort to make all calls have similar signature like
229476
229706
  // function(data, coordinates... , miscellaneous)
229477
229707
  // this method had its args flipped.
@@ -229494,11 +229724,12 @@ while(len--){curDa=sa.shift();if(typeof curDa!=="string"||Array.isArray(curDa)&&
229494
229724
  //later code.
229495
229725
  if(typeof text==="string"){if(text.match(/[\r?\n]/)){text=[text.replace(/\r\n|\r|\n/g,'')];// 自定义修改 处理打印回车的问题
229496
229726
  }else{text=[text];}}//baseline
229497
- var height=activeFontSize/scope.internal.scaleFactor;var descent=height*(lineHeightFactor-1);switch(options.baseline){case"bottom":y-=descent;break;case"top":y+=height-descent;break;case"hanging":y+=height-2*descent;break;case"middle":y+=height/2-descent;break;}//multiline
229727
+ var height=activeFontSize/scope.internal.scaleFactor;// var descent = height * (lineHeightFactor - 1);
229728
+ var descent=height*(lineHeight-1);switch(options.baseline){case"bottom":y-=descent;break;case"top":y+=height-descent;break;case"hanging":y+=height-2*descent;break;case"middle":y+=height/2-descent;break;}//multiline
229498
229729
  maxWidth=options.maxWidth||0;if(maxWidth>0){if(typeof text==="string"){text=scope.splitTextToSize(text,maxWidth);}else if(Object.prototype.toString.call(text)==="[object Array]"){text=text.reduce(function(acc,textLine){return acc.concat(scope.splitTextToSize(textLine,maxWidth));},[]);}}//creating Payload-Object to make text byRef
229499
229730
  payload={text:text,x:x,y:y,options:options,mutex:{pdfEscape:pdfEscape,activeFontKey:activeFontKey,fonts:fonts,activeFontSize:activeFontSize}};events.publish("preProcessText",payload);text=payload.text;options=payload.options;//angle
229500
229731
  angle=options.angle;if(transformationMatrix instanceof Matrix===false&&angle&&typeof angle==="number"){angle*=Math.PI/180;if(options.rotationDirection===0){angle=-angle;}if(apiMode===ApiMode.ADVANCED){angle=-angle;}var c=Math.cos(angle);var s=Math.sin(angle);transformationMatrix=new Matrix(c,s,-s,c,0,0);}else if(angle&&angle instanceof Matrix){transformationMatrix=angle;}if(apiMode===ApiMode.ADVANCED&&!transformationMatrix){transformationMatrix=identityMatrix;}//charSpace
229501
- charSpace=options.charSpace||activeCharSpace;if(typeof charSpace!=="undefined"){xtra+=hpf(scale(charSpace))+" Tc\n";this.setCharSpace(this.getCharSpace()||0);}//lang
229732
+ charSpace=options.charSpace||activeCharSpace;if(typeof charSpace!=="undefined"){xtra+=hpf(scale(charSpace))+" Tc\n";this.setCharSpace(this.getCharSpace()||0);}horizontalScale=options.horizontalScale;if(typeof horizontalScale!=="undefined"){xtra+=hpf(horizontalScale*100)+" Tz\n";}//lang
229502
229733
  var lang=options.lang;var renderingMode=-1;var parmRenderingMode=typeof options.renderingMode!=="undefined"?options.renderingMode:options.stroke;var pageContext=scope.internal.getCurrentPageInfo().pageContext;switch(parmRenderingMode){case 0:case false:case"fill":renderingMode=0;break;case 1:case true:case"stroke":renderingMode=1;break;case 2:case"fillThenStroke":renderingMode=2;break;case 3:case"invisible":renderingMode=3;break;case 4:case"fillAndAddForClipping":renderingMode=4;break;case 5:case"strokeAndAddPathForClipping":renderingMode=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":renderingMode=6;break;case 7:case"addToPathForClipping":renderingMode=7;break;}var usedRenderingMode=typeof pageContext.usedRenderingMode!=="undefined"?pageContext.usedRenderingMode:-1;//if the coder wrote it explicitly to use a specific
229503
229734
  //renderingMode, then use it
229504
229735
  if(renderingMode!==-1){xtra+=renderingMode+" Tr\n";//otherwise check if we used the rendering Mode already
@@ -229894,6 +230125,14 @@ curveTo(x2,y2,x3,y3,x4,y4);}}if(closed){close();}putStyle(style);return this;};/
229894
230125
  */API.addFont=function(postScriptName,fontName,fontStyle,fontWeight,encoding){var encodingOptions=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];if(arguments[3]&&encodingOptions.indexOf(arguments[3])!==-1){//IE 11 fix
229895
230126
  encoding=arguments[3];}else if(arguments[3]&&encodingOptions.indexOf(arguments[3])==-1){fontStyle=combineFontStyleAndFontWeight(fontStyle,fontWeight);}encoding=encoding||"Identity-H";return addFont.call(this,postScriptName,fontName,fontStyle,encoding);};var lineWidth=options.lineWidth||0.200025;// 2mm
229896
230127
  /**
230128
+ * Gets the line width, default: 0.200025.
230129
+ *
230130
+ * @function
230131
+ * @instance
230132
+ * @returns {number} lineWidth
230133
+ * @memberof jsPDF#
230134
+ * @name getLineWidth
230135
+ */var getLineWidth=API.__private__.getLineWidth=API.getLineWidth=function(){return lineWidth;};/**
229897
230136
  * Sets line width for upcoming lines.
229898
230137
  *
229899
230138
  * @param {number} width Line width (in units declared at inception of PDF document).
@@ -229902,7 +230141,7 @@ encoding=arguments[3];}else if(arguments[3]&&encodingOptions.indexOf(arguments[3
229902
230141
  * @returns {jsPDF}
229903
230142
  * @memberof jsPDF#
229904
230143
  * @name setLineWidth
229905
- */var setLineWidth=API.__private__.setLineWidth=API.setLineWidth=function(width){out(hpf(scale(width))+" w");return this;};/**
230144
+ */var setLineWidth=API.__private__.setLineWidth=API.setLineWidth=function(width){lineWidth=width;out(hpf(scale(width))+" w");return this;};/**
229906
230145
  * Sets the dash pattern for upcoming lines.
229907
230146
  *
229908
230147
  * To reset the settings simply call the method without any parameters.
@@ -230273,7 +230512,7 @@ eventname=newEvents[i][0];handler_and_args=newEvents[i][1];events.subscribe.appl
230273
230512
  * Object exposing internal API to plugins
230274
230513
  * @public
230275
230514
  * @ignore
230276
- */API.internal={pdfEscape:pdfEscape,getStyle:getStyle,getFont:getFontEntry,getFontSize:getFontSize,getCharSpace:getCharSpace,getTextColor:getTextColor,getLineHeight:getLineHeight,getLineHeightFactor:getLineHeightFactor,write:write,getHorizontalCoordinate:getHorizontalCoordinate,getVerticalCoordinate:getVerticalCoordinate,getCoordinateString:getHorizontalCoordinateString,getVerticalCoordinateString:getVerticalCoordinateString,collections:{},newObject:newObject,newAdditionalObject:newAdditionalObject,newObjectDeferred:newObjectDeferred,newObjectDeferredBegin:newObjectDeferredBegin,getFilters:getFilters,putStream:putStream,events:events,scaleFactor:scaleFactor,pageSize:{getWidth:function getWidth(){return getPageWidth(currentPage);},setWidth:function setWidth(value){setPageWidth(currentPage,value);},getHeight:function getHeight(){return getPageHeight(currentPage);},setHeight:function setHeight(value){setPageHeight(currentPage,value);}},encryptionOptions:encryptionOptions,encryption:encryption,getEncryptor:getEncryptor,output:output,getNumberOfPages:getNumberOfPages,pages:pages,out:out,f2:f2,f3:f3,getPageInfo:getPageInfo,getPageInfoByObjId:getPageInfoByObjId,getCurrentPageInfo:getCurrentPageInfo,getPDFVersion:getPdfVersion,Point:Point,Rectangle:Rectangle,Matrix:Matrix,hasHotfix:hasHotfix//Expose the hasHotfix check so plugins can also check them.
230515
+ */API.internal={pdfEscape:pdfEscape,getStyle:getStyle,getFont:getFontEntry,getFontSize:getFontSize,getCharSpace:getCharSpace,getTextColor:getTextColor,getLineHeight:getLineHeight,getLineHeightFactor:getLineHeightFactor,getLineWidth:getLineWidth,write:write,getHorizontalCoordinate:getHorizontalCoordinate,getVerticalCoordinate:getVerticalCoordinate,getCoordinateString:getHorizontalCoordinateString,getVerticalCoordinateString:getVerticalCoordinateString,collections:{},newObject:newObject,newAdditionalObject:newAdditionalObject,newObjectDeferred:newObjectDeferred,newObjectDeferredBegin:newObjectDeferredBegin,getFilters:getFilters,putStream:putStream,events:events,scaleFactor:scaleFactor,pageSize:{getWidth:function getWidth(){return getPageWidth(currentPage);},setWidth:function setWidth(value){setPageWidth(currentPage,value);},getHeight:function getHeight(){return getPageHeight(currentPage);},setHeight:function setHeight(value){setPageHeight(currentPage,value);}},encryptionOptions:encryptionOptions,encryption:encryption,getEncryptor:getEncryptor,output:output,getNumberOfPages:getNumberOfPages,pages:pages,out:out,f2:f2,f3:f3,getPageInfo:getPageInfo,getPageInfoByObjId:getPageInfoByObjId,getCurrentPageInfo:getCurrentPageInfo,getPDFVersion:getPdfVersion,Point:Point,Rectangle:Rectangle,Matrix:Matrix,hasHotfix:hasHotfix//Expose the hasHotfix check so plugins can also check them.
230277
230516
  };Object.defineProperty(API.internal.pageSize,"width",{get:function get(){return getPageWidth(currentPage);},set:function set(value){setPageWidth(currentPage,value);},enumerable:true,configurable:true});Object.defineProperty(API.internal.pageSize,"height",{get:function get(){return getPageHeight(currentPage);},set:function set(value){setPageHeight(currentPage,value);},enumerable:true,configurable:true});//////////////////////////////////////////////////////
230278
230517
  // continuing initialization of jsPDF Document object
230279
230518
  //////////////////////////////////////////////////////
@@ -230305,7 +230544,7 @@ addFonts.call(API,standardFonts);activeFontKey="F1";_addPage(format,orientation)
230305
230544
  * @name version
230306
230545
  * @type {string}
230307
230546
  * @memberof jsPDF#
230308
- */jsPDF.version="2.4.0";var jsPDFAPI=jsPDF.API;var scaleFactor=1;var pdfEscape=function pdfEscape(value){return value.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)");};var pdfUnescape=function pdfUnescape(value){return value.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")");};var f2=function f2(number){return number.toFixed(2);// Ie, %.2f
230547
+ */jsPDF.version="2.5.1";var jsPDFAPI=jsPDF.API;var scaleFactor=1;var pdfEscape=function pdfEscape(value){return value.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)");};var pdfUnescape=function pdfUnescape(value){return value.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")");};var f2=function f2(number){return number.toFixed(2);// Ie, %.2f
230309
230548
  };var f5=function f5(number){return number.toFixed(5);// Ie, %.2f
230310
230549
  };jsPDFAPI.__acroform__={};var inherit=function inherit(child,parent){child.prototype=Object.create(parent.prototype);child.prototype.constructor=child;};var scale=function scale(x){return x*scaleFactor;};var createFormXObject=function createFormXObject(formObject){var xobj=new AcroFormXObject();var height=AcroFormAppearance.internal.getHeight(formObject)||0;var width=AcroFormAppearance.internal.getWidth(formObject)||0;xobj.BBox=[0,0,Number(f2(width)),Number(f2(height))];return xobj;};/**
230311
230550
  * Bit-Operations
@@ -230962,7 +231201,8 @@ var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=argu
230962
231201
  var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
230963
231202
  compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
230964
231203
  // if(posY) y += posY;
230965
- initialize.call(this);var image=processImageData.call(this,imageData,format,alias,compression);writeImageToPDF.call(this,x,y,w,h,image,rotation);return this;};var processImageData=function processImageData(imageData,format,alias,compression){var result,dataAsBinaryString;var exifdata=imageData.exifdata;if(typeof imageData==="string"&&getImageFileTypeByImageData(imageData)===UNKNOWN){imageData=unescape(imageData);var tmpImageData=convertBase64ToBinaryString(imageData,false);if(tmpImageData!==""){imageData=tmpImageData;}else{tmpImageData=jsPDFAPI.loadFile(imageData,true);if(tmpImageData!==undefined){imageData=tmpImageData;}}}if(isDOMElement(imageData)){imageData=getImageDataFromElement(imageData,format);}format=getImageFileTypeByImageData(imageData,format);if(!isImageTypeSupported(format)){throw new Error("addImage does not support files of type '"+format+"', please ensure that a plugin for '"+format+"' support is added.");}// now do the heavy lifting
231204
+ initialize.call(this);var image=processImageData.call(this,imageData,format,alias,compression);writeImageToPDF.call(this,x,y,w,h,image,rotation);return this;};var processImageData=function processImageData(imageData,format,alias,compression){var result,dataAsBinaryString;// 自定义修改 处理图片自带的exif信息(旋转角度)
231205
+ var exifdata=imageData.exifdata;if(typeof imageData==="string"&&getImageFileTypeByImageData(imageData)===UNKNOWN){imageData=unescape(imageData);var tmpImageData=convertBase64ToBinaryString(imageData,false);if(tmpImageData!==""){imageData=tmpImageData;}else{tmpImageData=jsPDFAPI.loadFile(imageData,true);if(tmpImageData!==undefined){imageData=tmpImageData;}}}if(isDOMElement(imageData)){imageData=getImageDataFromElement(imageData,format);}format=getImageFileTypeByImageData(imageData,format);if(!isImageTypeSupported(format)){throw new Error("addImage does not support files of type '"+format+"', please ensure that a plugin for '"+format+"' support is added.");}// now do the heavy lifting
230966
231206
  if(notDefined(alias)){alias=generateAliasFromImageData(imageData);}result=checkImagesForAlias.call(this,alias);if(!result){if(supportsArrayBuffer()){// no need to convert if imageData is already uint8array
230967
231207
  if(!(imageData instanceof Uint8Array)&&format!=="RGBA"){dataAsBinaryString=imageData;imageData=binaryStringToUint8Array(imageData);}}result=this["process"+format.toUpperCase()](imageData,getImageIndex.call(this),alias,checkCompressValue(compression),dataAsBinaryString);}if(!result){throw new Error("An unknown error occurred whilst processing the image.");}result.exifdata=exifdata;return result;};/**
230968
231208
  * @name convertBase64ToBinaryString
@@ -231575,7 +231815,9 @@ Context2D.prototype.arcTo=function(x1,y1,x2,y2,radius){throw new Error("arcTo no
231575
231815
  * @param w {Number} The width of the rectangle, in pixels
231576
231816
  * @param h {Number} The height of the rectangle, in pixels
231577
231817
  * @description The rect() method creates a rectangle.
231578
- */Context2D.prototype.rect=function(x,y,w,h){if(isNaN(x)||isNaN(y)||isNaN(w)||isNaN(h)){jspdf_console.error("jsPDF.context2d.rect: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.rect");}this.moveTo(x,y);this.lineTo(x+w,y);this.lineTo(x+w,y+h);this.lineTo(x,y+h);this.lineTo(x,y);this.lineTo(x+w,y);this.lineTo(x,y);};/**
231818
+ */Context2D.prototype.rect=function(x,y,w,h){if(isNaN(x)||isNaN(y)||isNaN(w)||isNaN(h)){jspdf_console.error("jsPDF.context2d.rect: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.rect");}this.moveTo(x,y);this.lineTo(x+w,y);this.lineTo(x+w,y+h);this.lineTo(x,y+h);this.lineTo(x,y);// this.lineTo(x + w, y);
231819
+ // this.lineTo(x, y);
231820
+ };/**
231579
231821
  * Draws a "filled" rectangle
231580
231822
  *
231581
231823
  * @name fillRect
@@ -231713,26 +231955,7 @@ putText.call(this,{text:text,x:x,y:y,scale:scale,renderingMode:"stroke",angle:de
231713
231955
  * @param e {Number} Horizontal moving
231714
231956
  * @param f {Number} Vertical moving
231715
231957
  * @description Each object on the canvas has a current transformation matrix.<br /><br />The transform() method replaces the current transformation matrix. It multiplies the current transformation matrix with the matrix described by:<br /><br /><br /><br />a c e<br /><br />b d f<br /><br />0 0 1<br /><br />In other words, the transform() method lets you scale, rotate, move, and skew the current context.
231716
- */Context2D.prototype.transform=function(a,b,c,d,e,f){if(isNaN(a)||isNaN(b)||isNaN(c)||isNaN(d)||isNaN(e)||isNaN(f)){jspdf_console.error("jsPDF.context2d.transform: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.transform");}// console.log("开始变换",a,b,c,d,e,f);
231717
- // if (isNaN(a)){
231718
- // a=0;
231719
- // }
231720
- // if (isNaN(b)){
231721
- // b=0;
231722
- // }
231723
- // if (isNaN(c)){
231724
- // d=0;
231725
- // }
231726
- // if (isNaN(d)){
231727
- // d=0;
231728
- // }
231729
- // if (isNaN(e)){
231730
- // e=0;
231731
- // }
231732
- // if (isNaN(f)){
231733
- // f=0;
231734
- // }
231735
- // 自定义修改 处理打印图片报错
231958
+ */Context2D.prototype.transform=function(a,b,c,d,e,f){if(isNaN(a)||isNaN(b)||isNaN(c)||isNaN(d)||isNaN(e)||isNaN(f)){jspdf_console.error("jsPDF.context2d.transform: Invalid arguments",arguments);throw new Error("Invalid arguments passed to jsPDF.context2d.transform");}// 自定义修改 处理打印图片报错
231736
231959
  a=isNaN(a)?1:a;b=isNaN(b)?0:b;c=isNaN(c)?0:c;d=isNaN(d)?1:d;e=isNaN(e)?0:e;f=isNaN(f)?0:f;var matrix=new Matrix(a,b,c,d,e,f);this.ctx.transform=this.ctx.transform.multiply(matrix);// console.log("this.transform值",this.ctx.transform);
231737
231960
  };/**
231738
231961
  * Resets the current transform to the identity matrix. Then runs transform()
@@ -231759,7 +231982,8 @@ a=isNaN(a)?1:a;b=isNaN(b)?0:b;c=isNaN(c)?0:c;d=isNaN(d)?1:d;e=isNaN(e)?0:e;f=isN
231759
231982
  * @param y {Number} The y coordinate where to place the image on the canvas
231760
231983
  * @param width {Number} Optional. The width of the image to use (stretch or reduce the image)
231761
231984
  * @param height {Number} Optional. The height of the image to use (stretch or reduce the image)
231762
- */Context2D.prototype.drawImage=function(img,sx,sy,swidth,sheight,x,y,width,height){var imageProperties=this.pdf.getImageProperties(img);if(img.exifdata){imageProperties.exifdata=img.exifdata;}var factorX=1;var factorY=1;var clipFactorX=1;var clipFactorY=1;if(typeof swidth!=="undefined"&&typeof width!=="undefined"){clipFactorX=width/swidth;clipFactorY=height/sheight;factorX=imageProperties.width/swidth*width/swidth;factorY=imageProperties.height/sheight*height/sheight;}//is sx and sy are set and x and y not, set x and y with values of sx and sy
231985
+ */Context2D.prototype.drawImage=function(img,sx,sy,swidth,sheight,x,y,width,height){var imageProperties=this.pdf.getImageProperties(img);// 自定义修改 设置exif信息
231986
+ if(img.exifdata){imageProperties.exifdata=img.exifdata;}var factorX=1;var factorY=1;var clipFactorX=1;var clipFactorY=1;if(typeof swidth!=="undefined"&&typeof width!=="undefined"){clipFactorX=width/swidth;clipFactorY=height/sheight;factorX=imageProperties.width/swidth*width/swidth;factorY=imageProperties.height/sheight*height/sheight;}//is sx and sy are set and x and y not, set x and y with values of sx and sy
231763
231987
  if(typeof x==="undefined"){x=sx;y=sy;sx=0;sy=0;}if(typeof swidth!=="undefined"&&typeof width==="undefined"){width=swidth;height=sheight;}if(typeof swidth==="undefined"&&typeof width==="undefined"){width=imageProperties.width;height=imageProperties.height;}var decomposedTransformationMatrix=this.ctx.transform.decompose();// console.log("transform.decompose",decomposedTransformationMatrix.scale);
231764
231988
  // 自定义修改 修复图片旋转角度错误问题
231765
231989
  var angle=rad2deg(decomposedTransformationMatrix.rotate.rotation);var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);if(!swidth){swidth=width;}if(!sheight){sheight=height;}var xRect;// 自定义修改 处理签名图片打印和普通图片打印
@@ -231774,7 +231998,15 @@ this.pdf.addImage(img,"JPEG",xRect.x+this.posX,xRect.y+this.posY,xRect.w,xRect.h
231774
231998
  * @private
231775
231999
  * @ignore
231776
232000
  */var drawPaths=function drawPaths(rule,isClip){if(rule==="stroke"&&!isClip&&isStrokeTransparent.call(this)){return;}if(rule!=="stroke"&&!isClip&&isFillTransparent.call(this)){return;}var moves=[];//var alpha = (this.ctx.fillOpacity < 1) ? this.ctx.fillOpacity : this.ctx.globalAlpha;
231777
- var delta;var xPath=this.path;for(var i=0;i<xPath.length;i++){var pt=xPath[i];switch(pt.type){case"begin":moves.push({begin:true});break;case"close":moves.push({close:true});break;case"mt":moves.push({start:pt,deltas:[],abs:[]});break;case"lt":var iii=moves.length;if(!isNaN(xPath[i-1].x)){delta=[pt.x-xPath[i-1].x,pt.y-xPath[i-1].y];if(iii>0){for(iii;iii>=0;iii--){if(moves[iii-1].close!==true&&moves[iii-1].begin!==true){moves[iii-1].deltas.push(delta);moves[iii-1].abs.push(pt);break;}}}}break;case"bct":delta=[pt.x1-xPath[i-1].x,pt.y1-xPath[i-1].y,pt.x2-xPath[i-1].x,pt.y2-xPath[i-1].y,pt.x-xPath[i-1].x,pt.y-xPath[i-1].y];moves[moves.length-1].deltas.push(delta);break;case"qct":var x1=xPath[i-1].x+2.0/3.0*(pt.x1-xPath[i-1].x);var y1=xPath[i-1].y+2.0/3.0*(pt.y1-xPath[i-1].y);var x2=pt.x+2.0/3.0*(pt.x1-pt.x);var y2=pt.y+2.0/3.0*(pt.y1-pt.y);var x3=pt.x;var y3=pt.y;delta=[x1-xPath[i-1].x,y1-xPath[i-1].y,x2-xPath[i-1].x,y2-xPath[i-1].y,x3-xPath[i-1].x,y3-xPath[i-1].y];moves[moves.length-1].deltas.push(delta);break;case"arc":moves.push({deltas:[],abs:[],arc:true});if(Array.isArray(moves[moves.length-1].abs)){moves[moves.length-1].abs.push(pt);}break;}}var style;if(!isClip){if(rule==="stroke"){style="stroke";}else{style="fill";}}else{style=null;}for(var k=0;k<moves.length;k++){if(moves[k].arc){var arcs=moves[k].abs;for(var ii=0;ii<arcs.length;ii++){var arc=arcs[ii];if(arc.type==="arc"){drawArc.call(this,arc.x,arc.y,arc.radius,arc.startAngle,arc.endAngle,arc.counterclockwise,undefined,isClip);}else{drawLine.call(this,arc.x,arc.y);}}putStyle.call(this,style);this.pdf.internal.out("h");}if(!moves[k].arc){if(moves[k].close!==true&&moves[k].begin!==true){var x=moves[k].start.x;var y=moves[k].start.y;drawLines.call(this,moves[k].deltas,x,y);}}}if(style){putStyle.call(this,style);}if(isClip){doClip.call(this);}};var getBaseline=function getBaseline(y){var height=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor;var descent=height*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return y-descent;case"top":return y+height-descent;case"hanging":return y+height-2*descent;case"middle":return y+height/2-descent;case"ideographic":// TODO not implemented
232001
+ var delta;var xPath=this.path;for(var i=0;i<xPath.length;i++){var pt=xPath[i];switch(pt.type){case"begin":moves.push({begin:true});break;case"close":moves.push({close:true});break;case"mt":moves.push({start:pt,deltas:[],abs:[]});break;case"lt":var iii=moves.length;if(xPath[i-1]&&!isNaN(xPath[i-1].x)){delta=[pt.x-xPath[i-1].x,pt.y-xPath[i-1].y];if(iii>0){for(iii;iii>=0;iii--){if(moves[iii-1].close!==true&&moves[iii-1].begin!==true){moves[iii-1].deltas.push(delta);moves[iii-1].abs.push(pt);break;}}}}break;case"bct":delta=[pt.x1-xPath[i-1].x,pt.y1-xPath[i-1].y,pt.x2-xPath[i-1].x,pt.y2-xPath[i-1].y,pt.x-xPath[i-1].x,pt.y-xPath[i-1].y];moves[moves.length-1].deltas.push(delta);break;case"qct":var x1=xPath[i-1].x+2.0/3.0*(pt.x1-xPath[i-1].x);var y1=xPath[i-1].y+2.0/3.0*(pt.y1-xPath[i-1].y);var x2=pt.x+2.0/3.0*(pt.x1-pt.x);var y2=pt.y+2.0/3.0*(pt.y1-pt.y);var x3=pt.x;var y3=pt.y;delta=[x1-xPath[i-1].x,y1-xPath[i-1].y,x2-xPath[i-1].x,y2-xPath[i-1].y,x3-xPath[i-1].x,y3-xPath[i-1].y];moves[moves.length-1].deltas.push(delta);break;case"arc":moves.push({deltas:[],abs:[],arc:true});if(Array.isArray(moves[moves.length-1].abs)){moves[moves.length-1].abs.push(pt);}break;}}var style;if(!isClip){if(rule==="stroke"){style="stroke";}else{style="fill";}}else{style=null;}var began=false;for(var k=0;k<moves.length;k++){if(moves[k].arc){var arcs=moves[k].abs;for(var ii=0;ii<arcs.length;ii++){var arc=arcs[ii];if(arc.type==="arc"){drawArc.call(this,arc.x,arc.y,arc.radius,arc.startAngle,arc.endAngle,arc.counterclockwise,undefined,isClip,!began);}else{drawLine.call(this,arc.x,arc.y);}}// putStyle.call(this, style);
232002
+ began=true;}else if(moves[k].close===true){this.pdf.internal.out("h");began=false;}else if(moves[k].begin!==true){var x=moves[k].start.x;var y=moves[k].start.y;drawLines.call(this,moves[k].deltas,x,y);began=true;}// if (!moves[k].arc) {
232003
+ // if (moves[k].close !== true && moves[k].begin !== true) {
232004
+ // var x = moves[k].start.x;
232005
+ // var y = moves[k].start.y;
232006
+ // drawLines.call(this, moves[k].deltas, x, y);
232007
+ // }
232008
+ // }
232009
+ }if(style){putStyle.call(this,style);}if(isClip){doClip.call(this);}};var getBaseline=function getBaseline(y){var height=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor;var descent=height*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return y-descent;case"top":return y+height-descent;case"hanging":return y+height-2*descent;case"middle":return y+height/2-descent;case"ideographic":// TODO not implemented
231778
232010
  return y;case"alphabetic":default:return y;}};var getTextBottom=function getTextBottom(yBaseLine){var height=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor;var descent=height*(this.pdf.internal.getLineHeightFactor()-1);return yBaseLine+descent;};Context2D.prototype.createLinearGradient=function createLinearGradient(){var canvasGradient=function canvasGradient(){};canvasGradient.colorStops=[];canvasGradient.addColorStop=function(offset,color){this.colorStops.push([offset,color]);};canvasGradient.getColor=function(){if(this.colorStops.length===0){return"#000000";}return this.colorStops[0][1];};canvasGradient.isCanvasGradient=true;return canvasGradient;};Context2D.prototype.createPattern=function createPattern(){return this.createLinearGradient();};Context2D.prototype.createRadialGradient=function createRadialGradient(){return this.createLinearGradient();};/**
231779
232011
  *
231780
232012
  * @param x Edge point X
@@ -231785,7 +232017,9 @@ return y;case"alphabetic":default:return y;}};var getTextBottom=function getText
231785
232017
  * @param counterclockwise
231786
232018
  * @param style
231787
232019
  * @param isClip
231788
- */var drawArc=function drawArc(x,y,r,a1,a2,counterclockwise,style,isClip){var curves=createArc.call(this,r,a1,a2,counterclockwise);for(var i=0;i<curves.length;i++){var curve=curves[i];if(i===0){doMove.call(this,curve.x1+x,curve.y1+y);}drawCurve.call(this,x,y,curve.x2,curve.y2,curve.x3,curve.y3,curve.x4,curve.y4);}if(!isClip){putStyle.call(this,style);}else{doClip.call(this);}};var putStyle=function putStyle(style){switch(style){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f");break;}};var doClip=function doClip(){this.pdf.clip();this.pdf.discardPath();};var doMove=function doMove(x,y){this.pdf.internal.out(getHorizontalCoordinateString(x)+" "+getVerticalCoordinateString(y)+" m");};var putText=function putText(options){var textAlign;switch(options.align){case"right":case"end":textAlign="right";break;case"center":textAlign="center";break;case"left":case"start":default:textAlign="left";break;}var textDimensions=this.pdf.getTextDimensions(options.text);var yBaseLine=getBaseline.call(this,options.y);var yBottom=getTextBottom.call(this,yBaseLine);var yTop=yBottom-textDimensions.h;var pt=this.ctx.transform.applyToPoint(new Point(options.x,yBaseLine));var decomposedTransformationMatrix=this.ctx.transform.decompose();var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);var baselineRect=this.ctx.transform.applyToRectangle(new Rectangle(options.x,yBaseLine,textDimensions.w,textDimensions.h));var textBounds=matrix.applyToRectangle(new Rectangle(options.x,yTop,textDimensions.w,textDimensions.h));var pageArray=getPagesByPath.call(this,textBounds);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath,oldSize,oldLineWidth;options.text=options.text.replace(/[\t]/g,' ');// 自定义修改 修复打印不了tab键的问题
232020
+ */var drawArc=function drawArc(x,y,r,a1,a2,counterclockwise,style,isClip,includeMove){// http://hansmuller-flex.blogspot.com/2011/10/more-about-approximating-circular-arcs.html
232021
+ var curves=createArc.call(this,r,a1,a2,counterclockwise);for(var i=0;i<curves.length;i++){var curve=curves[i];if(i===0){// doMove.call(this, curve.x1 + x, curve.y1 + y);
232022
+ if(includeMove){doMove.call(this,curve.x1+x,curve.y1+y);}else{drawLine.call(this,curve.x1+x,curve.y1+y);}}drawCurve.call(this,x,y,curve.x2,curve.y2,curve.x3,curve.y3,curve.x4,curve.y4);}if(!isClip){putStyle.call(this,style);}else{doClip.call(this);}};var putStyle=function putStyle(style){switch(style){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f");break;}};var doClip=function doClip(){this.pdf.clip();this.pdf.discardPath();};var doMove=function doMove(x,y){this.pdf.internal.out(getHorizontalCoordinateString(x)+" "+getVerticalCoordinateString(y)+" m");};var putText=function putText(options){var textAlign;switch(options.align){case"right":case"end":textAlign="right";break;case"center":textAlign="center";break;case"left":case"start":default:textAlign="left";break;}var textDimensions=this.pdf.getTextDimensions(options.text);var yBaseLine=getBaseline.call(this,options.y);var yBottom=getTextBottom.call(this,yBaseLine);var yTop=yBottom-textDimensions.h;var pt=this.ctx.transform.applyToPoint(new Point(options.x,yBaseLine));var decomposedTransformationMatrix=this.ctx.transform.decompose();var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);var baselineRect=this.ctx.transform.applyToRectangle(new Rectangle(options.x,yBaseLine,textDimensions.w,textDimensions.h));var textBounds=matrix.applyToRectangle(new Rectangle(options.x,yTop,textDimensions.w,textDimensions.h));var pageArray=getPagesByPath.call(this,textBounds);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath,oldSize,oldLineWidth;options.text=options.text.replace(/[\t]/g,' ');// 自定义修改 修复打印不了tab键的问题
231789
232023
  if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var i=min;i<max+1;i++){this.pdf.setPage(i);var topMargin=i===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusBottomMargin=this.pdf.internal.pageSize.height-this.margin[2];var pageHeightMinusMargins=pageHeightMinusBottomMargin-this.margin[0];var pageWidthMinusRightMargin=this.pdf.internal.pageSize.width-this.margin[1];var pageWidthMinusMargins=pageWidthMinusRightMargin-this.margin[3];var previousPageHeightSum=i===1?0:firstPageHeight+(i-2)*pageHeightMinusMargins;var acharSpace=options.charSpace?parseFloat(options.charSpace):0.0;//自定义修改
231790
232024
  if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-1*previousPageHeightSum+topMargin);drawPaths.call(this,"fill",true);this.path=tmpPaths;}var textBoundsOnPage=pathPositionRedo([JSON.parse(JSON.stringify(textBounds))],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];if(options.scale>=0.01){oldSize=this.pdf.internal.getFontSize();this.pdf.setFontSize(oldSize*options.scale);oldLineWidth=this.lineWidth;this.lineWidth=oldLineWidth*options.scale;}var doSlice=this.autoPaging!=="text";if(doSlice||textBoundsOnPage.y+textBoundsOnPage.h<=pageHeightMinusBottomMargin){if(doSlice||textBoundsOnPage.y>=topMargin&&textBoundsOnPage.x<=pageWidthMinusRightMargin){var croppedText=doSlice?options.text:this.pdf.splitTextToSize(options.text,options.maxWidth||pageWidthMinusRightMargin-textBoundsOnPage.x)[0];var baseLineRectOnPage=pathPositionRedo([JSON.parse(JSON.stringify(baselineRect))],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];var needsClipping=doSlice&&(i>min||i<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}this.pdf.text(croppedText,baseLineRectOnPage.x,baseLineRectOnPage.y,{angle:options.angle,align:textAlign,renderingMode:options.renderingMode,charSpace:acharSpace// 自定义修改
231791
232025
  });if(needsClipping){this.pdf.restoreGraphicsState();}}}else{// This text is the last element of the page, but it got cut off due to the margin
@@ -231958,7 +232192,7 @@ var options=Object.assign({},this.opt.html2canvas);delete options.onrendered;ret
231958
232192
  var onRendered=this.opt.html2canvas.onrendered||function(){};onRendered(canvas);this.prop.canvas=canvas;document.body.removeChild(this.prop.overlay);});};Worker.prototype.toContext2d=function toContext2d(){// Set up function prerequisites.
231959
232193
  var prereqs=[function checkContainer(){return document.body.contains(this.prop.container)||this.toContainer();}];// Fulfill prereqs then create the canvas.
231960
232194
  return this.thenList(prereqs).then(loadHtml2Canvas).then(function toContext2d_main(html2canvas){// Handle old-fashioned 'onrendered' argument.
231961
- var pdf=this.opt.jsPDF;var fontFaces=this.opt.fontFaces;var scale=typeof this.opt.width==="number"&&!isNaN(this.opt.width)&&typeof this.opt.windowWidth==="number"&&!isNaN(this.opt.windowWidth)?this.opt.width/this.opt.windowWidth:1;var options=Object.assign({async:true,allowTaint:true,scale:scale,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15000,logging:true,proxy:null,removeContainer:true,foreignObjectRendering:false,useCORS:false},this.opt.html2canvas);delete options.onrendered;pdf.context2d.autoPaging=typeof this.opt.autoPaging==="undefined"?true:this.opt.autoPaging;pdf.context2d.posX=this.opt.x;pdf.context2d.posY=this.opt.y;pdf.context2d.margin=this.opt.margin;pdf.context2d.fontFaces=fontFaces;if(fontFaces){for(var i=0;i<fontFaces.length;++i){var font=fontFaces[i];var src=font.src.find(function(src){return src.format==="truetype";});if(src){pdf.addFont(src.url,font.ref.name,font.ref.style);}}}options.windowHeight=options.windowHeight||0;options.windowHeight=options.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):options.windowHeight;return html2canvas(this.prop.container,options);}).then(function toContext2d_post(canvas){// Handle old-fashioned 'onrendered' argument.
232195
+ var pdf=this.opt.jsPDF;var fontFaces=this.opt.fontFaces;var scale=typeof this.opt.width==="number"&&!isNaN(this.opt.width)&&typeof this.opt.windowWidth==="number"&&!isNaN(this.opt.windowWidth)?this.opt.width/this.opt.windowWidth:1;var options=Object.assign({async:true,allowTaint:true,scale:scale,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15000,logging:true,proxy:null,removeContainer:true,foreignObjectRendering:false,useCORS:false},this.opt.html2canvas);delete options.onrendered;pdf.context2d.autoPaging=typeof this.opt.autoPaging==="undefined"?true:this.opt.autoPaging;pdf.context2d.posX=this.opt.x;pdf.context2d.posY=this.opt.y;pdf.context2d.margin=this.opt.margin;pdf.context2d.fontFaces=fontFaces;if(fontFaces){for(var i=0;i<fontFaces.length;++i){var font=fontFaces[i];var src=font.src.find(function(src){return src.format==="truetype";});if(src){pdf.addFont(src.url,font.ref.name,font.ref.style);}}}options.windowHeight=options.windowHeight||0;options.windowHeight=options.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):options.windowHeight;return html2canvas(this.prop.container,options);}).then(function toContext2d_post(canvas){this.opt.jsPDF.context2d.restore(true);// Handle old-fashioned 'onrendered' argument.
231962
232196
  var onRendered=this.opt.html2canvas.onrendered||function(){};onRendered(canvas);this.prop.canvas=canvas;document.body.removeChild(this.prop.overlay);});};Worker.prototype.toImg=function toImg(){// Set up function prerequisites.
231963
232197
  var prereqs=[function checkCanvas(){return this.prop.canvas||this.toCanvas();}];// Fulfill prereqs then create the image.
231964
232198
  return this.thenList(prereqs).then(function toImg_main(){var imgData=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img");this.prop.img.src=imgData;});};Worker.prototype.toPdf=function toPdf(){// Set up function prerequisites.
@@ -232701,7 +232935,8 @@ var rgbOut=new Uint8Array(length/4*3);var alphaOut=new Uint8Array(length/4);var
232701
232935
  * @param {Object} options
232702
232936
  * @returns {Array}
232703
232937
  */var getCharWidthsArray=API.getCharWidthsArray=function(text,options){options=options||{};var activeFont=options.font||this.internal.getFont();var fontSize=options.fontSize||this.internal.getFontSize();var charSpace=options.charSpace||this.internal.getCharSpace();var widths=options.widths?options.widths:activeFont.metadata.Unicode.widths;var widthsFractionOf=widths.fof?widths.fof:1;var kerning=options.kerning?options.kerning:activeFont.metadata.Unicode.kerning;var kerningFractionOf=kerning.fof?kerning.fof:1;var doKerning=options.doKerning===false?false:true;var kerningValue=0;var i;var length=text.length;var char_code;var prior_char_code=0;//for kerning
232704
- var default_char_width=widths[0]||widthsFractionOf;var output=[];for(i=0;i<length;i++){char_code=text.charCodeAt(i);if(typeof activeFont.metadata.widthOfString==="function"){output.push((activeFont.metadata.widthOfGlyph(activeFont.metadata.characterToGlyph(char_code))+charSpace*(1000/fontSize)||0)/1000);}else{if(doKerning&&(0,esm_typeof/* default */.Z)(kerning[char_code])==="object"&&!isNaN(parseInt(kerning[char_code][prior_char_code],10))){kerningValue=kerning[char_code][prior_char_code]/kerningFractionOf;}else{kerningValue=0;}output.push((widths[char_code]||default_char_width)/widthsFractionOf+kerningValue);}prior_char_code=char_code;}return output;};/**
232938
+ var default_char_width=widths[0]||widthsFractionOf;var output=[];for(i=0;i<length;i++){char_code=text.charCodeAt(i);if(typeof activeFont.metadata.widthOfString==="function"){output.push((activeFont.metadata.widthOfGlyph(activeFont.metadata.characterToGlyph(char_code))+charSpace*(1000/fontSize)||0)/1000);}else{if(doKerning&&(0,esm_typeof/* default */.Z)(kerning[char_code])==="object"&&!isNaN(parseInt(kerning[char_code][prior_char_code],10))){kerningValue=kerning[char_code][prior_char_code]/kerningFractionOf;}else{kerningValue=0;}var charSpacewidth=(charSpace*(1000/fontSize)||0)/1000*this.internal.scaleFactor;var currentCharWidth=(widths[char_code]||default_char_width)/widthsFractionOf+kerningValue;output.push(currentCharWidth+charSpacewidth);// output.push((widths[char_code] || default_char_width) / widthsFractionOf + kerningValue);
232939
+ }prior_char_code=char_code;}return output;};/**
232705
232940
  * Returns a widths of string in a given font, if the font size is set as 1 point.
232706
232941
  *
232707
232942
  * In other words, this is "proportional" value. For 1 unit of font size, the length
@@ -233053,7 +233288,8 @@ ctx.fillRect(0,0,canvas.width,canvas.height);var options={ignoreMouse:true,ignor
233053
233288
  return ar.join("");}else{t=t.toString(16);ar.push(padz[4-t.length],t);}}return ar.join("");};var toUnicodeCmap=function toUnicodeCmap(map){var code,codes,range,unicode,unicodeMap,_i,_len;unicodeMap="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange";codes=Object.keys(map).sort(function(a,b){return a-b;});range=[];for(_i=0,_len=codes.length;_i<_len;_i++){code=codes[_i];if(range.length>=100){unicodeMap+="\n"+range.length+" beginbfchar\n"+range.join("\n")+"\nendbfchar";range=[];}if(map[code]!==undefined&&map[code]!==null&&typeof map[code].toString==="function"){unicode=("0000"+map[code].toString(16)).slice(-4);code=("0000"+(+code).toString(16)).slice(-4);range.push("<"+code+"><"+unicode+">");}}if(range.length){unicodeMap+="\n"+range.length+" beginbfchar\n"+range.join("\n")+"\nendbfchar\n";}unicodeMap+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend";return unicodeMap;};var identityHFunction=function identityHFunction(options){var font=options.font;var out=options.out;var newObject=options.newObject;var putStream=options.putStream;if(font.metadata instanceof jsPDF.API.TTFFont&&font.encoding==="Identity-H"){//Tag with Identity-H
233054
233289
  var widths=font.metadata.Unicode.widths;var data=font.metadata.subset.encode(font.metadata.glyIdsUsed,1);var pdfOutput=data;var pdfOutput2="";for(var i=0;i<pdfOutput.length;i++){pdfOutput2+=String.fromCharCode(pdfOutput[i]);}var fontTable=newObject();putStream({data:pdfOutput2,addLength1:true,objectId:fontTable});out("endobj");var cmap=newObject();var cmapData=toUnicodeCmap(font.metadata.toUnicode);putStream({data:cmapData,addLength1:true,objectId:cmap});out("endobj");var fontDescriptor=newObject();out("<<");out("/Type /FontDescriptor");out("/FontName /"+toPDFName(font.fontName));out("/FontFile2 "+fontTable+" 0 R");out("/FontBBox "+jsPDF.API.PDFObject.convert(font.metadata.bbox));out("/Flags "+font.metadata.flags);out("/StemV "+font.metadata.stemV);out("/ItalicAngle "+font.metadata.italicAngle);out("/Ascent "+font.metadata.ascender);out("/Descent "+font.metadata.decender);out("/CapHeight "+font.metadata.capHeight);out(">>");out("endobj");var DescendantFont=newObject();out("<<");out("/Type /Font");out("/BaseFont /"+toPDFName(font.fontName));out("/FontDescriptor "+fontDescriptor+" 0 R");out("/W "+jsPDF.API.PDFObject.convert(widths));out("/CIDToGIDMap /Identity");out("/DW 1000");out("/Subtype /CIDFontType2");out("/CIDSystemInfo");out("<<");out("/Supplement 0");out("/Registry (Adobe)");out("/Ordering ("+font.encoding+")");out(">>");out(">>");out("endobj");font.objectNumber=newObject();out("<<");out("/Type /Font");out("/Subtype /Type0");out("/ToUnicode "+cmap+" 0 R");out("/BaseFont /"+toPDFName(font.fontName));out("/Encoding /"+font.encoding);out("/DescendantFonts ["+DescendantFont+" 0 R]");out(">>");out("endobj");font.isAlreadyPutted=true;}};jsPDFAPI.events.push(["putFont",function(args){identityHFunction(args);}]);var winAnsiEncodingFunction=function winAnsiEncodingFunction(options){var font=options.font;var out=options.out;var newObject=options.newObject;var putStream=options.putStream;if(font.metadata instanceof jsPDF.API.TTFFont&&font.encoding==="WinAnsiEncoding"){//Tag with WinAnsi encoding
233055
233290
  var data=font.metadata.rawData;var pdfOutput=data;var pdfOutput2="";for(var i=0;i<pdfOutput.length;i++){pdfOutput2+=String.fromCharCode(pdfOutput[i]);}var fontTable=newObject();putStream({data:pdfOutput2,addLength1:true,objectId:fontTable});out("endobj");var cmap=newObject();var cmapData=toUnicodeCmap(font.metadata.toUnicode);putStream({data:cmapData,addLength1:true,objectId:cmap});out("endobj");var fontDescriptor=newObject();out("<<");out("/Descent "+font.metadata.decender);out("/CapHeight "+font.metadata.capHeight);out("/StemV "+font.metadata.stemV);out("/Type /FontDescriptor");out("/FontFile2 "+fontTable+" 0 R");out("/Flags 96");out("/FontBBox "+jsPDF.API.PDFObject.convert(font.metadata.bbox));out("/FontName /"+toPDFName(font.fontName));out("/ItalicAngle "+font.metadata.italicAngle);out("/Ascent "+font.metadata.ascender);out(">>");out("endobj");font.objectNumber=newObject();for(var j=0;j<font.metadata.hmtx.widths.length;j++){font.metadata.hmtx.widths[j]=parseInt(font.metadata.hmtx.widths[j]*(1000/font.metadata.head.unitsPerEm));//Change the width of Em units to Point units.
233056
- }out("<</Subtype/TrueType/Type/Font/ToUnicode "+cmap+" 0 R/BaseFont/"+toPDFName(font.fontName)+"/FontDescriptor "+fontDescriptor+" 0 R"+"/Encoding/"+font.encoding+" /FirstChar 29 /LastChar 255 /Widths "+jsPDF.API.PDFObject.convert(font.metadata.hmtx.widths)+">>");out("endobj");font.isAlreadyPutted=true;}};jsPDFAPI.events.push(["putFont",function(args){winAnsiEncodingFunction(args);}]);var utf8TextFunction=function utf8TextFunction(args){var text=args.text||"";var x=args.x;var y=args.y;var options=args.options||{};var mutex=args.mutex||{};var pdfEscape=mutex.pdfEscape;var activeFontKey=mutex.activeFontKey;var fonts=mutex.fonts;var key=activeFontKey;var str="",s=0,cmapConfirm;var strText="";var encoding=fonts[key].encoding;if(fonts[key].encoding!=="Identity-H"){return{text:text,x:x,y:y,options:options,mutex:mutex};}strText=text;key=activeFontKey;if(Array.isArray(text)){strText=text[0];}var textArr=(0,esm_toConsumableArray/* default */.Z)(strText);for(s=0;s<textArr.length;s+=1){if(fonts[key].metadata.hasOwnProperty("cmap")){cmapConfirm=fonts[key].metadata.cmap.unicode.codeMap[textArr[s].codePointAt()];/*
233291
+ }out("<</Subtype/TrueType/Type/Font/ToUnicode "+cmap+" 0 R/BaseFont/"+toPDFName(font.fontName)+"/FontDescriptor "+fontDescriptor+" 0 R"+"/Encoding/"+font.encoding+" /FirstChar 29 /LastChar 255 /Widths "+jsPDF.API.PDFObject.convert(font.metadata.hmtx.widths)+">>");out("endobj");font.isAlreadyPutted=true;}};jsPDFAPI.events.push(["putFont",function(args){winAnsiEncodingFunction(args);}]);var utf8TextFunction=function utf8TextFunction(args){var text=args.text||"";var x=args.x;var y=args.y;var options=args.options||{};var mutex=args.mutex||{};var pdfEscape=mutex.pdfEscape;var activeFontKey=mutex.activeFontKey;var fonts=mutex.fonts;var key=activeFontKey;var str="",s=0,cmapConfirm;var strText="";var encoding=fonts[key].encoding;if(fonts[key].encoding!=="Identity-H"){return{text:text,x:x,y:y,options:options,mutex:mutex};}strText=text;key=activeFontKey;if(Array.isArray(text)){strText=text[0];}// 自定义修改 处理带生僻字的字符串解构
233292
+ var textArr=(0,esm_toConsumableArray/* default */.Z)(strText);for(s=0;s<textArr.length;s+=1){if(fonts[key].metadata.hasOwnProperty("cmap")){cmapConfirm=fonts[key].metadata.cmap.unicode.codeMap[textArr[s].codePointAt()];/*
233057
233293
  if (Object.prototype.toString.call(text) === '[object Array]') {
233058
233294
  var i = 0;
233059
233295
  // for (i = 0; i < text.length; i += 1) {
@@ -236744,6 +236980,7 @@ var commondata = __webpack_require__(76285);
236744
236980
 
236745
236981
 
236746
236982
 
236983
+
236747
236984
  /* harmony default export */ var HoDocsvue_type_script_lang_js_ = ({
236748
236985
  name: 'HoDocs',
236749
236986
  components: {
@@ -237577,6 +237814,13 @@ var commondata = __webpack_require__(76285);
237577
237814
  * 关闭弹出层
237578
237815
  */
237579
237816
  closeControlModal: function closeControlModal() {
237817
+ if (this.hoEditorProvider.controlType == "edit-image") {
237818
+ var config = HoFabricConfig/* HoFabricConfig */.G.instance();
237819
+ this.$emit("closeHoEditorModal", 'edit-image', {
237820
+ fontSize: config.fontSize,
237821
+ borderColor: config.borderColor
237822
+ });
237823
+ }
237580
237824
  this.hoEditorProvider.setControlProperty('', 'add', '');
237581
237825
  this.modalStatusObject.type = '';
237582
237826
  this.modalStatusObject.operate = '';
@@ -237781,10 +238025,10 @@ var commondata = __webpack_require__(76285);
237781
238025
  });
237782
238026
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
237783
238027
  /* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
237784
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=b6d65e5c&prod&lang=less&media=print&
238028
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=45b99f15&prod&lang=less&media=print&
237785
238029
  // extracted by mini-css-extract-plugin
237786
238030
 
237787
- ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=b6d65e5c&prod&lang=less&media=print&
238031
+ ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=45b99f15&prod&lang=less&media=print&
237788
238032
 
237789
238033
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue
237790
238034
 
@@ -239569,8 +239813,8 @@ var UpdateDocument_component = (0,componentNormalizer/* default */.Z)(
239569
239813
  )
239570
239814
 
239571
239815
  /* harmony default export */ var UpdateDocument = (UpdateDocument_component.exports);
239572
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/PageSetting.vue?vue&type=template&id=a218f044&
239573
- var PageSettingvue_type_template_id_a218f044_render = function render() {
239816
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/PageSetting.vue?vue&type=template&id=43e8d8c6&
239817
+ var PageSettingvue_type_template_id_43e8d8c6_render = function render() {
239574
239818
  var _vm = this,
239575
239819
  _c = _vm._self._c;
239576
239820
  return _c('div', {
@@ -239812,35 +240056,6 @@ var PageSettingvue_type_template_id_a218f044_render = function render() {
239812
240056
  }
239813
240057
  }, [_vm._v(_vm._s(style[0]))]);
239814
240058
  }), 1)], 1), _c('li', {
239815
- staticClass: "control-item"
239816
- }, [_c('span', {
239817
- staticClass: "label",
239818
- staticStyle: {
239819
- "width": "64px"
239820
- }
239821
- }, [_vm._v("来源(S)")]), _c('a-select', {
239822
- staticStyle: {
239823
- "width": "100%"
239824
- },
239825
- attrs: {
239826
- "getPopupContainer": function getPopupContainer(triggerNode) {
239827
- return triggerNode.parentNode;
239828
- },
239829
- "size": "small",
239830
- "placeholder": "请选择来源"
239831
- },
239832
- model: {
239833
- value: _vm.property.source,
239834
- callback: function callback($$v) {
239835
- _vm.$set(_vm.property, "source", $$v);
239836
- },
239837
- expression: "property.source"
239838
- }
239839
- }, [_c('a-select-option', {
239840
- attrs: {
239841
- "value": "0"
239842
- }
239843
- }, [_vm._v("自动选择")])], 1)], 1), _c('li', {
239844
240059
  staticClass: "control-item paper-item"
239845
240060
  }, [_c('span', {
239846
240061
  staticClass: "label",
@@ -240075,7 +240290,7 @@ var PageSettingvue_type_template_id_a218f044_render = function render() {
240075
240290
  }
240076
240291
  }, [_vm._v("取消")])], 1)])]);
240077
240292
  };
240078
- var PageSettingvue_type_template_id_a218f044_staticRenderFns = [];
240293
+ var PageSettingvue_type_template_id_43e8d8c6_staticRenderFns = [];
240079
240294
 
240080
240295
  // EXTERNAL MODULE: ./src/components/mixins/appendToBody.ts
240081
240296
  var appendToBody = __webpack_require__(95677);
@@ -240223,10 +240438,10 @@ var HoColorPicker = __webpack_require__(10306);
240223
240438
  });
240224
240439
  ;// CONCATENATED MODULE: ./src/components/toolbar/PageSetting.vue?vue&type=script&lang=js&
240225
240440
  /* harmony default export */ var toolbar_PageSettingvue_type_script_lang_js_ = (PageSettingvue_type_script_lang_js_);
240226
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/PageSetting.vue?vue&type=style&index=0&id=a218f044&prod&lang=less&
240441
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/PageSetting.vue?vue&type=style&index=0&id=43e8d8c6&prod&lang=less&
240227
240442
  // extracted by mini-css-extract-plugin
240228
240443
 
240229
- ;// CONCATENATED MODULE: ./src/components/toolbar/PageSetting.vue?vue&type=style&index=0&id=a218f044&prod&lang=less&
240444
+ ;// CONCATENATED MODULE: ./src/components/toolbar/PageSetting.vue?vue&type=style&index=0&id=43e8d8c6&prod&lang=less&
240230
240445
 
240231
240446
  ;// CONCATENATED MODULE: ./src/components/toolbar/PageSetting.vue
240232
240447
 
@@ -240239,8 +240454,8 @@ var HoColorPicker = __webpack_require__(10306);
240239
240454
 
240240
240455
  var PageSetting_component = (0,componentNormalizer/* default */.Z)(
240241
240456
  toolbar_PageSettingvue_type_script_lang_js_,
240242
- PageSettingvue_type_template_id_a218f044_render,
240243
- PageSettingvue_type_template_id_a218f044_staticRenderFns,
240457
+ PageSettingvue_type_template_id_43e8d8c6_render,
240458
+ PageSettingvue_type_template_id_43e8d8c6_staticRenderFns,
240244
240459
  false,
240245
240460
  null,
240246
240461
  null,