Viewer.(constructor)

Constructor a viewer.

Signature:

constructor(containerId: string, config?: {
        isMobile?: boolean;
        devicePixelRatio?: number;
        initResize?: boolean;
    }, width?: number, height?: number);

Parameters

ParameterDescription
containerIdThe DOM name of the container
.
configIndicate if it is on mobile platform.
width
height