ultrawidify/src/common/enums/aspect-ratio.enum.js

25 lines
716 B
JavaScript
Raw Normal View History

2019-03-10 23:27:50 +01:00
var AspectRatio = Object.freeze({
2020-10-21 19:46:25 +02:00
Initial: -1, // page default
Reset: 0, // reset to initial
Automatic: 1, // set by Aard
FitWidth: 2, // legacy/dynamic: fit to width
FitHeight: 3, // legacy/dynamic: fit to height
Fixed: 4, // pre-determined aspect ratio
Manual: 5, // ratio achieved by zooming in/zooming out
toString: (ar) => {
switch (ar) {
case -1: return 'Initial';
case 0: return 'Reset';
case 1: return 'Automatic';
case 2: return 'FitWidth';
case 3: return 'FitHeight';
case 4: return 'Fixed';
case 5: return 'Manual';
default: return '<not an valid enum value>'
}
}
2019-03-10 23:27:50 +01:00
});
export default AspectRatio;