UNPKG

react-matter-js

Version:

React adapter for the Matter.js physics engine

10 lines (9 loc) 328 B
import React from 'react'; import Vertices from '../bodies/Vertices'; import 'pathseg'; declare const Shape: ({ paths, sampleLength, ...props }: Props) => JSX.Element | null; export default Shape; declare type Props = { paths: SVGPathElement[]; sampleLength?: number; } & React.ComponentProps<typeof Vertices>;