|
@@ -351,12 +351,14 @@ export class SBaseEditScene extends SGraphEditScene {
|
|
if (Array.isArray(arr) && arr.length) {
|
|
if (Array.isArray(arr) && arr.length) {
|
|
arr.forEach(t => {
|
|
arr.forEach(t => {
|
|
if (!(t instanceof SGraphSelectContainer) && t.parent) {
|
|
if (!(t instanceof SGraphSelectContainer) && t.parent) {
|
|
- let temp = t.boundingRect();
|
|
|
|
- let lefttop = t.mapToScene(temp.left, temp.top)
|
|
|
|
- let rightbottom = t.mapToScene(temp.right, temp.bottom)
|
|
|
|
- let r = new SRect(lefttop, rightbottom)
|
|
|
|
- if (rect.isIn(r)) {
|
|
|
|
- this.selectContainer.toggleItem(t)
|
|
|
|
|
|
+ if (t.visible) {
|
|
|
|
+ let temp = t.boundingRect();
|
|
|
|
+ let lefttop = t.mapToScene(temp.left, temp.top)
|
|
|
|
+ let rightbottom = t.mapToScene(temp.right, temp.bottom)
|
|
|
|
+ let r = new SRect(lefttop, rightbottom)
|
|
|
|
+ if (rect.isIn(r)) {
|
|
|
|
+ this.selectContainer.toggleItem(t)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|