@mathjax/src
    Preparing search index...

    Implements the Attributes class for MmlNodes (These can be set explicitly, inherited from parent nodes, taken from a default list of values, or taken from global defaults.)

    Index

    Constructors

    • Parameters

      • defaults: PropertyList

        The defaults for this node type

      • global: PropertyList

        The global properties (from the math node)

      Returns Attributes

    Properties

    attributes: PropertyList

    The attributes explicitly set on a node

    defaults: PropertyList

    The default attributes for the node type

    global: PropertyList

    Global attributes from the math node itself

    inherited: PropertyList

    The attributes inherited from parent nodes

    Methods

    • Parameters

      • name: string

        The name of a default attribute whose value is to be returned

      Returns Property

      The value of the named attribute if a default exists for it, null otherwise

    • Parameters

      • name: string

        The value of the attribute whose value is to be returned

      Returns Property

      The attribute whose name was given if it is explicit on the node (not inherited or defaulted), null otherwise

    • Parameters

      • name: string

        The name of an inherited attribute whose value is to be returned

      Returns Property

      The value of the named attribute if it is inherited, null otherwise

    • Parameters

      • ...names: string[]

        The names of attributes whose values are to be returned

      Returns PropertyList

      An object containing the attributes and their values

    • Parameters

      • name: string

        The name of an attribute to test for the existence of a default

      Returns boolean

      True of there is a default for the named attribute, false otherwise

    • Parameters

      • name: string

        The value of the attribute whose presence is to be checked

      Returns boolean

      True if the attribute is explicitly given on this node

    • Parameters

      • names: string[]

        The attribute names to look for.

      Returns boolean

      True if one of the names is an explicit attribute, false otherwise

    • Parameters

      • name: string

        The name of a attribute to check

      Returns boolean

      True if attribute is set explicitly or inherited from an explicit mstyle or math attribute