diff --git a/README.md b/README.md new file mode 100644 index 0000000..412684e --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# SpreadsheetSpreadsheet + +- High performance spreadsheet based on CanvasAPI. +- TypeScript supported + +
+Basic usage + +```js +import { Spreadsheet } from 'spreadsheet +const target = document.querySelector('#spreadsheet_container') +const spreadsheetInstance = new Spreadsheet(target) +``` +
\ No newline at end of file diff --git a/src/main.ts b/src/main.ts index bc45719..83d0ff9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -45,14 +45,14 @@ export class Spreadsheet { public cache: Cache constructor(target: string | HTMLElement, props?: SpreadsheetConstructorProperties) { - const config = createSampleConfig(2000, 600) + const config = createSampleConfig(500, 500) if (props?.view) { config.view = props.view } this.config = new Config(config) this.sheet = new Sheet(this) - const data = createSampleData(2000, 600) + const data = createSampleData(500, 500) this.table = new Table(this) this.scroller = new Scroller(this) this.toolbar = new Toolbar(this)