1 | "use strict";
|
2 | var extensions = require("@pixi/extensions");
|
3 | class StartupSystem {
|
4 | constructor(renderer) {
|
5 | this.renderer = renderer;
|
6 | }
|
7 | |
8 |
|
9 |
|
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 | }
|
18 | StartupSystem.defaultOptions = {
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 | hello: !1
|
25 | },
|
26 | StartupSystem.extension = {
|
27 | type: [
|
28 | extensions.ExtensionType.RendererSystem,
|
29 | extensions.ExtensionType.CanvasRendererSystem
|
30 | ],
|
31 | name: "startup"
|
32 | };
|
33 | extensions.extensions.add(StartupSystem);
|
34 | exports.StartupSystem = StartupSystem;
|
35 |
|