Lines Matching refs:crop
46 var crop = layer.crop || {left: 0, top: 0, right: 0 , bottom:0};
48 left: crop.left || 0,
49 right: crop.right || 0,
50 top: crop.top || 0,
51 bottom: crop.bottom || 0
55 function intersect(bounds, crop) { argument
57 left: Math.max(crop.left, bounds.left),
58 right: Math.min(crop.right, bounds.right),
59 top: Math.max(crop.top, bounds.top),
60 bottom: Math.min(crop.bottom, bounds.bottom),
75 var crop = get_crop(layer);
76 if (!is_empty_rect(size) && !is_empty_rect(crop)) {
77 return intersect(size, crop);
82 if (!is_empty_rect(crop)) {
83 return crop;
206 if (is_rect_empty_and_valid(layer.crop)) {