@rpgjs/tiledmap 5.0.0-alpha.1-local.1 → 5.0.0-alpha.11
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/dist/client/index.js +11 -5
- package/dist/client/index2.js +1 -1
- package/dist/client/index3.js +4649 -12
- package/dist/client/index4.js +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/server/index.js +1 -1
- package/dist/server/index2.js +1 -1
- package/dist/server/index3.js +5232 -0
- package/dist/server.d.ts +1 -1
- package/package.json +10 -8
- package/src/client.ts +1 -1
- package/src/index.ts +27 -18
- package/src/server.ts +1 -4
- package/src/tiled.ce +3 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useProps, useDefineProps, signal, h, Container } from "canvasengine";
|
|
2
|
+
import { EventLayerComponent } from "@rpgjs/client";
|
|
3
|
+
import { TiledMap } from "@canvasengine/presets";
|
|
4
|
+
function component($$props) {
|
|
5
|
+
useProps($$props);
|
|
6
|
+
const defineProps = useDefineProps($$props);
|
|
7
|
+
var _a = defineProps(), data = _a.data, params = _a.params;
|
|
8
|
+
var map = signal(data());
|
|
9
|
+
var basePath = signal(params().basePath);
|
|
10
|
+
let $this = h(Container, null, h(TiledMap, { map, basePath, createLayersPerTilesZ: true, objectLayer: () => h(EventLayerComponent) }));
|
|
11
|
+
return $this;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
component as default
|
|
15
|
+
};
|
package/dist/index.d.ts
CHANGED
package/dist/server/index.js
CHANGED
package/dist/server/index2.js
CHANGED