Field Notes
    Preparing search index...

    Interface HtmlElement

    interface HtmlElement {
        data?: Record<string, unknown>;
        domId?: string;
        editor?: string;
        groupId?: string;
        htmlType?: string;
        id: string;
        index: string;
        interactive?: boolean;
        layerId: string;
        link?: string;
        locked: boolean;
        parentId?: string;
        position: Point;
        rotation?: number;
        size: Size;
        transient?: boolean;
        type: "html";
        version: number;
    }

    Hierarchy (View Summary)

    Index
    data?: Record<string, unknown>

    Serializable payload passed to the registered renderer to rebuild the embed on load.

    domId?: string
    editor?: string

    Peer that wrote the accepted remote version; absent after a local edit.

    groupId?: string

    Optional flat group membership. Elements sharing a groupId select/move/delete as a unit.

    htmlType?: string

    Discriminator matching a renderer registered via viewport.registerHtmlRenderer.

    id: string
    index: string

    Fractional order key within the layer; '' only on input, meaning "place on top".

    interactive?: boolean

    Makes the element live. A press on a control (a[href], button, input, select, textarea, label, summary, editable content, audio/video with controls, iframe, or [data-fn-control]) goes to the control; the board ignores it. A press on any other part selects and moves the element like a note, so give it padding or a data-fn-drag area (it wins over an enclosing control). A selected element's resize and rotate handles win over controls. Host contenteditable content needs user-select: text. Synced: sanitize anything built from data.

    layerId: string
    link?: string

    Opens from the select tool; http(s), mailto or #fn:element=<id> only.

    locked: boolean
    parentId?: string

    Optional containing element. Parent and child share a layer.

    position: Point
    rotation?: number

    Rotation in radians (clockwise) about the element's center. Absent = 0 (unrotated). Applied to note/text/image/html/shape/stroke; ignored for arrows. Extension element definitions own their rotation semantics.

    size: Size
    transient?: boolean

    Host-owned element whose lifetime belongs to the embedding application, not the document. Transient elements are excluded from exported state and never sent to the sync hub; a loaded state may still carry the field, so it stays part of the persisted contract.

    type: "html"
    version: number

    Per-element revision: local edits bump it, remote edits carry the accepted value.