hoeditor-web 3.1.176 → 3.1.177

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.
@@ -209206,7 +209206,7 @@ var TextNode = __webpack_require__(27198);
209206
209206
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
209207
209207
  var ParagraphNode = __webpack_require__(67945);
209208
209208
  ;// CONCATENATED MODULE: ./src/components/version.ts
209209
- /* harmony default export */ var version = ('3.1.176');
209209
+ /* harmony default export */ var version = ('3.1.177');
209210
209210
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
209211
209211
  var PoperTipText = __webpack_require__(84531);
209212
209212
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -221228,11 +221228,11 @@ var VueController = /*#__PURE__*/function () {
221228
221228
  }
221229
221229
  }
221230
221230
  } else if (npStart.node instanceof TextNode/* TextNode */.R) {
221231
- var dTextWidth = ctx.measureText(npStart.node.text).width;
221232
- dLineX = dTextWidth + npStart.node.drawNodes[0].x;
221233
- if (dLineX > 0) {
221234
- suffixSpace = " ".repeat(Math.floor(dLineX / spaceWidth));
221235
- }
221231
+ // const dTextWidth = ctx.measureText(npStart.node.text).width;
221232
+ // dLineX = dTextWidth + npStart.node.drawNodes[0].x;
221233
+ // if(dLineX > 0) {
221234
+ // suffixSpace = " ".repeat(Math.floor(dLineX / spaceWidth));
221235
+ // }
221236
221236
  }
221237
221237
  docWidth = docWidth - dLineX;
221238
221238
  var minCount = 0;
@@ -221258,10 +221258,8 @@ var VueController = /*#__PURE__*/function () {
221258
221258
  var _loop2 = function _loop2(_k5) {
221259
221259
  var text = textList[_k5];
221260
221260
  if (Array.isArray(text)) {
221261
- if (_k5 == 0 && newLine) {
221262
- var _nextParagraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221263
- nodes.push(_nextParagraphNode);
221264
- }
221261
+ var prevParagraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221262
+ nodes.push(prevParagraphNode);
221265
221263
  var list = text.slice(0, text.length - 1);
221266
221264
  var resultList = [];
221267
221265
  for (var i = 0; i < list.length; i += minCount) {
@@ -221290,9 +221288,11 @@ var VueController = /*#__PURE__*/function () {
221290
221288
  if (endSpaceCount < 0) endSpaceCount = 0;
221291
221289
  endText = suffixSpace + ' '.repeat(endSpaceCount) + endText;
221292
221290
  var textNode = new TextNode/* TextNode */.R(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType */.Jq.ntText, endText, hoEditorFactory.docTree.curStyleIndex);
221293
- var nextParagraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221294
221291
  nodes.push(textNode);
221295
- nodes.push(nextParagraphNode);
221292
+ if (_k5 != textList.length - 1) {
221293
+ var nextParagraphNode = new ParagraphNode/* ParagraphNode */.C(_this3._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, hoEditorFactory.docTree.curParaNo);
221294
+ nodes.push(nextParagraphNode);
221295
+ }
221296
221296
  } else if (typeof text === "string") {
221297
221297
  var lines = text.split('\n');
221298
221298
  for (var _i3 = 0; _i3 < lines.length; _i3++) {