Coder Social home page Coder Social logo

canvas-writing-board's Introduction

canvas-writing-board

在线demo

基于canvas的手写签字版,支持外接wacom等触控笔输入设备。

使用Pressure.js库获取笔画压感,采用浏览器原生pointEventer事件

目前最佳实践: win10 + chrome + wacom 可以成功获取压感

注意: win7下似乎pointEventer无法获取到输入设备压感,有成功的小伙伴麻烦issue留个言

开始使用

npm install canvas-writing-board
import CanvasWritingBoard from 'canvas-writing-board'
import 'canvas-writing-board/lib/canvas-writing-board.css';

<CanvasWritingBoard @save="(base64)=>{console.log(base64)}" :title="手写签字版">
    <button slot="button">下方自定义按钮1</button>
</CanvasWritingBoard>

效果展示

props

title

event

save

slot

button

canvas-writing-board's People

Contributors

boboooooo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.