---
title: 3D viewer
summary: Embedding the Viewer3d in your own page and driving it from JavaScript: switching models, the camera, navigation modes and walking, selection and colours, x-ray and the proximity fade, storeys and floor plans, hiding, section planes, measuring, the grid, DWG drawings, PDF floor plans aligned with a model, point clouds, geo mode, offline use and screenshots.
order: 30
languages: [javascript]
terms: [viewer, object-state-manager, model-manager, qid]
see-also: [tutorials/javascript-viewer, reference/viewer3d, explanation/geometry-and-the-viewers]
---

# 3D viewer

These guides are for developers who put the 3D viewer (`@bimworks/viewer3d`) in their own application. They assume the packages are installed ([[page:how-to/install/javascript]]) and that you have an API token or an auth token to create a client with; [[page:how-to/viewer3d/show-your-users-models]] shows how a page your users open gets its token without ever seeing the API token. The course [[page:tutorials/javascript-viewer]] builds a viewer step by step; the guides here each solve one task.

Two objects sit between your code and the viewer. The [[term:model-manager|ModelManager]] knows which model versions are loaded; the [[term:object-state-manager|ObjectStateManager]] holds the state of every object — visible, selected, coloured — and pushes it to every viewer connected to it. Most of what you do with a viewer you do through those two, addressing objects by [[term:qid|Qid]].

The settings the viewer accepts are listed on [[page:reference/viewer3d]], the default mouse and key bindings on [[page:reference/viewer3d/key-bindings]].
