impasto
    Preparing search index...

    Interface SpaceElement

    An Impasto space element.

    Represents a single space character in the code.

    interface SpaceElement {
        children: [Text];
        content?: Root;
        data?: ElementData;
        position?: Position;
        properties: Properties & { className: string[] };
        tagName: "span";
        type: "element";
    }

    Hierarchy

    • Element
      • SpaceElement
    Index

    Properties

    children: [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 space class.

    tagName: "span"

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

    type: "element"

    Node type of elements.