mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-23 05:36:09 +03:00
Fix editorconfig config.
This commit is contained in:
parent
606d25dbe6
commit
fa868a039d
@ -1,7 +1,8 @@
|
|||||||
# editorconfig.org
|
# editorconfig.org
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*]
|
# We need to specify each folder specifically to avoid including test/lib and test/data
|
||||||
|
[{Gruntfile.js,src/**,test/*,test/demo/**,test/helpers/**,test/modules/**}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
|
@ -23,19 +23,19 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var _viewer;
|
var _viewer;
|
||||||
|
|
||||||
var generateUniqueHash = (function() {
|
var generateUniqueHash = (function() {
|
||||||
var counter = 0;
|
var counter = 0;
|
||||||
return function() {
|
return function() {
|
||||||
return "openseadragon_" + (counter++);
|
return "openseadragon_" + (counter++);
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
function createViewer() {
|
function createViewer() {
|
||||||
if ( _viewer ) {
|
if ( _viewer ) {
|
||||||
destroyViewer();
|
destroyViewer();
|
||||||
}
|
}
|
||||||
|
|
||||||
_viewer = OpenSeadragon({
|
_viewer = OpenSeadragon({
|
||||||
element: document.getElementById("contentDiv"),
|
element: document.getElementById("contentDiv"),
|
||||||
showNavigationControl: false,
|
showNavigationControl: false,
|
||||||
@ -44,7 +44,7 @@
|
|||||||
tileSources: "../data/testpattern.dzi"
|
tileSources: "../data/testpattern.dzi"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function destroyViewer() {
|
function destroyViewer() {
|
||||||
if ( _viewer ) {
|
if ( _viewer ) {
|
||||||
_viewer.destroy();
|
_viewer.destroy();
|
||||||
|
@ -108,6 +108,6 @@
|
|||||||
// ----------
|
// ----------
|
||||||
asyncTest('IIIF 2.0 JSON', function() {
|
asyncTest('IIIF 2.0 JSON', function() {
|
||||||
testOpen('iiif_2_0_tiled/info.json');
|
testOpen('iiif_2_0_tiled/info.json');
|
||||||
});
|
});
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
var actualImageZoom = viewport.viewportToImageZoom(
|
var actualImageZoom = viewport.viewportToImageZoom(
|
||||||
expectedViewportZoom);
|
expectedViewportZoom);
|
||||||
equal(actualImageZoom, expectedImageZoom);
|
equal(actualImageZoom, expectedImageZoom);
|
||||||
|
|
||||||
var actualViewportZoom = viewport.imageToViewportZoom(actualImageZoom);
|
var actualViewportZoom = viewport.imageToViewportZoom(actualImageZoom);
|
||||||
equal(actualViewportZoom, expectedViewportZoom);
|
equal(actualViewportZoom, expectedViewportZoom);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user