Files
cocos4/cocos/core/animation/value-proxy.ts
T
Leslie Leigh (李的序) afd62241c4 Support of partial property animation. (#5818)
* Partial property animation

* Optimize easingMethods storage

* Fix

* Fix CI error
2019-12-26 15:04:46 +08:00

20 lines
451 B
TypeScript

/**
* 曲线值代理用来设置曲线值到目标,是广义的赋值。
* 每个曲线值代理都关联着一个目标对象。
*/
export interface IValueProxy {
get?: () => any;
/**
* 设置曲线值到目标对象上。
*/
set: (value: any) => void;
}
export interface IValueProxyFactory {
/**
* 返回指定目标的曲线值代理。
* @param target
*/
forTarget (target: any): IValueProxy;
}