Skip to content

Commit

Permalink
Make units actually cm
Browse files Browse the repository at this point in the history
  • Loading branch information
wielandb committed Jul 10, 2024
1 parent a7e1826 commit b188cd6
Showing 1 changed file with 43 additions and 16 deletions.
59 changes: 43 additions & 16 deletions assets/question_catalog/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -4166,13 +4166,19 @@
"type": "Number",
"input": {
"placeholder": "@elevatorHeightPlaceholder",
"decimals": 1,
"min": 1.5,
"max": 4,
"decimals": 0,
"min": 200,
"max": 400,
"unit": "@unitCentimeter"
},
"constructor": {
"height": ["$input"]
"width": [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
]
}
},
"conditions": [
Expand All @@ -4193,13 +4199,22 @@
"type": "Number",
"input": {
"placeholder": "@elevatorDiameterPlaceholder",
"decimals": 1,
"min": 1.5,
"max": 4,
"decimals": 0,
"min": 150,
"max": 1000,
"unit": "@unitCentimeter"
},
"constructor": {
"diameter": ["CONCAT", "$input", "m"]
"diameter": [

"CONCAT", [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
], "m"
]
}
},
"conditions": [
Expand All @@ -4223,13 +4238,19 @@
"type": "Number",
"input": {
"placeholder": "@elevatorDoorWidthPlaceholder",
"decimals": 1,
"min": 1,
"max": 4,
"decimals": 0,
"min": 150,
"max": 400,
"unit": "@unitCentimeter"
},
"constructor": {
"door:width": ["$input"]
"door:width": [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
]
}
},
"conditions": [
Expand Down Expand Up @@ -4262,13 +4283,19 @@
"type": "Number",
"input": {
"placeholder": "@elevatorDoorHeightPlaceholder",
"decimals": 1,
"min": 2,
"max": 4,
"decimals": 0,
"min": 200,
"max": 400,
"unit": "@unitCentimeter"
},
"constructor": {
"door:height": ["$input"]
"width": [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
]
}
},
"conditions": [
Expand Down

0 comments on commit b188cd6

Please sign in to comment.