ome / omero-figure

An OMERO.web app for creating Figures from images in OMERO
http://figure.openmicroscopy.org
GNU Affero General Public License v3.0
15 stars 31 forks source link

strokeWidth handling #426

Closed will-moore closed 3 years ago

will-moore commented 3 years ago

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 the strokeWidth string...

To test Export Script:

To test Paste of crop region:

emilroz commented 3 years ago

Looks good @will-moore sorry for missing the comments on https://github.com/ome/omero-figure/pull/409.

will-moore commented 3 years ago

That last commit should also fix the cause of the issue: https://github.com/ome/omero-figure/issues/427

snoopycrimecop commented 3 years ago

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.

jburel commented 3 years ago

Created arrow, lines etc.:

[{"type":"Arrow","x1":338.0859090909091,"x2":546.3331818181819,"y1":365.2540909090909,"y2":225.74863636363636,"strokeWidth":1,"strokeColor":"#FFFFFF","id":-47766722043832940},
jburel commented 3 years ago

I did not have any strokeWidth when going over the crop test

jburel commented 3 years ago

The export script test works

will-moore commented 3 years ago

@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?

jburel commented 3 years ago

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

will-moore commented 3 years ago

@jburel. Did you see the Rectangle created when you pasted the Crop region? Did the JSON have a Rectangle without any "strokeWidth"?

jburel commented 3 years ago

Ok this is time, it works I must have done something incorrectly

"strokeWidth":1,"type":"Rectangle"
jburel commented 3 years ago

merging