vue-phaserjs 2.11.0 → 2.13.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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/components/Circle.vue.d.ts +9 -9
  3. package/dist/components/Container.vue.d.ts +3 -3
  4. package/dist/components/Game.vue.d.ts +1 -1
  5. package/dist/components/Image.vue.d.ts +9 -9
  6. package/dist/components/Nineslice.vue.d.ts +9 -9
  7. package/dist/components/PathFollower.vue.d.ts +9 -9
  8. package/dist/components/Rectangle.vue.d.ts +9 -9
  9. package/dist/components/Scene.vue.d.ts +1 -1
  10. package/dist/components/Sprite.vue.d.ts +9 -9
  11. package/dist/components/Text.vue.d.ts +9 -9
  12. package/dist/components/TileSprite.vue.d.ts +1 -1
  13. package/dist/components/Tilemap.vue.d.ts +1 -1
  14. package/dist/components/Zone.vue.d.ts +1 -1
  15. package/dist/composables/useAnimations.d.ts +1 -43
  16. package/dist/composables/useGame.d.ts +1 -2
  17. package/dist/index.d.ts +3 -6
  18. package/dist/index.js +734 -767
  19. package/dist/models/configuration/ImageConfiguration.d.ts +2 -2
  20. package/dist/models/configuration/NineSliceConfiguration.d.ts +2 -2
  21. package/dist/models/configuration/PathFollowerConfiguration.d.ts +2 -2
  22. package/dist/models/configuration/SpriteConfiguration.d.ts +2 -2
  23. package/dist/models/configuration/TextConfiguration.d.ts +2 -2
  24. package/dist/models/configuration/TileSpriteConfiguration.d.ts +2 -2
  25. package/dist/models/configuration/components/RenderNodesConfiguration.d.ts +4 -0
  26. package/dist/models/configuration/shared/ShapeConfiguration.d.ts +2 -2
  27. package/dist/models/emit/components/RenderNodesEventEmitsOptions.d.ts +6 -0
  28. package/dist/store/camera.d.ts +1 -14
  29. package/dist/store/index.d.ts +1 -30
  30. package/dist/store/input.d.ts +1 -7
  31. package/dist/store/text.d.ts +1 -8
  32. package/dist/util/setterMap/components/MaskSetterMap.d.ts +1 -1
  33. package/dist/util/setterMap/components/RenderNodesSetterMap.d.ts +1 -0
  34. package/dist/util/setterMap/shared/AnimationSetterMap.d.ts +1 -1
  35. package/dist/util/setterMap/shared/ShapeSetterMap.d.ts +1 -2
  36. package/package.json +4 -4
  37. package/dist/models/configuration/components/FXConfiguration.d.ts +0 -4
  38. package/dist/models/configuration/components/PipelineConfiguration.d.ts +0 -4
  39. package/dist/models/emit/components/FXEventEmitsOptions.d.ts +0 -6
  40. package/dist/models/emit/components/PipelineEventEmitsOptions.d.ts +0 -6
  41. package/dist/util/setterMap/components/FXSetterMap.d.ts +0 -4
  42. package/dist/util/setterMap/components/PipelineSetterMap.d.ts +0 -4
@@ -4,7 +4,7 @@ import { DepthConfiguration } from './components/DepthConfiguration';
4
4
  import { FlipConfiguration } from './components/FlipConfiguration';
5
5
  import { MaskConfiguration } from './components/MaskConfiguration';
6
6
  import { OriginConfiguration } from './components/OriginConfiguration';
7
- import { PipelineConfiguration } from './components/PipelineConfiguration';
7
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
8
8
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
9
9
  import { SizeConfiguration } from './components/SizeConfiguration';
10
10
  import { TextureCropConfiguration } from './components/TextureCropConfiguration';
@@ -14,5 +14,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
14
14
  import { GlobalConfiguration } from './global/GlobalConfiguration';
15
15
  import { Types } from 'phaser';
16
16
  import { Except } from 'type-fest';
17
- export interface ImageConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Sprite.SpriteConfig, "frame" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureCropConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
17
+ export interface ImageConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Sprite.SpriteConfig, "frame" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureCropConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
18
18
  }
@@ -3,7 +3,7 @@ import { BlendModeConfiguration } from './components/BlendModeConfiguration';
3
3
  import { DepthConfiguration } from './components/DepthConfiguration';
4
4
  import { MaskConfiguration } from './components/MaskConfiguration';
5
5
  import { OriginConfiguration } from './components/OriginConfiguration';
6
- import { PipelineConfiguration } from './components/PipelineConfiguration';
6
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
7
7
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
8
8
  import { TextureConfiguration } from './components/TextureConfiguration';
9
9
  import { TransformConfiguration } from './components/TransformConfiguration';
@@ -11,5 +11,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
11
11
  import { GlobalConfiguration } from './global/GlobalConfiguration';
12
12
  import { Types } from 'phaser';
13
13
  import { Except } from 'type-fest';
14
- export interface NineSliceConfiguration extends AlphaSingleConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.NineSlice.NineSliceConfig, "frame" | keyof Types.GameObjects.GameObjectConfig>, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, TextureConfiguration, TransformConfiguration, VisibleConfiguration {
14
+ export interface NineSliceConfiguration extends AlphaSingleConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.NineSlice.NineSliceConfig, "frame" | keyof Types.GameObjects.GameObjectConfig>, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TextureConfiguration, TransformConfiguration, VisibleConfiguration {
15
15
  }
@@ -5,7 +5,7 @@ import { FlipConfiguration } from './components/FlipConfiguration';
5
5
  import { MaskConfiguration } from './components/MaskConfiguration';
6
6
  import { OriginConfiguration } from './components/OriginConfiguration';
7
7
  import { PathFollowerComponentConfiguration } from './components/PathFollowerComponentConfiguration';
8
- import { PipelineConfiguration } from './components/PipelineConfiguration';
8
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
9
9
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
10
10
  import { SizeConfiguration } from './components/SizeConfiguration';
11
11
  import { TextureConfiguration } from './components/TextureConfiguration';
@@ -15,5 +15,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
15
15
  import { GlobalConfiguration } from './global/GlobalConfiguration';
16
16
  import { Types } from 'phaser';
17
17
  import { Except } from 'type-fest';
18
- export interface PathFollowerConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.PathFollower.PathConfig, "rotateToPath">, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PathFollowerComponentConfiguration, PipelineConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
18
+ export interface PathFollowerConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.PathFollower.PathConfig, "rotateToPath">, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PathFollowerComponentConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
19
19
  }
@@ -4,7 +4,7 @@ import { DepthConfiguration } from './components/DepthConfiguration';
4
4
  import { FlipConfiguration } from './components/FlipConfiguration';
5
5
  import { MaskConfiguration } from './components/MaskConfiguration';
6
6
  import { OriginConfiguration } from './components/OriginConfiguration';
7
- import { PipelineConfiguration } from './components/PipelineConfiguration';
7
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
8
8
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
9
9
  import { SizeConfiguration } from './components/SizeConfiguration';
10
10
  import { TextureConfiguration } from './components/TextureConfiguration';
@@ -15,5 +15,5 @@ import { GlobalConfiguration } from './global/GlobalConfiguration';
15
15
  import { AnimationConfiguration } from './shared/AnimationConfiguration';
16
16
  import { Types } from 'phaser';
17
17
  import { Except } from 'type-fest';
18
- export interface SpriteConfiguration extends AlphaConfiguration, AnimationConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Sprite.SpriteConfig, "anims" | "frame" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
18
+ export interface SpriteConfiguration extends AlphaConfiguration, AnimationConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Sprite.SpriteConfig, "anims" | "frame" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
19
19
  }
@@ -5,7 +5,7 @@ import { DepthConfiguration } from './components/DepthConfiguration';
5
5
  import { FlipConfiguration } from './components/FlipConfiguration';
6
6
  import { MaskConfiguration } from './components/MaskConfiguration';
7
7
  import { OriginConfiguration } from './components/OriginConfiguration';
8
- import { PipelineConfiguration } from './components/PipelineConfiguration';
8
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
9
9
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
10
10
  import { TintConfiguration } from './components/TintConfiguration';
11
11
  import { TransformConfiguration } from './components/TransformConfiguration';
@@ -13,6 +13,6 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
13
13
  import { GlobalConfiguration } from './global/GlobalConfiguration';
14
14
  import { Types } from 'phaser';
15
15
  import { Except } from 'type-fest';
16
- export interface TextConfiguration extends AlphaConfiguration, BlendModeConfiguration, ComputedSizeConfiguration, DepthConfiguration, Except<Types.GameObjects.Text.TextConfig, keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
16
+ export interface TextConfiguration extends AlphaConfiguration, BlendModeConfiguration, ComputedSizeConfiguration, DepthConfiguration, Except<Types.GameObjects.Text.TextConfig, keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
17
17
  text: string;
18
18
  }
@@ -5,7 +5,7 @@ import { DepthConfiguration } from './components/DepthConfiguration';
5
5
  import { FlipConfiguration } from './components/FlipConfiguration';
6
6
  import { MaskConfiguration } from './components/MaskConfiguration';
7
7
  import { OriginConfiguration } from './components/OriginConfiguration';
8
- import { PipelineConfiguration } from './components/PipelineConfiguration';
8
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
9
9
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
10
10
  import { TextureConfiguration } from './components/TextureConfiguration';
11
11
  import { TintConfiguration } from './components/TintConfiguration';
@@ -14,5 +14,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
14
14
  import { GlobalConfiguration } from './global/GlobalConfiguration';
15
15
  import { Types } from 'phaser';
16
16
  import { Except } from 'type-fest';
17
- export interface TileSpriteConfiguration extends AlphaConfiguration, BlendModeConfiguration, ComputedSizeConfiguration, DepthConfiguration, Except<Types.GameObjects.TileSprite.TileSpriteConfig, "frame" | "height" | "width" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
17
+ export interface TileSpriteConfiguration extends AlphaConfiguration, BlendModeConfiguration, ComputedSizeConfiguration, DepthConfiguration, Except<Types.GameObjects.TileSprite.TileSpriteConfig, "frame" | "height" | "width" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
18
18
  }
@@ -0,0 +1,4 @@
1
+ import { ExcludeFunctionProperties } from '@esposter/shared';
2
+ import { GameObjects } from 'phaser';
3
+ export interface RenderNodesConfiguration extends ExcludeFunctionProperties<GameObjects.Components.RenderNodes> {
4
+ }
@@ -3,13 +3,13 @@ import { BlendModeConfiguration } from '../components/BlendModeConfiguration';
3
3
  import { DepthConfiguration } from '../components/DepthConfiguration';
4
4
  import { MaskConfiguration } from '../components/MaskConfiguration';
5
5
  import { OriginConfiguration } from '../components/OriginConfiguration';
6
- import { PipelineConfiguration } from '../components/PipelineConfiguration';
6
+ import { RenderNodesConfiguration } from '../components/RenderNodesConfiguration';
7
7
  import { ScrollFactorConfiguration } from '../components/ScrollFactorConfiguration';
8
8
  import { TransformConfiguration } from '../components/TransformConfiguration';
9
9
  import { VisibleConfiguration } from '../components/VisibleConfiguration';
10
10
  import { GlobalConfiguration } from '../global/GlobalConfiguration';
11
11
  import { GameObjects } from 'phaser';
12
- export type ShapeConfiguration = AlphaSingleConfiguration & BlendModeConfiguration & DepthConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PipelineConfiguration & ScrollFactorConfiguration & TransformConfiguration & VisibleConfiguration & {
12
+ export type ShapeConfiguration = AlphaSingleConfiguration & BlendModeConfiguration & DepthConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & RenderNodesConfiguration & ScrollFactorConfiguration & TransformConfiguration & VisibleConfiguration & {
13
13
  active: GameObjects.Shape["active"];
14
14
  displayHeight: GameObjects.Shape["displayHeight"];
15
15
  displayWidth: GameObjects.Shape["displayWidth"];
@@ -0,0 +1,6 @@
1
+ import { RenderNodesConfiguration } from '../../configuration/components/RenderNodesConfiguration';
2
+ import { ExtractUpdateEvent } from '../../../util/types/ExtractUpdateEvent';
3
+ import { UpdateEvent } from '../../../util/types/UpdateEvent';
4
+ export type RenderNodesEventEmitsOptions = {
5
+ [P in UpdateEvent<keyof RenderNodesConfiguration>]: [RenderNodesConfiguration[ExtractUpdateEvent<P>]?];
6
+ };
@@ -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">>;
1
+ export declare const useCameraStore: any;
@@ -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">>;
1
+ export declare const usePhaserStore: any;
@@ -1,7 +1 @@
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>>;
1
+ export declare const useInputStore: any;
@@ -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>>;
1
+ export declare const useTextStore: any;
@@ -1,4 +1,4 @@
1
1
  import { GameObjects } from 'phaser';
2
2
  export declare const MaskSetterMap: {
3
- readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => void;
3
+ readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.GeometryMask | undefined) => void;
4
4
  };
@@ -0,0 +1 @@
1
+ export declare const RenderNodesSetterMap: {};
@@ -84,6 +84,6 @@ export declare const AnimationSetterMap: {
84
84
  onResumeParams?: any[] | undefined;
85
85
  persist?: boolean | undefined;
86
86
  interpolation?: (string | Function) | undefined;
87
- }[] | undefined) => void) & ((event: "update:flipX", args_0?: boolean | undefined) => void) & ((event: "update:flipY", args_0?: boolean | undefined) => void) & ((event: "update:alpha", args_0?: number | undefined) => void) & ((event: "update:blendMode", args_0?: string | number | Phaser.BlendModes | undefined) => void) & ((event: "update:key", args_0?: string | Phaser.Textures.Texture | undefined) => void) & ((event: "update:alphaTopLeft", args_0?: number | undefined) => void) & ((event: "update:alphaTopRight", args_0?: number | undefined) => void) & ((event: "update:alphaBottomLeft", args_0?: number | undefined) => void) & ((event: "update:alphaBottomRight", args_0?: number | undefined) => void) & ((event: "update:mask", args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => void) & ((event: "update:defaultPipeline", args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => void) & ((event: "update:pipeline", args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => void) & ((event: "update:pipelineData", args_0?: object | undefined) => void) & ((event: "update:frame", args_0?: string | number | undefined) => void) & ((event: "update:texture", args_0?: string | undefined) => void) & ((event: "update:tintTopLeft", args_0?: number | undefined) => void) & ((event: "update:tintTopRight", args_0?: number | undefined) => void) & ((event: "update:tintBottomLeft", args_0?: number | undefined) => void) & ((event: "update:tintBottomRight", args_0?: number | undefined) => void) & ((event: "update:tintFill", args_0?: boolean | undefined) => void) & ((event: "update:tint", args_0?: number | undefined) => void) & ((event: "update:isTinted", args_0?: boolean | undefined) => void) & ((event: "update:useSpriteSheet", args_0?: boolean | undefined) => void) & ((event: "update:animations", args_0?: Phaser.Types.Animations.Animation[] | undefined) => void) & ((event: "update:playAnimationKey", args_0?: string | undefined) => void)) => (configurations: Phaser.Types.Animations.Animation[] | undefined) => void;
87
+ }[] | undefined) => void) & ((event: "update:flipX", args_0?: boolean | undefined) => void) & ((event: "update:flipY", args_0?: boolean | undefined) => void) & ((event: "update:alpha", args_0?: number | undefined) => void) & ((event: "update:blendMode", args_0?: string | number | Phaser.BlendModes | undefined) => void) & ((event: "update:key", args_0?: string | Phaser.Textures.Texture | undefined) => void) & ((event: "update:alphaTopLeft", args_0?: number | undefined) => void) & ((event: "update:alphaTopRight", args_0?: number | undefined) => void) & ((event: "update:alphaBottomLeft", args_0?: number | undefined) => void) & ((event: "update:alphaBottomRight", args_0?: number | undefined) => void) & ((event: "update:mask", args_0?: Phaser.Display.Masks.GeometryMask | undefined) => void) & ((event: "update:customRenderNodes", args_0?: object | undefined) => void) & ((event: "update:defaultRenderNodes", args_0?: object | undefined) => void) & ((event: "update:renderNodeData", args_0?: object | undefined) => void) & ((event: "update:frame", args_0?: string | number | undefined) => void) & ((event: "update:texture", args_0?: string | undefined) => void) & ((event: "update:tintTopLeft", args_0?: number | undefined) => void) & ((event: "update:tintTopRight", args_0?: number | undefined) => void) & ((event: "update:tintBottomLeft", args_0?: number | undefined) => void) & ((event: "update:tintBottomRight", args_0?: number | undefined) => void) & ((event: "update:tintFill", args_0?: boolean | undefined) => void) & ((event: "update:tint", args_0?: number | undefined) => void) & ((event: "update:isTinted", args_0?: boolean | undefined) => void) & ((event: "update:useSpriteSheet", args_0?: boolean | undefined) => void) & ((event: "update:animations", args_0?: Phaser.Types.Animations.Animation[] | undefined) => void) & ((event: "update:playAnimationKey", args_0?: string | undefined) => void)) => (configurations: Phaser.Types.Animations.Animation[] | undefined) => void;
88
88
  readonly playAnimationKey: (gameObject: GameObjects.Sprite) => (value: string | undefined) => void;
89
89
  };
@@ -19,13 +19,12 @@ export declare const ShapeSetterMap: {
19
19
  readonly scrollFactor: (gameObject: GameObjects.Components.ScrollFactor) => (value: number | undefined) => void;
20
20
  readonly scrollFactorX: (gameObject: GameObjects.Components.ScrollFactor) => (value: number | undefined) => void;
21
21
  readonly scrollFactorY: (gameObject: GameObjects.Components.ScrollFactor) => (value: number | undefined) => void;
22
- readonly pipeline: (gameObject: GameObjects.Components.Pipeline) => (value: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => void;
23
22
  readonly displayOriginX: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
24
23
  readonly displayOriginY: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
25
24
  readonly origin: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
26
25
  readonly originX: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
27
26
  readonly originY: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
28
- readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => void;
27
+ readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.GeometryMask | undefined) => void;
29
28
  readonly depth: (gameObject: GameObjects.Components.Depth & GameObjects.GameObject) => (value: number | undefined) => void;
30
29
  readonly blendMode: (gameObject: GameObjects.Components.BlendMode) => (value: string | number | Phaser.BlendModes | undefined) => void;
31
30
  readonly alpha: (gameObject: GameObjects.Components.AlphaSingle) => (value: number | undefined) => GameObjects.Components.AlphaSingle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-phaserjs",
3
- "version": "2.11.0",
3
+ "version": "2.13.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.11.0"
36
+ "parse-tmx": "2.13.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "phaser": "^3.90.0",
39
+ "phaser": "^4.0.0-rc.5",
40
40
  "phaser3-rex-plugins": "^1.80.16",
41
41
  "pinia": "^3.0.3",
42
42
  "vue": "^3.5.18"
43
43
  },
44
- "gitHead": "e3d27b0dd40f23eebc5236a975406d0ada8e66c4"
44
+ "gitHead": "1765c0d90ecc03c94e942d88b8d8da962a8f53bc"
45
45
  }
@@ -1,4 +0,0 @@
1
- import { ExcludeFunctionProperties } from '@esposter/shared';
2
- import { GameObjects } from 'phaser';
3
- export interface FXConfiguration extends ExcludeFunctionProperties<GameObjects.Components.FX> {
4
- }
@@ -1,4 +0,0 @@
1
- import { ExcludeFunctionProperties } from '@esposter/shared';
2
- import { GameObjects } from 'phaser';
3
- export interface PipelineConfiguration extends ExcludeFunctionProperties<GameObjects.Components.Pipeline> {
4
- }
@@ -1,6 +0,0 @@
1
- import { FXConfiguration } from '../../configuration/components/FXConfiguration';
2
- import { ExtractUpdateEvent } from '../../../util/types/ExtractUpdateEvent';
3
- import { UpdateEvent } from '../../../util/types/UpdateEvent';
4
- export type FXEventEmitsOptions = {
5
- [P in UpdateEvent<keyof FXConfiguration>]: [FXConfiguration[ExtractUpdateEvent<P>]?];
6
- };
@@ -1,6 +0,0 @@
1
- import { PipelineConfiguration } from '../../configuration/components/PipelineConfiguration';
2
- import { ExtractUpdateEvent } from '../../../util/types/ExtractUpdateEvent';
3
- import { UpdateEvent } from '../../../util/types/UpdateEvent';
4
- export type PipelineEventEmitsOptions = {
5
- [P in UpdateEvent<keyof PipelineConfiguration>]: [PipelineConfiguration[ExtractUpdateEvent<P>]?];
6
- };
@@ -1,4 +0,0 @@
1
- import { GameObjects } from 'phaser';
2
- export declare const FXSetterMap: {
3
- readonly padding: (gameObject: GameObjects.Components.FX) => (value: number | undefined) => GameObjects.Components.FX;
4
- };
@@ -1,4 +0,0 @@
1
- import { GameObjects } from 'phaser';
2
- export declare const PipelineSetterMap: {
3
- readonly pipeline: (gameObject: GameObjects.Components.Pipeline) => (value: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => void;
4
- };