@3dsource/metabox-front-api
    Preparing search index...

    Interface FromMetaboxMessagePayloads

    Maps event names received from the Metabox iframe to their typed payloads. Used by Communicator.addEventListener to provide type-safe event subscriptions.

    Message format for MetaBox communication protocol. Wraps data for transmission between API and MetaBox.

    Payload type map for all incoming event types. Defines the data shape for each event name (configuratorDataUpdated, screenshotReady, viewportReady, etc.). Essential TypeScript reference for properly typing event handlers.

    Use as TypeScript type reference: api.addEventListener('configuratorDataUpdated', (data: FromMetaboxMessagePayloads['configuratorDataUpdated']) => {...}). Key events and their types: configuratorDataUpdated→ConfiguratorEnvelope, screenshotReady→string|null, viewportReady→boolean, showcaseStatusChanged→ShowCaseStatus.

    interface FromMetaboxMessagePayloads {
        configuratorDataUpdated: ConfiguratorEnvelope;
        dataChannelConnected: boolean;
        ecomConfiguratorDataUpdated: EcomConfigurator;
        getCameraResult: CameraCommandPayload;
        screenshotReady: string | null;
        showcaseStatusChanged: ShowCaseStatus;
        statusMessageChanged: string | null;
        videoResolutionChanged: VideoResolution;
        viewportReady: boolean;
    }
    Index

    Properties

    configuratorDataUpdated: ConfiguratorEnvelope

    Dispatches every time the configurator data is updated. I.e., when the user changes the configuration. (Material, Product, Environment)

    dataChannelConnected: boolean

    Dispatches every time when the configurator connected/disconnected with Unreal Engine.

    ecomConfiguratorDataUpdated: EcomConfigurator

    Dispatches every time the ecom configurator data is updated (label, endpointUrl).

    getCameraResult: CameraCommandPayload

    Dispatches every time when the User sends get camera command new GetCamera() command.

    screenshotReady: string | null

    Dispatches every time when Unreal is sending an ordered render with a new GetScreenshot() command.

    showcaseStatusChanged: ShowCaseStatus

    Dispatches every time when while the configurator loads. Shows showcase status information on a scene.

    statusMessageChanged: string | null

    Dispatches at the moment while the configurator loads. Shows status information.

    videoResolutionChanged: VideoResolution

    Dispatches every time when Unreal is changing its video stream size.

    viewportReady: boolean

    Dispatches every time when the Unreal Viewport is visible/hidden.