Skip to content

Commit bc40014

Browse files
committed
Refactor coordinate mapping and add unit tests
1 parent 00c42dd commit bc40014

File tree

5 files changed

+656
-227
lines changed

5 files changed

+656
-227
lines changed

src/dicom-microscopy-viewer.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ import {
1414
Ellipse,
1515
} from './scoord3d.js';
1616
import {
17+
applyInverseTransform,
18+
applyTransform,
19+
buildInverseTransform,
20+
buildTransform,
21+
computeRotation,
1722
mapSlideCoordToPixelCoord,
1823
mapPixelCoordToSlideCoord,
1924
} from './utils.js';
@@ -87,6 +92,11 @@ const events = {
8792
* @namespace utils
8893
*/
8994
const utils = {
95+
applyInverseTransform,
96+
applyTransform,
97+
buildInverseTransform,
98+
buildTransform,
99+
computeRotation,
90100
mapSlideCoordToPixelCoord,
91101
mapPixelCoordToSlideCoord,
92102
};

0 commit comments

Comments
 (0)