default range on hover
This commit is contained in:
parent
223121655e
commit
2d43063537
1 changed files with 3 additions and 0 deletions
|
@ -319,6 +319,7 @@ const Audio = function(tp, record) {
|
||||||
source_Dom_Cont.append(muteDom);
|
source_Dom_Cont.append(muteDom);
|
||||||
source_Dom_Cont.append(muteDom_label);
|
source_Dom_Cont.append(muteDom_label);
|
||||||
|
|
||||||
|
const defaultRange = getDefaultRange(layer, propTitle);
|
||||||
const min_max_Dom = document.createElement('div');
|
const min_max_Dom = document.createElement('div');
|
||||||
min_max_Dom.classList.add('audio_min_max');
|
min_max_Dom.classList.add('audio_min_max');
|
||||||
const min_Cont = document.createElement('div');
|
const min_Cont = document.createElement('div');
|
||||||
|
@ -330,6 +331,7 @@ const Audio = function(tp, record) {
|
||||||
min_inputDom.type = 'number';
|
min_inputDom.type = 'number';
|
||||||
min_inputDom.name = toCssClass(`audio_min${propTitle}`);
|
min_inputDom.name = toCssClass(`audio_min${propTitle}`);
|
||||||
min_inputDom.id = toCssClass(`audio_min${propTitle}`);
|
min_inputDom.id = toCssClass(`audio_min${propTitle}`);
|
||||||
|
min_inputDom.title = `default: ${defaultRange[0]}`;
|
||||||
min_inputDom.value = `${mappingOptions.min_out}`;
|
min_inputDom.value = `${mappingOptions.min_out}`;
|
||||||
const max_Cont = document.createElement('div');
|
const max_Cont = document.createElement('div');
|
||||||
max_Cont.classList.add('audio_max_Cont');
|
max_Cont.classList.add('audio_max_Cont');
|
||||||
|
@ -340,6 +342,7 @@ const Audio = function(tp, record) {
|
||||||
max_inputDom.type = 'number';
|
max_inputDom.type = 'number';
|
||||||
max_inputDom.name = toCssClass(`audio_max${propTitle}`);
|
max_inputDom.name = toCssClass(`audio_max${propTitle}`);
|
||||||
max_inputDom.id = toCssClass(`audio_max${propTitle}`);
|
max_inputDom.id = toCssClass(`audio_max${propTitle}`);
|
||||||
|
max_inputDom.title = `default: ${defaultRange[1]}`;
|
||||||
max_inputDom.value = `${mappingOptions.max_out}`;
|
max_inputDom.value = `${mappingOptions.max_out}`;
|
||||||
const smoothing_inputDom_label = document.createElement('label');
|
const smoothing_inputDom_label = document.createElement('label');
|
||||||
smoothing_inputDom_label.for = 'audio_smoothing';
|
smoothing_inputDom_label.for = 'audio_smoothing';
|
||||||
|
|
Loading…
Reference in a new issue