Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IVisualizer

Hierarchy

  • IVisualizer

Index

Methods

Abstract addFavoriteScene

  • will add a scene to favorites will emit a "sceneAddedToFavorites" event

    Returns Promise<IFavoriteSceneList>

Abstract addProductToCart

  • addProductToCart(product: IProduct): void
  • will emit a "productAddedToCart" event

    Parameters

    Returns void

Abstract addProductToFavorites

Abstract displayFavoriteProduct

  • displayFavoriteProduct(__namedParameters: { applications: string[]; sku: string }): Promise<void>
  • will display product on each of the applications will emit a "productChanged" event after complete of each display

    Parameters

    • __namedParameters: { applications: string[]; sku: string }
      • applications: string[]
      • sku: string

    Returns Promise<void>

Abstract displayProduct

  • displayProduct(productSku: string, _applications: IApplication | string[] | string, animateToProduct?: undefined | false | true): Promise<void>
  • will set a product on a specific application will emit a "productChanged" event after complete

    Parameters

    • productSku: string
    • _applications: IApplication | string[] | string
    • Optional animateToProduct: undefined | false | true

    Returns Promise<void>

Abstract displaySceneFromFavorites

  • displaySceneFromFavorites(setId: string): Promise<void>
  • will display a saved scene will emit a "sceneDisplayed" event after complete

    Parameters

    • setId: string

    Returns Promise<void>

Abstract getApplicationsList

  • will return applications available on this experience

    Returns Array<IApplication>

Abstract getCurrentApplication

  • will return the current applications

    Returns IApplication | undefined

Abstract getCurrentFilters

Abstract getCurrentScene

  • will return the curren scene

    Returns IScene

Abstract getCurrentSearchText

  • getCurrentSearchText(): string
  • will return the current filters

    Returns string

Abstract getDisplayedProduct

  • will return the product displayed on an application in the current scene

    Parameters

    Returns IProduct | undefined

Abstract getDisplayedProducts

  • getDisplayedProducts(): Array<IProduct>
  • will return all displayed products in the current scene

    Returns Array<IProduct>

Abstract getFavoriteProducts

Abstract getFavoriteScenes

Abstract getFilters

Abstract getProductList

  • getProductList(): Array<IProduct> | undefined
  • will return products list according to the current application and filters

    Returns Array<IProduct> | undefined

Abstract getSceneList

  • getSceneList(): Array<IScene>
  • will return the scene list available in this experience

    Returns Array<IScene>

Abstract initAndLoad

  • initAndLoad(): Promise<void>
  • start and load the visualizer app, will be triggered automatically on [data-role="visualizer"] elements after complete will emit a "visualizerLoaded" event

    Returns Promise<void>

Abstract orderSample

  • will emit a "orderSample" event

    Parameters

    Returns void

Abstract removeFavoriteScene

  • will remove a scene from favorites will emit a "sceneRemovedFromFavorites" event

    Parameters

    • setId: string

    Returns IFavoriteSceneList

Abstract removeProductFromFavorites

  • will remove a product from favorites will emit a "productRemovedFromFavorites" event

    Parameters

    • productSku: string
    • application: string

    Returns IFavoriteProductList

Abstract setCurrentApplication

  • will set the current applications

    Parameters

    Returns Promise<IApplication | undefined>

Abstract setFavoriteProducts

Abstract setFavoriteScenes

  • set favorite scenes Accepts array of favorite scenes that was sent previously by Visualizer

    Parameters

    Returns any

Abstract setFilter

Abstract setScene

  • setScene(param: { displayDefaultApplication?: undefined | false | true; preventDefaultProducts?: undefined | false | true; preventEvent?: undefined | false | true; sceneId?: undefined | string }): Promise<void>
  • will set the current scene after complete will emit a "sceneLoaded" event

    Parameters

    • param: { displayDefaultApplication?: undefined | false | true; preventDefaultProducts?: undefined | false | true; preventEvent?: undefined | false | true; sceneId?: undefined | string }
      • Optional displayDefaultApplication?: undefined | false | true
      • Optional preventDefaultProducts?: undefined | false | true
      • Optional preventEvent?: undefined | false | true
      • Optional sceneId?: undefined | string

    Returns Promise<void>

Generated using TypeDoc