{"version":3,"file":"updateLocalTransform.mjs","sources":["../../../../src/scene/container/utils/updateLocalTransform.ts"],"sourcesContent":["import type { Matrix } from '../../../maths/matrix/Matrix';\nimport type { Container } from '../Container';\n\n/**\n * Updates the local transform of a container based on its properties.\n * @param lt - The matrix to update with the local transform values.\n * @param container - The container whose local transform is being updated.\n * @deprecated\n * @internal\n */\nexport function updateLocalTransform(lt: Matrix, container: Container): void\n{\n    const scale = container._scale;\n    const pivot = container._pivot;\n    const position = container._position;\n\n    const sx = scale._x;\n    const sy = scale._y;\n\n    const px = pivot._x;\n    const py = pivot._y;\n\n    // get the matrix values of the container based on its this properties..\n    lt.a = container._cx * sx;\n    lt.b = container._sx * sx;\n    lt.c = container._cy * sy;\n    lt.d = container._sy * sy;\n\n    lt.tx = position._x - ((px * lt.a) + (py * lt.c));\n    lt.ty = position._y - ((px * lt.b) + (py * lt.d));\n}\n"],"names":[],"mappings":";AAUO,SAAS,oBAAA,CAAqB,IAAY,SAAA,EACjD;AACI,EAAA,MAAM,QAAQ,SAAA,CAAU,MAAA;AACxB,EAAA,MAAM,QAAQ,SAAA,CAAU,MAAA;AACxB,EAAA,MAAM,WAAW,SAAA,CAAU,SAAA;AAE3B,EAAA,MAAM,KAAK,KAAA,CAAM,EAAA;AACjB,EAAA,MAAM,KAAK,KAAA,CAAM,EAAA;AAEjB,EAAA,MAAM,KAAK,KAAA,CAAM,EAAA;AACjB,EAAA,MAAM,KAAK,KAAA,CAAM,EAAA;AAGjB,EAAA,EAAA,CAAG,CAAA,GAAI,UAAU,GAAA,GAAM,EAAA;AACvB,EAAA,EAAA,CAAG,CAAA,GAAI,UAAU,GAAA,GAAM,EAAA;AACvB,EAAA,EAAA,CAAG,CAAA,GAAI,UAAU,GAAA,GAAM,EAAA;AACvB,EAAA,EAAA,CAAG,CAAA,GAAI,UAAU,GAAA,GAAM,EAAA;AAEvB,EAAA,EAAA,CAAG,KAAK,QAAA,CAAS,EAAA,IAAO,KAAK,EAAA,CAAG,CAAA,GAAM,KAAK,EAAA,CAAG,CAAA,CAAA;AAC9C,EAAA,EAAA,CAAG,KAAK,QAAA,CAAS,EAAA,IAAO,KAAK,EAAA,CAAG,CAAA,GAAM,KAAK,EAAA,CAAG,CAAA,CAAA;AAClD;;;;"}