Options
All
  • Public
  • Public/Protected
  • All
Menu

The ThemeVisitor visits every style in the theme in a depth-first fashion.

Hierarchy

  • ThemeVisitor

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly theme

theme: Theme

Methods

visitStyles

  • visitStyles(visitFunc: (style: Style) => boolean): boolean
  • Applies a function to every style in the theme.

    Parameters

    • visitFunc: (style: Style) => boolean

      Function to be called with style as an argument. Function should return true to cancel visitation.

        • (style: Style): boolean
        • Parameters

          Returns boolean

    Returns boolean

    true if function has finished prematurely.

Generated using TypeDoc