vue-phaserjs 2.13.0 → 2.14.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/dist/components/Container.vue.d.ts +12 -4
- package/dist/components/Game.vue.d.ts +17 -5
- package/dist/components/Scene.vue.d.ts +12 -4
- package/dist/components/Tilemap.vue.d.ts +12 -4
- package/dist/composables/useAnimations.d.ts +43 -1
- package/dist/composables/useGame.d.ts +2 -1
- package/dist/index.js +1155 -1596
- package/dist/store/camera.d.ts +14 -1
- package/dist/store/index.d.ts +30 -1
- package/dist/store/input.d.ts +7 -1
- package/dist/store/text.d.ts +8 -1
- package/package.json +4 -4
package/dist/store/camera.d.ts
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
2
|
+
export declare const useCameraStore: import('pinia').StoreDefinition<"phaser/camera", Pick<{
|
|
3
|
+
fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
|
|
4
|
+
fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
|
|
5
|
+
isFading: globalThis.Ref<boolean, boolean>;
|
|
6
|
+
}, "isFading">, Pick<{
|
|
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">>;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
2
|
+
import { Game } from 'phaser';
|
|
3
|
+
export declare const usePhaserStore: import('pinia').StoreDefinition<"phaser", Pick<{
|
|
4
|
+
game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
|
|
5
|
+
isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
|
|
6
|
+
launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
|
|
7
|
+
parallelSceneKeys: globalThis.Ref<string[], string[]>;
|
|
8
|
+
prioritizedParallelSceneKeys: globalThis.Ref<string[], string[]>;
|
|
9
|
+
removeParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
|
|
10
|
+
rootSceneKey: Ref<SceneWithPlugins["scene"]["key"]>;
|
|
11
|
+
switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
|
|
12
|
+
}, "parallelSceneKeys" | "prioritizedParallelSceneKeys" | "rootSceneKey">, Pick<{
|
|
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">>;
|
package/dist/store/input.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
export declare const useInputStore:
|
|
1
|
+
export declare const useInputStore: import('pinia').StoreDefinition<"phaser/input", Pick<{
|
|
2
|
+
isInputActive: globalThis.Ref<boolean, boolean>;
|
|
3
|
+
}, "isInputActive">, Pick<{
|
|
4
|
+
isInputActive: globalThis.Ref<boolean, boolean>;
|
|
5
|
+
}, never>, Pick<{
|
|
6
|
+
isInputActive: globalThis.Ref<boolean, boolean>;
|
|
7
|
+
}, never>>;
|
package/dist/store/text.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { Types } from 'phaser';
|
|
2
|
+
export declare const useTextStore: import('pinia').StoreDefinition<"phaser/text", Pick<{
|
|
3
|
+
defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
|
|
4
|
+
}, "defaultTextStyle">, Pick<{
|
|
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>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-phaserjs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "A component library to integrate Phaser Framework with Vue.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/Esposter/Esposter/blob/main/packages/vue-phaserjs#readme",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"export:gen": "ctix build --config ../configuration/.ctirc-vue && ctix build --config ../configuration/.ctirc-ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"parse-tmx": "2.
|
|
36
|
+
"parse-tmx": "2.14.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"phaser": "^4.0.0-rc.5",
|
|
40
40
|
"phaser3-rex-plugins": "^1.80.16",
|
|
41
41
|
"pinia": "^3.0.3",
|
|
42
|
-
"vue": "^3.5.
|
|
42
|
+
"vue": "^3.5.21"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "bf7676c2df907ab50a35ca2910abfcf237983a16"
|
|
45
45
|
}
|