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 <canvas
tabIndex={0} tabIndex={0}
ref={canvasRef} ref={canvasRef}
height={500} height={400}
width={900} width={1150}
/> />
); );

View File

@@ -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;

View File

@@ -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();