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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../src/renderable/trigger.js"],"names":[],"mappings":"AAOA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../src/renderable/trigger.js"],"names":[],"mappings":"AAOA;;;GAGG;AAEH;;;GAGG;AACH;IACC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,eAxBW,MAAM,KACN,MAAM,YAEd;QAA0B,KAAK;QACL,MAAM;QACqB,MAAM;QACjC,QAAQ;QACF,KAAK,GAA7B,MAAM,GAAC,KAAK;QACM,KAAK;QACL,EAAE;QACQ,SAAS,GAArC,MAAM,GAAC,SAAS;QACI,QAAQ;QACT,OAAO;QACP,iBAAiB;KAC5C,EA+DF;IA9CA,UAAyB;IACzB,6BAAiC;IACjC,gBAAmB;IAInB,UAAyB;IACzB,QAAqB;IAGrB,8BAA4B;IAG5B;;MAGC;IAwBD,UAAiC;IAQlC;;OAEG;IACH;;MASC;IAED;;OAEG;IACH,uBAIC;IAED;;;OAGG;IACH,+BAqBC;CAcD;uBA1JsB,iBAAiB"}
|
|
@@ -1,105 +1,111 @@
|
|
|
1
|
+
import type Pointer from "./../../input/pointer.ts";
|
|
2
|
+
import type { Vector2d } from "../../math/vector2d.ts";
|
|
3
|
+
import Container from "../container.js";
|
|
1
4
|
/**
|
|
2
5
|
* This is a basic clickable and draggable container which you can use in your game UI.
|
|
3
6
|
* Use this for example if you want to display a panel that contains text, images or other UI elements.
|
|
7
|
+
* @category UI
|
|
4
8
|
*/
|
|
5
9
|
export default class UIBaseElement extends Container {
|
|
10
|
+
#private;
|
|
6
11
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
10
|
-
* @
|
|
11
|
-
* @param {number} h - height of the container
|
|
12
|
+
* UI base elements use screen coordinates by default
|
|
13
|
+
* (Note: any child elements added to a UIBaseElement should have their floating property to false)
|
|
14
|
+
* @see Renderable.floating
|
|
15
|
+
* @default true
|
|
12
16
|
*/
|
|
13
|
-
|
|
17
|
+
floating: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* object can be clicked or not
|
|
16
|
-
* @type {boolean}
|
|
17
20
|
* @default true
|
|
18
21
|
*/
|
|
19
22
|
isClickable: boolean;
|
|
20
23
|
/**
|
|
21
|
-
* object can be
|
|
22
|
-
* @type {boolean}
|
|
24
|
+
* object can be dragged or not
|
|
23
25
|
* @default false
|
|
24
26
|
*/
|
|
25
27
|
isDraggable: boolean;
|
|
26
28
|
/**
|
|
27
29
|
* Tap and hold threshold timeout in ms
|
|
28
|
-
* @type {number}
|
|
29
30
|
* @default 250
|
|
30
31
|
*/
|
|
31
32
|
holdThreshold: number;
|
|
32
33
|
/**
|
|
33
34
|
* object can be tap and hold
|
|
34
|
-
* @type {boolean}
|
|
35
35
|
* @default false
|
|
36
36
|
*/
|
|
37
37
|
isHoldable: boolean;
|
|
38
38
|
/**
|
|
39
39
|
* true if the pointer is over the object
|
|
40
|
-
* @type {boolean}
|
|
41
40
|
* @default false
|
|
42
41
|
*/
|
|
43
42
|
hover: boolean;
|
|
44
43
|
/**
|
|
45
44
|
* false if the pointer is down, or true when the pointer status is up
|
|
46
|
-
* @
|
|
47
|
-
* @default false
|
|
45
|
+
* @default true
|
|
48
46
|
*/
|
|
49
47
|
released: boolean;
|
|
50
48
|
holdTimeout: number;
|
|
49
|
+
grabOffset: Vector2d | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* @param x - The x position of the container
|
|
52
|
+
* @param y - The y position of the container
|
|
53
|
+
* @param w - width of the container
|
|
54
|
+
* @param h - height of the container
|
|
55
|
+
*/
|
|
56
|
+
constructor(x: number, y: number, w?: number, h?: number);
|
|
51
57
|
/**
|
|
52
58
|
* function callback for the pointerdown event
|
|
53
59
|
* @ignore
|
|
54
60
|
*/
|
|
55
|
-
clicked(event:
|
|
61
|
+
clicked(event: Pointer): boolean | void;
|
|
56
62
|
/**
|
|
57
63
|
* function called when the object is pressed (to be extended)
|
|
58
|
-
* @param
|
|
59
|
-
* @returns
|
|
64
|
+
* @param _event - the event object
|
|
65
|
+
* @returns return false if we need to stop propagating the event
|
|
60
66
|
*/
|
|
61
|
-
onClick(): boolean;
|
|
67
|
+
onClick(_event?: Pointer): boolean;
|
|
62
68
|
/**
|
|
63
69
|
* function callback for the pointerEnter event
|
|
64
70
|
* @ignore
|
|
65
71
|
*/
|
|
66
|
-
enter(event:
|
|
67
|
-
grabOffset: import("../../index.js").Vector2d | undefined;
|
|
72
|
+
enter(event: Pointer): void;
|
|
68
73
|
/**
|
|
69
74
|
* pointermove function
|
|
70
75
|
* @ignore
|
|
71
76
|
*/
|
|
72
|
-
pointerMove(event:
|
|
77
|
+
pointerMove(event: Pointer): void;
|
|
73
78
|
/**
|
|
74
79
|
* function called when the pointer is moved over the object
|
|
75
|
-
* @param
|
|
80
|
+
* @param _event - the event object
|
|
76
81
|
*/
|
|
77
|
-
onMove(): void;
|
|
82
|
+
onMove(_event?: Pointer): void;
|
|
78
83
|
/**
|
|
79
84
|
* function called when the pointer is over the object
|
|
80
|
-
* @param
|
|
85
|
+
* @param _event - the event object
|
|
81
86
|
*/
|
|
82
|
-
onOver(): void;
|
|
87
|
+
onOver(_event?: Pointer): void;
|
|
83
88
|
/**
|
|
84
89
|
* function callback for the pointerLeave event
|
|
85
90
|
* @ignore
|
|
86
91
|
*/
|
|
87
|
-
leave(event:
|
|
92
|
+
leave(event: Pointer): void;
|
|
88
93
|
/**
|
|
89
94
|
* function called when the pointer is leaving the object area
|
|
90
|
-
* @param
|
|
95
|
+
* @param _event - the event object
|
|
91
96
|
*/
|
|
92
|
-
onOut(): void;
|
|
97
|
+
onOut(_event?: Pointer): void;
|
|
93
98
|
/**
|
|
94
99
|
* function callback for the pointerup event
|
|
95
100
|
* @ignore
|
|
96
101
|
*/
|
|
97
|
-
release(event:
|
|
102
|
+
release(event: Pointer): boolean | void;
|
|
98
103
|
/**
|
|
99
104
|
* function called when the object is pressed and released (to be extended)
|
|
100
|
-
* @
|
|
105
|
+
* @param _event - the event object
|
|
106
|
+
* @returns return false if we need to stop propagating the event
|
|
101
107
|
*/
|
|
102
|
-
onRelease(): boolean;
|
|
108
|
+
onRelease(_event?: Pointer): boolean;
|
|
103
109
|
/**
|
|
104
110
|
* function callback for the tap and hold timer event
|
|
105
111
|
* @ignore
|
|
@@ -110,7 +116,15 @@ export default class UIBaseElement extends Container {
|
|
|
110
116
|
* to be extended <br>
|
|
111
117
|
*/
|
|
112
118
|
onHold(): void;
|
|
113
|
-
|
|
119
|
+
/**
|
|
120
|
+
* function called when added to the game world or a container
|
|
121
|
+
* @ignore
|
|
122
|
+
*/
|
|
123
|
+
onActivateEvent(): void;
|
|
124
|
+
/**
|
|
125
|
+
* function called when removed from the game world or a container
|
|
126
|
+
* @ignore
|
|
127
|
+
*/
|
|
128
|
+
onDeactivateEvent(): void;
|
|
114
129
|
}
|
|
115
|
-
import Container from "../container.js";
|
|
116
130
|
//# sourceMappingURL=uibaseelement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uibaseelement.d.ts","sourceRoot":"","sources":["../../../src/renderable/ui/uibaseelement.
|
|
1
|
+
{"version":3,"file":"uibaseelement.d.ts","sourceRoot":"","sources":["../../../src/renderable/ui/uibaseelement.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIvD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;;IAGnD;;;;;OAKG;IACM,QAAQ,UAAQ;IAEzB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAGlB,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,QAAQ,GAAG,SAAS,CAAC;IAEjC;;;;;OAKG;gBACS,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM;IAoBxD;;;OAGG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI;IAwBvC;;;;OAIG;IAEH,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAIlC;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAW3B;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAajC;;;OAGG;IAEH,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAI9B;;;OAGG;IAEH,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAI9B;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAa3B;;;OAGG;IAEH,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAI7B;;;OAGG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI;IAUvC;;;;OAIG;IAEH,SAAS,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAIpC;;;OAGG;IACH,IAAI,IAAI,IAAI;IASZ;;;OAGG;IACH,MAAM,IAAI,IAAI;IAEd;;;OAGG;IACM,eAAe,IAAI,IAAI;IAsBhC;;;OAGG;IACM,iBAAiB,IAAI,IAAI;CAyBlC"}
|
|
@@ -1,11 +1,44 @@
|
|
|
1
|
+
import type Pointer from "./../../input/pointer.ts";
|
|
2
|
+
import Sprite from "./../sprite.js";
|
|
1
3
|
/**
|
|
2
4
|
* This is a basic sprite based button which you can use in your Game UI.
|
|
5
|
+
* @category UI
|
|
3
6
|
*/
|
|
4
7
|
export default class UISpriteElement extends Sprite {
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
9
|
+
* if this UISpriteElement should use screen coordinates or local coordinates
|
|
10
|
+
* (Note: any UISpriteElement elements added to a floating parent container should have their floating property to false)
|
|
11
|
+
* @see Renderable.floating
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
floating: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* object can be clicked or not
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
isClickable: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Tap and hold threshold timeout in ms
|
|
22
|
+
* @default 250
|
|
23
|
+
*/
|
|
24
|
+
holdThreshold: number;
|
|
25
|
+
/**
|
|
26
|
+
* object can be tap and hold
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
isHoldable: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* true if the pointer is over the object
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
hover: boolean;
|
|
35
|
+
holdTimeout: number;
|
|
36
|
+
released: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @param x - the x coordinate of the UISpriteElement Object
|
|
39
|
+
* @param y - the y coordinate of the UISpriteElement Object
|
|
40
|
+
* @param settings - See {@link Sprite}
|
|
41
|
+
* @param settings.image - the image to use for the sprite
|
|
9
42
|
* @example
|
|
10
43
|
* // create a basic GUI Object
|
|
11
44
|
* class myButton extends UISpriteElement {
|
|
@@ -30,73 +63,52 @@ export default class UISpriteElement extends Sprite {
|
|
|
30
63
|
* // add the object at pos (10,10)
|
|
31
64
|
* world.addChild(new myButton(10,10));
|
|
32
65
|
*/
|
|
33
|
-
constructor(x: number, y: number, settings:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* @default true
|
|
38
|
-
*/
|
|
39
|
-
isClickable: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Tap and hold threshold timeout in ms
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @default 250
|
|
44
|
-
*/
|
|
45
|
-
holdThreshold: number;
|
|
46
|
-
/**
|
|
47
|
-
* object can be tap and hold
|
|
48
|
-
* @type {boolean}
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
isHoldable: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* true if the pointer is over the object
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
|
-
hover: boolean;
|
|
58
|
-
holdTimeout: number;
|
|
59
|
-
released: boolean;
|
|
66
|
+
constructor(x: number, y: number, settings: {
|
|
67
|
+
image: any;
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
});
|
|
60
70
|
/**
|
|
61
71
|
* function callback for the pointerdown event
|
|
62
72
|
* @ignore
|
|
63
73
|
*/
|
|
64
|
-
clicked(event:
|
|
74
|
+
clicked(event: Pointer): boolean | void;
|
|
65
75
|
/**
|
|
66
76
|
* function called when the object is pressed (to be extended)
|
|
67
|
-
* @
|
|
77
|
+
* @param _event - the event object
|
|
78
|
+
* @returns return false if we need to stop propagating the event
|
|
68
79
|
*/
|
|
69
|
-
onClick(): boolean;
|
|
80
|
+
onClick(_event?: Pointer): boolean;
|
|
70
81
|
/**
|
|
71
82
|
* function callback for the pointerEnter event
|
|
72
83
|
* @ignore
|
|
73
84
|
*/
|
|
74
|
-
enter(event:
|
|
85
|
+
enter(event: Pointer): void;
|
|
75
86
|
/**
|
|
76
87
|
* function called when the pointer is over the object
|
|
77
|
-
* @param
|
|
88
|
+
* @param _event - the event object
|
|
78
89
|
*/
|
|
79
|
-
onOver(): void;
|
|
90
|
+
onOver(_event?: Pointer): void;
|
|
80
91
|
/**
|
|
81
92
|
* function callback for the pointerLeave event
|
|
82
93
|
* @ignore
|
|
83
94
|
*/
|
|
84
|
-
leave(event:
|
|
95
|
+
leave(event: Pointer): void;
|
|
85
96
|
/**
|
|
86
97
|
* function called when the pointer is leaving the object area
|
|
87
|
-
* @param
|
|
98
|
+
* @param _event - the event object
|
|
88
99
|
*/
|
|
89
|
-
onOut(): void;
|
|
100
|
+
onOut(_event?: Pointer): void;
|
|
90
101
|
/**
|
|
91
102
|
* function callback for the pointerup event
|
|
92
103
|
* @ignore
|
|
93
104
|
*/
|
|
94
|
-
release(event:
|
|
105
|
+
release(event: Pointer): boolean | void;
|
|
95
106
|
/**
|
|
96
107
|
* function called when the object is pressed and released (to be extended)
|
|
97
|
-
* @
|
|
108
|
+
* @param _event - the event object
|
|
109
|
+
* @returns return false if we need to stop propagating the event
|
|
98
110
|
*/
|
|
99
|
-
onRelease(): boolean;
|
|
111
|
+
onRelease(_event?: Pointer): boolean;
|
|
100
112
|
/**
|
|
101
113
|
* function callback for the tap and hold timer event
|
|
102
114
|
* @ignore
|
|
@@ -118,5 +130,4 @@ export default class UISpriteElement extends Sprite {
|
|
|
118
130
|
*/
|
|
119
131
|
onDeactivateEvent(): void;
|
|
120
132
|
}
|
|
121
|
-
import Sprite from "./../sprite.js";
|
|
122
133
|
//# sourceMappingURL=uispriteelement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uispriteelement.d.ts","sourceRoot":"","sources":["../../../src/renderable/ui/uispriteelement.
|
|
1
|
+
{"version":3,"file":"uispriteelement.d.ts","sourceRoot":"","sources":["../../../src/renderable/ui/uispriteelement.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AAEpD,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,MAAM;IAClD;;;;;OAKG;IACM,QAAQ,UAAQ;IAEzB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,KAAK,EAAE,OAAO,CAAC;IAGf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;gBAEF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,QAAQ,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;IAgB7C;;;OAGG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI;IAoBvC;;;;OAIG;IAEH,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAIlC;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAM3B;;;OAGG;IAEH,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAI9B;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAO3B;;;OAGG;IAEH,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAI7B;;;OAGG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI;IAUvC;;;;OAIG;IAEH,SAAS,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAIpC;;;OAGG;IACH,IAAI,IAAI,IAAI;IASZ;;;OAGG;IACH,MAAM,IAAI,IAAI;IAEd;;;OAGG;IACH,eAAe,IAAI,IAAI;IAmBvB;;;OAGG;IACH,iBAAiB,IAAI,IAAI;CAUzB"}
|
|
@@ -1,109 +1,104 @@
|
|
|
1
|
+
import { RoundRect } from "../../geometries/roundrect.ts";
|
|
2
|
+
import type { Bounds } from "../../physics/bounds.ts";
|
|
3
|
+
import type Renderer from "../../video/renderer.js";
|
|
4
|
+
import BitmapText from "../text/bitmaptext.js";
|
|
5
|
+
import UIBaseElement from "./uibaseelement.ts";
|
|
6
|
+
interface UITextButtonSettings {
|
|
7
|
+
font?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
text?: string;
|
|
10
|
+
bindKey?: string | number;
|
|
11
|
+
hoverOffColor?: string;
|
|
12
|
+
hoverOnColor?: string;
|
|
13
|
+
borderStrokeColor?: string;
|
|
14
|
+
fillStyle?: string;
|
|
15
|
+
textAlign?: string;
|
|
16
|
+
textBaseline?: string;
|
|
17
|
+
borderWidth?: number;
|
|
18
|
+
borderHeight?: number;
|
|
19
|
+
/** @deprecated use hoverOffColor */
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
/** @deprecated use hoverOnColor */
|
|
22
|
+
hoverColor?: string;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
1
25
|
/**
|
|
2
26
|
* This is a basic base text button which you can use in your Game UI.
|
|
27
|
+
* @category UI
|
|
3
28
|
*/
|
|
4
29
|
export default class UITextButton extends UIBaseElement {
|
|
5
|
-
/**
|
|
6
|
-
* A Bitmap Text Button with an outlined background border, filled with background color.
|
|
7
|
-
* It uses a RoundRect as background and changes the background color on hovering over.
|
|
8
|
-
* The background will be drawn with 0.5 opacity, so that the background of the button is
|
|
9
|
-
* slightly shining through.
|
|
10
|
-
* @param {number} x - x pos of the button
|
|
11
|
-
* @param {number} y - y pos of the button
|
|
12
|
-
* @param {Object} settings - settings object
|
|
13
|
-
* @param {string} [settings.font] - The name of the BitmapText font to use
|
|
14
|
-
* @param {number} [settings.size=1] - The scale factor of the BitmapText
|
|
15
|
-
* @param {string} [settings.text] - The text to display
|
|
16
|
-
* @param {string} [settings.bindKey] - The key to bind the action to (default: none)
|
|
17
|
-
* @param {string} [settings.hoverOffColor="#00aa0080"] - The css value of a color to be used if the pointer is not hovering over the button
|
|
18
|
-
* @param {string} [settings.hoverOnColor="#00ff00ff"] - The css value of a color to be used if the pointer hovers over the button
|
|
19
|
-
* @param {string} [settings.borderStrokeColor="#000000"] - The css value of a color to be used to draw the border
|
|
20
|
-
* @param {string} [settings.fillStyle] - The css value of a tint color to be used to tint the BitmapText
|
|
21
|
-
* @param {string} [settings.textAlign="center"] - horizontal text alignment
|
|
22
|
-
* @param {string} [settings.textBaseline="middle"] - the text baseline
|
|
23
|
-
* @param {number} [settings.borderWidth] - Width of the button
|
|
24
|
-
* @param {number} [settings.borderHeight] - Height of the button
|
|
25
|
-
* @example
|
|
26
|
-
* // Create a new Button
|
|
27
|
-
* class PlayButton extends UITextButton {
|
|
28
|
-
* constructor(x,y) {
|
|
29
|
-
* super(x,y, {
|
|
30
|
-
* font: 'my-font',
|
|
31
|
-
* text: 'Play',
|
|
32
|
-
* // if you omit the next two, size is calculated by the size of the text
|
|
33
|
-
* borderWidth: 200,
|
|
34
|
-
* borderHeight: 20,
|
|
35
|
-
* backgroundColor: '#00aa0080',
|
|
36
|
-
* hoverColor: '#00ff00ff'
|
|
37
|
-
* });
|
|
38
|
-
* }
|
|
39
|
-
*
|
|
40
|
-
* onClick(){
|
|
41
|
-
* state.change(state.PLAY);
|
|
42
|
-
* }
|
|
43
|
-
* }
|
|
44
|
-
*
|
|
45
|
-
* world.addChild(new PlayButton(15,200));
|
|
46
|
-
*/
|
|
47
|
-
constructor(x: number, y: number, settings: {
|
|
48
|
-
font?: string | undefined;
|
|
49
|
-
size?: number | undefined;
|
|
50
|
-
text?: string | undefined;
|
|
51
|
-
bindKey?: string | undefined;
|
|
52
|
-
hoverOffColor?: string | undefined;
|
|
53
|
-
hoverOnColor?: string | undefined;
|
|
54
|
-
borderStrokeColor?: string | undefined;
|
|
55
|
-
fillStyle?: string | undefined;
|
|
56
|
-
textAlign?: string | undefined;
|
|
57
|
-
textBaseline?: string | undefined;
|
|
58
|
-
borderWidth?: number | undefined;
|
|
59
|
-
borderHeight?: number | undefined;
|
|
60
|
-
});
|
|
61
30
|
/**
|
|
62
31
|
* The key to bind the action to
|
|
63
|
-
* @type {string}
|
|
64
32
|
*/
|
|
65
|
-
bindKey: string;
|
|
33
|
+
bindKey: string | number;
|
|
66
34
|
/**
|
|
67
|
-
* The css value of a color to be used if the pointer is
|
|
68
|
-
* @type {string}
|
|
35
|
+
* The css value of a color to be used if the pointer is not hovering over the button
|
|
69
36
|
*/
|
|
70
37
|
hoverOffColor: string;
|
|
71
38
|
/**
|
|
72
39
|
* The css value of a color to be used if the pointer hovers over the button
|
|
73
|
-
* @type {string}
|
|
74
40
|
*/
|
|
75
41
|
hoverOnColor: string;
|
|
76
42
|
/**
|
|
77
43
|
* The css value of a color to be used to draw the border
|
|
78
|
-
* @type {string}
|
|
79
44
|
*/
|
|
80
45
|
borderStrokeColor: string;
|
|
81
46
|
/**
|
|
82
47
|
* Set the default text alignment (or justification),<br>
|
|
83
48
|
* possible values are "left", "right", and "center".
|
|
84
|
-
* @public
|
|
85
|
-
* @type {string}
|
|
86
49
|
* @default "center"
|
|
87
50
|
*/
|
|
88
|
-
|
|
51
|
+
textAlign: string;
|
|
89
52
|
/**
|
|
90
53
|
* Set the text baseline (e.g. the Y-coordinate for the draw operation), <br>
|
|
91
|
-
* possible values are "top", "hanging, "middle, "alphabetic, "ideographic, "bottom"<br>
|
|
92
|
-
* @public
|
|
93
|
-
* @type {string}
|
|
54
|
+
* possible values are "top", "hanging", "middle", "alphabetic", "ideographic", "bottom"<br>
|
|
94
55
|
* @default "middle"
|
|
95
56
|
*/
|
|
96
|
-
|
|
57
|
+
textBaseline: string;
|
|
97
58
|
/**
|
|
98
59
|
* the bitmapText used by the UITextButton class
|
|
99
|
-
* @type {BitmapText}
|
|
100
60
|
*/
|
|
101
61
|
bitmapText: BitmapText;
|
|
102
|
-
|
|
62
|
+
/**
|
|
63
|
+
* the measured text dimensions
|
|
64
|
+
*/
|
|
65
|
+
dimensions: Bounds;
|
|
66
|
+
/**
|
|
67
|
+
* the round rect border
|
|
68
|
+
*/
|
|
103
69
|
border: RoundRect;
|
|
104
|
-
|
|
70
|
+
/**
|
|
71
|
+
* A Bitmap Text Button with an outlined background border, filled with background color.
|
|
72
|
+
* It uses a RoundRect as background and changes the background color on hovering over.
|
|
73
|
+
* The background will be drawn with 0.5 opacity, so that the background of the button is
|
|
74
|
+
* slightly shining through.
|
|
75
|
+
* @param x - x pos of the button
|
|
76
|
+
* @param y - y pos of the button
|
|
77
|
+
* @param settings - settings object
|
|
78
|
+
* @example
|
|
79
|
+
* // Create a new Button
|
|
80
|
+
* class PlayButton extends UITextButton {
|
|
81
|
+
* constructor(x,y) {
|
|
82
|
+
* super(x,y, {
|
|
83
|
+
* font: 'my-font',
|
|
84
|
+
* text: 'Play',
|
|
85
|
+
* // if you omit the next two, size is calculated by the size of the text
|
|
86
|
+
* borderWidth: 200,
|
|
87
|
+
* borderHeight: 20,
|
|
88
|
+
* backgroundColor: '#00aa0080',
|
|
89
|
+
* hoverColor: '#00ff00ff'
|
|
90
|
+
* });
|
|
91
|
+
* }
|
|
92
|
+
*
|
|
93
|
+
* onClick(){
|
|
94
|
+
* state.change(state.PLAY);
|
|
95
|
+
* }
|
|
96
|
+
* }
|
|
97
|
+
*
|
|
98
|
+
* world.addChild(new PlayButton(15,200));
|
|
99
|
+
*/
|
|
100
|
+
constructor(x: number, y: number, settings: UITextButtonSettings);
|
|
101
|
+
draw(renderer: Renderer): void;
|
|
105
102
|
}
|
|
106
|
-
|
|
107
|
-
import BitmapText from "../text/bitmaptext.js";
|
|
108
|
-
import { RoundRect } from "../../geometries/roundrect.ts";
|
|
103
|
+
export {};
|
|
109
104
|
//# sourceMappingURL=uitextbutton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uitextbutton.d.ts","sourceRoot":"","sources":["../../../src/renderable/ui/uitextbutton.
|
|
1
|
+
{"version":3,"file":"uitextbutton.d.ts","sourceRoot":"","sources":["../../../src/renderable/ui/uitextbutton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAE/C,UAAU,oBAAoB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAa;IACtD;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;IAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;gBACS,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB;IAgDvD,IAAI,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;CAYvC"}
|
package/build/state/stage.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* a default "Stage" object.
|
|
3
3
|
* every "stage" object (title screen, credits, ingame, etc...) to be managed
|
|
4
4
|
* through the state manager must inherit from this base class.
|
|
5
|
+
* @category Application
|
|
5
6
|
* @see state
|
|
6
7
|
*/
|
|
7
8
|
export default class Stage {
|
|
@@ -112,6 +113,6 @@ export default class Stage {
|
|
|
112
113
|
*/
|
|
113
114
|
onDestroyEvent(...args: any[]): void;
|
|
114
115
|
}
|
|
115
|
-
import Camera2d from "./../camera/camera2d.
|
|
116
|
+
import Camera2d from "./../camera/camera2d.ts";
|
|
116
117
|
import { Color } from "./../math/color.ts";
|
|
117
118
|
//# sourceMappingURL=stage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../src/state/stage.js"],"names":[],"mappings":"AAaA
|
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../src/state/stage.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH;IACC;;;;;OAKG;IACH,uBAJG;QAA8B,OAAO;QACT,YAAY;QACZ,cAAc;KAC5C,EAuDA;IArDA;;;;;;;;OAQG;IACH,mCAAwB;IAExB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,iCAAuB;IAEvB;;;;;;;;OAQG;IACH,qBANU,KAAK,CAM0B;IAEzC;;;;;;OAMG;IACH,iBAFU,MAAM,CAE+C;IAGhE;;;OAGG;IACH,4BAsBC;IAED;;;;;;;OAOG;IACH,WAHW,MAAM,GACJ,OAAO,CAqBnB;IAED;;;;;;;OAOG;IACH,eAHW,QAAQ,SACR,KAAK,QA+Bf;IAED;;;OAGG;IACH,8BAUC;IAED;;;;;;;;OAQG;IACH,mCAKC;IAED;;;;;OAKG;IACH,qCAKC;CACD;qBA/NoB,yBAAyB;sBACxB,oBAAoB"}
|