P3d.in Embed API
    Preparing search index...

    Interface P3dEmbedApiOptions

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

    Properties

    hoverRate?: number

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

    onclick?: (data: P3dEmbedApiClick) => void

    Callback that triggers when user clicks inside the embed

    onhover?: (data: P3dEmbedApiPick) => void

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

    onload?: () => void

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

    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.