LADS.Layout.Artmode Class
The artwork viewer, which contains a sidebar with tools and thumbnails as well as a central area for the deepzoom image.
Constructor
Item Index
Methods
createButton
-
id -
imgPath -
left -
top
Create a seadragon control button
Parameters:
Returns:
the button
createMediaButton
-
container -
media
Creates a thumbnail button for an associated media
Parameters:
-
containerJQuery objthe element to which we'll append the button
-
mediaObjectan associated media object (from AnnotatedImage)
createSeadragonControls
()
Add controls and key handlers for manual Seadragon manipulation
createTourButton
-
container -
tour
Creates a tour thumbnail button
Parameters:
-
containerJQuery objthe element to which we'll append this button
-
tourDoqthe tour doq
doManip
-
evt -
direction
Do fixed manipulation in response to seadragon controls or key presses
drawPinHelper
-
e
Helper function to draw pushpin on location history map when a location's info box is clicked
Parameters:
-
eObjectevent data related to a location
histOnClick
()
Click handler to expand location history window
init
()
Initiate artmode with a root, artwork image and a sidebar on the left
Return art viewer root element
Returns:
root jquery object
keyHandler
-
evt -
direction
Keydown handler for artwork manipulation; wrapper around doManip that first prevents default key behaviors
makeSidebar
()
Makes the artwork viewer sidebar
mediaClicked
-
media
Generates a click handler for a specific associated media object
Parameters:
-
mediaObjectthe associated media object (from AnnotatedImage)
prepMap
()
A callback function to populate the location history map after it has been created
toggleLocationPanel
()
Toggles location panel when locHistoryContainer or toggler is clicked
-
callback
Make the map for location History.
Parameters:
-
callbackFunctionfunction to be called when map making is complete
