ProjectionPicker

ProjectionPicker是一个用于在透视投影和正交投影之间切换的单按钮小部件。
new ProjectionPicker(container, scene)
Parameters:
container ((Element | String)) 将包含该小部件的DOM元素或ID。
scene (Scene) 要使用的场景实例。
Example
// In HTML head, include a link to the ProjectionPicker.css stylesheet,
// and in the body, include: <div id="projectionPickerContainer"></div>
// Note: This code assumes you already have a Scene instance.

var projectionPicker = new bmgl.ProjectionPicker('projectionPickerContainer', scene);
Throws

Members

container : Element

获取父容器。

viewModel : ProjectionPickerViewModel

获取视图模型。

Methods

destroy()
销毁小部件。如果从布局中永久删除小部件,则应调用。
isDestroyed() → {Boolean}