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
|
@@ -3,9 +3,17 @@ import { GameObjects } from 'phaser';
|
|
|
3
3
|
interface ContainerProps {
|
|
4
4
|
configuration?: Partial<ContainerConfiguration>;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
default: () => VNode;
|
|
10
|
+
}> & {
|
|
11
|
+
default: () => VNode;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
8
15
|
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
17
|
declare const __VLS_component: import('vue').DefineComponent<ContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
18
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
11
19
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -251,9 +259,9 @@ declare const __VLS_component: import('vue').DefineComponent<ContainerProps, {},
|
|
|
251
259
|
"onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
|
|
252
260
|
"onUpdate:children"?: ((args_0?: GameObjects.GameObject[] | undefined) => any) | undefined;
|
|
253
261
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
254
|
-
declare const _default:
|
|
262
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
255
263
|
export default _default;
|
|
256
|
-
type
|
|
264
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
257
265
|
new (): {
|
|
258
266
|
$slots: S;
|
|
259
267
|
};
|
|
@@ -3,13 +3,25 @@ import { Except } from 'type-fest';
|
|
|
3
3
|
interface GameProps {
|
|
4
4
|
configuration: Except<Types.Core.GameConfig, "scene">;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
default: () => VNode;
|
|
10
|
+
}> & {
|
|
11
|
+
default: () => VNode;
|
|
12
|
+
};
|
|
13
|
+
refs: {
|
|
14
|
+
canvasRoot: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
rootEl: any;
|
|
8
17
|
};
|
|
9
|
-
|
|
10
|
-
declare const
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<GameProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GameProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
canvasRoot: HTMLDivElement;
|
|
21
|
+
}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
23
|
export default _default;
|
|
12
|
-
type
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
25
|
new (): {
|
|
14
26
|
$slots: S;
|
|
15
27
|
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { SceneProps } from '../models/scene/SceneProps';
|
|
2
2
|
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
default: () => VNode;
|
|
7
|
+
}> & {
|
|
8
|
+
default: () => VNode;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
5
12
|
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
6
14
|
declare const __VLS_component: import('vue').DefineComponent<SceneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
15
|
update: (args_0: SceneWithPlugins, time: number, delta: number) => any;
|
|
8
16
|
shutdown: (args_0: SceneWithPlugins) => any;
|
|
@@ -16,9 +24,9 @@ declare const __VLS_component: import('vue').DefineComponent<SceneProps, {}, {},
|
|
|
16
24
|
onCreate?: ((args_0: SceneWithPlugins) => any) | undefined;
|
|
17
25
|
onPreload?: ((args_0: SceneWithPlugins) => any) | undefined;
|
|
18
26
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
declare const _default:
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
28
|
export default _default;
|
|
21
|
-
type
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
30
|
new (): {
|
|
23
31
|
$slots: S;
|
|
24
32
|
};
|
|
@@ -4,13 +4,21 @@ interface TilemapProps {
|
|
|
4
4
|
configuration: Types.Tilemaps.TilemapConfig;
|
|
5
5
|
onComplete?: (scene: SceneWithPlugins, tilemap: Tilemaps.Tilemap) => void;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
default: () => VNode;
|
|
11
|
+
}> & {
|
|
12
|
+
default: () => VNode;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: any;
|
|
9
16
|
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
18
|
declare const __VLS_component: import('vue').DefineComponent<TilemapProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TilemapProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default:
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
20
|
export default _default;
|
|
13
|
-
type
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
22
|
new (): {
|
|
15
23
|
$slots: S;
|
|
16
24
|
};
|
|
@@ -1,3 +1,45 @@
|
|
|
1
1
|
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
2
2
|
import { Types } from 'phaser';
|
|
3
|
-
export declare const useAnimations: (createConfigurations: (scene: SceneWithPlugins) => Types.Animations.Animation[], immediate?: true) =>
|
|
3
|
+
export declare const useAnimations: (createConfigurations: (scene: SceneWithPlugins) => Types.Animations.Animation[], immediate?: true) => globalThis.Ref<{
|
|
4
|
+
key?: string | undefined;
|
|
5
|
+
frames?: string | {
|
|
6
|
+
key?: string | undefined;
|
|
7
|
+
frame?: string | number | undefined;
|
|
8
|
+
duration?: number | undefined;
|
|
9
|
+
visible?: boolean | undefined;
|
|
10
|
+
}[] | undefined;
|
|
11
|
+
sortFrames?: boolean | undefined;
|
|
12
|
+
defaultTextureKey?: string | undefined;
|
|
13
|
+
frameRate?: number | undefined;
|
|
14
|
+
duration?: number | undefined;
|
|
15
|
+
skipMissedFrames?: boolean | undefined;
|
|
16
|
+
delay?: number | undefined;
|
|
17
|
+
repeat?: number | undefined;
|
|
18
|
+
repeatDelay?: number | undefined;
|
|
19
|
+
yoyo?: boolean | undefined;
|
|
20
|
+
showBeforeDelay?: boolean | undefined;
|
|
21
|
+
showOnStart?: boolean | undefined;
|
|
22
|
+
hideOnComplete?: boolean | undefined;
|
|
23
|
+
randomFrame?: boolean | undefined;
|
|
24
|
+
}[], Types.Animations.Animation[] | {
|
|
25
|
+
key?: string | undefined;
|
|
26
|
+
frames?: string | {
|
|
27
|
+
key?: string | undefined;
|
|
28
|
+
frame?: string | number | undefined;
|
|
29
|
+
duration?: number | undefined;
|
|
30
|
+
visible?: boolean | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
sortFrames?: boolean | undefined;
|
|
33
|
+
defaultTextureKey?: string | undefined;
|
|
34
|
+
frameRate?: number | undefined;
|
|
35
|
+
duration?: number | undefined;
|
|
36
|
+
skipMissedFrames?: boolean | undefined;
|
|
37
|
+
delay?: number | undefined;
|
|
38
|
+
repeat?: number | undefined;
|
|
39
|
+
repeatDelay?: number | undefined;
|
|
40
|
+
yoyo?: boolean | undefined;
|
|
41
|
+
showBeforeDelay?: boolean | undefined;
|
|
42
|
+
showOnStart?: boolean | undefined;
|
|
43
|
+
hideOnComplete?: boolean | undefined;
|
|
44
|
+
randomFrame?: boolean | undefined;
|
|
45
|
+
}[]>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Game } from 'phaser';
|
|
2
|
+
export declare const useGame: () => Game;
|