mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
fix(roomSelector): IE11 room selector blur fix
This commit is contained in:
parent
f0325bab13
commit
a0fbdf3636
3 changed files with 4 additions and 2 deletions
|
|
@ -76,9 +76,9 @@
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
<g [attr.id]="room.id" [class.selected-room]="selectedRoom == room.id" *ngFor="let room of sortedRooms">
|
<g [attr.id]="room.id" [class.selected-room]="selectedRoom == room.id" *ngFor="let room of sortedRooms">
|
||||||
<path class="room-bg" (click)="selectRoom(room.id)" [attr.d]="room.area.d" />
|
<path class="room-bg" (click)="selectRoom(room.id)" [attr.d]="room.area.d" [style.filter]="isIE ? 'inherit': ''" />
|
||||||
<path class="room-border" [attr.d]="room.border.d" />
|
<path class="room-border" [attr.d]="room.border.d" />
|
||||||
<path class="room-border room-border-glow" [attr.d]="room.border.d" />
|
<path class="room-border room-border-glow" [attr.d]="room.border.d" [style.filter]="isIE ? 'inherit': ''" />
|
||||||
<text class="room-text" (click)="selectRoom(room.id)" text-anchor="middle"
|
<text class="room-text" (click)="selectRoom(room.id)" text-anchor="middle"
|
||||||
[attr.x]="room.name.x" [attr.y]="room.name.y">{{room.name.text}}</text>
|
[attr.x]="room.name.x" [attr.y]="room.name.y">{{room.name.text}}</text>
|
||||||
</g>
|
</g>
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@
|
||||||
.room-text {
|
.room-text {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
pointer-events: none;
|
||||||
fill: nb-theme(color-fg);
|
fill: nb-theme(color-fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ export class RoomSelectorComponent {
|
||||||
selectedRoom: null;
|
selectedRoom: null;
|
||||||
sortedRooms = [];
|
sortedRooms = [];
|
||||||
viewBox = '-20 -20 618.88 407.99';
|
viewBox = '-20 -20 618.88 407.99';
|
||||||
|
isIE = !!(navigator.userAgent.match(/Trident/) || !!navigator.userAgent.match(/MSIE/));
|
||||||
roomSvg = {
|
roomSvg = {
|
||||||
borders: [{
|
borders: [{
|
||||||
d: 'M186.21,130.05H216.37V160H186.21Z',
|
d: 'M186.21,130.05H216.37V160H186.21Z',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue