Class OpenSeadragon.Tile
- Defined in: openseadragon.js
 
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
										 
											OpenSeadragon.Tile(level, x, y, bounds, exists, url)
										 
										
									 | 
								
Method Summary
Class Detail
								OpenSeadragon.Tile(level, x, y, bounds, exists, url)
							
							
							- Parameters:
 - {Number} level
 - The zoom level this tile belongs to.
 - {Number} x
 - The vector component 'x'.
 - {Number} y
 - The vector component 'y'.
 - {OpenSeadragon.Point} bounds
 - Where this tile fits, in normalized coordinates.
 - {Boolean} exists
 - Is this tile a part of a sparse image? ( Also has this tile failed to load? )
 - {String} url
 - The URL of this tile's image.
 
Field Detail
									
									
									
									
									{Boolean}
									
									beingDrawn							
								
								
								
									Whether this tile is currently being drawn
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{String}
									
									blendStart							
								
								
								
									The start time of this tile's blending
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{OpenSeadragon.Point}
									
									bounds							
								
								
								
									Where this tile fits, in normalized 
     coordinates
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{String}
									
									distance							
								
								
								
									The distance of this tile to the viewport center
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Element}
									
									element							
								
								
								
									The HTML element for this tile
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Boolean}
									
									exists							
								
								
								
									Is this tile a part of a sparse image? ( Also has 
     this tile failed to load?
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Image}
									
									image							
								
								
								
									The Image object for this tile
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Number}
									
									lastTouchTime							
								
								
								
									Timestamp the tile was last touched.
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Number}
									
									level							
								
								
								
									The zoom level this tile belongs to.
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Boolean}
									
									loaded							
								
								
								
									Is this tile loaded?
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Boolean}
									
									loading							
								
								
								
									Is this tile loading
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{String}
									
									opacity							
								
								
								
									The current opacity this tile should be.
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{String}
									
									position							
								
								
								
									This tile's position on screen, in pixels.
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{String}
									
									size							
								
								
								
									This tile's size on screen, in pixels
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{String}
									
									style							
								
								
								
									The alias of this.element.style.
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{String}
									
									url							
								
								
								
									The URL of this tile's image.
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{String}
									
									visibility							
								
								
								
									The visibility score of this tile.
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Number}
									
									x							
								
								
								
									The vector component 'x'.
									
									
									
								
								
								
									
								
								
							
								
									
									
									
									
									{Number}
									
									y							
								
								
								
									The vector component 'y'.
									
									
									
								
								
								
									
								
								
							
						Method Detail
- 
										drawCanvas(context)Renders the tile in a canvas-based context.
- Parameters:
 - {Canvas} context
 
 - 
										drawHTML(container)Renders the tile in an html container.
- Parameters:
 - {Element} container
 
 - 
										{String} toString()Provides a string representation of this tiles level and (x,y) components.
- Returns:
 - {String}
 
 - 
										unload()Removes tile from it's contianer.