vue-phaserjs 2.13.1 → 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.
@@ -3,9 +3,17 @@ import { GameObjects } from 'phaser';
3
3
  interface ContainerProps {
4
4
  configuration?: Partial<ContainerConfiguration>;
5
5
  }
6
- type __VLS_Slots = {
7
- default: (props: Record<string, never>) => unknown;
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: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
262
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
255
263
  export default _default;
256
- type __VLS_WithSlots<T, S> = T & {
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
- type __VLS_Slots = {
7
- default: (props: Record<string, never>) => unknown;
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
- 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, {}, any>;
10
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
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 __VLS_WithSlots<T, S> = T & {
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
- type __VLS_Slots = {
4
- default: (props: Record<string, never>) => unknown;
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: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
28
  export default _default;
21
- type __VLS_WithSlots<T, S> = T & {
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
- type __VLS_Slots = {
8
- default: (props: Record<string, never>) => unknown;
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: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
20
  export default _default;
13
- type __VLS_WithSlots<T, S> = T & {
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) => any;
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
- export declare const useGame: () => any;
1
+ import { Game } from 'phaser';
2
+ export declare const useGame: () => Game;