diff options
Diffstat (limited to 'src/components/map/elements/HoverTile.js')
| -rw-r--r-- | src/components/map/elements/HoverTile.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/map/elements/HoverTile.js b/src/components/map/elements/HoverTile.js index a8bb2085..02d31714 100644 --- a/src/components/map/elements/HoverTile.js +++ b/src/components/map/elements/HoverTile.js @@ -4,10 +4,12 @@ import {Rect} from "react-konva"; import {ROOM_HOVER_INVALID_COLOR, ROOM_HOVER_VALID_COLOR} from "../../../colors/index"; import {TILE_SIZE_IN_PIXELS} from "../MapConstants"; -const HoverTile = ({pixelX, pixelY, isValid, onClick}) => ( +const HoverTile = ({pixelX, pixelY, isValid, scale, onClick}) => ( <Rect x={pixelX} y={pixelY} + scaleX={scale} + scaleY={scale} width={TILE_SIZE_IN_PIXELS} height={TILE_SIZE_IN_PIXELS} fill={isValid ? ROOM_HOVER_VALID_COLOR : ROOM_HOVER_INVALID_COLOR} |
