Closed will-moore closed 3 years ago
Looks good @will-moore sorry for missing the comments on https://github.com/ome/omero-figure/pull/409.
That last commit should also fix the cause of the issue: https://github.com/ome/omero-figure/issues/427
Conflicting PR. Removed from build OMERO-plugins-push#684. See the console output for more details. Possible conflicts:
--conflicts Conflict resolved in build OMERO-plugins-push#685. See the console output for more details.
Created arrow, lines etc.:
[{"type":"Arrow","x1":338.0859090909091,"x2":546.3331818181819,"y1":365.2540909090909,"y2":225.74863636363636,"strokeWidth":1,"strokeColor":"#FFFFFF","id":-47766722043832940},
I did not have any strokeWidth
when going over the crop
test
The export script
test works
@jburel You tested "Paste of crop region" steps OK? Not sure if you saw "strokeWidth":2
?
Is this good to merge or anything else need addressing?
I did not have any "strokeWidth" in json when running the "Crop" test mentioned in the description. The way I read it I should have strokeWidth
@jburel. Did you see the Rectangle created when you pasted the Crop region? Did the JSON have a Rectangle without any "strokeWidth"?
Ok this is time, it works I must have done something incorrectly
"strokeWidth":1,"type":"Rectangle"
merging
This extends PR https://github.com/ome/omero-figure/pull/409 (@emilroz), so that the Export script handles
shape.get('strokeWidth')
being a string everywhere. This PR also fixes the origin of thestrokeWidth
string...To test Export Script:
:0.75,
with"0.75",
everywhere.File > Export to JSON
you will see this.To test Paste of crop region:
Copy
the crop region on one panel (zoomed-in) andPaste
to create a new Rectangle ROI on a different Panel."strokeWidth":2
NOT"strokeWidth":"2"
.