tang-image-editor
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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');

DEMO

Readme

Keywords

Package Sidebar

Install

npm i tang-image-editor

Weekly Downloads

2

Version

0.1.4

License

ISC

Unpacked Size

19.2 kB

Total Files

6

Last publish

Collaborators

  • ice.tang