lefit-mobile-crop
lefit-移动端裁剪方案
Last updated a year ago by fadein .
MIT · Original npm · Tarball · package.json
$ cnpm install lefit-mobile-crop 
SYNC missed versions from official npm registry.

lefit-mobile-crop

移动端裁剪方案

使用方法:

  var crop = new LefitMobileCrop({
    file: file, // 从input拿到的file文件
    src: 'http://xxx', // 加载base64或者http图片链接
    imageRatio: '1:1', // width:height,图片裁剪比例,宽度始终为屏幕宽度
    onConfirm: function () { }, // 裁剪成功后的回调
    onCancel: function () { }, // 取消裁剪的回调
    confirmText: '确定', // 确认按钮文字
    cancelText: '取消', // 取消按钮文字
    rotateText: '旋转'// 选择按钮文字
  })

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8024
npm run dev

# build for production with minification
npm run build

Current Tags

  • 1.0.2                                ...           latest (a year ago)

3 Versions

  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |