mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Added an OpenSeadragon.version property
This commit is contained in:
parent
d223c9d8e5
commit
cb765afea2
@ -56,6 +56,7 @@ OPENSEADRAGON CHANGELOG
|
|||||||
* Viewer.innerTracker.scrollHandler: preventDefaultAction == true prevents viewer zooming on mousewheel/pinch
|
* Viewer.innerTracker.scrollHandler: preventDefaultAction == true prevents viewer zooming on mousewheel/pinch
|
||||||
* Fixed: IE8 error with custom buttons - "Object doesn't support this action" (#279)
|
* Fixed: IE8 error with custom buttons - "Object doesn't support this action" (#279)
|
||||||
* Support IIIF servers that don't report tile dimensions (#286)
|
* Support IIIF servers that don't report tile dimensions (#286)
|
||||||
|
* Added a static 'version' property to OpenSeadragon. Useful for plugins that require specific OpenSeadragon versions.
|
||||||
|
|
||||||
0.9.131:
|
0.9.131:
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "OpenSeadragon",
|
"name": "OpenSeadragon",
|
||||||
"version": "0.9.131",
|
"version": "1.0.0",
|
||||||
"description": "Provides a smooth, zoomable user interface for HTML/Javascript.",
|
"description": "Provides a smooth, zoomable user interface for HTML/Javascript.",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "~0.4.1",
|
"grunt": "~0.4.1",
|
||||||
|
@ -277,6 +277,30 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
(function( $ ){
|
(function( $ ){
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The OpenSeadragon version.
|
||||||
|
*
|
||||||
|
* @member {Object} version
|
||||||
|
* @memberof OpenSeadragon
|
||||||
|
* @property {String} versionStr - The version number as a string ('major.minor.revision').
|
||||||
|
* @property {Number} major - The major version number.
|
||||||
|
* @property {Number} minor - The minor version number.
|
||||||
|
* @property {Number} revision - The revision number.
|
||||||
|
*/
|
||||||
|
$.version = (function () {
|
||||||
|
// The version string ('x.x.x') is filled in by the grunt concat build task
|
||||||
|
// from the 'version' value in package.json
|
||||||
|
var versionStr = '<%= pkg.version %>',
|
||||||
|
versionComponents = versionStr.split( '.' );
|
||||||
|
return {
|
||||||
|
versionStr: versionStr,
|
||||||
|
major: parseInt( versionComponents[ 0 ] ),
|
||||||
|
minor: parseInt( versionComponents[ 1 ] ),
|
||||||
|
revision: parseInt( versionComponents[ 2 ] )
|
||||||
|
};
|
||||||
|
}());
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Taken from jquery 1.6.1
|
* Taken from jquery 1.6.1
|
||||||
* [[Class]] -> type pairs
|
* [[Class]] -> type pairs
|
||||||
|
Loading…
Reference in New Issue
Block a user