mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 21:26:10 +03:00
Merge pull request #14 from Ventero/navimages
Allow overriding the default navImages prefix url
This commit is contained in:
commit
1c577ec40a
@ -222,8 +222,8 @@
|
|||||||
* position. If preserveViewport is set to true, then the viewport position
|
* position. If preserveViewport is set to true, then the viewport position
|
||||||
* is preserved when navigating between images in the sequence.
|
* is preserved when navigating between images in the sequence.
|
||||||
*
|
*
|
||||||
* @param {String} [options.prefixUrl='']
|
* @param {String} [options.prefixUrl='/images/']
|
||||||
* Appends the prefixUrl to navImages paths, which is very useful
|
* Prepends the prefixUrl to navImages paths, which is very useful
|
||||||
* since the default paths are rarely useful for production
|
* since the default paths are rarely useful for production
|
||||||
* environments.
|
* environments.
|
||||||
*
|
*
|
||||||
@ -526,43 +526,43 @@ OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
maxZoomPixelRatio: 2,
|
maxZoomPixelRatio: 2,
|
||||||
|
|
||||||
//INTERFACE RESOURCE SETTINGS
|
//INTERFACE RESOURCE SETTINGS
|
||||||
prefixUrl: null,
|
prefixUrl: "/images/",
|
||||||
navImages: {
|
navImages: {
|
||||||
zoomIn: {
|
zoomIn: {
|
||||||
REST: '/images/zoomin_rest.png',
|
REST: 'zoomin_rest.png',
|
||||||
GROUP: '/images/zoomin_grouphover.png',
|
GROUP: 'zoomin_grouphover.png',
|
||||||
HOVER: '/images/zoomin_hover.png',
|
HOVER: 'zoomin_hover.png',
|
||||||
DOWN: '/images/zoomin_pressed.png'
|
DOWN: 'zoomin_pressed.png'
|
||||||
},
|
},
|
||||||
zoomOut: {
|
zoomOut: {
|
||||||
REST: '/images/zoomout_rest.png',
|
REST: 'zoomout_rest.png',
|
||||||
GROUP: '/images/zoomout_grouphover.png',
|
GROUP: 'zoomout_grouphover.png',
|
||||||
HOVER: '/images/zoomout_hover.png',
|
HOVER: 'zoomout_hover.png',
|
||||||
DOWN: '/images/zoomout_pressed.png'
|
DOWN: 'zoomout_pressed.png'
|
||||||
},
|
},
|
||||||
home: {
|
home: {
|
||||||
REST: '/images/home_rest.png',
|
REST: 'home_rest.png',
|
||||||
GROUP: '/images/home_grouphover.png',
|
GROUP: 'home_grouphover.png',
|
||||||
HOVER: '/images/home_hover.png',
|
HOVER: 'home_hover.png',
|
||||||
DOWN: '/images/home_pressed.png'
|
DOWN: 'home_pressed.png'
|
||||||
},
|
},
|
||||||
fullpage: {
|
fullpage: {
|
||||||
REST: '/images/fullpage_rest.png',
|
REST: 'fullpage_rest.png',
|
||||||
GROUP: '/images/fullpage_grouphover.png',
|
GROUP: 'fullpage_grouphover.png',
|
||||||
HOVER: '/images/fullpage_hover.png',
|
HOVER: 'fullpage_hover.png',
|
||||||
DOWN: '/images/fullpage_pressed.png'
|
DOWN: 'fullpage_pressed.png'
|
||||||
},
|
},
|
||||||
previous: {
|
previous: {
|
||||||
REST: '/images/previous_rest.png',
|
REST: 'previous_rest.png',
|
||||||
GROUP: '/images/previous_grouphover.png',
|
GROUP: 'previous_grouphover.png',
|
||||||
HOVER: '/images/previous_hover.png',
|
HOVER: 'previous_hover.png',
|
||||||
DOWN: '/images/previous_pressed.png'
|
DOWN: 'previous_pressed.png'
|
||||||
},
|
},
|
||||||
next: {
|
next: {
|
||||||
REST: '/images/next_rest.png',
|
REST: 'next_rest.png',
|
||||||
GROUP: '/images/next_grouphover.png',
|
GROUP: 'next_grouphover.png',
|
||||||
HOVER: '/images/next_hover.png',
|
HOVER: 'next_hover.png',
|
||||||
DOWN: '/images/next_pressed.png'
|
DOWN: 'next_pressed.png'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -222,8 +222,8 @@
|
|||||||
* position. If preserveViewport is set to true, then the viewport position
|
* position. If preserveViewport is set to true, then the viewport position
|
||||||
* is preserved when navigating between images in the sequence.
|
* is preserved when navigating between images in the sequence.
|
||||||
*
|
*
|
||||||
* @param {String} [options.prefixUrl='']
|
* @param {String} [options.prefixUrl='/images/']
|
||||||
* Appends the prefixUrl to navImages paths, which is very useful
|
* Prepends the prefixUrl to navImages paths, which is very useful
|
||||||
* since the default paths are rarely useful for production
|
* since the default paths are rarely useful for production
|
||||||
* environments.
|
* environments.
|
||||||
*
|
*
|
||||||
@ -526,43 +526,43 @@ OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
maxZoomPixelRatio: 2,
|
maxZoomPixelRatio: 2,
|
||||||
|
|
||||||
//INTERFACE RESOURCE SETTINGS
|
//INTERFACE RESOURCE SETTINGS
|
||||||
prefixUrl: null,
|
prefixUrl: "/images/",
|
||||||
navImages: {
|
navImages: {
|
||||||
zoomIn: {
|
zoomIn: {
|
||||||
REST: '/images/zoomin_rest.png',
|
REST: 'zoomin_rest.png',
|
||||||
GROUP: '/images/zoomin_grouphover.png',
|
GROUP: 'zoomin_grouphover.png',
|
||||||
HOVER: '/images/zoomin_hover.png',
|
HOVER: 'zoomin_hover.png',
|
||||||
DOWN: '/images/zoomin_pressed.png'
|
DOWN: 'zoomin_pressed.png'
|
||||||
},
|
},
|
||||||
zoomOut: {
|
zoomOut: {
|
||||||
REST: '/images/zoomout_rest.png',
|
REST: 'zoomout_rest.png',
|
||||||
GROUP: '/images/zoomout_grouphover.png',
|
GROUP: 'zoomout_grouphover.png',
|
||||||
HOVER: '/images/zoomout_hover.png',
|
HOVER: 'zoomout_hover.png',
|
||||||
DOWN: '/images/zoomout_pressed.png'
|
DOWN: 'zoomout_pressed.png'
|
||||||
},
|
},
|
||||||
home: {
|
home: {
|
||||||
REST: '/images/home_rest.png',
|
REST: 'home_rest.png',
|
||||||
GROUP: '/images/home_grouphover.png',
|
GROUP: 'home_grouphover.png',
|
||||||
HOVER: '/images/home_hover.png',
|
HOVER: 'home_hover.png',
|
||||||
DOWN: '/images/home_pressed.png'
|
DOWN: 'home_pressed.png'
|
||||||
},
|
},
|
||||||
fullpage: {
|
fullpage: {
|
||||||
REST: '/images/fullpage_rest.png',
|
REST: 'fullpage_rest.png',
|
||||||
GROUP: '/images/fullpage_grouphover.png',
|
GROUP: 'fullpage_grouphover.png',
|
||||||
HOVER: '/images/fullpage_hover.png',
|
HOVER: 'fullpage_hover.png',
|
||||||
DOWN: '/images/fullpage_pressed.png'
|
DOWN: 'fullpage_pressed.png'
|
||||||
},
|
},
|
||||||
previous: {
|
previous: {
|
||||||
REST: '/images/previous_rest.png',
|
REST: 'previous_rest.png',
|
||||||
GROUP: '/images/previous_grouphover.png',
|
GROUP: 'previous_grouphover.png',
|
||||||
HOVER: '/images/previous_hover.png',
|
HOVER: 'previous_hover.png',
|
||||||
DOWN: '/images/previous_pressed.png'
|
DOWN: 'previous_pressed.png'
|
||||||
},
|
},
|
||||||
next: {
|
next: {
|
||||||
REST: '/images/next_rest.png',
|
REST: 'next_rest.png',
|
||||||
GROUP: '/images/next_grouphover.png',
|
GROUP: 'next_grouphover.png',
|
||||||
HOVER: '/images/next_hover.png',
|
HOVER: 'next_hover.png',
|
||||||
DOWN: '/images/next_pressed.png'
|
DOWN: 'next_pressed.png'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user