@univerjs/engine-formula 0.4.0-alpha.0 → 0.4.0-nightly.202410121605
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/cjs/index.js +1 -1
- package/lib/es/index.js +8 -2
- package/lib/umd/index.js +1 -1
- package/package.json +5 -7
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -7590,7 +7590,10 @@ const _ColumnReferenceObject = class _ColumnReferenceObject extends BaseReferenc
|
|
|
7590
7590
|
const columnReferenceObject = referenceObject;
|
|
7591
7591
|
if (columnReferenceObject.getForcedSheetName() !== void 0 && columnReferenceObject.getForcedSheetName() !== "")
|
|
7592
7592
|
return ErrorValueObject.create(ErrorType$1.REF);
|
|
7593
|
-
const currentRangeData = this.getRangeData(), newColumnRange = columnReferenceObject.getRangeData(), newColumn = newColumnRange.startColumn
|
|
7593
|
+
const currentRangeData = this.getRangeData(), newColumnRange = columnReferenceObject.getRangeData(), newColumn = newColumnRange.startColumn;
|
|
7594
|
+
if (newColumn >= currentRangeData.startColumn && newColumn <= currentRangeData.endColumn)
|
|
7595
|
+
return this;
|
|
7596
|
+
const column = currentRangeData.startColumn;
|
|
7594
7597
|
return newColumn > column ? currentRangeData.endColumn = newColumn : (currentRangeData.startColumn = newColumn, currentRangeData.endColumn = column), newColumnRange.startAbsoluteRefType && (currentRangeData.endAbsoluteRefType = newColumnRange.startAbsoluteRefType), currentRangeData.rangeType = RANGE_TYPE.COLUMN, this.setToken(`${this.getToken()}${matchToken.COLON}${columnReferenceObject.getToken()}`), this;
|
|
7595
7598
|
}
|
|
7596
7599
|
};
|
|
@@ -7618,7 +7621,10 @@ const _RowReferenceObject = class _RowReferenceObject extends BaseReferenceObjec
|
|
|
7618
7621
|
const rowReferenceObject = referenceObject;
|
|
7619
7622
|
if (rowReferenceObject.getForcedSheetName() !== void 0 && rowReferenceObject.getForcedSheetName() !== "")
|
|
7620
7623
|
return ErrorValueObject.create(ErrorType$1.REF);
|
|
7621
|
-
const currentRangeData = this.getRangeData(), newRowRange = rowReferenceObject.getRangeData(), newRow = newRowRange.startRow
|
|
7624
|
+
const currentRangeData = this.getRangeData(), newRowRange = rowReferenceObject.getRangeData(), newRow = newRowRange.startRow;
|
|
7625
|
+
if (newRow >= currentRangeData.startRow && newRow <= currentRangeData.endRow)
|
|
7626
|
+
return this;
|
|
7627
|
+
const row = currentRangeData.startRow;
|
|
7622
7628
|
return newRow > row ? currentRangeData.endRow = newRow : (currentRangeData.startRow = newRow, currentRangeData.endRow = row), newRowRange.startAbsoluteRefType && (currentRangeData.endAbsoluteRefType = newRowRange.startAbsoluteRefType), currentRangeData.rangeType = RANGE_TYPE.ROW, this.setToken(`${this.getToken()}${matchToken.COLON}${rowReferenceObject.getToken()}`), this;
|
|
7623
7629
|
}
|
|
7624
7630
|
};
|