Skip to content

Commit 47b9012

Browse files
committed
testing disable rotation
1 parent 9fb09b9 commit 47b9012

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

examples/basic/index.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,17 @@
5757
viewer.render({container});
5858
});
5959
</script>
60-
61-
<div><h1>DICOM Microscopy Viewer Example</h1></div>
62-
<div id="root"></div>
60+
<div class="container">
61+
<div class="page-header">
62+
<h1>
63+
DICOM Microscopy Viewer Example
64+
</h1>
65+
<p>
66+
This is a simple example rendering a Microscopy image
67+
</p>
68+
<a href="../">Go back to the Examples page</a>
69+
</div>
70+
<div id="root"></div>
71+
</div>
6372
</body>
6473
</html>

examples/events/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
</noscript>
3232

3333
<script src="https://unpkg.com/dicomweb-client"></script>
34-
<script src="https://unpkg.com/dicom-microscopy-viewer"></script>
35-
<!-- <script src="../../build/dicom-microscopy-viewer.js"></script> -->
34+
<!-- <script src="https://unpkg.com/dicom-microscopy-viewer"></script> -->
35+
<script src="../../build/dicom-microscopy-viewer.js"></script>
3636
<script>
3737

3838
const CORE_ACTIONS = {

src/api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,15 +569,18 @@ class VLWholeSlideMicroscopyImageViewer {
569569
layers: [imageLayer, this[_drawingLayer]],
570570
view: view,
571571
controls: [],
572+
enableRotation: false,
572573
loadTilesWhileAnimating: true,
573574
loadTilesWhileInteracting: true,
574575
logo: false
575576
});
576577
} else {
578+
577579
this[_map] = new Map({
578580
layers: [imageLayer, this[_drawingLayer]],
579581
view: view,
580582
controls: [],
583+
enableRotation: false,
581584
loadTilesWhileAnimating: true,
582585
loadTilesWhileInteracting: true,
583586
logo: false

0 commit comments

Comments
 (0)