]>
Commit | Line | Data |
---|---|---|
7ade6f8d RBR |
1 | /** |
2 | Changes the stiffness on the node when it's less extended | |
3 | * | |
4 | * @name Config | |
5 | * @type object | |
6 | */ | |
6768cd46 | 7 | const config = { |
7ade6f8d RBR |
8 | |
9 | /** | |
10 | * How many pixels to use per meter | |
11 | * | |
12 | * @property {number} meterSize | |
13 | * @memberof Config | |
14 | */ | |
6768cd46 RBR |
15 | meterSize: 25, |
16 | ||
17 | /** | |
18 | * Aspect Ratio the aspect ratio expressed as an array of two numbers | |
19 | * | |
20 | * @property {number} aspectRatio | |
21 | * @memberof Config | |
22 | */ | |
23 | aspectRatio: [2.76, 1], | |
24 | ||
25 | /** | |
26 | * Target vertical resolution | |
27 | * | |
28 | * @property {number} verticalResolution | |
29 | * @memberof Config | |
30 | */ | |
31 | verticalResolution: 224 | |
32 | ||
7ade6f8d | 33 | }; |
6768cd46 RBR |
34 | |
35 | /** | |
36 | * How many pixels to use per meter | |
37 | * | |
38 | * @property {number} meterSize | |
39 | * @memberof Config | |
40 | */ | |
41 | config.horizontalResolution = Math.round(config.verticalResolution * config.aspectRatio[0] / config.aspectRatio[1]); | |
42 | ||
43 | export default config; |