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.
|
|
3 years ago | |
|---|---|---|
| .github | 3 years ago | |
| .vscode | 3 years ago | |
| cypress | 3 years ago | |
| docs | 3 years ago | |
| scripts | 3 years ago | |
| src | 3 years ago | |
| .editorconfig | 3 years ago | |
| .eslintrc | 3 years ago | |
| .gitignore | 3 years ago | |
| CHANGELOG.md | 3 years ago | |
| LICENSE | 4 years ago | |
| README.md | 3 years ago | |
| cypress.json | 4 years ago | |
| favicon.png | 4 years ago | |
| index.html | 3 years ago | |
| package.json | 3 years ago | |
| tsconfig.json | 3 years ago | |
| vite.config.ts | 3 years ago | |
| yarn.lock | 3 years 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"), [
{
value: "Hello World"
}
])
next features
- improve performance
- control rules
- table paging
- CRDT
snapshot
install
yarn
dev
npm run dev
build
app
npm run build
lib
npm run lib
