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

@visx/curve

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visx/curve

visx curve

  • 3.12.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
417K
decreased by-4.69%
Maintainers
4
Weekly downloads
 
Created
Source

@visx/curve

Installation

npm install --save @visx/curve

Overview

The @visx/curve package is a wrapper of the d3-shape curve functions. A curve is a function that can be passed into other visx objects that draw lines or paths, such as a LinePath, to change the way the line between points is drawn. Click on the example below for an interactive way to explore curve aesthetics.

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

import { curveCatmullRomOpen } from '@visx/curve';
let line = (<Shape.LinePath curve={curveCatmullRomOpen} />)

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

Functions

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

Keywords

FAQs

Package last updated on 07 Nov 2024

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