22 lines
893 B
JavaScript
22 lines
893 B
JavaScript
shadow$provide.module$node_modules$pixi_DOT_js$lib$culling$CullerPlugin = function(global, require, module, exports) {
|
|
global = require("module$node_modules$pixi_DOT_js$lib$extensions$Extensions");
|
|
var Culler = require("module$node_modules$pixi_DOT_js$lib$culling$Culler");
|
|
"use strict";
|
|
class CullerPlugin {
|
|
static init(options) {
|
|
this._renderRef = this.render.bind(this);
|
|
this.render = () => {
|
|
Culler.Culler.shared.cull(this.stage, this.renderer.screen, !0 !== options?.culler?.updateTransform);
|
|
this.renderer.render({container:this.stage});
|
|
};
|
|
}
|
|
static destroy() {
|
|
this.render = this._renderRef;
|
|
}
|
|
}
|
|
CullerPlugin.extension = {priority:10, type:global.ExtensionType.Application, name:"culler"};
|
|
exports.CullerPlugin = CullerPlugin;
|
|
};
|
|
|
|
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$culling$CullerPlugin.js.map
|