Comparing version 0.0.108 to 0.0.109
{ | ||
"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 @@ |
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
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
3244
39