Ticket/InsdepUI/plugin/cropper-2.3.4/test/options/data.js
(完整代码) 670B$(function () {
'use strict';
var $image = $(window.createCropperImage());
var _data = {
x: 360,
y: 450,
width: 640,
height: 360,
rotate: 45
};
$image.cropper({
data: _data,
built: function () {
var data = $image.cropper('getData');
QUnit.test('options#data', function (assert) {
assert.equal(Math.round(data.x), _data.x);
assert.equal(Math.round(data.y), _data.y);
assert.equal(Math.round(data.width), _data.width);
assert.equal(Math.round(data.height), _data.height);
assert.equal(Math.round(data.rotate), _data.rotate);
});
}
});
});
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。