JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 48
  • Score
    100M100P100Q34522F
  • License MIT

Vue Component that allows to annotate images by text or free-drawn lines

Package Exports

  • v-image-annotator

Readme

v-image-annotator

Vue Component that allows to annotate images by text or free-drawn lines.

screenshot.png

Install

npm install --save v-image-annotator
# or
yarn add v-image-annotator

Usage

<script setup lang="ts">
    import { ref } from 'vue';
    import { ImageAnnotatorManager, ImageAnnotator } from "v-image-annotator";
    
    const annotatorRef = ref<ImageAnnotatorManager>(null);
    
    function load(file: File) {
        annotatorRef.value?.load(file);
    }
    
    function render() {
        const bytes = annotatorRef.value?.export();
        return bytes;
    }
</script>

<template>
    <ImageAnnotator ref="annotatorRef"/>
</template>