Interface MxtModularConfiguratorOptions

Hierarchy

  • MxtModularConfiguratorOptions

Properties

apiKey: string

private access key to spins

assetEnvironment: MxtAssetEnvironment

The environment to pull assets from

callbacks?: {
    onFullscreenEnter?: (() => void);
    onFullscreenExit?: (() => void);
}

Type declaration

  • Optional onFullscreenEnter?: (() => void)
      • (): void
      • Returns void

  • Optional onFullscreenExit?: (() => void)
      • (): void
      • Returns void

camera?: {
    allowPanning?: boolean;
    defaultAlpha?: number;
    defaultBeta?: number;
    embeddedReflectionCubeTextureUrls?: {
        nx: string;
        ny: string;
        nz: string;
        px: string;
        py: string;
        pz: string;
    };
    fieldOfView?: number;
    lighting?: Lighting;
    lowerAlphaLimit?: number;
    lowerBetaLimit?: number;
    upperAlphaLimit?: number;
    upperBetaLimit?: number;
}

Advanced camera options

Type declaration

  • Optional allowPanning?: boolean
  • Optional defaultAlpha?: number
  • Optional defaultBeta?: number
  • Optional embeddedReflectionCubeTextureUrls?: {
        nx: string;
        ny: string;
        nz: string;
        px: string;
        py: string;
        pz: string;
    }
    • nx: string
    • ny: string
    • nz: string
    • px: string
    • py: string
    • pz: string
  • Optional fieldOfView?: number
  • Optional lighting?: Lighting

    Lighting app config; only applicable when using spins in a stand-alone context; from within product config or other application, use manifest app config to set lighting config

  • Optional lowerAlphaLimit?: number
  • Optional lowerBetaLimit?: number
  • Optional upperAlphaLimit?: number
  • Optional upperBetaLimit?: number
customIcons?: {
    place?: MxtModularConfigPlacingIcons;
}

Type declaration

customText?: {
    [language: string]: any;
}

Type declaration

  • [language: string]: any
disableProgressiveLoad?: boolean

disable the progressive loading if true

element: HTMLElement

Element to place the spins inside of

fitToScreenMultiplier?: number

Multiplier; amount of space product takes up in screen by default; defaults to 1.2 (leaves 20% of space on edges).

font?: {
    color?: IColor3;
    family?: string;
    sizeBody?: string | number;
    sizeBodyLg?: string | number;
    sizeBodySm?: string | number;
    sizeBodyXs?: string | number;
    sizeHeader?: string | number;
    sizeHeaderLg?: string | number;
    sizeSubHeader?: string | number;
}

Type declaration

  • Optional color?: IColor3

    RGB values 0-255

  • Optional family?: string

    Reflects CSS font-family, assuming values are browser-supported or already imported

  • Optional sizeBody?: string | number
  • Optional sizeBodyLg?: string | number
  • Optional sizeBodySm?: string | number
  • Optional sizeBodyXs?: string | number
  • Optional sizeHeader?: string | number
  • Optional sizeHeaderLg?: string | number

    Number values are treated as pixels, otherwise as string unit values

  • Optional sizeSubHeader?: string | number
initialProjectCode?: string

Code to load into the scene on startup

loadModifiers?: IProductLoadModifierPlugin[]

provides client-specific way of modifying the load of a product

loadPaused?: boolean

If true, init will NOT start the renderer. Use this if you want to create the spin viewer prior to actually displaying it. Use .run() to start the renderer

logging?: LogLevel

Log level; defaults to WARN (3)

maxDistanceMultiplier?: number

Multiplier; How much you can zoom out past the initial zoom. Defaults to 2. A value of 1 would mean that the initial zoom distance is the farthest you can zoom out

menuId?: string

ID to match menu data; use this if you have multiple different categories of products and you need to specify which one

plugins?: IPlugin[]
pricingAndAvailability?: {
    hidePricing?: boolean;
    showAvailability?: boolean;
}

Type declaration

  • Optional hidePricing?: boolean
  • Optional showAvailability?: boolean
primaryColor?: IColor3

Primary color, rgb 0->255

productDetail?: {
    descriptionLineHeight?: number;
}

Type declaration

  • Optional descriptionLineHeight?: number
responsive?: {
    minDesktopWidth?: number;
}

Type declaration

  • Optional minDesktopWidth?: number
rotateDelta?: number

Rotate Delta - in radians; defaults to .3

Return the name to give the screenshot

Param

services?: {
    environment?: MSServiceEnvironment;
}

Type declaration

  • Optional environment?: MSServiceEnvironment
unitType?: UnitType

Unit type to display values in

zoomDelta?: number

Zoom Delta - in meters; defaults to .3

Methods

Generated using TypeDoc