vue-phaserjs 2.35.0 → 2.37.2
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/README.md +1 -1
- package/dist/composables/useInitializeGameObjectSetters.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +316 -349
- package/dist/store/camera.d.ts +2 -10
- package/dist/store/index.d.ts +4 -22
- package/dist/store/input.d.ts +2 -6
- package/dist/store/text.d.ts +2 -6
- package/dist/util/emit/constants.d.ts +1 -0
- package/dist/util/getDepthInsertIndex.d.ts +2 -0
- package/dist/util/setterMap/shared/IsoSetterMap.d.ts +79 -0
- package/dist/util/setterMap/shared/ShapeSetterMap.d.ts +1 -1
- package/package.json +10 -12
package/dist/store/camera.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
2
|
-
export declare const useCameraStore: import('pinia').
|
|
2
|
+
export declare const useCameraStore: import('pinia').SetupStoreDefinition<"phaser/camera", {
|
|
3
3
|
fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
|
|
4
4
|
fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
|
|
5
5
|
isFading: globalThis.Ref<boolean, boolean>;
|
|
6
|
-
}
|
|
7
|
-
fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
|
|
8
|
-
fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
|
|
9
|
-
isFading: globalThis.Ref<boolean, boolean>;
|
|
10
|
-
}, never>, Pick<{
|
|
11
|
-
fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
|
|
12
|
-
fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
|
|
13
|
-
isFading: globalThis.Ref<boolean, boolean>;
|
|
14
|
-
}, "fadeIn" | "fadeOut">>;
|
|
6
|
+
}>;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,30 +1,12 @@
|
|
|
1
1
|
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
2
2
|
import { Game } from 'phaser';
|
|
3
|
-
export declare const usePhaserStore: import('pinia').
|
|
3
|
+
export declare const usePhaserStore: import('pinia').SetupStoreDefinition<"phaser", {
|
|
4
4
|
game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
|
|
5
5
|
isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
|
|
6
|
-
launchParallelScene: (scene: SceneWithPlugins,
|
|
6
|
+
launchParallelScene: (scene: SceneWithPlugins, targetSceneKey: SceneWithPlugins["scene"]["key"]) => void;
|
|
7
7
|
parallelSceneKeys: globalThis.Ref<string[], string[]>;
|
|
8
8
|
prioritizedParallelSceneKeys: globalThis.Ref<string[], string[]>;
|
|
9
|
-
removeParallelScene: (scene: SceneWithPlugins,
|
|
9
|
+
removeParallelScene: (scene: SceneWithPlugins, targetSceneKey: SceneWithPlugins["scene"]["key"]) => void;
|
|
10
10
|
rootSceneKey: Ref<SceneWithPlugins["scene"]["key"]>;
|
|
11
11
|
switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
|
|
14
|
-
isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
|
|
15
|
-
launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
|
|
16
|
-
parallelSceneKeys: globalThis.Ref<string[], string[]>;
|
|
17
|
-
prioritizedParallelSceneKeys: globalThis.Ref<string[], string[]>;
|
|
18
|
-
removeParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
|
|
19
|
-
rootSceneKey: Ref<SceneWithPlugins["scene"]["key"]>;
|
|
20
|
-
switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
|
|
21
|
-
}, "game">, Pick<{
|
|
22
|
-
game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
|
|
23
|
-
isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
|
|
24
|
-
launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
|
|
25
|
-
parallelSceneKeys: globalThis.Ref<string[], string[]>;
|
|
26
|
-
prioritizedParallelSceneKeys: globalThis.Ref<string[], string[]>;
|
|
27
|
-
removeParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
|
|
28
|
-
rootSceneKey: Ref<SceneWithPlugins["scene"]["key"]>;
|
|
29
|
-
switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
|
|
30
|
-
}, "isSameScene" | "launchParallelScene" | "removeParallelScene" | "switchToScene">>;
|
|
12
|
+
}>;
|
package/dist/store/input.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export declare const useInputStore: import('pinia').
|
|
1
|
+
export declare const useInputStore: import('pinia').SetupStoreDefinition<"phaser/input", {
|
|
2
2
|
isInputActive: globalThis.Ref<boolean, boolean>;
|
|
3
|
-
}
|
|
4
|
-
isInputActive: globalThis.Ref<boolean, boolean>;
|
|
5
|
-
}, never>, Pick<{
|
|
6
|
-
isInputActive: globalThis.Ref<boolean, boolean>;
|
|
7
|
-
}, never>>;
|
|
3
|
+
}>;
|
package/dist/store/text.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { Types } from 'phaser';
|
|
2
|
-
export declare const useTextStore: import('pinia').
|
|
2
|
+
export declare const useTextStore: import('pinia').SetupStoreDefinition<"phaser/text", {
|
|
3
3
|
defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
|
|
4
|
-
}
|
|
5
|
-
defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
|
|
6
|
-
}, never>, Pick<{
|
|
7
|
-
defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
|
|
8
|
-
}, never>>;
|
|
4
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EVENT_PREFIX = "on";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const IsoSetterMap: {
|
|
2
|
+
readonly fillLeft: (gameObject: {
|
|
3
|
+
fillLeft: number;
|
|
4
|
+
fillRight: number;
|
|
5
|
+
fillTop: number;
|
|
6
|
+
setFaces: (showTop?: boolean, showLeft?: boolean, showRight?: boolean) => unknown;
|
|
7
|
+
setFillStyle: (fillTop?: number, fillLeft?: number, fillRight?: number) => unknown;
|
|
8
|
+
setProjection: (value: number) => unknown;
|
|
9
|
+
showLeft: boolean;
|
|
10
|
+
showRight: boolean;
|
|
11
|
+
showTop: boolean;
|
|
12
|
+
}) => (value: number | undefined) => void;
|
|
13
|
+
readonly fillRight: (gameObject: {
|
|
14
|
+
fillLeft: number;
|
|
15
|
+
fillRight: number;
|
|
16
|
+
fillTop: number;
|
|
17
|
+
setFaces: (showTop?: boolean, showLeft?: boolean, showRight?: boolean) => unknown;
|
|
18
|
+
setFillStyle: (fillTop?: number, fillLeft?: number, fillRight?: number) => unknown;
|
|
19
|
+
setProjection: (value: number) => unknown;
|
|
20
|
+
showLeft: boolean;
|
|
21
|
+
showRight: boolean;
|
|
22
|
+
showTop: boolean;
|
|
23
|
+
}) => (value: number | undefined) => void;
|
|
24
|
+
readonly fillTop: (gameObject: {
|
|
25
|
+
fillLeft: number;
|
|
26
|
+
fillRight: number;
|
|
27
|
+
fillTop: number;
|
|
28
|
+
setFaces: (showTop?: boolean, showLeft?: boolean, showRight?: boolean) => unknown;
|
|
29
|
+
setFillStyle: (fillTop?: number, fillLeft?: number, fillRight?: number) => unknown;
|
|
30
|
+
setProjection: (value: number) => unknown;
|
|
31
|
+
showLeft: boolean;
|
|
32
|
+
showRight: boolean;
|
|
33
|
+
showTop: boolean;
|
|
34
|
+
}) => (value: number | undefined) => void;
|
|
35
|
+
readonly projection: (gameObject: {
|
|
36
|
+
fillLeft: number;
|
|
37
|
+
fillRight: number;
|
|
38
|
+
fillTop: number;
|
|
39
|
+
setFaces: (showTop?: boolean, showLeft?: boolean, showRight?: boolean) => unknown;
|
|
40
|
+
setFillStyle: (fillTop?: number, fillLeft?: number, fillRight?: number) => unknown;
|
|
41
|
+
setProjection: (value: number) => unknown;
|
|
42
|
+
showLeft: boolean;
|
|
43
|
+
showRight: boolean;
|
|
44
|
+
showTop: boolean;
|
|
45
|
+
}) => (value: number | undefined) => void;
|
|
46
|
+
readonly showLeft: (gameObject: {
|
|
47
|
+
fillLeft: number;
|
|
48
|
+
fillRight: number;
|
|
49
|
+
fillTop: number;
|
|
50
|
+
setFaces: (showTop?: boolean, showLeft?: boolean, showRight?: boolean) => unknown;
|
|
51
|
+
setFillStyle: (fillTop?: number, fillLeft?: number, fillRight?: number) => unknown;
|
|
52
|
+
setProjection: (value: number) => unknown;
|
|
53
|
+
showLeft: boolean;
|
|
54
|
+
showRight: boolean;
|
|
55
|
+
showTop: boolean;
|
|
56
|
+
}) => (value: boolean | undefined) => void;
|
|
57
|
+
readonly showRight: (gameObject: {
|
|
58
|
+
fillLeft: number;
|
|
59
|
+
fillRight: number;
|
|
60
|
+
fillTop: number;
|
|
61
|
+
setFaces: (showTop?: boolean, showLeft?: boolean, showRight?: boolean) => unknown;
|
|
62
|
+
setFillStyle: (fillTop?: number, fillLeft?: number, fillRight?: number) => unknown;
|
|
63
|
+
setProjection: (value: number) => unknown;
|
|
64
|
+
showLeft: boolean;
|
|
65
|
+
showRight: boolean;
|
|
66
|
+
showTop: boolean;
|
|
67
|
+
}) => (value: boolean | undefined) => void;
|
|
68
|
+
readonly showTop: (gameObject: {
|
|
69
|
+
fillLeft: number;
|
|
70
|
+
fillRight: number;
|
|
71
|
+
fillTop: number;
|
|
72
|
+
setFaces: (showTop?: boolean, showLeft?: boolean, showRight?: boolean) => unknown;
|
|
73
|
+
setFillStyle: (fillTop?: number, fillLeft?: number, fillRight?: number) => unknown;
|
|
74
|
+
setProjection: (value: number) => unknown;
|
|
75
|
+
showLeft: boolean;
|
|
76
|
+
showRight: boolean;
|
|
77
|
+
showTop: boolean;
|
|
78
|
+
}) => (value: boolean | undefined) => void;
|
|
79
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GameObjects } from 'phaser';
|
|
2
2
|
export declare const ShapeSetterMap: {
|
|
3
|
-
readonly active: (gameObject: GameObjects.Shape) => (value: boolean | undefined) => void;
|
|
4
3
|
readonly fillAlpha: (gameObject: GameObjects.Shape) => (value: number | undefined) => void;
|
|
5
4
|
readonly fillColor: (gameObject: GameObjects.Shape) => (value: number | undefined) => void;
|
|
6
5
|
readonly strokeStyle: (gameObject: GameObjects.Shape) => (value: [lineWidth?: number | undefined, color?: number | undefined, alpha?: number | undefined] | undefined) => void;
|
|
@@ -23,6 +22,7 @@ export declare const ShapeSetterMap: {
|
|
|
23
22
|
readonly originX: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => void;
|
|
24
23
|
readonly originY: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => void;
|
|
25
24
|
readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.GeometryMask | undefined) => void;
|
|
25
|
+
readonly active: (gameObject: GameObjects.GameObject) => (value: boolean | undefined) => void;
|
|
26
26
|
readonly displayHeight: (gameObject: {
|
|
27
27
|
displayHeight: number;
|
|
28
28
|
displayWidth: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-phaserjs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.2",
|
|
4
4
|
"description": "A component library to integrate Phaser Framework with Vue.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component-library",
|
|
@@ -46,24 +46,22 @@
|
|
|
46
46
|
"typecheck": "vue-tsc"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@esposter/configuration": "2.
|
|
50
|
-
"@vitejs/plugin-vue": "^6.0.8",
|
|
49
|
+
"@esposter/configuration": "2.37.2",
|
|
51
50
|
"@vue/test-utils": "^2.4.11",
|
|
52
|
-
"ctix": "^2.8.
|
|
51
|
+
"ctix": "^2.8.2",
|
|
53
52
|
"type-fest": "^5.8.0",
|
|
54
53
|
"typedoc": "^0.28.20",
|
|
55
|
-
"
|
|
56
|
-
"vite": "^8.1.4",
|
|
54
|
+
"vite": "^8.2.1",
|
|
57
55
|
"vitest": "^4.1.10",
|
|
58
|
-
"vue-tsc": "^3.3.
|
|
56
|
+
"vue-tsc": "^3.3.9"
|
|
59
57
|
},
|
|
60
58
|
"peerDependencies": {
|
|
61
|
-
"@esposter/shared": "2.
|
|
62
|
-
"parse-tmx": "2.
|
|
59
|
+
"@esposter/shared": "2.37.1",
|
|
60
|
+
"parse-tmx": "2.37.1",
|
|
63
61
|
"phaser": "^4.2.1",
|
|
64
62
|
"phaser4-rex-plugins": "^4.2.0",
|
|
65
|
-
"pinia": "^
|
|
66
|
-
"vue": "^3.5.
|
|
63
|
+
"pinia": "^4.0.3",
|
|
64
|
+
"vue": "^3.5.41"
|
|
67
65
|
},
|
|
68
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "4d775dbd8289e6caaee48f08038b65fddb4babbc"
|
|
69
67
|
}
|