roosterjs 8.19.1 → 8.19.2
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/dist/rooster-amd-min.js +1 -1
- package/dist/rooster-amd-min.js.map +1 -1
- package/dist/rooster-amd.d.ts +1 -1
- package/dist/rooster-amd.js +4 -4
- package/dist/rooster-amd.js.map +1 -1
- package/dist/rooster-min.js +1 -1
- package/dist/rooster-min.js.map +1 -1
- package/dist/rooster.d.ts +1 -1
- package/dist/rooster.js +4 -4
- package/dist/rooster.js.map +1 -1
- package/package.json +6 -6
package/dist/rooster-amd.d.ts
CHANGED
package/dist/rooster-amd.js
CHANGED
|
@@ -23678,10 +23678,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23678
23678
|
* and the last cell always going to be last selected in the table.
|
|
23679
23679
|
*/
|
|
23680
23680
|
function normalizeTableSelection(vTable) {
|
|
23681
|
-
|
|
23681
|
+
var _a = (vTable === null || vTable === void 0 ? void 0 : vTable.selection) || {}, firstCell = _a.firstCell, lastCell = _a.lastCell;
|
|
23682
|
+
if (!vTable || !vTable.selection || !firstCell || !lastCell) {
|
|
23682
23683
|
return null;
|
|
23683
23684
|
}
|
|
23684
|
-
var _a = vTable.selection, firstCell = _a.firstCell, lastCell = _a.lastCell;
|
|
23685
23685
|
var rows = vTable.table.rows;
|
|
23686
23686
|
var newFirst = {
|
|
23687
23687
|
x: Math.min(firstCell.x, lastCell.x),
|
|
@@ -23706,8 +23706,8 @@ function normalizeTableSelection(vTable) {
|
|
|
23706
23706
|
coord.x = rowsCells - 1;
|
|
23707
23707
|
}
|
|
23708
23708
|
};
|
|
23709
|
-
fixCoordinates(
|
|
23710
|
-
fixCoordinates(
|
|
23709
|
+
fixCoordinates(newFirst);
|
|
23710
|
+
fixCoordinates(newLast);
|
|
23711
23711
|
return { firstCell: newFirst, lastCell: newLast };
|
|
23712
23712
|
}
|
|
23713
23713
|
exports.default = normalizeTableSelection;
|