Lines Matching refs:crop
47 var crop = layer.crop || {left: 0, top: 0, right: 0 , bottom:0};
49 left: crop.left || 0,
50 right: crop.right || 0,
51 top: crop.top || 0,
52 bottom: crop.bottom || 0
56 function intersect(bounds, crop) { argument
58 left: Math.max(crop.left, bounds.left),
59 right: Math.min(crop.right, bounds.right),
60 top: Math.max(crop.top, bounds.top),
61 bottom: Math.min(crop.bottom, bounds.bottom),
76 var crop = get_crop(layer);
77 if (!is_empty_rect(size) && !is_empty_rect(crop)) {
78 return intersect(size, crop);
83 if (!is_empty_rect(crop)) {
84 return crop;