Skip to content

A web component to draw clipping masks onto images.

Notifications You must be signed in to change notification settings

looxis/mask-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mask-tool

install

yarn add https://github.com/looxis/mask-tool

or

npm install --save https://github.com/looxis/mask-tool

import component

import MaskTool from "mask-tool";

connect component and pass image src to it

Props

src

Type: String
Required: true

<mask-tool src="..."></mask-tool>

to get result image:

- set ref to MaskTool component

- set listener for @export event

- call: $refs.maskTool.createExport()

- resulting image passing to your @export event listener as Blob object

<mask-tool ref="maskTool" @export="handleMaskToolExport" src="..."></mask-tool>

About

A web component to draw clipping masks onto images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published