Comparing version 0.0.196 to 0.0.197
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 () { | ||
var Point = /*#__PURE__*/function () { | ||
function Point(_ref) { | ||
@@ -7,0 +5,0 @@ var _ref$x = _ref.x, |
@@ -8,5 +8,3 @@ "use strict"; | ||
var Point = | ||
/*#__PURE__*/ | ||
function () { | ||
var Point = /*#__PURE__*/function () { | ||
function Point(_ref) { | ||
@@ -13,0 +11,0 @@ var _ref$x = _ref.x, |
{ | ||
"name": "@vx/point", | ||
"version": "0.0.196", | ||
"version": "0.0.197", | ||
"description": "vx point", | ||
@@ -25,3 +25,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "0b9ff48c735be9a9273f38750120e7fe2fb2caaf" | ||
"gitHead": "c56b64bfbedde9ca06255b2eeff84b52c49d57ea" | ||
} |
# @vx/point | ||
<a title="@vx/point npm downloads" href="https://www.npmjs.com/package/@vx/point"> | ||
<img src="https://img.shields.io/npm/dm/@vx/point.svg?style=flat-square" /> | ||
</a> | ||
``` | ||
@@ -7,3 +11,3 @@ npm install --save @vx/point | ||
A simple class to represent an x, y coordinate. | ||
A simple class to represent an `x, y` coordinate. | ||
@@ -15,5 +19,5 @@ ## Example Usage | ||
let point = new Point({ x: 2, y: 3 }); | ||
let {x, y} = point.value() // Get the cords from the point | ||
let array = point.toArray() // Convert point to array | ||
const point = new Point({ x: 2, y: 3 }); | ||
const { x, y } = point.value(); // Get the coords as an object | ||
const [x, y] = point.toArray(); // or array | ||
``` | ||
@@ -25,3 +29,3 @@ | ||
Returns an `{x, y}` object with the x and y coordinates. | ||
Returns an `{ x, y }` object with the x and y coordinates. | ||
@@ -28,0 +32,0 @@ ### `point.toArray()` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
4897
32
70
1