Commit 4422ba0f by Emil Tullstedt Committed by GitHub

Units: add base-pascals and rotational speed units (#22879)

* Units: Add base-Pascals and rotational speed units

* Units: Upper-case first letter in Length

* Units: Fix id of degrees per second
parent 0e845f2b
...@@ -275,6 +275,7 @@ export const getCategories = (): ValueFormatCategory[] => [ ...@@ -275,6 +275,7 @@ export const getCategories = (): ValueFormatCategory[] => [
{ name: 'Millibars', id: 'pressurembar', fn: decimalSIPrefix('bar', -1) }, { name: 'Millibars', id: 'pressurembar', fn: decimalSIPrefix('bar', -1) },
{ name: 'Bars', id: 'pressurebar', fn: decimalSIPrefix('bar') }, { name: 'Bars', id: 'pressurebar', fn: decimalSIPrefix('bar') },
{ name: 'Kilobars', id: 'pressurekbar', fn: decimalSIPrefix('bar', 1) }, { name: 'Kilobars', id: 'pressurekbar', fn: decimalSIPrefix('bar', 1) },
{ name: 'Pascals', id: 'pressurepa', fn: decimalSIPrefix('Pa') },
{ name: 'Hectopascals', id: 'pressurehpa', fn: toFixedUnit('hPa') }, { name: 'Hectopascals', id: 'pressurehpa', fn: toFixedUnit('hPa') },
{ name: 'Kilopascals', id: 'pressurekpa', fn: toFixedUnit('kPa') }, { name: 'Kilopascals', id: 'pressurekpa', fn: toFixedUnit('kPa') },
{ name: 'Inches of mercury', id: 'pressurehg', fn: toFixedUnit('"Hg') }, { name: 'Inches of mercury', id: 'pressurehg', fn: toFixedUnit('"Hg') },
...@@ -300,6 +301,15 @@ export const getCategories = (): ValueFormatCategory[] => [ ...@@ -300,6 +301,15 @@ export const getCategories = (): ValueFormatCategory[] => [
], ],
}, },
{ {
name: 'Rotational Speed',
formats: [
{ name: 'Revolutions per minute (rpm)', id: 'rotrpm', fn: toFixedUnit('rpm') },
{ name: 'Hertz (Hz)', id: 'rothz', fn: decimalSIPrefix('Hz') },
{ name: 'Radians per second (rad/s)', id: 'rotrads', fn: toFixedUnit('rad/s') },
{ name: 'Degrees per second (°/s)', id: 'rotdegs', fn: toFixedUnit('°/s') },
],
},
{
name: 'Temperature', name: 'Temperature',
formats: [ formats: [
{ name: 'Celsius (°C)', id: 'celsius', fn: toFixedUnit('°C') }, { name: 'Celsius (°C)', id: 'celsius', fn: toFixedUnit('°C') },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment