Component property assignment support for the graph resolver.
Summary
Functions
Applies component property assignments from an instance seed.
Applies component property assignments from all instance seeds in the graph.
Applies one instance's component property assignments to the graph.
Maps Figma component property field identifiers to scene node fields.
Indexes component property definitions to their source graph node fields.
Finds the source node and field referenced by a component property definition.
Functions
@spec apply(Figler.Scene.Graph.t(), Figler.Scene.Graph.Seed.Node.t()) :: Figler.Scene.Graph.t()
Applies component property assignments from an instance seed.
@spec apply_all(Figler.Scene.Graph.t()) :: Figler.Scene.Graph.t()
Applies component property assignments from all instance seeds in the graph.
@spec apply_assignments( Figler.Scene.Graph.t(), Figler.Scene.Graph.GUID.graph_guid(), [term()] ) :: Figler.Scene.Graph.t()
Applies one instance's component property assignments to the graph.
Component swaps run before simple field assignments so later assignment patches target the current effective component tree.
Maps Figma component property field identifiers to scene node fields.
@spec index([Figler.Scene.Graph.Seed.Node.t()]) :: %{ optional(Figler.Scene.Graph.GUID.figma_guid()) => [ {Figler.Scene.Graph.GUID.graph_guid(), atom()} ] }
Indexes component property definitions to their source graph node fields.
@spec ref(Figler.Scene.Graph.t(), Figler.Scene.Graph.GUID.figma_guid()) :: {Figler.Scene.Graph.GUID.graph_guid(), atom()} | nil
Finds the source node and field referenced by a component property definition.