Skip to main content

Module proto

Module proto 

Source
Expand description

The watch stream’s messages, generated from proto/design.proto — with the server feature, the Designs service’s server side too — and the conversion of a scene into them and back.

Modules§

update
Nested message and enum types in Update.

Structs§

Gradient
A linear gradient: angle in degrees as in CSS, stops along its line.
Image
An image’s address in the served folder and the id of the image file it shows, which the scene or a patch carries.
ImageFile
An image file’s bytes, PNG or JPEG, and its id: the SHA-256 of the bytes.
Node
One node of a scene, every attribute resolved. Colors are 0xRRGGBBAA; a size is pixels, or -1 for hug and -2 for fill. A fill is fill (one color) or gradient, never both.
Patch
The nodes that changed, and the image files they show that the scene last sent didn’t have — only those.
Problems
Replace
The node at id — its path of child positions, like “0.2.1” — replaced with its whole subtree.
Scene
A whole scene: its tree, and each distinct image file the tree shows, once, however many nodes show it.
Shadow
Stop
Text
Update
Vector
A vector’s SVG path data and its view box: min x, min y, width, height.
WatchRequest

Enums§

Align
Kind
Layout
TextAlign