Files
nothoughts/node_modules/pixi.js/lib/scene/container/RenderContainer.mjs
2025-08-04 18:57:35 +02:00

43 lines
1.1 KiB
JavaScript

import { Bounds } from './bounds/Bounds.mjs';
import { Container } from './Container.mjs';
"use strict";
class RenderContainer extends Container {
/**
* @param options - The options for the container.
*/
constructor(options) {
if (typeof options === "function") {
options = { render: options };
}
const { render, ...rest } = options;
super({
label: "RenderContainer",
...rest
});
this.batched = false;
this._lastUsed = 0;
this._lastInstructionTick = -1;
/**
* The local bounds of the sprite.
* @type {rendering.Bounds}
*/
this.bounds = new Bounds();
this.canBundle = false;
this.renderPipeId = "customRender";
if (render)
this.render = render;
this.containsPoint = options.containsPoint ?? (() => false);
this.addBounds = options.addBounds ?? (() => false);
}
/**
* An overridable function that can be used to render the object using the current renderer.
* @param _renderer - The current renderer
*/
render(_renderer) {
}
}
export { RenderContainer };
//# sourceMappingURL=RenderContainer.mjs.map