This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,21 @@
'use strict';
"use strict";
function updateLocalTransform(lt, container) {
const scale = container._scale;
const pivot = container._pivot;
const position = container._position;
const sx = scale._x;
const sy = scale._y;
const px = pivot._x;
const py = pivot._y;
lt.a = container._cx * sx;
lt.b = container._sx * sx;
lt.c = container._cy * sy;
lt.d = container._sy * sy;
lt.tx = position._x - (px * lt.a + py * lt.c);
lt.ty = position._y - (px * lt.b + py * lt.d);
}
exports.updateLocalTransform = updateLocalTransform;
//# sourceMappingURL=updateLocalTransform.js.map