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§

op
Nested message and enum types in Op.
update
Nested message and enum types in Update.

Structs§

Color
A color’s value in each of the design’s themes, each 0xRRGGBBAA; a color written as #… has the same value in both.
FontFile
A font file’s bytes, TrueType or OpenType, and its id: the SHA-256 of the bytes.
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.
Insert
A subtree placed under parent, right after its child after — or first, when after is unset.
Move
The node id, with its subtree, placed under parent right after its child after, or first.
Node
One node of a scene, every attribute resolved. A size is pixels, or -1 for hug and -2 for fill. A fill is fill (one color) or gradient, never both.
NodeId
A node’s id: the element ids from the design’s root through each instance down to the element that made it.
Op
One operation of a patch.
Patch
What changed, as operations on the scene last sent, applied in order, each naming its nodes by id; the image and font files they use that the scene last sent didn’t have — only those — and whether the scene is themed now.
Problems
Scene
A whole scene: its tree, each distinct image file the tree shows and font file its texts are set in, once, however many nodes use it, and whether it is themed — whether any theme. reference reached 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