/
stream_value.schema.json
111 lines (110 loc) · 2.67 KB
/
stream_value.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"id": "https://xviz.org/schema/style/stream_value.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "XVIZ Stream Style Value",
"type": "object",
"properties": {
"fill_color": {
"$ref": "https://xviz.org/schema/style/_color.json"
},
"stroke_color": {
"$ref": "https://xviz.org/schema/style/_color.json"
},
"stroke_width": {
"type": "number"
},
"radius": {
"type": "number"
},
"text_size": {
"type": "number"
},
"text_rotation": {
"type": "number"
},
"text_anchor": {
"enum": ["START", "MIDDLE", "END"]
},
"text_baseline": {
"enum": ["TOP", "CENTER", "BOTTOM"]
},
"height": {
"type": "number"
},
"radius_pixels": {
"type": "number",
"minimum": 0
},
"radius_min_pixels": {
"type": "number",
"minimum": 0
},
"radius_max_pixels": {
"type": "number",
"minimum": 0
},
"stroke_width_min_pixels": {
"type": "number",
"minimum": 0
},
"stroke_width_max_pixels": {
"type": "number",
"minimum": 0
},
"opacity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"stroked": {
"type": "boolean"
},
"filled": {
"type": "boolean"
},
"extruded": {
"type": "boolean"
},
"font_family": {
"type": "string"
},
"font_weight": {
"type": "number"
},
"point_color_mode": {
"enum": ["ELEVATION", "DISTANCE_TO_VEHICLE"]
},
"point_color_domain": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number"
}
}
},
"anyOf": [
{"required": ["fill_color"]},
{"required": ["stroke_color"]},
{"required": ["stroke_width"]},
{"required": ["radius"]},
{"required": ["radius_pixels"]},
{"required": ["text_size"]},
{"required": ["text_rotation"]},
{"required": ["text_anchor"]},
{"required": ["text_baseline"]},
{"required": ["radius_min_pixels"]},
{"required": ["radius_max_pixels"]},
{"required": ["stroke_width_min_pixels"]},
{"required": ["stroke_width_max_pixels"]},
{"required": ["opacity"]},
{"required": ["stroked"]},
{"required": ["filled"]},
{"required": ["extruded"]},
{"required": ["font_family"]},
{"required": ["font_weight"]},
{"required": ["point_color_mode"]},
{"required": ["point_color_domain"]}
],
"additionalProperties": false
}