vue-phaserjs 2.18.2 → 2.19.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/dist/components/Circle.vue.d.ts +2 -1
- package/dist/components/Container.vue.d.ts +7 -13
- package/dist/components/Game.vue.d.ts +7 -17
- package/dist/components/Image.vue.d.ts +2 -1
- package/dist/components/Nineslice.vue.d.ts +2 -1
- package/dist/components/PathFollower.vue.d.ts +2 -1
- package/dist/components/Rectangle.vue.d.ts +2 -1
- package/dist/components/Scene.vue.d.ts +7 -13
- package/dist/components/Sprite.vue.d.ts +2 -1
- package/dist/components/Text.vue.d.ts +2 -1
- package/dist/components/TileSprite.vue.d.ts +2 -1
- package/dist/components/Tilemap.vue.d.ts +7 -13
- package/dist/components/Zone.vue.d.ts +2 -1
- package/dist/index.js +5221 -2801
- package/dist/index2.js +0 -0
- package/package.json +21 -21
|
@@ -2,7 +2,7 @@ import { ArcConfiguration } from '../models/configuration/ArcConfiguration';
|
|
|
2
2
|
interface CircleProps {
|
|
3
3
|
configuration: Partial<ArcConfiguration>;
|
|
4
4
|
}
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<CircleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
6
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
7
7
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
8
8
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -277,4 +277,5 @@ declare const _default: import('vue').DefineComponent<CircleProps, {}, {}, {}, {
|
|
|
277
277
|
"onUpdate:radius"?: ((args_0?: number | undefined) => any) | undefined;
|
|
278
278
|
"onUpdate:startAngle"?: ((args_0?: number | undefined) => any) | undefined;
|
|
279
279
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
280
|
+
declare const _default: typeof __VLS_export;
|
|
280
281
|
export default _default;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { ContainerConfiguration } from '../models/configuration/ContainerConfiguration';
|
|
2
2
|
import { GameObjects } from 'phaser';
|
|
3
|
+
import { VNode } from 'vue';
|
|
3
4
|
interface ContainerProps {
|
|
4
5
|
configuration?: Partial<ContainerConfiguration>;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
slots: Readonly<{
|
|
9
|
-
default: () => VNode;
|
|
10
|
-
}> & {
|
|
11
|
-
default: () => VNode;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
default: () => VNode;
|
|
15
9
|
};
|
|
16
|
-
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<ContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<ContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
11
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
19
12
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
20
13
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -265,9 +258,10 @@ declare const __VLS_component: import('vue').DefineComponent<ContainerProps, {},
|
|
|
265
258
|
"onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
|
|
266
259
|
"onUpdate:children"?: ((args_0?: GameObjects.GameObject[] | undefined) => any) | undefined;
|
|
267
260
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
268
|
-
declare const
|
|
261
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
262
|
+
declare const _default: typeof __VLS_export;
|
|
269
263
|
export default _default;
|
|
270
|
-
type
|
|
264
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
271
265
|
new (): {
|
|
272
266
|
$slots: S;
|
|
273
267
|
};
|
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
import { Types } from 'phaser';
|
|
2
2
|
import { Except } from 'type-fest';
|
|
3
|
+
import { VNode } from 'vue';
|
|
3
4
|
interface GameProps {
|
|
4
5
|
configuration: Except<Types.Core.GameConfig, "scene">;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
slots: Readonly<{
|
|
9
|
-
default: () => VNode;
|
|
10
|
-
}> & {
|
|
11
|
-
default: () => VNode;
|
|
12
|
-
};
|
|
13
|
-
refs: {
|
|
14
|
-
canvasRoot: HTMLDivElement;
|
|
15
|
-
};
|
|
16
|
-
rootEl: any;
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
default: () => VNode;
|
|
17
9
|
};
|
|
18
|
-
|
|
19
|
-
declare const
|
|
20
|
-
|
|
21
|
-
}, any>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<GameProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GameProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
23
13
|
export default _default;
|
|
24
|
-
type
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
15
|
new (): {
|
|
26
16
|
$slots: S;
|
|
27
17
|
};
|
|
@@ -6,7 +6,7 @@ export interface ImageProps {
|
|
|
6
6
|
configuration: SetRequired<Partial<ImageConfiguration>, "texture">;
|
|
7
7
|
onComplete?: (scene: SceneWithPlugins, image: GameObjects.Image) => void;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<ImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
10
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
11
11
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
12
12
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -309,4 +309,5 @@ declare const _default: import('vue').DefineComponent<ImageProps, {}, {}, {}, {}
|
|
|
309
309
|
"onUpdate:anims"?: ((args_0?: string | Phaser.Animations.Animation | Phaser.Types.Animations.PlayAnimationConfig | undefined) => any) | undefined;
|
|
310
310
|
"onUpdate:isCropped"?: ((args_0?: boolean | undefined) => any) | undefined;
|
|
311
311
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
312
|
+
declare const _default: typeof __VLS_export;
|
|
312
313
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { SetRequired } from 'type-fest';
|
|
|
3
3
|
export interface NineSliceProps {
|
|
4
4
|
configuration: SetRequired<Partial<NineSliceConfiguration>, "texture">;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<NineSliceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
8
8
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
9
9
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -278,4 +278,5 @@ declare const _default: import('vue').DefineComponent<NineSliceProps, {}, {}, {}
|
|
|
278
278
|
"onUpdate:topHeight"?: ((args_0?: number | undefined) => any) | undefined;
|
|
279
279
|
"onUpdate:bottomHeight"?: ((args_0?: number | undefined) => any) | undefined;
|
|
280
280
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
281
|
+
declare const _default: typeof __VLS_export;
|
|
281
282
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export interface PathFollowerProps {
|
|
|
6
6
|
configuration: SetRequired<Partial<PathFollowerConfiguration>, "path" | "texture">;
|
|
7
7
|
onComplete?: (scene: SceneWithPlugins, pathFollower: GameObjects.PathFollower) => void;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<PathFollowerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
10
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
11
11
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
12
12
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -317,4 +317,5 @@ declare const _default: import('vue').DefineComponent<PathFollowerProps, {}, {},
|
|
|
317
317
|
"onUpdate:rotationOffset"?: ((args_0?: number | undefined) => any) | undefined;
|
|
318
318
|
"onUpdate:startAt"?: ((args_0?: number | undefined) => any) | undefined;
|
|
319
319
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
320
|
+
declare const _default: typeof __VLS_export;
|
|
320
321
|
export default _default;
|
|
@@ -6,7 +6,7 @@ interface RectangleProps {
|
|
|
6
6
|
immediate?: true;
|
|
7
7
|
onComplete?: (scene: SceneWithPlugins, rectangle: GameObjects.Rectangle) => void;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<RectangleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
10
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
11
11
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
12
12
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -277,4 +277,5 @@ declare const _default: import('vue').DefineComponent<RectangleProps, {}, {}, {}
|
|
|
277
277
|
"onUpdate:fillColor"?: ((args_0?: number | undefined) => any) | undefined;
|
|
278
278
|
"onUpdate:strokeStyle"?: ((args_0?: [lineWidth?: number | undefined, color?: number | undefined, alpha?: number | undefined] | undefined) => any) | undefined;
|
|
279
279
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
280
|
+
declare const _default: typeof __VLS_export;
|
|
280
281
|
export default _default;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { SceneProps } from '../models/scene/SceneProps';
|
|
2
2
|
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
default: () => VNode;
|
|
7
|
-
}> & {
|
|
8
|
-
default: () => VNode;
|
|
9
|
-
};
|
|
10
|
-
refs: {};
|
|
11
|
-
rootEl: any;
|
|
3
|
+
import { VNode } from 'vue';
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
default: () => VNode;
|
|
12
6
|
};
|
|
13
|
-
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<SceneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<SceneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
8
|
update: (args_0: SceneWithPlugins, time: number, delta: number) => any;
|
|
16
9
|
shutdown: (args_0: SceneWithPlugins) => any;
|
|
17
10
|
init: (args_0: SceneWithPlugins) => any;
|
|
@@ -24,9 +17,10 @@ declare const __VLS_component: import('vue').DefineComponent<SceneProps, {}, {},
|
|
|
24
17
|
onCreate?: ((args_0: SceneWithPlugins) => any) | undefined;
|
|
25
18
|
onPreload?: ((args_0: SceneWithPlugins) => any) | undefined;
|
|
26
19
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
-
declare const
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
28
22
|
export default _default;
|
|
29
|
-
type
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
24
|
new (): {
|
|
31
25
|
$slots: S;
|
|
32
26
|
};
|
|
@@ -7,7 +7,7 @@ export interface SpriteProps {
|
|
|
7
7
|
immediate?: true;
|
|
8
8
|
onComplete?: (scene: SceneWithPlugins, sprite: GameObjects.Sprite) => void;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<SpriteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
11
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
12
12
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
13
13
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -310,4 +310,5 @@ declare const _default: import('vue').DefineComponent<SpriteProps, {}, {}, {}, {
|
|
|
310
310
|
"onUpdate:animations"?: ((args_0?: Phaser.Types.Animations.Animation[] | undefined) => any) | undefined;
|
|
311
311
|
"onUpdate:playAnimationKey"?: ((args_0?: string | undefined) => any) | undefined;
|
|
312
312
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
313
|
+
declare const _default: typeof __VLS_export;
|
|
313
314
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextProps } from '../models/text/TextProps';
|
|
2
|
-
declare const
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<TextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
3
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
4
4
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
5
5
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -296,4 +296,5 @@ declare const _default: import('vue').DefineComponent<TextProps, {}, {}, {}, {},
|
|
|
296
296
|
"onUpdate:style"?: ((args_0?: Phaser.Types.GameObjects.Text.TextStyle | undefined) => any) | undefined;
|
|
297
297
|
"onUpdate:padding"?: ((args_0?: Phaser.Types.GameObjects.Text.TextPadding | undefined) => any) | undefined;
|
|
298
298
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
299
|
+
declare const _default: typeof __VLS_export;
|
|
299
300
|
export default _default;
|
|
@@ -3,9 +3,10 @@ import { SetRequired } from 'type-fest';
|
|
|
3
3
|
export interface TileSpriteProps {
|
|
4
4
|
configuration: SetRequired<Partial<TileSpriteConfiguration>, "texture">;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<TileSpriteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
[x: string]: (...args: unknown[]) => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<TileSpriteProps> & Readonly<{
|
|
9
9
|
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
11
12
|
export default _default;
|
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
2
2
|
import { Tilemaps, Types } from 'phaser';
|
|
3
|
+
import { VNode } from 'vue';
|
|
3
4
|
interface TilemapProps {
|
|
4
5
|
configuration: Types.Tilemaps.TilemapConfig;
|
|
5
6
|
onComplete?: (scene: SceneWithPlugins, tilemap: Tilemaps.Tilemap) => void;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
slots: Readonly<{
|
|
10
|
-
default: () => VNode;
|
|
11
|
-
}> & {
|
|
12
|
-
default: () => VNode;
|
|
13
|
-
};
|
|
14
|
-
refs: {};
|
|
15
|
-
rootEl: any;
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default: () => VNode;
|
|
16
10
|
};
|
|
17
|
-
|
|
18
|
-
declare const
|
|
19
|
-
declare const _default:
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<TilemapProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TilemapProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
20
14
|
export default _default;
|
|
21
|
-
type
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
16
|
new (): {
|
|
23
17
|
$slots: S;
|
|
24
18
|
};
|
|
@@ -3,7 +3,7 @@ import { SetRequired } from 'type-fest';
|
|
|
3
3
|
interface ZoneProps {
|
|
4
4
|
configuration: SetRequired<Partial<ZoneConfiguration>, "height" | "width" | "x" | "y">;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<ZoneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
clickoutside: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
8
8
|
drag: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
9
9
|
dragend: (...args: Phaser.Types.Input.EventData[]) => any;
|
|
@@ -256,4 +256,5 @@ declare const _default: import('vue').DefineComponent<ZoneProps, {}, {}, {}, {},
|
|
|
256
256
|
interpolation?: (string | Function) | undefined;
|
|
257
257
|
}[] | undefined) => any) | undefined;
|
|
258
258
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
259
|
+
declare const _default: typeof __VLS_export;
|
|
259
260
|
export default _default;
|