/** * Draws the view frustum of each attached camera entity, with a triangle marking its up direction. * Handles drag the near and far clip planes and the field of view or orthographic height. The * camera viewing the gizmo and disabled entities are skipped, but a disabled camera component is * still drawn. * * ```javascript * const layer = Gizmo.createLayer(app, 'Overlays', undefined, true); * const gizmo = new CameraGizmo(cameraComponent, layer); * gizmo.attach([otherCameraEntity]); * ``` * * Relevant Engine API examples: * * - [Camera Gizmo](https://playcanvas.github.io/#/gizmos/camera) * * @category Gizmo */ export class CameraGizmo extends HandleGizmo { /** * Creates a new CameraGizmo object. * * @param {CameraComponent} camera - The camera component. * @param {Layer} layer - The render layer. * @example * const gizmo = new CameraGizmo(camera, layer); */ constructor(camera: CameraComponent, layer: Layer); /** * Places the frustum of a camera. * * @param {Entity} entity - The camera entity. * @private */ private _draw; } import { HandleGizmo } from './handle-gizmo.js'; import type { CameraComponent } from '../../../framework/components/camera/component.js'; import type { Layer } from '../../../scene/layer.js';