Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
yomotsu committed Jan 28, 2023
1 parent 05ff164 commit ceb24ce
Show file tree
Hide file tree
Showing 11 changed files with 922 additions and 929 deletions.
1,501 changes: 749 additions & 752 deletions dist/CameraControls.d.ts

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions dist/EventDispatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
export type Listener = (event?: DispatcherEvent) => void;
export interface DispatcherEvent {
type: string;
[key: string]: any;
}
export declare class EventDispatcher {
private _listeners;
/**
* Adds the specified event listener.
* @param type event name
* @param listener handler function
* @category Methods
*/
addEventListener(type: string, listener: Listener): void;
/**
* Presence of the specified event listener.
* @param type event name
* @param listener handler function
* @category Methods
*/
hasEventListener(type: string, listener: Listener): boolean;
/**
* Removes the specified event listener
* @param type event name
* @param listener handler function
* @category Methods
*/
removeEventListener(type: string, listener: Listener): void;
/**
* Removes all event listeners
* @param type event name
* @category Methods
*/
removeAllEventListeners(type?: string): void;
/**
* Fire an event type.
* @param event DispatcherEvent
* @category Methods
*/
dispatchEvent(event: DispatcherEvent): void;
}
export type Listener = (event?: DispatcherEvent) => void;
export interface DispatcherEvent {
type: string;
[key: string]: any;
}
export declare class EventDispatcher {
private _listeners;
/**
* Adds the specified event listener.
* @param type event name
* @param listener handler function
* @category Methods
*/
addEventListener(type: string, listener: Listener): void;
/**
* Presence of the specified event listener.
* @param type event name
* @param listener handler function
* @category Methods
*/
hasEventListener(type: string, listener: Listener): boolean;
/**
* Removes the specified event listener
* @param type event name
* @param listener handler function
* @category Methods
*/
removeEventListener(type: string, listener: Listener): void;
/**
* Removes all event listeners
* @param type event name
* @category Methods
*/
removeAllEventListeners(type?: string): void;
/**
* Fire an event type.
* @param event DispatcherEvent
* @category Methods
*/
dispatchEvent(event: DispatcherEvent): void;
}
14 changes: 6 additions & 8 deletions dist/camera-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
}
}

const VERSION = '1.38.1'; // will be replaced with `version` in package.json during the build process.
const VERSION = '1.38.2'; // will be replaced with `version` in package.json during the build process.
const TOUCH_DOLLY_FACTOR = 1 / 8;
const isBrowser = typeof window !== 'undefined';
const isMac = isBrowser && /Mac/.test(navigator.platform);
Expand Down Expand Up @@ -1422,7 +1422,7 @@
* @returns Transition end promise
* @category Methods
*/
lookInDirection(x, y, z, enableTransition = false) {
lookInDirectionOf(x, y, z, enableTransition = false) {
const point = _v3A.set(x, y, z);
const direction = point.sub(this._targetEnd).normalize();
const position = direction.multiplyScalar(-this._sphericalEnd.radius);
Expand Down Expand Up @@ -2243,16 +2243,15 @@
*/
get dampingFactor() {
console.warn('.dampingFactor has been deprecated. use smoothTime (in seconds) instead.');
return this.smoothTime;
return 0;
}
/**
* backward compatible
* @deprecated use smoothTime (in seconds) instead
* @category Properties
*/
set dampingFactor(dampingFactor) {
set dampingFactor(_) {
console.warn('.dampingFactor has been deprecated. use smoothTime (in seconds) instead.');
this.smoothTime = dampingFactor;
}
/**
* backward compatible
Expand All @@ -2261,16 +2260,15 @@
*/
get draggingDampingFactor() {
console.warn('.draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.');
return this.draggingSmoothTime;
return 0;
}
/**
* backward compatible
* @deprecated use draggingSmoothTime (in seconds) instead
* @category Properties
*/
set draggingDampingFactor(draggingDampingFactor) {
set draggingDampingFactor(_) {
console.warn('.draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.');
this.draggingSmoothTime = draggingDampingFactor;
}
}
function createBoundingSphere(object3d, out) {
Expand Down
2 changes: 1 addition & 1 deletion dist/camera-controls.min.js

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions dist/camera-controls.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class EventDispatcher {
}
}

const VERSION = '1.38.1'; // will be replaced with `version` in package.json during the build process.
const VERSION = '1.38.2'; // will be replaced with `version` in package.json during the build process.
const TOUCH_DOLLY_FACTOR = 1 / 8;
const isBrowser = typeof window !== 'undefined';
const isMac = isBrowser && /Mac/.test(navigator.platform);
Expand Down Expand Up @@ -1416,7 +1416,7 @@ class CameraControls extends EventDispatcher {
* @returns Transition end promise
* @category Methods
*/
lookInDirection(x, y, z, enableTransition = false) {
lookInDirectionOf(x, y, z, enableTransition = false) {
const point = _v3A.set(x, y, z);
const direction = point.sub(this._targetEnd).normalize();
const position = direction.multiplyScalar(-this._sphericalEnd.radius);
Expand Down Expand Up @@ -2237,16 +2237,15 @@ class CameraControls extends EventDispatcher {
*/
get dampingFactor() {
console.warn('.dampingFactor has been deprecated. use smoothTime (in seconds) instead.');
return this.smoothTime;
return 0;
}
/**
* backward compatible
* @deprecated use smoothTime (in seconds) instead
* @category Properties
*/
set dampingFactor(dampingFactor) {
set dampingFactor(_) {
console.warn('.dampingFactor has been deprecated. use smoothTime (in seconds) instead.');
this.smoothTime = dampingFactor;
}
/**
* backward compatible
Expand All @@ -2255,16 +2254,15 @@ class CameraControls extends EventDispatcher {
*/
get draggingDampingFactor() {
console.warn('.draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.');
return this.draggingSmoothTime;
return 0;
}
/**
* backward compatible
* @deprecated use draggingSmoothTime (in seconds) instead
* @category Properties
*/
set draggingDampingFactor(draggingDampingFactor) {
set draggingDampingFactor(_) {
console.warn('.draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.');
this.draggingSmoothTime = draggingDampingFactor;
}
}
function createBoundingSphere(object3d, out) {
Expand Down
4 changes: 2 additions & 2 deletions dist/constants.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const PI_2: number;
export declare const PI_HALF: number;
export declare const PI_2: number;
export declare const PI_HALF: number;
4 changes: 2 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import { CameraControls } from './CameraControls';
export default CameraControls;
import { CameraControls } from './CameraControls';
export default CameraControls;
Loading

0 comments on commit ceb24ce

Please sign in to comment.