sdfsdfs
This commit is contained in:
19
node_modules/pixi.js/lib/scene/container/utils/updateLocalTransform.mjs
generated
vendored
Normal file
19
node_modules/pixi.js/lib/scene/container/utils/updateLocalTransform.mjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"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);
|
||||
}
|
||||
|
||||
export { updateLocalTransform };
|
||||
//# sourceMappingURL=updateLocalTransform.mjs.map
|
Reference in New Issue
Block a user