Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$scene$container$bounds$getRenderableBounds.js
2026-07-01 22:38:29 -06:00

24 lines
1.3 KiB
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$container$bounds$getRenderableBounds = function(global, require, module, exports) {
require("module$node_modules$pixi_DOT_js$lib$maths$index");
global = require("module$node_modules$pixi_DOT_js$lib$maths$matrix$Matrix");
"use strict";
const tempProjectionMatrix = new global.Matrix();
exports.getGlobalRenderableBounds = function(renderables, bounds) {
bounds.clear();
const actualMatrix = bounds.matrix;
for (let i = 0; i < renderables.length; i++) {
const renderable = renderables[i];
if (7 > renderable.globalDisplayStatus) {
continue;
}
const renderGroup = renderable.renderGroup ?? renderable.parentRenderGroup;
bounds.matrix = renderGroup?.isCachedAsTexture ? tempProjectionMatrix.copyFrom(renderGroup.textureOffsetInverseTransform).append(renderable.worldTransform) : renderGroup?._parentCacheAsTextureRenderGroup ? tempProjectionMatrix.copyFrom(renderGroup._parentCacheAsTextureRenderGroup.inverseWorldTransform).append(renderable.groupTransform) : renderable.worldTransform;
bounds.addBounds(renderable.bounds);
}
bounds.matrix = actualMatrix;
return bounds;
};
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$container$bounds$getRenderableBounds.js.map