Viewer
    Preparing search index...

    Interface IHTMLElementAnchorData

    interface IHTMLElementAnchorData {
        convertedObject: { [key: string]: unknown };
        data: any;
        format: "image" | "text" | "custom";
        hideable: boolean;
        id: string;
        intersectionTarget: string | string[] | IBox | undefined;
        location: vec3;
        parentsUpdateVersions: { [key: string]: () => void };
        updateCallback: ((newVersion: string, oldVersion: string) => void) | null;
        updateCallbackConvertedObject:
            | ((newObj: unknown, oldObj: unknown, viewport: string) => void)
            | null;
        version: string;
        viewports: string[];
        clone(): IHTMLElementAnchorData;
        create(
            properties: { anchor: IHTMLElementAnchorData; parent: HTMLDivElement },
        ): void;
        createViewerHtmlElement(viewer: string): HTMLDivElement | null;
        getViewerHtmlElement(viewer: string): HTMLDivElement | null;
        update(properties: IHTMLElementAnchorUpdateProperties): void;
        updateVersion(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    convertedObject: { [key: string]: unknown }

    The converted object of the tree node.

    data: any
    format: "image" | "text" | "custom"
    hideable: boolean
    id: string

    The ID of the tree node data.

    intersectionTarget: string | string[] | IBox | undefined
    location: vec3
    parentsUpdateVersions: { [key: string]: () => void }

    The updateVersion functions of all parents of the tree node data.

    updateCallback: ((newVersion: string, oldVersion: string) => void) | null

    The update callback for the tree node data. This callback is called when the node is updated, e.g. when the version changes.

    updateCallbackConvertedObject:
        | ((newObj: unknown, oldObj: unknown, viewport: string) => void)
        | null

    The update callback for the converted object of the tree node.

    version: string

    The version of the tree node data. If the version changes, the node data will be marked for an update. A version change can be triggered via updateVersion.

    viewports: string[]

    Methods

    • Parameters

      • viewer: string

      Returns HTMLDivElement | null

    • Parameters

      • viewer: string

      Returns HTMLDivElement | null