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