Class

DisplayRule

DisplayRule(ruleopt)

Represents a display rule with various properties for styling and rendering.

Constructor

# new DisplayRule(ruleopt)

Constructs a new DisplayRule instance.

Parameters:
Name Type Attributes Description
rule DisplayRuleLiteral | DisplayRule <optional>

The display rule to construct the instance with.

Implements:
  • DisplayRuleLiteral

Classes

DisplayRule

Methods

# static merge(displayRules) → {DisplayRule|null}

Merges an array of DisplayRuleLiteral objects into a single DisplayRule object. If the array is empty or not an array, it returns null.

Parameters:
Name Type Description
displayRules Array.<(DisplayRuleLiteral|DisplayRule|undefined)>

An array of DisplayRuleLiteral objects to merge.

The merged DisplayRule object or null if the array is empty or not an array.

DisplayRule | null
new DisplayRule

Methods