52 lines
782 B
JavaScript
52 lines
782 B
JavaScript
var metric
|
|
, imperial;
|
|
|
|
metric = {
|
|
'min/km': {
|
|
name: {
|
|
singular: 'Minute per kilometre'
|
|
, plural: 'Minutes per kilometre'
|
|
}
|
|
, to_anchor: 0.06
|
|
}
|
|
,'s/m': {
|
|
name: {
|
|
singular: 'Second per metre'
|
|
, plural: 'Seconds per metre'
|
|
}
|
|
, to_anchor: 1
|
|
}
|
|
}
|
|
|
|
imperial = {
|
|
'min/mi': {
|
|
name: {
|
|
singular: 'Minute per mile'
|
|
, plural: 'Minutes per mile'
|
|
}
|
|
, to_anchor: 0.0113636
|
|
}
|
|
, 's/ft': {
|
|
name: {
|
|
singular: 'Second per foot'
|
|
, plural: 'Seconds per foot'
|
|
}
|
|
, to_anchor: 1
|
|
}
|
|
};
|
|
|
|
module.exports = {
|
|
metric: metric
|
|
, imperial: imperial
|
|
, _anchors: {
|
|
metric: {
|
|
unit: 's/m'
|
|
, ratio: 0.3048
|
|
}
|
|
, imperial: {
|
|
unit: 's/ft'
|
|
, ratio: 1/0.3048
|
|
}
|
|
}
|
|
};
|