boda_jsEnv/env_xbb_lastest_bo/env/AnimationEffect.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

45 lines
1.4 KiB
JavaScript

// AnimationEffect对象
AnimationEffect = function AnimationEffect() {
let arg = arguments[0];
if (arg != 'bobo' && this instanceof AnimationEffect) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('AnimationEffect 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(AnimationEffect, "AnimationEffect");
bodavm.toolsFunc.defineProperty(AnimationEffect.prototype, "getComputedTiming", {
configurable: true,
enumerable: true,
writable: true,
value: function getComputedTiming() {
return bodavm.toolsFunc.dispatch(this, AnimationEffect.prototype, "AnimationEffect", "getComputedTiming", arguments);
}
});
bodavm.toolsFunc.defineProperty(AnimationEffect.prototype, "getTiming", {
configurable: true,
enumerable: true,
writable: true,
value: function getTiming() {
return bodavm.toolsFunc.dispatch(this, AnimationEffect.prototype, "AnimationEffect", "getTiming", arguments);
}
});
bodavm.toolsFunc.defineProperty(AnimationEffect.prototype, "updateTiming", {
configurable: true,
enumerable: true,
writable: true,
value: function updateTiming() {
return bodavm.toolsFunc.dispatch(this, AnimationEffect.prototype, "AnimationEffect", "updateTiming", arguments);
}
});