Skip to content

Commit 6814e70

Browse files
committed
Return copy of roi measurements and evaluations
1 parent 7711d2c commit 6814e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/roi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ROI {
8585
* @type Object[]
8686
*/
8787
get measurements () {
88-
return this[_properties].measurements
88+
return this[_properties][Enums.InternalProperties.Measurements].slice(0)
8989
}
9090

9191
/**
@@ -94,7 +94,7 @@ class ROI {
9494
* @type Object[]
9595
*/
9696
get evaluations () {
97-
return this[_properties].evaluations
97+
return this[_properties][Enums.InternalProperties.Evaluations].slice(0)
9898
}
9999

100100
/**

0 commit comments

Comments
 (0)