Skip to content

Commit

Permalink
ViewHelper: Make label text and style configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Jun 21, 2024
1 parent a106e72 commit 2025cdb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions types/three/examples/jsm/helpers/ViewHelper.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { Camera, Object3D, Vector3, WebGLRenderer } from "three";

export class ViewHelper extends Object3D {
readonly isViewHelper: true;

animating: boolean;
center: Vector3;

readonly isViewHelper: true;
render: (renderer: WebGLRenderer) => void;
handleClick: (event: MouseEvent) => boolean;
setLabels: (labelX?: string, labelY?: string, labelZ?: string) => void;
setLabelStyle: (font?: string, color?: string, radius?: number) => void;
update: (delta: number) => void;
dispose: () => void;

constructor(camera: Camera, domElement: HTMLElement);

render(renderer: WebGLRenderer): void;
handleClick(event: MouseEvent): boolean;
update(delta: number): void;
dispose(): void;
}

0 comments on commit 2025cdb

Please sign in to comment.