Camera
Programmatic control over the movement of the CAD camera.
All camera control methods are asynchronous and return a promise.
Use await
or .then
to handle the resolved value and ensure proper execution order.
returnToHomeView
Re-centers the camera on top of the center of the design
Usage
const library = await import('<script_url>');
const sdk = await library.load({ token: '<access_token>' });
const design = await sdk.design.load(designId);
sdk.camera.returnToHomeView();
Signature
returnToHomeView();
Returns
Promise<void>