未验证 提交 e88ddc66 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18010 from f-a24/dev

Update .d.ts for animation
......@@ -57,6 +57,6 @@ export class AnimationAction {
stopWarping(): AnimationAction;
getMixer(): AnimationMixer;
getClip(): AnimationClip;
getRoot(): any;
getRoot(): Object3D;
}
......@@ -12,9 +12,11 @@ export class AnimationClip {
uuid: string;
results: any[];
resetDuration(): void;
resetDuration(): AnimationClip;
trim(): AnimationClip;
validate(): boolean;
optimize(): AnimationClip;
clone(): AnimationClip;
static CreateFromMorphTargetSequence(
name: string,
......
......@@ -11,7 +11,7 @@ export class AnimationMixer extends EventDispatcher {
timeScale: number;
clipAction( clip: AnimationClip, root?: Object3D ): AnimationAction;
existingAction( clip: AnimationClip, root?: Object3D ): AnimationAction;
existingAction( clip: AnimationClip, root?: Object3D ): AnimationAction | null;
stopAllAction(): AnimationMixer;
update( deltaTime: number ): AnimationMixer;
setTime( timeInSeconds: number ): AnimationMixer;
......
......@@ -4,7 +4,7 @@ export namespace AnimationUtils {
export function arraySlice( array: any, from: number, to: number ): any;
export function convertArray( array: any, type: any, forceClone: boolean ): any;
export function isTypedArray( object: any ): boolean;
export function getKeyFrameOrder( times: number ): number[];
export function getKeyFrameOrder( times: number[] ): number[];
export function sortedArray(
values: any[],
stride: number,
......
......@@ -26,7 +26,7 @@ export class KeyframeTrack {
InterpolantFactoryMethodLinear( result: any ): LinearInterpolant;
InterpolantFactoryMethodSmooth( result: any ): CubicInterpolant;
setInterpolation( interpolation: InterpolationModes ): void;
setInterpolation( interpolation: InterpolationModes ): KeyframeTrack;
getInterpolation(): InterpolationModes;
getValuesize(): number;
......@@ -36,8 +36,8 @@ export class KeyframeTrack {
trim( startTime: number, endTime: number ): KeyframeTrack;
validate(): boolean;
optimize(): KeyframeTrack;
clone(): KeyframeTrack;
static parse( json: any ): KeyframeTrack;
static toJSON( track: KeyframeTrack ): any;
}
export interface ParseTrackNameResults {
nodeName: string;
objectName: string;
objectIndex: string;
propertyName: string;
propertyIndex: string;
}
export class PropertyBinding {
constructor( rootNode: any, path: string, parsedPath?: any );
......@@ -23,7 +31,8 @@ export class PropertyBinding {
path: any,
parsedPath?: any
): PropertyBinding | PropertyBinding.Composite;
static parseTrackName( trackName: string ): any;
static sanitizeNodeName( name: string ): string;
static parseTrackName( trackName: string ): ParseTrackNameResults;
static findNode( root: any, nodeName: string ): any;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册