vue-phaserjs 1.40.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
|
-
|
|
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,
|
|
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
|
-
|
|
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 {
|
|
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
|
-
},
|
|
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,
|
|
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
|
-
), {
|
|
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-phaserjs",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
36
|
-
"parse-tmx": "1.
|
|
35
|
+
"@esposter/shared": "1.41.0",
|
|
36
|
+
"parse-tmx": "1.41.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@esposter/configuration": "1.
|
|
39
|
+
"@esposter/configuration": "1.41.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"phaser": "^3.88.2",
|
|
43
|
-
"phaser3-rex-plugins": "^1.80.
|
|
43
|
+
"phaser3-rex-plugins": "^1.80.15",
|
|
44
44
|
"pinia": "^3.0.1",
|
|
45
45
|
"vue": "^3.5.13"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "a338196085ee39aba75082519030d84bdc734739"
|
|
48
48
|
}
|