github上的canvas-editor按#765pr合并得到
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.
 
 
 
Hufe921 db52ab815d
feat:add docs
3 years ago
.github/workflows test:lock serve version 3 years ago
.vscode feat:add docs 3 years ago
cypress feat:add style namespace 3 years ago
docs feat:add docs 3 years ago
src fix:line thickness of rendered margin 3 years ago
.editorconfig feat:add eslint and fix 4 years ago
.eslintrc feat:add eslint and fix 4 years ago
.gitignore feat:add docs 3 years ago
LICENSE feat:add license 4 years ago
README.md v0.9.11 3 years ago
cypress.json fix:update cypress viewport width 4 years ago
favicon.png feat:rich text editor by canvas 4 years ago
index.html feat:add font selection and font wysiwyg 3 years ago
package.json feat:add docs 3 years ago
tsconfig.json feat:publish npm package config 3 years ago
vite.config.ts feat:publish npm package config 3 years ago
yarn.lock feat:add docs 3 years ago

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