@talrace/ngx-noder 0.0.31 → 0.0.32
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.
|
@@ -1168,7 +1168,7 @@ class ImageModel {
|
|
|
1168
1168
|
|
|
1169
1169
|
class IndexedElementHelper {
|
|
1170
1170
|
static sliceSection(elements, startIndex, endIndex) {
|
|
1171
|
-
return elements.filter(x => x.insertIndex >= startIndex && x.insertIndex
|
|
1171
|
+
return elements.filter(x => x.insertIndex >= startIndex && x.insertIndex <= endIndex);
|
|
1172
1172
|
}
|
|
1173
1173
|
static shiftIndexes(elements, offset) {
|
|
1174
1174
|
for (const element of elements) {
|
|
@@ -1278,8 +1278,8 @@ class TabModel {
|
|
|
1278
1278
|
|
|
1279
1279
|
class ContentsOperationsHelper {
|
|
1280
1280
|
static GetRestoreFromSlice(contents, startIndex, count) {
|
|
1281
|
-
const endIndex = startIndex + count;
|
|
1282
|
-
const text = contents.content.slice(startIndex, endIndex);
|
|
1281
|
+
const endIndex = startIndex + count - 1;
|
|
1282
|
+
const text = contents.content.slice(startIndex, endIndex + 1);
|
|
1283
1283
|
const formats = FormatHelper.sliceSection(contents.formats, startIndex, endIndex);
|
|
1284
1284
|
const paragraphs = IndexedElementHelper.sliceSection(contents.paragraphs, startIndex, endIndex).map(x => new ParagraphModel(x));
|
|
1285
1285
|
const images = IndexedElementHelper.sliceSection(contents.images, startIndex, endIndex).map(x => new ImageModel(x));
|
|
@@ -11037,7 +11037,9 @@ class TableOperationsHelper {
|
|
|
11037
11037
|
const newRowCells = [];
|
|
11038
11038
|
const isContinuousCell = inheritIndex === targetIndex
|
|
11039
11039
|
? row.cells[inheritIndex] === row.cells[targetIndex - 1] && row.cells[inheritIndex].horizontalMerge
|
|
11040
|
-
:
|
|
11040
|
+
: targetIndex < row.cells.length &&
|
|
11041
|
+
row.cells[inheritIndex] === row.cells[targetIndex] &&
|
|
11042
|
+
row.cells[inheritIndex].horizontalMerge;
|
|
11041
11043
|
if (isContinuousCell) {
|
|
11042
11044
|
row.cells[inheritIndex].horizontalMerge += columnsCount;
|
|
11043
11045
|
return newRowCells;
|