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.189
  • Source
  • npm
  • Socket score

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

@vx/curve

npm install --save @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 { curveCatmullRomOpen } from '@vx/curve';
let line = (<Shape.LinePath curve={curveCatmullRomOpen} />)

// or if you want namespace all Curves under the `Curve`
import * as Curve from `@vx/curve`;
let line = (<Shape.LinePath curve={Curve.curveCatmullRomOpen} />)

Functions

vxd3
curveBasiscurveBasis
curveBasisClosecurveBasisClosed
curveBasisOpencurveBasisOpen
curveStepcurveStep
curveStepAftercurveStepAfter
curveStepBeforecurveStepbefore
curveBundlecurveBundle
curveLinearcurveLinear
curveLinearClosedcurveLinearClosed
curveMonotoneXcurveMonotoneX
curveMonotoneYcurveMonotoneY
curveCardinalcurveCardinal
curveCardinalClosedcurveCardinalClosed
curveCardinalOpencurveCardinalOpen
curveCatmullRomcurveCatmullRom
curveCatmullRomClosedcurveCatmullRomClosed
curveCatmullRomOpencurveCatmullRomOpen
curveNaturalcurveNatural

Keywords

FAQs

Package last updated on 16 May 2019

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