Skip to content

Commit cd8d67f

Browse files
authored
fix(floorplan): color polygons as well (#93)
1 parent 0c38835 commit cd8d67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Phonebook.Frontend/src/app/shared/components/room-plan/room-plan.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class RoomPlanComponent implements OnInit, OnChanges {
5050
roomElement = svgContainer.querySelector('[id=\'' + this.room + '\']');
5151
if (roomElement != null && roomElement.firstElementChild != null) {
5252
Array.from(roomElement.childNodes).forEach(element => {
53-
if (element.nodeName === 'rect' || element.nodeName === 'path') {
53+
if (element.nodeName === 'rect' || element.nodeName === 'path' || element.nodeName === 'polygon') {
5454
(element as HTMLElement).setAttribute('style', 'fill: #E20074;');
5555
}
5656
});

0 commit comments

Comments
 (0)