-
Notifications
You must be signed in to change notification settings - Fork 125
[PPRO] Added missing args and types to ComponentParam and TrackItem #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1250,7 +1250,7 @@ declare class TrackItem { | |||||||||||
/** | ||||||||||||
* | ||||||||||||
*/ | ||||||||||||
readonly components: any | ||||||||||||
readonly components: Component[] | ||||||||||||
|
||||||||||||
/** | ||||||||||||
* | ||||||||||||
|
@@ -2010,26 +2010,40 @@ declare class ComponentParamCollection { | |||||||||||
|
||||||||||||
declare class ComponentParam { | ||||||||||||
readonly displayName: string | ||||||||||||
addKey(): boolean | ||||||||||||
addKey(time: Time, updateUI?: boolean): boolean | ||||||||||||
areKeyframesSupported(): boolean | ||||||||||||
findNearestKey(): object | ||||||||||||
findNextKey(): object | ||||||||||||
findPreviousKey(): object | ||||||||||||
/** | ||||||||||||
* threshold in ticks | ||||||||||||
*/ | ||||||||||||
findNearestKey(timeToCheck: Time, threshold: number): object | ||||||||||||
Comment on lines
+2015
to
+2018
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need for the comment, and
Suggested change
|
||||||||||||
findNextKey(timeToCheck: Time): object | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
findPreviousKey(timeToCheck: Time): object | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
getColorValue(): any[] | ||||||||||||
getKeys(): any[] | ||||||||||||
getValue(): any | ||||||||||||
getValueAtKey(): any | ||||||||||||
getValueAtTime(): any | ||||||||||||
getValueAtKey(timeToCheck: Time): any | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
getValueAtTime(time: Time): any | ||||||||||||
isEmpty(): boolean | ||||||||||||
isTimeVarying(): boolean | ||||||||||||
keyExistsAtTime(): boolean | ||||||||||||
removeKey(): boolean | ||||||||||||
removeKey(time: Time, updateUI?: boolean): boolean | ||||||||||||
removeKeyRange(start: Time, end: Time): boolean | ||||||||||||
setColorValue(p0: number, p1: number, p2: number, p3: number, p4: boolean): boolean | ||||||||||||
setInterpolationTypeAtKey(): boolean | ||||||||||||
setTimeVarying(p0: boolean, p1: boolean): boolean | ||||||||||||
setColorValue(alpha: number, red: number, green: number, blue: number, updateUI: boolean): boolean | ||||||||||||
/** | ||||||||||||
* interpolationType must be one of the following: | ||||||||||||
* 0 KF_Interp_Mode_Linear | ||||||||||||
* 1 kfInterpMode_EaseIn_Obsolete | ||||||||||||
* 2 kfInterpMode_EaseOut_Obsolete | ||||||||||||
* 3 kfInterpMode_EaseInEaseOut_Obsolete | ||||||||||||
* 4 KF_Interp_Mode_Hold | ||||||||||||
* 5 KF_Interp_Mode_Bezier | ||||||||||||
* 6 KF_Interp_Mode_Time | ||||||||||||
* 7 kfInterpMode_TimeTransitionStart | ||||||||||||
* 8 kfInterpMode_TimeTransitionEnd | ||||||||||||
* */ | ||||||||||||
setInterpolationTypeAtKey(time: Time, interpolationType: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8, updateUI?: boolean): boolean | ||||||||||||
Comment on lines
+2031
to
+2044
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead create an enum conforming to the TIME_FORMAT:
And then use it in the parameter type:
|
||||||||||||
setValue(value: any, updateUI?: boolean): boolean | ||||||||||||
setValueAtKey(): boolean | ||||||||||||
setValueAtKey(time: Time, value: any, updateUI: boolean): boolean | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
} | ||||||||||||
/** | ||||||||||||
* | ||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.