Class Vps

Primary interface for the AutoSync Vps library. Provides a complete API for Products visualization including:

  • Products data loading and management
  • Wheel and Tire configuration
  • Image rendering and export

The class can be instantiated multiple times via initVps function as long as a different element is passed each time.

Hierarchy

  • Vps

Constructors

  • Creates a new Vps instance

    Parameters

    • c: AppConfigInput

      Application configuration input

    Returns Vps

Methods

  • Gets a copy of the current tire data fetched from the API

    Returns

    Tire data response object

    Throws

    Error if no tire is loaded

    Returns TiresResponse

  • Gets a copy of the current wheel data fetched from the API

    Returns

    Wheel data response object

    Throws

    Error if no wheel is loaded

    Returns WheelsResponse

  • Transition to the next available angle

    Returns void

  • Transition to the previous available angle

    Returns void

  • Loads a tire by description

    Returns

    Promise resolving to success state

    Parameters

    • tireDesc: string

      Tire description

    Returns Promise<void>

  • Loads a tire by AutoSync tire ID

    Returns

    Promise resolving to success state

    Parameters

    • tireId: any

      AutoSync tire identifier

    Returns Promise<void>

  • Loads a tire by vendor part number

    Returns

    Promise resolving to success state

    Parameters

    • tirePn: string

      Tire part number

    Returns Promise<void>

  • Loads and processes tire data using the provided TiresResponse.

    Returns

    A promise that resolves to an array of void upon successful processing.

    Parameters

    • tireData: TiresResponse

      The response object containing tire-related data.

    Returns Promise<void>

  • Loads a wheel by description

    Returns

    Promise resolving to success state

    Parameters

    • wheelDesc: string

      Wheel description

    Returns Promise<void>

  • Loads a wheel by DT article number

    Returns

    Promise resolving to success state

    Parameters

    • dtArticleNumber: any

      DT article identifier

    Returns Promise<void>

  • Loads a wheel by AutoSync wheel ID

    Returns

    Promise resolving to success state

    Parameters

    • wheelId: any

      AutoSync wheel identifier

    Returns Promise<void>

  • Loads a wheel by vendor part number

    Returns

    Promise resolving to success state

    Parameters

    • wheelPn: string

      Wheel part number

    Returns Promise<void>

  • Loads and processes wheel data using the provided WheelsResponse.

    Returns

    A promise that resolves to an array of void upon successful processing.

    Parameters

    • wheelData: WheelsResponse

      The response object containing wheel-related data.

    Returns Promise<void>

  • Sets the container height

    Parameters

    • height: string

      Any valid CSS height value

    Returns void

  • Parameters

    • value: boolean

    Returns void

  • Parameters

    • value: boolean

    Returns void

  • Sets the angle view

    Parameters

    • angle: ViewAngle

      Any valid angle value

    Returns void

  • Parameters

    • value: AppConfigWidthAdjustmentType

    Returns void

  • Gets a URL representation of the current visualization

    Returns

    Data URL containing the image

    Returns string

  • Unloads the tire data by initiating a process with an undefined data parameter.

    Returns

    A promise that resolves when the unloading process is complete.

    Returns Promise<void>

  • Unloads the wheel data by initiating a process with an undefined data parameter.

    Returns

    A promise that resolves when the unloading process is complete.

    Returns Promise<void>

Generated using TypeDoc