Noodle Help Site

Class Images


Defined in: <./Images/media/noodle.images.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Images(myParent)
Method Summary
Method Attributes Method Name and Description
 
exif(i)
 
 
getId(id, next)
 
getName(id)
 
 
getType(id)
 
init()
 
isBefore(a, b)
 
load(id)
 
loadH(x, t, a)
 
move(next)
 
next()
 
 
 
 
 
pause(id)
 
play(id)
 
 
 
 
timeOut(id)
 
yth(id)
Images(myParent)
Parameters:
{Noodle} myParent
Returns:
{Images}
exif(i)
Parameters:
{HTMLImageElement} i
{Array} getDisplaySize(i)
Parameters:
{HTMLImageElement} i
Returns:
{Array} s [width, height] of the image
{String|Null} getId(id, next)
Parameters:
{String|Number} id
current image id
{Boolean} next
Returns:
{String|Null} next or previous image id or Null if would be out of bounds
{String} getName(id)
Parameters:
{String|Number} id
Returns:
{String} filename of the media
{Number} getTopSize(w)
Parameters:
{Window} w
Returns:
{Number}
{String} getType(id)
Parameters:
{String|Number} id
Returns:
{String} Type of media: "i", "v", "ri", "rv", "youtube"
init()
{Boolean|Null} isBefore(a, b)
Parameters:
{String|Number} a
An id handle
{String|Number} b
An id handle
Returns:
{Boolean|Null}
load(id)
Parameters:
{String|Number} id
loadH(x, t, a)
Parameters:
{Document|Null} x
{String} t
{Array} a
{Boolean} move(next)
Parameters:
{Boolean} next
Returns:
{Boolean} false
{Boolean} next()
Returns:
{Boolean} false
on_animateError(e)
Parameters:
{Event} e
on_animateFinished()
on_loadError(e)
Parameters:
{Event} e
the error event
on_loadFinished()
pause(id)
Parameters:
{String|Number} id
play(id)
Parameters:
{String|Number} id
{Boolean} previous()
Returns:
{Boolean} false
resize()
{Boolean} rotate()
Returns:
{Boolean} false
timeOut(id)
Parameters:
{String|Number} id
yth(id)
Parameters:
{String|Number} id