Constructor a viewer.
Signature:
constructor(containerId: string, config?: {
isMobile?: boolean;
devicePixelRatio?: number;
initResize?: boolean;
}, width?: number, height?: number);
Parameter | Description |
---|---|
containerId | The DOM name of the container . |
config | Indicate if it is on mobile platform. |
width | |
height |