8000 GitHub - wangxiangnan/we-cropper: we-cropper
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wangxiangnan/we-cropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

微信小程序图片裁剪工具we-cropper

一款灵活小巧的canvas图片裁剪器

Feature

  • 实用的API
  • 灵活的钩子函数
  • 多场景的demo可供参考:
    • 常规裁剪
    • 上传裁剪头像
    • 裁剪网络图片
    • 添加水印
    • 局部裁剪

Usage

克隆项目到你的目录

cd my-project

git clone https://github.com/we-plugin/we-cropper.git

 使用编译后的文件dist/weCropper.js

var weCropper = require('dist/weCropper')

// ES6(需在开发工具勾选ES6转ES5)
import weCropper from 'dist/weCropper'

对插件进行开发调试

npm install

在src下进行文件修改

npm run build

Links

Document

ChangeLog

Example

The MIT License

Contributing

如果你有好的意见或建议,欢迎提issue或pull request

About

we-cropper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0