Commit 00b18a8a by Andrew Prokhorenkov Committed by Torkel Ödegaard

addded mass units, #9265 (#9273)

parent a20c4195
......@@ -478,6 +478,12 @@ function($, _) {
kbn.valueFormats.lengthkm = kbn.formatBuilders.decimalSIPrefix('m', 1);
kbn.valueFormats.lengthmi = kbn.formatBuilders.fixedUnit('mi');
// Mass
kbn.valueFormats.massmg = kbn.formatBuilders.decimalSIPrefix('g', -1);
kbn.valueFormats.massg = kbn.formatBuilders.decimalSIPrefix('g');
kbn.valueFormats.masskg = kbn.formatBuilders.decimalSIPrefix('g', 1);
kbn.valueFormats.masst = kbn.formatBuilders.fixedUnit('t');
// Velocity
kbn.valueFormats.velocityms = kbn.formatBuilders.fixedUnit('m/s');
kbn.valueFormats.velocitykmh = kbn.formatBuilders.fixedUnit('km/h');
......@@ -798,6 +804,15 @@ function($, _) {
]
},
{
text: 'mass',
submenu: [
{text: 'milligram (mg)', value: 'massmg'},
{text: 'gram (g)', value: 'massg' },
{text: 'kilogram (kg)', value: 'masskg'},
{text: 'metric ton (t)', value: 'masst' },
]
},
{
text: 'velocity',
submenu: [
{text: 'm/s', value: 'velocityms' },
......
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