Warning

Nightly releases are generated automatically from the latest source code and are intended for experimental purposes only. These builds may contain incomplete or untested features, bugs, or security vulnerabilities, and as such, are not for production use. Users should be aware that nightly releases may cause unexpected behavior, data loss, or system instability. Use of these releases is at the user's own risk, and it is advised to have adequate backups before testing. The software is provided as is with no guarantees or support.

AnnotationData

Type Alias AnnotationData

AnnotationData: {
    active: boolean;
    anchorPosition: [number, number, number] | Float32Array;
    explicitOffset: boolean;
    label: string;
    labelPosition: [number, number, number] | Float32Array;
    nodeID: number;
    transform:
        | [
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
        ]
        | Float32Array;
    trustedSource: boolean;
    visible: boolean;
}

AnnotationData defines the properties and content of an annotation.

Type declaration

  • active: boolean

    Determines whether the annotation is active or not.

  • anchorPosition: [number, number, number] | Float32Array

    Determines the annotation's anchor position.

    [0, 1, 0]
    
  • explicitOffset: boolean

    Determines whether an explicit offset should be used or not.

  • label: string

    The label of the annotation.

    "This is a great annotation!"
    
  • labelPosition: [number, number, number] | Float32Array

    Determines the annotation's label position.

    [0, 2, 0]
    
  • nodeID: number

    The ID of a node the annotation is linked to.

  • transform:
        | [
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
        ]
        | Float32Array

    Provides the transform of the annotation.

  • trustedSource: boolean

    Determines whether the annotation source is trusted or not.

  • visible: boolean

    Determines whether the annotation is visible or not.