0.0.13 • Published 10 months ago

react-focustar v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

FocuStar

build

Simple React component to drop points into pictures

Installation

npm install --save react-focustar

or:

yarn add react-focustar

Usage

import { Widget } from 'react-focustar'

function MyApp() {
  return (
    <div className="container">
      <Widget
        images={{
          old: '',
          new: '',
        }}
        dots={{
          old: [
            { x: 10, y: 10 },
            { x: 100, y: 90 },
            { x: 400, y: 390 },
          ],
          new: [
            { x: 150, y: 50 },
            { x: 200, y: 80 },
          ],
        }}
        legend={[
          'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
          'Class aptent taciti sociosqu ad litora torquent',
          'Integer ut sem nec sem fringilla suscipit eget viverra nunc',
        ]}
      />
    </div>
  )
}
0.0.11

10 months ago

0.0.12

10 months ago

0.0.13

10 months ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago