-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle-schema.json
77 lines (77 loc) · 2.54 KB
/
style-schema.json
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"definitions": {
"Style": {
"title": "Node Style",
"description": "Describes the appearance of metadata node and contains the descriptions of its children node styles.",
"type": "object",
"properties": {
"style": {
"title": "Style",
"description": "The style of the metadata node.",
"type": "object",
"required": false,
"properties": {
"scalars": {
"title": "Scalars",
"description": "Color mapping for scalar values",
"required": false,
"type": "object",
"properties": {
"colormap": {
"description": "The colors of the colormap",
"oneOf": [
{
"type": "string",
"enum": ["plasma", "viridis", "inferno", "magma"],
"required": false
},
{
"type": "array",
"items": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"required": false
}
]
},
"min": {
"description": "The minimum value of the colormap",
"type": "number"
},
"max": {
"description": "The maximum value of the colormap",
"type": "number"
}
}
},
"categories": {
"title": "Categories",
"description": "Color mapping for categorical (string) values",
"required": false,
"type": "object",
"patternProperties": {
"^.*$": {
"description": "The category value as key and corresponding color",
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
}
}
}
}
},
"children": {
"type": "object",
"description": "The styles of the children nodes, contains the titles of children nodes as keys and the their styles as values.",
"patternProperties": {
"^.*$": {
"description": "The child node title as key and the style of the child node as value",
"$ref": "#/definitions/Style"
}
}
}
}
}
},
"$ref": "#/definitions/Style"
}