susielu / react-annotation

Use react-annotation with built-in annotation types, or extend it to make custom annotations. It is made for annotations in SVG.
http://react-annotation.susielu.com/
Apache License 2.0
396 stars 34 forks source link

react-annotation

Full documentation: http://react-annotation.susielu.com

composable-annotation

Setup

Using NPM

You can add react-annotation as a node module by running

npm i react-annotation -S

If you're new to using React, I suggest using create-react-app to start your project

Local Setup and Build

This project uses yarn, make sure that is set up prior to installing and building. To test out the library and run the docs locally, clone the repo and then run:

yarn install

Then run the start command to have a process watch for changes and build the docs site:

yarn start

If you want to make a production build of the docs run:

yarn build
//this includes the yarn run prebuild command below

If you want to make a production build of just the components and the bundle.js that can be used as a codepen import run:

yarn prebuild

Feedback

I would love to hear from you about any additional features that would be useful, please say hi on twitter @DataToViz.

Prior art