From bd2dade932f26eaec6ba48e78b6416f9191c8670 Mon Sep 17 00:00:00 2001 From: zain94rif Date: Thu, 9 Apr 2026 15:25:00 +0700 Subject: [PATCH] fix(svg): change compressor A, B, C image position --- src/assets/svg/compressorA_rev.svg | 717 +++++++++++----------- src/assets/svg/compressorB_rev.svg | 666 ++++++++++----------- src/assets/svg/compressorC_rev.svg | 719 +++++++++++------------ src/components/Global/MqttConnection.jsx | 4 + 4 files changed, 1051 insertions(+), 1055 deletions(-) diff --git a/src/assets/svg/compressorA_rev.svg b/src/assets/svg/compressorA_rev.svg index 820787a..d986b13 100644 --- a/src/assets/svg/compressorA_rev.svg +++ b/src/assets/svg/compressorA_rev.svg @@ -3,34 +3,34 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + - + - - + + @@ -39,16 +39,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -93,7 +93,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -147,7 +147,7 @@ - + @@ -192,8 +192,8 @@ - - + + @@ -203,8 +203,8 @@ - - + + @@ -249,7 +249,7 @@ - + @@ -258,7 +258,7 @@ - + @@ -303,7 +303,7 @@ - + @@ -312,7 +312,7 @@ - + @@ -321,7 +321,7 @@ - + @@ -332,7 +332,7 @@ - + @@ -343,7 +343,7 @@ - + @@ -352,7 +352,7 @@ - + @@ -397,7 +397,7 @@ - + @@ -442,7 +442,7 @@ - + @@ -451,17 +451,17 @@ - - TH5 - - - - - - - - - + + TH5 + + + + + + + + + @@ -506,7 +506,7 @@ - + @@ -515,7 +515,7 @@ - + @@ -524,7 +524,7 @@ - + @@ -569,9 +569,9 @@ - - - + + + @@ -580,7 +580,7 @@ - + @@ -625,14 +625,14 @@ - - - - - - - - + + + + + + + + @@ -641,11 +641,11 @@ - - - - - + + + + + @@ -690,7 +690,7 @@ - + @@ -699,21 +699,21 @@ - - TH2 - - PS1 - - - - - - - - - - - + + TH2 + + PS1 + + + + + + + + + + + @@ -722,7 +722,7 @@ - + @@ -767,7 +767,7 @@ - + @@ -776,9 +776,9 @@ - - - + + + @@ -787,7 +787,7 @@ - + @@ -832,7 +832,7 @@ - + @@ -841,7 +841,7 @@ - + @@ -886,7 +886,7 @@ - + @@ -925,29 +925,29 @@ - - - - - COMMUNICATION - - - - - - - - - - - + + + + + COMMUNICATION + + + + + + + + + + + - + @@ -956,7 +956,7 @@ - + @@ -1001,7 +1001,7 @@ - + @@ -1010,7 +1010,7 @@ - + @@ -1055,8 +1055,8 @@ - - + + @@ -1065,42 +1065,42 @@ - - - + + + - - - - - - - - TH3 - - TH4 - - - - - - + + + + + + + + TH3 + + TH4 + + + + + + - - - - - - - + + + + + + + @@ -1109,7 +1109,7 @@ - + @@ -1154,8 +1154,8 @@ - - + + @@ -1164,7 +1164,7 @@ - + @@ -1209,7 +1209,7 @@ - + @@ -1254,7 +1254,7 @@ - + @@ -1299,7 +1299,7 @@ - + @@ -1308,7 +1308,7 @@ - + @@ -1353,7 +1353,7 @@ - + @@ -1398,7 +1398,7 @@ - + @@ -1407,7 +1407,7 @@ - + @@ -1452,7 +1452,7 @@ - + @@ -1497,7 +1497,7 @@ - + @@ -1506,7 +1506,7 @@ - + @@ -1551,7 +1551,7 @@ - + @@ -1596,7 +1596,7 @@ - + @@ -1605,7 +1605,7 @@ - + @@ -1650,7 +1650,7 @@ - + @@ -1659,7 +1659,7 @@ - + @@ -1704,7 +1704,7 @@ - + @@ -1713,28 +1713,28 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -1743,8 +1743,8 @@ - - + + @@ -1753,59 +1753,59 @@ - - - - - + + + + + - + - + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - 63SV - - - - + + + + + + + + + + + + + + + + + + 63SV + + + + @@ -1814,168 +1814,165 @@ - - - - - - + + + + + + - + - + - + - - + + - - PS4 - - + + PS4 + + - - - START/STOP - - - - UNLOAD/LOAD - - - - SHUTDOWN - - - - REMOTE STATUS - - - - ALARM - - - + + + START/STOP + + + + UNLOAD/LOAD + + + + SHUTDOWN + + + + REMOTE STATUS + + + + ALARM + + + - + - - - - - CAPACITY CONTROL - - - - - - - - - - - - - ######### - CURRENT - LOAD RATIO - LOAD NUMBER - 2nd Discharge Temp. - 2nd Suction Temp. - Interstage Press. - 1st Discharge Temp. - Oil Pressure - Oil Temp. - Motor Vibration - Gearbox Vibration - - - - - - - - - - - - - Run Hour - Total Load Time - Reminder Maint. - - - - - - Next Maint.Timing - 5 YEAR - - COMPRESSOR UNIT - A - #### - H - #### - A - % - H - - - - - OVERHOUL - Next Maint.Timing - #### - #### - #### - #### - °C - °C - MPa - °C - °C - MPa - mm/s - mm/s - - PS2 - + 2nd Discharge Temp. + 2nd Suction Temp. + Interstage Press. + 1st Discharge Temp. + Oil Pressure + Oil Temp. + Motor Vibration + Gearbox Vibration + COMPRESSOR UNIT - A + °C + °C + MPa + °C + °C + MPa + mm/s + mm/s + + PS2 + - Discharge Air Press. - MPa - + Discharge Air Press. + MPa + - 2nd Discharge Press. - MPa - #### - #### - #### - #### - #### - #### - #### - #### - #### - #### - Plant Air Reciever + 2nd Discharge Press. + MPa + #### + #### + #### + #### + #### + #### + #### + #### + #### + #### + Plant Air Reciever + + + + + CAPACITY CONTROL + + + + + + + + + + + + + ######### + CURRENT + LOAD RATIO + LOAD NUMBER + + + + + + + + + + + + + Run Hour + Total Load Time + Reminder Maint. + #### + H + #### + A + % + H + + + + + #### + Next Maint.Timing + #### + #### + #### + #### + + + + + \ No newline at end of file diff --git a/src/assets/svg/compressorB_rev.svg b/src/assets/svg/compressorB_rev.svg index f632bed..dededfd 100644 --- a/src/assets/svg/compressorB_rev.svg +++ b/src/assets/svg/compressorB_rev.svg @@ -3,34 +3,34 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + - + - - + + @@ -39,16 +39,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -93,7 +93,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -147,7 +147,7 @@ - + @@ -192,8 +192,8 @@ - - + + @@ -203,8 +203,8 @@ - - + + @@ -249,7 +249,7 @@ - + @@ -258,7 +258,7 @@ - + @@ -303,7 +303,7 @@ - + @@ -312,7 +312,7 @@ - + @@ -321,7 +321,7 @@ - + @@ -332,7 +332,7 @@ - + @@ -343,7 +343,7 @@ - + @@ -352,7 +352,7 @@ - + @@ -397,7 +397,7 @@ - + @@ -442,7 +442,7 @@ - + @@ -451,17 +451,17 @@ - - TH5 - - - - - - - - - + + TH5 + + + + + + + + + @@ -506,7 +506,7 @@ - + @@ -515,7 +515,7 @@ - + @@ -524,7 +524,7 @@ - + @@ -569,9 +569,9 @@ - - - + + + @@ -580,7 +580,7 @@ - + @@ -625,14 +625,14 @@ - - - - - - - - + + + + + + + + @@ -641,11 +641,11 @@ - - - - - + + + + + @@ -690,7 +690,7 @@ - + @@ -699,21 +699,21 @@ - - TH2 - - PS1 - - - - - - - - - - - + + TH2 + + PS1 + + + + + + + + + + + @@ -722,7 +722,7 @@ - + @@ -767,7 +767,7 @@ - + @@ -776,9 +776,9 @@ - - - + + + @@ -787,7 +787,7 @@ - + @@ -832,7 +832,7 @@ - + @@ -841,7 +841,7 @@ - + @@ -886,7 +886,7 @@ - + @@ -925,29 +925,29 @@ - - - - - COMMUNICATION - - - - - - - - - - - + + + + + COMMUNICATION + + + + + + + + + + + - + @@ -956,7 +956,7 @@ - + @@ -1001,7 +1001,7 @@ - + @@ -1010,7 +1010,7 @@ - + @@ -1055,8 +1055,8 @@ - - + + @@ -1065,42 +1065,42 @@ - - - + + + - - - - - - - - TH3 - - TH4 - - - - - - + + + + + + + + TH3 + + TH4 + + + + + + - - - - - - - + + + + + + + @@ -1109,7 +1109,7 @@ - + @@ -1154,8 +1154,8 @@ - - + + @@ -1164,7 +1164,7 @@ - + @@ -1209,7 +1209,7 @@ - + @@ -1254,7 +1254,7 @@ - + @@ -1299,7 +1299,7 @@ - + @@ -1308,7 +1308,7 @@ - + @@ -1353,7 +1353,7 @@ - + @@ -1398,7 +1398,7 @@ - + @@ -1407,7 +1407,7 @@ - + @@ -1452,7 +1452,7 @@ - + @@ -1497,7 +1497,7 @@ - + @@ -1506,7 +1506,7 @@ - + @@ -1551,7 +1551,7 @@ - + @@ -1596,7 +1596,7 @@ - + @@ -1605,7 +1605,7 @@ - + @@ -1650,7 +1650,7 @@ - + @@ -1659,7 +1659,7 @@ - + @@ -1704,7 +1704,7 @@ - + @@ -1713,28 +1713,28 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -1743,8 +1743,8 @@ - - + + @@ -1753,59 +1753,59 @@ - - - - - + + + + + - + - + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - 63SV - - - - + + + + + + + + + + + + + + + + + + 63SV + + + + @@ -1814,165 +1814,165 @@ - - - - - - + + + + + + - + - + - + - - + + - - PS4 - - + + PS4 + + - - - START/STOP - - - - UNLOAD/LOAD - - - - SHUTDOWN - - - - REMOTE STATUS - - - - ALARM - - - + + + START/STOP + + + + UNLOAD/LOAD + + + + SHUTDOWN + + + + REMOTE STATUS + + + + ALARM + + + - + - + - CAPACITY CONTROL - + CAPACITY CONTROL + - + - + - ######### - CURRENT - LOAD RATIO - LOAD NUMBER - 2nd Discharge Temp. - 2nd Suction Temp. - Interstage Press. - 1st Discharge Temp. - Oil Pressure - Oil Temp. - Motor Vibration - Gearbox Vibration - + ######### + CURRENT + LOAD RATIO + LOAD NUMBER + 2nd Discharge Temp. + 2nd Suction Temp. + Interstage Press. + 1st Discharge Temp. + Oil Pressure + Oil Temp. + Motor Vibration + Gearbox Vibration + - + - + - Run Hour - Total Load Time - Reminder Maint. - COMPRESSOR UNIT - B - #### - H - #### - A - % - H - + Run Hour + Total Load Time + Reminder Maint. + COMPRESSOR UNIT - B + #### + H + #### + A + % + H + - #### - Next Maint.Timing - #### - #### - #### - #### - °C - °C - MPa - °C - °C - MPa - mm/s - mm/s - - PS2 - + #### + Next Maint.Timing + #### + #### + #### + #### + °C + °C + MPa + °C + °C + MPa + mm/s + mm/s + + PS2 + - Discharge Air Press. - MPa - + Discharge Air Press. + MPa + - 2nd Discharge Press. - MPa - #### - #### - #### - #### - #### - #### - #### - #### - #### - #### - Plant Air Reciever - - - - - + 2nd Discharge Press. + MPa + #### + #### + #### + #### + #### + #### + #### + #### + #### + #### + Plant Air Reciever + + + + + \ No newline at end of file diff --git a/src/assets/svg/compressorC_rev.svg b/src/assets/svg/compressorC_rev.svg index 5c84fd2..a6b9f49 100644 --- a/src/assets/svg/compressorC_rev.svg +++ b/src/assets/svg/compressorC_rev.svg @@ -3,34 +3,34 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + - + - - + + @@ -39,16 +39,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -93,7 +93,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -147,7 +147,7 @@ - + @@ -192,8 +192,8 @@ - - + + @@ -203,8 +203,8 @@ - - + + @@ -249,7 +249,7 @@ - + @@ -258,7 +258,7 @@ - + @@ -303,7 +303,7 @@ - + @@ -312,7 +312,7 @@ - + @@ -321,7 +321,7 @@ - + @@ -332,7 +332,7 @@ - + @@ -343,7 +343,7 @@ - + @@ -352,7 +352,7 @@ - + @@ -397,7 +397,7 @@ - + @@ -442,7 +442,7 @@ - + @@ -451,17 +451,17 @@ - - TH5 - - - - - - - - - + + TH5 + + + + + + + + + @@ -506,7 +506,7 @@ - + @@ -515,7 +515,7 @@ - + @@ -524,7 +524,7 @@ - + @@ -569,9 +569,9 @@ - - - + + + @@ -580,7 +580,7 @@ - + @@ -625,14 +625,14 @@ - - - - - - - - + + + + + + + + @@ -641,11 +641,11 @@ - - - - - + + + + + @@ -690,7 +690,7 @@ - + @@ -699,21 +699,21 @@ - - TH2 - - PS1 - - - - - - - - - - - + + TH2 + + PS1 + + + + + + + + + + + @@ -722,7 +722,7 @@ - + @@ -767,7 +767,7 @@ - + @@ -776,9 +776,9 @@ - - - + + + @@ -787,7 +787,7 @@ - + @@ -832,7 +832,7 @@ - + @@ -841,7 +841,7 @@ - + @@ -886,7 +886,7 @@ - + @@ -925,29 +925,29 @@ - - - - - COMMUNICATION - - - - - - - - - - - + + + + + COMMUNICATION + + + + + + + + + + + - + @@ -956,7 +956,7 @@ - + @@ -1001,7 +1001,7 @@ - + @@ -1010,7 +1010,7 @@ - + @@ -1055,8 +1055,8 @@ - - + + @@ -1065,42 +1065,42 @@ - - - + + + - - - - - - - - TH3 - - TH4 - - - - - - + + + + + + + + TH3 + + TH4 + + + + + + - - - - - - - + + + + + + + @@ -1109,7 +1109,7 @@ - + @@ -1154,8 +1154,8 @@ - - + + @@ -1164,7 +1164,7 @@ - + @@ -1209,7 +1209,7 @@ - + @@ -1254,7 +1254,7 @@ - + @@ -1299,7 +1299,7 @@ - + @@ -1308,7 +1308,7 @@ - + @@ -1353,7 +1353,7 @@ - + @@ -1398,7 +1398,7 @@ - + @@ -1407,7 +1407,7 @@ - + @@ -1452,7 +1452,7 @@ - + @@ -1497,7 +1497,7 @@ - + @@ -1506,7 +1506,7 @@ - + @@ -1551,7 +1551,7 @@ - + @@ -1596,7 +1596,7 @@ - + @@ -1605,7 +1605,7 @@ - + @@ -1650,7 +1650,7 @@ - + @@ -1659,7 +1659,7 @@ - + @@ -1704,7 +1704,7 @@ - + @@ -1713,28 +1713,28 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -1743,8 +1743,8 @@ - - + + @@ -1753,59 +1753,59 @@ - - - - - + + + + + - + - + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - 63SV - - - - + + + + + + + + + + + + + + + + + + 63SV + + + + @@ -1814,170 +1814,165 @@ - - - - - - + + + + + + - + - + - + - - + + - - PS4 - - + + PS4 + + - - - START/STOP - - - - UNLOAD/LOAD - - - - SHUTDOWN - - - - REMOTE STATUS - - - - ALARM - - - + + + START/STOP + + + + UNLOAD/LOAD + + + + SHUTDOWN + + + + REMOTE STATUS + + + + ALARM + + + - + - - - - - CAPACITY CONTROL - - - - - - - - - - - - - ######### - CURRENT - LOAD RATIO - LOAD NUMBER - 2nd Discharge Temp. - 2nd Suction Temp. - Interstage Press. - 1st Discharge Temp. - Oil Pressure - Oil Temp. - Motor Vibration - Gearbox Vibration - - - - - - - - - - - - - Run Hour - Total Load Time - Reminder Maint. - - - - - - Next Maint.Timing - 5 YEAR - - COMPRESSOR UNIT - C - #### - H - #### - A - % - H - - - - - - OVERHOUL - Next Maint.Timing - - #### - #### - #### - #### - °C - °C - MPa - °C - °C - MPa - mm/s - mm/s - - PS2 - + 2nd Discharge Temp. + 2nd Suction Temp. + Interstage Press. + 1st Discharge Temp. + Oil Pressure + Oil Temp. + Motor Vibration + Gearbox Vibration + COMPRESSOR UNIT - C + °C + °C + MPa + °C + °C + MPa + mm/s + mm/s + + PS2 + - Discharge Air Press. - MPa - + Discharge Air Press. + MPa + - 2nd Discharge Press. - MPa - #### - #### - #### - #### - #### - #### - #### - #### - #### - #### - Plant Air Reciever + 2nd Discharge Press. + MPa + #### + #### + #### + #### + #### + #### + #### + #### + #### + #### + Plant Air Reciever + + + + + CAPACITY CONTROL + + + + + + + + + + + + + ######### + CURRENT + LOAD RATIO + LOAD NUMBER + + + + + + + + + + + + + Run Hour + Total Load Time + Reminder Maint. + #### + H + #### + A + % + H + + + + + #### + Next Maint.Timing + #### + #### + #### + #### + + + + + \ No newline at end of file diff --git a/src/components/Global/MqttConnection.jsx b/src/components/Global/MqttConnection.jsx index 08502bb..daff95b 100644 --- a/src/components/Global/MqttConnection.jsx +++ b/src/components/Global/MqttConnection.jsx @@ -131,6 +131,10 @@ const setValSvg = (listenTopic, svg) => { const el = svg.getElementById(key); if (!el) return; + // else if (el.id === 'c_2014' || el.id === 'c_2024') { + // el.setAttribute('text-anchor', 'middle'); + // el.setAttribute('x', '10%'); + // } if (typeof value === 'boolean') { handleBoolean(svg, el, value);