• Stars
    star
    140
  • Rank 261,473 (Top 6 %)
  • Language
    TypeScript
  • License
    Other
  • Created over 4 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Add image annotation to your web apps.

marker.js 2 β€” Add image annotation to your web apps

marker.js 2 is a JavaScript browser library to enable image annotation in your web applications. Add marker.js 2 to your web app and instantly enable users to annotate and mark up images. You can save, share or otherwise process the results.

For a more detailed "Getting started" and other docs and tutorials, please refer to the official documentation.

Installation

npm install markerjs2

or

yarn add markerjs2

Usage

To add image annotation to your web application follow these 3 easy steps:

  1. Create an instance of markerjs2.MarkerArea by passing a target image reference to the constructor.
  2. Set an event handler for render event.
  3. Call the show() method.

Here's a simple example:

// skip this line if you are importing markerjs2 into the global space via the script tag
import * as markerjs2 from 'markerjs2';

// create an instance of MarkerArea and pass the target image reference as a parameter
let markerArea = new markerjs2.MarkerArea(document.getElementById('myimg'));

// register an event listener for when user clicks OK/save in the marker.js UI
markerArea.addEventListener('render', event => {
  // we are setting the markup result to replace our original image on the page
  // but you can set a different image or upload it to your server
  document.getElementById('myimg').src = event.dataUrl;
});

// finally, call the show() method and marker.js UI opens
markerArea.show();

Demos

Check out marker.js 2 demos for various usage examples.

More docs and tutorials

For a more detailed "Getting started" and other docs and tutorials, please refer to the official documentation.

Credits

marker.js 2 is using icons from Material Design Icons for its toolbar.

License

Linkware (see LICENSE for details) - the UI displays a small link back to the marker.js 2 website which should be retained.

Alternative licenses are available through the marker.js 2 website.

More Repositories

1

markerjs

[Deprecated - use markerjs2]: Let your users annotate and mark images
TypeScript
103
star
2

amCharts-Quick-Charts

Free, open source (licensed under MS-PL) charting controls for WPF & Silverlight
C#
97
star
3

PhoneNameResolver

Helps resolve actual reported Windows Phone model names to their "canonical" (publicly known) form.
C#
67
star
4

piano-chart

Piano Chart - JavaScript library to visualize musical notes on a piano keyboard
TypeScript
64
star
5

UWPQuickCharts

Simple charting library for UWP
C#
29
star
6

minimalist-typescript-webpack-starter

Minimalist TypeScript webpack Starter
JavaScript
28
star
7

cropro

Crop, rotate, flip, and straighten images in your web apps.
TypeScript
13
star
8

diagram-app

Create flowcharts, mind maps, org charts, network diagrams and more
TypeScript
9
star
9

markerjs-live

Display dynamic, interactive, and scalable image annotations in your web apps.
TypeScript
7
star
10

mjs-diagram

Add diagramming to your web apps
TypeScript
6
star
11

edgehtml-webview-browser

HTML
4
star
12

markerjs3-wip-demo

Work-in-progress demo of marker.js 3 image annotation web component
TypeScript
4
star
13

markerjs3

Image annotation web components for web apps
TypeScript
4
star
14

browser-lib-starter

browser library developer starter kit
JavaScript
2
star
15

markerjs2-custom-marker-demo

TypeScript
1
star
16

tictactoe3d

3D Tic-Tac-Toe game in Silvelright 3
C#
1
star
17

cryptopnl

Calculate your crypto trading profit/loss in accounting(-ish) way.
Vue
1
star
18

howto-ts-rollup-shared-interface

Support code for a blog post on setting up Rollup with TypeScript and shared outside the project directory structure
TypeScript
1
star