-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compute nearest uv when pointer is captured
- Loading branch information
1 parent
1e78c7e
commit bfcef6d
Showing
11 changed files
with
208 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,44 @@ | ||
import type { Root } from '@react-three/fiber/dist/declarations/src/core/renderer.js' | ||
import type { AllowedPointerEvents, AllowedPointerEventsType } from './pointer.js' | ||
|
||
declare module 'three' { | ||
interface Object3D { | ||
__r3f?: { | ||
eventCount: number | ||
handlers: Record<string, ((e: any) => void) | undefined> | ||
root: Root['store'] | ||
} | ||
/** | ||
* undefined and true means the transformation is ready | ||
* false means transformation is not ready | ||
*/ | ||
transformReady?: boolean | ||
|
||
/** | ||
* @default parent.pointerEvents ?? this.defaultPointerEvents | ||
*/ | ||
pointerEvents?: AllowedPointerEvents | ||
/** | ||
* @default "listener" | ||
*/ | ||
defaultPointerEvents?: AllowedPointerEvents | ||
/** | ||
* @default "all" | ||
*/ | ||
pointerEventsType?: AllowedPointerEventsType | ||
/** | ||
* @default 0 | ||
* sorted by highest number first | ||
* (just like a higher renderOrder number will result in rendering over the previous - if depthTest is false) | ||
*/ | ||
pointerEventsOrder?: number | ||
isVoidObject?: boolean | ||
} | ||
} | ||
|
||
export * from './pointer.js' | ||
export * from './event.js' | ||
export * from './intersections/index.js' | ||
export * from './forward.js' | ||
export * from './pointer/index.js' | ||
export * from './combine.js' | ||
export { getClosestUV } from './utils.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.