rem改成px

This commit is contained in:
stt
2025-11-27 15:08:04 +08:00
parent 2476d2401e
commit e824f4823a
2 changed files with 28 additions and 28 deletions

View File

@@ -604,7 +604,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
align: 'left'
},
textStyle: {
fontSize: '0.8rem',
fontSize: '16px',
color: props.DColor ? '#000' : echartsColor.WordColor
}
},
@@ -615,7 +615,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
enabled: true,
itemDistance: 5,
textStyle: {
fontSize: '0.7rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]
@@ -641,13 +641,13 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
title: {
text: 'ms',
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
enabled: true,
align: 'high'
},
nameTextStyle: { fontSize: '0.6rem' },
nameTextStyle: { fontSize: '14px' },
labels: {
formatter: function () {
return this.value
@@ -662,7 +662,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
if (valA.value != (value - 0).toFixed(0)) {
@@ -689,7 +689,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
showLastLabel: true,
opposite: false,
nameTextStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
axisLine: {
@@ -700,7 +700,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
return (value - 0).toFixed(2)
@@ -906,7 +906,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
left: 'center',
text: '',//titlename || title,
textStyle: {
fontSize: '0.8rem',
fontSize: '16px',
color: props.DColor ? '#000' : echartsColor.WordColor
}
},
@@ -917,7 +917,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
enabled: true,
itemDistance: 5,
textStyle: {
fontSize: '0.7rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]
@@ -932,7 +932,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
title: {
text: 'ms',
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
enabled: true,
@@ -943,7 +943,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
return this.value
}
},
nameTextStyle: { fontSize: '0.6rem' },
nameTextStyle: { fontSize: '14px' },
splitLine: { show: false },
axisTick: { alignWithLabel: true },
axisLine: {
@@ -953,7 +953,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
if (valB.value != (value - 0).toFixed(0)) {
@@ -978,7 +978,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
showLastLabel: true,
opposite: false,
nameTextStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
axisLine: {
@@ -989,7 +989,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
return (value - 0).toFixed(2)

View File

@@ -353,7 +353,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
left: 'center',
text: titleText,
textStyle: {
fontSize: '0.8rem',
fontSize: '16px',
color: props.DColor ? '#000' : echartsColor.WordColor
}
},
@@ -364,7 +364,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
enabled: true,
itemDistance: 5,
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]
@@ -390,14 +390,14 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
title: {
text: 'ms',
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
enabled: true,
align: 'high'
},
splitLine: { show: false },
nameTextStyle: { fontSize: '0.6rem' },
nameTextStyle: { fontSize: '14px' },
axisTick: { alignWithLabel: true },
axisLine: {
lineStyle: {
@@ -406,7 +406,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
if (valA.value != (value - 0).toFixed(0)) {
@@ -433,7 +433,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
min: min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1,
opposite: false,
nameTextStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
axisLine: {
@@ -444,7 +444,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
return (value - 0).toFixed(2)
@@ -640,7 +640,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
left: 'center',
text: '',//titlename || title,
textStyle: {
fontSize: '0.8rem',
fontSize: '16px',
color: props.DColor ? '#000' : echartsColor.WordColor
}
},
@@ -651,7 +651,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
enabled: true,
itemDistance: 5,
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]
@@ -666,7 +666,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
title: {
text: 'ms',
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
enabled: true,
@@ -680,9 +680,9 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
},
onZero: false
},
nameTextStyle: { fontSize: '0.6rem' },
nameTextStyle: { fontSize: '14px' },
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
if (valB.value != (value - 0).toFixed(0)) {
@@ -709,7 +709,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
min: min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1,
opposite: false,
nameTextStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
axisLine: {
@@ -720,7 +720,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
return (value - 0).toFixed(2)