0.1.7 • Published 4 years ago

lesion-mapper v0.1.7

Weekly downloads
30
License
-
Repository
github
Last release
4 years ago

Lesion Mapper - Vue Component

LesionMapper

What is Lesion Mapper

Documenting skin lesions on body wireframes is common in dermatology and can be better in many ways than textual documentation. LesionMapperTM is a tool and a method to standardize the mapping of lesions. In the LesionMapper methodology, the type of lesions are represented by icons. The severity is represented by the opacity of the icon and the location and distribution by the position and size of the icon, respectively. The images can be dragged, enlarged or rotated.

This is a vue component that can be embedded in other systems. It can export the map as a JSON string or a base64 encoded image.

Installation

npm install vuejs-fabric --save
npm install lesion-mapper --save

Import

import VueFabric from 'vuejs-fabric';
import LesionMapper from 'lesion-mapper';
Vue.component('LesionMapper',LesionMapper);

Use

 <lesion-mapper ref="lmCanvas" :lmWidth="width" :lmHeight="height"></lesion-mapper>

Usage

Props

NameTypeDefaultDescription
lmWidthNumber0canvas width
lmHeightNumber0canvas height
lmJsonString""Json to render
lmImageString""Background
lmDebugBooleanfalseDebug?

Events

nameTypeDescription
savelmeventJson representation
exportlmeventBase64 String

Methods

setLmBackground(image)

Contributors

0.1.7

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago