change grid size to 750*750 (562 500 cells)
This commit is contained in:
parent
5757dc23a4
commit
48a447cb3c
|
|
@ -41,14 +41,14 @@ export class Spreadsheet {
|
||||||
public viewport: Viewport
|
public viewport: Viewport
|
||||||
|
|
||||||
constructor(target: string | HTMLElement, props?: SpreadsheetConstructorProperties) {
|
constructor(target: string | HTMLElement, props?: SpreadsheetConstructorProperties) {
|
||||||
const config = createSampleConfig(150, 150)
|
const config = createSampleConfig(750, 750)
|
||||||
if(props?.view) {
|
if(props?.view) {
|
||||||
config.view = props.view
|
config.view = props.view
|
||||||
}
|
}
|
||||||
|
|
||||||
this.config = new Config(config)
|
this.config = new Config(config)
|
||||||
this.sheet = new Sheet(this)
|
this.sheet = new Sheet(this)
|
||||||
const data = createSampleData(150, 150)
|
const data = createSampleData(750, 750)
|
||||||
this.table = new Table(this)
|
this.table = new Table(this)
|
||||||
this.scroller = new Scroller(this)
|
this.scroller = new Scroller(this)
|
||||||
this.toolbar = new Toolbar(this)
|
this.toolbar = new Toolbar(this)
|
||||||
|
|
@ -107,8 +107,8 @@ export class Spreadsheet {
|
||||||
|
|
||||||
const spreadsheet = new Spreadsheet('#spreadsheet', {
|
const spreadsheet = new Spreadsheet('#spreadsheet', {
|
||||||
view: {
|
view: {
|
||||||
height: 400,
|
height: window.innerHeight,
|
||||||
width: 1200
|
width: window.innerWidth
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
spreadsheet.renderSheet()
|
spreadsheet.renderSheet()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue