Socket
Socket
Sign inDemoInstall

@visx/point

Package Overview
Dependencies
0
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @visx/point

visx point


Version published
Maintainers
4
Created

Changelog

Source

v3.0.0 (2023-01-06)

:boom: Breaking Changes
  • security: Revert "Revert breaking "deps(scale): bump d3-interpolate and d3-scale"" #1621
  • breaking(annotation): remove deprecated/LinePathAnnotation #1620
  • breaking(responsive, xychart): require ResizeObserver or polyfill #1622

:house: Internal

  • internal(github/workflows): add tsconfig + demo site build checks #1626
  • deps(demo): upgrade to next@11 #1627
:trophy: Contributors

Readme

Source

@visx/point

npm install --save @visx/point

A simple class to represent an x, y coordinate.

Example Usage

import { Point } from '@visx/point';

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

Methods

point.value()

Returns an { x, y } object with the x and y coordinates.

point.toArray()

Returns the coordinates as an array [x, y].

Keywords

FAQs

Last updated on 06 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc