UNPKG

1.03 kBJavaScriptView Raw
1import { ExtensionType, extensions } from "@pixi/extensions";
2class StartupSystem {
3 constructor(renderer) {
4 this.renderer = renderer;
5 }
6 /**
7 * It all starts here! This initiates every system, passing in the options for any system by name.
8 * @param options - the config for the renderer and all its systems
9 */
10 run(options) {
11 const { renderer } = this;
12 renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.2 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height);
13 }
14 destroy() {
15 }
16}
17StartupSystem.defaultOptions = {
18 /**
19 * {@link PIXI.IRendererOptions.hello}
20 * @default false
21 * @memberof PIXI.settings.RENDER_OPTIONS
22 */
23 hello: !1
24}, /** @ignore */
25StartupSystem.extension = {
26 type: [
27 ExtensionType.RendererSystem,
28 ExtensionType.CanvasRendererSystem
29 ],
30 name: "startup"
31};
32extensions.add(StartupSystem);
33export {
34 StartupSystem
35};
36//# sourceMappingURL=StartupSystem.mjs.map