2011-12-05 22:50:25 -05:00
|
|
|
(function( $ ){
|
|
|
|
|
2012-01-25 14:14:02 -05:00
|
|
|
/**
|
2012-01-31 15:59:09 -05:00
|
|
|
* A display rectanlge is very similar to the OpenSeadragon.Rect but adds two
|
|
|
|
* fields, 'minLevel' and 'maxLevel' which denote the supported zoom levels
|
|
|
|
* for this rectangle.
|
2012-01-25 14:14:02 -05:00
|
|
|
* @class
|
2012-01-31 15:59:09 -05:00
|
|
|
* @extends OpenSeadragon.Rect
|
|
|
|
* @param {Number} x The vector component 'x'.
|
|
|
|
* @param {Number} y The vector component 'y'.
|
|
|
|
* @param {Number} width The vector component 'height'.
|
|
|
|
* @param {Number} height The vector component 'width'.
|
|
|
|
* @param {Number} minLevel The lowest zoom level supported.
|
|
|
|
* @param {Number} maxLevel The highest zoom level supported.
|
|
|
|
* @property {Number} minLevel The lowest zoom level supported.
|
|
|
|
* @property {Number} maxLevel The highest zoom level supported.
|
2012-01-25 14:14:02 -05:00
|
|
|
*/
|
2012-01-17 18:30:41 -05:00
|
|
|
$.DisplayRect = function( x, y, width, height, minLevel, maxLevel ) {
|
|
|
|
$.Rect.apply( this, [ x, y, width, height ] );
|
2011-12-05 22:50:25 -05:00
|
|
|
|
|
|
|
this.minLevel = minLevel;
|
|
|
|
this.maxLevel = maxLevel;
|
2013-01-29 09:32:58 -08:00
|
|
|
};
|
2012-01-23 22:48:45 -05:00
|
|
|
|
|
|
|
$.extend( $.DisplayRect.prototype, $.Rect.prototype );
|
2011-12-05 22:50:25 -05:00
|
|
|
|
|
|
|
}( OpenSeadragon ));
|