Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@visx/point

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visx/point - npm Package Compare versions

Comparing version 2.6.0 to 2.17.0-alpha.0

20

esm/Point.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc