mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 12:46:09 +03:00
Fix editorconfig config.
This commit is contained in:
parent
606d25dbe6
commit
fa868a039d
@ -1,7 +1,8 @@
|
||||
# editorconfig.org
|
||||
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_size = 4
|
||||
end_of_line = lf
|
||||
|
@ -23,19 +23,19 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
var _viewer;
|
||||
|
||||
|
||||
var generateUniqueHash = (function() {
|
||||
var counter = 0;
|
||||
return function() {
|
||||
return "openseadragon_" + (counter++);
|
||||
};
|
||||
})();
|
||||
|
||||
|
||||
function createViewer() {
|
||||
if ( _viewer ) {
|
||||
destroyViewer();
|
||||
}
|
||||
|
||||
|
||||
_viewer = OpenSeadragon({
|
||||
element: document.getElementById("contentDiv"),
|
||||
showNavigationControl: false,
|
||||
@ -44,7 +44,7 @@
|
||||
tileSources: "../data/testpattern.dzi"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function destroyViewer() {
|
||||
if ( _viewer ) {
|
||||
_viewer.destroy();
|
||||
|
@ -108,6 +108,6 @@
|
||||
// ----------
|
||||
asyncTest('IIIF 2.0 JSON', function() {
|
||||
testOpen('iiif_2_0_tiled/info.json');
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
|
@ -107,7 +107,7 @@
|
||||
var actualImageZoom = viewport.viewportToImageZoom(
|
||||
expectedViewportZoom);
|
||||
equal(actualImageZoom, expectedImageZoom);
|
||||
|
||||
|
||||
var actualViewportZoom = viewport.imageToViewportZoom(actualImageZoom);
|
||||
equal(actualViewportZoom, expectedViewportZoom);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user