Class StypRuleRefs<TRefMap>

Named CSS rule references complying to the CSS properties structure.

Implements an event keeper interface by sending named CSS properties structures for each CSS rule reference.

Type Parameters

  • TRefMap extends Struct<TRefMap>

    A type of target map of named CSS properties structures.

Hierarchy

  • StypRuleRefs

Implements

  • EventKeeper<[TRefMap]>

Constructors

Properties

Methods

Constructors

Properties

read: AfterEvent<[TRefMap]>

An AfterEvent keeper of named CSS properties structures for each CSS rule reference.

The [AfterEvent__symbol] property is an alias of this one.

refs: {
    readonly [K in string | number | symbol]: StypRuleRef<TRefMap[K]>
}

CSS rule references by name.

Each property in this map is a CSS rule reference corresponding to the same named property in properties structure. I.e. it has the same name and the same properties structure of referenced rule.

Methods

  • Constructs named CSS rules by resolving CSS rule referrers.

    Type Parameters

    • TRefMap extends Struct<TRefMap>

      A type of target map of named CSS properties structures.

    Parameters

    • referrers: {
          readonly [K in string | number | symbol]: RefStypRule<TRefMap[K]>
      }

      Named CSS rule referrers to resolve.

    • root: StypRule

      A root CSS rule the references will be relative to.

    Returns StypRuleRefs<TRefMap>

    New names CSS rules instance.

Generated using TypeDoc