Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MediaRule<V>

Type parameters

Hierarchy

Index

Properties

Readonly animationTracks

animationTracks: readonly AnimationTrack[]

cssRules

cssRules: {}

Type declaration

Readonly name

name: undefined | string

Readonly node

node: undefined | Node

Readonly owner

owner: V

Readonly rule

rule: CSSMediaRule

Methods

addConstraint

  • Parameters

    Returns void

addConstraintVariable

  • Parameters

    Returns void

applyTheme

  • Parameters

    Returns void

constraint

constraintVariable

  • Parameters

    Returns ConstraintBinding

createRule

  • createRule(cssText: string): CSSMediaRule
  • Parameters

    • cssText: string

    Returns CSSMediaRule

getCssRule

  • Parameters

    • ruleName: string

    Returns null | CssRule<MediaRule<V>>

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

Optional initCss

  • initCss(): string
  • Returns string

Optional initRule

  • initRule(rule: CSSMediaRule): CSSMediaRule
  • Parameters

    • rule: CSSMediaRule

    Returns CSSMediaRule

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

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