xviz/modules/schema/examples/core/annotation_visual.json
Joseph Lisee 08bfb38e59 Update schema and provided compatible proto3 IDL files (#168)
The goal here is to increase adoption by letting people build quick
clients with based on the protobuf IDL files and websocket
library. Note we are excluding declarative UI because that is meant as
a pure text protocol that is easy for humans to edit.

The downside is we have to content with protobuf not supported:

 - Maps of arrays
 - Polymorphic types
 - Variant fields
 - No typedefs

So the major changes we have to do for this is:

 - Move common fields from primitive, and annotation into base sub
   type
 - Replace polymorphic lists of primitives with lists per types
 - Add explicitly typed lists for time series and variables
 - (Part 2) Update future_instances to be non polymorphic
 - (Part 3) Update time_series to be non variant based
 - (Part 4) Update variables to be non variant based

This also means protobuf will only ever support a subset of the JSON
schema, with that subset being:

 - Numeric only colors (no hex or string support)
 - Flattened arrays only (no nested array support)

(Maybe we'll even have some gRPC endpoints someday as well).
2018-10-26 18:47:38 -04:00

12 lines
182 B
JSON

{
"base": {
"object_id": "{067a2faf-64b5-4b8f-8d7d-ed873630df4f}"
},
"style_classes": [
"highlighted"
],
"inline_style": {
"fill_color": [255, 0, 0, 255]
}
}