angular-units-converter
Version:
A simple utility library to measure and convert between units
49 lines (45 loc) • 849 B
JavaScript
import utils from '../utils.js';
const RATIO = 1;
const power = {
metric: {
baseUnit: 'W',
transform: (val) => { return val * RATIO },
W: {
name: {
singular: 'Watt',
plural: 'Watts'
},
to_anchor: 1
},
mW: {
name: {
singular: 'Milliwatt',
plural: 'Milliwatts'
},
to_anchor: 0.001
},
kW: {
name: {
singular: 'Kilowatt',
plural: 'Kilowatts'
},
to_anchor: 1000
},
MW: {
name: {
singular: 'Megawatt',
plural: 'Megawatts'
},
to_anchor: 1000000
},
GW: {
name: {
singular: 'Gigawatt',
plural: 'Gigawatts'
},
to_anchor: 1000000000
}
}
};
var power$1 = utils(power);
export default power$1;