Skip to content

Commit abb0892

Browse files
committed
fix: scaling metadata should be derived from providers (cornerstonejs#464)
* fix: scaling metadata should be derived from cs directly * better name for prevent scale and update builds * fix prescale object after scale
1 parent 798ce3f commit abb0892

File tree

12 files changed

+31437
-169
lines changed

12 files changed

+31437
-169
lines changed

packages/dicomImageLoader/examples/cornerstone.min.js

Lines changed: 5214 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dicomImageLoader/examples/cornerstone.min.js.map

Lines changed: 1060 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dicomImageLoader/examples/cornerstoneMath.min.js

Lines changed: 1858 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dicomImageLoader/examples/cornerstoneMath.min.js.map

Lines changed: 390 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dicomImageLoader/examples/dicomParser.min.js

Lines changed: 1390 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dicomImageLoader/examples/dicomParser.min.js.map

Lines changed: 370 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,45 @@
1-
<!DOCTYPE HTML>
1+
<!DOCTYPE html>
22
<html>
3-
<head>
3+
<head>
44
<!-- twitter bootstrap CSS stylesheet - not required by cornerstone -->
5-
<link href="bootstrap.min.css" rel="stylesheet">
6-
</head>
7-
<body>
5+
<link href="bootstrap.min.css" rel="stylesheet" />
6+
</head>
7+
<body>
8+
<div class="container">
9+
<h1>CornerstoneWADOImageLoader Examples</h1>
810

9-
<div class="container">
10-
<h1>
11-
CornerstoneWADOImageLoader Examples
12-
</h1>
11+
<strong
12+
>The following examples should work on any browser that supports the
13+
HTML5 canvas element. We currently recommend using Chrome for
14+
development and the best end user experience. The following examples use
15+
legacy cornerstone for rendering.</strong
16+
>
17+
<br />
18+
<br />
1319

14-
<strong>The following examples should work on any browser that supports the HTML5 canvas element. We currently
15-
recommend using Chrome for development and the best end user experience.</strong>
16-
<br>
17-
<br>
18-
19-
<ul>
20-
<li><a href="wadouri/index.html">WADO-URI (DICOM P10 via HTTP GET)</a></li>
21-
<li><a href="wadourimultiframe/index.html">WADO-URI (DICOM P10 via HTTP GET) multiframe</a></li>
22-
<li><a href="dicomfile/index.html">dicomfile (DICOM P10 on local file system)</a></li>
23-
<li><a href="wadors/index.html">WADO-RS RetrieveFrame (RESTful DICOMWeb)</a></li>
24-
<li><a href="customWebWorkerTask/index.html">Custom Web Worker Task</a></li>
25-
</ul>
26-
</div>
27-
28-
</body>
29-
</html>
20+
<ul>
21+
<li>
22+
<a href="wadouri/index.html">WADO-URI (DICOM P10 via HTTP GET)</a>
23+
</li>
24+
<li>
25+
<a href="wadourimultiframe/index.html"
26+
>WADO-URI (DICOM P10 via HTTP GET) multiframe</a
27+
>
28+
</li>
29+
<li>
30+
<a href="dicomfile/index.html"
31+
>dicomfile (DICOM P10 on local file system)</a
32+
>
33+
</li>
34+
<li>
35+
<a href="wadors/index.html"
36+
>WADO-RS RetrieveFrame (RESTful DICOMWeb)</a
37+
>
38+
</li>
39+
<li>
40+
<a href="customWebWorkerTask/index.html">Custom Web Worker Task</a>
41+
</li>
42+
</ul>
43+
</div>
44+
</body>
45+
</html>

packages/dicomImageLoader/examples/wadouri/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ <h2>Deflate</h2>
166166
<!-- include the cornerstoneWADOImageLoader library -->
167167
<script src="../dist/cornerstoneWADOImageLoader.bundle.min.js"></script>
168168

169+
<script>window.cornerstone || document.write('<script src="https://unpkg.com/cornerstone-core">\x3C/script>')</script>
170+
<script>window.cornerstoneWADOImageLoader || document.write('<script src="https://unpkg.com/cornerstone-wado-image-loader">\x3C/script>')</script>
171+
169172
<script src="../dicomfile/uids.js"></script>
170173
<script src="../utils/initializeWebWorkers.js"></script>
171174

0 commit comments

Comments
 (0)