vue-phaserjs 1.39.0 → 1.41.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.
@@ -2,6 +2,6 @@ import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
2
2
  import { GameObjects } from 'phaser';
3
3
  import { SetupContext } from 'vue';
4
4
  export declare const useInitializeGameObjectEvents: () => {
5
- eventStopHandlers: (() => void)[];
5
+ eventStopHandles: (() => void)[];
6
6
  initializeGameObjectEvents: <TEmitsOptions extends Record<string, unknown[]>>(gameObject: GameObjects.GameObject, emit: SetupContext<TEmitsOptions>["emit"], scene: SceneWithPlugins) => void;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { SetterMap } from '../models/setterMap/SetterMap';
2
2
  import { GameObjects } from 'phaser';
3
- import { SetupContext, WatchStopHandle } from 'vue';
3
+ import { SetupContext, WatchHandle } from 'vue';
4
4
  export declare const useInitializeGameObjectSetters: <TConfiguration extends object, TGameObject extends GameObjects.GameObject, TEmitsOptions extends Record<string, unknown[]>>(gameObject: () => TGameObject, configuration: () => TConfiguration, emit: SetupContext<TEmitsOptions>["emit"], setterMap: SetterMap<TConfiguration, TGameObject, TEmitsOptions>, immediate?: true) => {
5
5
  initializeGameObjectSetters: (gameObject: TGameObject) => void;
6
- setterStopHandlers: WatchStopHandle[];
6
+ setterWatchHandles: WatchHandle[];
7
7
  };
package/dist/index.js CHANGED
@@ -254,7 +254,7 @@ const X2 = {
254
254
  const F = p2(), S = Object.keys((F == null ? void 0 : F.attrs) ?? {}).filter(F2).map((R) => C2(R)), G = Object.keys(xn).filter(
255
255
  (R) => S.includes(R)
256
256
  ), U = [];
257
- return { eventStopHandlers: U, initializeGameObjectEvents: (R, c, y) => {
257
+ return { eventStopHandles: U, initializeGameObjectEvents: (R, c, y) => {
258
258
  if (G.length !== 0) {
259
259
  R.input || R.setInteractive(), G.some((t) => "drag" in xn[t]) && y.input.setDraggable(R);
260
260
  for (const t of G) {
@@ -56937,7 +56937,7 @@ const We = {
56937
56937
  }
56938
56938
  return { initializeGameObjectSetters: (f) => {
56939
56939
  for (const p of c) p(f);
56940
- }, setterStopHandlers: y };
56940
+ }, setterWatchHandles: y };
56941
56941
  }, Lc = gi("phaser/parentContainer", () => ({
56942
56942
  pushGameObject: (S, G, U) => {
56943
56943
  const X = S.list.findIndex(
@@ -164853,13 +164853,13 @@ const vi = () => {
164853
164853
  ei($t.Create, ...F);
164854
164854
  }, Gc = (F) => We.sceneReadyMap.get(F) ? S1 : Tf, ge = (F, S, G, U, X) => {
164855
164855
  let R;
164856
- const c = Lc(), { pushGameObject: y } = c, { initializeGameObjectSetters: t, setterStopHandlers: f } = Pc(
164856
+ const c = Lc(), { pushGameObject: y } = c, { initializeGameObjectSetters: t, setterWatchHandles: f } = Pc(
164857
164857
  () => R,
164858
164858
  S,
164859
164859
  G,
164860
164860
  U,
164861
164861
  X
164862
- ), { eventStopHandlers: p, initializeGameObjectEvents: u } = z2(), s = V0(di.ParentContainer), r = yi(), e = Gc(r), n = (i) => {
164862
+ ), { eventStopHandles: p, initializeGameObjectEvents: u } = z2(), s = V0(di.ParentContainer), r = yi(), e = Gc(r), n = (i) => {
164863
164863
  R = F(i), t(R), u(R, G, i);
164864
164864
  }, l = () => {
164865
164865
  s && y(s.value, li(S), R);
@@ -226921,14 +226921,12 @@ class z0 extends N3 {
226921
226921
  const R = (U = X.xhrLoader) == null ? void 0 : U.responseText;
226922
226922
  if (!R) throw new yf(en.Read, this.addToCache.name, X.url.toString());
226923
226923
  const c = await Tc(R), y = d2(c.tileset), t = X.tilesetIndex;
226924
- S.data.tilesets[t] = {
226925
- ...S.data.tilesets[t],
226926
- ...y,
226924
+ Object.assign(S.data.tilesets[t], y, {
226927
226925
  imageheight: y.image.height,
226928
226926
  imagewidth: y.image.width,
226929
226927
  // Avoid throwing in tilemap creator
226930
226928
  source: void 0
226931
- };
226929
+ });
226932
226930
  }
226933
226931
  this.loader.cacheManager.tilemap.add(S.key, {
226934
226932
  data: S.data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-phaserjs",
3
- "version": "1.39.0",
3
+ "version": "1.41.0",
4
4
  "description": "A component library to integrate Phaser Framework with Vue.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -32,17 +32,17 @@
32
32
  "export:gen": "ctix build --config ../configuration/.ctirc-vue && ctix build --config ../configuration/.ctirc-ts"
33
33
  },
34
34
  "dependencies": {
35
- "@esposter/shared": "1.39.0",
36
- "parse-tmx": "1.39.0"
35
+ "@esposter/shared": "1.41.0",
36
+ "parse-tmx": "1.41.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@esposter/configuration": "1.39.0"
39
+ "@esposter/configuration": "1.41.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "phaser": "^3.88.2",
43
- "phaser3-rex-plugins": "^1.80.14",
43
+ "phaser3-rex-plugins": "^1.80.15",
44
44
  "pinia": "^3.0.1",
45
45
  "vue": "^3.5.13"
46
46
  },
47
- "gitHead": "529b78210cc3c3ae4ee99d1e2ba2d18d05e2e2ce"
47
+ "gitHead": "a338196085ee39aba75082519030d84bdc734739"
48
48
  }