Move 'defaultInputUnit' into Unit, away from denomination
This commit is contained in:
parent
03057b2eff
commit
67b5a33f0b
9 changed files with 135 additions and 84 deletions
|
@ -205,6 +205,7 @@
|
|||
"elevator:width",
|
||||
"elevator:depth"
|
||||
],
|
||||
"defaultInput": "cm",
|
||||
"applicableUnits": [
|
||||
{
|
||||
"canonicalDenomination": "m",
|
||||
|
@ -221,7 +222,6 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"useAsDefaultInput": true,
|
||||
"canonicalDenomination": "cm",
|
||||
"alternativeDenomination": [
|
||||
"centimeter",
|
||||
|
@ -238,4 +238,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -473,6 +473,7 @@
|
|||
"kerb:height",
|
||||
"width"
|
||||
],
|
||||
"defaultInput": "cm",
|
||||
"applicableUnits": [
|
||||
{
|
||||
"useIfNoUnitGiven": true,
|
||||
|
@ -489,7 +490,6 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"useAsDefaultInput": true,
|
||||
"canonicalDenomination": "cm",
|
||||
"alternativeDenomination": [
|
||||
"centimeter",
|
||||
|
@ -506,4 +506,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
3
assets/layers/units/units.json
Normal file
3
assets/layers/units/units.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
|
||||
}
|
|
@ -63,6 +63,7 @@
|
|||
"width",
|
||||
"_biggest_width"
|
||||
],
|
||||
"defaultUnit": "cm",
|
||||
"applicableUnits": [
|
||||
{
|
||||
"useIfNoUnitGiven": true,
|
||||
|
@ -79,7 +80,6 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"useAsDefaultInput": true,
|
||||
"canonicalDenomination": "cm",
|
||||
"alternativeDenomination": [
|
||||
"centimeter",
|
||||
|
@ -150,4 +150,4 @@
|
|||
"condition": "_biggest_width_id~*"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue