]> git.r.bdr.sh - rbdr/sumo/blame - lib/config.js
Add Grab System (#9)
[rbdr/sumo] / lib / config.js
CommitLineData
7ade6f8d
RBR
1/**
2 Changes the stiffness on the node when it's less extended
3 *
4 * @name Config
5 * @type object
6 */
6768cd46 7const 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 */
41config.horizontalResolution = Math.round(config.verticalResolution * config.aspectRatio[0] / config.aspectRatio[1]);
42
43export default config;