compile
fun compile(pattern: UnvalidatedStylePattern, palette: Palette): StyleRule
Content copied to clipboard
Compile the specified pattern into a rule, using the supplied palette to resolve any symbolic colors to actual colors.
Return
The compiled rule.
Parameters
pattern
The unvalidated pattern to compile.
palette
The palette for resolution of symbolic colors.
Throws
If pattern could not be compiled for any reason.
If validation of pattern's rendering context failed for any reason.