melonjs 18.0.0 → 18.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/application/application.d.ts +33 -40
- package/build/application/application.d.ts.map +1 -1
- package/build/application/defaultApplicationSettings.d.ts +1 -1
- package/build/application/header.d.ts +3 -7
- package/build/application/header.d.ts.map +1 -1
- package/build/application/resize.d.ts +3 -4
- package/build/application/resize.d.ts.map +1 -1
- package/build/application/settings.d.ts +8 -3
- package/build/application/settings.d.ts.map +1 -1
- package/build/audio/audio.d.ts +179 -128
- package/build/audio/audio.d.ts.map +1 -1
- package/build/camera/camera2d.d.ts +194 -103
- package/build/camera/camera2d.d.ts.map +1 -1
- package/build/geometries/ellipse.d.ts +40 -4
- package/build/geometries/ellipse.d.ts.map +1 -1
- package/build/geometries/line.d.ts +2 -1
- package/build/geometries/line.d.ts.map +1 -1
- package/build/geometries/path2d.d.ts +39 -4
- package/build/geometries/path2d.d.ts.map +1 -1
- package/build/geometries/polygon.d.ts +6 -5
- package/build/geometries/polygon.d.ts.map +1 -1
- package/build/geometries/rectangle.d.ts +1 -0
- package/build/geometries/rectangle.d.ts.map +1 -1
- package/build/geometries/roundrect.d.ts +83 -17
- package/build/geometries/roundrect.d.ts.map +1 -1
- package/build/index.d.ts +18 -16
- package/build/index.d.ts.map +1 -1
- package/build/index.js +5283 -2234
- package/build/index.js.map +4 -4
- package/build/input/gamepad.d.ts +113 -61
- package/build/input/gamepad.d.ts.map +1 -1
- package/build/input/input.d.ts +3 -7
- package/build/input/input.d.ts.map +1 -1
- package/build/input/keyboard.d.ts +6 -0
- package/build/input/keyboard.d.ts.map +1 -1
- package/build/input/pointer.d.ts +25 -51
- package/build/input/pointer.d.ts.map +1 -1
- package/build/input/pointerevent.d.ts +51 -79
- package/build/input/pointerevent.d.ts.map +1 -1
- package/build/lang/console.d.ts.map +1 -1
- package/build/lang/deprecated.d.ts +27 -0
- package/build/lang/deprecated.d.ts.map +1 -1
- package/build/level/tiled/TMXGroup.d.ts +5 -0
- package/build/level/tiled/TMXGroup.d.ts.map +1 -1
- package/build/level/tiled/TMXLayer.d.ts +1 -0
- package/build/level/tiled/TMXLayer.d.ts.map +1 -1
- package/build/level/tiled/TMXObject.d.ts +21 -16
- package/build/level/tiled/TMXObject.d.ts.map +1 -1
- package/build/level/tiled/TMXTile.d.ts +16 -5
- package/build/level/tiled/TMXTile.d.ts.map +1 -1
- package/build/level/tiled/TMXTileMap.d.ts +16 -3
- package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
- package/build/level/tiled/TMXTileset.d.ts +138 -16
- package/build/level/tiled/TMXTileset.d.ts.map +1 -1
- package/build/level/tiled/TMXTilesetGroup.d.ts +1 -0
- package/build/level/tiled/TMXTilesetGroup.d.ts.map +1 -1
- package/build/level/tiled/TMXUtils.d.ts +29 -12
- package/build/level/tiled/TMXUtils.d.ts.map +1 -1
- package/build/level/tiled/constants.d.ts +1 -0
- package/build/level/tiled/constants.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts +2 -7
- package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts +2 -1
- package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts +42 -0
- package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts.map +1 -0
- package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts +2 -7
- package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXRenderer.d.ts +7 -0
- package/build/level/tiled/renderer/TMXRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXStaggeredRenderer.d.ts +2 -1
- package/build/level/tiled/renderer/TMXStaggeredRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/autodetect.d.ts +2 -1
- package/build/level/tiled/renderer/autodetect.d.ts.map +1 -1
- package/build/loader/loader.d.ts +39 -15
- package/build/loader/loader.d.ts.map +1 -1
- package/build/loader/loadingscreen.d.ts +8 -0
- package/build/loader/loadingscreen.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/compressed_image.d.ts +44 -1
- package/build/loader/parsers/compressed_textures/compressed_image.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parseDDS.d.ts +7 -1
- package/build/loader/parsers/compressed_textures/parseDDS.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parseKTX.d.ts +7 -1
- package/build/loader/parsers/compressed_textures/parseKTX.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parseKTX2.d.ts +7 -1
- package/build/loader/parsers/compressed_textures/parseKTX2.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parsePKM.d.ts +7 -1
- package/build/loader/parsers/compressed_textures/parsePKM.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parsePVR.d.ts +7 -1
- package/build/loader/parsers/compressed_textures/parsePVR.d.ts.map +1 -1
- package/build/loader/parsers/fontface.d.ts +1 -1
- package/build/loader/parsers/fontface.d.ts.map +1 -1
- package/build/loader/parsers/image.d.ts +6 -1
- package/build/loader/parsers/image.d.ts.map +1 -1
- package/build/math/color.d.ts +2 -1
- package/build/math/color.d.ts.map +1 -1
- package/build/math/matrix2d.d.ts +1 -0
- package/build/math/matrix2d.d.ts.map +1 -1
- package/build/math/matrix3d.d.ts +1 -0
- package/build/math/matrix3d.d.ts.map +1 -1
- package/build/math/observableVector2d.d.ts +3 -2
- package/build/math/observableVector2d.d.ts.map +1 -1
- package/build/math/observableVector3d.d.ts +5 -4
- package/build/math/observableVector3d.d.ts.map +1 -1
- package/build/math/vector2d.d.ts +2 -1
- package/build/math/vector2d.d.ts.map +1 -1
- package/build/math/vector3d.d.ts +4 -3
- package/build/math/vector3d.d.ts.map +1 -1
- package/build/particles/emitter.d.ts +40 -122
- package/build/particles/emitter.d.ts.map +1 -1
- package/build/particles/particle.d.ts +2 -4
- package/build/particles/particle.d.ts.map +1 -1
- package/build/physics/body.d.ts +8 -7
- package/build/physics/body.d.ts.map +1 -1
- package/build/physics/bounds.d.ts +2 -1
- package/build/physics/bounds.d.ts.map +1 -1
- package/build/physics/detector.d.ts.map +1 -1
- package/build/physics/quadtree.d.ts +1 -0
- package/build/physics/quadtree.d.ts.map +1 -1
- package/build/physics/sat.d.ts.map +1 -1
- package/build/physics/world.d.ts +4 -3
- package/build/physics/world.d.ts.map +1 -1
- package/build/plugin/plugin.d.ts +36 -53
- package/build/plugin/plugin.d.ts.map +1 -1
- package/build/polyfill/ellipse.d.ts +2 -0
- package/build/polyfill/ellipse.d.ts.map +1 -0
- package/build/polyfill/index.d.ts +1 -0
- package/build/polyfill/index.d.ts.map +1 -1
- package/build/renderable/collectable.d.ts +1 -0
- package/build/renderable/collectable.d.ts.map +1 -1
- package/build/renderable/colorlayer.d.ts +3 -2
- package/build/renderable/colorlayer.d.ts.map +1 -1
- package/build/renderable/container.d.ts +19 -18
- package/build/renderable/container.d.ts.map +1 -1
- package/build/renderable/draggable.d.ts +1 -0
- package/build/renderable/draggable.d.ts.map +1 -1
- package/build/renderable/entity/entity.d.ts +141 -0
- package/build/renderable/entity/entity.d.ts.map +1 -1
- package/build/renderable/imagelayer.d.ts +3 -2
- package/build/renderable/imagelayer.d.ts.map +1 -1
- package/build/renderable/nineslicesprite.d.ts +4 -3
- package/build/renderable/nineslicesprite.d.ts.map +1 -1
- package/build/renderable/renderable.d.ts +42 -7
- package/build/renderable/renderable.d.ts.map +1 -1
- package/build/renderable/sprite.d.ts +7 -5
- package/build/renderable/sprite.d.ts.map +1 -1
- package/build/renderable/text/bitmaptext.d.ts +3 -2
- package/build/renderable/text/bitmaptext.d.ts.map +1 -1
- package/build/renderable/text/bitmaptextdata.d.ts +4 -0
- package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
- package/build/renderable/text/text.d.ts +2 -1
- package/build/renderable/text/text.d.ts.map +1 -1
- package/build/renderable/trigger.d.ts +1 -0
- package/build/renderable/trigger.d.ts.map +1 -1
- package/build/renderable/ui/uibaseelement.d.ts +47 -33
- package/build/renderable/ui/uibaseelement.d.ts.map +1 -1
- package/build/renderable/ui/uispriteelement.d.ts +54 -43
- package/build/renderable/ui/uispriteelement.d.ts.map +1 -1
- package/build/renderable/ui/uitextbutton.d.ts +70 -75
- package/build/renderable/ui/uitextbutton.d.ts.map +1 -1
- package/build/state/stage.d.ts +2 -1
- package/build/state/stage.d.ts.map +1 -1
- package/build/state/state.d.ts +93 -90
- package/build/state/state.d.ts.map +1 -1
- package/build/system/device.d.ts +33 -3
- package/build/system/device.d.ts.map +1 -1
- package/build/system/dom.d.ts +7 -0
- package/build/system/dom.d.ts.map +1 -1
- package/build/system/event.d.ts +2 -2
- package/build/system/event.d.ts.map +1 -1
- package/build/system/legacy_pool.d.ts.map +1 -1
- package/build/tweens/tween.d.ts +1 -0
- package/build/tweens/tween.d.ts.map +1 -1
- package/build/utils/array.d.ts +2 -2
- package/build/utils/decode.d.ts +35 -0
- package/build/utils/decode.d.ts.map +1 -0
- package/build/utils/function.d.ts +1 -1
- package/build/utils/function.d.ts.map +1 -1
- package/build/utils/utils.d.ts +1 -1
- package/build/utils/utils.d.ts.map +1 -1
- package/build/utils/xml.d.ts +21 -0
- package/build/utils/xml.d.ts.map +1 -0
- package/build/video/canvas/canvas_renderer.d.ts +42 -14
- package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
- package/build/video/renderer.d.ts +39 -8
- package/build/video/renderer.d.ts.map +1 -1
- package/build/video/renderstate.d.ts +85 -0
- package/build/video/renderstate.d.ts.map +1 -0
- package/build/video/rendertarget/canvasrendertarget.d.ts +1 -0
- package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
- package/build/video/texture/atlas.d.ts +44 -5
- package/build/video/texture/atlas.d.ts.map +1 -1
- package/build/video/texture/cache.d.ts +9 -0
- package/build/video/texture/cache.d.ts.map +1 -1
- package/build/video/texture/parser/texturepacker.d.ts.map +1 -1
- package/build/video/webgl/{compositors/compositor.d.ts → batchers/batcher.d.ts} +63 -30
- package/build/video/webgl/batchers/batcher.d.ts.map +1 -0
- package/build/video/webgl/{compositors/primitive_compositor.d.ts → batchers/primitive_batcher.d.ts} +10 -3
- package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -0
- package/build/video/webgl/{compositors/quad_compositor.d.ts → batchers/quad_batcher.d.ts} +6 -5
- package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -0
- package/build/video/webgl/buffer/index.d.ts +49 -0
- package/build/video/webgl/buffer/index.d.ts.map +1 -0
- package/build/video/webgl/buffer/vertex.d.ts +12 -19
- package/build/video/webgl/buffer/vertex.d.ts.map +1 -1
- package/build/video/webgl/glshader.d.ts +3 -2
- package/build/video/webgl/glshader.d.ts.map +1 -1
- package/build/video/webgl/shadereffect.d.ts +72 -0
- package/build/video/webgl/shadereffect.d.ts.map +1 -0
- package/build/video/webgl/webgl_renderer.d.ts +53 -69
- package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
- package/package.json +19 -13
- package/build/video/webgl/compositors/compositor.d.ts.map +0 -1
- package/build/video/webgl/compositors/primitive_compositor.d.ts.map +0 -1
- package/build/video/webgl/compositors/quad_compositor.d.ts.map +0 -1
|
@@ -1,45 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
1
|
+
import type Camera2d from "./../camera/camera2d.ts";
|
|
2
|
+
import World from "../physics/world.js";
|
|
3
|
+
import type Renderer from "./../video/renderer.js";
|
|
4
|
+
import type { ApplicationSettings } from "./settings.ts";
|
|
6
5
|
/**
|
|
7
6
|
* An Application represents a single melonJS game, and is responsible for updating (each frame) all the related object status and draw them.
|
|
7
|
+
* @category Application
|
|
8
8
|
* @see {@link game}
|
|
9
9
|
*/
|
|
10
10
|
export default class Application {
|
|
11
|
-
/**
|
|
12
|
-
* @param {number} width - The width of the canvas viewport
|
|
13
|
-
* @param {number} height - The height of the canvas viewport
|
|
14
|
-
* @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer
|
|
15
|
-
* @throws Will throw an exception if it fails to instantiate a renderer
|
|
16
|
-
*/
|
|
17
|
-
constructor(width: number, height: number, options?: ApplicationSettings);
|
|
18
11
|
/**
|
|
19
12
|
* the parent HTML element holding the main canvas of this application
|
|
20
|
-
* @type {HTMLElement}
|
|
21
13
|
*/
|
|
22
14
|
parentElement: HTMLElement;
|
|
23
15
|
/**
|
|
24
|
-
* a reference to the active Canvas or WebGL
|
|
25
|
-
* @type {CanvasRenderer|WebGLRenderer}
|
|
16
|
+
* a reference to the active Canvas or WebGL renderer
|
|
26
17
|
*/
|
|
27
|
-
renderer:
|
|
18
|
+
renderer: Renderer;
|
|
28
19
|
/**
|
|
29
20
|
* the active stage "default" camera
|
|
30
|
-
* @type {Camera2d}
|
|
31
21
|
*/
|
|
32
22
|
viewport: Camera2d;
|
|
33
23
|
/**
|
|
34
24
|
* a reference to the game world, <br>
|
|
35
25
|
* a world is a virtual environment containing all the game objects
|
|
36
|
-
* @type {World}
|
|
37
26
|
*/
|
|
38
27
|
world: World;
|
|
39
28
|
/**
|
|
40
29
|
* when true, all objects will be added under the root world container.<br>
|
|
41
30
|
* When false, a `me.Container` object will be created for each corresponding groups
|
|
42
|
-
* @type {boolean}
|
|
43
31
|
* @default true
|
|
44
32
|
*/
|
|
45
33
|
mergeGroup: boolean;
|
|
@@ -48,38 +36,39 @@ export default class Application {
|
|
|
48
36
|
* Use this value to implement frame prediction in drawing events,
|
|
49
37
|
* for creating smooth motion while running game update logic at
|
|
50
38
|
* a lower fps.
|
|
51
|
-
* @type {DOMHighResTimeStamp}
|
|
52
39
|
*/
|
|
53
40
|
lastUpdate: DOMHighResTimeStamp;
|
|
54
41
|
/**
|
|
55
42
|
* true when this app instance has been initialized
|
|
56
|
-
* @type {boolean}
|
|
57
43
|
* @default false
|
|
58
44
|
*/
|
|
59
45
|
isInitialized: boolean;
|
|
60
46
|
/**
|
|
61
47
|
* the given settings used when creating this application
|
|
62
|
-
* @type {ApplicationSettings}
|
|
63
48
|
*/
|
|
64
|
-
settings: ApplicationSettings
|
|
49
|
+
settings: ApplicationSettings & {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
autoScale: boolean;
|
|
53
|
+
zoomX: number;
|
|
54
|
+
zoomY: number;
|
|
55
|
+
scale: number | "auto";
|
|
56
|
+
};
|
|
65
57
|
/**
|
|
66
58
|
* Specify whether to pause this app when losing focus
|
|
67
|
-
* @type {boolean}
|
|
68
59
|
* @default true
|
|
69
60
|
* @example
|
|
70
|
-
* // keep the default game instance running even when
|
|
61
|
+
* // keep the default game instance running even when losing focus
|
|
71
62
|
* me.game.pauseOnBlur = false;
|
|
72
63
|
*/
|
|
73
64
|
pauseOnBlur: boolean;
|
|
74
65
|
/**
|
|
75
66
|
* Specify whether to unpause this app when gaining back focus
|
|
76
|
-
* @type {boolean}
|
|
77
67
|
* @default true
|
|
78
68
|
*/
|
|
79
69
|
resumeOnFocus: boolean;
|
|
80
70
|
/**
|
|
81
71
|
* Specify whether to stop this app when losing focus
|
|
82
|
-
* @type {boolean}
|
|
83
72
|
* @default false
|
|
84
73
|
*/
|
|
85
74
|
stopOnBlur: boolean;
|
|
@@ -94,29 +83,37 @@ export default class Application {
|
|
|
94
83
|
updateDelta: number;
|
|
95
84
|
lastUpdateStart: number | null;
|
|
96
85
|
updateAverageDelta: number;
|
|
86
|
+
/**
|
|
87
|
+
* @param width - The width of the canvas viewport
|
|
88
|
+
* @param height - The height of the canvas viewport
|
|
89
|
+
* @param options - The optional parameters for the application and default renderer
|
|
90
|
+
* @throws {Error} Will throw an exception if it fails to instantiate a renderer
|
|
91
|
+
*/
|
|
92
|
+
constructor(width: number, height: number, options?: Partial<ApplicationSettings> & {
|
|
93
|
+
legacy?: boolean;
|
|
94
|
+
});
|
|
97
95
|
/**
|
|
98
96
|
* init the game instance (create a physic world, update starting time, etc..)
|
|
99
|
-
* @param
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
97
|
+
* @param width - The width of the canvas viewport
|
|
98
|
+
* @param height - The height of the canvas viewport
|
|
99
|
+
* @param options - The optional parameters for the application and default renderer
|
|
102
100
|
*/
|
|
103
|
-
init(width: number, height: number, options?: ApplicationSettings): void;
|
|
101
|
+
init(width: number, height: number, options?: Partial<ApplicationSettings>): void;
|
|
104
102
|
/**
|
|
105
103
|
* reset the game Object manager
|
|
106
104
|
* destroy all current objects
|
|
107
105
|
*/
|
|
108
106
|
reset(): void;
|
|
109
|
-
set sortOn(value: string);
|
|
110
107
|
/**
|
|
111
108
|
* Specify the property to be used when sorting renderables for this application game world.
|
|
112
109
|
* Accepted values : "x", "y", "z", "depth"
|
|
113
|
-
* @type {string}
|
|
114
110
|
* @see {@link World.sortOn}
|
|
115
111
|
*/
|
|
116
112
|
get sortOn(): string;
|
|
113
|
+
set sortOn(value: string);
|
|
117
114
|
/**
|
|
118
115
|
* Fired when a level is fully loaded and all renderable instantiated. <br>
|
|
119
|
-
*
|
|
116
|
+
* Additionally the level id will also be passed to the called function.
|
|
120
117
|
* @example
|
|
121
118
|
* // call myFunction () everytime a level is loaded
|
|
122
119
|
* me.game.onLevelLoaded = this.myFunction.bind(this);
|
|
@@ -130,7 +127,7 @@ export default class Application {
|
|
|
130
127
|
updateFrameRate(): void;
|
|
131
128
|
/**
|
|
132
129
|
* Returns the parent HTML Element holding the main canvas of this application
|
|
133
|
-
* @returns
|
|
130
|
+
* @returns the parent HTML element
|
|
134
131
|
*/
|
|
135
132
|
getParentElement(): HTMLElement;
|
|
136
133
|
/**
|
|
@@ -139,7 +136,7 @@ export default class Application {
|
|
|
139
136
|
repaint(): void;
|
|
140
137
|
/**
|
|
141
138
|
* update all objects related to this game active scene/stage
|
|
142
|
-
* @param
|
|
139
|
+
* @param time - current timestamp as provided by the RAF callback
|
|
143
140
|
*/
|
|
144
141
|
update(time: number): void;
|
|
145
142
|
/**
|
|
@@ -147,8 +144,4 @@ export default class Application {
|
|
|
147
144
|
*/
|
|
148
145
|
draw(): void;
|
|
149
146
|
}
|
|
150
|
-
import CanvasRenderer from "../video/canvas/canvas_renderer.js";
|
|
151
|
-
import type WebGLRenderer from "./../video/webgl/webgl_renderer.js";
|
|
152
|
-
import type Camera2d from "./../camera/camera2d.js";
|
|
153
|
-
import World from "../physics/world.js";
|
|
154
147
|
//# sourceMappingURL=application.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/application/application.
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AAEpD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAyBxC,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AAMnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,WAAW;IAC/B;;OAEG;IACH,aAAa,EAAG,WAAW,CAAC;IAE5B;;OAEG;IACH,QAAQ,EAAG,QAAQ,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAG,QAAQ,CAAC;IAEpB;;;OAGG;IACH,KAAK,EAAG,KAAK,CAAC;IAEd;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,QAAQ,EAAG,mBAAmB,GAAG;QAChC,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,OAAO,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;K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
1
|
-
|
|
2
|
-
* additional import for TypeScript
|
|
3
|
-
* @import Application from "./application.js";
|
|
4
|
-
*/
|
|
1
|
+
import type Application from "./application.ts";
|
|
5
2
|
/**
|
|
6
3
|
* display information
|
|
7
|
-
* @param
|
|
4
|
+
* @param app - the game application instance calling this function
|
|
8
5
|
*/
|
|
9
|
-
export function consoleHeader(app: Application): void;
|
|
10
|
-
import type Application from "./application.js";
|
|
6
|
+
export declare function consoleHeader(app: Application): void;
|
|
11
7
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../src/application/header.
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../src/application/header.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAEhD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CA8BpD"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type Application from "./application.ts";
|
|
1
2
|
/**
|
|
2
3
|
* callback for window resize event
|
|
3
|
-
* @
|
|
4
|
-
* @param {Application} game - the game application instance triggering the resize
|
|
4
|
+
* @param game - the game application instance triggering the resize
|
|
5
5
|
*/
|
|
6
|
-
export function onresize(game: Application): void;
|
|
7
|
-
import type Application from "./application.js";
|
|
6
|
+
export declare function onresize(game: Application): void;
|
|
8
7
|
//# sourceMappingURL=resize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../src/application/resize.
|
|
1
|
+
{"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../src/application/resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAkChD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CA4EhD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { RendererType } from "../const";
|
|
6
6
|
import Renderer from "../video/renderer";
|
|
7
|
-
import
|
|
7
|
+
import { Batcher } from "../video/webgl/batchers/batcher";
|
|
8
8
|
import { ScaleMethod } from "./scaleMethods";
|
|
9
9
|
type BlendMode = "normal" | "multiply" | "lighter" | "additive" | "screen";
|
|
10
10
|
type PhysicsType = "builtin" | "none";
|
|
@@ -71,9 +71,14 @@ export type ApplicationSettings = {
|
|
|
71
71
|
verbose: boolean;
|
|
72
72
|
legacy: boolean;
|
|
73
73
|
/**
|
|
74
|
-
* a custom
|
|
74
|
+
* a custom batcher class (WebGL only)
|
|
75
|
+
* @deprecated since 18.1.0 — use `batcher` instead
|
|
75
76
|
*/
|
|
76
|
-
compositor?:
|
|
77
|
+
compositor?: (new (renderer: any) => Batcher) | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* a custom batcher class (WebGL only)
|
|
80
|
+
*/
|
|
81
|
+
batcher?: (new (renderer: any) => Batcher) | undefined;
|
|
77
82
|
} & ({
|
|
78
83
|
parent: HTMLElement;
|
|
79
84
|
canvas?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/application/settings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/application/settings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,KAAK,SAAS,GAAG,Q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