Microsoft.Photosynth.JsInterop.Viewport class

Version 0.1 - Back to Photosynth Javascript API Documentation

Overview

The Viewport class provides access to various properties in the 3D scene.  NOTE: You cannot instantiate an instance of this class, instead you can access the Viewport class through the viewport3D property in the Microsoft.Photosynth.Viewer class.

Constructors

Signature Description

Properties

Name Type Description
aspectRatio Number The aspect ratio of the viewport
camera Microsoft.Photosynth.JsInterop.Camera Get the camera that is used to visualize the 3D scene.
enableRenderingEvent Boolean If set to true the rendering event will be fired. This is defaulted to false.
height Number The height of the 3D viewport in pixels.
width Number The width of the 3D viewport in pixels.

Methods

Name and Signature Return Type Description

Events

Name Description
rendering(viewport) Raised before the viewport renders its content. The viewport parameter is the Microsoft.Photosynth.JsInterop.Viewport instance that raised the event. NOTE: This will only be raised if the enableRenderingEvent property is set to true, by default that value is set to false.