Mercurial > hg > digilib
comparison client/digitallibrary/jquery/jquery.digilib.js @ 785:4091b0e4dfd7 jquery
first step to a regions plugin
| author | hertzhaft |
|---|---|
| date | Fri, 18 Feb 2011 11:11:49 +0100 |
| parents | 966d5c938b4c |
| children | 1eef3e7a2270 |
comparison
equal
deleted
inserted
replaced
| 784:966d5c938b4c | 785:4091b0e4dfd7 |
|---|---|
| 221 'buttonSettings' : { | 221 'buttonSettings' : { |
| 222 'fullscreen' : { | 222 'fullscreen' : { |
| 223 // path to button images (must end with a slash) | 223 // path to button images (must end with a slash) |
| 224 'imagePath' : 'img/fullscreen/', | 224 'imagePath' : 'img/fullscreen/', |
| 225 'standardSet' : ["reference","zoomin","zoomout","zoomarea","zoomfull","pagewidth","back","fwd","page","bird","help","reset","toggleoptions"], | 225 'standardSet' : ["reference","zoomin","zoomout","zoomarea","zoomfull","pagewidth","back","fwd","page","bird","help","reset","toggleoptions"], |
| 226 'specialSet' : ["mark","delmark","hmir","vmir","rot","brgt","cont","rgb","quality","size","calibrationx","scale","toggleoptions"], | 226 'specialSet' : ["mark","delmark","hmir","vmir","rot","brgt","cont","rgb","quality","size","calibrationx","scale","lessoptions"], |
| 227 'buttonSets' : ['standardSet', 'specialSet'] | 227 'buttonSets' : ['standardSet', 'specialSet'] |
| 228 }, | 228 }, |
| 229 'embedded' : { | 229 'embedded' : { |
| 230 'imagePath' : 'img/embedded/16/', | 230 'imagePath' : 'img/embedded/16/', |
| 231 'standardSet' : ["reference","zoomin","zoomout","zoomarea","zoomfull","bird","help","reset","toggleoptions"], | 231 'standardSet' : ["reference","zoomin","zoomout","zoomarea","zoomfull","bird","help","reset","toggleoptions"], |
| 232 'specialSet' : ["mark","delmark","hmir","vmir","rot","brgt","cont","rgb","quality","scale","toggleoptions"], | 232 'specialSet' : ["mark","delmark","hmir","vmir","rot","brgt","cont","rgb","quality","scale","lessoptions"], |
| 233 'buttonSets' : ['standardSet', 'specialSet'] | 233 'buttonSets' : ['standardSet', 'specialSet'] |
| 234 } | 234 } |
| 235 }, | 235 }, |
| 236 | 236 |
| 237 // number of visible button groups | 237 // number of visible button groups |
| 261 var FULL_AREA; | 261 var FULL_AREA; |
| 262 | 262 |
| 263 var actions = { | 263 var actions = { |
| 264 // init: digilib initialization | 264 // init: digilib initialization |
| 265 init : function(options) { | 265 init : function(options) { |
| 266 console.log('init digilib'); | |
| 266 // import geometry classes | 267 // import geometry classes |
| 267 if (plugins.geometry == null) { | 268 if (plugins.geometry == null) { |
| 268 $.error("jquery.digilib.geometry plugin not found!"); | 269 $.error("jquery.digilib.geometry plugin not found!"); |
| 269 // last straw: old version | 270 // last straw: old version |
| 270 geom = dlGeometry(); | 271 geom = dlGeometry(); |
| 1804 // plugin extension mechanism | 1805 // plugin extension mechanism |
| 1805 if (action === 'plugin') { | 1806 if (action === 'plugin') { |
| 1806 var plugin = arguments[1]; | 1807 var plugin = arguments[1]; |
| 1807 // each plugin needs a name | 1808 // each plugin needs a name |
| 1808 if (plugin.name != null) { | 1809 if (plugin.name != null) { |
| 1810 console.log('installing plugin:', plugin.name); | |
| 1809 plugins[plugin.name] = plugin; | 1811 plugins[plugin.name] = plugin; |
| 1810 } | 1812 } |
| 1811 // initialisation of plugins done later | 1813 // initialisation of plugins done later |
| 1812 } else if (actions[action]) { | 1814 } else if (actions[action]) { |
| 1813 // call action on this with the remaining arguments (inserting data as first argument) | 1815 // call action on this with the remaining arguments (inserting data as first argument) |
