Updated doclets

openseadragon.js doc fixups
This commit is contained in:
Mark Salsbery 2013-11-18 10:30:48 -08:00
parent b929f26872
commit 3e1e5321c1

View File

@ -557,7 +557,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
$.extend( $, /** @lends OpenSeadragon */{ $.extend( $, /** @lends OpenSeadragon */{
/** /**
* These are the default values for the optional settings documented * These are the default values for the optional settings documented
* in the {@link module:OpenSeadragon} constructor detail. * at {@link OpenSeadragon.Options}.
* @member DEFAULT_SETTINGS * @member DEFAULT_SETTINGS
* @memberof OpenSeadragon * @memberof OpenSeadragon
* @static * @static
@ -717,7 +717,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* An enumeration of Browser vendors including UNKNOWN, IE, FIREFOX, * An enumeration of Browser vendors including UNKNOWN, IE, FIREFOX,
* SAFARI, CHROME, and OPERA. * SAFARI, CHROME, and OPERA.
* @name $.BROWSERS
* @static * @static
*/ */
BROWSERS: { BROWSERS: {
@ -733,7 +732,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Returns a DOM Element for the given id or element. * Returns a DOM Element for the given id or element.
* @function * @function
* @name OpenSeadragon.getElement
* @param {String|Element} element Accepts an id or element. * @param {String|Element} element Accepts an id or element.
* @returns {Element} The element with the given id, null, or the element itself. * @returns {Element} The element with the given id, null, or the element itself.
*/ */
@ -748,9 +746,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Determines the position of the upper-left corner of the element. * Determines the position of the upper-left corner of the element.
* @function * @function
* @name OpenSeadragon.getElementPosition
* @param {Element|String} element - the elemenet we want the position for. * @param {Element|String} element - the elemenet we want the position for.
* @returns {Point} - the position of the upper left corner of the element. * @returns {OpenSeadragon.Point} - the position of the upper left corner of the element.
*/ */
getElementPosition: function( element ) { getElementPosition: function( element ) {
var result = new $.Point(), var result = new $.Point(),
@ -782,9 +779,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Determines the position of the upper-left corner of the element adjusted for current page and/or element scroll. * Determines the position of the upper-left corner of the element adjusted for current page and/or element scroll.
* @function * @function
* @name OpenSeadragon.getElementOffset
* @param {Element|String} element - the element we want the position for. * @param {Element|String} element - the element we want the position for.
* @returns {Point} - the position of the upper left corner of the element adjusted for current page and/or element scroll. * @returns {OpenSeadragon.Point} - the position of the upper left corner of the element adjusted for current page and/or element scroll.
*/ */
getElementOffset: function( element ) { getElementOffset: function( element ) {
element = $.getElement( element ); element = $.getElement( element );
@ -820,9 +816,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Determines the height and width of the given element. * Determines the height and width of the given element.
* @function * @function
* @name OpenSeadragon.getElementSize
* @param {Element|String} element * @param {Element|String} element
* @returns {Point} * @returns {OpenSeadragon.Point}
*/ */
getElementSize: function( element ) { getElementSize: function( element ) {
element = $.getElement( element ); element = $.getElement( element );
@ -837,7 +832,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Returns the CSSStyle object for the given element. * Returns the CSSStyle object for the given element.
* @function * @function
* @name OpenSeadragon.getElementStyle
* @param {Element|String} element * @param {Element|String} element
* @returns {CSSStyle} * @returns {CSSStyle}
*/ */
@ -858,7 +852,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* specific to IE behavior. TODO: Deprecate this from the api and * specific to IE behavior. TODO: Deprecate this from the api and
* use it internally. * use it internally.
* @function * @function
* @name OpenSeadragon.getEvent
* @param {Event} [event] * @param {Event} [event]
* @returns {Event} * @returns {Event}
*/ */
@ -879,9 +872,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Gets the position of the mouse on the screen for a given event. * Gets the position of the mouse on the screen for a given event.
* @function * @function
* @name OpenSeadragon.getMousePosition
* @param {Event} [event] * @param {Event} [event]
* @returns {Point} * @returns {OpenSeadragon.Point}
*/ */
getMousePosition: function( event ) { getMousePosition: function( event ) {
@ -924,8 +916,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Determines the page's current scroll position. * Determines the page's current scroll position.
* @function * @function
* @name OpenSeadragon.getPageScroll * @returns {OpenSeadragon.Point}
* @returns {Point}
*/ */
getPageScroll: function() { getPageScroll: function() {
var docElement = document.documentElement || {}, var docElement = document.documentElement || {},
@ -963,8 +954,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Set the page scroll position. * Set the page scroll position.
* @function * @function
* @name OpenSeadragon.getPageScroll * @returns {OpenSeadragon.Point}
* @returns {Point}
*/ */
setPageScroll: function( scroll ) { setPageScroll: function( scroll ) {
if ( typeof ( window.scrollTo ) !== "undefined" ) { if ( typeof ( window.scrollTo ) !== "undefined" ) {
@ -1015,8 +1005,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Determines the size of the browsers window. * Determines the size of the browsers window.
* @function * @function
* @name OpenSeadragon.getWindowSize * @returns {OpenSeadragon.Point}
* @returns {Point}
*/ */
getWindowSize: function() { getWindowSize: function() {
var docElement = document.documentElement || {}, var docElement = document.documentElement || {},
@ -1055,7 +1044,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* Wraps the given element in a nest of divs so that the element can * Wraps the given element in a nest of divs so that the element can
* be easily centered using CSS tables * be easily centered using CSS tables
* @function * @function
* @name OpenSeadragon.makeCenteredNode
* @param {Element|String} element * @param {Element|String} element
* @returns {Element} outermost wrapper element * @returns {Element} outermost wrapper element
*/ */
@ -1103,7 +1091,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* Creates an easily positionable element of the given type that therefor * Creates an easily positionable element of the given type that therefor
* serves as an excellent container element. * serves as an excellent container element.
* @function * @function
* @name OpenSeadragon.makeNeutralElement
* @param {String} tagName * @param {String} tagName
* @returns {Element} * @returns {Element}
*/ */
@ -1123,7 +1110,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Returns the current milliseconds, using Date.now() if available * Returns the current milliseconds, using Date.now() if available
* @name $.now
* @function * @function
*/ */
now: function( ) { now: function( ) {
@ -1142,7 +1128,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* Generally only IE has issues doing this correctly for formats like * Generally only IE has issues doing this correctly for formats like
* png. * png.
* @function * @function
* @name OpenSeadragon.makeTransparentImage
* @param {String} src * @param {String} src
* @returns {Element} * @returns {Element}
*/ */
@ -1191,7 +1176,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Sets the opacity of the specified element. * Sets the opacity of the specified element.
* @function * @function
* @name OpenSeadragon.setElementOpacity
* @param {Element|String} element * @param {Element|String} element
* @param {Number} opacity * @param {Number} opacity
* @param {Boolean} [usesAlpha] * @param {Boolean} [usesAlpha]
@ -1223,7 +1207,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Add the specified CSS class to the element if not present. * Add the specified CSS class to the element if not present.
* @name $.addClass
* @function * @function
* @param {Element|String} element * @param {Element|String} element
* @param {String} className * @param {String} className
@ -1242,7 +1225,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Remove the specified CSS class from the element. * Remove the specified CSS class from the element.
* @name $.removeClass
* @function * @function
* @param {Element|String} element * @param {Element|String} element
* @param {String} className * @param {String} className
@ -1266,7 +1248,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Adds an event listener for the given element, eventName and handler. * Adds an event listener for the given element, eventName and handler.
* @function * @function
* @name OpenSeadragon.addEvent
* @param {Element|String} element * @param {Element|String} element
* @param {String} eventName * @param {String} eventName
* @param {Function} handler * @param {Function} handler
@ -1296,7 +1277,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* Remove a given event listener for the given element, event type and * Remove a given event listener for the given element, event type and
* handler. * handler.
* @function * @function
* @name OpenSeadragon.removeEvent
* @param {Element|String} element * @param {Element|String} element
* @param {String} eventName * @param {String} eventName
* @param {Function} handler * @param {Function} handler
@ -1326,7 +1306,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* Cancels the default browser behavior had the event propagated all * Cancels the default browser behavior had the event propagated all
* the way up the DOM to the window object. * the way up the DOM to the window object.
* @function * @function
* @name OpenSeadragon.cancelEvent
* @param {Event} [event] * @param {Event} [event]
*/ */
cancelEvent: function( event ) { cancelEvent: function( event ) {
@ -1353,7 +1332,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Stops the propagation of the event up the DOM. * Stops the propagation of the event up the DOM.
* @function * @function
* @name OpenSeadragon.stopEvent
* @param {Event} [event] * @param {Event} [event]
*/ */
stopEvent: function( event ) { stopEvent: function( event ) {
@ -1385,7 +1363,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* invocation, and each invocation can add additional arguments as well. * invocation, and each invocation can add additional arguments as well.
* *
* @function * @function
* @name OpenSeadragon.createCallback
* @param {Object} object * @param {Object} object
* @param {Function} method * @param {Function} method
* @param [args] any additional arguments are passed as arguments to the * @param [args] any additional arguments are passed as arguments to the
@ -1417,7 +1394,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Retreives the value of a url parameter from the window.location string. * Retreives the value of a url parameter from the window.location string.
* @function * @function
* @name OpenSeadragon.getUrlParameter
* @param {String} key * @param {String} key
* @returns {String} The value of the url parameter or null if no param matches. * @returns {String} The value of the url parameter or null if no param matches.
*/ */
@ -1462,7 +1438,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Makes an AJAX request. * Makes an AJAX request.
* @function * @function
* @name OpenSeadragon.makeAjaxRequest
* @param {String} url - the url to request * @param {String} url - the url to request
* @param {Function} onSuccess - a function to call on a successful response * @param {Function} onSuccess - a function to call on a successful response
* @param {Function} onError - a function to call on when an error occurs * @param {Function} onError - a function to call on when an error occurs
@ -1527,7 +1502,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Taken from jQuery 1.6.1 * Taken from jQuery 1.6.1
* @function * @function
* @name OpenSeadragon.jsonp
* @param {Object} options * @param {Object} options
* @param {String} options.url * @param {String} options.url
* @param {Function} options.callback * @param {Function} options.callback
@ -1608,7 +1582,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Fully deprecated. Will throw an error. * Fully deprecated. Will throw an error.
* @function * @function
* @name OpenSeadragon.createFromDZI
* @deprecated - use OpenSeadragon.Viewer.prototype.open * @deprecated - use OpenSeadragon.Viewer.prototype.open
*/ */
createFromDZI: function() { createFromDZI: function() {
@ -1618,7 +1591,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/** /**
* Parses an XML string into a DOM Document. * Parses an XML string into a DOM Document.
* @function * @function
* @name OpenSeadragon.parseXml
* @param {String} string * @param {String} string
* @returns {Document} * @returns {Document}
*/ */
@ -1660,7 +1632,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* Reports whether the image format is supported for tiling in this * Reports whether the image format is supported for tiling in this
* version. * version.
* @function * @function
* @name OpenSeadragon.imageFormatSupported
* @param {String} [extension] * @param {String} [extension]
* @returns {Boolean} * @returns {Boolean}
*/ */