melonjs 18.1.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 +29 -37
- package/build/application/application.d.ts.map +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/audio/audio.d.ts +145 -125
- package/build/audio/audio.d.ts.map +1 -1
- package/build/camera/camera2d.d.ts +192 -102
- package/build/camera/camera2d.d.ts.map +1 -1
- package/build/geometries/roundrect.d.ts +82 -17
- package/build/geometries/roundrect.d.ts.map +1 -1
- package/build/index.d.ts +12 -12
- package/build/index.js +2266 -840
- package/build/index.js.map +4 -4
- package/build/input/gamepad.d.ts +110 -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/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/level/tiled/TMXGroup.d.ts +5 -0
- package/build/level/tiled/TMXGroup.d.ts.map +1 -1
- 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 +15 -3
- package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
- package/build/level/tiled/TMXTileset.d.ts +136 -15
- package/build/level/tiled/TMXTileset.d.ts.map +1 -1
- package/build/level/tiled/TMXUtils.d.ts +31 -0
- package/build/level/tiled/TMXUtils.d.ts.map +1 -1
- package/build/level/tiled/constants.d.ts +1 -1
- package/build/level/tiled/constants.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/autodetect.d.ts +2 -1
- package/build/level/tiled/renderer/autodetect.d.ts.map +1 -1
- package/build/particles/emitter.d.ts +38 -121
- package/build/particles/emitter.d.ts.map +1 -1
- package/build/particles/particle.d.ts +1 -4
- package/build/particles/particle.d.ts.map +1 -1
- package/build/physics/bounds.d.ts +1 -1
- package/build/physics/bounds.d.ts.map +1 -1
- package/build/physics/detector.d.ts.map +1 -1
- package/build/physics/world.d.ts +2 -2
- 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/colorlayer.d.ts +2 -2
- package/build/renderable/container.d.ts +6 -6
- package/build/renderable/container.d.ts.map +1 -1
- package/build/renderable/imagelayer.d.ts.map +1 -1
- package/build/renderable/renderable.d.ts +11 -2
- package/build/renderable/renderable.d.ts.map +1 -1
- package/build/renderable/ui/uibaseelement.d.ts +46 -33
- package/build/renderable/ui/uibaseelement.d.ts.map +1 -1
- package/build/renderable/ui/uispriteelement.d.ts +53 -43
- package/build/renderable/ui/uispriteelement.d.ts.map +1 -1
- package/build/renderable/ui/uitextbutton.d.ts +68 -74
- package/build/renderable/ui/uitextbutton.d.ts.map +1 -1
- package/build/state/stage.d.ts +1 -1
- package/build/state/state.d.ts +93 -90
- package/build/state/state.d.ts.map +1 -1
- package/build/system/event.d.ts +2 -2
- package/build/system/event.d.ts.map +1 -1
- package/build/utils/decode.d.ts +1 -0
- package/build/utils/decode.d.ts.map +1 -1
- 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/video/canvas/canvas_renderer.d.ts +40 -13
- package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
- package/build/video/renderer.d.ts +12 -0
- package/build/video/renderer.d.ts.map +1 -1
- package/build/video/webgl/batchers/batcher.d.ts +43 -8
- package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/quad_batcher.d.ts +0 -2
- package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
- package/build/video/webgl/buffer/index.d.ts +33 -8
- package/build/video/webgl/buffer/index.d.ts.map +1 -1
- package/build/video/webgl/buffer/vertex.d.ts +9 -1
- package/build/video/webgl/buffer/vertex.d.ts.map +1 -1
- package/build/video/webgl/webgl_renderer.d.ts +22 -20
- package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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":"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":"AAuDA;;;;GAIG;AACH;IACC;;;;;;;;OAQG;IACH,iBARW,MAAM,QACN,MAAM,aACN,MAAM,cACN,MAAM,eACN,MAAM,YACN,eAAe,KACf,MAAM,
|
|
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":"AAWA
|
|
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"}
|
|
@@ -51,11 +51,23 @@ export default class TMXTileMap {
|
|
|
51
51
|
*/
|
|
52
52
|
infinite: number;
|
|
53
53
|
/**
|
|
54
|
-
* the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered” and “
|
|
54
|
+
* the map orientation type. melonJS supports “orthogonal”, “isometric”, “staggered”, “hexagonal” and “oblique”.
|
|
55
55
|
* @type {string}
|
|
56
|
-
* @default
|
|
56
|
+
* @default “orthogonal”
|
|
57
57
|
*/
|
|
58
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;
|
|
59
71
|
/**
|
|
60
72
|
* the order in which tiles on orthogonal tile layers are rendered.
|
|
61
73
|
* (valid values are "left-down", "left-up", "right-down", "right-up")
|
|
@@ -96,7 +108,7 @@ export default class TMXTileMap {
|
|
|
96
108
|
* @returns {TMXRenderer} a TMX renderer
|
|
97
109
|
*/
|
|
98
110
|
getRenderer(): TMXRenderer;
|
|
99
|
-
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;
|
|
100
112
|
/**
|
|
101
113
|
* return the map bounding rect
|
|
102
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"}
|
|
@@ -5,17 +5,63 @@
|
|
|
5
5
|
export default class TMXTileset {
|
|
6
6
|
/**
|
|
7
7
|
* @param {object} tileset - tileset data in JSON format ({@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#tileset})
|
|
8
|
+
* @param {number} [mapTilewidth] - the map's tile grid width in pixels
|
|
9
|
+
* @param {number} [mapTileheight] - the map's tile grid height in pixels
|
|
10
|
+
*/
|
|
11
|
+
constructor(tileset: object, mapTilewidth?: number, mapTileheight?: number);
|
|
12
|
+
/**
|
|
13
|
+
* per-tile properties indexed by gid
|
|
14
|
+
* @type {Map<number, object>}
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
tileProperties: Map<number, object>;
|
|
18
|
+
/**
|
|
19
|
+
* per-tile images for "Collection of Image" tilesets, indexed by gid
|
|
20
|
+
* @type {Map<number, HTMLImageElement|HTMLCanvasElement>}
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
imageCollection: Map<number, HTMLImageElement | HTMLCanvasElement>;
|
|
24
|
+
/**
|
|
25
|
+
* the first global tile ID of this tileset
|
|
26
|
+
* @type {number}
|
|
8
27
|
*/
|
|
9
|
-
constructor(tileset: object);
|
|
10
|
-
TileProperties: any[];
|
|
11
|
-
imageCollection: any[];
|
|
12
28
|
firstgid: number;
|
|
29
|
+
/**
|
|
30
|
+
* the last global tile ID of this tileset
|
|
31
|
+
* @type {number}
|
|
32
|
+
*/
|
|
13
33
|
lastgid: number;
|
|
14
|
-
|
|
34
|
+
/**
|
|
35
|
+
* the tileset name
|
|
36
|
+
* @type {string}
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* the width of each tile in pixels
|
|
41
|
+
* @type {number}
|
|
42
|
+
*/
|
|
15
43
|
tilewidth: number;
|
|
44
|
+
/**
|
|
45
|
+
* the height of each tile in pixels
|
|
46
|
+
* @type {number}
|
|
47
|
+
*/
|
|
16
48
|
tileheight: number;
|
|
49
|
+
/**
|
|
50
|
+
* the spacing between tiles in pixels
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @default 0
|
|
53
|
+
*/
|
|
17
54
|
spacing: number;
|
|
55
|
+
/**
|
|
56
|
+
* the margin around tiles in pixels
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @default 0
|
|
59
|
+
*/
|
|
18
60
|
margin: number;
|
|
61
|
+
/**
|
|
62
|
+
* tile drawing offset
|
|
63
|
+
* @type {Vector2d}
|
|
64
|
+
*/
|
|
19
65
|
tileoffset: Vector2d;
|
|
20
66
|
/**
|
|
21
67
|
* Tileset contains animated tiles
|
|
@@ -28,13 +74,60 @@ export default class TMXTileset {
|
|
|
28
74
|
*/
|
|
29
75
|
isCollection: boolean;
|
|
30
76
|
/**
|
|
31
|
-
* the tileset class
|
|
32
|
-
* @type {
|
|
77
|
+
* the tileset class (since Tiled 1.9, renamed back to type on tile/object in 1.10)
|
|
78
|
+
* @type {string}
|
|
33
79
|
*/
|
|
34
|
-
class:
|
|
80
|
+
class: string;
|
|
81
|
+
/**
|
|
82
|
+
* how tiles render relative to the grid (since Tiled 1.9)
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @default "tile"
|
|
85
|
+
*/
|
|
86
|
+
tilerendersize: string;
|
|
87
|
+
/**
|
|
88
|
+
* fill mode when tiles are not rendered at native size (since Tiled 1.9)
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @default "stretch"
|
|
91
|
+
*/
|
|
92
|
+
fillmode: string;
|
|
93
|
+
/**
|
|
94
|
+
* the map's tile grid width (used for tilerendersize="grid")
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @ignore
|
|
97
|
+
*/
|
|
98
|
+
mapTilewidth: number;
|
|
99
|
+
/**
|
|
100
|
+
* the map's tile grid height (used for tilerendersize="grid")
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @ignore
|
|
103
|
+
*/
|
|
104
|
+
mapTileheight: number;
|
|
105
|
+
/**
|
|
106
|
+
* precomputed render scale for tilerendersize="grid" (spritesheet only)
|
|
107
|
+
* @private
|
|
108
|
+
*/
|
|
109
|
+
private _renderScaleX;
|
|
110
|
+
_renderScaleY: number;
|
|
111
|
+
_renderDw: number;
|
|
112
|
+
_renderDh: number;
|
|
113
|
+
_renderDyOffset: number;
|
|
114
|
+
_renderDxCenter: number;
|
|
115
|
+
_renderDyCenter: number;
|
|
116
|
+
/**
|
|
117
|
+
* per-tile sub-rectangles (Tiled 1.9+), indexed by local tile id
|
|
118
|
+
* @type {Map<number, {x: number, y: number, width: number, height: number}>}
|
|
119
|
+
* @ignore
|
|
120
|
+
*/
|
|
121
|
+
tileSubRects: Map<number, {
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
width: number;
|
|
125
|
+
height: number;
|
|
126
|
+
}>;
|
|
35
127
|
/**
|
|
36
128
|
* Tileset animations
|
|
37
129
|
* @private
|
|
130
|
+
* @type {Map}
|
|
38
131
|
*/
|
|
39
132
|
private animations;
|
|
40
133
|
/**
|
|
@@ -42,20 +135,34 @@ export default class TMXTileset {
|
|
|
42
135
|
* @private
|
|
43
136
|
*/
|
|
44
137
|
private _lastUpdate;
|
|
138
|
+
/**
|
|
139
|
+
* Parse individual tile entries for animations, properties, and images.
|
|
140
|
+
* @param {object[]|object} [tiles] - tile entries (array in JSON, object in XML)
|
|
141
|
+
* @ignore
|
|
142
|
+
*/
|
|
143
|
+
_parseTiles(tiles?: object[] | object): void;
|
|
144
|
+
/**
|
|
145
|
+
* Initialize the texture atlas for a spritesheet tileset.
|
|
146
|
+
* @param {object} tileset - tileset data
|
|
147
|
+
* @ignore
|
|
148
|
+
*/
|
|
149
|
+
_initAtlas(tileset: object): void;
|
|
45
150
|
image: any;
|
|
46
151
|
texture: any;
|
|
47
152
|
atlas: any;
|
|
48
153
|
/**
|
|
49
154
|
* return the tile image from a "Collection of Image" tileset
|
|
50
155
|
* @param {number} gid
|
|
51
|
-
* @returns {
|
|
156
|
+
* @returns {HTMLImageElement|HTMLCanvasElement|undefined} corresponding image or undefined
|
|
52
157
|
*/
|
|
53
|
-
getTileImage(gid: number):
|
|
158
|
+
getTileImage(gid: number): HTMLImageElement | HTMLCanvasElement | undefined;
|
|
54
159
|
/**
|
|
55
160
|
* set the tile properties
|
|
161
|
+
* @param {number} gid - global tile ID
|
|
162
|
+
* @param {object} prop - property object
|
|
56
163
|
* @ignore
|
|
57
164
|
*/
|
|
58
|
-
setTileProperty(gid:
|
|
165
|
+
setTileProperty(gid: number, prop: object): void;
|
|
59
166
|
/**
|
|
60
167
|
* return true if the gid belongs to the tileset
|
|
61
168
|
* @param {number} gid
|
|
@@ -70,12 +177,26 @@ export default class TMXTileset {
|
|
|
70
177
|
getViewTileId(gid: number): number;
|
|
71
178
|
/**
|
|
72
179
|
* return the properties of the specified tile
|
|
73
|
-
* @param {number} tileId
|
|
74
|
-
* @returns {object}
|
|
180
|
+
* @param {number} tileId - global tile ID
|
|
181
|
+
* @returns {object|undefined} tile properties or undefined
|
|
182
|
+
*/
|
|
183
|
+
getTileProperties(tileId: number): object | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* update tile animations
|
|
186
|
+
* @param {number} dt - time delta in milliseconds
|
|
187
|
+
* @returns {boolean} true if any animation frame changed
|
|
188
|
+
* @ignore
|
|
189
|
+
*/
|
|
190
|
+
update(dt: number): boolean;
|
|
191
|
+
/**
|
|
192
|
+
* draw a tile at the specified position
|
|
193
|
+
* @param {CanvasRenderer|WebGLRenderer} renderer - a renderer instance
|
|
194
|
+
* @param {number} dx - destination x position
|
|
195
|
+
* @param {number} dy - destination y position
|
|
196
|
+
* @param {Tile} tmxTile - the tile object to draw
|
|
197
|
+
* @ignore
|
|
75
198
|
*/
|
|
76
|
-
|
|
77
|
-
update(dt: any): boolean;
|
|
78
|
-
drawTile(renderer: any, dx: any, dy: any, tmxTile: any): void;
|
|
199
|
+
drawTile(renderer: CanvasRenderer | WebGLRenderer, dx: number, dy: number, tmxTile: Tile): void;
|
|
79
200
|
}
|
|
80
201
|
import { Vector2d } from "../../math/vector2d.ts";
|
|
81
202
|
//# sourceMappingURL=TMXTileset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TMXTileset.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXTileset.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TMXTileset.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXTileset.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH;IACC;;;;OAIG;IACH,qBAJY,MAAM,iBACN,MAAM,kBACN,MAAM,EA8MjB;IA3MA;;;;OAIG;IACH,gBAHU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAGE;IAE/B;;;;OAIG;IACH,iBAHU,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAC,iBAAiB,CAAC,CAGzB;IAEhC;;;OAGG;IACH,UAFU,MAAM,CAEiB;IAEjC;;;OAGG;IACH,SAFU,MAAM,CAEY;IAe5B;;;OAGG;IACH,MAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,WAFU,MAAM,CAEmB;IAEnC;;;OAGG;IACH,YAFU,MAAM,CAEqB;IAErC;;;;OAIG;IACH,SAHU,MAAM,CAGsB;IAEtC;;;;OAIG;IACH,QAHU,MAAM,CAGoB;IAEpC;;;OAGG;IACH,YAFU,QAAQ,CAEc;IAEhC;;;OAGG;IACH,YAFU,OAAO,CAEM;IAEvB;;;OAGG;IACH,cAFU,OAAO,CAEQ;IAEzB;;;OAGG;IACH,OAFU,MAAM,CAE0B;IAE1C;;;;OAIG;IACH,gBAHU,MAAM,CAGsC;IAEtD;;;;OAIG;IACH,UAHU,MAAM,CAG6B;IAE7C;;;;OAIG;IACH,cAHU,MAAM,CAGkC;IAElD;;;;OAIG;IACH,eAHU,MAAM,CAGqC;IAErD;;;OAGG;IACH,sBAAsB;IACtB,sBAAsB;IACtB,kBAA+B;IAC/B,kBAAgC;IAChC,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;IAsBxB;;;;OAIG;IACH,cAHU,GAAG,CAAC,MAAM,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,CAAC,CAG/C;IAE7B;;;;OAIG;IACH,mBAA2B;IAE3B;;;OAGG;IACH,oBAAoB;IAgCrB;;;;OAIG;IACH,oBAHW,MAAM,EAAE,GAAC,MAAM,QA2GzB;IAED;;;;OAIG;IACH,oBAHW,MAAM,QA0ChB;IArCA,WAAoC;IASpC,aAKE;IACF,WAAoC;IAwBrC;;;;OAIG;IACH,kBAHW,MAAM,GACJ,gBAAgB,GAAC,iBAAiB,GAAC,SAAS,CAIxD;IAED;;;;;OAKG;IACH,qBAJW,MAAM,QACN,MAAM,QAKhB;IAED;;;;OAIG;IACH,cAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;;OAIG;IACH,mBAHW,MAAM,GACJ,MAAM,CAYlB;IAED;;;;OAIG;IACH,0BAHW,MAAM,GACJ,MAAM,GAAC,SAAS,CAI5B;IAED;;;;;OAKG;IACH,WAJW,MAAM,GACJ,OAAO,CAwBnB;IAED;;;;;;;OAOG;IACH,mBANW,cAAc,GAAC,aAAa,MAC5B,MAAM,MACN,MAAM,WACN,IAAI,QAqFd;CACD;yBAziBwB,wBAAwB"}
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decode an embedded base64 image, cache it in imgList, and return
|
|
3
|
+
* a generated filename (with extension) suitable for getImage().
|
|
4
|
+
* Works for both XML-parsed data (base64 string) and JSON data.
|
|
5
|
+
* @ignore
|
|
6
|
+
* @param {string} base64 - raw base64-encoded image data
|
|
7
|
+
* @param {string} [format="png"] - image format
|
|
8
|
+
* @param {number} [width] - image width hint
|
|
9
|
+
* @param {number} [height] - image height hint
|
|
10
|
+
* @returns {string} generated filename (e.g. "__embedded_0.png")
|
|
11
|
+
*/
|
|
12
|
+
export function cacheEmbeddedImage(base64: string, format?: string, width?: number, height?: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* If the given data object has an embedded base64 image (JSON `imagedata`
|
|
15
|
+
* property), decode it, cache it, and replace with a generated filename.
|
|
16
|
+
* @ignore
|
|
17
|
+
* @param {object} data - tileset, tile, or layer data
|
|
18
|
+
*/
|
|
19
|
+
export function resolveEmbeddedImage(data: object): void;
|
|
20
|
+
/**
|
|
21
|
+
* Convert a Tiled blend mode name to a canonical melonJS blend mode.
|
|
22
|
+
* Tiled uses "add" for additive blending; melonJS renderers accept
|
|
23
|
+
* "add", "additive", and "lighter" as equivalent. This helper normalizes
|
|
24
|
+
* the Tiled "add" value to "lighter" for internal consistency.
|
|
25
|
+
* Returns "normal" when the mode is undefined or explicitly "normal";
|
|
26
|
+
* all other values are passed through to the renderer (which will fall
|
|
27
|
+
* back to "normal" for unsupported modes).
|
|
28
|
+
* @param {string} [mode] - the Tiled blend mode
|
|
29
|
+
* @returns {string} the melonJS blend mode name
|
|
30
|
+
*/
|
|
31
|
+
export function tiledBlendMode(mode?: string): string;
|
|
1
32
|
/**
|
|
2
33
|
* Parse a XML TMX object and returns the corresponding javascript object
|
|
3
34
|
* @memberof TMXUtils
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TMXUtils.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXUtils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TMXUtils.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXUtils.js"],"names":[],"mappings":"AAOA;;;;;;;;;;GAUG;AACH,2CANW,MAAM,WACN,MAAM,UACN,MAAM,WACN,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;GAKG;AACH,2CAFW,MAAM,QAchB;AAED;;;;;;;;;;GAUG;AACH,sCAHW,MAAM,GACJ,MAAM,CAOlB;AAyTD;;;;;GAKG;AACH,2BAHW,QAAQ,GACN,MAAM,CAIlB;AAED;;;;;GAKG;AACH,wCAHW,MAAM,QACN,MAAM,QAgDhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/constants.js"],"names":[],"mappings":"AACA,sCAAuC,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/constants.js"],"names":[],"mappings":"AACA,sCAAuC,MAAM,CAAC;AAG9C,yBAA0B,UAAU,CAAC;AACrC,yBAA0B,UAAU,CAAC;AACrC,0BAA2B,SAAU,CAAC;AACtC,wCAA2E;AAG3E,8BAA+B,WAAW,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* an Oblique Map Renderer (Tiled 1.12+)
|
|
3
|
+
* Extends the orthogonal renderer with a 2D shear transform
|
|
4
|
+
* controlled by the map's skewx/skewy attributes.
|
|
5
|
+
* @category Tilemap
|
|
6
|
+
*/
|
|
7
|
+
export default class TMXObliqueRenderer extends TMXOrthogonalRenderer {
|
|
8
|
+
/**
|
|
9
|
+
* horizontal pixel offset per tile row
|
|
10
|
+
* @type {number}
|
|
11
|
+
*/
|
|
12
|
+
skewX: number;
|
|
13
|
+
/**
|
|
14
|
+
* vertical pixel offset per tile column
|
|
15
|
+
* @type {number}
|
|
16
|
+
*/
|
|
17
|
+
skewY: number;
|
|
18
|
+
/**
|
|
19
|
+
* horizontal shear factor (skewX / tileheight)
|
|
20
|
+
* @type {number}
|
|
21
|
+
*/
|
|
22
|
+
shearX: number;
|
|
23
|
+
/**
|
|
24
|
+
* vertical shear factor (skewY / tilewidth)
|
|
25
|
+
* @type {number}
|
|
26
|
+
*/
|
|
27
|
+
shearY: number;
|
|
28
|
+
/**
|
|
29
|
+
* determinant of the shear matrix (for inverse transform)
|
|
30
|
+
* @type {number}
|
|
31
|
+
*/
|
|
32
|
+
_det: number;
|
|
33
|
+
/**
|
|
34
|
+
* return the bounding rect for this map renderer
|
|
35
|
+
* @param {TMXLayer} [layer] - calculate the bounding rect for a specific layer
|
|
36
|
+
* @returns {Bounds}
|
|
37
|
+
*/
|
|
38
|
+
getBounds(layer?: TMXLayer): Bounds;
|
|
39
|
+
}
|
|
40
|
+
import TMXOrthogonalRenderer from "./TMXOrthogonalRenderer.js";
|
|
41
|
+
import TMXLayer from "./../TMXLayer.js";
|
|
42
|
+
//# sourceMappingURL=TMXObliqueRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TMXObliqueRenderer.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/TMXObliqueRenderer.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH;IAOE;;;OAGG;IACH,OAFU,MAAM,CAEM;IAEtB;;;OAGG;IACH,OAFU,MAAM,CAEM;IAEtB;;;OAGG;IACH,QAFU,MAAM,CAEsD;IAEtE;;;OAGG;IACH,QAFU,MAAM,CAEoD;IAEpE;;;OAGG;IACH,MAFU,MAAM,CAEyB;IAe1C;;;;OAIG;IACH,kBAHW,QAAQ,GACN,MAAM,CAqBlB;CAoID;kCAtNiC,4BAA4B;qBADzC,kBAAkB"}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* @param {TMXTileMap} map
|
|
4
4
|
* @ignore
|
|
5
5
|
*/
|
|
6
|
-
export function getNewTMXRenderer(map: TMXTileMap): TMXHexagonalRenderer | TMXIsometricRenderer | TMXOrthogonalRenderer;
|
|
6
|
+
export function getNewTMXRenderer(map: TMXTileMap): TMXHexagonalRenderer | TMXIsometricRenderer | TMXOrthogonalRenderer | TMXObliqueRenderer;
|
|
7
7
|
import TMXHexagonalRenderer from "./TMXHexagonalRenderer.js";
|
|
8
8
|
import TMXIsometricRenderer from "./TMXIsometricRenderer.js";
|
|
9
9
|
import TMXOrthogonalRenderer from "./TMXOrthogonalRenderer.js";
|
|
10
|
+
import TMXObliqueRenderer from "./TMXObliqueRenderer.js";
|
|
10
11
|
//# sourceMappingURL=autodetect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autodetect.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/autodetect.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autodetect.d.ts","sourceRoot":"","sources":["../../../../src/level/tiled/renderer/autodetect.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,uCAHW,UAAU,4FAwBpB;iCAhCgC,2BAA2B;iCAC3B,2BAA2B;kCAE1B,4BAA4B;+BAD/B,yBAAyB"}
|