UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

22 lines (19 loc) 595 B
'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