@tempots/dom

mathAttr variable

An object that provides attribute functions for MathML tags.

Signature:

mathAttr: {
    maction: (value: NValue<MathMLElement>) => Renderable;
    math: (value: NValue<MathMLElement>) => Renderable;
    merror: (value: NValue<MathMLElement>) => Renderable;
    mfenced: (value: NValue<MathMLElement>) => Renderable;
    mfrac: (value: NValue<MathMLElement>) => Renderable;
    mi: (value: NValue<MathMLElement>) => Renderable;
    mmultiscripts: (value: NValue<MathMLElement>) => Renderable;
    mn: (value: NValue<MathMLElement>) => Renderable;
    mo: (value: NValue<MathMLElement>) => Renderable;
    mover: (value: NValue<MathMLElement>) => Renderable;
    mpadded: (value: NValue<MathMLElement>) => Renderable;
    mphantom: (value: NValue<MathMLElement>) => Renderable;
    mroot: (value: NValue<MathMLElement>) => Renderable;
    mrow: (value: NValue<MathMLElement>) => Renderable;
    ms: (value: NValue<MathMLElement>) => Renderable;
    mspace: (value: NValue<MathMLElement>) => Renderable;
    msqrt: (value: NValue<MathMLElement>) => Renderable;
    mstyle: (value: NValue<MathMLElement>) => Renderable;
    msub: (value: NValue<MathMLElement>) => Renderable;
    msubsup: (value: NValue<MathMLElement>) => Renderable;
    msup: (value: NValue<MathMLElement>) => Renderable;
    mtable: (value: NValue<MathMLElement>) => Renderable;
    mtd: (value: NValue<MathMLElement>) => Renderable;
    mtext: (value: NValue<MathMLElement>) => Renderable;
    mtr: (value: NValue<MathMLElement>) => Renderable;
    munder: (value: NValue<MathMLElement>) => Renderable;
    munderover: (value: NValue<MathMLElement>) => Renderable;
    semantics: (value: NValue<MathMLElement>) => Renderable;
}

Example

const math = html.math(
 mathAttr.mathvariant('bold'),
 mathAttr.mathsize(size), // where size is a `Signal`
// ...
)