【文件属性】:
文件名称:srcissors:图像裁剪用户界面,用于响应式图像
文件大小:3.6MB
文件格式:ZIP
更新时间:2021-05-22 21:34:16
image-cropping swiss-publishing JavaScript
剪刀
图像裁剪以获取响应图像。 (缩小并压缩到约5kB)
s
// Initialize srcissors
var cropper = srcissors . new ( {
arena : $ ( '.crop-arena' ) ,
url : "/images/diagonal.jpg" ,
fixedWidth : 300 ,
minRatio : 1 / 1.5 ,
maxRatio : 1.5 / 1
} ) ;
// Set a crop
cropper . setCrop ( {
x : 1096 ,
y : 461 ,
width : 700 ,
height : 500
} )
// Get the current crop
cropper . getCrop ( ) ;
// Set a ratio
cropper . setR
【文件预览】:
srcissors-master
----.gitignore(39B)
----karma.conf.js(655B)
----README.md(4KB)
----test()
--------specs()
--------images()
----LGPL(7KB)
----srcissors.js.map(27KB)
----examples()
--------css()
--------small-image.html(2KB)
--------srcissors.js.map(27KB)
--------fit-to-area.html(2KB)
--------srcissors.js(20KB)
--------images()
--------index.html(3KB)
--------min-resolution.html(2KB)
--------assets()
----LICENSE(687B)
----package.json(2KB)
----srcissors.js(20KB)
----src()
--------srcissors.js(2KB)
--------preview.js(2KB)
--------events.js(4KB)
--------crop.js(18KB)
----.hound.yml(161B)
----.eslintignore(39B)
----webpack.config.js(843B)
----.eslintrc.json(6KB)
----.drone.yml(623B)
----Changelog.md(844B)