Autoscale exposure on getState
This commit is contained in:
parent
65b1802390
commit
7ca9ade4ea
|
@ -474,6 +474,7 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
|
||||||
'use strict';
|
'use strict';
|
||||||
var exposure;
|
var exposure;
|
||||||
var scale;
|
var scale;
|
||||||
|
var scaledExposure;
|
||||||
if (res.frame.dir !== true) {
|
if (res.frame.dir !== true) {
|
||||||
$('#dir').prop('checked', true);
|
$('#dir').prop('checked', true);
|
||||||
STATE.dir = res.frame.dir;
|
STATE.dir = res.frame.dir;
|
||||||
|
@ -481,15 +482,19 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
|
||||||
}
|
}
|
||||||
$('#counter').val(res.counter);
|
$('#counter').val(res.counter);
|
||||||
STATE.count = res.counter;
|
STATE.count = res.counter;
|
||||||
|
|
||||||
if (res.frame.exposure === 0) {
|
if (res.frame.exposure === 0) {
|
||||||
res.frame.exposure = BOLEX.expected;
|
res.frame.exposure = BOLEX.expected;
|
||||||
}
|
}
|
||||||
$('#exposure').val(res.frame.exposure);
|
|
||||||
STATE.exposure = res.frame.exposure;
|
STATE.exposure = res.frame.exposure;
|
||||||
exposure = shutter(STATE.exposure);
|
exposure = shutter(STATE.exposure);
|
||||||
$('#str').text(exposure.str);
|
$('#str').text(exposure.str);
|
||||||
scale = scaleAuto(STATE.exposure);
|
scale = scaleAuto(STATE.exposure);
|
||||||
$('#scale').val(scale);
|
$('#scale').val(scale);
|
||||||
|
STATE.scale = scale;
|
||||||
|
scaledExposure = scaleTime(STATE.exposure, STATE.scale);
|
||||||
|
$('#exposure').val(scaledExposure);
|
||||||
|
|
||||||
$('#delay').val(res.frame.delay);
|
$('#delay').val(res.frame.delay);
|
||||||
STATE.delay = res.frame.delay;
|
STATE.delay = res.frame.delay;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue