1.0.4 • Published 12 months ago

font-sign v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

使用方法:

1、npm install font-sign

2、import Signature from 'font-sign'

3、let s = new Signature(canvasId, params)

params = {

lineWidth: 2, // 画笔宽度

lineColor: 'black', // 画笔颜色

lineCap: 'round' // 画笔端点形状 (butt: 默认值,端点是垂直于线段边缘的平直边缘) (round:端点是在线段边缘处以线宽为直径的半圆) (square:端点是在选段边缘处以线宽为长、# 以一半线宽为宽的矩形。)

}

4、实例方法:

s.clear() // 清空画布

s.back() // 清除上一步

s.toBase64() // 将签名转为base64位

s.toFile() // 将签名转为文件流

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago