Function produceStyle

  • Produces and dynamically updates CSS stylesheets based on the given CSS rules.

    Appends <style> element(s) to the given parent DOM node (document.head by default) and updates them when CSS rules change.

    This function enables all default renderers. E.g. the one supporting raw CSS text rules. If some of them are not needed a produceBasicStyle variant of this function may be used instead.

    Parameters

    • rules: StypRules

      CSS rules to produce stylesheets for. This can be e.g. a rules to render all rules, or a result of grab method call to render only matching ones.

    • format: StypFormat

      Production format.

    Returns Supply

    Styles supply. Once cut off (i.e. its off() method is called) the produced stylesheets are removed.

Generated using TypeDoc