diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-21 12:08:41 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:43 +0200 |
| commit | 1b6545fa653df44b019f6676faed39880999b2bf (patch) | |
| tree | cb131975db09cdb401b082700e2075d462495897 /src/components/map/elements/Backdrop.js | |
| parent | 8a49e1eedebb6d4c47edf6fd1a7545ea502d59e7 (diff) | |
Add basic react-konva rendering prototype
Diffstat (limited to 'src/components/map/elements/Backdrop.js')
| -rw-r--r-- | src/components/map/elements/Backdrop.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/map/elements/Backdrop.js b/src/components/map/elements/Backdrop.js new file mode 100644 index 00000000..32e95989 --- /dev/null +++ b/src/components/map/elements/Backdrop.js @@ -0,0 +1,16 @@ +import React from "react"; +import {Rect} from "react-konva"; +import {BACKDROP_COLOR} from "../../../colors/index"; +import {MAP_SIZE_IN_PIXELS} from "../MapConstants"; + +const Backdrop = () => ( + <Rect + x={0} + y={0} + width={MAP_SIZE_IN_PIXELS} + height={MAP_SIZE_IN_PIXELS} + fill={BACKDROP_COLOR} + /> +); + +export default Backdrop; |
