Scenic.Primitive.Path.compile
You're seeing just the function
compile
, go back to Scenic.Primitive.Path module for more information.
Specs
compile(primitive :: Scenic.Primitive.t(), styles :: Scenic.Primitive.Style.t()) :: Scenic.Script.t()
Compile the data for this primitive into a mini script. This can be combined with others to generate a larger script and is called when a graph is compiled.
Note: Path is a "Meta" primitive. It isn't really a primitive that is represented in a draw script. Instead, it generates it's own mini-script, which is included inline to the graph it is contained in.
Note: The compiled script is backwards. This is an inline script, which means it is inserted into a larger script as part of the graph compile process and Script.finish() will be called on that later.