Closes id13/id13#84
Stuart Fisher (6d31504a) at 28 Mar 15:14
remove -1s from map histogram and initial image
Stuart Fisher (f0a08f91) at 28 Mar 11:44
Closes id13/id13#82
Stuart Fisher (f0a08f91) at 28 Mar 11:38
dont crash when video is disable and component is remounted
Same way beam inverts color based on constrast
Various improvements to map histogramming and map scaling:
Looks like a mpegjs reference is not cleaned up. Related to #81
Button on/off defaults in bs are not distinct enought
Refresh the UI, you loose current sample, clamp, and video settings. These at least would be useful to persist
Calibration values are wrong, beamlines shows 29keV
Not supported by react-bootstrap-typeahead
I think we will probably need to make an updateLocalReplace
function, it's not easy to pass an extra arg into the redux action
namespace.tsx:528
if (type === 'updateLocal') {
reducer[`onUpdateLocal${baseName}`] = function (state: any, action: any) {
const current = state[key][k].results[action.payload[keyid]];
if (!current) return state;
return this.setIn(
state,
[key, k, 'results', action.payload[keyid]],
this.mergeDeep(current, action.payload) <<<<<
);
};
reducer[`onUpdateLocal${baseName}`].bind(reducer);
}
is the culprit
Closes #144