ViewerConfig: {
    adapter?: AdapterConstructor | [AdapterConstructor, any];
    canvasBackground?: string;
    caption?: string;
    container: HTMLElement | string;
    defaultPitch?: number | string;
    defaultYaw?: number | string;
    defaultZoomLvl?: number;
    description?: string;
    downloadName?: string;
    downloadUrl?: string;
    fisheye?: boolean | number;
    keyboard?:
        | boolean
        | "always"
        | "fullscreen"
        | Record<string, ACTIONS | ((viewer: Viewer) => void)>;
    keyboardActions?: Record<string, ACTIONS | ((viewer: Viewer, e: KeyboardEvent) => void)>;
    lang?: Record<string, string>;
    loadingImg?: string;
    loadingTxt?: string;
    maxFov?: number;
    minFov?: number;
    mousemove?: boolean;
    mousewheel?: boolean;
    mousewheelCtrlKey?: boolean;
    moveInertia?: boolean | number;
    moveSpeed?: number;
    navbar?: boolean | string | (string | NavbarCustomButton)[];
    panoData?: PanoData | PanoDataProvider;
    panorama?: any;
    plugins?: (PluginConstructor | [PluginConstructor, any])[];
    rendererParameters?: WebGLRendererParameters;
    requestHeaders?: Record<string, string> | ((url: string) => Record<string, string>);
    size?: CssSize;
    sphereCorrection?: SphereCorrection;
    touchmoveTwoFingers?: boolean;
    withCredentials?: boolean;
    zoomSpeed?: number;
}

Viewer configuration

Type declaration

  • Optionaladapter?: AdapterConstructor | [AdapterConstructor, any]
    equirectangular
    
  • OptionalcanvasBackground?: string
    '#000'
    
  • Optionalcaption?: string
    null
    
  • container: HTMLElement | string
  • OptionaldefaultPitch?: number | string
    0
    
  • OptionaldefaultYaw?: number | string
    0
    
  • OptionaldefaultZoomLvl?: number
    50
    
  • Optionaldescription?: string
    null
    
  • OptionaldownloadName?: string
    null
    
  • OptionaldownloadUrl?: string
    null
    
  • Optionalfisheye?: boolean | number
    false
    
  • Optionalkeyboard?:
        | boolean
        | "always"
        | "fullscreen"
        | Record<string, ACTIONS | ((viewer: Viewer) => void)>
  • OptionalkeyboardActions?: Record<string, ACTIONS | ((viewer: Viewer, e: KeyboardEvent) => void)>
  • Optionallang?: Record<string, string>
  • OptionalloadingImg?: string
    null
    
  • OptionalloadingTxt?: string
    'Loading...'
    
  • OptionalmaxFov?: number
    90
    
  • OptionalminFov?: number
    30
    
  • Optionalmousemove?: boolean
    true
    
  • Optionalmousewheel?: boolean
    true
    
  • OptionalmousewheelCtrlKey?: boolean
    false
    
  • OptionalmoveInertia?: boolean | number
    0.8
    
  • OptionalmoveSpeed?: number
    1
    
  • Optionalnavbar?: boolean | string | (string | NavbarCustomButton)[]
    'zoom move download description caption fullscreen'
    
  • OptionalpanoData?: PanoData | PanoDataProvider
  • Optionalpanorama?: any
  • Optionalplugins?: (PluginConstructor | [PluginConstructor, any])[]
  • OptionalrendererParameters?: WebGLRendererParameters
    '{ alpha: true, antialias: true }'
    
  • OptionalrequestHeaders?: Record<string, string> | ((url: string) => Record<string, string>)
  • Optionalsize?: CssSize

    container size

  • OptionalsphereCorrection?: SphereCorrection

    0,0,0

  • OptionaltouchmoveTwoFingers?: boolean
    false
    
  • OptionalwithCredentials?: boolean
    false
    
  • OptionalzoomSpeed?: number
    1