Skip to content

Commit

Permalink
Removed unwanted dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Fennec committed Feb 27, 2025
1 parent d5665b7 commit 03a52e6
Show file tree
Hide file tree
Showing 11 changed files with 434 additions and 720 deletions.
8 changes: 4 additions & 4 deletions dist/three-viewport-gizmo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { OrthographicCamera } from 'three';
import { PerspectiveCamera } from 'three';
import { Vector3 } from 'three';
import { WebGLRenderer } from 'three';
import { WebGPURenderer } from 'three/webgpu';

/**
* Configuration options for individual gizmo axes.
Expand Down Expand Up @@ -276,13 +277,12 @@ declare type GizmoOptionsFallback = DeepRequired<GizmoOptions> & {
* @extends Object3D
*/
export declare class ViewportGizmo extends Object3D<ViewportGizmoEventMap> {
type: string;
/** Whether the gizmo is currently active and responding to user input */
enabled: boolean;
/** The camera being controlled by this gizmo */
camera: OrthographicCamera | PerspectiveCamera;
/** The WebGLRenderer rendering the gizmo */
renderer: WebGLRenderer;
renderer: WebGLRenderer | WebGPURenderer;
/** The configuration options */
options: GizmoOptions;
/** The point around which the camera rotates */
Expand All @@ -304,14 +304,14 @@ export declare class ViewportGizmo extends Object3D<ViewportGizmoEventMap> {
private _viewport;
private _originalViewport;
private _originalScissor;
private _scene;
private _camera;
private _container;
private _domElement;
private _domRect;
private _dragging;
private _distance;
private _clock;
private _targetPosition;
private _targetQuaternion;
private _quaternionStart;
private _quaternionEnd;
Expand Down Expand Up @@ -412,7 +412,7 @@ export declare class ViewportGizmo extends Object3D<ViewportGizmoEventMap> {
* @param options.AXIS.hover.border.size - Hover border size
* @param options.AXIS.hover.border.color - Hover border color
*/
constructor(camera: PerspectiveCamera | OrthographicCamera, renderer: WebGLRenderer, options?: GizmoOptions);
constructor(camera: PerspectiveCamera | OrthographicCamera, renderer: WebGLRenderer | WebGPURenderer, options?: GizmoOptions);
/** Gets the current placement of the gizmo relative to its container. */
get placement(): GizmoOptionsFallback["placement"];
/**
Expand Down
Loading

0 comments on commit 03a52e6

Please sign in to comment.