# 使用
```js
import 'dascom-le-editor/dist/editor.css'
import editor from 'dascom-le-editor'
// 实例化， 传入html dom
const editorIntance = new editor(dom)

// 导出当前画布json
const toExportJson = async () => {
  let json = await editorIntance?.exportJson()
}

// 导入文件json，新开编辑tab
const toImportJson = async (data: any) => {
  await editorIntance?.loadJson(fileJson)
}

// 导出当前画布图片
const toExportImage = async () => {
  let data = await editorIntance?.getImage()
}
```