Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vx/curve

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/curve

vx curve

  • 0.0.109
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20K
decreased by-66.19%
Maintainers
1
Weekly downloads
 
Created
Source

@vx/curve

Overview

A curve is a function that can be passed into other vx objects, mainly a LinePath to change the way the line is structured.

For example, checkout the difference between a Curve.natural:

natural curve

and a Curve.step:

step curve

The @vx/curve package is a wrapper over d3-shape curve functions.

Any function with the prefix curve in d3 can be used through vx like so:

import Curve from `@vx/curve`

let curve = Curve.catmullRomOpen //Corresponds to `d3.curveCatmullRomOpen`

let line = (<Shape.LinePath curve={curve} />)

Functions

vxd3
basiscurveBasis
basisClosecurveBasisClosed
basisOpencurveBasisOpen
stepcurveStep
stepAftercurveStepAfter
stepBeforecurveStepbefore
bundlecurveBundle
linearcurveLinear
linearClosedcurveLinearClosed
monotoneXcurveMonotoneX
monotoneYcurveMonotoneY
cardinalcurveCardinal
cardinalClosedcurveCardinalClosed
cardinalOpencurveCardinalOpen
catmullRomcurveCatmullRom
catmullRomClosedcurveCatmullRomClosed
catmullRomOpencurveCatmullRomOpen
naturalcurveNatural

vx packages

Keywords

FAQs

Package last updated on 17 May 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc