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

@vx/point

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/point - npm Package Compare versions

Comparing version 0.0.109 to 0.0.110

build/Point.js

43

build/index.js

@@ -1,2 +0,2 @@

"use strict";
'use strict';

@@ -7,38 +7,11 @@ Object.defineProperty(exports, "__esModule", {

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _Point = require('./Point');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
// vx-point (@vx/point)
var Point = function () {
function Point(_ref) {
var _ref$x = _ref.x,
x = _ref$x === undefined ? 0 : _ref$x,
_ref$y = _ref.y,
y = _ref$y === undefined ? 0 : _ref$y;
_classCallCheck(this, Point);
this.x = x;
this.y = y;
Object.defineProperty(exports, 'Point', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_Point).default;
}
});
_createClass(Point, [{
key: "value",
value: function value() {
return {
x: this.x,
y: this.y
};
}
}, {
key: "toArray",
value: function toArray() {
return [this.x, this.y];
}
}]);
return Point;
}();
exports.default = Point;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
{
"name": "@vx/point",
"version": "0.0.109",
"version": "0.0.110",
"description": "vx point",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -8,5 +8,5 @@ # @vx/point

```js
import Point from '@vx/point';
import { Point } from '@vx/point';
let point = new Point({x: 2, y: 3});
let point = new Point({ x: 2, y: 3 });
let {x, y} = point.value() // Get the cords from the point

@@ -13,0 +13,0 @@ let array = point.toArray() // Convert point to array

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