2.3.0 • Published 7 years ago

we-bbox v2.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

#Bbox library

FE Library to perform image annotations.

Install

npm i --save we-bbox

Usage

To start:

  const bbox = Bbox({
    canvasContainer: <DOM element>,
    image: <DOM element>,
    onload?: <Function>
  })

canvasContainer is the dom element that shall contain the annotator.

image is the img dom element containing the image to annotate.

onload is an optional callback function.

You can subscribe to annotations:

 bbox.subscribe((annotation: <Object>) => console.log(annotation))

annotation is an object with parameters x1, y1, x2, y2 corresponding to the coordinates of the upper left and bottom right corners of the bounding box.

The callback gets called everytime the bbox is edited in some significant way.

You can remove the annotator by calling the dispose function:

 bbox.dispose()

This will destroy all content within the canvasContainer.

You can tell the library to set the bbox you want over the image:

  bbox.setBbox({x1: 0, x2: 10, y1: 0, y2: 10})

Development

Webpack dev server: npm start

build for production: npm run build

2.3.0

7 years ago

2.2.7

7 years ago

2.2.6

7 years ago

2.2.5

8 years ago

2.2.4

8 years ago

2.2.3

8 years ago

2.2.2

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.6.1

8 years ago

1.6.0

8 years ago

1.5.4

8 years ago

1.5.3

8 years ago

1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.18

8 years ago

1.4.17

8 years ago

1.4.16

8 years ago

1.4.15

8 years ago

1.4.14

8 years ago

1.4.13

8 years ago

1.4.12

8 years ago

1.4.11

8 years ago

1.4.10

8 years ago

1.4.9

8 years ago

1.4.8

8 years ago

1.4.7

8 years ago

1.4.6

8 years ago

1.4.5

8 years ago

1.4.4

8 years ago

1.4.3

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.4

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago