@webarkit/jsartoolkit-nft
    Preparing search index...

    Interface NFTTrackerWorker

    NFTTracker, relayed to a worker (D13).

    interface NFTTrackerWorker {
        cameraMatrix: Float64Array;
        addNFTTargets(
            sources: string[],
            opts?: AddTargetsOptions,
        ): Promise<TargetLoad[]>;
        configure(patch: NFTTrackerPatch): Promise<void>;
        dispose(): Promise<void>;
        process(
            frame: TrackerFrame,
            timestampMs: number,
        ): Promise<FrameResult | SkippedFrame>;
        projectionFor(viewport: Viewport, geometry?: FrameGeometry): Float64Array;
    }
    Index
    cameraMatrix: Float64Array

    The projection for the processing frame, as last sent by the worker.

    • Disposes the worker's tracker, then terminates the worker. Never rejects, and every call returns the same Promise, which settles once the worker is terminated.

      Returns Promise<void>

    • Transfers the frame to the worker (D6): afterwards the caller's buffer is empty. A data view that does not span its whole buffer, or a shared buffer, is copied instead, and the caller keeps its buffer. Never throws: an invalid frame rejects. A call made while another is in flight resolves { skipped: true } at once, and that frame is neither sent nor transferred (D13).

      Parameters

      Returns Promise<FrameResult | SkippedFrame>