Class FoundryStyles
Index
Constructors
constructor
- new FoundryStyles(): FoundryStyles
Returns FoundryStyles
Accessors
Static
sheet
- get sheet(): CSSStyleSheet
Returns CSSStyleSheet
Main Foundry stylesheet.
Static
size
- get size(): number
Returns number
Returns the size / count of selector properties tracked.
Methods
Static
entries
- entries(): MapIterator<[string, { [p: string]: string }]>
Returns MapIterator<[string, { [p: string]: string }]>
Tracked CSS selector key / value iterator.
Static
get
- get(selector: string): { [key: string]: string }
Gets all properties 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
Static
has
Static
keys
- keys(): MapIterator<string>
Returns MapIterator<string>
Tracked CSS selector keys iterator.
Parses the core Foundry style sheet creating an indexed object of properties by individual selector parts that are viable to use for specific element styling.