Skip to content

Commit

Permalink
save evaluation status
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Sep 13, 2023
1 parent 321b919 commit ee02e05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/labeling/pitfalls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ function addROIFormEvent() {
label.properties.percent_stroma = itsRange.value;
label.properties.til_density = vtaRange.value;
label.properties.pitfalls = pitfalls;
label.properties.evaluable = document.querySelector(`input[type=radio][name=roi_type]:checked`).value;
label.geometries.features[0].properties.style.color = '#7cfc00'; // overwrite highlight color
label.task = 'roiSelection';
const flileloc = $D.params.data.location.split('/');
Expand Down Expand Up @@ -1376,8 +1377,8 @@ function addAnnot(e) {
let halfHeight = 1000;
// should be 500 microns; so half is 250 divided by microns per pixel, get width and height in pixels
if ($CAMIC.slideData.mpp){

Check failure on line 1379 in apps/labeling/pitfalls.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Missing space before opening brace

Check failure on line 1379 in apps/labeling/pitfalls.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Missing space before opening brace
halfWidth = 250/$CAMIC.slideData.mpp;
halfHeight = 250/$CAMIC.slideData.mpp;
halfWidth = Math.floor(250/$CAMIC.slideData.mpp);
halfHeight = Math.floor(250/$CAMIC.slideData.mpp);
}
let ctr = $CAMIC.viewer.viewport.viewportToImageCoordinates($CAMIC.viewer.viewport.pointFromPixel(e.position, true));
let xCtr = Math.round(ctr.x);
Expand Down

0 comments on commit ee02e05

Please sign in to comment.