@visx/point
Advanced tools
Comparing version 2.6.0 to 2.17.0-alpha.0
@@ -1,20 +0,13 @@ | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var Point = /*#__PURE__*/function () { | ||
function Point(_ref) { | ||
var _ref$x = _ref.x, | ||
x = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$y = _ref.y, | ||
y = _ref$y === void 0 ? 0 : _ref$y; | ||
_defineProperty(this, "x", 0); | ||
_defineProperty(this, "y", 0); | ||
x = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$y = _ref.y, | ||
y = _ref$y === void 0 ? 0 : _ref$y; | ||
this.x = 0; | ||
this.y = 0; | ||
this.x = x; | ||
this.y = y; | ||
} | ||
var _proto = Point.prototype; | ||
_proto.value = function value() { | ||
@@ -26,10 +19,7 @@ return { | ||
}; | ||
_proto.toArray = function toArray() { | ||
return [this.x, this.y]; | ||
}; | ||
return Point; | ||
}(); | ||
export { Point as default }; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.subtractPoints = exports.sumPoints = exports.Point = void 0; | ||
exports.sumPoints = exports.subtractPoints = exports.Point = void 0; | ||
var _Point = _interopRequireDefault(require("./Point")); | ||
exports.Point = _Point.default; | ||
var _sumPoints = _interopRequireDefault(require("./sumPoints")); | ||
exports.sumPoints = _sumPoints.default; | ||
var _subtractPoints = _interopRequireDefault(require("./subtractPoints")); | ||
exports.subtractPoints = _subtractPoints.default; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
@@ -5,22 +5,14 @@ "use strict"; | ||
exports.default = void 0; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var Point = /*#__PURE__*/function () { | ||
function Point(_ref) { | ||
var _ref$x = _ref.x, | ||
x = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$y = _ref.y, | ||
y = _ref$y === void 0 ? 0 : _ref$y; | ||
_defineProperty(this, "x", 0); | ||
_defineProperty(this, "y", 0); | ||
x = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$y = _ref.y, | ||
y = _ref$y === void 0 ? 0 : _ref$y; | ||
this.x = 0; | ||
this.y = 0; | ||
this.x = x; | ||
this.y = y; | ||
} | ||
var _proto = Point.prototype; | ||
_proto.value = function value() { | ||
@@ -32,10 +24,7 @@ return { | ||
}; | ||
_proto.toArray = function toArray() { | ||
return [this.x, this.y]; | ||
}; | ||
return Point; | ||
}(); | ||
exports.default = Point; |
@@ -5,7 +5,4 @@ "use strict"; | ||
exports.default = subtractPoints; | ||
var _Point = _interopRequireDefault(require("./Point")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function subtractPoints(point1, point2) { | ||
@@ -12,0 +9,0 @@ return new _Point.default({ |
@@ -5,7 +5,4 @@ "use strict"; | ||
exports.default = sumPoints; | ||
var _Point = _interopRequireDefault(require("./Point")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function sumPoints(point1, point2) { | ||
@@ -12,0 +9,0 @@ return new _Point.default({ |
{ | ||
"name": "@visx/point", | ||
"version": "2.6.0", | ||
"version": "2.17.0-alpha.0", | ||
"description": "visx point", | ||
@@ -25,3 +25,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "d147e4b194c81e8e53fe0fdc8c6f5630e8deb7aa" | ||
"gitHead": "77292e262dfe082b554b64839eb3ee141439a95f" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6786
112
2