From 48a447cb3c96df40d190a85e8e4f17afd25260bb Mon Sep 17 00:00:00 2001 From: Eugene Date: Thu, 20 Jul 2023 18:35:42 +0300 Subject: [PATCH] change grid size to 750*750 (562 500 cells) --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 4a0b2fd..d182cf9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -41,14 +41,14 @@ export class Spreadsheet { public viewport: Viewport constructor(target: string | HTMLElement, props?: SpreadsheetConstructorProperties) { - const config = createSampleConfig(150, 150) + const config = createSampleConfig(750, 750) if(props?.view) { config.view = props.view } this.config = new Config(config) this.sheet = new Sheet(this) - const data = createSampleData(150, 150) + const data = createSampleData(750, 750) this.table = new Table(this) this.scroller = new Scroller(this) this.toolbar = new Toolbar(this) @@ -107,8 +107,8 @@ export class Spreadsheet { const spreadsheet = new Spreadsheet('#spreadsheet', { view: { - height: 400, - width: 1200 + height: window.innerHeight, + width: window.innerWidth }, }) spreadsheet.renderSheet()