Reference·JavaScript · @bimworks/viewercommonJavaScript

probeViewer3dEngine

Function in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Function

TypeScript#
function probeViewer3dEngine

Members#

Member Kind Description
probeViewer3dEngine Method The 3D viewer for this browser: Viewer3D-Next when WebGPU can run it, it has not failed on this adapter lately (recordViewer3dEngineFailure) and no rule of t…

probeViewer3dEngine#

TypeScript#
probeViewer3dEngine(options?: { policy?: Viewer3dEnginePolicy; timeoutMs?: number; version?: string | null }): Promise<Viewer3dEngineProbe>

The 3D viewer for this browser: Viewer3D-Next when WebGPU can run it, it has not failed on this adapter lately (recordViewer3dEngineFailure) and no rule of the policy says otherwise; else Viewer3D. The answer is also kept as the hint for the next page load (cachedViewer3dEngine).

Parameters#

Name Type Description
options { policy?: Viewer3dEnginePolicy; timeoutMs?: number; version?: string | null }