Skip to content

guoweiTang/tang-image-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tang-image-editor

It is a simple image editor of native javascript.

Quickstart

import TangImageEditor from 'tang-image-editor';
import 'tang-image-editor/index.css';

const colorPickerInstance = new TangImageEditor('#colorPicker', {
  imgSrc: 'https://scaleflex.cloudimg.io/v7/demo/river.png', // picture url
  color: '#F56C6C', // default color
  lineWidth: 5, // line width
  maxWidth: 500, // render area maxWidth
  maxHeight: 500, // render area maxHeight
});

// change ImageSource
colorPickerInstance.setImageSrc('https://fuss10.elemecdn.com/9/bb/e27858e973f5d7d3904835f46abbdjpeg.jpeg');

About

图片编辑器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published