setRotation
Applies a rotation to the viewer.
The rotation is always relative to the initial model state.
Example
Usage
const rotation = 90;
viewer2d.setRotation(rotation);Parameters
rotation
Rotation to apply in degrees.
Type | Required |
|---|---|
Number | Yes |