Home | History | Annotate | Download | only in image_editor

Lines Matching full:crop

8  * Crop mode.
11 ImageEditor.Mode.Crop = function() {
12 ImageEditor.Mode.call(this, 'crop', 'GALLERY_CROP');
15 ImageEditor.Mode.Crop.prototype = {__proto__: ImageEditor.Mode.prototype};
20 ImageEditor.Mode.Crop.prototype.setUp = function() {
27 this.domOverlay_.className = 'crop-overlay';
43 this.cropFrame_.className = 'crop-frame';
76 ImageEditor.Mode.Crop.prototype.reset = function() {
84 ImageEditor.Mode.Crop.prototype.positionDOM = function() {
88 var delta = ImageEditor.Mode.Crop.MOUSE_GRAB_RADIUS;
112 ImageEditor.Mode.Crop.prototype.cleanUpUI = function() {
123 ImageEditor.Mode.Crop.MOUSE_GRAB_RADIUS = 6;
128 ImageEditor.Mode.Crop.TOUCH_GRAB_RADIUS = 20;
132 * @return {Command.Crop} // TODO(JSDOC).
134 ImageEditor.Mode.Crop.prototype.getCommand = function() {
136 return new Command.Crop(cropImageRect);
142 ImageEditor.Mode.Crop.prototype.createDefaultCrop = function() {
157 ImageEditor.Mode.Crop.prototype.getCursorStyle = function(x, y, mouseDown) {
168 ImageEditor.Mode.Crop.prototype.getDragHandler = function(x, y, touch) {
186 ImageEditor.Mode.Crop.prototype.getDoubleTapAction = function(x, y) {
304 touch ? ImageEditor.Mode.Crop.TOUCH_GRAB_RADIUS :
305 ImageEditor.Mode.Crop.MOUSE_GRAB_RADIUS);
359 if (mode.newcrop) return 'crop';