{"version":3,"file":"getPixiSize.mjs","sources":["../../../src/core/utils/getPixiSize.ts"],"sourcesContent":["import { type Size } from 'pixi.js';\nimport { type Layout } from '../Layout';\n\nconst temp = { width: 0, height: 0 };\n\n/**\n * Retrieves the absolute size of a PixiJS container\n * @param layout - The layout to retrieve the size from\n * @returns The size of the PixiJS container\n */\nexport function getPixiSize(layout: Layout): Size {\n    const bounds = layout.target.getLocalBounds();\n    const scale = layout.target.scale;\n\n    temp.width = Math.abs(bounds.width * scale.x);\n    temp.height = Math.abs(bounds.height * scale.y);\n\n    return temp;\n}\n"],"names":[],"mappings":"AAGA,MAAM,OAAO,EAAE,OAAO,GAAG,QAAQ,EAAE;AAO5B,SAAS,YAAY,QAAsB;AACxC,QAAA,SAAS,OAAO,OAAO,eAAe;AACtC,QAAA,QAAQ,OAAO,OAAO;AAE5B,OAAK,QAAQ,KAAK,IAAI,OAAO,QAAQ,MAAM,CAAC;AAC5C,OAAK,SAAS,KAAK,IAAI,OAAO,SAAS,MAAM,CAAC;AAEvC,SAAA;AACX;"}