react-dnd-line
TypeScript icon, indicating that this package has built-in type declarations

0.2.13 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-dnd-line

Weekly Downloads

20

Version

0.2.13

License

MIT

Unpacked Size

33.9 kB

Total Files

23

Last publish

Collaborators

  • hzongquan