Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 80 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | var defaults = { |
||
2 | width: { |
||
3 | type: "number", |
||
4 | default: 2, |
||
5 | }, |
||
6 | height: { |
||
7 | type: "number", |
||
8 | default: 100, |
||
9 | }, |
||
10 | format: { |
||
11 | type: "string", |
||
12 | default: "auto", |
||
13 | }, |
||
14 | displayValue: { |
||
15 | type: "boolean", |
||
16 | default: true, |
||
17 | }, |
||
18 | fontOptions: { |
||
19 | type: "string", |
||
20 | default: "", |
||
21 | }, |
||
22 | font: { |
||
23 | type: "string", |
||
24 | default: "monospace", |
||
25 | }, |
||
26 | text: { |
||
27 | type: "string", |
||
28 | default: undefined, |
||
29 | }, |
||
30 | textAlign: { |
||
31 | type: "string", |
||
32 | default: "center", |
||
33 | }, |
||
34 | textPosition: { |
||
35 | type: "string", |
||
36 | default: "bottom", |
||
37 | }, |
||
38 | textMargin: { |
||
39 | type: "number", |
||
40 | default: 2, |
||
41 | }, |
||
42 | fontSize: { |
||
43 | type: "number", |
||
44 | default: 20, |
||
45 | }, |
||
46 | background: { |
||
47 | type: "string", |
||
48 | default: "#ffffff", |
||
49 | }, |
||
50 | lineColor: { |
||
51 | type: "string", |
||
52 | default: "#000000", |
||
53 | }, |
||
54 | margin: { |
||
55 | type: "number", |
||
56 | default: 10, |
||
57 | }, |
||
58 | marginTop: { |
||
59 | type: "number", |
||
60 | default: undefined, |
||
61 | }, |
||
62 | marginBottom: { |
||
63 | type: "number", |
||
64 | default: undefined, |
||
65 | }, |
||
66 | marginLeft: { |
||
67 | type: "number", |
||
68 | default: undefined, |
||
69 | }, |
||
70 | marginRight: { |
||
71 | type: "number", |
||
72 | default: undefined, |
||
73 | }, |
||
74 | valid: { |
||
75 | type: "function", |
||
76 | default: function(){}, |
||
77 | }, |
||
78 | }; |
||
79 | |||
80 | export default defaults; |
||
81 |