This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,44 @@
'use strict';
var Bounds = require('./bounds/Bounds.js');
var Container = require('./Container.js');
"use strict";
class RenderContainer extends Container.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.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) {
}
}
exports.RenderContainer = RenderContainer;
//# sourceMappingURL=RenderContainer.js.map