Get desktop application:
View/edit binary Protocol Buffers messages
Details on the Figma component that this view is an instance of.
Used in:
Previously we only figure out overrides for the root of a component This is now deprecated and will be removed soon.
Descendent view name -> ComponentOverrides mappings. This works only if view name is identical. For the component root view, it uses the component_set_name as the key because the component name differs per variant.
Figma component properties can be "overridden" in the UI. These overrides are applied in the node tree we get back from Figma, so we don't have to worry about them, unless we present a variant of a component as a result of an interaction. In that case, we need to figure out what has been overridden and apply it to the variant. This struct keeps track of those overrides that need to be applied to variant instances.
Used in:
Configures whether a view is displayed using a Flexbox layout or not at all.
Used in:
Contains all of the styleable parameters accepted by the Rect and Text components. Next id = 45
Used in:
Text properties
Transforms
Text layout
Size and layout
Layout properties
Runtime shader from the shader plugin as background. When shader is present, background will not be drawn.
A section of text with a specific style
Used in:
These are the style properties that apply to text, so we can use them on subsections of a longer string. We then assume that every style transition is a potential line break (and also run the linebreaking algorithm on the content of every style for the normal case where we need to break text that's all in one style).
Used in:
Represents a toolkit View (like a Composable).
Used in:
,unique numeric id (not replicated within one DesignCompose file), which is used by the renderer when building a layout tree, or when mapping from an integer to a View. IMPORTANT: This is a u16, but proto doesn't do short types. Convert back to u16 after deserializing
id doesn't exist in vsw toolkit, but is useful for tracing from Figma node to output
name doesn't exist in vsw toolkit, but is also useful for tracing.
information on the component that this view is an instance of (if any).
interactivity
interactivity related frame properties
overflow (scrolling) data
common style
details that are unique to each view type.
absolute bounding box of the view in the design document
hint for the renderer on how to render the view
a hash of variable collection id -> mode id if variable modes are set on this view
This enum may be used as a hint by the DesignCompose renderer implementation to determine if it is important for the content to be rendered identically on different platforms.
Used in:
Details that are unique to each view type.
Used in:
,Container is used to represent views that act as containers for other views, like a Column or a Row in Jetpack Compose. The shape field defines the visual appearance of the container, while the children field defines the views that are contained within it.
Used in:
A collection of styled text sections
Used in:
A Text view with a possible resource name attached to it
Used in:
Collects the Layout and Node styles for a View
Used in:
,