feat: rm update dimensions for canvas
This commit is contained in:
@@ -77,10 +77,6 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
|
|||||||
getListRef.current = getList;
|
getListRef.current = getList;
|
||||||
}, [getText, getList]);
|
}, [getText, getList]);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
coordinateMapper.updateDimensions(window.innerWidth * 0.7, window.innerHeight * 0.64);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (socket) {
|
if (socket) {
|
||||||
socket.on('showDatePicker', (info: { coordinates: Coordinates, selector: string }) => {
|
socket.on('showDatePicker', (info: { coordinates: Coordinates, selector: string }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user