Features/bottombar redux #97
@ -41,15 +41,15 @@ const horizontalTimeBases = [
|
||||
"100ns/div",
|
||||
"200ns/div",
|
||||
"500ns/div",
|
||||
"1us/div",
|
||||
"2us/div",
|
||||
"5us/div",
|
||||
"10us/div",
|
||||
"20us/div",
|
||||
"50us/div",
|
||||
"100us/div",
|
||||
"200us/div",
|
||||
"500us/div",
|
||||
"1µs/div",
|
||||
"2µs/div",
|
||||
"5µs/div",
|
||||
"10µs/div",
|
||||
"20µs/div",
|
||||
"50µs/div",
|
||||
"100µs/div",
|
||||
"200µs/div",
|
||||
"500µs/div",
|
||||
"1ms/div",
|
||||
"2ms/div",
|
||||
"5ms/div",
|
||||
|
8
Software/waveview/src/configuration/enums/timeUnit.tsx
Normal file
8
Software/waveview/src/configuration/enums/timeUnit.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
enum TimeUnit {
|
||||
NanoSecond = "ns",
|
||||
MicroSecond = "µs",
|
||||
MilliSecond = "ms",
|
||||
Second = "s"
|
||||
}
|
||||
|
||||
export default TimeUnit;
|
@ -0,0 +1,8 @@
|
||||
enum VoltageUnit {
|
||||
NanoVolt = "nV",
|
||||
MicroVolt = "µV",
|
||||
MilliVolt = "mV",
|
||||
Volt = "V"
|
||||
}
|
||||
|
||||
export default VoltageUnit;
|
@ -11,6 +11,7 @@
|
||||
height: 2vh;
|
||||
background: #4b4b4b;
|
||||
z-index: 1000;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.Channel2 {
|
||||
@ -31,6 +32,7 @@
|
||||
height: 2vh;
|
||||
background: #4b4b4b;
|
||||
z-index: 1000;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.Channel4 {
|
||||
@ -41,4 +43,5 @@
|
||||
height: 2vh;
|
||||
background: #4b4b4b;
|
||||
z-index: 1000;
|
||||
user-select: none;
|
||||
}
|
@ -12,4 +12,5 @@
|
||||
height: 2vh;
|
||||
background: #4b4b4b;
|
||||
z-index: 1000;
|
||||
user-select: none;
|
||||
}
|
@ -12,4 +12,5 @@
|
||||
height: 2vh;
|
||||
background: #4b4b4b;
|
||||
z-index: 1000;
|
||||
user-select: none;
|
||||
}
|
@ -20,5 +20,6 @@
|
||||
color: yellow;
|
||||
margin-top: 54vh;
|
||||
margin-bottom: 0;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,12 @@
|
||||
.Search {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.Searchbar {
|
||||
position: relative;
|
||||
user-select: none;
|
||||
top: 10px;
|
||||
width: 15vw;
|
||||
height: 2vh;
|
||||
|
@ -8,6 +8,7 @@
|
||||
background: #EBFF00;
|
||||
z-index: 100;
|
||||
border: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.SingleButtonText {
|
||||
@ -16,4 +17,5 @@
|
||||
display: flex;
|
||||
position: relative;
|
||||
left: 2vw;
|
||||
user-select: none;
|
||||
}
|
@ -8,6 +8,7 @@
|
||||
background: #FF0000;
|
||||
z-index: 100;
|
||||
border: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.StopButtonText {
|
||||
@ -16,4 +17,5 @@
|
||||
display: flex;
|
||||
position: relative;
|
||||
left: 2vw;
|
||||
user-select: none;
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.WidgetTitle {
|
||||
|
@ -1,3 +1,7 @@
|
||||
.MeasurementsWidget {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.MeasurementsWidgetDisplayValueBlock-Value2 {
|
||||
margin-top: 1vh;
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.WidgetTitle {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import DefaultValues from '../../configuration/defaultValues';
|
||||
import TimeUnit from '../../configuration/enums/timeUnit';
|
||||
|
||||
const initialState = {
|
||||
horizontalTimeBase: {
|
||||
@ -7,7 +8,7 @@ const initialState = {
|
||||
},
|
||||
horizontalOffset: {
|
||||
value: 0,
|
||||
unit: "ms"
|
||||
unit: TimeUnit.MilliSecond
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import DefaultValues from '../../configuration/defaultValues';
|
||||
import DefaultChannelColor from '../../configuration/enums/defaultChannelColor';
|
||||
import MeasurementType from '../../configuration/enums/measurementType';
|
||||
import VoltageUnit from '../../configuration/enums/voltageUnit';
|
||||
|
||||
const initialState = {
|
||||
activeChannel: 1,
|
||||
@ -17,10 +18,10 @@ const initialState = {
|
||||
{value: DefaultValues.x1ProbeValues[6], index: 6}
|
||||
],
|
||||
verticalOffset: [
|
||||
{value: 0, unit: "mV"},
|
||||
{value: 0, unit: "mV"},
|
||||
{value: 0, unit: "mV"},
|
||||
{value: 0, unit: "mV"}
|
||||
{value: 0, unit: VoltageUnit.MilliVolt},
|
||||
{value: 0, unit: VoltageUnit.MilliVolt},
|
||||
{value: 0, unit: VoltageUnit.MilliVolt},
|
||||
{value: 0, unit: VoltageUnit.MilliVolt}
|
||||
],
|
||||
measurementType: [
|
||||
MeasurementType.DC,
|
||||
|
Loading…
Reference in New Issue
Block a user