Skip to content

Commit

Permalink
Fixed wavelength input on dichroic feature
Browse files Browse the repository at this point in the history
  • Loading branch information
gljames24 committed Jan 29, 2023
1 parent 30224a2 commit 48bd834
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion simulator/js/objs/arcmirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ objTypes['arcmirror'] = {
obj.isDichroicFilter = value;
}, elem);
createNumberAttr(getMsg('wavelength'), UV_WAVELENGTH, INFRARED_WAVELENGTH, 1, obj.wavelength || GREEN_WAVELENGTH, function(obj, value) {
obj.wavelength = obj.isDichroic? value : NaN;
obj.wavelength = value;
}, elem);
}
},
Expand Down
2 changes: 1 addition & 1 deletion simulator/js/objs/beamsplitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ objTypes['beamsplitter'] = {
obj.isDichroicFilter = value;
}, elem);
createNumberAttr(getMsg('wavelength'), UV_WAVELENGTH, INFRARED_WAVELENGTH, 1, obj.wavelength || GREEN_WAVELENGTH, function(obj, value) {
obj.wavelength = obj.isDichroic? value : NaN;
obj.wavelength = value;
}, elem);
}
},
Expand Down
2 changes: 1 addition & 1 deletion simulator/js/objs/curvedmirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ objTypes['curvedmirror'] = {
obj.isDichroicFilter = value;
}, elem);
createNumberAttr(getMsg('wavelength'), UV_WAVELENGTH, INFRARED_WAVELENGTH, 1, obj.wavelength || GREEN_WAVELENGTH, function(obj, value) {
obj.wavelength = obj.isDichroic? value : NaN;
obj.wavelength = value;
}, elem);
}
},
Expand Down
2 changes: 1 addition & 1 deletion simulator/js/objs/idealmirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ objTypes['idealmirror'] = {
obj.isDichroicFilter = value;
}, elem);
createNumberAttr(getMsg('wavelength'), UV_WAVELENGTH, INFRARED_WAVELENGTH, 1, obj.wavelength || GREEN_WAVELENGTH, function(obj, value) {
obj.wavelength = obj.isDichroic? value : NaN;
obj.wavelength = value;
}, elem);
}
},
Expand Down
2 changes: 1 addition & 1 deletion simulator/js/objs/mirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ objTypes['mirror'] = {
obj.isDichroicFilter = value;
}, elem);
createNumberAttr(getMsg('wavelength'), UV_WAVELENGTH, INFRARED_WAVELENGTH, 1, obj.wavelength || GREEN_WAVELENGTH, function(obj, value) {
obj.wavelength = obj.isDichroic? value : NaN;
obj.wavelength = value;
}, elem);
}
},
Expand Down
2 changes: 1 addition & 1 deletion simulator/js/objs/parabolicmirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ objTypes['parabolicmirror'] = {
obj.isDichroicFilter = value;
}, elem);
createNumberAttr(getMsg('wavelength'), UV_WAVELENGTH, INFRARED_WAVELENGTH, 1, obj.wavelength || GREEN_WAVELENGTH, function(obj, value) {
obj.wavelength = obj.isDichroic? value : NaN;
obj.wavelength = value;
}, elem);
}
},
Expand Down

0 comments on commit 48bd834

Please sign in to comment.