代码拉取完成,页面将自动刷新
touchend
event handler.#toDataURL
optional to match Canvas#toDataURL
.#fromDataURL
.dist/signature_pad.js # unminified CommonJS
dist/signature_pad.min.js # minified CommonJS
dist/signature_pad.umd.js # unminified UMD
dist/signature_pad.umd.min.js # minified UMD
dist/signature_pad.m.js # unminified ES module
dist/signature_pad.m.min.js # minified ES module
SignaturePad#toData method. Each point group now has 2 fields:
colorand
points. Individual points no longer have
color` field.SignaturePad#off
(felixhammerl and patrickbussmann).minDistance
not being correctly initialized when set to zero. (remomueller closes #299).SignaturePad#clear
on window resize, to make sure that SignaturePad#isEmpty
returns the correct value. Closes #94.minDistance
option to skip points that are too close to each other (in px). It improves drawing quality (especially when drawing slowly), but introduces small lag. The default value is set to 5
. To switch back to the old behavior, set it to 0
.#toData
/#fromData
to draw the last point in each curve as well. Fixes #270.#fromData
to properly set internal data structure. Fixes #271.Unfortunately, some breaking changes were introduced in 1.6.0, so to follow the semantic versioning, it's re-released as 2.0.0.
signature_pad.js
and signature_pad.min.js
files to dist
folder.#fromDataURL('image/svg+xml')
. jackspirou mymattcarroll szimek
#toData
method that returns data points.#fromData
method that draws signature from data points.signature_pad.js
and signature_pad.min.js
files to dist
folder.touchend
event on touch devices. (#150) mtomic
fromDataURL
. (#108) Remo
on
method that rebinds all event handlers. Alplob
off
method that unbinds all event handlers. Rob-ot
fromDataURL
on HiDPI screens.fromDataURL
on HiDPI screens.onBegin
and onEnd
callbacks when passed as options to constructor. yinsee
onBegin
and onEnd
callbacks. rogerz
SignaturePad#fromDataURL
on Firefox. Fr3nzzy
SignaturePad#isEmpty
return false after loading an image using SignaturePad#fromDataURL
. krisivanov
SignaturePad#clear()
.backgroundColor
option to set custom color of the background on SignaturePad#clear()
.color
option to penColor
.SignaturePad#toDataURL()
.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。