Type Alias TJSPositionDataRelative
TJSPositionDataRelative: Partial<
{
[P in keyof TJSPositionData as P extends AnimationKey ? P : never]:
| TJSPositionData[P]
| string
} & {
[P in keyof TJSPositionData as P extends AnimationKey ? never : P]: TJSPositionData[P]
},
> & { [key: string]: any }
{
[P in keyof TJSPositionData as P extends AnimationKey ? P : never]:
| TJSPositionData[P]
| string
} & {
[P in keyof TJSPositionData as P extends AnimationKey ? never : P]: TJSPositionData[P]
},
> & { [key: string]: any }
Defines an extension to Data.TJSPositionData where each animatable property defined by AnimationAPI.AnimationKey can also be a string. Relative adjustments to animatable properties should be a string the form of '+=', '-=', or '*=' and float / numeric value. IE '+=0.2'. TJSPosition.set will apply the
addition
,subtraction
, ormultiplication
operation specified against the current value of the given property. Various unit types are also supported including:%
,%~
,px
,rad
,turn
:Additional properties may be added that are not specified by TJSPositionData and are forwarded through ValidatorAPI.ValidationData as the
rest
property allowing extra data to be sent to any custom validator.