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