@pmndrs/pointer-events
Advanced tools
Comparing version
import { Object3D } from 'three'; | ||
import { NativeEvent } from './event.js'; | ||
import { Intersection } from './index.js'; | ||
import { Pointer, PointerCapture } from './pointer.js'; | ||
import { Intersection } from './index.js'; | ||
export declare class CombinedPointer { | ||
@@ -6,0 +6,0 @@ private readonly enableMultiplePointers; |
import { BaseEvent, Face, Object3D, Quaternion, Ray, Vector2, Vector3 } from 'three'; | ||
import { HtmlEvent, Properties } from './html-event.js'; | ||
import { Intersection as ThreeIntersection } from './intersections/index.js'; | ||
import { Pointer } from './pointer.js'; | ||
import type { Camera, IntersectionEvent, Intersection } from '@react-three/fiber/dist/declarations/src/core/events.js'; | ||
import { HtmlEvent, Properties } from './html-event.js'; | ||
export type PointerEventsMap = { | ||
@@ -7,0 +7,0 @@ [Key in keyof PointerEventsHandlers as EventHandlerToEventName<Key>]-?: PointerEventsHandlers[Key]; |
import { Object3D, OrthographicCamera, PerspectiveCamera, Scene } from 'three'; | ||
import { GetCamera, PointerOptions } from './pointer.js'; | ||
import { NativeEvent } from './event.js'; | ||
import { IntersectionOptions } from './intersections/index.js'; | ||
import { GetCamera, PointerOptions } from './pointer.js'; | ||
export type ForwardablePointerEvent = { | ||
@@ -6,0 +6,0 @@ pointerId: number; |
@@ -1,5 +0,5 @@ | ||
import { Pointer } from './pointer.js'; | ||
import { PointerEvent } from './event.js'; | ||
import { ScreenRayIntersector } from './intersections/ray.js'; | ||
import { generateUniquePointerId } from './pointer/index.js'; | ||
import { Pointer } from './pointer.js'; | ||
function htmlEventToCoords(element, e, target) { | ||
@@ -6,0 +6,0 @@ if (!(e instanceof globalThis.MouseEvent)) { |
@@ -0,3 +1,3 @@ | ||
import type { AllowedPointerEvents, AllowedPointerEventsType } from './pointer.js'; | ||
import type { createStore } from '@react-three/fiber/dist/declarations/src/core/store.js'; | ||
import type { AllowedPointerEvents, AllowedPointerEventsType } from './pointer.js'; | ||
declare module 'three' { | ||
@@ -4,0 +4,0 @@ interface Object3D { |
import { Vector3, Object3D } from 'three'; | ||
import type { PointerCapture } from '../pointer.js'; | ||
import { Intersector } from './intersector.js'; | ||
import { Intersection, IntersectionOptions } from '../index.js'; | ||
import type { PointerCapture } from '../pointer.js'; | ||
export declare class LinesIntersector implements Intersector { | ||
@@ -6,0 +6,0 @@ private readonly space; |
import { Object3D, Sphere, Intersection as ThreeIntersection } from 'three'; | ||
import type { PointerCapture } from '../pointer.js'; | ||
import { Intersector } from './intersector.js'; | ||
import { Intersection, IntersectionOptions } from '../index.js'; | ||
import type { PointerCapture } from '../pointer.js'; | ||
export declare class SphereIntersector implements Intersector { | ||
@@ -6,0 +6,0 @@ private readonly space; |
import { Object3D, OrthographicCamera, PerspectiveCamera } from 'three'; | ||
import { NativeEvent, NativeWheelEvent } from './event.js'; | ||
import { Intersection } from './intersections/index.js'; | ||
import { NativeEvent, NativeWheelEvent } from './event.js'; | ||
import { Intersector } from './intersections/intersector.js'; | ||
@@ -5,0 +5,0 @@ declare const buttonsDownTimeKey: unique symbol; |
import { Object3D } from 'three'; | ||
import { IntersectionOptions } from '../intersections/index.js'; | ||
import { GetCamera, Pointer, PointerOptions } from '../pointer.js'; | ||
import { IntersectionOptions } from '../intersections/index.js'; | ||
export type GrabPointerOptions = { | ||
@@ -5,0 +5,0 @@ /** |
@@ -0,6 +1,6 @@ | ||
import { generateUniquePointerId } from './index.js'; | ||
import { SphereIntersector } from '../intersections/sphere.js'; | ||
import { Pointer } from '../pointer.js'; | ||
import { SphereIntersector } from '../intersections/sphere.js'; | ||
import { generateUniquePointerId } from './index.js'; | ||
export function createGrabPointer(getCamera, space, pointerState, options = {}, pointerType = 'grab') { | ||
return new Pointer(generateUniquePointerId(), pointerType, pointerState, new SphereIntersector(space, () => options.radius ?? 0.07, options), getCamera, undefined, undefined, undefined, options); | ||
} |
import { Object3D, Vector3 } from 'three'; | ||
import { IntersectionOptions } from '../intersections/index.js'; | ||
import { GetCamera, Pointer, PointerOptions } from '../pointer.js'; | ||
import { IntersectionOptions } from '../intersections/index.js'; | ||
export type LinesPointerOptions = { | ||
@@ -5,0 +5,0 @@ /** |
@@ -0,3 +1,3 @@ | ||
import { LinesIntersector } from '../intersections/index.js'; | ||
import { Pointer } from '../pointer.js'; | ||
import { LinesIntersector } from '../intersections/index.js'; | ||
import { generateUniquePointerId } from './index.js'; | ||
@@ -4,0 +4,0 @@ export function createLinesPointer(getCamera, space, pointerState, options = {}, pointerType = 'lines') { |
import { Object3D, Vector3 } from 'three'; | ||
import { IntersectionOptions } from '../intersections/index.js'; | ||
import { GetCamera, Pointer, PointerOptions } from '../pointer.js'; | ||
import { IntersectionOptions } from '../intersections/index.js'; | ||
export type RayPointerOptions = { | ||
@@ -5,0 +5,0 @@ /** |
@@ -0,3 +1,3 @@ | ||
import { RayIntersector } from '../intersections/index.js'; | ||
import { Pointer } from '../pointer.js'; | ||
import { RayIntersector } from '../intersections/index.js'; | ||
import { generateUniquePointerId } from './index.js'; | ||
@@ -4,0 +4,0 @@ export function createRayPointer(getCamera, space, pointerState, options = {}, pointerType = 'ray') { |
import { Object3D } from 'three'; | ||
import { IntersectionOptions } from '../intersections/index.js'; | ||
import { GetCamera, Pointer, PointerOptions } from '../pointer.js'; | ||
import { IntersectionOptions } from '../intersections/index.js'; | ||
export type TouchPointerOptions = { | ||
@@ -5,0 +5,0 @@ /** |
@@ -0,3 +1,3 @@ | ||
import { SphereIntersector } from '../intersections/index.js'; | ||
import { Pointer } from '../pointer.js'; | ||
import { SphereIntersector } from '../intersections/index.js'; | ||
import { generateUniquePointerId } from './index.js'; | ||
@@ -4,0 +4,0 @@ export function createTouchPointer(getCamera, space, pointerState, options = {}, pointerType = 'touch') { |
@@ -5,3 +5,3 @@ { | ||
"license": "SEE LICENSE IN LICENSE", | ||
"version": "6.6.16", | ||
"version": "6.6.17", | ||
"homepage": "https://github.com/pmndrs/xr", | ||
@@ -40,6 +40,6 @@ "author": "Bela Bohlender", | ||
"check:prettier": "prettier --check src", | ||
"check:eslint": "eslint 'src/**/*.ts'", | ||
"check:eslint": "eslint \"src/**/*.{ts,tsx}\"", | ||
"fix:prettier": "prettier --write src", | ||
"fix:eslint": "eslint 'src/**/*.ts' --fix" | ||
"fix:eslint": "eslint \"src/**/*.{ts,tsx}\" --fix" | ||
} | ||
} |
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
106749
0.01%