github上的canvas-editor按#765pr合并得到
Go to file
Hufe921 45ef8b6954 fix:cannot delete control when it is first element #131 2023-02-28 21:13:59 +08:00
.github/workflows feat:add docs workflow 2022-12-31 22:43:13 +08:00
.vscode feat:redraw when device pixel ratio change 2023-02-19 13:12:40 +08:00
cypress test:optimize the method of get editor value 2023-02-21 21:07:52 +08:00
docs docs:cursor style option 2023-02-23 21:24:44 +08:00
src fix:cannot delete control when it is first element #131 2023-02-28 21:13:59 +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 docs:next features road map 2023-02-26 22:14:30 +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:support mac os shortcut remark 2023-02-17 22:19:17 +08:00
package.json v0.9.17 2023-02-28 19:29:05 +08:00
tsconfig.json feat:publish npm package config 2022-12-08 17:46:38 +08:00
vite.config.ts feat:update server host 2023-01-05 19:29:49 +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. docs
  2. The render layer by svg is under development, see feature/svg
  3. 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

  1. improve performance
  2. page header and footer
  3. control rules
  4. table paging

snapshot

image

install

yarn

dev

yarn run dev

build

app

yarn run build

lib

yarn run lib