mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
fix(dashboard): fix issue with svg filter for the Firefox
This commit is contained in:
parent
c9f2b8f0ef
commit
7d4dc3fc37
2 changed files with 3 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" [style.filter]="isIE ? 'inherit': ''" />
|
<path class="room-bg" (click)="selectRoom(room.id)" [attr.d]="room.area.d" [style.filter]="isIE || isFirefox ? '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" [style.filter]="isIE ? 'inherit': ''" />
|
<path class="room-border room-border-glow" [attr.d]="room.border.d" [style.filter]="isIE || isFirefox ? '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>
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ export class RoomSelectorComponent {
|
||||||
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/));
|
isIE = !!(navigator.userAgent.match(/Trident/) || !!navigator.userAgent.match(/MSIE/));
|
||||||
|
isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') >= 0;
|
||||||
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