Type Parameters

  • SP extends object = object

Constructors

Properties

off: <K extends keyof HostEvents>(event: K, listener: Function) => void = ...
on: <K extends keyof HostEvents>(
    event: K,
    listener: (data: HostEvents[K]) => void,
) => void = ...
once: <K extends keyof HostEvents>(
    event: K,
    listener?: (data: HostEvents[K]) => void,
) => Promise<HostEvents[K]> = ...

Methods

  • Closes the active configurator

    Returns void

  • Cleanes up internal event handlers

    Returns void

  • Export the current configuration as a custom format.

    These formats are dependant on the configurator and active configuration.

    Parameters

    Returns Promise<unknown>

  • Exports the active configuration as a gltf.

    Returns the url to the gltf.

    Expects a configuration to be active.

    Parameters

    Returns Promise<string>

  • Opens a configurator

    Parameters

    Returns Promise<void>

    Resolves when the configurator has been initialized. Rejects when the iframe could not load the specified url or when the configurator could not be initialized.