You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
1 year ago | |
|---|---|---|
| .github | 2 years ago | |
| .vscode | 2 years ago | |
| cypress | 2 years ago | |
| docs | 1 year ago | |
| scripts | 3 years ago | |
| src | 1 year ago | |
| .editorconfig | 3 years ago | |
| .eslintrc | 3 years ago | |
| .gitignore | 3 years ago | |
| .prettierrc | 3 years ago | |
| CHANGELOG.md | 1 year ago | |
| LICENSE | 4 years ago | |
| README.md | 2 years ago | |
| cypress.config.ts | 2 years ago | |
| favicon.png | 4 years ago | |
| index.html | 2 years ago | |
| package-lock.json | 1 year ago | |
| package.json | 1 year ago | |
| pnpm-lock.yaml | 2 years ago | |
| tsconfig.json | 3 years ago | |
| vite.config.ts | 3 years ago | |
| yarn.lock | 1 year ago | |
README.md
canvas-editor
a rich text editor by canvas/svg
tips
- docs
- canvas-editor-plugin
- The render layer by svg is under development, see feature/svg
- The export pdf feature is available now, see feature/pdf
usage
npm i @hufe921/canvas-editor --save
<div class="canvas-editor"></div>
import Editor from '@hufe921/canvas-editor'
new Editor(document.querySelector('.canvas-editor'), {
main: [
{
value: 'Hello World'
}
]
})
next features
- table paging
- improve performance
- control rules
- CRDT
snapshot
install
yarn
dev
npm run dev
build
app
npm run build
lib
npm run lib
