mirror of
https://gitlab.aliens-lyon.fr/encartes/web-interface.git
synced 2026-09-11 18:00:45 +02:00
Add comment
This commit is contained in:
@@ -176,6 +176,8 @@ function newPolygon(element, positions, selectedRoom, callbackRoomSelected, call
|
|||||||
const color = selectedRoom === element['id'] ? 'red' : 'grey';
|
const color = selectedRoom === element['id'] ? 'red' : 'grey';
|
||||||
|
|
||||||
if (element['type'] === 'C') { // Corridor
|
if (element['type'] === 'C') { // Corridor
|
||||||
|
// TODO create two global panes: one for the coridors, and the other for the
|
||||||
|
// other rooms
|
||||||
return <Pane style={{ zIndex: 500 }}>
|
return <Pane style={{ zIndex: 500 }}>
|
||||||
<Polygon positions={positions} key={element['id'] + color} color={'peru'} />
|
<Polygon positions={positions} key={element['id'] + color} color={'peru'} />
|
||||||
</Pane>
|
</Pane>
|
||||||
|
|||||||
Reference in New Issue
Block a user