github上的canvas-editor按#765pr合并得到
Go to file
Hufe 52f291f7ed
Merge pull request #107 from Hufe921/feature/docs
feat:add docs workflow
2022-12-31 22:44:00 +08:00
.github/workflows feat:add docs workflow 2022-12-31 22:43:13 +08:00
.vscode feat:add docs 2022-12-31 22:27:43 +08:00
cypress feat:add style namespace 2022-12-16 16:05:56 +08:00
docs feat:add docs 2022-12-31 22:27:43 +08:00
src fix:line thickness of rendered margin 2022-12-29 16:35:10 +08:00
.editorconfig feat:add eslint and fix 2022-03-22 14:48:10 +08:00
.eslintrc feat:add eslint and fix 2022-03-22 14:48:10 +08:00
.gitignore feat:add docs 2022-12-31 22:27:43 +08:00
LICENSE feat:add license 2022-04-06 23:05:12 +08:00
README.md v0.9.11 2022-12-25 17:57:33 +08:00
cypress.json fix:update cypress viewport width 2022-04-14 21:06:45 +08:00
favicon.png feat:rich text editor by canvas 2021-11-12 22:22:05 +08:00
index.html feat:add font selection and font wysiwyg 2022-12-29 15:54:12 +08:00
package.json feat:add docs 2022-12-31 22:27:43 +08:00
tsconfig.json feat:publish npm package config 2022-12-08 17:46:38 +08:00
vite.config.ts feat:publish npm package config 2022-12-08 17:46:38 +08:00
yarn.lock feat:add docs 2022-12-31 22:27:43 +08:00

README.md

canvas-editor

a rich text editor by canvas/svg

tips

  1. The render layer by svg is under development, see feature/svg
  2. 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

image

next features

  1. drag text (optimization)
  2. page header and footer
  3. control rules
  4. table paging
  5. docs

install

yarn

dev

yarn run dev

build

app

yarn run build

lib

yarn run lib