Skip to content

Commit 5882090

Browse files
committed
Expose frame of reference uid via property
1 parent 3c35817 commit 5882090

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/viewer.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,6 +1984,15 @@ class VolumeImageViewer {
19841984
return this[_pyramid].pixelSpacings.length
19851985
}
19861986

1987+
/**
1988+
* Frame of Reference UID.
1989+
*
1990+
* @type string
1991+
*/
1992+
get frameOfReferenceUID () {
1993+
return this[_pyramid].metadata[0].FrameOfReferenceUID
1994+
}
1995+
19871996
/**
19881997
* Get the pixel spacing at a given zoom level.
19891998
*
@@ -4452,6 +4461,15 @@ class _NonVolumeImageViewer {
44524461
return this[_metadata]
44534462
}
44544463

4464+
/**
4465+
* Frame of Reference UID.
4466+
*
4467+
* @type string
4468+
*/
4469+
get frameOfReferenceUID () {
4470+
return this[_metadata].FrameOfReferenceUID
4471+
}
4472+
44554473
/**
44564474
* Resize the viewer to fit the viewport.
44574475
*

0 commit comments

Comments
 (0)