# @vx/curve ## Installation

``npm install --save @vx/curve``

## Overview

The `@vx/curve` package is a wrapper of the d3-shape curve functions. A `curve` is a function that can be passed into other `vx` 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 `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
{"ft_lang_label":"__label__en","ft_lang_prob":0.5016554,"math_prob":0.78485644,"size":1448,"snap":"2020-34-2020-40","text_gpt3_token_len":395,"char_repetition_ratio":0.22437674,"word_repetition_ratio":0.0,"special_character_ratio":0.1878453,"punctuation_ratio":0.07103825,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98178583,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-01T11:52:09Z\",\"WARC-Record-ID\":\"<urn:uuid:abd73235-639c-4373-842a-aff7dc87123e>\",\"Content-Length\":\"24907\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cb986024-0d1c-4d34-bcf3-1b58525e67b3>\",\"WARC-Concurrent-To\":\"<urn:uuid:d782b028-60ca-4394-8fca-7ca68dae2725>\",\"WARC-IP-Address\":\"76.76.21.21\",\"WARC-Target-URI\":\"https://vx-demo.now.sh/docs/curve\",\"WARC-Payload-Digest\":\"sha1:4SNUJ24GPY357CKBOVPODBB5NW4DGBWL\",\"WARC-Block-Digest\":\"sha1:U24PNK73WCGNL23IMOFVW5SVBYXKO3XD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600402131412.93_warc_CC-MAIN-20201001112433-20201001142433-00493.warc.gz\"}"}