hoeditor-web 3.1.158 → 3.1.159
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.css +1 -18038
- package/lib/hoeditor.umd.js +19 -183
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -17134,7 +17134,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
17134
17134
|
|
|
17135
17135
|
/***/ }),
|
|
17136
17136
|
|
|
17137
|
-
/***/
|
|
17137
|
+
/***/ 19363:
|
|
17138
17138
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17139
17139
|
|
|
17140
17140
|
"use strict";
|
|
@@ -17154,7 +17154,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
17154
17154
|
var es_regexp_exec = __webpack_require__(74916);
|
|
17155
17155
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
17156
17156
|
var es_string_replace = __webpack_require__(15306);
|
|
17157
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=
|
|
17157
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=7a33549e&
|
|
17158
17158
|
|
|
17159
17159
|
|
|
17160
17160
|
|
|
@@ -17420,7 +17420,7 @@ var render = function render() {
|
|
|
17420
17420
|
};
|
|
17421
17421
|
var staticRenderFns = [];
|
|
17422
17422
|
|
|
17423
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=
|
|
17423
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=7a33549e&
|
|
17424
17424
|
|
|
17425
17425
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
17426
17426
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -17804,21 +17804,10 @@ var popper = __webpack_require__(95551);
|
|
|
17804
17804
|
this.isCanSearch = true;
|
|
17805
17805
|
}
|
|
17806
17806
|
var _height = this.poperList.length * 36 + 72;
|
|
17807
|
-
// if (this.isAllowMultiSelect) height += 36;
|
|
17808
17807
|
if (this.isCanSearch) _height += 28;
|
|
17809
|
-
// if (height < 360) {
|
|
17810
|
-
// let posStyle = this.computedPoperPosition(height, this.poperPos);
|
|
17811
|
-
// delete posStyle['height'];
|
|
17812
|
-
// this.posStyle = posStyle;
|
|
17813
|
-
// } else {
|
|
17814
|
-
// let posStyle = this.computedPoperPosition(360, this.poperPos);
|
|
17815
|
-
// delete posStyle['height'];
|
|
17816
|
-
// this.posStyle = posStyle;
|
|
17817
|
-
// }
|
|
17818
17808
|
}
|
|
17819
17809
|
},
|
|
17820
17810
|
getTime: function getTime(val) {
|
|
17821
|
-
this.date = val.value;
|
|
17822
17811
|
if (val.type == 'dblclick') {
|
|
17823
17812
|
this.sureDate();
|
|
17824
17813
|
}
|
|
@@ -17930,10 +17919,10 @@ var popper = __webpack_require__(95551);
|
|
|
17930
17919
|
});
|
|
17931
17920
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
17932
17921
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
17933
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
17922
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=7a33549e&prod&lang=less&
|
|
17934
17923
|
// extracted by mini-css-extract-plugin
|
|
17935
17924
|
|
|
17936
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
17925
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=7a33549e&prod&lang=less&
|
|
17937
17926
|
|
|
17938
17927
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
17939
17928
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -70641,33 +70630,8 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70641
70630
|
_this._dBaseY = 0;
|
|
70642
70631
|
_this._docHeight = hoEditorFactory.defaultLineHeight;
|
|
70643
70632
|
_this._dHeight = _this._docHeight;
|
|
70644
|
-
// const shape = new createjs.Shape();
|
|
70645
|
-
// shape.x = 0;
|
|
70646
|
-
// shape.y = 0;
|
|
70647
|
-
// shape.graphics
|
|
70648
|
-
// .clear()
|
|
70649
|
-
// .beginFill("#FFEE90")
|
|
70650
|
-
// .drawRect(
|
|
70651
|
-
// 0,
|
|
70652
|
-
// 0,
|
|
70653
|
-
// this._dWidth,
|
|
70654
|
-
// this._dHeight + this.paragraphNode.combineParagraph.lineSpace
|
|
70655
|
-
// );
|
|
70656
|
-
// shape.alpha = 0.5;
|
|
70657
|
-
// // const y = this._dTop;
|
|
70658
|
-
// // this.removeAllChildren();
|
|
70659
|
-
// this.addChildAt(shape, 0);
|
|
70660
|
-
// this.setBounds(x,y,width,gLineHeight);
|
|
70661
70633
|
return _this;
|
|
70662
70634
|
}
|
|
70663
|
-
// public appendItem(ditem: DrawLineNode){
|
|
70664
|
-
// this.addChild(ditem);
|
|
70665
|
-
// const rect= ditem.getBounds();
|
|
70666
|
-
// this._actualWidth=this._actualWidth+rect.width+g_CharSpace;
|
|
70667
|
-
// if (this._height<rect.height) {x
|
|
70668
|
-
// this._height=rect.height;
|
|
70669
|
-
// }
|
|
70670
|
-
// }
|
|
70671
70635
|
(0,createClass/* default */.Z)(DrawLine, [{
|
|
70672
70636
|
key: "dWidth",
|
|
70673
70637
|
get: function get() {
|
|
@@ -70911,17 +70875,11 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70911
70875
|
var iCount = 0; //文本节点数量
|
|
70912
70876
|
//FIXME:去掉左边距后真实的宽度,后续还要去掉margin的的left right
|
|
70913
70877
|
var lwidth = this._dWidth;
|
|
70914
|
-
// this.paragraphNode.getParagraphLeftWidth()[1] - this.paragraphNode.combineParagraph.leftMarginPixes
|
|
70915
|
-
// - this.paragraphNode.combineParagraph.rightMarginPixes;
|
|
70916
|
-
// if (this.paragraphNode.parentNode instanceof TextInputFieldNode)
|
|
70917
|
-
//this.x = this.paragraphNode.getParagraphLeftWidth()[0] + this.paragraphNode.combineParagraph.leftMarginPixes;
|
|
70918
|
-
//else this.x = this.paragraphNode.combineParagraph.leftMarginPixes
|
|
70919
70878
|
//文字摆放开始位置
|
|
70920
70879
|
//this.paragraphNode.combineParagraph.leftMarginPixes;
|
|
70921
70880
|
//字间距,分散对齐:计算宽度时候使用默认字间距
|
|
70922
70881
|
var charspace = this._paragraphNode.combineParagraph.charSpace;
|
|
70923
70882
|
var spacing = 0;
|
|
70924
|
-
var imageHeight = 0;
|
|
70925
70883
|
var maxFontHeight = 0;
|
|
70926
70884
|
//1.返回dWidth并计算actualWidth(实际需要占用的宽度),dHeight
|
|
70927
70885
|
for (var i = 0; i < this.drawItems.length; i++) {
|
|
@@ -70947,21 +70905,14 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70947
70905
|
dWidth = this.drawItems[i].dWidth;
|
|
70948
70906
|
iCount += 1;
|
|
70949
70907
|
spacing = charspace;
|
|
70950
|
-
// if (dItem instanceof DrawImageNode || dItem instanceof DrawBarcodeNode || dItem instanceof DrawQrcodeNode) {
|
|
70951
|
-
// imageHeight = Math.max(imageHeight, dItem.dHeight);
|
|
70952
|
-
// }
|
|
70953
70908
|
}
|
|
70954
|
-
|
|
70955
70909
|
dHeight = Math.max(this.drawItems[i].dHeight, dHeight);
|
|
70956
70910
|
if (this._drawItems[0] instanceof DrawCombineNode/* DrawCombineNode */.o && this._drawItems[0].node instanceof SeparateCharNode/* SeparateCharNode */.O) {
|
|
70957
|
-
//dHeight = 2;
|
|
70958
70911
|
dHeight = this._drawItems[0].node.width;
|
|
70959
70912
|
}
|
|
70960
70913
|
if (!(this.drawItems[i] instanceof DrawMarkNode/* DrawMarkNode */.I) && !(this._drawItems[i] instanceof DrawTextNode/* DrawTextNode */.v)) {
|
|
70961
70914
|
iCount++;
|
|
70962
70915
|
}
|
|
70963
|
-
// if (((this.drawItems[i] as unknown) as DrawInfos).dHeight > dHeight)
|
|
70964
|
-
// dHeight = ((this.drawItems[i] as unknown) as DrawInfos).dHeight;
|
|
70965
70916
|
if (actualWidth + dWidth > lwidth && actualWidth > 0) {
|
|
70966
70917
|
if (this.drawItems[i] instanceof DrawTextNode/* DrawTextNode */.v && UnitConvert/* UnitConvert */.P.isPuctuation(this._drawItems[i].text)) {} else {
|
|
70967
70918
|
var nextLine = this._paragraphNode.getNextDline(this);
|
|
@@ -70970,7 +70921,6 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70970
70921
|
for (var n = i; n < this.drawItems.length; n++) {
|
|
70971
70922
|
var ditem = this.drawItems[n];
|
|
70972
70923
|
if (ditem) {
|
|
70973
|
-
// this._islastline = false;
|
|
70974
70924
|
this.removeChild(ditem);
|
|
70975
70925
|
nextLine.addChild(ditem);
|
|
70976
70926
|
}
|
|
@@ -70982,10 +70932,6 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70982
70932
|
}
|
|
70983
70933
|
this._charCount = iCount;
|
|
70984
70934
|
actualWidth += dWidth + spacing; //charspace;
|
|
70985
|
-
// if (imageHeight === dHeight) {
|
|
70986
|
-
// this._isImgHeightForMax = true;
|
|
70987
|
-
// }
|
|
70988
|
-
// this._actualWidth+=this.children[i]
|
|
70989
70935
|
}
|
|
70990
70936
|
|
|
70991
70937
|
this._maxFontHeight = maxFontHeight;
|
|
@@ -70998,111 +70944,6 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70998
70944
|
this._charSpace = this._paragraphNode.combineParagraph.charSpace;
|
|
70999
70945
|
this.dWidth = this._dWidth;
|
|
71000
70946
|
this.dHeight = this._dHeight;
|
|
71001
|
-
// if (restWidth > 0&& this.drawItems.length>1) {
|
|
71002
|
-
// this._charSpace = restWidth / this.drawItems.length - 1;
|
|
71003
|
-
// }
|
|
71004
|
-
// this.setBounds(this._dLeft, this._dTop, this._dWidth, this._dHeight);
|
|
71005
|
-
// const shape = new createjs.Shape();
|
|
71006
|
-
// shape.x = 0;
|
|
71007
|
-
// shape.y = 0;
|
|
71008
|
-
// shape.graphics
|
|
71009
|
-
// .clear()
|
|
71010
|
-
// .beginFill("#FFEE90")
|
|
71011
|
-
// .drawRect(
|
|
71012
|
-
// 0,
|
|
71013
|
-
// 0,
|
|
71014
|
-
// this._dWidth,
|
|
71015
|
-
// this._dHeight + this.paragraphNode.combineParagraph.lineSpace
|
|
71016
|
-
// );
|
|
71017
|
-
// shape.alpha = 0.5;
|
|
71018
|
-
// const y = this._dTop;
|
|
71019
|
-
// this.removeAllChildren();
|
|
71020
|
-
// this.uncache();
|
|
71021
|
-
// // this.addChildAt(shape, 0);
|
|
71022
|
-
// //2.计算起始位置
|
|
71023
|
-
// switch (this._paragraphNode.combineParagraph.align) {
|
|
71024
|
-
// case Align.alleft: {
|
|
71025
|
-
// break;
|
|
71026
|
-
// }
|
|
71027
|
-
// case Align.alright: {
|
|
71028
|
-
// usedWidth += lwidth - this.actualWidth;
|
|
71029
|
-
// break;
|
|
71030
|
-
// }
|
|
71031
|
-
// case Align.alcenter: {
|
|
71032
|
-
// usedWidth += (lwidth - this.actualWidth) / 2;
|
|
71033
|
-
// break;
|
|
71034
|
-
// }
|
|
71035
|
-
// case Align.alSpaceEqually: {
|
|
71036
|
-
// //更新字间距,目标是让字的宽度相同
|
|
71037
|
-
// if (iCount > 1) {
|
|
71038
|
-
// spacing = (lwidth - this.actualWidth) / (iCount - 1);
|
|
71039
|
-
// }
|
|
71040
|
-
// // if (this.drawItems.length > 1) {
|
|
71041
|
-
// // spacing = (lwidth - this.actualWidth) / (this.drawItems.length - 1);
|
|
71042
|
-
// // }
|
|
71043
|
-
// this.charSpace += spacing;
|
|
71044
|
-
// usedWidth += 0;
|
|
71045
|
-
// break;
|
|
71046
|
-
// }
|
|
71047
|
-
// }
|
|
71048
|
-
// /**
|
|
71049
|
-
// * 返回字间距
|
|
71050
|
-
// * @param index 字序号
|
|
71051
|
-
// */
|
|
71052
|
-
// const spaceEqu = (dline: DrawLine, index: number): number => {
|
|
71053
|
-
// if (dline.drawItems[index] instanceof DrawMarkNode) {
|
|
71054
|
-
// return 0;
|
|
71055
|
-
// }
|
|
71056
|
-
// if (dline._paragraphNode.combineParagraph.align != Align.alSpaceEqually)
|
|
71057
|
-
// return dline.charSpace;
|
|
71058
|
-
// if (isLastLine) return gCharSpace;
|
|
71059
|
-
// //oldcharspace;
|
|
71060
|
-
// else return dline.charSpace;
|
|
71061
|
-
// };
|
|
71062
|
-
// //3.放置
|
|
71063
|
-
// //DONE:行高
|
|
71064
|
-
// this._dHeight = this.paragraphNode.combineParagraph.lineSpace * dHeight;
|
|
71065
|
-
// ((this as unknown) as DrawInfos).dHeight = this._dHeight;
|
|
71066
|
-
// const bottompos = dHeight + (this._dHeight - dHeight) / 2;
|
|
71067
|
-
// for (let j = 0; j < this.drawItems.length; j++) {
|
|
71068
|
-
// if (this.drawItems[j] instanceof DrawContainer) {
|
|
71069
|
-
// //更新绘制实例
|
|
71070
|
-
// const charSpace = spaceEqu(this, j);
|
|
71071
|
-
// const tmp = new DrawChangeEvent(charSpace, dHeight, dBaseY);
|
|
71072
|
-
// // tmp.space = spaceEqu(j);
|
|
71073
|
-
// // tmp.height = dHeight;
|
|
71074
|
-
// // tmp.baseY = dBaseY;
|
|
71075
|
-
// (this.drawItems[j] as DrawContainer).refresh(tmp);
|
|
71076
|
-
// const dwidth = ((this.drawItems[j] as unknown) as DrawInfos).dWidth;
|
|
71077
|
-
// //((this.drawItems[j] as unknown) as DrawInfos).dHeight = this._dHeight;
|
|
71078
|
-
// this.drawItems[j].x = usedWidth; // + 1;
|
|
71079
|
-
// this.drawItems[j].y = bottompos;
|
|
71080
|
-
// usedWidth +=
|
|
71081
|
-
// ((this.drawItems[j] as unknown) as DrawInfos).dWidth + charSpace;
|
|
71082
|
-
// // this._charSpace;
|
|
71083
|
-
// }
|
|
71084
|
-
// }
|
|
71085
|
-
// //4.前一个字符需要在下一个字符的上层,处理斜体被遮盖的问题
|
|
71086
|
-
// let level = 0;
|
|
71087
|
-
// for (let j = this.drawItems.length - 1; j > -1; j--) {
|
|
71088
|
-
// this.addChildAt(this.drawItems[j], level);
|
|
71089
|
-
// if (this.drawItems[j] instanceof DrawMarkNode) {
|
|
71090
|
-
// this.addChildAt(this.drawItems[j], this.numChildren);
|
|
71091
|
-
// }
|
|
71092
|
-
// level++;
|
|
71093
|
-
// }
|
|
71094
|
-
// if (
|
|
71095
|
-
// this._paragraphNode.hoEditorFactory.drawTree.paintStatus !==
|
|
71096
|
-
// PaintState.psPreview &&
|
|
71097
|
-
// this._paragraphNode.hoEditorFactory.drawTree.paintStatus !==
|
|
71098
|
-
// PaintState.psPrint
|
|
71099
|
-
// )
|
|
71100
|
-
// this.cache(
|
|
71101
|
-
// 0,
|
|
71102
|
-
// 0,
|
|
71103
|
-
// this._dWidth,
|
|
71104
|
-
// this._dHeight //+ lineSpace * 2 + 1
|
|
71105
|
-
// );
|
|
71106
70947
|
}
|
|
71107
70948
|
}, {
|
|
71108
70949
|
key: "updateLineStyle",
|
|
@@ -71223,14 +71064,6 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
71223
71064
|
//更新绘制实例
|
|
71224
71065
|
var charSpace = spaceEqu(this, j);
|
|
71225
71066
|
var tmp = new DrawChangeEvent(charSpace, dHeight, this._dBaseY);
|
|
71226
|
-
// tmp.space = spaceEqu(j);
|
|
71227
|
-
// tmp.height = dHeight;
|
|
71228
|
-
// tmp.baseY = dBaseY;
|
|
71229
|
-
// if (this.drawItems[j] instanceof DrawDownListNode) {
|
|
71230
|
-
// const drawItem = this.drawItems[j] as DrawDownListNode;
|
|
71231
|
-
// const dText = new DrawSimpleText(drawItem.text, drawItem.textStyle.getStyleKey(), drawItem.textStyle.color);
|
|
71232
|
-
// (this.drawItems[j] as DrawDownListNode).dWidth = dText.getMeasuredWidth() + (dText.text.length - 1) * charSpace;
|
|
71233
|
-
// }
|
|
71234
71067
|
this.drawItems[j].refresh(tmp);
|
|
71235
71068
|
var dwidth = this.drawItems[j].dWidth;
|
|
71236
71069
|
//((this.drawItems[j] as unknown) as DrawInfos).dHeight = this._dHeight;
|
|
@@ -73927,6 +73760,7 @@ var DrawPageMainDoc = /*#__PURE__*/function (_DrawArea) {
|
|
|
73927
73760
|
this._dWidth = this._maxWidth;
|
|
73928
73761
|
this._dHeight = this._maxHeight;
|
|
73929
73762
|
this._docHeight = 0;
|
|
73763
|
+
|
|
73930
73764
|
//检测边框变化情况,如有变化则重绘
|
|
73931
73765
|
}
|
|
73932
73766
|
}]);
|
|
@@ -170203,7 +170037,7 @@ var map = {
|
|
|
170203
170037
|
"./selectDialog/SelectDialog.vue": 73791,
|
|
170204
170038
|
"./sign/Sign.vue": 67218,
|
|
170205
170039
|
"./specialChars/HoSpecialChars.vue": 75058,
|
|
170206
|
-
"./table/TableCellPoper.vue":
|
|
170040
|
+
"./table/TableCellPoper.vue": 19363,
|
|
170207
170041
|
"./table/TableCellPoper1.vue": 44645,
|
|
170208
170042
|
"./table/TableCellProperty.vue": 90546,
|
|
170209
170043
|
"./table/TableColProperty.vue": 16154,
|
|
@@ -209447,7 +209281,7 @@ var PoperMark = __webpack_require__(20734);
|
|
|
209447
209281
|
|
|
209448
209282
|
|
|
209449
209283
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 6 modules
|
|
209450
|
-
var TableCellPoper = __webpack_require__(
|
|
209284
|
+
var TableCellPoper = __webpack_require__(19363);
|
|
209451
209285
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
209452
209286
|
var DateTimeNode = __webpack_require__(92501);
|
|
209453
209287
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -210844,7 +210678,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210844
210678
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210845
210679
|
var ParagraphNode = __webpack_require__(67945);
|
|
210846
210680
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210847
|
-
/* harmony default export */ var version = ('3.1.
|
|
210681
|
+
/* harmony default export */ var version = ('3.1.159');
|
|
210848
210682
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210849
210683
|
var PoperTipText = __webpack_require__(84531);
|
|
210850
210684
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -214100,8 +213934,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214100
213934
|
key: "HTMLStyleToCombineStyle",
|
|
214101
213935
|
value: function HTMLStyleToCombineStyle(jsondata) {
|
|
214102
213936
|
//NOTE:DomElement中的style中的样式后面的部分
|
|
214103
|
-
var
|
|
214104
|
-
var tmp =
|
|
213937
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
213938
|
+
var tmp = hoEditorFactory.docTree.styles[0].clone(); // new TextStyle();
|
|
214105
213939
|
if (jsondata['font_size']) {
|
|
214106
213940
|
tmp.size = Number(jsondata['font_size']) || tmp.combineStyle.size;
|
|
214107
213941
|
var str = jsondata['font_size'];
|
|
@@ -214112,7 +213946,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214112
213946
|
//size = Math.round(hoeditorfactory.unitConvert.pxConversionMm(size, true) );
|
|
214113
213947
|
size = size / 96 * 72;
|
|
214114
213948
|
}
|
|
214115
|
-
size =
|
|
213949
|
+
size = hoEditorFactory.unitConvert.getCorrectFontSize(size);
|
|
214116
213950
|
tmp.size = size;
|
|
214117
213951
|
}
|
|
214118
213952
|
}
|
|
@@ -214289,7 +214123,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214289
214123
|
}
|
|
214290
214124
|
if (!width) width = '20';
|
|
214291
214125
|
if (!height) height = '20';
|
|
214292
|
-
var
|
|
214126
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
214127
|
+
var node = new ImageNode/* ImageNode */.H(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, BaseNode/* NodeType */.Jq.ntImage, hoEditorFactory.gernerateCode.generateID('IMG'), src,
|
|
214293
214128
|
//$(jnode).attr('src') || '',
|
|
214294
214129
|
Number(width), Number(height));
|
|
214295
214130
|
return [node];
|
|
@@ -214478,7 +214313,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214478
214313
|
}, {
|
|
214479
214314
|
key: "TransHTMLTABLE",
|
|
214480
214315
|
value: function TransHTMLTABLE(jnode, style) {
|
|
214481
|
-
var
|
|
214316
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
214317
|
+
var pnode = hoEditorFactory.docTree.getParentNode(hoEditorFactory.docTree.curDomRange.normalize().startPath);
|
|
214482
214318
|
if (pnode instanceof TableNode/* TableNode */.Fh || pnode instanceof CellNode/* CellNode */.D) {
|
|
214483
214319
|
message/* default */.Z.warn('不能在表格中插入表格');
|
|
214484
214320
|
return [];
|
|
@@ -214511,7 +214347,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214511
214347
|
}
|
|
214512
214348
|
}
|
|
214513
214349
|
//2.创建表格节点
|
|
214514
|
-
var lntable = new TableNode/* TableNode */.Fh(this._hoEditorFactoryID,
|
|
214350
|
+
var lntable = new TableNode/* TableNode */.Fh(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, pnode, irow, icol, this.generateTableProperty(jnode));
|
|
214515
214351
|
//3.设置表格属性
|
|
214516
214352
|
//this.SetTableProperty(jnode, lntable)
|
|
214517
214353
|
//4:生成表格内容
|
|
@@ -214595,7 +214431,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214595
214431
|
var textstyle = this.HTMLStyleToParsStyle(styleobj);
|
|
214596
214432
|
if (textstyle.lineSpace === 0) textstyle.lineSpace = undefined;
|
|
214597
214433
|
var index = hoEditorFactory.docTree.styleCompare(textstyle);
|
|
214598
|
-
var node = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(
|
|
214434
|
+
var node = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(hoEditorFactory.docTree.curDomRange.normalize().startPath), index
|
|
214599
214435
|
//hoEditorFactory.docTree.curParaNo
|
|
214600
214436
|
);
|
|
214601
214437
|
|
|
@@ -214723,7 +214559,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
214723
214559
|
}
|
|
214724
214560
|
var textstyle = this.HTMLStyleToCombineStyle(style);
|
|
214725
214561
|
var styleindex = hoEditorFactory.docTree.styleCompare(textstyle);
|
|
214726
|
-
var node = new TextNode/* TextNode */.R(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(
|
|
214562
|
+
var node = new TextNode/* TextNode */.R(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(hoEditorFactory.docTree.curDomRange.normalize().startPath), BaseNode/* NodeType */.Jq.ntText, text, styleindex);
|
|
214727
214563
|
return node;
|
|
214728
214564
|
}
|
|
214729
214565
|
/**
|