hoeditor-web 2.0.115 → 2.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.common.856.js +29 -10
- package/lib/hoeditor.common.js +212 -379
- package/lib/hoeditor.umd.856.js +29 -10
- package/lib/hoeditor.umd.js +212 -379
- package/lib/hoeditor.umd.min.856.js +2 -2
- package/lib/hoeditor.umd.min.js +10 -10
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -2303,7 +2303,6 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
2303
2303
|
openOtherModal: function openOtherModal(status, path) {
|
|
2304
2304
|
if (status) {
|
|
2305
2305
|
var loadedComponent = __webpack_require__(60276)("./".concat(path, ".vue")).default;
|
|
2306
|
-
console.log(loadedComponent);
|
|
2307
2306
|
if (loadedComponent) {
|
|
2308
2307
|
this.otherComponent = {
|
|
2309
2308
|
component: loadedComponent
|
|
@@ -2599,8 +2598,6 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
2599
2598
|
this.handleClose();
|
|
2600
2599
|
},
|
|
2601
2600
|
openDataSourceModal: function openDataSourceModal() {
|
|
2602
|
-
console.log(this);
|
|
2603
|
-
console.log(this.setIsDataSource);
|
|
2604
2601
|
this.setIsDataSource(true);
|
|
2605
2602
|
},
|
|
2606
2603
|
handleClose: function handleClose() {
|
|
@@ -3009,9 +3006,7 @@ var staticRenderFns = [];
|
|
|
3009
3006
|
this.textContent = this.commentValue.text;
|
|
3010
3007
|
}
|
|
3011
3008
|
},
|
|
3012
|
-
mounted: function mounted() {
|
|
3013
|
-
console.log(this.getCustomProperty());
|
|
3014
|
-
},
|
|
3009
|
+
mounted: function mounted() {},
|
|
3015
3010
|
methods: {
|
|
3016
3011
|
sure: function sure() {
|
|
3017
3012
|
var _this = this;
|
|
@@ -4093,9 +4088,9 @@ var DateTimeNode = __webpack_require__(92501);
|
|
|
4093
4088
|
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
4094
4089
|
var HOEditorFactorys = __webpack_require__(74089);
|
|
4095
4090
|
// EXTERNAL MODULE: ./src/components/toolbar/tab/HoTab.vue + 6 modules
|
|
4096
|
-
var HoTab = __webpack_require__(
|
|
4097
|
-
// EXTERNAL MODULE: ./src/components/toolbar/tab/TabPane.vue +
|
|
4098
|
-
var TabPane = __webpack_require__(
|
|
4091
|
+
var HoTab = __webpack_require__(10105);
|
|
4092
|
+
// EXTERNAL MODULE: ./src/components/toolbar/tab/TabPane.vue + 3 modules
|
|
4093
|
+
var TabPane = __webpack_require__(49416);
|
|
4099
4094
|
// EXTERNAL MODULE: ./src/plugins/type.ts
|
|
4100
4095
|
var type = __webpack_require__(41542);
|
|
4101
4096
|
;// 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/dateDialog/DateDialog.vue?vue&type=script&lang=js&
|
|
@@ -4711,7 +4706,6 @@ var es_array_join = __webpack_require__(69600);
|
|
|
4711
4706
|
if (this.type === "date" && !type) {
|
|
4712
4707
|
this.date = cell.date;
|
|
4713
4708
|
this.dateText = cell.text;
|
|
4714
|
-
console.log(cell.date, type);
|
|
4715
4709
|
this.$emit("getValue", {
|
|
4716
4710
|
value: cell.date,
|
|
4717
4711
|
type: type
|
|
@@ -4719,7 +4713,6 @@ var es_array_join = __webpack_require__(69600);
|
|
|
4719
4713
|
} else {
|
|
4720
4714
|
this.date = cell.date;
|
|
4721
4715
|
this.dateText = cell.text;
|
|
4722
|
-
console.log(cell.date, type);
|
|
4723
4716
|
this.$emit("getValue", {
|
|
4724
4717
|
value: cell.date,
|
|
4725
4718
|
type: type
|
|
@@ -6115,9 +6108,7 @@ var util = __webpack_require__(62783);
|
|
|
6115
6108
|
} else if (this.expressStyle === 'style9') {
|
|
6116
6109
|
this.reverseOrSort('sort');
|
|
6117
6110
|
this.insertPrimaryTeethMap(this.controlStatus, [this.style89.topLeft, this.style89.topRight, this.style89.bottomLeft, this.style89.bottomRight]);
|
|
6118
|
-
} else {
|
|
6119
|
-
console.log('错误样式', this.expressStyle);
|
|
6120
|
-
}
|
|
6111
|
+
} else {}
|
|
6121
6112
|
this.cancel();
|
|
6122
6113
|
},
|
|
6123
6114
|
/**
|
|
@@ -6479,7 +6470,6 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
6479
6470
|
},
|
|
6480
6471
|
toFind: function toFind(callback) {
|
|
6481
6472
|
if (!this.findContent) return;
|
|
6482
|
-
console.log(this.hoEditorFactoryId);
|
|
6483
6473
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
6484
6474
|
this.path = hoEditorFactory.vueController.find(this.findContent, this.direction, this.matchCase);
|
|
6485
6475
|
if (callback instanceof Function) {
|
|
@@ -7734,9 +7724,7 @@ var util = __webpack_require__(62783);
|
|
|
7734
7724
|
};
|
|
7735
7725
|
},
|
|
7736
7726
|
mounted: function mounted() {
|
|
7737
|
-
window.addEventListener('storage', function (e) {
|
|
7738
|
-
console.log(e.newValue);
|
|
7739
|
-
});
|
|
7727
|
+
window.addEventListener('storage', function (e) {});
|
|
7740
7728
|
},
|
|
7741
7729
|
watch: {
|
|
7742
7730
|
activeDocIndex: function activeDocIndex() {
|
|
@@ -10993,7 +10981,6 @@ var popper = __webpack_require__(95551);
|
|
|
10993
10981
|
};
|
|
10994
10982
|
hoEditorFactory.vueController.updateDownList(params, this.poperSelectList);
|
|
10995
10983
|
} else if (currentPoperNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
10996
|
-
console.log(value, keyValue, this.textParam.downListProperty.allowMultiSelected);
|
|
10997
10984
|
text = text.replace(/,/g, currentPoperNode.downListProperty.splitCharacter);
|
|
10998
10985
|
currentPoperNode.text = text;
|
|
10999
10986
|
currentPoperNode.keyValue = keyValue;
|
|
@@ -11237,7 +11224,6 @@ var popper = __webpack_require__(95551);
|
|
|
11237
11224
|
var virtualElement = {
|
|
11238
11225
|
getBoundingClientRect: this.generateGetBoundingClientRect(this.poperPos)
|
|
11239
11226
|
};
|
|
11240
|
-
console.log(this.poperText);
|
|
11241
11227
|
this.poppernIstance = (0,popper/* createPopper */.fi)(virtualElement, this.poperTextNode, {
|
|
11242
11228
|
placement: 'bottom-start',
|
|
11243
11229
|
modifiers: [{
|
|
@@ -13514,7 +13500,6 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
13514
13500
|
return value;
|
|
13515
13501
|
},
|
|
13516
13502
|
allowMultiSelectChange: function allowMultiSelectChange() {
|
|
13517
|
-
console.log('allowMultiSelectChange');
|
|
13518
13503
|
if (!this.allowMultiSelect) this.mutexSelect = false;
|
|
13519
13504
|
},
|
|
13520
13505
|
focusIndex: function focusIndex(index) {
|
|
@@ -14114,8 +14099,6 @@ var staticRenderFns = [];
|
|
|
14114
14099
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message.js
|
|
14115
14100
|
var message = __webpack_require__(16473);
|
|
14116
14101
|
var message_default = /*#__PURE__*/__webpack_require__.n(message);
|
|
14117
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
14118
|
-
var objectSpread2 = __webpack_require__(63442);
|
|
14119
14102
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
14120
14103
|
var es_regexp_exec = __webpack_require__(74916);
|
|
14121
14104
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
@@ -14158,7 +14141,6 @@ var SignNode = __webpack_require__(24701);
|
|
|
14158
14141
|
|
|
14159
14142
|
|
|
14160
14143
|
|
|
14161
|
-
|
|
14162
14144
|
/* harmony default export */ var Signvue_type_script_lang_js_ = ({
|
|
14163
14145
|
name: 'Sign',
|
|
14164
14146
|
props: {
|
|
@@ -14193,7 +14175,6 @@ var SignNode = __webpack_require__(24701);
|
|
|
14193
14175
|
if (this.controlStatus === 'update') {
|
|
14194
14176
|
var node = this.getCurrentSelectNode();
|
|
14195
14177
|
if (node) {
|
|
14196
|
-
console.log((0,objectSpread2/* default */.Z)({}, node));
|
|
14197
14178
|
this.name = node.name;
|
|
14198
14179
|
if (node.attribute == 2) {
|
|
14199
14180
|
this.signType = 2; // 自定义ca签名(带职称)
|
|
@@ -14234,7 +14215,6 @@ var SignNode = __webpack_require__(24701);
|
|
|
14234
14215
|
},
|
|
14235
14216
|
// 创建自定义签名格式
|
|
14236
14217
|
createSignFormat: function createSignFormat() {
|
|
14237
|
-
console.log(this.customFormatContent);
|
|
14238
14218
|
if (!this.customFormatContent) {
|
|
14239
14219
|
message_default().error({
|
|
14240
14220
|
message: '签名格式不能为空',
|
|
@@ -14812,7 +14792,6 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
14812
14792
|
},
|
|
14813
14793
|
getTime: function getTime(val) {
|
|
14814
14794
|
this.date = val.value;
|
|
14815
|
-
console.log(val.value);
|
|
14816
14795
|
if (val.type == 'dblclick') {
|
|
14817
14796
|
this.sureDate();
|
|
14818
14797
|
}
|
|
@@ -14825,12 +14804,10 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
14825
14804
|
},
|
|
14826
14805
|
sureDate: function sureDate() {
|
|
14827
14806
|
var value = '';
|
|
14828
|
-
console.log(this.date, this.time);
|
|
14829
14807
|
if (this.date) {
|
|
14830
14808
|
value = this.date;
|
|
14831
14809
|
if (this.time) {
|
|
14832
14810
|
var time = this.time.replace(/年|月|-/g, '/').replace(/时|分/g, ':').replace(/秒/g, '');
|
|
14833
|
-
console.log(time);
|
|
14834
14811
|
if (time.includes('/')) {
|
|
14835
14812
|
value += ' ' + time.split(' ')[1];
|
|
14836
14813
|
} else {
|
|
@@ -15853,7 +15830,6 @@ var util = __webpack_require__(62783);
|
|
|
15853
15830
|
}
|
|
15854
15831
|
},
|
|
15855
15832
|
created: function created() {
|
|
15856
|
-
console.log(this);
|
|
15857
15833
|
var activeDocId = this.getActiveDocId();
|
|
15858
15834
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(activeDocId);
|
|
15859
15835
|
this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
@@ -16749,7 +16725,6 @@ var getCellNode = __webpack_require__(5986);
|
|
|
16749
16725
|
var _colInfoes;
|
|
16750
16726
|
var currentCols = cellNode.row.indexOf(cellNode);
|
|
16751
16727
|
colInfoes = cellNode.table.colInfos[currentCols];
|
|
16752
|
-
console.log(colInfoes);
|
|
16753
16728
|
var customProperties = (_colInfoes = colInfoes) === null || _colInfoes === void 0 ? void 0 : _colInfoes.colProperty.customProperties;
|
|
16754
16729
|
if (Array.isArray(customProperties) && customProperties.length > 0) {
|
|
16755
16730
|
this.setCustomsValue([].concat((0,toConsumableArray/* default */.Z)(customProperties), [{
|
|
@@ -17915,7 +17890,6 @@ var CellNode = __webpack_require__(68598);
|
|
|
17915
17890
|
fixedOnePage: this.fixedOnePage,
|
|
17916
17891
|
autoLineHeight: this.autoLineHeight
|
|
17917
17892
|
};
|
|
17918
|
-
console.log(params);
|
|
17919
17893
|
var tableNode = this.getTableNodes();
|
|
17920
17894
|
this.vueController.tableProperty(JSON.stringify(params), tableNode);
|
|
17921
17895
|
this.$nextTick(function () {
|
|
@@ -18887,9 +18861,9 @@ var controlParams = __webpack_require__(63684);
|
|
|
18887
18861
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
18888
18862
|
var TextInputFieldNode = __webpack_require__(90161);
|
|
18889
18863
|
// EXTERNAL MODULE: ./src/components/toolbar/tab/HoTab.vue + 6 modules
|
|
18890
|
-
var HoTab = __webpack_require__(
|
|
18891
|
-
// EXTERNAL MODULE: ./src/components/toolbar/tab/TabPane.vue +
|
|
18892
|
-
var TabPane = __webpack_require__(
|
|
18864
|
+
var HoTab = __webpack_require__(10105);
|
|
18865
|
+
// EXTERNAL MODULE: ./src/components/toolbar/tab/TabPane.vue + 3 modules
|
|
18866
|
+
var TabPane = __webpack_require__(49416);
|
|
18893
18867
|
// EXTERNAL MODULE: ./src/plugins/type.ts
|
|
18894
18868
|
var type = __webpack_require__(41542);
|
|
18895
18869
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextNode.ts
|
|
@@ -19037,15 +19011,11 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
19037
19011
|
/**
|
|
19038
19012
|
* 最小长度变化
|
|
19039
19013
|
*/
|
|
19040
|
-
minLengthChange: function minLengthChange(minLength) {
|
|
19041
|
-
console.log(minLength);
|
|
19042
|
-
},
|
|
19014
|
+
minLengthChange: function minLengthChange(minLength) {},
|
|
19043
19015
|
/**
|
|
19044
19016
|
* 最大长度变化
|
|
19045
19017
|
*/
|
|
19046
|
-
maxLengthChange: function maxLengthChange(maxLength) {
|
|
19047
|
-
console.log(maxLength);
|
|
19048
|
-
},
|
|
19018
|
+
maxLengthChange: function maxLengthChange(maxLength) {},
|
|
19049
19019
|
openDataSourceModal: function openDataSourceModal() {
|
|
19050
19020
|
this.setIsDataSource(true);
|
|
19051
19021
|
},
|
|
@@ -19320,9 +19290,7 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
19320
19290
|
this.canvas.addEventListener('mousemove', this.move);
|
|
19321
19291
|
}
|
|
19322
19292
|
},
|
|
19323
|
-
canvasHistory: function canvasHistory() {
|
|
19324
|
-
console.log(this.canvasHistory);
|
|
19325
|
-
}
|
|
19293
|
+
canvasHistory: function canvasHistory() {}
|
|
19326
19294
|
},
|
|
19327
19295
|
mounted: function mounted() {
|
|
19328
19296
|
var _this = this;
|
|
@@ -19331,9 +19299,7 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
19331
19299
|
this.context = this.canvas.getContext('2d');
|
|
19332
19300
|
this.listenDrawLine();
|
|
19333
19301
|
var updateNode = this.getImageNode();
|
|
19334
|
-
if (updateNode === null) {
|
|
19335
|
-
console.log('updateNode');
|
|
19336
|
-
} else {
|
|
19302
|
+
if (updateNode === null) {} else {
|
|
19337
19303
|
var image = new Image();
|
|
19338
19304
|
image.src = updateNode.imageDataBase64String;
|
|
19339
19305
|
image.onload = function () {
|
|
@@ -19530,7 +19496,6 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
19530
19496
|
this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
|
|
19531
19497
|
canvasPic.onload = function () {
|
|
19532
19498
|
_this3.context.drawImage(canvasPic, 0, 0);
|
|
19533
|
-
console.log(_this3.canvasHistory, _this3.step);
|
|
19534
19499
|
};
|
|
19535
19500
|
}
|
|
19536
19501
|
},
|
|
@@ -19544,7 +19509,6 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
19544
19509
|
this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
|
|
19545
19510
|
canvasPic.onload = function () {
|
|
19546
19511
|
_this4.context.drawImage(canvasPic, 0, 0);
|
|
19547
|
-
console.log(_this4.canvasHistory, _this4.step);
|
|
19548
19512
|
};
|
|
19549
19513
|
}
|
|
19550
19514
|
},
|
|
@@ -20046,7 +20010,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
20046
20010
|
|
|
20047
20011
|
/***/ }),
|
|
20048
20012
|
|
|
20049
|
-
/***/
|
|
20013
|
+
/***/ 10105:
|
|
20050
20014
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20051
20015
|
|
|
20052
20016
|
"use strict";
|
|
@@ -20058,7 +20022,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20058
20022
|
|
|
20059
20023
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
20060
20024
|
var es_function_name = __webpack_require__(68309);
|
|
20061
|
-
;// 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/tab/HoTab.vue?vue&type=template&id=
|
|
20025
|
+
;// 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/tab/HoTab.vue?vue&type=template&id=01b3147c&
|
|
20062
20026
|
|
|
20063
20027
|
var render = function render() {
|
|
20064
20028
|
var _vm = this,
|
|
@@ -20088,7 +20052,7 @@ var render = function render() {
|
|
|
20088
20052
|
};
|
|
20089
20053
|
var staticRenderFns = [];
|
|
20090
20054
|
|
|
20091
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/tab/HoTab.vue?vue&type=template&id=
|
|
20055
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/tab/HoTab.vue?vue&type=template&id=01b3147c&
|
|
20092
20056
|
|
|
20093
20057
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
20094
20058
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -20111,22 +20075,22 @@ var es_string_iterator = __webpack_require__(78783);
|
|
|
20111
20075
|
|
|
20112
20076
|
|
|
20113
20077
|
/* harmony default export */ var HoTabvue_type_script_lang_js_ = ({
|
|
20114
|
-
name:
|
|
20115
|
-
props: [
|
|
20078
|
+
name: 'HoTabs',
|
|
20079
|
+
props: ['tabKey'],
|
|
20116
20080
|
data: function data() {
|
|
20117
20081
|
return {
|
|
20118
20082
|
currentValue: this.tabKey ? this.tabKey : 'ho-edit',
|
|
20119
20083
|
navList: [],
|
|
20120
20084
|
activeBarStyle: {
|
|
20121
|
-
left:
|
|
20122
|
-
width:
|
|
20085
|
+
left: '0px',
|
|
20086
|
+
width: '68px'
|
|
20123
20087
|
}
|
|
20124
20088
|
};
|
|
20125
20089
|
},
|
|
20126
20090
|
methods: {
|
|
20127
20091
|
getTabs: function getTabs() {
|
|
20128
20092
|
return this.$children.filter(function (item) {
|
|
20129
|
-
return item.$options.name ===
|
|
20093
|
+
return item.$options.name === 'TabPane';
|
|
20130
20094
|
});
|
|
20131
20095
|
},
|
|
20132
20096
|
updateNav: function updateNav() {
|
|
@@ -20141,42 +20105,45 @@ var es_string_iterator = __webpack_require__(78783);
|
|
|
20141
20105
|
if (!pane.name) pane.name = index;
|
|
20142
20106
|
}
|
|
20143
20107
|
});
|
|
20108
|
+
// setTimeout(() => {
|
|
20144
20109
|
if (!this.currentValue) {
|
|
20145
20110
|
this.currentValue = this.navList[0].name;
|
|
20146
20111
|
}
|
|
20112
|
+
// }, 0);
|
|
20147
20113
|
this.updateStatus();
|
|
20148
20114
|
},
|
|
20149
20115
|
updateStatus: function updateStatus() {
|
|
20150
20116
|
var _this2 = this;
|
|
20151
20117
|
var tabs = this.getTabs();
|
|
20152
20118
|
tabs.forEach(function (tab) {
|
|
20153
|
-
|
|
20119
|
+
var b = tab.name === _this2.currentValue;
|
|
20120
|
+
tab.show = b;
|
|
20154
20121
|
return tab.show;
|
|
20155
20122
|
});
|
|
20156
20123
|
},
|
|
20157
20124
|
handleChange: function handleChange(oldName, newName) {
|
|
20158
20125
|
var _this3 = this;
|
|
20159
20126
|
this.currentValue = newName;
|
|
20160
|
-
this.$emit(
|
|
20127
|
+
this.$emit('tabClick', oldName, newName);
|
|
20161
20128
|
this.$nextTick(function () {
|
|
20162
20129
|
var width = 0;
|
|
20163
20130
|
var left = 0;
|
|
20164
20131
|
if (event) {
|
|
20165
20132
|
var target = event.target.parentNode;
|
|
20166
|
-
if (target.className ===
|
|
20133
|
+
if (target.className === 'main-bar') {
|
|
20167
20134
|
var liList = Array.from(target.childNodes);
|
|
20168
20135
|
liList.forEach(function (aLi) {
|
|
20169
20136
|
var name = aLi.className;
|
|
20170
|
-
if (name !==
|
|
20137
|
+
if (name !== 'selected' && name !== 'tabs-active-bar' && width === 0) {
|
|
20171
20138
|
left += aLi.offsetWidth;
|
|
20172
20139
|
}
|
|
20173
|
-
if (name ===
|
|
20140
|
+
if (name === 'selected') {
|
|
20174
20141
|
width = aLi.offsetWidth;
|
|
20175
20142
|
}
|
|
20176
20143
|
});
|
|
20177
20144
|
_this3.activeBarStyle = {
|
|
20178
|
-
left: left +
|
|
20179
|
-
width: width +
|
|
20145
|
+
left: left + 'px',
|
|
20146
|
+
width: width + 'px'
|
|
20180
20147
|
};
|
|
20181
20148
|
}
|
|
20182
20149
|
}
|
|
@@ -20191,17 +20158,17 @@ var es_string_iterator = __webpack_require__(78783);
|
|
|
20191
20158
|
var _this4 = this;
|
|
20192
20159
|
this.updateStatus();
|
|
20193
20160
|
setTimeout(function () {
|
|
20194
|
-
_this4.$emit(
|
|
20161
|
+
_this4.$emit('updateTabKey', _this4.currentValue);
|
|
20195
20162
|
}, 0);
|
|
20196
20163
|
}
|
|
20197
20164
|
}
|
|
20198
20165
|
});
|
|
20199
20166
|
;// CONCATENATED MODULE: ./src/components/toolbar/tab/HoTab.vue?vue&type=script&lang=js&
|
|
20200
20167
|
/* harmony default export */ var tab_HoTabvue_type_script_lang_js_ = (HoTabvue_type_script_lang_js_);
|
|
20201
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tab/HoTab.vue?vue&type=style&index=0&id=
|
|
20168
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/tab/HoTab.vue?vue&type=style&index=0&id=01b3147c&prod&lang=scss&
|
|
20202
20169
|
// extracted by mini-css-extract-plugin
|
|
20203
20170
|
|
|
20204
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/tab/HoTab.vue?vue&type=style&index=0&id=
|
|
20171
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/tab/HoTab.vue?vue&type=style&index=0&id=01b3147c&prod&lang=scss&
|
|
20205
20172
|
|
|
20206
20173
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20207
20174
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -20229,7 +20196,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
20229
20196
|
|
|
20230
20197
|
/***/ }),
|
|
20231
20198
|
|
|
20232
|
-
/***/
|
|
20199
|
+
/***/ 49416:
|
|
20233
20200
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20234
20201
|
|
|
20235
20202
|
"use strict";
|
|
@@ -20239,10 +20206,23 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20239
20206
|
"Z": function() { return /* binding */ TabPane; }
|
|
20240
20207
|
});
|
|
20241
20208
|
|
|
20242
|
-
|
|
20243
|
-
var
|
|
20244
|
-
|
|
20209
|
+
;// 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/tab/TabPane.vue?vue&type=template&id=4bf8caf3&
|
|
20210
|
+
var render = function render() {
|
|
20211
|
+
var _vm = this,
|
|
20212
|
+
_c = _vm._self._c;
|
|
20213
|
+
return _c('ul', {
|
|
20214
|
+
directives: [{
|
|
20215
|
+
name: "show",
|
|
20216
|
+
rawName: "v-show",
|
|
20217
|
+
value: _vm.show,
|
|
20218
|
+
expression: "show"
|
|
20219
|
+
}],
|
|
20220
|
+
class: _vm.className
|
|
20221
|
+
}, [_vm._t("default")], 2);
|
|
20222
|
+
};
|
|
20223
|
+
var staticRenderFns = [];
|
|
20245
20224
|
|
|
20225
|
+
;// 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/toolbar/tab/TabPane.vue?vue&type=script&lang=js&
|
|
20246
20226
|
/* harmony default export */ var TabPanevue_type_script_lang_js_ = ({
|
|
20247
20227
|
name: 'TabPane',
|
|
20248
20228
|
props: {
|
|
@@ -20272,39 +20252,23 @@ var es_array_map = __webpack_require__(21249);
|
|
|
20272
20252
|
},
|
|
20273
20253
|
watch: {
|
|
20274
20254
|
isShow: function isShow() {
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
|
|
20279
|
-
|
|
20280
|
-
} // label() {
|
|
20281
|
-
// setTimeout(() => {
|
|
20282
|
-
// this.updateParentNav();
|
|
20283
|
-
// }, 0);
|
|
20284
|
-
// },
|
|
20255
|
+
this.updateNav();
|
|
20256
|
+
},
|
|
20257
|
+
label: function label() {
|
|
20258
|
+
this.updateNav();
|
|
20259
|
+
}
|
|
20285
20260
|
},
|
|
20286
20261
|
mounted: function mounted() {
|
|
20287
|
-
this.
|
|
20262
|
+
this.updateNav();
|
|
20288
20263
|
},
|
|
20289
20264
|
methods: {
|
|
20290
|
-
|
|
20291
|
-
if (this.updateNav) {
|
|
20292
|
-
this.updateNav();
|
|
20293
|
-
} else if (this.$parent.updateNav) {
|
|
20265
|
+
updateNav: function updateNav() {
|
|
20266
|
+
if (this.$parent.updateNav) {
|
|
20294
20267
|
this.$parent.updateNav();
|
|
20295
|
-
} else
|
|
20268
|
+
} else {
|
|
20296
20269
|
this.$parent.$parent.updateNav();
|
|
20297
20270
|
}
|
|
20298
20271
|
}
|
|
20299
|
-
},
|
|
20300
|
-
render: function render() {
|
|
20301
|
-
var _this$$slots$default;
|
|
20302
|
-
var h = arguments[0];
|
|
20303
|
-
return h("div", [this.show ? h("div", {
|
|
20304
|
-
"class": this.className
|
|
20305
|
-
}, [(_this$$slots$default = this.$slots.default) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.map(function (v) {
|
|
20306
|
-
return v;
|
|
20307
|
-
})]) : null]);
|
|
20308
20272
|
}
|
|
20309
20273
|
});
|
|
20310
20274
|
;// CONCATENATED MODULE: ./src/components/toolbar/tab/TabPane.vue?vue&type=script&lang=js&
|
|
@@ -20312,8 +20276,8 @@ var es_array_map = __webpack_require__(21249);
|
|
|
20312
20276
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20313
20277
|
var componentNormalizer = __webpack_require__(1001);
|
|
20314
20278
|
;// CONCATENATED MODULE: ./src/components/toolbar/tab/TabPane.vue
|
|
20315
|
-
|
|
20316
|
-
|
|
20279
|
+
|
|
20280
|
+
|
|
20317
20281
|
|
|
20318
20282
|
|
|
20319
20283
|
|
|
@@ -21310,9 +21274,7 @@ var DrawPrintRecord = /*#__PURE__*/function (_DrawPrintBase) {
|
|
|
21310
21274
|
var cPage = hoeditfactory.drawTree.drawPages[this._pageindex];
|
|
21311
21275
|
cPage && cPage.selectContainer.removeChild(this._text);
|
|
21312
21276
|
(0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPrintRecord.prototype), "clear", this).call(this);
|
|
21313
|
-
} catch (error) {
|
|
21314
|
-
console.log(error);
|
|
21315
|
-
}
|
|
21277
|
+
} catch (error) {}
|
|
21316
21278
|
}
|
|
21317
21279
|
/**
|
|
21318
21280
|
* 绘制打印标记文本
|
|
@@ -27057,7 +27019,7 @@ function svg2pdf(element, pdf, options) {
|
|
|
27057
27019
|
// set offsets
|
|
27058
27020
|
pdf.setCurrentTransformationMatrix(pdf.Matrix(1, 0, 0, 1, x, y));
|
|
27059
27021
|
// set default values that differ from pdf defaults
|
|
27060
|
-
|
|
27022
|
+
|
|
27061
27023
|
pdf.setLineWidth(context.attributeState.strokeWidth);
|
|
27062
27024
|
fill = context.attributeState.fill.color;
|
|
27063
27025
|
pdf.setFillColor(fill.r, fill.g, fill.b);
|
|
@@ -27636,7 +27598,6 @@ var PrintStatus = /*#__PURE__*/function () {
|
|
|
27636
27598
|
}
|
|
27637
27599
|
}
|
|
27638
27600
|
} catch (error) {
|
|
27639
|
-
console.log(error);
|
|
27640
27601
|
throw Exception/* Exception.printCallStack */.P.printCallStack();
|
|
27641
27602
|
}
|
|
27642
27603
|
}
|
|
@@ -27718,7 +27679,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
27718
27679
|
key: "printToPDF",
|
|
27719
27680
|
value: function () {
|
|
27720
27681
|
var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
|
|
27721
|
-
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, _iterator, _step, _cpage$drawDomLevel3, index, cpage, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3,
|
|
27682
|
+
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, _iterator, _step, _cpage$drawDomLevel3, index, cpage, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _last, printStyle, _svgBox, exportHtml, url, link, otherPageNumber, i, name;
|
|
27722
27683
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
27723
27684
|
while (1) {
|
|
27724
27685
|
switch (_context3.prev = _context3.next) {
|
|
@@ -27763,37 +27724,35 @@ var Print = /*#__PURE__*/function () {
|
|
|
27763
27724
|
}
|
|
27764
27725
|
last = -1;
|
|
27765
27726
|
console.time('绘制svg和生成pdf');
|
|
27766
|
-
console.log(hoEditorFactory.drawTree.drawPages);
|
|
27767
27727
|
_iterator = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
27768
|
-
_context3.prev =
|
|
27728
|
+
_context3.prev = 15;
|
|
27769
27729
|
_iterator.s();
|
|
27770
|
-
case
|
|
27730
|
+
case 17:
|
|
27771
27731
|
if ((_step = _iterator.n()).done) {
|
|
27772
|
-
_context3.next =
|
|
27732
|
+
_context3.next = 60;
|
|
27773
27733
|
break;
|
|
27774
27734
|
}
|
|
27775
27735
|
index = _step.value;
|
|
27776
27736
|
if (!(index == -1)) {
|
|
27777
|
-
_context3.next =
|
|
27737
|
+
_context3.next = 23;
|
|
27778
27738
|
break;
|
|
27779
27739
|
}
|
|
27780
|
-
_context3.next =
|
|
27740
|
+
_context3.next = 22;
|
|
27781
27741
|
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
27782
27742
|
confirmButtonText: '确定',
|
|
27783
27743
|
type: 'info'
|
|
27784
27744
|
});
|
|
27745
|
+
case 22:
|
|
27746
|
+
return _context3.abrupt("continue", 58);
|
|
27785
27747
|
case 23:
|
|
27786
|
-
return _context3.abrupt("continue", 61);
|
|
27787
|
-
case 24:
|
|
27788
27748
|
last = index;
|
|
27789
27749
|
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
27790
27750
|
if (!(index === hoEditorFactory.drawTree.drawPages.length - 1 && cpage.drawMainDoc.children.length === 2 && !(cpage.drawMainDoc.children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && cpage.drawMainDoc.children[1] && cpage.drawMainDoc.children[1].drawItems.length === 0)) {
|
|
27791
|
-
_context3.next =
|
|
27751
|
+
_context3.next = 27;
|
|
27792
27752
|
break;
|
|
27793
27753
|
}
|
|
27794
|
-
|
|
27795
|
-
|
|
27796
|
-
case 29:
|
|
27754
|
+
return _context3.abrupt("break", 60);
|
|
27755
|
+
case 27:
|
|
27797
27756
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
27798
27757
|
cpage.drawDomLevel.bindStage();
|
|
27799
27758
|
cpage.needUpdateStage = true;
|
|
@@ -27833,7 +27792,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
27833
27792
|
}
|
|
27834
27793
|
}
|
|
27835
27794
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
27836
|
-
_context3.next =
|
|
27795
|
+
_context3.next = 44;
|
|
27837
27796
|
break;
|
|
27838
27797
|
}
|
|
27839
27798
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
@@ -27853,9 +27812,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
27853
27812
|
|
|
27854
27813
|
ctx && ((_cpage$drawDomLevel = cpage.drawDomLevel) === null || _cpage$drawDomLevel === void 0 ? void 0 : (_cpage$drawDomLevel$s = _cpage$drawDomLevel.stage) === null || _cpage$drawDomLevel$s === void 0 ? void 0 : _cpage$drawDomLevel$s.draw(ctx));
|
|
27855
27814
|
ctx = null;
|
|
27856
|
-
_context3.next =
|
|
27815
|
+
_context3.next = 57;
|
|
27857
27816
|
break;
|
|
27858
|
-
case
|
|
27817
|
+
case 44:
|
|
27859
27818
|
_ctx = new canvas2svg({
|
|
27860
27819
|
width: width,
|
|
27861
27820
|
height: height,
|
|
@@ -27863,52 +27822,51 @@ var Print = /*#__PURE__*/function () {
|
|
|
27863
27822
|
});
|
|
27864
27823
|
_ctx && ((_cpage$drawDomLevel2 = cpage.drawDomLevel) === null || _cpage$drawDomLevel2 === void 0 ? void 0 : (_cpage$drawDomLevel2$ = _cpage$drawDomLevel2.stage) === null || _cpage$drawDomLevel2$ === void 0 ? void 0 : _cpage$drawDomLevel2$.draw(_ctx));
|
|
27865
27824
|
if (!(type === 'html')) {
|
|
27866
|
-
_context3.next =
|
|
27825
|
+
_context3.next = 51;
|
|
27867
27826
|
break;
|
|
27868
27827
|
}
|
|
27869
27828
|
svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
|
|
27870
27829
|
svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
|
|
27871
|
-
_context3.next =
|
|
27830
|
+
_context3.next = 56;
|
|
27872
27831
|
break;
|
|
27873
|
-
case
|
|
27832
|
+
case 51:
|
|
27874
27833
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
27875
|
-
console.log((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg());
|
|
27876
27834
|
_context3.t0 = PDF;
|
|
27877
27835
|
if (!_context3.t0) {
|
|
27878
|
-
_context3.next =
|
|
27836
|
+
_context3.next = 56;
|
|
27879
27837
|
break;
|
|
27880
27838
|
}
|
|
27881
|
-
_context3.next =
|
|
27882
|
-
return svg2pdf((
|
|
27883
|
-
case
|
|
27839
|
+
_context3.next = 56;
|
|
27840
|
+
return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
|
|
27841
|
+
case 56:
|
|
27884
27842
|
_ctx = null;
|
|
27885
|
-
case
|
|
27843
|
+
case 57:
|
|
27886
27844
|
index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
|
|
27887
|
-
case
|
|
27888
|
-
_context3.next =
|
|
27845
|
+
case 58:
|
|
27846
|
+
_context3.next = 17;
|
|
27889
27847
|
break;
|
|
27890
|
-
case
|
|
27891
|
-
_context3.next =
|
|
27848
|
+
case 60:
|
|
27849
|
+
_context3.next = 65;
|
|
27892
27850
|
break;
|
|
27851
|
+
case 62:
|
|
27852
|
+
_context3.prev = 62;
|
|
27853
|
+
_context3.t1 = _context3["catch"](15);
|
|
27854
|
+
_iterator.e(_context3.t1);
|
|
27893
27855
|
case 65:
|
|
27894
27856
|
_context3.prev = 65;
|
|
27895
|
-
_context3.t1 = _context3["catch"](16);
|
|
27896
|
-
_iterator.e(_context3.t1);
|
|
27897
|
-
case 68:
|
|
27898
|
-
_context3.prev = 68;
|
|
27899
27857
|
_iterator.f();
|
|
27900
|
-
return _context3.finish(
|
|
27901
|
-
case
|
|
27858
|
+
return _context3.finish(65);
|
|
27859
|
+
case 68:
|
|
27902
27860
|
console.timeEnd('绘制svg和生成pdf');
|
|
27903
27861
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
27904
27862
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
27905
27863
|
if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
|
|
27906
|
-
_context3.next =
|
|
27864
|
+
_context3.next = 77;
|
|
27907
27865
|
break;
|
|
27908
27866
|
}
|
|
27909
27867
|
_last = hoEditorFactory.printStatus.printRecord.last();
|
|
27910
27868
|
if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
|
|
27911
|
-
_context3.next =
|
|
27869
|
+
_context3.next = 77;
|
|
27912
27870
|
break;
|
|
27913
27871
|
}
|
|
27914
27872
|
message_box_default().confirm('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录', '打印提示', {
|
|
@@ -27917,19 +27875,19 @@ var Print = /*#__PURE__*/function () {
|
|
|
27917
27875
|
});
|
|
27918
27876
|
reslove && reslove('printend');
|
|
27919
27877
|
return _context3.abrupt("return");
|
|
27920
|
-
case
|
|
27878
|
+
case 77:
|
|
27921
27879
|
if (!(type === 'pdf')) {
|
|
27922
|
-
_context3.next =
|
|
27880
|
+
_context3.next = 83;
|
|
27923
27881
|
break;
|
|
27924
27882
|
}
|
|
27925
27883
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
27926
27884
|
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
|
|
27927
27885
|
hoEditorFactory.printStatus.drawPrintRecord.clear();
|
|
27928
|
-
_context3.next =
|
|
27886
|
+
_context3.next = 89;
|
|
27929
27887
|
break;
|
|
27930
|
-
case
|
|
27888
|
+
case 83:
|
|
27931
27889
|
if (!(svgBox && svgBox.childNodes.length === 0)) {
|
|
27932
|
-
_context3.next =
|
|
27890
|
+
_context3.next = 87;
|
|
27933
27891
|
break;
|
|
27934
27892
|
}
|
|
27935
27893
|
message_box_default().confirm('无新增内容', '打印提示', {
|
|
@@ -27938,7 +27896,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
27938
27896
|
});
|
|
27939
27897
|
reslove && reslove('printend');
|
|
27940
27898
|
return _context3.abrupt("return");
|
|
27941
|
-
case
|
|
27899
|
+
case 87:
|
|
27942
27900
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
27943
27901
|
if (type === 'html') {
|
|
27944
27902
|
exportHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat((_svgBox = svgBox) === null || _svgBox === void 0 ? void 0 : _svgBox.innerHTML, "</body>\n </html>\n ");
|
|
@@ -27946,7 +27904,6 @@ var Print = /*#__PURE__*/function () {
|
|
|
27946
27904
|
type: "text/html"
|
|
27947
27905
|
}));
|
|
27948
27906
|
link = document.createElement('a');
|
|
27949
|
-
console.log(url);
|
|
27950
27907
|
link.style.display = 'none';
|
|
27951
27908
|
link.href = url;
|
|
27952
27909
|
link.setAttribute('download', fileName ? fileName : '电子病历文档');
|
|
@@ -27969,14 +27926,14 @@ var Print = /*#__PURE__*/function () {
|
|
|
27969
27926
|
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
27970
27927
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
27971
27928
|
}
|
|
27972
|
-
case
|
|
27929
|
+
case 89:
|
|
27973
27930
|
reslove && reslove('printend');
|
|
27974
|
-
case
|
|
27931
|
+
case 90:
|
|
27975
27932
|
case "end":
|
|
27976
27933
|
return _context3.stop();
|
|
27977
27934
|
}
|
|
27978
27935
|
}
|
|
27979
|
-
}, _callee2, this, [[
|
|
27936
|
+
}, _callee2, this, [[15, 62, 65, 68]]);
|
|
27980
27937
|
}));
|
|
27981
27938
|
function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
|
27982
27939
|
return _printToPDF.apply(this, arguments);
|
|
@@ -27987,7 +27944,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
27987
27944
|
key: "createPDFBase64",
|
|
27988
27945
|
value: function () {
|
|
27989
27946
|
var _createPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee3(hoEditorFactoryID, reslove, PDF) {
|
|
27990
|
-
var hoEditorFactory, orientation, svgBox, last, _iterator2, _step2, _cpage$drawDomLevel6, index, cpage, _cpage$drawDomLevel4, _cpage$drawDomLevel4$, ctx, _cpage$drawDomLevel5, _cpage$drawDomLevel5$,
|
|
27947
|
+
var hoEditorFactory, orientation, svgBox, last, _iterator2, _step2, _cpage$drawDomLevel6, index, cpage, _cpage$drawDomLevel4, _cpage$drawDomLevel4$, ctx, _cpage$drawDomLevel5, _cpage$drawDomLevel5$, _ctx5, _ctx4;
|
|
27991
27948
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee3$(_context4) {
|
|
27992
27949
|
while (1) {
|
|
27993
27950
|
switch (_context4.prev = _context4.next) {
|
|
@@ -28051,17 +28008,17 @@ var Print = /*#__PURE__*/function () {
|
|
|
28051
28008
|
_context4.next = 37;
|
|
28052
28009
|
break;
|
|
28053
28010
|
case 31:
|
|
28054
|
-
|
|
28011
|
+
_ctx4 = new canvas2svg({
|
|
28055
28012
|
width: hoEditorFactory.pageProperty.widthPixes,
|
|
28056
28013
|
height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
|
|
28057
28014
|
printBlack: hoEditorFactory.printBlack
|
|
28058
28015
|
});
|
|
28059
|
-
|
|
28016
|
+
_ctx4 && ((_cpage$drawDomLevel5 = cpage.drawDomLevel) === null || _cpage$drawDomLevel5 === void 0 ? void 0 : (_cpage$drawDomLevel5$ = _cpage$drawDomLevel5.stage) === null || _cpage$drawDomLevel5$ === void 0 ? void 0 : _cpage$drawDomLevel5$.draw(_ctx4));
|
|
28060
28017
|
PDF.addPage();
|
|
28061
28018
|
_context4.next = 36;
|
|
28062
|
-
return svg2pdf((
|
|
28019
|
+
return svg2pdf((_ctx5 = _ctx4) === null || _ctx5 === void 0 ? void 0 : _ctx5.getSvg(), PDF);
|
|
28063
28020
|
case 36:
|
|
28064
|
-
|
|
28021
|
+
_ctx4 = null;
|
|
28065
28022
|
case 37:
|
|
28066
28023
|
index > 0 && ((_cpage$drawDomLevel6 = cpage.drawDomLevel) === null || _cpage$drawDomLevel6 === void 0 ? void 0 : _cpage$drawDomLevel6.clearStage());
|
|
28067
28024
|
case 38:
|
|
@@ -28198,7 +28155,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
28198
28155
|
key: "printAllNew",
|
|
28199
28156
|
value: function () {
|
|
28200
28157
|
var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position) {
|
|
28201
|
-
var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, _iterator4, _step4, _cpage$drawDomLevel12, index, cpage, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, ctx, _cpage$drawDomLevel10, _cpage$drawDomLevel11,
|
|
28158
|
+
var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, _iterator4, _step4, _cpage$drawDomLevel12, index, cpage, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, ctx, _cpage$drawDomLevel10, _cpage$drawDomLevel11, _ctx7, _ctx6, lastPos;
|
|
28202
28159
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
|
|
28203
28160
|
while (1) {
|
|
28204
28161
|
switch (_context6.prev = _context6.next) {
|
|
@@ -28235,7 +28192,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
28235
28192
|
_iterator4.s();
|
|
28236
28193
|
case 17:
|
|
28237
28194
|
if ((_step4 = _iterator4.n()).done) {
|
|
28238
|
-
_context6.next =
|
|
28195
|
+
_context6.next = 50;
|
|
28239
28196
|
break;
|
|
28240
28197
|
}
|
|
28241
28198
|
index = _step4.value;
|
|
@@ -28249,7 +28206,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
28249
28206
|
type: 'info'
|
|
28250
28207
|
});
|
|
28251
28208
|
case 22:
|
|
28252
|
-
return _context6.abrupt("continue",
|
|
28209
|
+
return _context6.abrupt("continue", 48);
|
|
28253
28210
|
case 23:
|
|
28254
28211
|
last = index;
|
|
28255
28212
|
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
@@ -28262,14 +28219,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
28262
28219
|
cpage.needUpdateStage = false;
|
|
28263
28220
|
}
|
|
28264
28221
|
if (!(index === hoEditorFactory.drawTree.drawPages.length - 1 && cpage.drawMainDoc.children.length === 2 && !(cpage.drawMainDoc.children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && cpage.drawMainDoc.children[1] && cpage.drawMainDoc.children[1].drawItems.length === 0)) {
|
|
28265
|
-
_context6.next =
|
|
28222
|
+
_context6.next = 29;
|
|
28266
28223
|
break;
|
|
28267
28224
|
}
|
|
28268
|
-
|
|
28269
|
-
|
|
28270
|
-
case 30:
|
|
28225
|
+
return _context6.abrupt("break", 50);
|
|
28226
|
+
case 29:
|
|
28271
28227
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
28272
|
-
_context6.next =
|
|
28228
|
+
_context6.next = 41;
|
|
28273
28229
|
break;
|
|
28274
28230
|
}
|
|
28275
28231
|
if (formats.length == 2 && hoEditorFactory.isFixedPrintToA4 == '1') {
|
|
@@ -28300,41 +28256,41 @@ var Print = /*#__PURE__*/function () {
|
|
|
28300
28256
|
ctx.posY = svg2pdfOptions.y;
|
|
28301
28257
|
ctx && ((_cpage$drawDomLevel9 = cpage.drawDomLevel) === null || _cpage$drawDomLevel9 === void 0 ? void 0 : (_cpage$drawDomLevel9$ = _cpage$drawDomLevel9.stage) === null || _cpage$drawDomLevel9$ === void 0 ? void 0 : _cpage$drawDomLevel9$.draw(ctx));
|
|
28302
28258
|
ctx = null;
|
|
28303
|
-
_context6.next =
|
|
28259
|
+
_context6.next = 47;
|
|
28304
28260
|
break;
|
|
28305
|
-
case
|
|
28306
|
-
|
|
28261
|
+
case 41:
|
|
28262
|
+
_ctx6 = new canvas2svg({
|
|
28307
28263
|
width: widthPixes,
|
|
28308
28264
|
height: orientation === 'l' ? heightPixes - 1 : heightPixes,
|
|
28309
28265
|
printBlack: hoEditorFactory.printBlack
|
|
28310
28266
|
});
|
|
28311
|
-
|
|
28267
|
+
_ctx6 && ((_cpage$drawDomLevel10 = cpage.drawDomLevel) === null || _cpage$drawDomLevel10 === void 0 ? void 0 : (_cpage$drawDomLevel11 = _cpage$drawDomLevel10.stage) === null || _cpage$drawDomLevel11 === void 0 ? void 0 : _cpage$drawDomLevel11.draw(_ctx6));
|
|
28312
28268
|
if (formats.length == 2 && !hoEditorFactory.isFixedPrintToA4) {
|
|
28313
28269
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(formats, orientation);
|
|
28314
28270
|
} else {
|
|
28315
28271
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
|
|
28316
28272
|
}
|
|
28317
|
-
_context6.next =
|
|
28318
|
-
return svg2pdf((
|
|
28273
|
+
_context6.next = 46;
|
|
28274
|
+
return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
|
|
28275
|
+
case 46:
|
|
28276
|
+
_ctx6 = null;
|
|
28319
28277
|
case 47:
|
|
28320
|
-
_ctx7 = null;
|
|
28321
|
-
case 48:
|
|
28322
28278
|
index > 0 && ((_cpage$drawDomLevel12 = cpage.drawDomLevel) === null || _cpage$drawDomLevel12 === void 0 ? void 0 : _cpage$drawDomLevel12.clearStage());
|
|
28323
|
-
case
|
|
28279
|
+
case 48:
|
|
28324
28280
|
_context6.next = 17;
|
|
28325
28281
|
break;
|
|
28326
|
-
case
|
|
28327
|
-
_context6.next =
|
|
28282
|
+
case 50:
|
|
28283
|
+
_context6.next = 55;
|
|
28328
28284
|
break;
|
|
28329
|
-
case
|
|
28330
|
-
_context6.prev =
|
|
28285
|
+
case 52:
|
|
28286
|
+
_context6.prev = 52;
|
|
28331
28287
|
_context6.t0 = _context6["catch"](15);
|
|
28332
28288
|
_iterator4.e(_context6.t0);
|
|
28333
|
-
case
|
|
28334
|
-
_context6.prev =
|
|
28289
|
+
case 55:
|
|
28290
|
+
_context6.prev = 55;
|
|
28335
28291
|
_iterator4.f();
|
|
28336
|
-
return _context6.finish(
|
|
28337
|
-
case
|
|
28292
|
+
return _context6.finish(55);
|
|
28293
|
+
case 58:
|
|
28338
28294
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
28339
28295
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
28340
28296
|
}
|
|
@@ -28348,12 +28304,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
28348
28304
|
}
|
|
28349
28305
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
28350
28306
|
reslove();
|
|
28351
|
-
case
|
|
28307
|
+
case 62:
|
|
28352
28308
|
case "end":
|
|
28353
28309
|
return _context6.stop();
|
|
28354
28310
|
}
|
|
28355
28311
|
}
|
|
28356
|
-
}, _callee5, null, [[15,
|
|
28312
|
+
}, _callee5, null, [[15, 52, 55, 58]]);
|
|
28357
28313
|
}));
|
|
28358
28314
|
function printAllNew(_x15, _x16, _x17, _x18) {
|
|
28359
28315
|
return _printAllNew.apply(this, arguments);
|
|
@@ -29538,6 +29494,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
29538
29494
|
key: "keyBoardInput",
|
|
29539
29495
|
value: function keyBoardInput(text) {
|
|
29540
29496
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
29497
|
+
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psReview */ .Dh.psReview) {
|
|
29498
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default().alert("质控医生站的病历只可进行批注不可编辑修改");
|
|
29499
|
+
return;
|
|
29500
|
+
}
|
|
29541
29501
|
// alert(text);
|
|
29542
29502
|
var startPath = "";
|
|
29543
29503
|
var endPath = "";
|
|
@@ -30489,7 +30449,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30489
30449
|
}, {
|
|
30490
30450
|
key: "undoOperate",
|
|
30491
30451
|
value: function undoOperate() {
|
|
30492
|
-
console.log("撤销");
|
|
30493
30452
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.undo();
|
|
30494
30453
|
return;
|
|
30495
30454
|
}
|
|
@@ -30499,7 +30458,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30499
30458
|
}, {
|
|
30500
30459
|
key: "redoOperate",
|
|
30501
30460
|
value: function redoOperate() {
|
|
30502
|
-
console.log("恢复");
|
|
30503
30461
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.redo();
|
|
30504
30462
|
return;
|
|
30505
30463
|
}
|
|
@@ -31682,7 +31640,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
31682
31640
|
var indexsMap = object.obj2;
|
|
31683
31641
|
returnPath = hoEditorFactory.docTree.getFindPath(nodesMap, indexsMap, this._count);
|
|
31684
31642
|
}
|
|
31685
|
-
console.log("returnPath ==> ", returnPath);
|
|
31686
31643
|
if (returnPath === "-1") {
|
|
31687
31644
|
this._count = 0;
|
|
31688
31645
|
returnPath = this.find(curDomRange, findContent, direction, matchCase);
|
|
@@ -32036,7 +31993,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
32036
31993
|
curArea.removeComment(comment);
|
|
32037
31994
|
curArea.areaComments.delete(comment.id);
|
|
32038
31995
|
hoEditorFactory.drawTree.commentsMap.delete(comment.id);
|
|
32039
|
-
console.log(hoEditorFactory.drawTree.commentsMap);
|
|
32040
31996
|
var endPath = comment.eNode.getNodePath();
|
|
32041
31997
|
hoEditorFactory.undoService.begin();
|
|
32042
31998
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodeDeleteUndoUnit */ .w(_this6._hoEditorFactoryID, comment.eNode, endPath));
|
|
@@ -33473,7 +33429,6 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
33473
33429
|
set: function set(value) {
|
|
33474
33430
|
if (value !== this._docProperty) {
|
|
33475
33431
|
this._docProperty = value;
|
|
33476
|
-
console.log("this._docProperty change ==> ", this._docProperty);
|
|
33477
33432
|
}
|
|
33478
33433
|
}
|
|
33479
33434
|
}, {
|
|
@@ -35683,7 +35638,6 @@ var DomRange = /*#__PURE__*/function () {
|
|
|
35683
35638
|
if (bEndInTable && !bInSameRect && aendTable && aendTable !== astartTable) {
|
|
35684
35639
|
ret = ret.concat(aendTable.getSelectNodesForDelete(domRange, true));
|
|
35685
35640
|
}
|
|
35686
|
-
console.log(ret);
|
|
35687
35641
|
return ret;
|
|
35688
35642
|
}
|
|
35689
35643
|
}, {
|
|
@@ -49349,7 +49303,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
49349
49303
|
return this._connectMode;
|
|
49350
49304
|
},
|
|
49351
49305
|
set: function set(value) {
|
|
49352
|
-
console.log("connectMode --> change -->", value);
|
|
49353
49306
|
if (this._connectMode !== value) {
|
|
49354
49307
|
this._connectMode = value;
|
|
49355
49308
|
}
|
|
@@ -57916,7 +57869,6 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
57916
57869
|
this.dragFlag = false;
|
|
57917
57870
|
this.sLocation.x = e.stageX;
|
|
57918
57871
|
this.sLocation.y = e.stageY;
|
|
57919
|
-
console.log(this.sLocation.x / 2, this.sLocation.y / 2);
|
|
57920
57872
|
}
|
|
57921
57873
|
}]);
|
|
57922
57874
|
return DrawResize;
|
|
@@ -66700,8 +66652,6 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
66700
66652
|
_this2._dHeight = node.imgHeight;
|
|
66701
66653
|
}
|
|
66702
66654
|
node.imgWidth = _this2._dWidth;
|
|
66703
|
-
console.log(_this2._dWidth);
|
|
66704
|
-
console.log(node.imgHeight, _this2._dHeight);
|
|
66705
66655
|
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_7__/* .FingerPosition.center */ .d.center) {
|
|
66706
66656
|
_this2._dWidth = 0;
|
|
66707
66657
|
_this2._dHeight = 0;
|
|
@@ -66710,7 +66660,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
66710
66660
|
_fingerBitmap.setTransform(_fingerBitmap.x, _fingerBitmap.y, fingerscale, fingerscale);
|
|
66711
66661
|
var hitArea = new createjs.Shape();
|
|
66712
66662
|
hitArea.graphics.beginFill('#000000').drawRect(_fingerBitmap.x, 0, fingerWidth * fingerscale, fingerHeight * fingerscale); //这里是图片大小
|
|
66713
|
-
|
|
66663
|
+
|
|
66714
66664
|
bitmap.hitArea = hitArea;
|
|
66715
66665
|
_fingerBitmap.hitArea = hitArea;
|
|
66716
66666
|
updateSign();
|
|
@@ -66907,7 +66857,6 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
66907
66857
|
key: "drawConnectChar",
|
|
66908
66858
|
value: function drawConnectChar(isFront) {
|
|
66909
66859
|
var connectMode = this.node.connectMode;
|
|
66910
|
-
console.log('绘制连接符 --> ', connectMode);
|
|
66911
66860
|
var line = new createjs.Shape();
|
|
66912
66861
|
if (connectMode === '/') {
|
|
66913
66862
|
if (this.type === 1) {
|
|
@@ -69383,7 +69332,6 @@ var DrawPrintBase = /*#__PURE__*/function () {
|
|
|
69383
69332
|
//fix me 此处没有stage需要安上
|
|
69384
69333
|
return;
|
|
69385
69334
|
}
|
|
69386
|
-
console.log("paintMask ==> ", stage);
|
|
69387
69335
|
stage.update();
|
|
69388
69336
|
}
|
|
69389
69337
|
//清空遮罩
|
|
@@ -69920,7 +69868,6 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
69920
69868
|
e.preventDefault();
|
|
69921
69869
|
});
|
|
69922
69870
|
this.editor.input.addEventListener("copy", function (e) {
|
|
69923
|
-
console.log(e);
|
|
69924
69871
|
if (!e || !e.clipboardData) {
|
|
69925
69872
|
return;
|
|
69926
69873
|
}
|
|
@@ -69930,7 +69877,6 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
69930
69877
|
e.preventDefault();
|
|
69931
69878
|
});
|
|
69932
69879
|
this.editor.input.addEventListener("paste", function (e) {
|
|
69933
|
-
console.log(e);
|
|
69934
69880
|
if (!e || !e.clipboardData) {
|
|
69935
69881
|
return;
|
|
69936
69882
|
}
|
|
@@ -70189,7 +70135,6 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
70189
70135
|
//return true;
|
|
70190
70136
|
} else if (keyCode === 46) {
|
|
70191
70137
|
var _result2 = hoeditorfactory.editController.canIsEdit(hoeditorfactory);
|
|
70192
|
-
console.log("enter press1");
|
|
70193
70138
|
if (_result2) {
|
|
70194
70139
|
hoeditorfactory.docController.keyBoardDelete("Delete");
|
|
70195
70140
|
}
|
|
@@ -71159,7 +71104,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71159
71104
|
var droots = null;
|
|
71160
71105
|
var path = "";
|
|
71161
71106
|
var iend = Math.min(pageNo, this._headerChildNodes.length - 1);
|
|
71162
|
-
console.log(this._headerChildNodes);
|
|
71163
71107
|
if (iend >= 0) {
|
|
71164
71108
|
for (var i = iend; i >= 0; i--) {
|
|
71165
71109
|
if (this._headerChildNodes[i] && this._headerChildNodes[i].length > 0) {
|
|
@@ -71781,7 +71725,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71781
71725
|
}
|
|
71782
71726
|
}
|
|
71783
71727
|
if (!dArea) {
|
|
71784
|
-
console.log("无法定位起始行的绘制区域");
|
|
71785
71728
|
return false;
|
|
71786
71729
|
}
|
|
71787
71730
|
}
|
|
@@ -71801,7 +71744,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71801
71744
|
// const darea = this.getDrawA(dline);
|
|
71802
71745
|
if (e.repaintImmediate) {
|
|
71803
71746
|
if (!dArea) {
|
|
71804
|
-
console.log("无法定位起始行的绘制区域");
|
|
71805
71747
|
return false;
|
|
71806
71748
|
}
|
|
71807
71749
|
dArea.changed = true;
|
|
@@ -71816,7 +71758,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71816
71758
|
// }
|
|
71817
71759
|
} else if (e.action === DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle) {
|
|
71818
71760
|
if (e.oldDrawLines.length <= 0) {
|
|
71819
|
-
console.log("需要oldEndPath来进行重绘");
|
|
71820
71761
|
return false;
|
|
71821
71762
|
}
|
|
71822
71763
|
var dlines = e.oldDrawLines;
|
|
@@ -71847,7 +71788,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71847
71788
|
}
|
|
71848
71789
|
} else if (e.action === DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange) {
|
|
71849
71790
|
if (e.oldDrawLines.length <= 0) {
|
|
71850
|
-
console.log("需要oldEndPath来进行重绘");
|
|
71851
71791
|
return false;
|
|
71852
71792
|
}
|
|
71853
71793
|
var tables = new Array();
|
|
@@ -71879,7 +71819,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71879
71819
|
}
|
|
71880
71820
|
} else if (e.action === DocTree/* DocAction.daUndoInsert */.gk.daUndoInsert || e.action === DocTree/* DocAction.daDelete */.gk.daDelete) {
|
|
71881
71821
|
if (e.oldDrawTreeLines.length <= 0) {
|
|
71882
|
-
console.log("需要oldEndPath来进行重绘");
|
|
71883
71822
|
return false;
|
|
71884
71823
|
}
|
|
71885
71824
|
var iStartLineIndex = 1;
|
|
@@ -72006,7 +71945,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72006
71945
|
dline = node.drawTable;
|
|
72007
71946
|
if (e.repaintImmediate) {
|
|
72008
71947
|
if (!dArea) {
|
|
72009
|
-
console.log("无法定位起始行的绘制区域");
|
|
72010
71948
|
return false;
|
|
72011
71949
|
}
|
|
72012
71950
|
dArea.changed = true;
|
|
@@ -72036,7 +71974,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72036
71974
|
dline = node.drawTable;
|
|
72037
71975
|
if (e.repaintImmediate) {
|
|
72038
71976
|
if (!dArea) {
|
|
72039
|
-
console.log("无法定位起始行的绘制区域");
|
|
72040
71977
|
return false;
|
|
72041
71978
|
}
|
|
72042
71979
|
dArea.changed = true;
|
|
@@ -72076,7 +72013,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72076
72013
|
// const darea = this.getDrawA(dline);
|
|
72077
72014
|
if (e.repaintImmediate) {
|
|
72078
72015
|
if (!dArea) {
|
|
72079
|
-
console.log("无法定位起始行的绘制区域");
|
|
72080
72016
|
return false;
|
|
72081
72017
|
}
|
|
72082
72018
|
dArea.changed = true;
|
|
@@ -72109,7 +72045,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72109
72045
|
// const darea = this.getDrawA(dline);
|
|
72110
72046
|
if (e.repaintImmediate) {
|
|
72111
72047
|
if (!dArea) {
|
|
72112
|
-
console.log("无法定位起始行的绘制区域");
|
|
72113
72048
|
return false;
|
|
72114
72049
|
}
|
|
72115
72050
|
dArea.changed = true;
|
|
@@ -72669,8 +72604,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72669
72604
|
selectStart = dLine.paragraphNode.getNodePath();
|
|
72670
72605
|
} else {
|
|
72671
72606
|
//取上一行的最后一个绘制点
|
|
72672
|
-
|
|
72673
|
-
console.log("length", dLine.paragraphNode.drawlines[lineIndex - 1].drawItems.length);
|
|
72607
|
+
|
|
72674
72608
|
var dNode = dLine.paragraphNode.drawlines[lineIndex - 1].drawItems[dLine.paragraphNode.drawlines[lineIndex - 1].drawItems.length - 1];
|
|
72675
72609
|
if ((0,IDrawInfos/* instanceOfIDrawInfos */.r)(dNode)) {
|
|
72676
72610
|
var node = dNode.node;
|
|
@@ -74615,9 +74549,7 @@ var Exception = /*#__PURE__*/function () {
|
|
|
74615
74549
|
}
|
|
74616
74550
|
}, {
|
|
74617
74551
|
key: "printCallStack",
|
|
74618
|
-
value: function printCallStack() {
|
|
74619
|
-
console.trace();
|
|
74620
|
-
}
|
|
74552
|
+
value: function printCallStack() {}
|
|
74621
74553
|
}]);
|
|
74622
74554
|
return Exception;
|
|
74623
74555
|
}();
|
|
@@ -76013,7 +75945,6 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
76013
75945
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
76014
75946
|
if (hoEditorFactory.timeStamp.timeOut()) {
|
|
76015
75947
|
hoEditorFactory.timeStamp.update();
|
|
76016
|
-
console.log("timout");
|
|
76017
75948
|
return false;
|
|
76018
75949
|
}
|
|
76019
75950
|
hoEditorFactory.timeStamp.update();
|
|
@@ -76517,7 +76448,6 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
76517
76448
|
value: function repaint(oldStartPath, newEndpath, oldEndPath) {
|
|
76518
76449
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
76519
76450
|
if (newEndpath === "") return;
|
|
76520
|
-
console.log("repaint", "\u539F\u59CB\u5F00\u59CB\u8DEF\u5F84\uFF1A".concat(oldStartPath, "\u65B0\u7ED3\u675F\u8DEF\u5F84\uFF1A").concat(newEndpath));
|
|
76521
76451
|
hoEditorFactory.docTree.curDomRange.startPath = oldStartPath;
|
|
76522
76452
|
hoEditorFactory.docTree.curDomRange.endPath = newEndpath;
|
|
76523
76453
|
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, oldStartPath, newEndpath).normalize();
|
|
@@ -79369,7 +79299,6 @@ var TextInsertUndoUnit = /*#__PURE__*/function () {
|
|
|
79369
79299
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
79370
79300
|
if (hoEditorFactory.timeStamp.timeOut()) {
|
|
79371
79301
|
hoEditorFactory.timeStamp.update();
|
|
79372
|
-
console.log("timout");
|
|
79373
79302
|
return false;
|
|
79374
79303
|
}
|
|
79375
79304
|
hoEditorFactory.timeStamp.update();
|
|
@@ -80800,7 +80729,6 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
80800
80729
|
var uploadImages = function uploadImages(options) {
|
|
80801
80730
|
return new Promise(function (resolve, reject) {
|
|
80802
80731
|
if (!options.url) {
|
|
80803
|
-
console.log("请确认你的url路径");
|
|
80804
80732
|
return;
|
|
80805
80733
|
}
|
|
80806
80734
|
var method = options.method || "GET";
|
|
@@ -80826,7 +80754,6 @@ var uploadImages = function uploadImages(options) {
|
|
|
80826
80754
|
var hoAjax = function hoAjax(options) {
|
|
80827
80755
|
return new Promise(function (resolve, reject) {
|
|
80828
80756
|
if (!options.url) {
|
|
80829
|
-
console.log("请确认你的url路径");
|
|
80830
80757
|
return;
|
|
80831
80758
|
}
|
|
80832
80759
|
var method = options.method || "GET";
|
|
@@ -80924,31 +80851,29 @@ var isMap = function isMap(map) {
|
|
|
80924
80851
|
/* harmony export */ "y": function() { return /* binding */ generateID; }
|
|
80925
80852
|
/* harmony export */ });
|
|
80926
80853
|
/* unused harmony exports generateGetBoundingClientRect, createPrintHTMLIframe, resetScale, getUserIP */
|
|
80927
|
-
/* harmony import */ var
|
|
80928
|
-
/* harmony import */ var
|
|
80929
|
-
/* harmony import */ var
|
|
80930
|
-
/* harmony import */ var
|
|
80931
|
-
/* harmony import */ var
|
|
80932
|
-
/* harmony import */ var
|
|
80933
|
-
/* harmony import */ var
|
|
80934
|
-
/* harmony import */ var
|
|
80935
|
-
/* harmony import */ var
|
|
80936
|
-
/* harmony import */ var
|
|
80937
|
-
/* harmony import */ var
|
|
80938
|
-
/* harmony import */ var
|
|
80939
|
-
/* harmony import */ var
|
|
80940
|
-
/* harmony import */ var
|
|
80941
|
-
/* harmony import */ var
|
|
80942
|
-
/* harmony import */ var
|
|
80943
|
-
/* harmony import */ var
|
|
80944
|
-
/* harmony import */ var
|
|
80945
|
-
/* harmony import */ var
|
|
80946
|
-
/* harmony import */ var
|
|
80947
|
-
/* harmony import */ var
|
|
80948
|
-
/* harmony import */ var
|
|
80949
|
-
/* harmony import */ var
|
|
80950
|
-
/* harmony import */ var _popperjs_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(95551);
|
|
80951
|
-
|
|
80854
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74916);
|
|
80855
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
80856
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15306);
|
|
80857
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
80858
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26699);
|
|
80859
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
80860
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32023);
|
|
80861
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
80862
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91038);
|
|
80863
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
80864
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(78783);
|
|
80865
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
80866
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41539);
|
|
80867
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
80868
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(39714);
|
|
80869
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
80870
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(92222);
|
|
80871
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
80872
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54747);
|
|
80873
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
80874
|
+
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4723);
|
|
80875
|
+
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
80876
|
+
/* harmony import */ var _popperjs_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(95551);
|
|
80952
80877
|
|
|
80953
80878
|
|
|
80954
80879
|
|
|
@@ -81047,7 +80972,6 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
81047
80972
|
if (isNaN(new Date(stringDate).getTime())) {
|
|
81048
80973
|
if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
81049
80974
|
stringDate = '2021/' + stringDate;
|
|
81050
|
-
console.log('???stringDate', stringDate);
|
|
81051
80975
|
}
|
|
81052
80976
|
if (format && format.includes('HH') && !format.includes('ss')) {
|
|
81053
80977
|
stringDate = stringDate + ':00';
|
|
@@ -81144,15 +81068,6 @@ var generateGetBoundingClientRect = function generateGetBoundingClientRect(poper
|
|
|
81144
81068
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
81145
81069
|
var x = selectCanvasSize.left + poperPos.x;
|
|
81146
81070
|
var y = selectCanvasSize.top + poperPos.y;
|
|
81147
|
-
console.log(_objectSpread({}, poperPos));
|
|
81148
|
-
console.log({
|
|
81149
|
-
width: poperPos.width,
|
|
81150
|
-
height: poperPos.height,
|
|
81151
|
-
top: y,
|
|
81152
|
-
right: x,
|
|
81153
|
-
bottom: y,
|
|
81154
|
-
left: x
|
|
81155
|
-
});
|
|
81156
81071
|
return function () {
|
|
81157
81072
|
return {
|
|
81158
81073
|
width: poperPos.width,
|
|
@@ -81217,7 +81132,7 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
81217
81132
|
var virtualElement = {
|
|
81218
81133
|
getBoundingClientRect: generateGetBoundingClientRect(clientX, clientY)
|
|
81219
81134
|
};
|
|
81220
|
-
(0,
|
|
81135
|
+
(0,_popperjs_core__WEBPACK_IMPORTED_MODULE_11__/* .createPopper */ .fi)(virtualElement, rightMenuModal, {
|
|
81221
81136
|
placement: 'bottom-start',
|
|
81222
81137
|
modifiers: [{
|
|
81223
81138
|
name: 'flip',
|
|
@@ -81375,7 +81290,6 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81375
81290
|
base64 = canvas.toDataURL('image/jpeg', quality);
|
|
81376
81291
|
}
|
|
81377
81292
|
}
|
|
81378
|
-
console.log(quality, size, canvas.width, canvas.height, base64);
|
|
81379
81293
|
callback(base64); //必须通过回调函数返回,否则无法及时拿到该值
|
|
81380
81294
|
};
|
|
81381
81295
|
};
|
|
@@ -85025,7 +84939,6 @@ __webpack_require__(77601);
|
|
|
85025
84939
|
};
|
|
85026
84940
|
this.img.onerror = function () {
|
|
85027
84941
|
if (typeof console != "undefined") {
|
|
85028
|
-
console.log('ERROR: image "' + href + '" not found');
|
|
85029
84942
|
self.loaded = true;
|
|
85030
84943
|
}
|
|
85031
84944
|
};
|
|
@@ -85332,9 +85245,7 @@ __webpack_require__(77601);
|
|
|
85332
85245
|
this.extraFilterDistance = this.blurRadius;
|
|
85333
85246
|
this.apply = function (ctx, x, y, width, height) {
|
|
85334
85247
|
if (typeof stackBlurCanvasRGBA == "undefined") {
|
|
85335
|
-
if (typeof console != "undefined") {
|
|
85336
|
-
console.log("ERROR: StackBlur.js must be included for blur to work");
|
|
85337
|
-
}
|
|
85248
|
+
if (typeof console != "undefined") {}
|
|
85338
85249
|
return;
|
|
85339
85250
|
}
|
|
85340
85251
|
// StackBlur requires canvas be on document
|
|
@@ -85353,9 +85264,7 @@ __webpack_require__(77601);
|
|
|
85353
85264
|
svg.Element.desc = function (node) {};
|
|
85354
85265
|
svg.Element.desc.prototype = new svg.Element.ElementBase();
|
|
85355
85266
|
svg.Element.MISSING = function (node) {
|
|
85356
|
-
if (typeof console != "undefined") {
|
|
85357
|
-
console.log("ERROR: Element '" + node.nodeName + "' not yet implemented.");
|
|
85358
|
-
}
|
|
85267
|
+
if (typeof console != "undefined") {}
|
|
85359
85268
|
};
|
|
85360
85269
|
svg.Element.MISSING.prototype = new svg.Element.ElementBase();
|
|
85361
85270
|
// element factory
|
|
@@ -88202,7 +88111,6 @@ __webpack_require__(77601);
|
|
|
88202
88111
|
};
|
|
88203
88112
|
function use(name) {
|
|
88204
88113
|
_p.r([moduleMapping[name]]);
|
|
88205
|
-
console.log("-=-=-=");
|
|
88206
88114
|
}
|
|
88207
88115
|
/**
|
|
88208
88116
|
* 模块暴露
|
|
@@ -88222,9 +88130,7 @@ __webpack_require__(77601);
|
|
|
88222
88130
|
// build环境中才含有use
|
|
88223
88131
|
try {
|
|
88224
88132
|
use("kf.start");
|
|
88225
|
-
} catch (e) {
|
|
88226
|
-
console.log("-=-=sdfsdf", e);
|
|
88227
|
-
}
|
|
88133
|
+
} catch (e) {}
|
|
88228
88134
|
})(this);
|
|
88229
88135
|
})();
|
|
88230
88136
|
|
|
@@ -98138,7 +98044,6 @@ __webpack_require__(47042);
|
|
|
98138
98044
|
initResource: function initResource() {
|
|
98139
98045
|
var _self = this;
|
|
98140
98046
|
ResourceManager.ready(function (Formula) {
|
|
98141
|
-
console.log(_self);
|
|
98142
98047
|
_self.FormulaClass = Formula;
|
|
98143
98048
|
_self.initComponents();
|
|
98144
98049
|
_self._readyState = true;
|
|
@@ -105577,7 +105482,6 @@ __webpack_require__(69600);
|
|
|
105577
105482
|
if (e.which !== 1 || _self.disabled) {
|
|
105578
105483
|
return;
|
|
105579
105484
|
}
|
|
105580
|
-
console.log("delegate ==> ", this.getAttribute("data-value"));
|
|
105581
105485
|
$$.publish("data.select", this.getAttribute("data-value"));
|
|
105582
105486
|
});
|
|
105583
105487
|
this.boxObject.initEvent();
|
|
@@ -114421,7 +114325,7 @@ this.createjs=this.createjs||{};/**
|
|
|
114421
114325
|
* to deprecate properties.
|
|
114422
114326
|
* @return {Function} If a fallbackMethod is supplied, returns a closure that will call the fallback method after
|
|
114423
114327
|
* logging the warning in the console.
|
|
114424
|
-
*/createjs.deprecate=function(fallbackMethod,name){"use strict";return function(){var msg="Deprecated property or method '"+name+"'. See docs for info.";console&&(console.warn?console.warn(msg):
|
|
114328
|
+
*/createjs.deprecate=function(fallbackMethod,name){"use strict";return function(){var msg="Deprecated property or method '"+name+"'. See docs for info.";console&&(console.warn?console.warn(msg):void 0);return fallbackMethod&&fallbackMethod.apply(this,arguments);};};//##############################################################################
|
|
114425
114329
|
// Event.js
|
|
114426
114330
|
//##############################################################################
|
|
114427
114331
|
this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
@@ -115007,7 +114911,7 @@ Ticker.getFPS=createjs.deprecate(Ticker._getFPS,"Ticker.getFPS");/**
|
|
|
115007
114911
|
* @property framerate
|
|
115008
114912
|
* @static
|
|
115009
114913
|
* @type {Number}
|
|
115010
|
-
**/try{Object.defineProperties(Ticker,{interval:{get:Ticker._getInterval,set:Ticker._setInterval},framerate:{get:Ticker._getFPS,set:Ticker._setFPS}});}catch(e){
|
|
114914
|
+
**/try{Object.defineProperties(Ticker,{interval:{get:Ticker._getInterval,set:Ticker._setInterval},framerate:{get:Ticker._getFPS,set:Ticker._setFPS}});}catch(e){}// public static methods:
|
|
115011
114915
|
/**
|
|
115012
114916
|
* Starts the tick. This is called automatically when the first listener is added.
|
|
115013
114917
|
* @method init
|
|
@@ -119899,7 +119803,7 @@ if(item===this._textureDictionary[item._storeID]){this._killTextureObject(item);
|
|
|
119899
119803
|
foundImage=item;}else if(item._webGLRenderStyle===2){// this is a Bitmap class
|
|
119900
119804
|
foundImage=item.image;}else if(item._webGLRenderStyle===1){// this is a SpriteSheet, we can't tell which image we used from the list easily so remove them all!
|
|
119901
119805
|
for(i=0,l=item.spriteSheet._images.length;i<l;i++){this.releaseTexture(item.spriteSheet._images[i]);}return;}// did we find anything
|
|
119902
|
-
if(foundImage===undefined){if(this.vocalDebug){
|
|
119806
|
+
if(foundImage===undefined){if(this.vocalDebug){}return;}// remove it
|
|
119903
119807
|
this._killTextureObject(this._textureDictionary[foundImage._storeID]);foundImage._storeID=undefined;};/**
|
|
119904
119808
|
* Similar to {{#crossLink "releaseTexture"}}{{/crossLink}}, but this function differs by searching for textures to
|
|
119905
119809
|
* release. It works by assuming that it can purge any texture which was last used more than "count" draw calls ago.
|
|
@@ -119920,7 +119824,7 @@ this._killTextureObject(item);}}};/**
|
|
|
119920
119824
|
* @method updateSimultaneousTextureCount
|
|
119921
119825
|
* @param {Number} [count=1] The number of textures intended for simultaneous loading.
|
|
119922
119826
|
*/p.updateSimultaneousTextureCount=function(count){// TODO: DHG: make sure API works in all instances, may be some issues with buffers etc I haven't foreseen
|
|
119923
|
-
var gl=this._webGLContext;var success=false;if(count<1||isNaN(count)){count=1;}this._batchTextureCount=count;while(!success){try{this._activeShader=this._fetchShaderProgram(gl);success=true;}catch(e){if(this._batchTextureCount==1){throw"Cannot compile shader "+e;}this._batchTextureCount-=4;if(this._batchTextureCount<1){this._batchTextureCount=1;}if(this.vocalDebug){
|
|
119827
|
+
var gl=this._webGLContext;var success=false;if(count<1||isNaN(count)){count=1;}this._batchTextureCount=count;while(!success){try{this._activeShader=this._fetchShaderProgram(gl);success=true;}catch(e){if(this._batchTextureCount==1){throw"Cannot compile shader "+e;}this._batchTextureCount-=4;if(this._batchTextureCount<1){this._batchTextureCount=1;}if(this.vocalDebug){}}}};/**
|
|
119924
119828
|
* Update the WebGL viewport. Note that this does <strong>not</strong> update the canvas element's width/height, but
|
|
119925
119829
|
* the render surface's instead. This is necessary after manually resizing the canvas element on the DOM to avoid a
|
|
119926
119830
|
* up/down scaled render.
|
|
@@ -119938,7 +119842,7 @@ this._projectionMatrixFlip=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t
|
|
|
119938
119842
|
* @method getFilterShader
|
|
119939
119843
|
* @param {Filter|Object} filter The object which will provide the information needed to construct the filter shader.
|
|
119940
119844
|
* @return {WebGLProgram}
|
|
119941
|
-
*/p.getFilterShader=function(filter){if(!filter){filter=this;}var gl=this._webGLContext;var targetShader=this._activeShader;if(filter._builtShader){targetShader=filter._builtShader;if(filter.shaderParamSetup){gl.useProgram(targetShader);filter.shaderParamSetup(gl,this,targetShader);}}else{try{targetShader=this._fetchShaderProgram(gl,"filter",filter.VTX_SHADER_BODY,filter.FRAG_SHADER_BODY,filter.shaderParamSetup&&filter.shaderParamSetup.bind(filter));filter._builtShader=targetShader;targetShader._name=filter.toString();}catch(e){console&&
|
|
119845
|
+
*/p.getFilterShader=function(filter){if(!filter){filter=this;}var gl=this._webGLContext;var targetShader=this._activeShader;if(filter._builtShader){targetShader=filter._builtShader;if(filter.shaderParamSetup){gl.useProgram(targetShader);filter.shaderParamSetup(gl,this,targetShader);}}else{try{targetShader=this._fetchShaderProgram(gl,"filter",filter.VTX_SHADER_BODY,filter.FRAG_SHADER_BODY,filter.shaderParamSetup&&filter.shaderParamSetup.bind(filter));filter._builtShader=targetShader;targetShader._name=filter.toString();}catch(e){console&&void 0;}}return targetShader;};/**
|
|
119942
119846
|
* Returns a base texture that has no image or data loaded. Not intended for loading images. It may return `null`
|
|
119943
119847
|
* in some error cases, and trying to use a "null" texture can cause renders to fail.
|
|
119944
119848
|
* @method getBaseTexture
|
|
@@ -120013,7 +119917,7 @@ r=((color&0xFF000000)>>>24)/255;g=((color&0x00FF0000)>>>16)/255;b=((color&0x0000
|
|
|
120013
119917
|
* @protected
|
|
120014
119918
|
* @return {WebGLRenderingContext} The WebGL context, may return undefined in error scenarios
|
|
120015
119919
|
*/p._fetchWebGLContext=function(canvas,options){var gl;try{gl=canvas.getContext("webgl",options)||canvas.getContext("experimental-webgl",options);}catch(e){// don't do anything in catch, null check will handle it
|
|
120016
|
-
}if(!gl){var msg="Could not initialize WebGL";console.error?console.error(msg):
|
|
119920
|
+
}if(!gl){var msg="Could not initialize WebGL";console.error?console.error(msg):void 0;}else{gl.viewportWidth=canvas.width;gl.viewportHeight=canvas.height;}return gl;};/**
|
|
120017
119921
|
* Create the completed Shader Program from the vertex and fragment shaders. Allows building of custom shaders for
|
|
120018
119922
|
* filters. Once compiled, shaders are saved so. If the Shader code requires dynamic alterations re-run this function
|
|
120019
119923
|
* to generate a new shader.
|
|
@@ -120107,7 +120011,7 @@ var storeID=this._textureIDs[src];if(storeID===undefined){storeID=this._textureI
|
|
|
120107
120011
|
texture._batchID=this._batchID;texture._storeID=storeID;texture._imageData=image;this._insertTextureInBatch(gl,texture);// get the data into the texture or wait for it to load
|
|
120108
120012
|
image._storeID=storeID;if(image.complete||image.naturalWidth||image._isCanvas){// is it already loaded
|
|
120109
120013
|
this._updateTextureImageData(gl,image);}else{image.addEventListener("load",this._updateTextureImageData.bind(this,gl,image));}}else{// we really really should have a texture, try to recover the error by using a saved empty texture so we don't crash
|
|
120110
|
-
var msg="Problem creating desired texture, known causes include using too much VRAM by not releasing WebGL texture instances";console.error&&console.error(msg)||
|
|
120014
|
+
var msg="Problem creating desired texture, known causes include using too much VRAM by not releasing WebGL texture instances";console.error&&console.error(msg)||void 0;texture=this._baseTextures[0];texture._batchID=this._batchID;texture._storeID=-1;texture._imageData=texture;this._insertTextureInBatch(gl,texture);}return texture;};/**
|
|
120111
120015
|
* Necessary to upload the actual image data to the GPU. Without this the texture will be blank. Called automatically
|
|
120112
120016
|
* in most cases due to loading and caching APIs. Flagging an image source with `_invalid = true` will trigger this
|
|
120113
120017
|
* next time the image is rendered.
|
|
@@ -120116,7 +120020,7 @@ var msg="Problem creating desired texture, known causes include using too much V
|
|
|
120116
120020
|
* @protected
|
|
120117
120021
|
*/p._updateTextureImageData=function(gl,image){// the bitwise & is intentional, cheap exponent 2 check
|
|
120118
120022
|
var isNPOT=image.width&image.width-1||image.height&image.height-1;var texture=this._textureDictionary[image._storeID];gl.activeTexture(gl.TEXTURE0+texture._activeIndex);gl.bindTexture(gl.TEXTURE_2D,texture);texture.isPOT=!isNPOT;this.setTextureParams(gl,texture.isPOT);try{gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,gl.RGBA,gl.UNSIGNED_BYTE,image);}catch(e){var errString="\nAn error has occurred. This is most likely due to security restrictions on WebGL images with local or cross-domain origins";if(console.error){//TODO: LM: I recommend putting this into a log function internally, since you do it so often, and each is implemented differently.
|
|
120119
|
-
console.error(errString);console.error(e);}else if(console){
|
|
120023
|
+
console.error(errString);console.error(e);}else if(console){}}image._invalid=false;texture._w=image.width;texture._h=image.height;if(this.vocalDebug){if(isNPOT){console.warn("NPOT(Non Power of Two) Texture: "+image.src);}if(image.width>gl.MAX_TEXTURE_SIZE||image.height>gl.MAX_TEXTURE_SIZE){console&&console.error("Oversized Texture: "+image.width+"x"+image.height+" vs "+gl.MAX_TEXTURE_SIZE+"max");}}};/**
|
|
120120
120024
|
* Adds the texture to a spot in the current batch, forcing a draw if no spots are free.
|
|
120121
120025
|
* @method _insertTextureInBatch
|
|
120122
120026
|
* @param {WebGLRenderingContext} gl The canvas WebGL context object to draw into.
|
|
@@ -120137,8 +120041,8 @@ this._batchTextures[found]=texture;texture._activeIndex=found;var image=texture.
|
|
|
120137
120041
|
*/p._killTextureObject=function(tex){if(!tex){return;}var gl=this._webGLContext;// remove linkage
|
|
120138
120042
|
if(tex._storeID!==undefined&&tex._storeID>=0){this._textureDictionary[tex._storeID]=undefined;for(var n in this._textureIDs){if(this._textureIDs[n]==tex._storeID){delete this._textureIDs[n];}}if(tex._imageData){tex._imageData._storeID=undefined;}tex._imageData=tex._storeID=undefined;}// make sure to drop it out of an active slot
|
|
120139
120043
|
if(tex._activeIndex!==undefined&&this._batchTextures[tex._activeIndex]===tex){this._batchTextures[tex._activeIndex]=this._baseTextures[tex._activeIndex];}// remove buffers if present
|
|
120140
|
-
try{if(tex._frameBuffer){gl.deleteFramebuffer(tex._frameBuffer);}tex._frameBuffer=undefined;}catch(e){/* suppress delete errors because it's already gone or didn't need deleting probably */if(this.vocalDebug){
|
|
120141
|
-
try{gl.deleteTexture(tex);}catch(e){/* suppress delete errors because it's already gone or didn't need deleting probably */if(this.vocalDebug){
|
|
120044
|
+
try{if(tex._frameBuffer){gl.deleteFramebuffer(tex._frameBuffer);}tex._frameBuffer=undefined;}catch(e){/* suppress delete errors because it's already gone or didn't need deleting probably */if(this.vocalDebug){}}// remove entry
|
|
120045
|
+
try{gl.deleteTexture(tex);}catch(e){/* suppress delete errors because it's already gone or didn't need deleting probably */if(this.vocalDebug){}}};/**
|
|
120142
120046
|
* Store or restore current batch textures into a backup array
|
|
120143
120047
|
* @method _backupBatchTextures
|
|
120144
120048
|
* @param {Boolean} restore Perform a restore instead of a store.
|
|
@@ -120219,7 +120123,7 @@ if(frame===null){continue;}image=frame.image;}else{// MISC (DOM objects render t
|
|
|
120219
120123
|
continue;}var uvs=this._uvs;var vertices=this._vertices;var texI=this._indices;var alphas=this._alphas;// calculate texture
|
|
120220
120124
|
if(!image){continue;}if(image._storeID===undefined){// this texture is new to us so load it and add it to the batch
|
|
120221
120125
|
texture=this._loadTextureImage(gl,image);this._insertTextureInBatch(gl,texture);}else{// fetch the texture (render textures know how to look themselves up to simplify this logic)
|
|
120222
|
-
texture=this._textureDictionary[image._storeID];if(!texture){if(this.vocalDebug){
|
|
120126
|
+
texture=this._textureDictionary[image._storeID];if(!texture){if(this.vocalDebug){}continue;}// put it in the batch if needed
|
|
120223
120127
|
if(texture._batchID!==this._batchID){this._insertTextureInBatch(gl,texture);}}texIndex=texture._activeIndex;if(item._webGLRenderStyle===2||useCache){// BITMAP / Cached Canvas
|
|
120224
120128
|
if(!useCache&&item.sourceRect){// calculate uvs
|
|
120225
120129
|
if(!item._uvRect){item._uvRect={};}src=item.sourceRect;uvRect=item._uvRect;uvRect.t=src.y/image.height;uvRect.l=src.x/image.width;uvRect.b=(src.y+src.height)/image.height;uvRect.r=(src.x+src.width)/image.width;// calculate vertices
|
|
@@ -120242,14 +120146,14 @@ alphas[offV1]=alphas[offV1+1]=alphas[offV1+2]=alphas[offV1+3]=alphas[offV1+4]=al
|
|
|
120242
120146
|
* @param {WebGLRenderingContext} gl The canvas WebGL context object to draw into.
|
|
120243
120147
|
* @protected
|
|
120244
120148
|
*/p._drawBuffers=function(gl){if(this.batchCardCount<=0){return;}// prevents error logs on stages filled with un-renederable content.
|
|
120245
|
-
if(this.vocalDebug){
|
|
120149
|
+
if(this.vocalDebug){}var shaderProgram=this._activeShader;var vertexPositionBuffer=this._vertexPositionBuffer;var textureIndexBuffer=this._textureIndexBuffer;var uvPositionBuffer=this._uvPositionBuffer;var alphaBuffer=this._alphaBuffer;gl.useProgram(shaderProgram);gl.bindBuffer(gl.ARRAY_BUFFER,vertexPositionBuffer);gl.vertexAttribPointer(shaderProgram.vertexPositionAttribute,vertexPositionBuffer.itemSize,gl.FLOAT,false,0,0);gl.bufferSubData(gl.ARRAY_BUFFER,0,this._vertices);gl.bindBuffer(gl.ARRAY_BUFFER,textureIndexBuffer);gl.vertexAttribPointer(shaderProgram.textureIndexAttribute,textureIndexBuffer.itemSize,gl.FLOAT,false,0,0);gl.bufferSubData(gl.ARRAY_BUFFER,0,this._indices);gl.bindBuffer(gl.ARRAY_BUFFER,uvPositionBuffer);gl.vertexAttribPointer(shaderProgram.uvPositionAttribute,uvPositionBuffer.itemSize,gl.FLOAT,false,0,0);gl.bufferSubData(gl.ARRAY_BUFFER,0,this._uvs);gl.bindBuffer(gl.ARRAY_BUFFER,alphaBuffer);gl.vertexAttribPointer(shaderProgram.alphaAttribute,alphaBuffer.itemSize,gl.FLOAT,false,0,0);gl.bufferSubData(gl.ARRAY_BUFFER,0,this._alphas);gl.uniformMatrix4fv(shaderProgram.pMatrixUniform,gl.FALSE,this._projectionMatrix);for(var i=0;i<this._batchTextureCount;i++){var texture=this._batchTextures[i];gl.activeTexture(gl.TEXTURE0+i);gl.bindTexture(gl.TEXTURE_2D,texture);this.setTextureParams(gl,texture.isPOT);}gl.drawArrays(gl.TRIANGLES,0,this.batchCardCount*StageGL.INDICIES_PER_CARD);this._batchID++;};/**
|
|
120246
120150
|
* Draws a card that covers the entire render surface. Mainly used for filters.
|
|
120247
120151
|
* @method _drawBuffers
|
|
120248
120152
|
* @param {WebGLRenderingContext} gl The canvas WebGL context object to draw into.
|
|
120249
120153
|
* @param {Boolean} flipY Covers are used for things like RenderTextures and because of 3D vs Canvas space this can
|
|
120250
120154
|
* end up meaning the `y` space sometimes requires flipping in the render.
|
|
120251
120155
|
* @protected
|
|
120252
|
-
*/p._drawCover=function(gl,flipY){if(this._isDrawing>0){this._drawBuffers(gl);}if(this.vocalDebug){
|
|
120156
|
+
*/p._drawCover=function(gl,flipY){if(this._isDrawing>0){this._drawBuffers(gl);}if(this.vocalDebug){}var shaderProgram=this._activeShader;var vertexPositionBuffer=this._vertexPositionBuffer;var uvPositionBuffer=this._uvPositionBuffer;gl.clear(gl.COLOR_BUFFER_BIT);gl.useProgram(shaderProgram);gl.bindBuffer(gl.ARRAY_BUFFER,vertexPositionBuffer);gl.vertexAttribPointer(shaderProgram.vertexPositionAttribute,vertexPositionBuffer.itemSize,gl.FLOAT,false,0,0);gl.bufferSubData(gl.ARRAY_BUFFER,0,StageGL.COVER_VERT);gl.bindBuffer(gl.ARRAY_BUFFER,uvPositionBuffer);gl.vertexAttribPointer(shaderProgram.uvPositionAttribute,uvPositionBuffer.itemSize,gl.FLOAT,false,0,0);gl.bufferSubData(gl.ARRAY_BUFFER,0,flipY?StageGL.COVER_UV_FLIP:StageGL.COVER_UV);gl.uniform1i(shaderProgram.samplerUniform,0);gl.uniform1f(shaderProgram.uprightUniform,flipY?0:1);gl.drawArrays(gl.TRIANGLES,0,StageGL.INDICIES_PER_CARD);};createjs.StageGL=createjs.promote(StageGL,"Stage");})();//##############################################################################
|
|
120253
120157
|
// Bitmap.js
|
|
120254
120158
|
//##############################################################################
|
|
120255
120159
|
this.createjs=this.createjs||{};(function(){/**
|
|
@@ -122176,7 +122080,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
122176
122080
|
if(isNaN(quality)||quality<1){quality=1;}this.setQuality(quality|0);}var p=createjs.extend(BlurFilter,createjs.Filter);// TODO: deprecated
|
|
122177
122081
|
// p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details.
|
|
122178
122082
|
p.getBlurX=function(){return this._blurX;};p.getBlurY=function(){return this._blurY;};p.setBlurX=function(value){if(isNaN(value)||value<0){value=0;}this._blurX=value;};p.setBlurY=function(value){if(isNaN(value)||value<0){value=0;}this._blurY=value;};p.getQuality=function(){return this._quality;};p.setQuality=function(value){if(isNaN(value)||value<0){value=0;}this._quality=value|0;};p._getShader=function(){var xChange=this._lastBlurX!==this._blurX;var yChange=this._lastBlurY!==this._blurY;var qChange=this._lastQuality!==this._quality;if(xChange||yChange||qChange){if(xChange||qChange){this._blurXTable=this._getTable(this._blurX*this._quality);}if(yChange||qChange){this._blurYTable=this._getTable(this._blurY*this._quality);}this._updateShader();this._lastBlurX=this._blurX;this._lastBlurY=this._blurY;this._lastQuality=this._quality;return undefined;// force a rebuild
|
|
122179
|
-
}return this._compiledShader;};p._setShader=function(){this._compiledShader;};try{Object.defineProperties(p,{blurX:{get:p.getBlurX,set:p.setBlurX},blurY:{get:p.getBlurY,set:p.setBlurY},quality:{get:p.getQuality,set:p.setQuality},_builtShader:{get:p._getShader,set:p._setShader}});}catch(e){
|
|
122083
|
+
}return this._compiledShader;};p._setShader=function(){this._compiledShader;};try{Object.defineProperties(p,{blurX:{get:p.getBlurX,set:p.setBlurX},blurY:{get:p.getBlurY,set:p.setBlurY},quality:{get:p.getQuality,set:p.setQuality},_builtShader:{get:p._getShader,set:p._setShader}});}catch(e){}/**
|
|
122180
122084
|
* Internal lookup function to create gaussian distribution.
|
|
122181
122085
|
* @method _getTable
|
|
122182
122086
|
* @param {Number} spread How many steps in the curve.
|
|
@@ -122765,7 +122669,7 @@ window.createjs = window.createjs || {}, function () {
|
|
|
122765
122669
|
|
|
122766
122670
|
return function () {
|
|
122767
122671
|
var c = "Deprecated property or method '" + b + "'. See docs for info.";
|
|
122768
|
-
return console && (console.warn ? console.warn(c) :
|
|
122672
|
+
return console && (console.warn ? console.warn(c) : void 0), a && a.apply(this, arguments);
|
|
122769
122673
|
};
|
|
122770
122674
|
}, window.createjs = window.createjs || {}, function () {
|
|
122771
122675
|
"use strict";
|
|
@@ -124729,7 +124633,7 @@ window.createjs = window.createjs || {}, function () {
|
|
|
124729
124633
|
|
|
124730
124634
|
return function () {
|
|
124731
124635
|
var c = "Deprecated property or method '" + b + "'. See docs for info.";
|
|
124732
|
-
return console && (console.warn ? console.warn(c) :
|
|
124636
|
+
return console && (console.warn ? console.warn(c) : void 0), a && a.apply(this, arguments);
|
|
124733
124637
|
};
|
|
124734
124638
|
}, window.createjs = window.createjs || {}, createjs.indexOf = function (a, b) {
|
|
124735
124639
|
"use strict";
|
|
@@ -125434,7 +125338,7 @@ window.createjs = window.createjs || {}, function () {
|
|
|
125434
125338
|
a = PlayPropsConfig.prototype = {},
|
|
125435
125339
|
b = PlayPropsConfig;
|
|
125436
125340
|
b.create = function (a) {
|
|
125437
|
-
if ("string" == typeof a) return console && (console.warn ||
|
|
125341
|
+
if ("string" == typeof a) return console && (console.warn || function () {})("Deprecated behaviour. Sound.play takes a configuration object instead of individual arguments. See docs for info."), new createjs.PlayPropsConfig().set({
|
|
125438
125342
|
interrupt: a
|
|
125439
125343
|
});
|
|
125440
125344
|
if (null == a || a instanceof b || a instanceof Object) return new createjs.PlayPropsConfig().set(a);
|
|
@@ -126200,7 +126104,7 @@ window.createjs = window.createjs || {}, createjs.extend = function (a, b) {
|
|
|
126200
126104
|
|
|
126201
126105
|
return function () {
|
|
126202
126106
|
var c = "Deprecated property or method '" + b + "'. See docs for info.";
|
|
126203
|
-
return console && (console.warn ? console.warn(c) :
|
|
126107
|
+
return console && (console.warn ? console.warn(c) : void 0), a && a.apply(this, arguments);
|
|
126204
126108
|
};
|
|
126205
126109
|
}, window.createjs = window.createjs || {}, function () {
|
|
126206
126110
|
"use strict";
|
|
@@ -126340,9 +126244,7 @@ window.createjs = window.createjs || {}, createjs.extend = function (a, b) {
|
|
|
126340
126244
|
set: Ticker._setFPS
|
|
126341
126245
|
}
|
|
126342
126246
|
});
|
|
126343
|
-
} catch (a) {
|
|
126344
|
-
console.log(a);
|
|
126345
|
-
}
|
|
126247
|
+
} catch (a) {}
|
|
126346
126248
|
Ticker.init = function () {
|
|
126347
126249
|
Ticker._inited || (Ticker._inited = !0, Ticker._times = [], Ticker._tickTimes = [], Ticker._startTime = Ticker._getTime(), Ticker._times.push(Ticker._lastTime = 0), Ticker.interval = Ticker._interval);
|
|
126348
126250
|
}, Ticker.reset = function () {
|
|
@@ -207213,8 +207115,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
207213
207115
|
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
207214
207116
|
/******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
|
|
207215
207117
|
/******/ if(prev) return prev(event);
|
|
207216
|
-
/******/ }
|
|
207217
|
-
/******/ ;
|
|
207118
|
+
/******/ };
|
|
207218
207119
|
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
207219
207120
|
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
207220
207121
|
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
@@ -207982,7 +207883,6 @@ var DrawFooter = __webpack_require__(114);
|
|
|
207982
207883
|
|
|
207983
207884
|
|
|
207984
207885
|
|
|
207985
|
-
|
|
207986
207886
|
|
|
207987
207887
|
|
|
207988
207888
|
var DrawSelectLevel = /*#__PURE__*/function () {
|
|
@@ -208126,7 +208026,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
208126
208026
|
// pos.y = pos.y >= lasty ? lasty : line.y + marea.dTop;
|
|
208127
208027
|
// }
|
|
208128
208028
|
}
|
|
208129
|
-
console.log(pos.y);
|
|
208130
208029
|
hoEditorFactory.printStatus.drawPrintCaret.Position = [dPage.pageIndex, pos.y];
|
|
208131
208030
|
}
|
|
208132
208031
|
} else if (hoEditorFactory.printStatus.printRange == PrintStatus/* PrintRange.prSelected */.dR.prSelected) {
|
|
@@ -208352,7 +208251,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
208352
208251
|
if (startPos) {
|
|
208353
208252
|
// if (hoeditorfactory.structureConvert._signNodes.length > 0) {
|
|
208354
208253
|
// }
|
|
208355
|
-
|
|
208254
|
+
|
|
208356
208255
|
var curOnDragNode = hoeditorfactory.docTree.curOnDragNode;
|
|
208357
208256
|
if (curOnDragNode) {
|
|
208358
208257
|
var nodePath = curOnDragNode.getNodePath();
|
|
@@ -208500,7 +208399,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
208500
208399
|
this._scrollYList = [];
|
|
208501
208400
|
var startPos = hoeditorfactory.drawTree.selectRange.spStart;
|
|
208502
208401
|
var endPos = hoeditorfactory.drawTree.selectRange.spEnd;
|
|
208503
|
-
console.log("startPath:".concat(hoeditorfactory.docTree.curDomRange.startPath, "\nendPath:").concat(hoeditorfactory.docTree.curDomRange.endPath));
|
|
208504
208402
|
if (hoeditorfactory.drawTree.selectRange.beginRangeSelect) {
|
|
208505
208403
|
if (startPos && startPos.page && endPos.dline === startPos.dline && endPos.index === startPos.index && endPos.path === startPos.path) {
|
|
208506
208404
|
hoeditorfactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
@@ -211327,7 +211225,7 @@ var SignNode = __webpack_require__(24701);
|
|
|
211327
211225
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
211328
211226
|
var ParagraphNode = __webpack_require__(67945);
|
|
211329
211227
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
211330
|
-
/* harmony default export */ var version = ('2.0.
|
|
211228
|
+
/* harmony default export */ var version = ('2.0.116');
|
|
211331
211229
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
211332
211230
|
var PoperTipText = __webpack_require__(14954);
|
|
211333
211231
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -211674,9 +211572,7 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
211674
211572
|
this.textStyles.changeCount++;
|
|
211675
211573
|
this.$emit('setFontStyles', {});
|
|
211676
211574
|
} else if (e.clickType === 'rightClick' && node instanceof SignNode/* SignNode */.N && node.type == 3) {
|
|
211677
|
-
if (hoEditorFactory.drawTree.paintStatus === 1) {
|
|
211678
|
-
console.log(node);
|
|
211679
|
-
}
|
|
211575
|
+
if (hoEditorFactory.drawTree.paintStatus === 1) {}
|
|
211680
211576
|
}
|
|
211681
211577
|
}
|
|
211682
211578
|
return true;
|
|
@@ -211718,7 +211614,7 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
211718
211614
|
return;
|
|
211719
211615
|
}
|
|
211720
211616
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
211721
|
-
|
|
211617
|
+
|
|
211722
211618
|
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.created_date) return false;
|
|
211723
211619
|
this.$emit('dblNodeClick', {
|
|
211724
211620
|
node: this.getCurrentSelectNode,
|
|
@@ -211820,7 +211716,6 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
211820
211716
|
* 3. 单元格下拉列表项只有一项时
|
|
211821
211717
|
*/
|
|
211822
211718
|
handleCellNode: function handleCellNode(node, cellNode, pageIndex) {
|
|
211823
|
-
console.log(node);
|
|
211824
211719
|
var colProperty = cellNode.table.colInfos[cellNode.row.indexOf(cellNode)].colProperty;
|
|
211825
211720
|
var cellProperty = cellNode.cellProperty;
|
|
211826
211721
|
var isCreatePoper = true;
|
|
@@ -211903,7 +211798,6 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
211903
211798
|
node = npNode;
|
|
211904
211799
|
}
|
|
211905
211800
|
}
|
|
211906
|
-
console.log(node);
|
|
211907
211801
|
// psDesign, // 设计状态
|
|
211908
211802
|
// psEdit, // 编辑状态
|
|
211909
211803
|
// psPreview, // 打印预览
|
|
@@ -213676,7 +213570,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
213676
213570
|
return tmp;
|
|
213677
213571
|
} else {
|
|
213678
213572
|
for (var i = 0; i < jnode.childNodes.length; i++) {
|
|
213679
|
-
console.log("index:", i);
|
|
213680
213573
|
if (jnode.childNodes[i].nodeName.toLowerCase() == "img") {
|
|
213681
213574
|
var src = jnode.childNodes[i].src;
|
|
213682
213575
|
if (src && src.toString().substring(src.length - 4, src.length) === ".svg") {
|
|
@@ -213733,7 +213626,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
213733
213626
|
style = style.split(":").join('":"'); //替换:
|
|
213734
213627
|
style = style.split("-").join("_"); //替换-
|
|
213735
213628
|
style = "{\"".concat(style, "\"}");
|
|
213736
|
-
console.log(style);
|
|
213737
213629
|
var jsondata = JSON.parse(style);
|
|
213738
213630
|
return jsondata;
|
|
213739
213631
|
}
|
|
@@ -213879,7 +213771,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
213879
213771
|
key: "TransHTMLIMG",
|
|
213880
213772
|
value: function TransHTMLIMG(jnode, style) {
|
|
213881
213773
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
213882
|
-
console.log("img", jnode);
|
|
213883
213774
|
var src = jquery_default()(jnode).attr("src") || "";
|
|
213884
213775
|
if (src.toString().substring(0, 5) == "file:") {
|
|
213885
213776
|
return [];
|
|
@@ -214076,8 +213967,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214076
213967
|
}, {
|
|
214077
213968
|
key: "TransHTMLTABLE",
|
|
214078
213969
|
value: function TransHTMLTABLE(jnode, style) {
|
|
214079
|
-
console.log(jnode);
|
|
214080
|
-
console.log(jquery_default()(jnode).children().children());
|
|
214081
213970
|
var pnode = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath);
|
|
214082
213971
|
if (pnode instanceof TableNode/* TableNode */.Fh || pnode instanceof CellNode/* CellNode */.D) {
|
|
214083
213972
|
message_box_default().alert("不能在表格中插入表格");
|
|
@@ -214172,7 +214061,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214172
214061
|
key: "TransHTMLSPAN",
|
|
214173
214062
|
value: function TransHTMLSPAN(jnode, style) {
|
|
214174
214063
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
214175
|
-
console.log("font or span ===> ", jnode);
|
|
214176
214064
|
if (jnode.childNodes.length == 0) {
|
|
214177
214065
|
var node = this.generateTextNode(jquery_default()(jnode).text(), styleobj);
|
|
214178
214066
|
if (node) return [node];else return [];
|
|
@@ -214191,7 +214079,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214191
214079
|
key: "TransHTMLP",
|
|
214192
214080
|
value: function TransHTMLP(jnode, style) {
|
|
214193
214081
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
214194
|
-
console.log(jnode);
|
|
214195
214082
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
214196
214083
|
var tmp = new Array();
|
|
214197
214084
|
var textstyle = this.HTMLStyleToParsStyle(styleobj);
|
|
@@ -214201,8 +214088,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214201
214088
|
//hoEditorFactory.docTree.curParaNo
|
|
214202
214089
|
);
|
|
214203
214090
|
|
|
214204
|
-
console.log("段落", node);
|
|
214205
|
-
console.log("样式", node.combineParagraph);
|
|
214206
214091
|
tmp.push(node);
|
|
214207
214092
|
if (jnode.childNodes.length == 0) {
|
|
214208
214093
|
if (jnode.nodeName.toLowerCase() === "br") {
|
|
@@ -214340,7 +214225,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214340
214225
|
}, {
|
|
214341
214226
|
key: "copyCellNode",
|
|
214342
214227
|
value: function copyCellNode(jnode, table, r, c) {
|
|
214343
|
-
console.log(jnode);
|
|
214344
214228
|
var node = table.rows[r][c];
|
|
214345
214229
|
if (node) {
|
|
214346
214230
|
node.rowSpan = parseInt(jquery_default()(jnode).attr('rowSpan') || '1') || 1;
|
|
@@ -216981,8 +216865,6 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
216981
216865
|
if (recs) this.toJSON(recs);
|
|
216982
216866
|
var jsondata = JSON.parse(this._jsondata);
|
|
216983
216867
|
if (!jsondata) return "";
|
|
216984
|
-
console.log("打印");
|
|
216985
|
-
console.log(jsondata);
|
|
216986
216868
|
return hoEditorFactory.toHtmlConverter.Exec(this._hoEditorFactoryID, jsondata);
|
|
216987
216869
|
}
|
|
216988
216870
|
}, {
|
|
@@ -216993,7 +216875,6 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
216993
216875
|
if (!jsondata) return "";
|
|
216994
216876
|
var paragraphText = "";
|
|
216995
216877
|
var json2text = function json2text(data) {
|
|
216996
|
-
console.log(data);
|
|
216997
216878
|
for (var i = 0; i < data.length; i++) {
|
|
216998
216879
|
var item = data[i];
|
|
216999
216880
|
if (item["nodeType"]) {
|
|
@@ -217026,7 +216907,6 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
217026
216907
|
};
|
|
217027
216908
|
|
|
217028
216909
|
json2text(jsondata);
|
|
217029
|
-
console.log("txt", paragraphText);
|
|
217030
216910
|
return paragraphText;
|
|
217031
216911
|
}
|
|
217032
216912
|
}]);
|
|
@@ -217235,9 +217115,8 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
217235
217115
|
}
|
|
217236
217116
|
} else {
|
|
217237
217117
|
//在复合节点当中
|
|
217238
|
-
|
|
217118
|
+
|
|
217239
217119
|
var ancestor = path1.slice(0, index).join("/");
|
|
217240
|
-
console.log("ancestor", ancestor);
|
|
217241
217120
|
var _tmp = hoEditorFactory.docTree.findNodePositionByPath(ancestor).node;
|
|
217242
217121
|
if (!_tmp) {
|
|
217243
217122
|
throw Exception/* Exception.NodeNotFound */.P.NodeNotFound();
|
|
@@ -217662,7 +217541,7 @@ var TOHTMLConverter = /*#__PURE__*/function () {
|
|
|
217662
217541
|
//console.log(jnode);
|
|
217663
217542
|
for (var i = 0; i < jnode.childNodes.item.length; i++) {
|
|
217664
217543
|
//这里只分析Row
|
|
217665
|
-
|
|
217544
|
+
|
|
217666
217545
|
var item = this.iterator.next();
|
|
217667
217546
|
if (item.done) break;
|
|
217668
217547
|
item.value["style"] = jnode.rowInfos.item[i];
|
|
@@ -217679,7 +217558,7 @@ var TOHTMLConverter = /*#__PURE__*/function () {
|
|
|
217679
217558
|
var content = "";
|
|
217680
217559
|
for (var n = 0; n < jnode.childNodes.item.length; n++) {
|
|
217681
217560
|
//这里只分析Cell
|
|
217682
|
-
|
|
217561
|
+
|
|
217683
217562
|
var item = this.iterator.next();
|
|
217684
217563
|
if (item.done) break;
|
|
217685
217564
|
item.value["style"] = jnode.colInfos.item[n];
|
|
@@ -218508,7 +218387,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218508
218387
|
}, {
|
|
218509
218388
|
key: "insertTableRowAbove",
|
|
218510
218389
|
value: function insertTableRowAbove(count) {
|
|
218511
|
-
console.log('insertTableRowAbove =====>', count);
|
|
218512
218390
|
var _curDomRange = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(); //获取当前选中区域
|
|
218513
218391
|
var startPath = _curDomRange.normalize().startPath;
|
|
218514
218392
|
var endPath = _curDomRange.normalize().endPath;
|
|
@@ -218524,7 +218402,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218524
218402
|
}, {
|
|
218525
218403
|
key: "insertTableRowBelow",
|
|
218526
218404
|
value: function insertTableRowBelow(count) {
|
|
218527
|
-
console.log('insertTableRowBelow =====>', count);
|
|
218528
218405
|
var _curDomRange = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(); //获取当前选中区域
|
|
218529
218406
|
var startPath = _curDomRange.normalize().startPath;
|
|
218530
218407
|
var endPath = _curDomRange.normalize().endPath;
|
|
@@ -218540,7 +218417,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218540
218417
|
}, {
|
|
218541
218418
|
key: "insertTableColLeft",
|
|
218542
218419
|
value: function insertTableColLeft(count) {
|
|
218543
|
-
console.log('insertTableColLeft =====>', count);
|
|
218544
218420
|
var _curDomRange = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(); //获取当前选中区域
|
|
218545
218421
|
var startPath = _curDomRange.normalize().startPath;
|
|
218546
218422
|
var endPath = _curDomRange.normalize().endPath;
|
|
@@ -218556,7 +218432,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218556
218432
|
}, {
|
|
218557
218433
|
key: "insertTableColRight",
|
|
218558
218434
|
value: function insertTableColRight(count) {
|
|
218559
|
-
console.log('insertTableColRight =====>', count);
|
|
218560
218435
|
var _curDomRange = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(); //获取当前选中区域
|
|
218561
218436
|
var startPath = _curDomRange.normalize().startPath;
|
|
218562
218437
|
var endPath = _curDomRange.normalize().endPath;
|
|
@@ -219421,7 +219296,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219421
219296
|
}, {
|
|
219422
219297
|
key: "openLocalFiles",
|
|
219423
219298
|
value: function openLocalFiles(file, callback) {
|
|
219424
|
-
console.log(file);
|
|
219425
219299
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219426
219300
|
hoEditorFactory.isThrowError = false;
|
|
219427
219301
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
@@ -219492,9 +219366,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219492
219366
|
|
|
219493
219367
|
if (type === 'json') {
|
|
219494
219368
|
ret = hoEditorFactory.structureConvert.doc2Xml('json', undefined, true);
|
|
219495
|
-
console.log(ret);
|
|
219496
|
-
// ret = JSON.stringify(ret);
|
|
219497
|
-
console.log(pretty_data);
|
|
219498
219369
|
ret = pretty_data.pd.json(ret);
|
|
219499
219370
|
}
|
|
219500
219371
|
return ret;
|
|
@@ -219763,7 +219634,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219763
219634
|
value: function setReviewLevelColor(option) {
|
|
219764
219635
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219765
219636
|
var opt = new Option(this.hoEditorFactoryID);
|
|
219766
|
-
console.log((0,objectSpread2/* default */.Z)({}, option));
|
|
219767
219637
|
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2, option.signColor);
|
|
219768
219638
|
hoEditorFactory.option = opt;
|
|
219769
219639
|
}
|
|
@@ -219919,7 +219789,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219919
219789
|
key: "saveAsPDF",
|
|
219920
219790
|
value: function saveAsPDF(pdfName, type, isSpecial) {
|
|
219921
219791
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219922
|
-
console.log(pdfName, type, isSpecial);
|
|
219923
219792
|
hoEditorFactory.printController.saveAsPDF(pdfName, type, isSpecial);
|
|
219924
219793
|
}
|
|
219925
219794
|
/**
|
|
@@ -220697,7 +220566,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220697
220566
|
hoEditorFactory.subDocManger.headerDocTree.push(newHeader);
|
|
220698
220567
|
hoEditorFactory.drawTree.initAreaFirstNode(arrNodes, hoEditorFactory.drawTree.headerDNodes[headerIndex]);
|
|
220699
220568
|
hoEditorFactory.docTree.curDomRange.setSamePath(arootPath + '/0');
|
|
220700
|
-
console.log('解析 header 节点 ==> ', nodes);
|
|
220701
220569
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
220702
220570
|
newHeader.subDocNodes[0].paraNo = nodes[0].paraNo;
|
|
220703
220571
|
newHeader.subDocNodes[0].styleIndex = nodes[0].styleIndex;
|
|
@@ -221110,7 +220978,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221110
220978
|
xmlobj.main[0].printAsSinglePage = 'true';
|
|
221111
220979
|
xmlobj.main[0].docId = strID;
|
|
221112
220980
|
mergeObject.pageSettingsTree.push(xmlobj.pageSettings);
|
|
221113
|
-
console.log(xmlobj);
|
|
221114
220981
|
hoEditorFactory.printStatus.pageSettingMap.set(strID, {
|
|
221115
220982
|
widthMm: Number(xmlobj.pageSettings.widthMm),
|
|
221116
220983
|
heightMm: Number(xmlobj.pageSettings.heightMm),
|
|
@@ -222547,9 +222414,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222547
222414
|
var startPath = curDomRange.normalize().startPath;
|
|
222548
222415
|
var endPath = curDomRange.normalize().endPath;
|
|
222549
222416
|
var node = curDomRange.npEnd.node;
|
|
222550
|
-
console.log(hoEditorFactory.drawTree.paintStatus);
|
|
222551
222417
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
222552
|
-
console.log((0,objectSpread2/* default */.Z)({}, node));
|
|
222553
222418
|
if (node.isTemplate) {
|
|
222554
222419
|
if (node.imgSrc !== '' || node.fingerPrintSrc !== '') {
|
|
222555
222420
|
this.deleteNode(node);
|
|
@@ -222565,7 +222430,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222565
222430
|
}
|
|
222566
222431
|
}, 0);
|
|
222567
222432
|
} else {
|
|
222568
|
-
console.log('111');
|
|
222569
222433
|
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, '患者签名', '', '', imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
222570
222434
|
setTimeout(function () {
|
|
222571
222435
|
callback && callback();
|
|
@@ -222912,7 +222776,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222912
222776
|
}
|
|
222913
222777
|
};
|
|
222914
222778
|
var callback = function callback(aiText) {
|
|
222915
|
-
console.log(aiText);
|
|
222916
222779
|
var aiInfo = hoEditorFactory.drawTree.caret.aiInfo;
|
|
222917
222780
|
hoEditorFactory.drawTree.caret.aiInfo.lastPosition = [aiInfo.pageIndex, aiInfo.x, aiInfo.y];
|
|
222918
222781
|
hoEditorFactory.drawTree.caret.aiInfo.aiText = aiText;
|
|
@@ -223077,7 +222940,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223077
222940
|
value.customProperty.ishandle = status == undefined ? '1' : status;
|
|
223078
222941
|
commentsMap.set(key, value);
|
|
223079
222942
|
});
|
|
223080
|
-
console.log(commentsMap);
|
|
223081
222943
|
drawTree.commentsMap = commentsMap;
|
|
223082
222944
|
}
|
|
223083
222945
|
}, {
|
|
@@ -223796,7 +223658,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223796
223658
|
xmlRoot = hoEditorFactory.unitConvert.replaceAll(xmlRoot, '</TempNode>', '');
|
|
223797
223659
|
return xmlRoot;
|
|
223798
223660
|
var xml = XmlBeauty_xmlBeauty(xmlRoot);
|
|
223799
|
-
console.log(xml);
|
|
223800
223661
|
return xml; //xmlBeauty(xmlRoot);
|
|
223801
223662
|
}
|
|
223802
223663
|
}]);
|
|
@@ -224657,7 +224518,6 @@ var EditController = /*#__PURE__*/function () {
|
|
|
224657
224518
|
}, {
|
|
224658
224519
|
key: "editKeyCopy",
|
|
224659
224520
|
value: function editKeyCopy(e) {
|
|
224660
|
-
console.log(e);
|
|
224661
224521
|
if (!e || !e.clipboardData) {
|
|
224662
224522
|
return;
|
|
224663
224523
|
}
|
|
@@ -225638,7 +225498,6 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
225638
225498
|
this._waitSavepdf = true;
|
|
225639
225499
|
return;
|
|
225640
225500
|
}
|
|
225641
|
-
console.log('saveAsPDF');
|
|
225642
225501
|
var fileType = type ? type : 'pdf';
|
|
225643
225502
|
var fileName = pdfName ? pdfName : hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
225644
225503
|
// 保存打印前文档状态 和 内容
|
|
@@ -225670,7 +225529,6 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
225670
225529
|
// hotfixes: ["px_scaling"],
|
|
225671
225530
|
};
|
|
225672
225531
|
|
|
225673
|
-
console.log(format);
|
|
225674
225532
|
// const PDF = new jsPDF(orientation, "px", [hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm], false, true, );
|
|
225675
225533
|
var PDF = new jspdf/* default */.ZP(options);
|
|
225676
225534
|
// PDF.setFont("SimSun");
|
|
@@ -225748,14 +225606,13 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
225748
225606
|
_context3.next = 7;
|
|
225749
225607
|
return hoEditorFactory.drawTree.rebuildAllDrawLine(false, resolve);
|
|
225750
225608
|
case 7:
|
|
225751
|
-
_context3.next =
|
|
225609
|
+
_context3.next = 12;
|
|
225752
225610
|
break;
|
|
225753
225611
|
case 9:
|
|
225754
225612
|
_context3.prev = 9;
|
|
225755
225613
|
_context3.t0 = _context3["catch"](0);
|
|
225756
|
-
console.log('变更状态错误');
|
|
225757
225614
|
reject(false);
|
|
225758
|
-
case
|
|
225615
|
+
case 12:
|
|
225759
225616
|
case "end":
|
|
225760
225617
|
return _context3.stop();
|
|
225761
225618
|
}
|
|
@@ -225790,7 +225647,6 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
225790
225647
|
});
|
|
225791
225648
|
}
|
|
225792
225649
|
}).then(function (res) {
|
|
225793
|
-
console.log('打印处理结果', res);
|
|
225794
225650
|
if (res === 'printend') {
|
|
225795
225651
|
if (callback) {
|
|
225796
225652
|
callback(hoEditorFactory.printStatus.printRecord.last());
|
|
@@ -225815,7 +225671,6 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
225815
225671
|
});
|
|
225816
225672
|
hoEditorFactory.vueController.rebuildAll(true);
|
|
225817
225673
|
}
|
|
225818
|
-
console.log('打印后状态 ==> ', hoEditorFactory.drawTree.paintStatus);
|
|
225819
225674
|
}
|
|
225820
225675
|
});
|
|
225821
225676
|
}
|
|
@@ -226004,18 +225859,17 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
226004
225859
|
case 17:
|
|
226005
225860
|
lastPrintPosition = _context5.sent;
|
|
226006
225861
|
if (!lastPrintPosition) {
|
|
226007
|
-
_context5.next =
|
|
225862
|
+
_context5.next = 20;
|
|
226008
225863
|
break;
|
|
226009
225864
|
}
|
|
226010
|
-
console.log(lastPrintPosition);
|
|
226011
225865
|
return _context5.abrupt("return", {
|
|
226012
225866
|
startPageNum: lastPrintPosition[0],
|
|
226013
225867
|
pageNum: lastPrintPosition[1],
|
|
226014
225868
|
positionY: lastPrintPosition[2]
|
|
226015
225869
|
});
|
|
226016
|
-
case
|
|
225870
|
+
case 20:
|
|
226017
225871
|
return _context5.abrupt("return", null);
|
|
226018
|
-
case
|
|
225872
|
+
case 21:
|
|
226019
225873
|
case "end":
|
|
226020
225874
|
return _context5.stop();
|
|
226021
225875
|
}
|
|
@@ -226084,7 +225938,6 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
226084
225938
|
case 0:
|
|
226085
225939
|
xmlIndex++;
|
|
226086
225940
|
if (xmlIndex <= xmlList.length - 1) {
|
|
226087
|
-
console.log(xmlList[xmlIndex][2]);
|
|
226088
225941
|
if (xmlList[xmlIndex][2]) {
|
|
226089
225942
|
// 循环到病程记录时
|
|
226090
225943
|
if (position == undefined) {
|
|
@@ -226820,7 +226673,6 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
226820
226673
|
// });
|
|
226821
226674
|
(_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener('message', function (e) {
|
|
226822
226675
|
var res = JSON.parse(e.data);
|
|
226823
|
-
console.log('res-----', res);
|
|
226824
226676
|
if (res.result == true && res.res.cmd == 'GetList') {
|
|
226825
226677
|
var _this$callBack;
|
|
226826
226678
|
_this._localXmlList = res.res.EMR;
|
|
@@ -226831,7 +226683,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
226831
226683
|
_this._localXmlContent = res.res.EMR;
|
|
226832
226684
|
(_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
|
|
226833
226685
|
}
|
|
226834
|
-
if (res.res.cmd == 'save')
|
|
226686
|
+
if (res.res.cmd == 'save') {} else {
|
|
226835
226687
|
return false;
|
|
226836
226688
|
}
|
|
226837
226689
|
});
|
|
@@ -226924,9 +226776,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
226924
226776
|
key: "clearLocalStorage",
|
|
226925
226777
|
value: function clearLocalStorage() {
|
|
226926
226778
|
var _this3 = this;
|
|
226927
|
-
this._ho_web.clear().then(function () {
|
|
226928
|
-
console.log(_this3._ho_web);
|
|
226929
|
-
});
|
|
226779
|
+
this._ho_web.clear().then(function () {});
|
|
226930
226780
|
}
|
|
226931
226781
|
}, {
|
|
226932
226782
|
key: "autoSaveLocalStorage",
|
|
@@ -226955,7 +226805,6 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
226955
226805
|
}
|
|
226956
226806
|
}
|
|
226957
226807
|
};
|
|
226958
|
-
console.log('SaveEmrData', data);
|
|
226959
226808
|
window.chrome.webview.postMessage(data);
|
|
226960
226809
|
}
|
|
226961
226810
|
} else {
|
|
@@ -229131,7 +228980,6 @@ var getFormula = function getFormula(tableFormular) {
|
|
|
229131
228980
|
canAddRow: tableNode.tableProperty.canAddRow,
|
|
229132
228981
|
canDeleteRow: tableNode.tableProperty.canDeleteRow
|
|
229133
228982
|
};
|
|
229134
|
-
console.log(node);
|
|
229135
228983
|
if (node instanceof TableFormula/* TableFormula */.N) {
|
|
229136
228984
|
nodeInfoes.tableFormulaType = getFormula(node);
|
|
229137
228985
|
}
|
|
@@ -229326,9 +229174,7 @@ var getFormula = function getFormula(tableFormular) {
|
|
|
229326
229174
|
* 非文档区域右键事件
|
|
229327
229175
|
*/
|
|
229328
229176
|
blankAreaRightClick: function blankAreaRightClick(e) {
|
|
229329
|
-
if (e.target instanceof HTMLDivElement && e.target.className === 'editor') {
|
|
229330
|
-
console.log('非文档区域右键点击触发事件');
|
|
229331
|
-
}
|
|
229177
|
+
if (e.target instanceof HTMLDivElement && e.target.className === 'editor') {}
|
|
229332
229178
|
},
|
|
229333
229179
|
getTableNodeInfo: function getTableNodeInfo(nodes) {
|
|
229334
229180
|
var info = null;
|
|
@@ -229392,7 +229238,6 @@ var getFormula = function getFormula(tableFormular) {
|
|
|
229392
229238
|
if (v.parent.pageIndex === currentPageIndex) {
|
|
229393
229239
|
tableBounds.height = v.dHeight;
|
|
229394
229240
|
tableBounds.y = dPage.drawMainDoc.y + v.y;
|
|
229395
|
-
console.log(dPage.drawMainDoc.y, v.y, (0,objectSpread2/* default */.Z)({}, v));
|
|
229396
229241
|
if (drawPageCells.length === drawPageTables.length) {
|
|
229397
229242
|
tableBounds.cellHeight = drawPageCells[key].dHeight;
|
|
229398
229243
|
}
|
|
@@ -229662,7 +229507,6 @@ var ToolBarvue_type_template_id_4c8d79a6_staticRenderFns = [];
|
|
|
229662
229507
|
},
|
|
229663
229508
|
methods: {
|
|
229664
229509
|
selectedSure: function selectedSure(style) {
|
|
229665
|
-
console.log(style);
|
|
229666
229510
|
this.$emit('openExpress', style);
|
|
229667
229511
|
},
|
|
229668
229512
|
dropdownChange: function dropdownChange(value) {
|
|
@@ -230782,7 +230626,6 @@ var es_array_map = __webpack_require__(21249);
|
|
|
230782
230626
|
*/
|
|
230783
230627
|
lineHeightClick: function lineHeightClick(item) {
|
|
230784
230628
|
this.lineHeightVisible = false;
|
|
230785
|
-
console.log(item);
|
|
230786
230629
|
this.vueController.setLineHeight(item);
|
|
230787
230630
|
},
|
|
230788
230631
|
closeToolMenus: function closeToolMenus(e) {
|
|
@@ -231866,7 +231709,6 @@ var SpecialChars_component = (0,componentNormalizer/* default */.Z)(
|
|
|
231866
231709
|
if (format === 'more') {
|
|
231867
231710
|
this.$emit('setModal', ['date', 'add', '']);
|
|
231868
231711
|
} else {
|
|
231869
|
-
console.log(this.vueController);
|
|
231870
231712
|
var params = {
|
|
231871
231713
|
id: this.vueController.generateID('DT'),
|
|
231872
231714
|
name: '',
|
|
@@ -232924,7 +232766,6 @@ var HoColorPicker = __webpack_require__(9124);
|
|
|
232924
232766
|
}
|
|
232925
232767
|
} else {
|
|
232926
232768
|
if (Object.prototype.hasOwnProperty.call(_this.property, key)) {
|
|
232927
|
-
console.log(key);
|
|
232928
232769
|
_this.property[key] = updateNode[key];
|
|
232929
232770
|
}
|
|
232930
232771
|
}
|
|
@@ -233214,7 +233055,6 @@ var HistoryLogsvue_type_template_id_af05e224_scoped_true_staticRenderFns = [];
|
|
|
233214
233055
|
logs: log.logs
|
|
233215
233056
|
});
|
|
233216
233057
|
});
|
|
233217
|
-
console.log('____this.historyLog', _this2.historyLog);
|
|
233218
233058
|
});
|
|
233219
233059
|
},
|
|
233220
233060
|
openHistoryLogs: function openHistoryLogs() {
|
|
@@ -233435,9 +233275,7 @@ var HistoryLogs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
233435
233275
|
/**
|
|
233436
233276
|
* 保存
|
|
233437
233277
|
*/
|
|
233438
|
-
saveFile: function saveFile() {
|
|
233439
|
-
console.log("保存");
|
|
233440
|
-
},
|
|
233278
|
+
saveFile: function saveFile() {},
|
|
233441
233279
|
/**
|
|
233442
233280
|
* 撤销
|
|
233443
233281
|
*/
|
|
@@ -234930,7 +234768,6 @@ var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
|
234930
234768
|
return v;
|
|
234931
234769
|
})
|
|
234932
234770
|
};
|
|
234933
|
-
console.log(ftScoreMapping);
|
|
234934
234771
|
this.vueController.insertTableFormula(JSON.stringify(ftScoreMapping).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping);
|
|
234935
234772
|
}
|
|
234936
234773
|
},
|
|
@@ -235297,9 +235134,9 @@ var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
|
235297
235134
|
}
|
|
235298
235135
|
}));
|
|
235299
235136
|
// EXTERNAL MODULE: ./src/components/toolbar/tab/HoTab.vue + 6 modules
|
|
235300
|
-
var HoTab = __webpack_require__(
|
|
235301
|
-
// EXTERNAL MODULE: ./src/components/toolbar/tab/TabPane.vue +
|
|
235302
|
-
var TabPane = __webpack_require__(
|
|
235137
|
+
var HoTab = __webpack_require__(10105);
|
|
235138
|
+
// EXTERNAL MODULE: ./src/components/toolbar/tab/TabPane.vue + 3 modules
|
|
235139
|
+
var TabPane = __webpack_require__(49416);
|
|
235303
235140
|
;// 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/toolbar/ToolBar.vue?vue&type=script&lang=js&
|
|
235304
235141
|
|
|
235305
235142
|
|
|
@@ -235770,12 +235607,11 @@ var TabPane = __webpack_require__(93710);
|
|
|
235770
235607
|
printed: function printed() {
|
|
235771
235608
|
var _this4 = this;
|
|
235772
235609
|
// 非打印预览状态
|
|
235773
|
-
|
|
235610
|
+
|
|
235774
235611
|
if (!this.isPrinted) {
|
|
235775
235612
|
// 打开设置弹窗
|
|
235776
235613
|
this.$emit('setModalStatus', ['ho-print', 'add', '']);
|
|
235777
235614
|
} else {
|
|
235778
|
-
console.log(!this.vueController.getIsSetFont());
|
|
235779
235615
|
if (!this.vueController.getIsSetFont()) {
|
|
235780
235616
|
this.vueController.hoLocalStorage().loadFontString().then(function (font) {
|
|
235781
235617
|
if (font) {
|
|
@@ -236313,7 +236149,6 @@ var TableFeaturesvue_type_template_id_2e8ea88b_staticRenderFns = [];
|
|
|
236313
236149
|
var className = "." + this.className + " .insert-rows-columns-top";
|
|
236314
236150
|
var elements = document.querySelector(className);
|
|
236315
236151
|
if (!elements.contains(e.target)) {
|
|
236316
|
-
console.log("111111");
|
|
236317
236152
|
this.$emit("closeMenu");
|
|
236318
236153
|
this.vueController.insertTableRowAbove(this.topRows);
|
|
236319
236154
|
}
|
|
@@ -236480,7 +236315,6 @@ var popper = __webpack_require__(95551);
|
|
|
236480
236315
|
this.isIncludes = (_this$rightNode = this.rightNode) === null || _this$rightNode === void 0 ? void 0 : _this$rightNode.labelNode().isIncludes;
|
|
236481
236316
|
// this.patientID = this.vueController?.getDocProperty().patientID;
|
|
236482
236317
|
this.isDeisgn = this.rightNode.paintStatus;
|
|
236483
|
-
console.log(this.isDeisgn == 0, this.isDeisgn !== 0, this.isDeisgn != 0);
|
|
236484
236318
|
var virtualElement = {
|
|
236485
236319
|
getBoundingClientRect: this.generateGetBoundingClientRect((_this$rightNode2 = this.rightNode) === null || _this$rightNode2 === void 0 ? void 0 : _this$rightNode2.rightPosition)
|
|
236486
236320
|
};
|
|
@@ -236998,7 +236832,6 @@ function install(Vue) {
|
|
|
236998
236832
|
Vue.directive('clickOnce', {
|
|
236999
236833
|
inserted: function inserted(el, binding) {
|
|
237000
236834
|
el.addEventListener('click', function () {
|
|
237001
|
-
console.log(el.disabled);
|
|
237002
236835
|
if (!el.disabled) {
|
|
237003
236836
|
el.disabled = true;
|
|
237004
236837
|
setTimeout(function () {
|