Interface StyleProducer

CSS styles producer.

It is constructed by produceStyle function for each processed CSS rule.

Implements SupplyPeer by cutting off the styles supply returned by produceStyle.

Hierarchy

  • SupplyPeer
    • StyleProducer

Properties

rule: StypRule

CSS rule to produce styles for.

selector: DoqryPicker

Rendered CSS rule selector.

sheet: Sheet

CSS style sheet writer to add CSS rules to.

supply: Supply

A supply this peer takes part in.

writer: StypWriter

CSS style sheet or rule writer to add declarations to.

Methods

  • Tries to append CSS style declarations to target CSS style sheet or rule.

    If target is style sheet or grouping rule, then inserts the last style rule. Otherwise just returns writer.

    Parameters

    • Optional selector: DoqryPicker

      Appended CSS rule selector. Equals to the one from this producer when omitted.

    Returns Style

    Either style writer to appended empty CSS rule, or writer.

Generated using TypeDoc