Move grid to konva folder
This commit is contained in:
parent
e22037bd74
commit
518f6b3e5b
@ -1,19 +1,19 @@
|
||||
import { Group, Rect } from "react-konva";
|
||||
import useImage from "use-image";
|
||||
|
||||
import Vector2 from "../helpers/Vector2";
|
||||
import Vector2 from "../../helpers/Vector2";
|
||||
|
||||
import {
|
||||
useGrid,
|
||||
useGridPixelSize,
|
||||
useGridOffset,
|
||||
useGridCellPixelSize,
|
||||
} from "../contexts/GridContext";
|
||||
} from "../../contexts/GridContext";
|
||||
|
||||
import squarePatternDark from "../images/SquarePatternDark.png";
|
||||
import squarePatternLight from "../images/SquarePatternLight.png";
|
||||
import hexPatternDark from "../images/HexPatternDark.png";
|
||||
import hexPatternLight from "../images/HexPatternLight.png";
|
||||
import squarePatternDark from "../../images/SquarePatternDark.png";
|
||||
import squarePatternLight from "../../images/SquarePatternLight.png";
|
||||
import hexPatternDark from "../../images/HexPatternDark.png";
|
||||
import hexPatternLight from "../../images/HexPatternLight.png";
|
||||
|
||||
function Grid({ stroke }: { stroke: "black" | "white" }) {
|
||||
const grid = useGrid();
|
@ -7,7 +7,7 @@ import { mapSources as defaultMapSources } from "../../maps";
|
||||
|
||||
import { getImageLightness } from "../../helpers/image";
|
||||
|
||||
import Grid from "../Grid";
|
||||
import Grid from "../konva/Grid";
|
||||
import { Map } from "../../types/Map";
|
||||
|
||||
function MapGrid({ map }: { map: Map }) {
|
||||
|
@ -18,7 +18,7 @@ import GridOffIcon from "../../icons/GridOffIcon";
|
||||
|
||||
import { tokenSources } from "../../tokens";
|
||||
|
||||
import Grid from "../Grid";
|
||||
import Grid from "../konva/Grid";
|
||||
import { Token } from "../../types/Token";
|
||||
|
||||
type TokenPreviewProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user