@worktile/theia 14.3.19 → 14.3.20
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.
|
@@ -11367,7 +11367,7 @@ class TableStore {
|
|
|
11367
11367
|
}
|
|
11368
11368
|
}
|
|
11369
11369
|
setSelectedCells(cells, pos) {
|
|
11370
|
-
const uniqueCells = this.uniqueCellPosition(cells);
|
|
11370
|
+
const uniqueCells = this.pointerSelection ? this.uniqueCellPosition(cells) : cells;
|
|
11371
11371
|
const cellElements = uniqueCells.map(cell => {
|
|
11372
11372
|
return pos.findCellByPath(cell);
|
|
11373
11373
|
});
|
|
@@ -11382,14 +11382,11 @@ class TableStore {
|
|
|
11382
11382
|
* @returns
|
|
11383
11383
|
*/
|
|
11384
11384
|
uniqueCellPosition(cells) {
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
return result;
|
|
11391
|
-
}
|
|
11392
|
-
return cells;
|
|
11385
|
+
const result = [];
|
|
11386
|
+
const modCells = new Set();
|
|
11387
|
+
cells.concat(this.selectedCellPositions).forEach(cell => modCells.add(JSON.stringify(cell)));
|
|
11388
|
+
modCells.forEach((cell) => result.push(JSON.parse(cell)));
|
|
11389
|
+
return result;
|
|
11393
11390
|
}
|
|
11394
11391
|
/**
|
|
11395
11392
|
* 获取一定范围内所有的单元格
|