/** * @import { CameraComponent } from '../../../framework/components/camera/component.js' * @import { Layer } from '../../../scene/layer.js' */ /** * The base class of gizmos that draw their own shape with handles that edit its size. They attach * no nodes: set the {@link position}, {@link rotation} and size, and apply edits on * {@link HandleGizmo.EVENT_HANDLEMOVE}, whose node is null. * * @category Gizmo */ export class ShapeGizmo extends HandleGizmo { /** * The world position of the center of the shape. * * @type {Vec3} */ position: Vec3; /** * The world rotation of the shape. * * @type {Quat} */ rotation: Quat; } import { HandleGizmo } from './handle-gizmo.js'; import { Vec3 } from '../../../core/math/vec3.js'; import { Quat } from '../../../core/math/quat.js';