Interface P3dEmbedApiOptions

interface P3dEmbedApiOptions {
    hoverRate?: number;
    onclick?: ((data) => void);
    onhover?: ((data) => void);
    onload?: (() => void);
    onready?: (() => void);
}

Properties

hoverRate?: number

Maximum rate in milliseconds that hover events are fired. Default: 100 ms

onclick?: ((data) => void)

Callback that triggers when user clicks inside the embed

Type declaration

onhover?: ((data) => void)

Callback that triggers when user moves (or "hovers") the pointer inside the embed. Fires at maximum 10 times per second

Type declaration

onload?: (() => void)

Callback that triggers whe model is finished loading and is displayed to the user

Type declaration

    • (): void
    • Returns void

onready?: (() => void)

Callback that triggers when embed api is ready to start communicating with the embed iframe. This however does not mean that the model has finished loading.

Type declaration

    • (): void
    • Returns void