signature_pad
Advanced tools
Comparing version 1.6.0-beta.1 to 1.6.0-beta.2
module.exports = { | ||
"extends": "airbnb-base" | ||
"extends": "airbnb-base", | ||
"env": { | ||
"browser": true | ||
}, | ||
"rules": { | ||
"no-underscore-dangle": "off", | ||
"func-names": "off", | ||
"import/prefer-default-export": "off", | ||
"no-restricted-properties": "off" | ||
} | ||
}; |
/*! | ||
* Signature Pad v1.6.0-beta.1 | ||
* Signature Pad v1.6.0-beta.2 | ||
* https://github.com/szimek/signature_pad | ||
@@ -20,5 +20,5 @@ * | ||
if (typeof define === "function" && define.amd) { | ||
define(['module'], factory); | ||
define(['exports'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(module); | ||
factory(exports); | ||
} else { | ||
@@ -28,10 +28,11 @@ var mod = { | ||
}; | ||
factory(mod); | ||
factory(mod.exports); | ||
global.SignaturePad = mod.exports; | ||
} | ||
})(this, function (module) { | ||
})(this, function (exports) { | ||
'use strict'; | ||
/* eslint-env browser */ | ||
/* eslint no-underscore-dangle: "off", func-names: "off", import/prefer-default-export: "off" */ | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function Point(x, y, time) { | ||
@@ -524,3 +525,3 @@ this.x = x; | ||
module.exports = SignaturePad; | ||
exports.default = SignaturePad; | ||
}); |
{ | ||
"name": "signature_pad", | ||
"description": "Library for drawing smooth signatures.", | ||
"version": "1.6.0-beta.1", | ||
"version": "1.6.0-beta.2", | ||
"homepage": "https://github.com/szimek/signature_pad", | ||
@@ -12,2 +12,3 @@ "author": { | ||
"main": "dist/signature_pad.js", | ||
"jsnext:main": "src/signature_pad.js", | ||
"scripts": { | ||
@@ -28,3 +29,2 @@ "build": "grunt", | ||
"babel-plugin-transform-es2015-modules-umd": "^6.18.0", | ||
"babel-plugin-transform-exponentiation-operator": "^6.8.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
@@ -31,0 +31,0 @@ "eslint": "^3.13.1", |
@@ -1,3 +0,1 @@ | ||
/* eslint-env browser */ | ||
/* eslint no-underscore-dangle: "off", func-names: "off", import/prefer-default-export: "off" */ | ||
function Point(x, y, time) { | ||
@@ -14,3 +12,3 @@ this.x = x; | ||
Point.prototype.distanceTo = function (start) { | ||
return Math.sqrt(((this.x - start.x) ** 2) + ((this.y - start.y) ** 2)); | ||
return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2)); | ||
}; | ||
@@ -504,2 +502,2 @@ | ||
module.exports = SignaturePad; | ||
export default SignaturePad; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9
0
128660
17
1161