Ticket/InsdepUI/plugin/cropper-2.3.4/test/options/minCanvasWidth.js

(完整代码) 464B

$(function () {

  'use strict';

  var $image = $(window.createCropperImage());
  var minCanvasWidth = 160;

  $image.cropper({
    minCanvasWidth: minCanvasWidth,

    built: function () {

      QUnit.test('options#minCanvasWidth', function (assert) {
        var data = $image.cropper('setCanvasData', {
              width: 80
            }).cropper('getCanvasData');

        assert.ok(Math.round(data.width) === minCanvasWidth);
      });

    }
  });

});

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。