Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

React components to draw different types of curves with svg

License

NotificationsYou must be signed in to change notification settings

pomber/react-svg-curve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React components to draw different types of curves withsvg. It wraps all the curve paths fromd3-shape.

Install

npm install react-svg-curve

Use

import{BasisCurve}from'react-svg-curve';functionApp(){return(<svgwidth="100"height="40"><BasisCurvedata={[[0,10],[50,35],[100,0],]}/></svg>);}

BasisCurve is one of many types of curves available. Go tothedemo on codesandbox to see all the curves and options.


[8]ページ先頭

©2009-2025 Movatter.jp