Microsoft.Photosynth.JsInterop.Viewport class

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.

Properties

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.