jasonHzq / react-dnd-line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:TypeScript 100.0%