MAIDR JavaScript API
    Preparing search index...

    Interface PointCloudAddressable

    Interface for point-cloud traces that can be asked where one of their layer's data points sits in their own navigation coordinates.

    The inverse of PointCloudHighlightable: that one reports which points the cursor is on, this one takes a point and answers with the cell to move to. A host that was handed pointIndices can therefore send one of them back -- the mark a sighted user clicked -- and the trace translates it out of data order into whatever it navigates by.

    interface PointCloudAddressable {
        positionOfDataIndex: (
            index: number,
        ) => { row: number; col: number } | null;
    }

    Implemented by

    Index

    Properties

    positionOfDataIndex: (index: number) => { row: number; col: number } | null

    The position to read a data point at.

    Type Declaration

      • (index: number): { row: number; col: number } | null
      • Parameters

        • index: number

          An index into the layer's data array

        Returns { row: number; col: number } | null

        The cell, or null when the index is not one the trace has