Methods
View

lookAtBoundingBox

adjusts the viewbox to the provided bounding box example usage const boundingbox = { min { x 0, y 0 }, max { x 10, y 10 }, }; const options = { expand 10, retainstoreys true, }; viewer2d lookatboundingbox(boundingbox, options); parameters boundingbox bounding box to look at type required box2 docid 30exznfonc0xa5glako4z or box3 docid\ jffhx6zgbamwxgmvf z r yes options options for looking at the bounding box type required object no properties default value for retainstoreys is false when the bounding box includes a z coordinate and true when a z coordinate isn't included in the bounding box name type required description expand number or vector2 docid\ hfhnmbfsrrrisube9wggy no expand the view in meters surrounding the objects retainstoreys boolean no keep current storeys