0.1.6 • Published 1 year ago

react-img-editor-en v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-img-editor-en Image Editor

npm.io npm.io

react-img-editor-en is an image editor react component that supports cropping, graffiti, text editing, mosaic processing and other operations on images. It also supports custom plug-ins and flexible style configuration.

Example

✨ Features

  • Supports free brush, rectangle, circle, arrow, text, mosaic drawing
  • Support eraser, undo operation, screenshot and image download
  • Support custom plugins and toolbar configuration
  • Support stretching, dragging and deleting of rectangles, circles, arrows, text and other nodes
  • Support multiple components on the same page

📦 Download

npm install react-img-editor-en -S

🔨 Import and use

import ReactImgEditor from 'react-img-editor-en'
import 'react-img-editor-en/assets/index.css'

<ReactImgEditor src="https://www.w3schools.com/html/img_girl.jpg" />

🧰 API

PropertyDescriptionTypeDefault Value
srcimage urlstring-
widthArtboard widthnumber?700
heightArtboard heightnumber?500
styleArtboard styleReact.CSSProperties-
pluginsCustom pluginsPlugin[][]
toolbarToolbar configuration{ items: string[] }{items: ['pen', 'eraser', 'arrow', 'rect', 'circle', 'mosaic', 'text', '', 'repeal', 'download', 'crop']}
getStageGet KonvaJS's Stage object, which can be used for downloading pictures and other operations(stage: any) => void
defaultPluginNameDefault selected plugin namestring?-
crossOriginHandle cross-origin imagesstring?-

📝 ALL

  • Dynamically load images
  • Download image type configuration
  • Provide plugin configuration item configuration
  • Optimize the free brush writing experience
  • Internationalization support

🤝 Contributions

Development

npm run start

http://127.0.0.1:8012/examples/simple.html

release

npm run lint
npm run pub
0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago