fix minor type error

This commit is contained in:
Grant 2024-03-08 18:03:02 -07:00
parent f52f7b406b
commit d0ca5fd7ae
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ import { PanZoomWrapper } from "@sc07-canvas/lib/src/renderer";
import { RendererContext } from "@sc07-canvas/lib/src/renderer/RendererContext"; import { RendererContext } from "@sc07-canvas/lib/src/renderer/RendererContext";
import { ViewportMoveEvent } from "@sc07-canvas/lib/src/renderer/PanZoom"; import { ViewportMoveEvent } from "@sc07-canvas/lib/src/renderer/PanZoom";
import throttle from "lodash.throttle"; import throttle from "lodash.throttle";
import { ICanvasPosition, IPosition } from "../types";
import { Routes } from "../lib/routes"; import { Routes } from "../lib/routes";
import { ICanvasPosition, IPosition } from "@sc07-canvas/lib/src/net";
export const CanvasWrapper = () => { export const CanvasWrapper = () => {
// to prevent safari from blurring things, use the zoom css property // to prevent safari from blurring things, use the zoom css property
@ -116,7 +116,7 @@ const CanvasInner = () => {
canvasInstance.off("cursorPos", handleCursorPos); canvasInstance.off("cursorPos", handleCursorPos);
}; };
// do not include canvasRef, it causes infinite re-renders // ! do not include canvasRef, it causes infinite re-renders
}, [PanZoom, config, setCanvasPosition, setCursorPosition]); }, [PanZoom, config, setCanvasPosition, setCursorPosition]);
return ( return (