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

Remove unused function arguments and conversion between radians and degrees #236

Closed carandraug closed 7 years ago

carandraug commented 7 years ago

While checking how the rotation is done to add a button for horizontal flip, I noticed this unused arguments and extra computations.

jburel commented 7 years ago

Adding the include flag so it can be part of the daily merge build --include

joshmoore commented 7 years ago

NB: This may well should be considered a breaking change. An alternative would be to replace use of this.r with rotation within the function method. However, as is always the case with an unused argument, someone with the background should likely evaluate what was really intended.

jburel commented 7 years ago
will-moore commented 7 years ago

Since the third argument rotation wasn't being used, it's not a breaking change to remove that argument. Users could still call it with 3 arguments without an error. Also, I wouldn't usually consider methods on a View to be an API that could/would be used externally.

jburel commented 7 years ago

True that js offers "such flexibility" (not sure it is a good thing!)

jburel commented 7 years ago

Thanks