Class FoundryStyles

Parses the core Foundry style sheet creating an indexed object of properties by selector.

Constructors

Methods

  • 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.

    • [key: string]: string
  • Gets a specific property value from the given selector and property key. Try and use a direct selector match otherwise all keys are iterated to find a selector string that includes selector.

    Parameters

    • selector: string

      Selector to find.

    • property: string

      Specific property to locate.

    Returns string

    Property value.