Socket
Socket
Sign inDemoInstall

@vx/point

Package Overview
Dependencies
Maintainers
3
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.196 to 0.0.197

4

esm/Point.js
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()`

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