Class: AutorotateKeypointsPlugin

PSV.plugins.AutorotateKeypointsPlugin

new PSV.plugins.AutorotateKeypointsPlugin (psv, options)

Replaces the standard autorotate animation by a smooth transition between multiple points

Name Type Description
psv PSV.Viewer
options PSV.plugins.AutorotateKeypointsPlugin.Options optional

Extends

Members

id string readonly inherited overrides

Unique identifier of the plugin

keypoints

Reference to main controller

Methods

destroy () package overrides

init () package overrides

setKeypoints (keypoints)

Changes the keypoints

Name Type Description
keypoints Array.<PSV.plugins.AutorotateKeypointsPlugin.Keypoint>

Type Definitions

PSV.plugins.AutorotateKeypointsPlugin.Keypoint PSV.ExtendedPosition | string | PSV.plugins.AutorotateKeypointsPlugin.KeypointObject

Definition of keypoints for automatic rotation, can be a position object, a marker id or an keypoint object

PSV.plugins.AutorotateKeypointsPlugin.KeypointObject Object

Properties:
Name Type Argument Default Description
position PSV.ExtendedPosition <optional>
markerId string <optional>

use the position and tooltip of a marker

pause number <optional>
0

pause the animation when reaching this point, will display the tooltip if available

tooltip string | Object <optional>

PSV.plugins.AutorotateKeypointsPlugin.Options Object

Properties:
Name Type Argument Default Description
startFromClosest boolean <optional>
true

start from the closest keypoint instead of the first keypoint

keypoints Array.<PSV.plugins.AutorotateKeypointsPlugin.Keypoint>