@tatianag @weiren2
I’m just gonna post our issues here, as it’s easiest and we can all see
-
-
I was having trouble with drawing the regions, but that seems to have magically fixed itself.
-
I haven’t figured out how to reproduce it yet, but sometimes when refreshing the page (and therefore loading the default image into the main viewer), firefly doesn’t display anything, but also doesn’t report any errors. It probably runs into an error somewhere and just silently quits. But since I haven’t been to reproduce it, I’m not sure who’s end the error is on.
-
Our context extensions aren’t working. We have an AREA_SELECT extension, but the two points returned by firefly have the same value.
We use the following code to create the extension:
LSST.UI.Viewer.prototype.addExtension = function(title, type, f) {
var ext = {
id : title,
plotId : this.name,
title : title,
extType : type,
callback : f
};
firefly.util.image.extensionAdd(ext);
}
var viewerCommands = {
average_pixel : function(data) {
console.log(data);
}
}
viewer.addExtension('Average Pixel', 'AREA_SELECT', viewerCommands.average_pixel );
Here is the output