feat: overflow hidden

This commit is contained in:
karishmas6
2024-10-18 22:29:42 +05:30
parent 002b642bbf
commit 451163a81f
3 changed files with 6 additions and 6 deletions

View File

@@ -141,8 +141,8 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
<canvas
tabIndex={0}
ref={canvasRef}
height={500}
width={900}
height={400}
width={1150}
/>
);

View File

@@ -1,5 +1,5 @@
export const VIEWPORT_W = 900;
export const VIEWPORT_H = 500;
export const VIEWPORT_W = 1150;
export const VIEWPORT_H = 400;
export const ONE_PERCENT_OF_VIEWPORT_W = VIEWPORT_W / 100;
export const ONE_PERCENT_OF_VIEWPORT_H = VIEWPORT_H / 100;

View File

@@ -7,8 +7,8 @@ interface BrowserDimensions {
};
class BrowserDimensionsStore implements Partial<BrowserDimensions> {
width: number = 900;
height: number = 500;
width: number = 1150;
height: number = 400;
};
const browserDimensionsStore = new BrowserDimensionsStore();