diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-22 10:48:01 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:44 +0200 |
| commit | 602c3eb9327a3681f5a220e13b8291bb60643cd7 (patch) | |
| tree | 08bbcad1460419af12c59ecf60d102af161bf57f /src/components/map/elements/MapTile.js | |
| parent | 193e7b32d5e3d356021a5bb8f777fec3bdc413e7 (diff) | |
Add tile rendering logic
Diffstat (limited to 'src/components/map/elements/MapTile.js')
| -rw-r--r-- | src/components/map/elements/MapTile.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/components/map/elements/MapTile.js b/src/components/map/elements/MapTile.js deleted file mode 100644 index b0f4959d..00000000 --- a/src/components/map/elements/MapTile.js +++ /dev/null @@ -1,24 +0,0 @@ -import PropTypes from "prop-types"; -import React from "react"; -import {Group, Rect} from "react-konva"; -import {TILE_SIZE_IN_PIXELS} from "../MapConstants"; - -const MapTile = () => ( - <Group> - <Rect - x={this.props.tileX * TILE_SIZE_IN_PIXELS} - y={this.props.tileY * TILE_SIZE_IN_PIXELS} - width={TILE_SIZE_IN_PIXELS} - height={TILE_SIZE_IN_PIXELS} - fill={this.props.fillColor} - /> - </Group> -); - -MapTile.propTypes = { - tileX: PropTypes.number.isRequired, - tileY: PropTypes.number.isRequired, - fillColor: PropTypes.string.isRequired, -}; - -export default MapTile; |
