@aura3d/controls 1.5.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ControlVector3 } from "./NativeControlTypes";
1
+ import { ControlVector3 } from "./NativeControlTypes.js";
2
2
  export interface ThreeCompatControlEvent {
3
3
  readonly type: string;
4
4
  readonly delta?: ControlVector3;
@@ -1,5 +1,5 @@
1
- import type { ControlObject3DLike, Vector3Like } from "./NativeControlTypes";
2
- import { TransformControls } from "./TransformControls";
1
+ import type { ControlObject3DLike, Vector3Like } from "./NativeControlTypes.js";
2
+ import { TransformControls } from "./TransformControls.js";
3
3
  export interface DragControlsDeprecation {
4
4
  readonly status: "deprecated";
5
5
  readonly replacement: "@aura3d/input InteractionSystem + @aura3d/editor-runtime transform commands";
@@ -1,5 +1,5 @@
1
1
  import { type FirstPersonControlsOptions } from "@aura3d/input";
2
- import { FlyControls, type FlyCameraLike } from "./FlyControls";
2
+ import { FlyControls, type FlyCameraLike } from "./FlyControls.js";
3
3
  export type { FirstPersonControlsOptions };
4
4
  /**
5
5
  * First-person navigation delegated to `@aura3d/input`.
@@ -1,6 +1,6 @@
1
1
  import { InputSnapshot, type EditorFlyControlsOptions } from "@aura3d/input";
2
- import { type ThreeCompatControlState } from "./ControlState";
3
- import type { Vector3Like } from "./NativeControlTypes";
2
+ import { type ThreeCompatControlState } from "./ControlState.js";
3
+ import type { Vector3Like } from "./NativeControlTypes.js";
4
4
  export interface FlyCameraLike {
5
5
  readonly position: Vector3Like;
6
6
  readonly rotation?: Vector3Like;
@@ -1,8 +1,8 @@
1
1
  import { InputSnapshot } from "@aura3d/input";
2
- import { FlyControls } from "./FlyControls";
3
- import { OrbitControls } from "./OrbitControls";
4
- import { Picking, type PickingOptions, type PickingReport, type ThreeCompatPickResult } from "./Picking";
5
- import { type ControlObject3DLike, type Vector3Like } from "./NativeControlTypes";
2
+ import { FlyControls } from "./FlyControls.js";
3
+ import { OrbitControls } from "./OrbitControls.js";
4
+ import { Picking, type PickingOptions, type PickingReport, type ThreeCompatPickResult } from "./Picking.js";
5
+ import { type ControlObject3DLike, type Vector3Like } from "./NativeControlTypes.js";
6
6
  export type InteractionControlMode = "orbit" | "fly";
7
7
  export type InteractionControlsEventType = "mode-change" | "hover-enter" | "hover-exit" | "pick" | "hotspot-click";
8
8
  export interface InteractionRay {
@@ -1,6 +1,6 @@
1
1
  import { InputSnapshot } from "@aura3d/input";
2
- import { OrbitControls } from "./OrbitControls";
3
- import type { OrbitCameraLike, OrbitControlsOptions } from "./OrbitControls";
2
+ import { OrbitControls } from "./OrbitControls.js";
3
+ import type { OrbitCameraLike, OrbitControlsOptions } from "./OrbitControls.js";
4
4
  export declare class MapControls extends OrbitControls {
5
5
  readonly screenSpacePanning = false;
6
6
  readonly hasExternalCamera: boolean;
@@ -1,6 +1,6 @@
1
1
  import { InputSnapshot, type OrbitControlsOptions } from "@aura3d/input";
2
- import { type ThreeCompatControlState } from "./ControlState";
3
- import type { Vector3Like } from "./NativeControlTypes";
2
+ import { type ThreeCompatControlState } from "./ControlState.js";
3
+ import type { Vector3Like } from "./NativeControlTypes.js";
4
4
  export type { OrbitControlsOptions };
5
5
  export interface OrbitCameraLike {
6
6
  position: Vector3Like;
package/dist/Picking.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ControlVector3, type ControlObject3DLike, type ControlPickMetadata, type Vector3Like } from "./NativeControlTypes";
1
+ import { ControlVector3, type ControlObject3DLike, type ControlPickMetadata, type Vector3Like } from "./NativeControlTypes.js";
2
2
  export interface ThreeCompatPickResult {
3
3
  readonly object: ControlObject3DLike;
4
4
  readonly distance: number;
@@ -1,5 +1,5 @@
1
- import { type PickingOptions, type PickingReport, type ThreeCompatPickResult } from "./Picking";
2
- import { type ControlObject3DLike, type ControlPickMetadata, type Vector3Like } from "./NativeControlTypes";
1
+ import { type PickingOptions, type PickingReport, type ThreeCompatPickResult } from "./Picking.js";
2
+ import { type ControlObject3DLike, type ControlPickMetadata, type Vector3Like } from "./NativeControlTypes.js";
3
3
  export type PickingAnnotationKind = "hotspot" | "label" | "district" | "building" | "robot" | "entity";
4
4
  export type PickingAnnotationSource = "imported-gltf" | "procedural" | "screen-space";
5
5
  export type PickingAnnotationHitPolicy = "nearest" | "priority";
@@ -1,6 +1,6 @@
1
1
  import { type FirstPersonControlsOptions } from "@aura3d/input";
2
- import { FirstPersonControls } from "./FirstPersonControls";
3
- import type { FlyCameraLike } from "./FlyControls";
2
+ import { FirstPersonControls } from "./FirstPersonControls.js";
3
+ import type { FlyCameraLike } from "./FlyControls.js";
4
4
  /**
5
5
  * Pointer-lock navigation delegated to `@aura3d/input`. `lock()` and
6
6
  * `unlock()` gate both snapshot updates and compatibility `look()` deltas.
@@ -1,4 +1,4 @@
1
- import type { ControlObject3DLike } from "./NativeControlTypes";
1
+ import type { ControlObject3DLike } from "./NativeControlTypes.js";
2
2
  export interface SelectionManagerChange {
3
3
  readonly previous: readonly ControlObject3DLike[];
4
4
  readonly current: readonly ControlObject3DLike[];
@@ -1,4 +1,4 @@
1
- import { OrbitControls } from "./OrbitControls";
1
+ import { OrbitControls } from "./OrbitControls.js";
2
2
  export type TrackballKey = "ArrowUp" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "KeyQ" | "KeyE" | "NumpadAdd" | "NumpadSubtract" | "+" | "-" | "=" | "_";
3
3
  export declare class TrackballControls extends OrbitControls {
4
4
  enableDamping: boolean;
@@ -1,4 +1,4 @@
1
- import type { ControlObject3DLike, Vector3Like } from "./NativeControlTypes";
1
+ import type { ControlObject3DLike, Vector3Like } from "./NativeControlTypes.js";
2
2
  export type TransformControlMode = "translate" | "rotate" | "scale";
3
3
  export type TransformControlSpace = "world" | "local";
4
4
  export type TransformControlHandle = "x" | "y" | "z" | "xy" | "xz" | "yz" | "uniform";
package/dist/index.d.ts CHANGED
@@ -1,26 +1,26 @@
1
- export { OrbitControls } from "./OrbitControls";
2
- export type { OrbitCameraLike, OrbitControlsOptions } from "./OrbitControls";
3
- export { TrackballControls } from "./TrackballControls";
4
- export { FlyControls } from "./FlyControls";
5
- export type { FlyCameraLike, FlyControlsOptions } from "./FlyControls";
6
- export { FirstPersonControls } from "./FirstPersonControls";
7
- export type { FirstPersonControlsOptions } from "./FirstPersonControls";
8
- export { MapControls } from "./MapControls";
9
- export { PointerLockControls } from "./PointerLockControls";
10
- export { DRAG_CONTROLS_DEPRECATION, DragControls } from "./DragControls";
11
- export type { DragControlsDeprecation, DragControlsOptions } from "./DragControls";
12
- export { TransformControls } from "./TransformControls";
13
- export type { TransformControlDragUpdate, TransformControlHandle, TransformControlHandleGeometry, TransformControlMode, TransformControlPick, TransformControlRay, TransformControlSnapSettings, TransformControlSpace, TransformControlsOptions } from "./TransformControls";
14
- export { SelectionManager } from "./SelectionManager";
15
- export type { SelectionManagerChange, SelectionManagerListener } from "./SelectionManager";
16
- export { InteractionControls } from "./InteractionControls";
17
- export type { HotspotHandler, InteractionControlMode, InteractionControlsEvent, InteractionControlsEventType, InteractionControlsListener, InteractionControlsOptions, InteractionControlsUpdate, InteractionRay, InteractionRayProvider, InteractionRootProvider } from "./InteractionControls";
18
- export { Picking } from "./Picking";
19
- export type { PickingDiagnostics, PickingOptions, PickingReport, ThreeCompatPickResult } from "./Picking";
20
- export { annotationFromPickHit, createDistrictPickingAnnotations, createEntityPickingAnnotations, createImportedGlbHotspotAnnotations, createPickingAnnotationObject, createPickingAnnotationRoot, createRobotPickingAnnotations, pickAnnotation, pickScreenSpaceAnnotation } from "./PickingAnnotations";
21
- export type { BuildingPickingDescriptor, DistrictPickingDescriptor, EntityPickingDescriptor, ImportedGlbHotspotDescriptor, PickingAnnotation, PickingAnnotationHitPolicy, PickingAnnotationKind, PickingAnnotationObject, PickingAnnotationOptions, PickingAnnotationReport, PickingAnnotationRoot, PickingAnnotationSource, ScreenPickingAnnotation, ScreenPickingHit, ScreenPickingOptions, ScreenPickingReport } from "./PickingAnnotations";
22
- export { ControlVector3 } from "./NativeControlTypes";
23
- export type { ControlObject3DLike, ControlPickMetadata, Vector3Like } from "./NativeControlTypes";
24
- export { createDefaultControlState } from "./ControlState";
25
- export type { ThreeCompatControlEvent, ThreeCompatControlState } from "./ControlState";
1
+ export { OrbitControls } from "./OrbitControls.js";
2
+ export type { OrbitCameraLike, OrbitControlsOptions } from "./OrbitControls.js";
3
+ export { TrackballControls } from "./TrackballControls.js";
4
+ export { FlyControls } from "./FlyControls.js";
5
+ export type { FlyCameraLike, FlyControlsOptions } from "./FlyControls.js";
6
+ export { FirstPersonControls } from "./FirstPersonControls.js";
7
+ export type { FirstPersonControlsOptions } from "./FirstPersonControls.js";
8
+ export { MapControls } from "./MapControls.js";
9
+ export { PointerLockControls } from "./PointerLockControls.js";
10
+ export { DRAG_CONTROLS_DEPRECATION, DragControls } from "./DragControls.js";
11
+ export type { DragControlsDeprecation, DragControlsOptions } from "./DragControls.js";
12
+ export { TransformControls } from "./TransformControls.js";
13
+ export type { TransformControlDragUpdate, TransformControlHandle, TransformControlHandleGeometry, TransformControlMode, TransformControlPick, TransformControlRay, TransformControlSnapSettings, TransformControlSpace, TransformControlsOptions } from "./TransformControls.js";
14
+ export { SelectionManager } from "./SelectionManager.js";
15
+ export type { SelectionManagerChange, SelectionManagerListener } from "./SelectionManager.js";
16
+ export { InteractionControls } from "./InteractionControls.js";
17
+ export type { HotspotHandler, InteractionControlMode, InteractionControlsEvent, InteractionControlsEventType, InteractionControlsListener, InteractionControlsOptions, InteractionControlsUpdate, InteractionRay, InteractionRayProvider, InteractionRootProvider } from "./InteractionControls.js";
18
+ export { Picking } from "./Picking.js";
19
+ export type { PickingDiagnostics, PickingOptions, PickingReport, ThreeCompatPickResult } from "./Picking.js";
20
+ export { annotationFromPickHit, createDistrictPickingAnnotations, createEntityPickingAnnotations, createImportedGlbHotspotAnnotations, createPickingAnnotationObject, createPickingAnnotationRoot, createRobotPickingAnnotations, pickAnnotation, pickScreenSpaceAnnotation } from "./PickingAnnotations.js";
21
+ export type { BuildingPickingDescriptor, DistrictPickingDescriptor, EntityPickingDescriptor, ImportedGlbHotspotDescriptor, PickingAnnotation, PickingAnnotationHitPolicy, PickingAnnotationKind, PickingAnnotationObject, PickingAnnotationOptions, PickingAnnotationReport, PickingAnnotationRoot, PickingAnnotationSource, ScreenPickingAnnotation, ScreenPickingHit, ScreenPickingOptions, ScreenPickingReport } from "./PickingAnnotations.js";
22
+ export { ControlVector3 } from "./NativeControlTypes.js";
23
+ export type { ControlObject3DLike, ControlPickMetadata, Vector3Like } from "./NativeControlTypes.js";
24
+ export { createDefaultControlState } from "./ControlState.js";
25
+ export type { ThreeCompatControlEvent, ThreeCompatControlState } from "./ControlState.js";
26
26
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aura3d/controls",
3
- "version": "1.5.2",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@aura3d/input": "1.5.2"
14
+ "@aura3d/input": "2.0.1"
15
15
  },
16
16
  "description": "Orbit, trackball, fly, first-person, map, pointer-lock, drag, transform, picking, hotspot, and selection controls for Aura3D.",
17
17
  "keywords": [