Completed
Pull Request — master (#171)
by Johan
32s
created

defaults.valid.default   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 1
rs 10
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