JavaScript Application Programming Interface (API) for AutoCAD
ContentsIndexHome
PreviousUpNext
Acad.Editor.CurrentViewport.pan Function

Autodesk.AutoCAD.js

JavaScript
function Acad.Editor.CurrentViewport.pan(angleX,angleY,animate);
Parameters 
Description 
angleX 
type double

angleY 
type double

animate 
is Boolean 

Use this function to pan the camera. During pan, the camera position and distance from position to target remains fixed; the camera target moves along the surface of a sphere described by these constraints.
The angleX and angleY parameters are in radians and correspond to angles traversed on this sphere along the cross product of the up vector and the eye vector (angleX) and along the up vector (angleY). The angleX component of the pan is performed before the angleY component.

Remarks
This function is not supported in Paper Space.

 

Links
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!