Getting Started
Use the 2D Viewer API to embed the 2D Viewer in your web applications.
Using jQuery? More information on using jQuery with the 2D Viewer here.
Include the 2D Viewer in your HTML file using a script tag, this will add the global bimsync object to the window object.
Create a div element for attaching a 2D Viewer instance to.
Set a callback function and then invoke the loadViewer2d method, the 2D Viewer is ready once callback invoked.
Provide the div element and an options object to the constructor method.
Call methods on the 2D Viewer instance to interact with the 2D Viewer.
Adjust the default behavior of the 2D Viewer by providing an options object when creating a 2D Viewer instance.
Name | Type | Default | Description |
---|---|---|---|
hoverSpaces | Boolean | false | Whether mouse hover highlights space below the cursor |
showViewpoint | Boolean | true | Sets viewpoint visibility |
selectColor | String | #a7f555 | Sets the CSS color of selected objects |