diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-25 23:03:05 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:44 +0200 |
| commit | 8302923a08728d36746af3560ebc35685c2b9da5 (patch) | |
| tree | 028b0e0db8f7e8e60d9127a522ceea49ec395952 /src/components/map/elements | |
| parent | 8f5e6d1e73f16e3cdd523f961d06e4b4eb5a8cef (diff) | |
Enable going from building to room and back
Diffstat (limited to 'src/components/map/elements')
| -rw-r--r-- | src/components/map/elements/GrayLayer.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/map/elements/GrayLayer.js b/src/components/map/elements/GrayLayer.js new file mode 100644 index 00000000..dfcbe71a --- /dev/null +++ b/src/components/map/elements/GrayLayer.js @@ -0,0 +1,17 @@ +import React from "react"; +import {Rect} from "react-konva"; +import {GRAYED_OUT_AREA_COLOR} from "../../../colors/index"; +import {MAP_SIZE_IN_PIXELS} from "../MapConstants"; + +const GrayLayer = ({onClick}) => ( + <Rect + x={0} + y={0} + width={MAP_SIZE_IN_PIXELS} + height={MAP_SIZE_IN_PIXELS} + fill={GRAYED_OUT_AREA_COLOR} + onClick={onClick} + /> +); + +export default GrayLayer; |
