Skip to content

Commit

Permalink
Merge pull request #958 from camicroscope/revert-942-revert-902-yukaU…
Browse files Browse the repository at this point in the history
…U-save_marks_Include_userXYZoom

Revert "Revert "Saving Marks Should Include User's X, Y, Zoom, etc #844""
  • Loading branch information
birm authored Apr 20, 2024
2 parents ec5ef7c + c16b23b commit b5bd7c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/viewer/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ function initCore() {
attributes = data.properties.annotations;
if (area) attributes.area = area;
if (circumference) attributes.circumference = circumference;

const states = StatesHelper.getCurrentStates(isImageCoordinate = true);
if (!states) return;
attributes.X = states.x;
attributes.Y = states.y;
attributes.zoom = states.z;

body = convertHumanAnnotationToPopupBody(attributes);
if (
data.geometries &&
Expand Down

0 comments on commit b5bd7c5

Please sign in to comment.