add viewer.autoZoom to fit all objects into viewport.