Skip to content

Commit

Permalink
Merge pull request #1794 from paireks/develop/MissingTypesForPointerC…
Browse files Browse the repository at this point in the history
…ircle

Add types for touchPointSelector
  • Loading branch information
xeolabs authored Jan 29, 2025
2 parents 306f063 + fd90a7c commit c643cc3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/plugins/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export * from "./ViewCullPlugin";
export * from "./XKTLoaderPlugin";
export * from "./WebIFCLoaderPlugin";
export * from "./XML3DLoaderPlugin";
export * from "./lib/ui";

export declare type ModelStats = {
sourceFormat: string;
Expand Down
12 changes: 12 additions & 0 deletions types/plugins/lib/ui/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Viewer } from "../../../viewer";
import { PointerCircle } from "../../../extras/PointerCircle";

type Cleanup = () => void;

type OnCancel = () => void;
type OnChange = () => void;
type OnCommit = () => void;

type Ray2WorldPos = (origin: number[], direction: number[]) => boolean | number[];

declare function touchPointSelector(viewer: Viewer, pointerCircle: PointerCircle, ray2WorldPos: Ray2WorldPos): (onCancel: OnCancel, onChange: OnChange, onCommit: OnCommit) => Cleanup;

0 comments on commit c643cc3

Please sign in to comment.