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.108 to 0.0.109

2

package.json
{
"name": "@vx/point",
"version": "0.0.108",
"version": "0.0.109",
"description": "vx point",

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

# @vx/point
A simple class to represent an x, y coordinate.
## Example Usage
```js
import Point from '@vx/point';
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
```
## Methods
### `point.value()`
Returns an `{x, y}` object with the x and y coordinates.
### `point.toArray()`
Returns the coordinates as an array `[x, y]`.
## vx packages

@@ -4,0 +26,0 @@

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