|
|
||
|---|---|---|
| .github/workflows | ||
| .vscode | ||
| cypress | ||
| docs | ||
| src | ||
| .editorconfig | ||
| .eslintrc | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| cypress.json | ||
| favicon.png | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
| yarn.lock | ||
README.md
canvas-editor
a rich text editor by canvas/svg
tips
- docs
- 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"
}
])
snapshot
next features
- drag text (optimization)
- page header and footer
- control rules
- table paging
- docs
install
yarn
dev
yarn run dev
build
app
yarn run build
lib
yarn run lib
