TransformEditor

new IonSdkMeasurements.TransformEditor(options)

A tool for editing the transform of an object
Name Type Description
options Object An object with the following properties
Name Type Default Description
container Element
scene Scene The scene
transform Matrix4 The initial transform of the primitive that needs positioning
boundingSphere BoundingSphere The bounding sphere of the primitive that needs positioning
pixelSize Number 100 optional The desired size of the transformation widget in pixels. Set this to zero to disable screen space scaling.
maximumSizeInMeters Number Infinity optional The maximum size of the transformation widget in meters. Set this to Infinity for no limit.

Members

readonly container : Element

Gets the parent container.

readonly viewModel : TransformEditorViewModel

Gets the view model.

Methods

destroy()

Destroys the widget. Should be called if permanently removing the widget from layout.

isDestroyed()Boolean

Returns:
true if the object has been destroyed, false otherwise.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.