UNPKG

1.07 kBJavaScriptView Raw
1"use strict";
2var extensions = require("@pixi/extensions");
3class StartupSystem {
4 constructor(renderer) {
5 this.renderer = renderer;
6 }
7 /**
8 * It all starts here! This initiates every system, passing in the options for any system by name.
9 * @param options - the config for the renderer and all its systems
10 */
11 run(options) {
12 const { renderer } = this;
13 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);
14 }
15 destroy() {
16 }
17}
18StartupSystem.defaultOptions = {
19 /**
20 * {@link PIXI.IRendererOptions.hello}
21 * @default false
22 * @memberof PIXI.settings.RENDER_OPTIONS
23 */
24 hello: !1
25}, /** @ignore */
26StartupSystem.extension = {
27 type: [
28 extensions.ExtensionType.RendererSystem,
29 extensions.ExtensionType.CanvasRendererSystem
30 ],
31 name: "startup"
32};
33extensions.extensions.add(StartupSystem);
34exports.StartupSystem = StartupSystem;
35//# sourceMappingURL=StartupSystem.js.map