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,24 +1,41 @@
|
|
|
1
|
+
import type { Vector2d } from "../math/vector2d.ts";
|
|
2
|
+
import Pointer from "./pointer.ts";
|
|
3
|
+
/**
|
|
4
|
+
* the default target element for pointer events (usually the canvas element in which the game is rendered)
|
|
5
|
+
*/
|
|
6
|
+
export declare let pointerEventTarget: EventTarget | null;
|
|
7
|
+
/**
|
|
8
|
+
* Pointer information (current position and size)
|
|
9
|
+
*/
|
|
10
|
+
export declare const pointer: Pointer;
|
|
11
|
+
/**
|
|
12
|
+
* indicates if the pointer is currently locked
|
|
13
|
+
*/
|
|
14
|
+
export declare let locked: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* time interval for event throttling in milliseconds<br>
|
|
17
|
+
* default value : "1000/me.timer.maxfps" ms<br>
|
|
18
|
+
* set to 0 ms to disable the feature
|
|
19
|
+
*/
|
|
20
|
+
export declare let throttlingInterval: number | undefined;
|
|
1
21
|
/**
|
|
2
22
|
* return true if there are pending pointer events in the queue
|
|
3
|
-
* @memberof input
|
|
4
23
|
* @returns true if there are pending events
|
|
5
24
|
*/
|
|
6
|
-
export function hasActiveEvents(): boolean;
|
|
25
|
+
export declare function hasActiveEvents(): boolean;
|
|
7
26
|
/**
|
|
8
27
|
* return true if there are register pointer events
|
|
9
|
-
* @memberof input
|
|
10
28
|
* @see {@link registerPointerEvent}
|
|
11
29
|
* @returns true if there are pending events
|
|
12
30
|
*/
|
|
13
|
-
export function hasRegisteredEvents(): boolean;
|
|
31
|
+
export declare function hasRegisteredEvents(): boolean;
|
|
14
32
|
/**
|
|
15
33
|
* Translate the specified x and y values from the global (absolute)
|
|
16
34
|
* coordinate to local (viewport) relative coordinate.
|
|
17
|
-
* @
|
|
18
|
-
* @param
|
|
19
|
-
* @param
|
|
20
|
-
* @
|
|
21
|
-
* @returns {Vector2d} A vector object with the corresponding translated coordinates
|
|
35
|
+
* @param x - the global x coordinate to be translated.
|
|
36
|
+
* @param y - the global y coordinate to be translated.
|
|
37
|
+
* @param v - an optional vector object where to set the translated coordinates
|
|
38
|
+
* @returns A vector object with the corresponding translated coordinates
|
|
22
39
|
* @example
|
|
23
40
|
* onMouseEvent : function (pointer) {
|
|
24
41
|
* // convert the given into local (viewport) relative coordinates
|
|
@@ -26,24 +43,21 @@ export function hasRegisteredEvents(): boolean;
|
|
|
26
43
|
* // do something with pos !
|
|
27
44
|
* };
|
|
28
45
|
*/
|
|
29
|
-
export function globalToLocal(x: number, y: number, v?: Vector2d): Vector2d;
|
|
46
|
+
export declare function globalToLocal(x: number, y: number, v?: Vector2d): Vector2d;
|
|
30
47
|
/**
|
|
31
48
|
* enable/disable all gestures on the given element.<br>
|
|
32
49
|
* by default melonJS will disable browser handling of all panning and zooming gestures.
|
|
33
|
-
* @memberof input
|
|
34
50
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action}
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
51
|
+
* @param element - the HTML element to configure
|
|
52
|
+
* @param value - the touch-action CSS value
|
|
37
53
|
*/
|
|
38
|
-
export function setTouchAction(element: HTMLCanvasElement, value?: string): void;
|
|
54
|
+
export declare function setTouchAction(element: HTMLCanvasElement, value?: string): void;
|
|
39
55
|
/**
|
|
40
56
|
* Associate a pointer event to a keycode<br>
|
|
41
|
-
* Left button
|
|
42
|
-
* Middle button
|
|
43
|
-
* Right button
|
|
44
|
-
* @
|
|
45
|
-
* @param {number} [button=input.pointer.LEFT] - (accordingly to W3C values : 0,1,2 for left, middle and right buttons)
|
|
46
|
-
* @param {input.KEY} keyCode
|
|
57
|
+
* Left button -- 0
|
|
58
|
+
* Middle button -- 1
|
|
59
|
+
* Right button -- 2
|
|
60
|
+
* @param args - button and/or keyCode
|
|
47
61
|
* @example
|
|
48
62
|
* // enable the keyboard
|
|
49
63
|
* me.input.bindKey(me.input.KEY.X, "shoot");
|
|
@@ -52,22 +66,20 @@ export function setTouchAction(element: HTMLCanvasElement, value?: string): void
|
|
|
52
66
|
* // map the right button click on the X key
|
|
53
67
|
* me.input.bindPointer(me.input.pointer.RIGHT, me.input.KEY.X);
|
|
54
68
|
*/
|
|
55
|
-
export function bindPointer(...args:
|
|
69
|
+
export declare function bindPointer(...args: number[]): void;
|
|
56
70
|
/**
|
|
57
71
|
* unbind the defined keycode
|
|
58
|
-
* @
|
|
59
|
-
* @param {number} [button=input.pointer.LEFT] - (accordingly to W3C values : 0,1,2 for left, middle and right buttons)
|
|
72
|
+
* @param button - (accordingly to W3C values : 0,1,2 for left, middle and right buttons)
|
|
60
73
|
* @example
|
|
61
74
|
* me.input.unbindPointer(me.input.pointer.LEFT);
|
|
62
75
|
*/
|
|
63
|
-
export function unbindPointer(button?: number): void;
|
|
76
|
+
export declare function unbindPointer(button?: number): void;
|
|
64
77
|
/**
|
|
65
78
|
* allows registration of event listeners on the object target. <br>
|
|
66
79
|
* melonJS will pass a me.Pointer object to the defined callback.
|
|
67
80
|
* @see Pointer
|
|
68
81
|
* @see {@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events | W3C Pointer Event list}
|
|
69
|
-
* @
|
|
70
|
-
* @param {string} eventType - The event type for which the object is registering <br>
|
|
82
|
+
* @param eventType - The event type for which the object is registering <br>
|
|
71
83
|
* melonJS currently supports: <br>
|
|
72
84
|
* <ul>
|
|
73
85
|
* <li><code>"pointermove"</code></li>
|
|
@@ -79,8 +91,8 @@ export function unbindPointer(button?: number): void;
|
|
|
79
91
|
* <li><code>"pointercancel"</code></li>
|
|
80
92
|
* <li><code>"wheel"</code></li>
|
|
81
93
|
* </ul>
|
|
82
|
-
* @param
|
|
83
|
-
* @param
|
|
94
|
+
* @param region - a shape representing the region to register on
|
|
95
|
+
* @param callback - methods to be called when the event occurs.
|
|
84
96
|
* Returning `false` from the defined callback will prevent the event to be propagated to other objects
|
|
85
97
|
* @example
|
|
86
98
|
* // onActivate function
|
|
@@ -97,33 +109,30 @@ export function unbindPointer(button?: number): void;
|
|
|
97
109
|
* return false;
|
|
98
110
|
* },
|
|
99
111
|
*/
|
|
100
|
-
export function registerPointerEvent(eventType: string, region:
|
|
112
|
+
export declare function registerPointerEvent(eventType: string, region: any, callback: (pointer: Pointer) => boolean | void): void;
|
|
101
113
|
/**
|
|
102
114
|
* allows the removal of event listeners from the object target.
|
|
103
115
|
* @see {@link http://www.w3.org/TR/pointerevents/#list-of-pointer-events|W3C Pointer Event list}
|
|
104
|
-
* @
|
|
105
|
-
* @param
|
|
106
|
-
* @param
|
|
107
|
-
* @param {Function} [callback="all"] - if specified unregister the event only for the specific callback
|
|
116
|
+
* @param eventType - The event type for which the object was registered. See {@link input.registerPointerEvent}
|
|
117
|
+
* @param region - the registered region to release for this event
|
|
118
|
+
* @param callback - if specified unregister the event only for the specific callback
|
|
108
119
|
* @example
|
|
109
120
|
* // release the registered region on the 'pointerdown' event
|
|
110
121
|
* me.input.releasePointerEvent('pointerdown', this);
|
|
111
122
|
*/
|
|
112
|
-
export function releasePointerEvent(eventType: string, region:
|
|
123
|
+
export declare function releasePointerEvent(eventType: string, region: any, callback?: (pointer: Pointer) => boolean | void): void;
|
|
113
124
|
/**
|
|
114
125
|
* allows the removal of all registered event listeners from the object target.
|
|
115
|
-
* @
|
|
116
|
-
* @param {Rect|Polygon|Line|Ellipse} region - the registered region to release event from
|
|
126
|
+
* @param region - the registered region to release event from
|
|
117
127
|
* @example
|
|
118
128
|
* // release all registered event on the
|
|
119
129
|
* me.input.releaseAllPointerEvents(this);
|
|
120
130
|
*/
|
|
121
|
-
export function releaseAllPointerEvents(region:
|
|
131
|
+
export declare function releaseAllPointerEvents(region: any): void;
|
|
122
132
|
/**
|
|
123
133
|
* request for the pointer to be locked on the parent DOM element.
|
|
124
134
|
* (Must be called in a click event or an event that requires user interaction)
|
|
125
|
-
* @
|
|
126
|
-
* @returns {boolean} return true if the request was successfully submitted
|
|
135
|
+
* @returns return true if the request was successfully submitted
|
|
127
136
|
* @example
|
|
128
137
|
* // register on the pointer lock change event
|
|
129
138
|
* event.on(event.POINTERLOCKCHANGE, (locked)=> {
|
|
@@ -132,47 +141,10 @@ export function releaseAllPointerEvents(region: Rect | Polygon | Line | Ellipse)
|
|
|
132
141
|
* // request for pointer lock
|
|
133
142
|
* me.input.requestPointerLock();
|
|
134
143
|
*/
|
|
135
|
-
export function requestPointerLock(): boolean;
|
|
144
|
+
export declare function requestPointerLock(): boolean;
|
|
136
145
|
/**
|
|
137
146
|
* Initiates an exit from pointer lock state
|
|
138
|
-
* @
|
|
139
|
-
* @returns {boolean} return true if the request was successfully submitted
|
|
140
|
-
*/
|
|
141
|
-
export function exitPointerLock(): boolean;
|
|
142
|
-
/**
|
|
143
|
-
* the default target element for pointer events (usually the canvas element in which the game is rendered)
|
|
144
|
-
* @public
|
|
145
|
-
* @type {EventTarget}
|
|
146
|
-
* @name pointerEventTarget
|
|
147
|
-
* @memberof input
|
|
148
|
-
*/
|
|
149
|
-
export let pointerEventTarget: EventTarget;
|
|
150
|
-
/**
|
|
151
|
-
* Pointer information (current position and size)
|
|
152
|
-
* @public
|
|
153
|
-
* @type {Rect}
|
|
154
|
-
* @name pointer
|
|
155
|
-
* @memberof input
|
|
156
|
-
*/
|
|
157
|
-
export const pointer: Rect;
|
|
158
|
-
/**
|
|
159
|
-
* indicates if the pointer is currently locked
|
|
160
|
-
* @public
|
|
161
|
-
* @type {boolean}
|
|
162
|
-
* @name locked
|
|
163
|
-
* @memberof input
|
|
164
|
-
*/
|
|
165
|
-
export let locked: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* time interval for event throttling in milliseconds<br>
|
|
168
|
-
* default value : "1000/me.timer.maxfps" ms<br>
|
|
169
|
-
* set to 0 ms to disable the feature
|
|
170
|
-
* @public
|
|
171
|
-
* @type {number}
|
|
172
|
-
* @name throttlingInterval
|
|
173
|
-
* @memberof input
|
|
147
|
+
* @returns return true if the request was successfully submitted
|
|
174
148
|
*/
|
|
175
|
-
export
|
|
176
|
-
import type { Vector2d } from "../math/vector2d.js";
|
|
177
|
-
import { Rect } from "./../geometries/rectangle.ts";
|
|
149
|
+
export declare function exitPointerLock(): boolean;
|
|
178
150
|
//# sourceMappingURL=pointerevent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pointerevent.d.ts","sourceRoot":"","sources":["../../src/input/pointerevent.
|
|
1
|
+
{"version":3,"file":"pointerevent.d.ts","sourceRoot":"","sources":["../../src/input/pointerevent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAcpD,OAAO,OAAO,MAAM,cAAc,CAAC;AAmhBnC;;GAEG;AACH,eAAO,IAAI,kBAAkB,EAAE,WAAW,GAAG,IAAW,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,OAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,IAAI,MAAM,EAAE,OAAe,CAAC;AAEnC;;;;GAIG;AACH,eAAO,IAAI,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;AAElD;;;GAGG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAY1E;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC7B,OAAO,EAAE,iBAAiB,EAC1B,KAAK,CAAC,EAAE,MAAM,GACZ,IAAI,CAEN;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAanD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAGnD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,oBAAoB,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,GAAG,IAAI,GAC5C,IAAI,CAsCN;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAClC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,GAAG,EACX,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,GAAG,IAAI,GAC7C,IAAI,CAiCN;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CAMzD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAO5C;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAMzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/lang/console.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oCAJW,MAAM,eACN,MAAM,WACN,MAAM,
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/lang/console.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oCAJW,MAAM,eACN,MAAM,WACN,MAAM,QAyBhB"}
|
|
@@ -19,6 +19,33 @@ export class CanvasTexture extends CanvasRenderTarget {
|
|
|
19
19
|
antiAlias?: boolean | undefined;
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated since 18.1.0
|
|
24
|
+
* @see Batcher
|
|
25
|
+
*/
|
|
26
|
+
export class Compositor extends Batcher {
|
|
27
|
+
/** @param {any[]} args */
|
|
28
|
+
constructor(...args: any[]);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated since 18.1.0
|
|
32
|
+
* @see PrimitiveBatcher
|
|
33
|
+
*/
|
|
34
|
+
export class PrimitiveCompositor extends PrimitiveBatcher {
|
|
35
|
+
/** @param {any[]} args */
|
|
36
|
+
constructor(...args: any[]);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated since 18.1.0
|
|
40
|
+
* @see QuadBatcher
|
|
41
|
+
*/
|
|
42
|
+
export class QuadCompositor extends QuadBatcher {
|
|
43
|
+
/** @param {any[]} args */
|
|
44
|
+
constructor(...args: any[]);
|
|
45
|
+
}
|
|
22
46
|
export * as Math from "./../math/math.ts";
|
|
23
47
|
import CanvasRenderTarget from "../video/rendertarget/canvasrendertarget.js";
|
|
48
|
+
import { Batcher } from "../video/webgl/batchers/batcher.js";
|
|
49
|
+
import PrimitiveBatcher from "../video/webgl/batchers/primitive_batcher.js";
|
|
50
|
+
import QuadBatcher from "../video/webgl/batchers/quad_batcher.js";
|
|
24
51
|
//# sourceMappingURL=deprecated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../../src/lang/deprecated.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../../src/lang/deprecated.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH;IACC;;;;;;;;OAQG;IACH,mBARW,MAAM,UACN,MAAM,cAEd;QAA6B,OAAO;QACP,eAAe;QACf,kBAAkB;QAClB,SAAS;KACxC,EAIA;CACD;AA4BD;;;GAGG;AACH;IACC,0BAA0B;IAC1B,qBADY,GAAG,EAAE,EAIhB;CACD;AAED;;;GAGG;AACH;IACC,0BAA0B;IAC1B,qBADY,GAAG,EAAE,EAIhB;CACD;AAED;;;GAGG;AACH;IACC,0BAA0B;IAC1B,qBADY,GAAG,EAAE,EAIhB;CACD;;+BA3F8B,6CAA6C;wBACpD,oCAAoC;6BAC/B,8CAA8C;wBACnD,yCAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TMXGroup.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXGroup.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;IACC,
|
|
1
|
+
{"version":3,"file":"TMXGroup.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXGroup.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;IACC,yCAsFC;IArFA;;;OAGG;IACH,MAFU,MAAM,CAEK;IAErB;;;OAGG;IACH,OAFU,MAAM,CAEY;IAE5B;;;OAGG;IACH,QAFU,MAAM,CAEc;IAE9B;;;OAGG;IACH,WAFU,MAAM,CAEe;IAE/B;;;OAGG;IACH,OAFU,MAAM,CAEO;IAEvB;;;OAGG;IACH,GAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,SAFU,MAAM,EAAE,CAED;IAGjB,gBAA2E;IAE3E;;;OAGG;IACH,WAFU,MAAM,CAE0B;IAqC3C;;;OAGG;IACH,gBAGC;IAED;;;OAGG;IACH,yBAEC;IAED;;;OAGG;IACH,mCAEC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TMXLayer.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXLayer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TMXLayer.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXLayer.js"],"names":[],"mappings":"AAuDA;;;;GAIG;AACH;IACC;;;;;;;;OAQG;IACH,iBARW,MAAM,QACN,MAAM,aACN,MAAM,cACN,MAAM,eACN,MAAM,YACN,eAAe,KACf,MAAM,EA4IhB;IArIA,eAA4C;IAC5C,gBAA+C;IAG/C,oBAA8B;IAE9B;;;;OAIG;IACH,GAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,GAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,UAFU,eAAe,CAED;IAGxB,aAAwE;IAGxE;;;MAGC;IAaD;;;OAGG;IACH,kBAFU,UAAU,EAAE,CAEI;IAE1B;;;OAGG;IACH,YAFU,OAAO,CAEM;IAEvB;;;;;OAKG;IACH,aAHU,MAAM,CAGmC;IAEnD;;;OAGG;IACH,OAFU,MAAM,CAEO;IASvB,UAAqB;IACrB,aAAuB;IACvB,aAAwB;IA+BxB,iBAAgD;IAwBjD,wBAqCC;IAnBC,eAA0D;IAQ1D,2CAKE;IASJ,0BAKC;IAED;;;;;;;OAOG;IACH,sBANW,WAAW,QASrB;IAFA,cAAwB;IAIzB;;;OAGG;IACH,eAFa,WAAW,CAIvB;IAED;;;;;OAKG;IACH,aAJW,MAAM,KACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;OAUG;IACH,WATW,MAAM,KACN,MAAM,GACJ,IAAI,CAoBhB;IAED;;;;;;OAMG;IACH,cALW,IAAI,KACJ,MAAM,KACN,MAAM,GACJ,IAAI,CAMhB;IAED;;;;;;OAMG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,GACJ,IAAI,CAQhB;IAED;;;;;;;;;OASG;IACH,UARW,MAAM,KACN,MAAM,gBACN,MAAM,GACJ,IAAI,CAmBhB;IAED;;;;;;;;;OASG;IACH,aARW,MAAM,KACN,MAAM,QAoBhB;IAED;;;OAGG;IACH,yBAQC;IAED;;;OAGG;IACH,qCAwBC;CACD;uBArbsB,kCAAkC;2BAC9B,sCAAsC;iBAEhD,cAAc"}
|
|
@@ -74,6 +74,16 @@ export default class TMXObject {
|
|
|
74
74
|
* @type {number}
|
|
75
75
|
*/
|
|
76
76
|
rotation: number;
|
|
77
|
+
/**
|
|
78
|
+
* the object opacity (0-1), defaults to 1 (since Tiled 1.12)
|
|
79
|
+
* @type {number}
|
|
80
|
+
*/
|
|
81
|
+
opacity: number;
|
|
82
|
+
/**
|
|
83
|
+
* whether the object is visible, defaults to true
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
*/
|
|
86
|
+
visible: boolean;
|
|
77
87
|
/**
|
|
78
88
|
* object unique identifier per level (Tiled 0.11.x+)
|
|
79
89
|
* @type {number}
|
|
@@ -90,24 +100,19 @@ export default class TMXObject {
|
|
|
90
100
|
*/
|
|
91
101
|
shapes: object[];
|
|
92
102
|
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {
|
|
103
|
+
* the detected shape type
|
|
104
|
+
* @type {string}
|
|
95
105
|
*/
|
|
106
|
+
shapeType: string;
|
|
107
|
+
/** @type {boolean} */
|
|
96
108
|
isEllipse: boolean;
|
|
97
|
-
/**
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
*/
|
|
109
|
+
/** @type {boolean} */
|
|
110
|
+
isCapsule: boolean;
|
|
111
|
+
/** @type {boolean} */
|
|
101
112
|
isPoint: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* if true, the object is a Polygon
|
|
104
|
-
* @type {boolean}
|
|
105
|
-
*/
|
|
113
|
+
/** @type {boolean} */
|
|
106
114
|
isPolygon: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* if true, the object is a PolyLine
|
|
109
|
-
* @type {boolean}
|
|
110
|
-
*/
|
|
115
|
+
/** @type {boolean} */
|
|
111
116
|
isPolyLine: boolean;
|
|
112
117
|
/**
|
|
113
118
|
* set the object image (for Tiled Object)
|
|
@@ -118,9 +123,9 @@ export default class TMXObject {
|
|
|
118
123
|
frameheight: any;
|
|
119
124
|
tile: Tile | undefined;
|
|
120
125
|
/**
|
|
121
|
-
* parses the TMX shape definition and returns a corresponding array of
|
|
126
|
+
* parses the TMX shape definition and returns a corresponding array of shape objects
|
|
122
127
|
* @private
|
|
123
|
-
* @returns {Polygon[]|Line[]|Ellipse[]} an array of shape objects
|
|
128
|
+
* @returns {Polygon[]|Line[]|Ellipse[]|RoundRect[]} an array of shape objects
|
|
124
129
|
*/
|
|
125
130
|
private parseTMXShapes;
|
|
126
131
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TMXObject.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXObject.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TMXObject.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXObject.js"],"names":[],"mappings":"AAoCA;;;;GAIG;AACH;IACC,6CAmKC;IAlKA;;;OAGG;IACH,QAFU,MAAM,EAAE,CAEK;IAEvB;;;OAGG;IACH,MAFU,MAAM,CAES;IAEzB;;;OAGG;IACH,GAFU,MAAM,CAEI;IAEpB;;;OAGG;IACH,GAFU,MAAM,CAEI;IAEpB;;;OAGG;IACH,GAFU,MAAM,CAEL;IAEX;;;OAGG;IACH,OAFU,MAAM,CAEiB;IAEjC;;;OAGG;IACH,QAFU,MAAM,CAEmB;IAEnC;;;;OAIG;IACH,KAFU,MAAM,CAEgB;IAEhC;;;OAGG;IACH,WAFU,MAAM,CAEmB;IAEnC;;;;;OAKG;IACH,MAJU,MAAM,CAIS;IAEzB;;;OAGG;IACH,OAFU,MAAM,CAE4B;IAE5C;;;;OAIG;IACH,MAHU,MAAM,CAGK;IAErB;;;OAGG;IACH,UAFU,MAAM,CAEiC;IAEjD;;;OAGG;IACH,SAFU,MAAM,CAEuB;IAEvC;;;OAGG;IACH,SAFU,OAAO,CAE4B;IAE7C;;;OAGG;IACH,IAFU,MAAM,CAEmB;IAEnC;;;OAGG;IACH,aAFU,MAAM,CAEkB;IAElC;;;OAGG;IACH,QAFU,MAAM,EAAE,CAEK;IAEvB;;;OAGG;IACH,WAFU,MAAM,CAEY;IAa5B,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,SADW,OAAO,CACuB;IACzC,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,YADW,OAAO,CAC6B;IA0BhD;;;OAGG;IACH,6BASC;IALc,gBAAmC;IAClC,iBAAqC;IAGpD,uBAAuD;IAGxD;;;;OAIG;IACH,uBAuGC;IAED;;;OAGG;IACH,wCAEC;CACD;iBA5UgB,cAAc"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* a basic tile object
|
|
3
|
+
* @category Tilemap
|
|
3
4
|
*/
|
|
4
5
|
export default class Tile extends Bounds {
|
|
5
6
|
/**
|
|
@@ -10,19 +11,28 @@ export default class Tile extends Bounds {
|
|
|
10
11
|
*/
|
|
11
12
|
constructor(x: number, y: number, gid: number, tileset: TMXTileset);
|
|
12
13
|
/**
|
|
13
|
-
* tileset
|
|
14
|
+
* the corresponding tileset
|
|
14
15
|
* @type {TMXTileset}
|
|
15
16
|
*/
|
|
16
17
|
tileset: TMXTileset;
|
|
17
18
|
/**
|
|
18
|
-
* the tile transformation matrix (if
|
|
19
|
+
* the tile transformation matrix (if flipped)
|
|
20
|
+
* @type {Matrix2d|null}
|
|
19
21
|
* @ignore
|
|
20
22
|
*/
|
|
21
23
|
currentTransform: Matrix2d | null;
|
|
24
|
+
/**
|
|
25
|
+
* tile column position in the map
|
|
26
|
+
* @type {number}
|
|
27
|
+
*/
|
|
22
28
|
col: number;
|
|
29
|
+
/**
|
|
30
|
+
* tile row position in the map
|
|
31
|
+
* @type {number}
|
|
32
|
+
*/
|
|
23
33
|
row: number;
|
|
24
34
|
/**
|
|
25
|
-
*
|
|
35
|
+
* the global tile ID (with flip bits cleared)
|
|
26
36
|
* @type {number}
|
|
27
37
|
*/
|
|
28
38
|
tileId: number;
|
|
@@ -48,9 +58,10 @@ export default class Tile extends Bounds {
|
|
|
48
58
|
flipped: boolean;
|
|
49
59
|
/**
|
|
50
60
|
* set the transformation matrix for this tile
|
|
61
|
+
* @param {Matrix2d} transform - the transformation matrix to apply
|
|
51
62
|
* @ignore
|
|
52
63
|
*/
|
|
53
|
-
setTileTransform(transform:
|
|
64
|
+
setTileTransform(transform: Matrix2d): void;
|
|
54
65
|
/**
|
|
55
66
|
* return a renderable object for this Tile object
|
|
56
67
|
* @param {object} [settings] - see {@link Sprite}
|
|
@@ -58,6 +69,6 @@ export default class Tile extends Bounds {
|
|
|
58
69
|
*/
|
|
59
70
|
getRenderable(settings?: object): Renderable;
|
|
60
71
|
}
|
|
61
|
-
import { Bounds } from "
|
|
72
|
+
import { Bounds } from "../../physics/bounds.ts";
|
|
62
73
|
import { Matrix2d } from "../../math/matrix2d.ts";
|
|
63
74
|
//# sourceMappingURL=TMXTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TMXTile.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXTile.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TMXTile.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXTile.js"],"names":[],"mappings":"AAWA;;;GAGG;AACH;IACC;;;;;OAKG;IACH,eALW,MAAM,KACN,MAAM,OACN,MAAM,WACN,UAAU,EAkFpB;IA/DA;;;OAGG;IACH,SAFU,UAAU,CAEE;IAEtB;;;;OAIG;IACH,kBAHU,QAAQ,GAAC,IAAI,CAGK;IAE5B;;;OAGG;IACH,KAFU,MAAM,CAEJ;IAEZ;;;OAGG;IACH,KAFU,MAAM,CAEJ;IAEZ;;;OAGG;IACH,QAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,UAFU,OAAO,CAE+B;IAEhD;;;OAGG;IACH,UAFU,OAAO,CAE+B;IAEhD;;;OAGG;IACH,WAFU,OAAO,CAEiC;IAElD;;;OAGG;IACH,SAFU,OAAO,CAE8C;IAYhE;;;;OAIG;IACH,4BAHW,QAAQ,QAmBlB;IAED;;;;OAIG;IACH,yBAHW,MAAM,GACJ,UAAU,CAsDtB;CACD;uBAvLsB,yBAAyB;yBADvB,wBAAwB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* a TMX Tile Map Object
|
|
3
3
|
* Tiled QT +0.7.x format
|
|
4
|
+
* @category Tilemap
|
|
4
5
|
*/
|
|
5
6
|
export default class TMXTileMap {
|
|
6
7
|
/**
|
|
@@ -50,11 +51,23 @@ export default class TMXTileMap {
|
|
|
50
51
|
*/
|
|
51
52
|
infinite: number;
|
|
52
53
|
/**
|
|
53
|
-
* the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered” and “
|
|
54
|
+
* the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered”, “hexagonal” and “oblique”.
|
|
54
55
|
* @type {string}
|
|
55
|
-
* @default
|
|
56
|
+
* @default “orthogonal”
|
|
56
57
|
*/
|
|
57
58
|
orientation: string;
|
|
59
|
+
/**
|
|
60
|
+
* horizontal skew in pixels per tile row (oblique maps, since Tiled 1.12)
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @default 0
|
|
63
|
+
*/
|
|
64
|
+
skewx: number;
|
|
65
|
+
/**
|
|
66
|
+
* vertical skew in pixels per tile column (oblique maps, since Tiled 1.12)
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @default 0
|
|
69
|
+
*/
|
|
70
|
+
skewy: number;
|
|
58
71
|
/**
|
|
59
72
|
* the order in which tiles on orthogonal tile layers are rendered.
|
|
60
73
|
* (valid values are "left-down", "left-up", "right-down", "right-up")
|
|
@@ -95,7 +108,7 @@ export default class TMXTileMap {
|
|
|
95
108
|
* @returns {TMXRenderer} a TMX renderer
|
|
96
109
|
*/
|
|
97
110
|
getRenderer(): TMXRenderer;
|
|
98
|
-
renderer: import("./renderer/TMXHexagonalRenderer.js").default | import("./renderer/TMXIsometricRenderer.js").default | import("./renderer/TMXOrthogonalRenderer.js").default | undefined;
|
|
111
|
+
renderer: import("./renderer/TMXHexagonalRenderer.js").default | import("./renderer/TMXIsometricRenderer.js").default | import("./renderer/TMXOrthogonalRenderer.js").default | import("./renderer/TMXObliqueRenderer.js").default | undefined;
|
|
99
112
|
/**
|
|
100
113
|
* return the map bounding rect
|
|
101
114
|
* @returns {Bounds}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TMXTileMap.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXTileMap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TMXTileMap.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXTileMap.js"],"names":[],"mappings":"AAyHA;;;;GAIG;AACH;IACC;;;;;;;;OAQG;IACH,qBARW,MAAM,QACN,MAAM,EA0JhB;IAlJA;;;OAGG;IACH,aAAgB;IAEhB;;;OAGG;IACH,MAFU,MAAM,CAEG;IAEnB;;;OAGG;IACH,MAFU,MAAM,CAEO;IAEvB;;;OAGG;IACH,MAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,WAFU,MAAM,CAEgB;IAEhC;;;OAGG;IACH,YAFU,MAAM,CAEkB;IAElC;;;;OAIG;IACH,UAHU,MAAM,CAGmB;IAEnC;;;;OAIG;IACH,aAHU,MAAM,CAGmB;IAEnC;;;;OAIG;IACH,OAHU,MAAM,CAGe;IAE/B;;;;OAIG;IACH,OAHU,MAAM,CAGe;IAE/B;;;;;OAKG;IACH,aAHU,MAAM,CAGmC;IAEnD;;;OAGG;IACH,SAFU,MAAM,CAEgB;IAEhC;;;OAGG;IACH,cAFU,MAAM,CAE0B;IAE1C;;;OAGG;IACH,OAFU,MAAM,CAEO;IAGvB,6CAAoB;IAInB,cAAgB;IAIhB,oBAAsB;IAIvB,kBAA8C;IAG9C,iCAAmD;IAGnD,sBAAwC;IACxC,iBAAmC;IACnC,kBAAqC;IAGrC,YAAoD;IAGpD,WAA8B;IAC9B,YAAgC;IAGhC,qBAA2C;IAwB3C,qBAAwB;IAGzB;;;OAGG;IACH,eAFa,WAAW,CAUvB;IAHC,+OAAuC;IAKzC;;;OAGG;IACH,aAFa,MAAM,CAKlB;IAED;;;OAGG;IACH,gCA2DC;IAED;;;;;;;;;;;OAWG;IACH,iBATW,SAAS,YACT,OAAO,sBACP,OAAO,QAqEjB;IAED;;;;;OAKG;IACH,qBAJW,OAAO,GAEL,UAAU,EAAE,CA+NxB;IAED;;;OAGG;IACH,aAFa,QAAQ,EAAE,CAMtB;IAED;;OAEG;IACH,gBAKC;CACD;4BAzqB2B,sBAAsB;sBAT5B,+BAA+B;qBAOhC,eAAe"}
|