Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StyleSheet

Hierarchy

  • StyleSheet

Implements

Index

Constructors

constructor

  • Parameters

    Returns StyleSheet

Properties

Readonly animationTracks

animationTracks: readonly AnimationTrack[]

Readonly cssRules

cssRules: {}

Type declaration

Readonly owner

Readonly stylesheet

stylesheet: CSSStyleSheet

Methods

addConstraint

  • Parameters

    Returns void

addConstraintVariable

  • Parameters

    Returns void

applyTheme

  • Parameters

    Returns void

constraint

constraintVariable

  • Parameters

    Returns ConstraintBinding

Protected createStylesheet

  • createStylesheet(): CSSStyleSheet
  • Returns CSSStyleSheet

getCssRule

  • Parameters

    • ruleName: string

    Returns null | CssRule<StyleSheet>

getLazyCssRule

  • Parameters

    • ruleName: string

    Returns null | CssRule<StyleSheet>

getLook

  • Type parameters

    • T

    Parameters

    Returns undefined | T

getLookOr

  • getLookOr<T, E>(look: Look<T, unknown>, elseValue: E): T | E
  • getLookOr<T, E>(look: Look<T, unknown>, mood: null | MoodVector<Feel>, elseValue: E): T | E
  • Type parameters

    • T

    • E

    Parameters

    • look: Look<T, unknown>
    • elseValue: E

    Returns T | E

  • Type parameters

    • T

    • E

    Parameters

    Returns T | E

getRule

  • getRule(index: number): null | CSSRule
  • Parameters

    • index: number

    Returns null | CSSRule

hasConstraint

  • Parameters

    Returns boolean

hasConstraintVariable

  • Parameters

    Returns boolean

hasCssRule

  • hasCssRule(ruleName: string): boolean
  • Parameters

    • ruleName: string

    Returns boolean

insertRule

  • insertRule(cssText: string, index?: number): number
  • Parameters

    • cssText: string
    • Optional index: number

    Returns number

mount

  • mount(): void
  • Returns void

onAnimate

  • onAnimate(t: number): void
  • Parameters

    • t: number

    Returns void

removeConstraint

  • Parameters

    Returns void

removeConstraintVariable

  • Parameters

    Returns void

removeRule

  • removeRule(index: number): void
  • Parameters

    • index: number

    Returns void

requireUpdate

  • requireUpdate(updateFlags: number): void
  • Parameters

    • updateFlags: number

    Returns void

setConstraintVariable

  • Parameters

    Returns void

setCssRule

  • Parameters

    Returns void

trackDidStartAnimating

  • Parameters

    Returns void

trackDidStopAnimating

  • Parameters

    Returns void

trackWillStartAnimating

  • Parameters

    Returns void

trackWillStopAnimating

  • Parameters

    Returns void

unmount

  • unmount(): void
  • Returns void

updateAnimations

  • updateAnimations(t: number): void
  • Parameters

    • t: number

    Returns void

Generated using TypeDoc