Interface P3dEmbedApiClick

interface P3dEmbedApiClick {
    button: 0 | 1 | 2;
    coordinates?: {
        x: number;
        y: number;
        z: number;
    };
    material?: P3dMaterial;
    materialIndex?: number;
    object?: P3dObject;
    objectIndex?: number;
    status: "hit" | "miss";
}

Hierarchy (view full)

Properties

button: 0 | 1 | 2

Button of the click event

coordinates?: {
    x: number;
    y: number;
    z: number;
}

Hit coordinates in model space

Type declaration

  • x: number
  • y: number
  • z: number
material?: P3dMaterial

Material instance that cursor was on

materialIndex?: number

Index of the material that cursor was on

object?: P3dObject

P3dObject instance that cursor was on

objectIndex?: number

Index of the P3dObject that cursor was on

status: "hit" | "miss"

Determines if cursor event was over the model or not