Added new signal signs

+Added definitions for signal signs w2k, w2s, w26a, w26b
*Renamed signal sign w21x to w21_led
*Made w21 sign use a shared rect.svg icon and a static text
This commit is contained in:
izawartka 2025-07-31 22:52:43 +02:00
parent d600237db1
commit 6b51882173
3 changed files with 30 additions and 11 deletions

View File

Before

Width:  |  Height:  |  Size: 768 B

After

Width:  |  Height:  |  Size: 768 B

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="100mm" height="100mm" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path d="m42.559 38.094c-2.4478 0-4.4648 2.0171-4.4648 4.4648v14.883c0 2.4478 2.0171 4.4648 4.4648 4.4648h14.883c2.4478 0 4.4648-2.0171 4.4648-4.4648v-14.883c0-2.4478-2.0171-4.4648-4.4648-4.4648z" class="background" />
<path d="m41.732 36.771c-2.7197 0-4.9609 2.2412-4.9609 4.9609v16.536c0 2.7197 2.2412 4.9609 4.9609 4.9609h16.536c2.7197 0 4.9609-2.2412 4.9609-4.9609v-16.536c0-2.7197-2.2412-4.9609-4.9609-4.9609zm0 3.3073h16.536c0.94472 0 1.6536 0.70891 1.6536 1.6536v16.536c0 0.94472-0.70891 1.6536-1.6536 1.6536h-16.536c-0.94472 0-1.6536-0.70891-1.6536-1.6536v-16.536c0-0.94472 0.70891-1.6536 1.6536-1.6536z" />
<path d="m53.361 54.052h-1.3952l-1.972-3.2742-1.9782 3.2742h-1.3766l2.6975-4.1424-2.4804-3.9626h1.3084l1.8541 3.051 1.8665-3.051h1.2712l-2.4866 3.913z" />
</svg>

Before

Width:  |  Height:  |  Size: 926 B

View File

@ -9,6 +9,30 @@ const DefinedSignalSigns = {
"icon": "w1.svg",
"height": 1.28504,
},
"w2k": {
"regex": /^w2k/,
"name": "W2 K",
"icon": "rect.svg",
"text": "K"
},
"w2s": {
"regex": /^w2s/,
"name": "W2 S",
"icon": "rect.svg",
"text": "S"
},
"w26a": {
"regex": /^(?:wsk_)?w26a/,
"name": "W26a",
"icon": "rect.svg",
"text": "P"
},
"w26b": {
"regex": /^(?:wsk_)?w26b/,
"name": "W26b",
"icon": "rect.svg",
"text": "D"
},
"w18": {
"regex": /^(?:wsk_)?w18(?:\D)?.*$/,
"name": "W18",
@ -29,17 +53,18 @@ const DefinedSignalSigns = {
"name": "W24",
"icon": "w24.svg",
},
"w21x": {
"w21_led": {
"regex": /^(?:wsk_)?w21_led_\d$/,
"name": "W21",
"icon": "w21x.svg",
"name": "W21 (LED)",
"icon": "rect.svg",
"text": "X"
},
"w21": {
"regex": /^(?:wsk_)?w21(?!_led_)(?:\D)?.*$/,
"name": "W21",
"icon": "w21.svg",
"icon": "rect.svg",
"textRegex": /w21_(\d+)(?:v2)?/
},
}
};
export default DefinedSignalSigns;