refactoring

This commit is contained in:
2025-11-06 18:17:56 +02:00
parent fd3f9a6d69
commit 4565782e9f
14 changed files with 113 additions and 92 deletions
+5 -1
View File
@@ -4,7 +4,6 @@ class MotionEngine {
constructor() {
const aq = [];
const clock = new Clock();
this.animationQueue = aq;
function calcValues(target, values, initial, k = 1, mode = 'offset') {
@@ -42,6 +41,11 @@ class MotionEngine {
}
};
this.clearAll = function(){
aq.splice(0, aq.length);
return;
}
this.remove = function (a) {
let idx = aq.indexOf(a);
if (idx > -1) {