feat: overflow hidden
This commit is contained in:
@@ -141,8 +141,8 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
|
|||||||
<canvas
|
<canvas
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
ref={canvasRef}
|
ref={canvasRef}
|
||||||
height={500}
|
height={400}
|
||||||
width={900}
|
width={1150}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export const VIEWPORT_W = 900;
|
export const VIEWPORT_W = 1150;
|
||||||
export const VIEWPORT_H = 500;
|
export const VIEWPORT_H = 400;
|
||||||
|
|
||||||
export const ONE_PERCENT_OF_VIEWPORT_W = VIEWPORT_W / 100;
|
export const ONE_PERCENT_OF_VIEWPORT_W = VIEWPORT_W / 100;
|
||||||
export const ONE_PERCENT_OF_VIEWPORT_H = VIEWPORT_H / 100;
|
export const ONE_PERCENT_OF_VIEWPORT_H = VIEWPORT_H / 100;
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ interface BrowserDimensions {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class BrowserDimensionsStore implements Partial<BrowserDimensions> {
|
class BrowserDimensionsStore implements Partial<BrowserDimensions> {
|
||||||
width: number = 900;
|
width: number = 1150;
|
||||||
height: number = 500;
|
height: number = 400;
|
||||||
};
|
};
|
||||||
|
|
||||||
const browserDimensionsStore = new BrowserDimensionsStore();
|
const browserDimensionsStore = new BrowserDimensionsStore();
|
||||||
|
|||||||
Reference in New Issue
Block a user