1.0.33 • Published 3 years ago
img-notate v1.0.33
img-notate — Add annotations to the images on your web apps
img-notate is a JavaScript browser library to enable annotations for the images in your web applications. Add img-notate to your web app and instantly enable users to annotate and mark up images. You can save, share or otherwise process the results.
Installation
npm install img-notateor
yarn add img-notateUsage
To add img-notate to your web application follow just 1 easy step:
- Create an instance of
ImgNotate.initby passing a target image reference & settings to the constructor.
Here's a simple example:
// skip this line if you are importing img-notate into the global space via the script tag
import { ImgNotate } from 'img-notate';
// create an instance of imgNotateInit and pass the target image reference & settings as a parameters
const imgNotateInit = ImgNotate.init(
document.getElementById('myImg'), // image reference
{
targetRoot: document.getElementById('bb-editor-container'), // Parent Element (optional)
hideToolbar: true, // To hide the toolbar (optional)
buttonMappings: [ // Button Mappings (optional but recommended if toolbar is hidden)
{
elementId: 'undoImageLIb', // Button ID
element: document.getElementById('undoImageLIb'), // Button Element (optional if elementId is provided. If both are provided, elementId will be considered (element will be ignored))
action: 'Undo', // Action for button
},
{
elementId: 'redoImageLIb',
action: 'Redo',
},
{
elementId: 'arrowImageLIb',
action: 'ArrowMarker',
},
{
elementId: 'frameImageLIb',
action: 'FrameMarker',
},
{
elementId: 'freeHandImageLIb',
action: 'FreehandMarker',
},
{
elementId: 'textImageLIb',
action: 'TextMarker',
},
],
}
);1.0.33
3 years ago
1.0.32
3 years ago
1.0.30
3 years ago
1.0.29
3 years ago
1.0.28
3 years ago
1.0.27
3 years ago
1.0.26
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago