react-dnd-line

draw lines in div elements

Usage no npm install needed!

<script type="module">
  import reactDndLine from 'https://cdn.skypack.dev/react-dnd-line';
</script>

README

react-dnd-line

draw lines in div elements

npm version npm downloads

install

$ npm i -S react-dnd-line

Usage

import { Point, LineBackend, getPoint } from "react-dnd-line";

class App extends Component {
  render() {
    return (
      <LineBackend lines={lines}>
        <Point type="point" onDraw={(line) => {}} />
        <Point type="point" onDraw={(line) => {}} />
      </LineBackend>
    );
  }
}

License

MIT

Copyright (c) 2015-2016 Recharts Group