|
@@ -2510,237 +2510,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class Animatable {
|
|
|
- target: any;
|
|
|
- fromFrame: number;
|
|
|
- toFrame: number;
|
|
|
- loopAnimation: boolean;
|
|
|
- speedRatio: number;
|
|
|
- onAnimationEnd: any;
|
|
|
- private _localDelayOffset;
|
|
|
- private _pausedDelay;
|
|
|
- private _animations;
|
|
|
- private _paused;
|
|
|
- private _scene;
|
|
|
- animationStarted: boolean;
|
|
|
- constructor(scene: Scene, target: any, fromFrame?: number, toFrame?: number, loopAnimation?: boolean, speedRatio?: number, onAnimationEnd?: any, animations?: any);
|
|
|
- getAnimations(): Animation[];
|
|
|
- appendAnimations(target: any, animations: Animation[]): void;
|
|
|
- getAnimationByTargetProperty(property: string): Animation;
|
|
|
- reset(): void;
|
|
|
- enableBlending(blendingSpeed: number): void;
|
|
|
- disableBlending(): void;
|
|
|
- goToFrame(frame: number): void;
|
|
|
- pause(): void;
|
|
|
- restart(): void;
|
|
|
- stop(animationName?: string): void;
|
|
|
- _animate(delay: number): boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class AnimationRange {
|
|
|
- name: string;
|
|
|
- from: number;
|
|
|
- to: number;
|
|
|
- constructor(name: string, from: number, to: number);
|
|
|
- clone(): AnimationRange;
|
|
|
- }
|
|
|
- /**
|
|
|
- * Composed of a frame, and an action function
|
|
|
- */
|
|
|
- class AnimationEvent {
|
|
|
- frame: number;
|
|
|
- action: () => void;
|
|
|
- onlyOnce: boolean;
|
|
|
- isDone: boolean;
|
|
|
- constructor(frame: number, action: () => void, onlyOnce?: boolean);
|
|
|
- }
|
|
|
- class PathCursor {
|
|
|
- private path;
|
|
|
- private _onchange;
|
|
|
- value: number;
|
|
|
- animations: Animation[];
|
|
|
- constructor(path: Path2);
|
|
|
- getPoint(): Vector3;
|
|
|
- moveAhead(step?: number): PathCursor;
|
|
|
- moveBack(step?: number): PathCursor;
|
|
|
- move(step: number): PathCursor;
|
|
|
- private ensureLimits();
|
|
|
- private markAsDirty(propertyName);
|
|
|
- private raiseOnChange();
|
|
|
- onchange(f: (cursor: PathCursor) => void): PathCursor;
|
|
|
- }
|
|
|
- class Animation {
|
|
|
- name: string;
|
|
|
- targetProperty: string;
|
|
|
- framePerSecond: number;
|
|
|
- dataType: number;
|
|
|
- loopMode: number;
|
|
|
- enableBlending: boolean;
|
|
|
- private _keys;
|
|
|
- private _offsetsCache;
|
|
|
- private _highLimitsCache;
|
|
|
- private _stopped;
|
|
|
- _target: any;
|
|
|
- private _blendingFactor;
|
|
|
- private _easingFunction;
|
|
|
- private _events;
|
|
|
- targetPropertyPath: string[];
|
|
|
- currentFrame: number;
|
|
|
- allowMatricesInterpolation: boolean;
|
|
|
- blendingSpeed: number;
|
|
|
- private _originalBlendValue;
|
|
|
- private _ranges;
|
|
|
- static _PrepareAnimation(name: string, targetProperty: string, framePerSecond: number, totalFrame: number, from: any, to: any, loopMode?: number, easingFunction?: EasingFunction): Animation;
|
|
|
- static CreateAndStartAnimation(name: string, node: Node, targetProperty: string, framePerSecond: number, totalFrame: number, from: any, to: any, loopMode?: number, easingFunction?: EasingFunction, onAnimationEnd?: () => void): Animatable;
|
|
|
- static CreateMergeAndStartAnimation(name: string, node: Node, targetProperty: string, framePerSecond: number, totalFrame: number, from: any, to: any, loopMode?: number, easingFunction?: EasingFunction, onAnimationEnd?: () => void): Animatable;
|
|
|
- constructor(name: string, targetProperty: string, framePerSecond: number, dataType: number, loopMode?: number, enableBlending?: boolean);
|
|
|
- /**
|
|
|
- * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
|
|
|
- */
|
|
|
- toString(fullDetails?: boolean): string;
|
|
|
- /**
|
|
|
- * Add an event to this animation.
|
|
|
- */
|
|
|
- addEvent(event: AnimationEvent): void;
|
|
|
- /**
|
|
|
- * Remove all events found at the given frame
|
|
|
- * @param frame
|
|
|
- */
|
|
|
- removeEvents(frame: number): void;
|
|
|
- createRange(name: string, from: number, to: number): void;
|
|
|
- deleteRange(name: string, deleteFrames?: boolean): void;
|
|
|
- getRange(name: string): AnimationRange;
|
|
|
- reset(): void;
|
|
|
- isStopped(): boolean;
|
|
|
- getKeys(): Array<{
|
|
|
- frame: number;
|
|
|
- value: any;
|
|
|
- }>;
|
|
|
- getHighestFrame(): number;
|
|
|
- getEasingFunction(): IEasingFunction;
|
|
|
- setEasingFunction(easingFunction: EasingFunction): void;
|
|
|
- floatInterpolateFunction(startValue: number, endValue: number, gradient: number): number;
|
|
|
- floatInterpolateFunctionWithTangents(startValue: number, outTangent: number, endValue: number, inTangent: number, gradient: number): number;
|
|
|
- quaternionInterpolateFunction(startValue: Quaternion, endValue: Quaternion, gradient: number): Quaternion;
|
|
|
- quaternionInterpolateFunctionWithTangents(startValue: Quaternion, outTangent: Quaternion, endValue: Quaternion, inTangent: Quaternion, gradient: number): Quaternion;
|
|
|
- vector3InterpolateFunction(startValue: Vector3, endValue: Vector3, gradient: number): Vector3;
|
|
|
- vector3InterpolateFunctionWithTangents(startValue: Vector3, outTangent: Vector3, endValue: Vector3, inTangent: Vector3, gradient: number): Vector3;
|
|
|
- vector2InterpolateFunction(startValue: Vector2, endValue: Vector2, gradient: number): Vector2;
|
|
|
- vector2InterpolateFunctionWithTangents(startValue: Vector2, outTangent: Vector2, endValue: Vector2, inTangent: Vector2, gradient: number): Vector2;
|
|
|
- sizeInterpolateFunction(startValue: Size, endValue: Size, gradient: number): Size;
|
|
|
- color3InterpolateFunction(startValue: Color3, endValue: Color3, gradient: number): Color3;
|
|
|
- matrixInterpolateFunction(startValue: Matrix, endValue: Matrix, gradient: number): Matrix;
|
|
|
- clone(): Animation;
|
|
|
- setKeys(values: Array<{
|
|
|
- frame: number;
|
|
|
- value: any;
|
|
|
- }>): void;
|
|
|
- private _getKeyValue(value);
|
|
|
- private _interpolate(currentFrame, repeatCount, loopMode, offsetValue?, highLimitValue?);
|
|
|
- setValue(currentValue: any, blend?: boolean): void;
|
|
|
- goToFrame(frame: number): void;
|
|
|
- animate(delay: number, from: number, to: number, loop: boolean, speedRatio: number, blend?: boolean): boolean;
|
|
|
- serialize(): any;
|
|
|
- private static _ANIMATIONTYPE_FLOAT;
|
|
|
- private static _ANIMATIONTYPE_VECTOR3;
|
|
|
- private static _ANIMATIONTYPE_QUATERNION;
|
|
|
- private static _ANIMATIONTYPE_MATRIX;
|
|
|
- private static _ANIMATIONTYPE_COLOR3;
|
|
|
- private static _ANIMATIONTYPE_VECTOR2;
|
|
|
- private static _ANIMATIONTYPE_SIZE;
|
|
|
- private static _ANIMATIONLOOPMODE_RELATIVE;
|
|
|
- private static _ANIMATIONLOOPMODE_CYCLE;
|
|
|
- private static _ANIMATIONLOOPMODE_CONSTANT;
|
|
|
- static readonly ANIMATIONTYPE_FLOAT: number;
|
|
|
- static readonly ANIMATIONTYPE_VECTOR3: number;
|
|
|
- static readonly ANIMATIONTYPE_VECTOR2: number;
|
|
|
- static readonly ANIMATIONTYPE_SIZE: number;
|
|
|
- static readonly ANIMATIONTYPE_QUATERNION: number;
|
|
|
- static readonly ANIMATIONTYPE_MATRIX: number;
|
|
|
- static readonly ANIMATIONTYPE_COLOR3: number;
|
|
|
- static readonly ANIMATIONLOOPMODE_RELATIVE: number;
|
|
|
- static readonly ANIMATIONLOOPMODE_CYCLE: number;
|
|
|
- static readonly ANIMATIONLOOPMODE_CONSTANT: number;
|
|
|
- static Parse(parsedAnimation: any): Animation;
|
|
|
- static AppendSerializedAnimations(source: IAnimatable, destination: any): any;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- interface IEasingFunction {
|
|
|
- ease(gradient: number): number;
|
|
|
- }
|
|
|
- class EasingFunction implements IEasingFunction {
|
|
|
- private static _EASINGMODE_EASEIN;
|
|
|
- private static _EASINGMODE_EASEOUT;
|
|
|
- private static _EASINGMODE_EASEINOUT;
|
|
|
- static readonly EASINGMODE_EASEIN: number;
|
|
|
- static readonly EASINGMODE_EASEOUT: number;
|
|
|
- static readonly EASINGMODE_EASEINOUT: number;
|
|
|
- private _easingMode;
|
|
|
- setEasingMode(easingMode: number): void;
|
|
|
- getEasingMode(): number;
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- ease(gradient: number): number;
|
|
|
- }
|
|
|
- class CircleEase extends EasingFunction implements IEasingFunction {
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class BackEase extends EasingFunction implements IEasingFunction {
|
|
|
- amplitude: number;
|
|
|
- constructor(amplitude?: number);
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class BounceEase extends EasingFunction implements IEasingFunction {
|
|
|
- bounces: number;
|
|
|
- bounciness: number;
|
|
|
- constructor(bounces?: number, bounciness?: number);
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class CubicEase extends EasingFunction implements IEasingFunction {
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class ElasticEase extends EasingFunction implements IEasingFunction {
|
|
|
- oscillations: number;
|
|
|
- springiness: number;
|
|
|
- constructor(oscillations?: number, springiness?: number);
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class ExponentialEase extends EasingFunction implements IEasingFunction {
|
|
|
- exponent: number;
|
|
|
- constructor(exponent?: number);
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class PowerEase extends EasingFunction implements IEasingFunction {
|
|
|
- power: number;
|
|
|
- constructor(power?: number);
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class QuadraticEase extends EasingFunction implements IEasingFunction {
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class QuarticEase extends EasingFunction implements IEasingFunction {
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class QuinticEase extends EasingFunction implements IEasingFunction {
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class SineEase extends EasingFunction implements IEasingFunction {
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
- class BezierCurveEase extends EasingFunction implements IEasingFunction {
|
|
|
- x1: number;
|
|
|
- y1: number;
|
|
|
- x2: number;
|
|
|
- y2: number;
|
|
|
- constructor(x1?: number, y1?: number, x2?: number, y2?: number);
|
|
|
- easeInCore(gradient: number): number;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class Analyser {
|
|
|
SMOOTHING: number;
|
|
|
FFT_SIZE: number;
|
|
@@ -2899,26 +2668,257 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class SoundTrack {
|
|
|
- private _outputAudioNode;
|
|
|
- private _inputAudioNode;
|
|
|
- private _trackConvolver;
|
|
|
- private _scene;
|
|
|
- id: number;
|
|
|
- soundCollection: Array<Sound>;
|
|
|
- private _isMainTrack;
|
|
|
- private _connectedAnalyser;
|
|
|
- private _options;
|
|
|
- private _isInitialized;
|
|
|
- constructor(scene: Scene, options?: any);
|
|
|
- private _initializeSoundTrackAudioGraph();
|
|
|
- dispose(): void;
|
|
|
- AddSound(sound: Sound): void;
|
|
|
- RemoveSound(sound: Sound): void;
|
|
|
- setVolume(newVolume: number): void;
|
|
|
- switchPanningModelToHRTF(): void;
|
|
|
- switchPanningModelToEqualPower(): void;
|
|
|
- connectToAnalyser(analyser: Analyser): void;
|
|
|
+ class SoundTrack {
|
|
|
+ private _outputAudioNode;
|
|
|
+ private _inputAudioNode;
|
|
|
+ private _trackConvolver;
|
|
|
+ private _scene;
|
|
|
+ id: number;
|
|
|
+ soundCollection: Array<Sound>;
|
|
|
+ private _isMainTrack;
|
|
|
+ private _connectedAnalyser;
|
|
|
+ private _options;
|
|
|
+ private _isInitialized;
|
|
|
+ constructor(scene: Scene, options?: any);
|
|
|
+ private _initializeSoundTrackAudioGraph();
|
|
|
+ dispose(): void;
|
|
|
+ AddSound(sound: Sound): void;
|
|
|
+ RemoveSound(sound: Sound): void;
|
|
|
+ setVolume(newVolume: number): void;
|
|
|
+ switchPanningModelToHRTF(): void;
|
|
|
+ switchPanningModelToEqualPower(): void;
|
|
|
+ connectToAnalyser(analyser: Analyser): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class Animatable {
|
|
|
+ target: any;
|
|
|
+ fromFrame: number;
|
|
|
+ toFrame: number;
|
|
|
+ loopAnimation: boolean;
|
|
|
+ speedRatio: number;
|
|
|
+ onAnimationEnd: any;
|
|
|
+ private _localDelayOffset;
|
|
|
+ private _pausedDelay;
|
|
|
+ private _animations;
|
|
|
+ private _paused;
|
|
|
+ private _scene;
|
|
|
+ animationStarted: boolean;
|
|
|
+ constructor(scene: Scene, target: any, fromFrame?: number, toFrame?: number, loopAnimation?: boolean, speedRatio?: number, onAnimationEnd?: any, animations?: any);
|
|
|
+ getAnimations(): Animation[];
|
|
|
+ appendAnimations(target: any, animations: Animation[]): void;
|
|
|
+ getAnimationByTargetProperty(property: string): Animation;
|
|
|
+ reset(): void;
|
|
|
+ enableBlending(blendingSpeed: number): void;
|
|
|
+ disableBlending(): void;
|
|
|
+ goToFrame(frame: number): void;
|
|
|
+ pause(): void;
|
|
|
+ restart(): void;
|
|
|
+ stop(animationName?: string): void;
|
|
|
+ _animate(delay: number): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class AnimationRange {
|
|
|
+ name: string;
|
|
|
+ from: number;
|
|
|
+ to: number;
|
|
|
+ constructor(name: string, from: number, to: number);
|
|
|
+ clone(): AnimationRange;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Composed of a frame, and an action function
|
|
|
+ */
|
|
|
+ class AnimationEvent {
|
|
|
+ frame: number;
|
|
|
+ action: () => void;
|
|
|
+ onlyOnce: boolean;
|
|
|
+ isDone: boolean;
|
|
|
+ constructor(frame: number, action: () => void, onlyOnce?: boolean);
|
|
|
+ }
|
|
|
+ class PathCursor {
|
|
|
+ private path;
|
|
|
+ private _onchange;
|
|
|
+ value: number;
|
|
|
+ animations: Animation[];
|
|
|
+ constructor(path: Path2);
|
|
|
+ getPoint(): Vector3;
|
|
|
+ moveAhead(step?: number): PathCursor;
|
|
|
+ moveBack(step?: number): PathCursor;
|
|
|
+ move(step: number): PathCursor;
|
|
|
+ private ensureLimits();
|
|
|
+ private markAsDirty(propertyName);
|
|
|
+ private raiseOnChange();
|
|
|
+ onchange(f: (cursor: PathCursor) => void): PathCursor;
|
|
|
+ }
|
|
|
+ class Animation {
|
|
|
+ name: string;
|
|
|
+ targetProperty: string;
|
|
|
+ framePerSecond: number;
|
|
|
+ dataType: number;
|
|
|
+ loopMode: number;
|
|
|
+ enableBlending: boolean;
|
|
|
+ private _keys;
|
|
|
+ private _offsetsCache;
|
|
|
+ private _highLimitsCache;
|
|
|
+ private _stopped;
|
|
|
+ _target: any;
|
|
|
+ private _blendingFactor;
|
|
|
+ private _easingFunction;
|
|
|
+ private _events;
|
|
|
+ targetPropertyPath: string[];
|
|
|
+ currentFrame: number;
|
|
|
+ allowMatricesInterpolation: boolean;
|
|
|
+ blendingSpeed: number;
|
|
|
+ private _originalBlendValue;
|
|
|
+ private _ranges;
|
|
|
+ static _PrepareAnimation(name: string, targetProperty: string, framePerSecond: number, totalFrame: number, from: any, to: any, loopMode?: number, easingFunction?: EasingFunction): Animation;
|
|
|
+ static CreateAndStartAnimation(name: string, node: Node, targetProperty: string, framePerSecond: number, totalFrame: number, from: any, to: any, loopMode?: number, easingFunction?: EasingFunction, onAnimationEnd?: () => void): Animatable;
|
|
|
+ static CreateMergeAndStartAnimation(name: string, node: Node, targetProperty: string, framePerSecond: number, totalFrame: number, from: any, to: any, loopMode?: number, easingFunction?: EasingFunction, onAnimationEnd?: () => void): Animatable;
|
|
|
+ constructor(name: string, targetProperty: string, framePerSecond: number, dataType: number, loopMode?: number, enableBlending?: boolean);
|
|
|
+ /**
|
|
|
+ * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
|
|
|
+ */
|
|
|
+ toString(fullDetails?: boolean): string;
|
|
|
+ /**
|
|
|
+ * Add an event to this animation.
|
|
|
+ */
|
|
|
+ addEvent(event: AnimationEvent): void;
|
|
|
+ /**
|
|
|
+ * Remove all events found at the given frame
|
|
|
+ * @param frame
|
|
|
+ */
|
|
|
+ removeEvents(frame: number): void;
|
|
|
+ createRange(name: string, from: number, to: number): void;
|
|
|
+ deleteRange(name: string, deleteFrames?: boolean): void;
|
|
|
+ getRange(name: string): AnimationRange;
|
|
|
+ reset(): void;
|
|
|
+ isStopped(): boolean;
|
|
|
+ getKeys(): Array<{
|
|
|
+ frame: number;
|
|
|
+ value: any;
|
|
|
+ }>;
|
|
|
+ getHighestFrame(): number;
|
|
|
+ getEasingFunction(): IEasingFunction;
|
|
|
+ setEasingFunction(easingFunction: EasingFunction): void;
|
|
|
+ floatInterpolateFunction(startValue: number, endValue: number, gradient: number): number;
|
|
|
+ floatInterpolateFunctionWithTangents(startValue: number, outTangent: number, endValue: number, inTangent: number, gradient: number): number;
|
|
|
+ quaternionInterpolateFunction(startValue: Quaternion, endValue: Quaternion, gradient: number): Quaternion;
|
|
|
+ quaternionInterpolateFunctionWithTangents(startValue: Quaternion, outTangent: Quaternion, endValue: Quaternion, inTangent: Quaternion, gradient: number): Quaternion;
|
|
|
+ vector3InterpolateFunction(startValue: Vector3, endValue: Vector3, gradient: number): Vector3;
|
|
|
+ vector3InterpolateFunctionWithTangents(startValue: Vector3, outTangent: Vector3, endValue: Vector3, inTangent: Vector3, gradient: number): Vector3;
|
|
|
+ vector2InterpolateFunction(startValue: Vector2, endValue: Vector2, gradient: number): Vector2;
|
|
|
+ vector2InterpolateFunctionWithTangents(startValue: Vector2, outTangent: Vector2, endValue: Vector2, inTangent: Vector2, gradient: number): Vector2;
|
|
|
+ sizeInterpolateFunction(startValue: Size, endValue: Size, gradient: number): Size;
|
|
|
+ color3InterpolateFunction(startValue: Color3, endValue: Color3, gradient: number): Color3;
|
|
|
+ matrixInterpolateFunction(startValue: Matrix, endValue: Matrix, gradient: number): Matrix;
|
|
|
+ clone(): Animation;
|
|
|
+ setKeys(values: Array<{
|
|
|
+ frame: number;
|
|
|
+ value: any;
|
|
|
+ }>): void;
|
|
|
+ private _getKeyValue(value);
|
|
|
+ private _interpolate(currentFrame, repeatCount, loopMode, offsetValue?, highLimitValue?);
|
|
|
+ setValue(currentValue: any, blend?: boolean): void;
|
|
|
+ goToFrame(frame: number): void;
|
|
|
+ animate(delay: number, from: number, to: number, loop: boolean, speedRatio: number, blend?: boolean): boolean;
|
|
|
+ serialize(): any;
|
|
|
+ private static _ANIMATIONTYPE_FLOAT;
|
|
|
+ private static _ANIMATIONTYPE_VECTOR3;
|
|
|
+ private static _ANIMATIONTYPE_QUATERNION;
|
|
|
+ private static _ANIMATIONTYPE_MATRIX;
|
|
|
+ private static _ANIMATIONTYPE_COLOR3;
|
|
|
+ private static _ANIMATIONTYPE_VECTOR2;
|
|
|
+ private static _ANIMATIONTYPE_SIZE;
|
|
|
+ private static _ANIMATIONLOOPMODE_RELATIVE;
|
|
|
+ private static _ANIMATIONLOOPMODE_CYCLE;
|
|
|
+ private static _ANIMATIONLOOPMODE_CONSTANT;
|
|
|
+ static readonly ANIMATIONTYPE_FLOAT: number;
|
|
|
+ static readonly ANIMATIONTYPE_VECTOR3: number;
|
|
|
+ static readonly ANIMATIONTYPE_VECTOR2: number;
|
|
|
+ static readonly ANIMATIONTYPE_SIZE: number;
|
|
|
+ static readonly ANIMATIONTYPE_QUATERNION: number;
|
|
|
+ static readonly ANIMATIONTYPE_MATRIX: number;
|
|
|
+ static readonly ANIMATIONTYPE_COLOR3: number;
|
|
|
+ static readonly ANIMATIONLOOPMODE_RELATIVE: number;
|
|
|
+ static readonly ANIMATIONLOOPMODE_CYCLE: number;
|
|
|
+ static readonly ANIMATIONLOOPMODE_CONSTANT: number;
|
|
|
+ static Parse(parsedAnimation: any): Animation;
|
|
|
+ static AppendSerializedAnimations(source: IAnimatable, destination: any): any;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ interface IEasingFunction {
|
|
|
+ ease(gradient: number): number;
|
|
|
+ }
|
|
|
+ class EasingFunction implements IEasingFunction {
|
|
|
+ private static _EASINGMODE_EASEIN;
|
|
|
+ private static _EASINGMODE_EASEOUT;
|
|
|
+ private static _EASINGMODE_EASEINOUT;
|
|
|
+ static readonly EASINGMODE_EASEIN: number;
|
|
|
+ static readonly EASINGMODE_EASEOUT: number;
|
|
|
+ static readonly EASINGMODE_EASEINOUT: number;
|
|
|
+ private _easingMode;
|
|
|
+ setEasingMode(easingMode: number): void;
|
|
|
+ getEasingMode(): number;
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ ease(gradient: number): number;
|
|
|
+ }
|
|
|
+ class CircleEase extends EasingFunction implements IEasingFunction {
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class BackEase extends EasingFunction implements IEasingFunction {
|
|
|
+ amplitude: number;
|
|
|
+ constructor(amplitude?: number);
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class BounceEase extends EasingFunction implements IEasingFunction {
|
|
|
+ bounces: number;
|
|
|
+ bounciness: number;
|
|
|
+ constructor(bounces?: number, bounciness?: number);
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class CubicEase extends EasingFunction implements IEasingFunction {
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class ElasticEase extends EasingFunction implements IEasingFunction {
|
|
|
+ oscillations: number;
|
|
|
+ springiness: number;
|
|
|
+ constructor(oscillations?: number, springiness?: number);
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class ExponentialEase extends EasingFunction implements IEasingFunction {
|
|
|
+ exponent: number;
|
|
|
+ constructor(exponent?: number);
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class PowerEase extends EasingFunction implements IEasingFunction {
|
|
|
+ power: number;
|
|
|
+ constructor(power?: number);
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class QuadraticEase extends EasingFunction implements IEasingFunction {
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class QuarticEase extends EasingFunction implements IEasingFunction {
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class QuinticEase extends EasingFunction implements IEasingFunction {
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class SineEase extends EasingFunction implements IEasingFunction {
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
+ }
|
|
|
+ class BezierCurveEase extends EasingFunction implements IEasingFunction {
|
|
|
+ x1: number;
|
|
|
+ y1: number;
|
|
|
+ x2: number;
|
|
|
+ y2: number;
|
|
|
+ constructor(x1?: number, y1?: number, x2?: number, y2?: number);
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -4356,6 +4356,51 @@ declare module BABYLON.Debug {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class LensFlare {
|
|
|
+ size: number;
|
|
|
+ position: number;
|
|
|
+ color: Color3;
|
|
|
+ texture: Texture;
|
|
|
+ alphaMode: number;
|
|
|
+ private _system;
|
|
|
+ constructor(size: number, position: number, color: any, imgUrl: string, system: LensFlareSystem);
|
|
|
+ dispose: () => void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class LensFlareSystem {
|
|
|
+ name: string;
|
|
|
+ lensFlares: LensFlare[];
|
|
|
+ borderLimit: number;
|
|
|
+ viewportBorder: number;
|
|
|
+ meshesSelectionPredicate: (mesh: Mesh) => boolean;
|
|
|
+ layerMask: number;
|
|
|
+ id: string;
|
|
|
+ private _scene;
|
|
|
+ private _emitter;
|
|
|
+ private _vertexBuffers;
|
|
|
+ private _indexBuffer;
|
|
|
+ private _effect;
|
|
|
+ private _positionX;
|
|
|
+ private _positionY;
|
|
|
+ private _isEnabled;
|
|
|
+ constructor(name: string, emitter: any, scene: Scene);
|
|
|
+ isEnabled: boolean;
|
|
|
+ getScene(): Scene;
|
|
|
+ getEmitter(): any;
|
|
|
+ setEmitter(newEmitter: any): void;
|
|
|
+ getEmitterPosition(): Vector3;
|
|
|
+ computeEffectivePosition(globalViewport: Viewport): boolean;
|
|
|
+ _isVisible(): boolean;
|
|
|
+ render(): boolean;
|
|
|
+ dispose(): void;
|
|
|
+ static Parse(parsedLensFlareSystem: any, scene: Scene, rootUrl: string): LensFlareSystem;
|
|
|
+ serialize(): any;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
/**
|
|
|
* Highlight layer options. This helps customizing the behaviour
|
|
|
* of the highlight layer.
|
|
@@ -4612,51 +4657,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class LensFlare {
|
|
|
- size: number;
|
|
|
- position: number;
|
|
|
- color: Color3;
|
|
|
- texture: Texture;
|
|
|
- alphaMode: number;
|
|
|
- private _system;
|
|
|
- constructor(size: number, position: number, color: any, imgUrl: string, system: LensFlareSystem);
|
|
|
- dispose: () => void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class LensFlareSystem {
|
|
|
- name: string;
|
|
|
- lensFlares: LensFlare[];
|
|
|
- borderLimit: number;
|
|
|
- viewportBorder: number;
|
|
|
- meshesSelectionPredicate: (mesh: Mesh) => boolean;
|
|
|
- layerMask: number;
|
|
|
- id: string;
|
|
|
- private _scene;
|
|
|
- private _emitter;
|
|
|
- private _vertexBuffers;
|
|
|
- private _indexBuffer;
|
|
|
- private _effect;
|
|
|
- private _positionX;
|
|
|
- private _positionY;
|
|
|
- private _isEnabled;
|
|
|
- constructor(name: string, emitter: any, scene: Scene);
|
|
|
- isEnabled: boolean;
|
|
|
- getScene(): Scene;
|
|
|
- getEmitter(): any;
|
|
|
- setEmitter(newEmitter: any): void;
|
|
|
- getEmitterPosition(): Vector3;
|
|
|
- computeEffectivePosition(globalViewport: Viewport): boolean;
|
|
|
- _isVisible(): boolean;
|
|
|
- render(): boolean;
|
|
|
- dispose(): void;
|
|
|
- static Parse(parsedLensFlareSystem: any, scene: Scene, rootUrl: string): LensFlareSystem;
|
|
|
- serialize(): any;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class DirectionalLight extends ShadowLight {
|
|
|
private _shadowFrustumSize;
|
|
|
/**
|
|
@@ -13136,6 +13136,36 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class ReflectionProbe {
|
|
|
+ name: string;
|
|
|
+ private _scene;
|
|
|
+ private _renderTargetTexture;
|
|
|
+ private _projectionMatrix;
|
|
|
+ private _viewMatrix;
|
|
|
+ private _target;
|
|
|
+ private _add;
|
|
|
+ private _attachedMesh;
|
|
|
+ invertYAxis: boolean;
|
|
|
+ position: Vector3;
|
|
|
+ constructor(name: string, size: number, scene: Scene, generateMipMaps?: boolean);
|
|
|
+ samples: number;
|
|
|
+ refreshRate: number;
|
|
|
+ getScene(): Scene;
|
|
|
+ readonly cubeTexture: RenderTargetTexture;
|
|
|
+ readonly renderList: AbstractMesh[];
|
|
|
+ attachToMesh(mesh: AbstractMesh): void;
|
|
|
+ /**
|
|
|
+ * Specifies whether or not the stencil and depth buffer are cleared between two rendering groups.
|
|
|
+ *
|
|
|
+ * @param renderingGroupId The rendering group id corresponding to its index
|
|
|
+ * @param autoClearDepthStencil Automatically clears depth and stencil between groups if true.
|
|
|
+ */
|
|
|
+ setRenderingAutoClearDepthStencil(renderingGroupId: number, autoClearDepthStencil: boolean): void;
|
|
|
+ dispose(): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
class AnaglyphPostProcess extends PostProcess {
|
|
|
private _passedProcess;
|
|
|
constructor(name: string, options: number | PostProcessOptions, rigCameras: Camera[], samplingMode?: number, engine?: Engine, reusable?: boolean);
|
|
@@ -13659,36 +13689,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class ReflectionProbe {
|
|
|
- name: string;
|
|
|
- private _scene;
|
|
|
- private _renderTargetTexture;
|
|
|
- private _projectionMatrix;
|
|
|
- private _viewMatrix;
|
|
|
- private _target;
|
|
|
- private _add;
|
|
|
- private _attachedMesh;
|
|
|
- invertYAxis: boolean;
|
|
|
- position: Vector3;
|
|
|
- constructor(name: string, size: number, scene: Scene, generateMipMaps?: boolean);
|
|
|
- samples: number;
|
|
|
- refreshRate: number;
|
|
|
- getScene(): Scene;
|
|
|
- readonly cubeTexture: RenderTargetTexture;
|
|
|
- readonly renderList: AbstractMesh[];
|
|
|
- attachToMesh(mesh: AbstractMesh): void;
|
|
|
- /**
|
|
|
- * Specifies whether or not the stencil and depth buffer are cleared between two rendering groups.
|
|
|
- *
|
|
|
- * @param renderingGroupId The rendering group id corresponding to its index
|
|
|
- * @param autoClearDepthStencil Automatically clears depth and stencil between groups if true.
|
|
|
- */
|
|
|
- setRenderingAutoClearDepthStencil(renderingGroupId: number, autoClearDepthStencil: boolean): void;
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class BoundingBoxRenderer {
|
|
|
frontColor: Color3;
|
|
|
backColor: Color3;
|