- Source:
Methods
fromObjectURL(objectUrl, options) → {Promise}
- Source:
SignaturePad.prototype.fromDataURL is asynchronous and does not return a Promise. This is a rewrite returning a promise and the objectUrl. In addition it also fixes a bug where a loaded image is stretched to fit the canvas.
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
objectUrl |
* | ObjectURL |
||||||||||||||||
options |
object | options Properties
|
Returns:
a promise that resolves with an objectURL
- Type
- Promise
updateData(pointGroups)
- Source:
Similar to SignaturePad.prototype.fromData except that it doesn't clear the canvas. This is to facilitate undoing a drawing stroke over a background (bitmap) image.
Parameters:
Name | Type | Description |
---|---|---|
pointGroups |
* | pointGroups |