Added readme

reduced count of rows
This commit is contained in:
Eugene 2023-07-24 17:32:23 +03:00
parent 4fc0ca17b6
commit e8b3872f68
2 changed files with 16 additions and 2 deletions

14
README.md Normal file
View File

@ -0,0 +1,14 @@
# SpreadsheetSpreadsheet
- <span>High performance spreadsheet based on CanvasAPI.</span>
- <span>TypeScript supported</span>
<div>
<span>Basic usage</span>
```js
import { Spreadsheet } from 'spreadsheet
const target = document.querySelector('#spreadsheet_container')
const spreadsheetInstance = new Spreadsheet(target)
```
</div>

View File

@ -45,14 +45,14 @@ export class Spreadsheet {
public cache: Cache public cache: Cache
constructor(target: string | HTMLElement, props?: SpreadsheetConstructorProperties) { constructor(target: string | HTMLElement, props?: SpreadsheetConstructorProperties) {
const config = createSampleConfig(2000, 600) const config = createSampleConfig(500, 500)
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(2000, 600) const data = createSampleData(500, 500)
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)