@remotion/paths
A package providing utility functions for dealing with SVG paths. This package includes code from svg-path-properties
, svg-path-reverse
and d3-interpolate-path
with the following improvements:
- Functional style APIs
- First class Typescript types
- Documentation with examples
- ESM import style
This package has no dependencies, meaning this package can be used without Remotion.
- npm
- pnpm
- yarn
bash
npm i @remotion/paths
bash
npm i @remotion/paths
bash
pnpm i @remotion/paths
bash
pnpm i @remotion/paths
bash
yarn add @remotion/paths
bash
yarn add @remotion/paths
Functions
getLength()
getParts()
getPointAtLength()
getTangentAtLength()
reversePath()
normalizePath()
interpolatePath()
evolvePath()
License
MIT