| | |
| | | this.mapContainer.parent.on('mousedown', mapMultiSelectHandle) |
| | | } |
| | | |
| | | deactivateMapMultiSelect = () => { |
| | | if (!this.mapContainer?.parent) { |
| | | return; |
| | | } |
| | | this.mapContainer.parent.off('mousedown'); |
| | | this.clearSelectedSprites(); |
| | | if (this.selectionBox) { |
| | | this.selectionBox.clear(); |
| | | this.app?.stage.removeChild(this.selectionBox); |
| | | this.selectionBox = null; |
| | | } |
| | | } |
| | | |
| | | clearSelectedSprites = () => { |
| | | if (this.selectedSprites && this.selectedSprites.length > 0) { |
| | | this.selectedSprites.forEach(child => { |
| | |
| | | mapContainer.name = name; |
| | | mapContainer.data = {}; |
| | | return mapContainer; |
| | | } |
| | | } |