Class FoundryStyles
Index
Constructors
Methods
Constructors
constructor
- new FoundryStyles(): FoundryStyles
Returns FoundryStyles
Methods
Static
getProperties
- getProperties(selector: string): { [key: string]: string }
Gets the properties object associated with the selector. Try and use a direct match otherwise all keys are iterated to find a selector string that includes the
selector
.Parameters
- selector: string
Selector to find.
Returns { [key: string]: string }
Properties object.
- selector: string
Static
getProperty
- getProperty(selector: string, property: string): string
Gets a specific property value from the given
selector
andproperty
key. Try and use a direct selector match otherwise all keys are iterated to find a selector string that includesselector
.Parameters
- selector: string
Selector to find.
- property: string
Specific property to locate.
Returns string
Property value.
- selector: string
Parses the core Foundry style sheet creating an indexed object of properties by selector.