impasto
    Preparing search index...

    Interface LineElement

    An Impasto line element.

    Contains the highlighted code for a single line.

    interface LineElement {
        children: (Element | Text)[];
        content?: Root;
        data?: ElementData;
        position?: Position;
        properties: Properties & { className: string[] };
        tagName: "div";
        type: "element";
    }

    Hierarchy

    • Element
      • LineElement
    Index

    Properties

    children: (Element | Text)[]

    Children of element.

    content?: Root

    When the tagName field is 'template', a content field can be present.

    data?: ElementData

    Data associated with the element.

    position?: Position

    Position of a node in a source document.

    Nodes that are generated (not in the original source document) must not have a position.

    properties: Properties & { className: string[] }

    Info associated with the element.

    Type declaration

    • className: string[]

      A CSS class array that always includes the line class.

    tagName: "div"

    Tag name (such as 'body') of the element.

    type: "element"

    Node type of elements.