Skip to content

Commit

Permalink
Export Points to OMERO.figure as Points (not Ellipse)
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed May 15, 2024
1 parent 409c342 commit 63dd926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/app/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ export class Header {

let figureJSON = exportViewersAsFigureJson(figureName);
let figureJSONstr = JSON.stringify(figureJSON);
console.log('figureJSONstr', figureJSONstr);

// Save
$.post(figureUrl + "/save_web_figure/", {figureJSON: figureJSONstr})
Expand Down
7 changes: 2 additions & 5 deletions src/utils/figure.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,10 @@ function featureToFigureShape(feature) {
}
} else if (shapeType == "Point") {
// 'Point' isn't supported by Figure, but we can use an Ellipse to appear the same
shapeType = "Ellipse";
shapeType = "Point";
shapeJson = {
x: ft.X,
y: ft.Y,
radiusX: 5,
radiusY: 5,
rotation: 0
y: ft.Y
}
}

Expand Down

0 comments on commit 63dd926

Please sign in to comment.