vue-phaserjs 3.2.0 → 3.3.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/index.d.ts CHANGED
@@ -2043,8 +2043,8 @@ declare const __VLS_export$26: import("vue").DefineComponent<Props$24, {}, {}, {
2043
2043
  pointerover: (...args: Phaser.Types.Input.EventData[]) => any;
2044
2044
  pointerup: (...args: Phaser.Types.Input.EventData[]) => any;
2045
2045
  wheel: (...args: Phaser.Types.Input.EventData[]) => any;
2046
- "update:height": (args_0?: number | undefined) => any;
2047
2046
  "update:width": (args_0?: number | undefined) => any;
2047
+ "update:height": (args_0?: number | undefined) => any;
2048
2048
  }, string, import("vue").PublicProps, Readonly<Props$24> & Readonly<{
2049
2049
  "onUpdate:visible"?: ((args_0?: boolean | undefined) => any) | undefined;
2050
2050
  "onUpdate:depth"?: ((args_0?: number | undefined) => any) | undefined;
@@ -2169,8 +2169,8 @@ declare const __VLS_export$26: import("vue").DefineComponent<Props$24, {}, {}, {
2169
2169
  onPointerover?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
2170
2170
  onPointerup?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
2171
2171
  onWheel?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
2172
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
2173
2172
  "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
2173
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
2174
2174
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2175
2175
  declare const _default$26: typeof __VLS_export$26;
2176
2176
  //#endregion
@@ -2975,12 +2975,12 @@ declare const __VLS_export$23: import("vue").DefineComponent<Props$21, {}, {}, {
2975
2975
  "update:tintMode": (args_0?: Phaser.TintModes | undefined) => any;
2976
2976
  "update:tint": (args_0?: number | undefined) => any;
2977
2977
  "update:isTinted": (args_0?: boolean | undefined) => any;
2978
- "update:height": (args_0?: number | undefined) => any;
2979
- "update:width": (args_0?: number | undefined) => any;
2980
2978
  "update:key": (args_0?: string | undefined) => any;
2981
2979
  "update:frame": (args_0?: string | number | undefined) => any;
2982
2980
  "update:flipX": (args_0?: boolean | undefined) => any;
2983
2981
  "update:flipY": (args_0?: boolean | undefined) => any;
2982
+ "update:width": (args_0?: number | undefined) => any;
2983
+ "update:height": (args_0?: number | undefined) => any;
2984
2984
  "update:texture": (args_0?: string | undefined) => any;
2985
2985
  }, string, import("vue").PublicProps, Readonly<Props$21> & Readonly<{
2986
2986
  "onUpdate:visible"?: ((args_0?: boolean | undefined) => any) | undefined;
@@ -3127,12 +3127,12 @@ declare const __VLS_export$23: import("vue").DefineComponent<Props$21, {}, {}, {
3127
3127
  "onUpdate:tintMode"?: ((args_0?: Phaser.TintModes | undefined) => any) | undefined;
3128
3128
  "onUpdate:tint"?: ((args_0?: number | undefined) => any) | undefined;
3129
3129
  "onUpdate:isTinted"?: ((args_0?: boolean | undefined) => any) | undefined;
3130
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
3131
- "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
3132
3130
  "onUpdate:key"?: ((args_0?: string | undefined) => any) | undefined;
3133
3131
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
3134
3132
  "onUpdate:flipX"?: ((args_0?: boolean | undefined) => any) | undefined;
3135
3133
  "onUpdate:flipY"?: ((args_0?: boolean | undefined) => any) | undefined;
3134
+ "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
3135
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
3136
3136
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
3137
3137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3138
3138
  declare const _default$22: typeof __VLS_export$23;
@@ -3312,10 +3312,10 @@ declare const __VLS_export$21: import("vue").DefineComponent<TextProps, {}, {},
3312
3312
  "update:tintMode": (args_0?: Phaser.TintModes | undefined) => any;
3313
3313
  "update:tint": (args_0?: number | undefined) => any;
3314
3314
  "update:isTinted": (args_0?: boolean | undefined) => any;
3315
- "update:height": (args_0?: number | undefined) => any;
3316
- "update:width": (args_0?: number | undefined) => any;
3317
3315
  "update:flipX": (args_0?: boolean | undefined) => any;
3318
3316
  "update:flipY": (args_0?: boolean | undefined) => any;
3317
+ "update:width": (args_0?: number | undefined) => any;
3318
+ "update:height": (args_0?: number | undefined) => any;
3319
3319
  "update:style": (args_0?: Phaser.Types.GameObjects.Text.TextStyle | undefined) => any;
3320
3320
  "update:padding": (args_0?: Phaser.Types.GameObjects.Text.TextPadding | undefined) => any;
3321
3321
  }, string, import("vue").PublicProps, Readonly<TextProps> & Readonly<{
@@ -3464,10 +3464,10 @@ declare const __VLS_export$21: import("vue").DefineComponent<TextProps, {}, {},
3464
3464
  "onUpdate:tintMode"?: ((args_0?: Phaser.TintModes | undefined) => any) | undefined;
3465
3465
  "onUpdate:tint"?: ((args_0?: number | undefined) => any) | undefined;
3466
3466
  "onUpdate:isTinted"?: ((args_0?: boolean | undefined) => any) | undefined;
3467
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
3468
- "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
3469
3467
  "onUpdate:flipX"?: ((args_0?: boolean | undefined) => any) | undefined;
3470
3468
  "onUpdate:flipY"?: ((args_0?: boolean | undefined) => any) | undefined;
3469
+ "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
3470
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
3471
3471
  "onUpdate:style"?: ((args_0?: Phaser.Types.GameObjects.Text.TextStyle | undefined) => any) | undefined;
3472
3472
  "onUpdate:padding"?: ((args_0?: Phaser.Types.GameObjects.Text.TextPadding | undefined) => any) | undefined;
3473
3473
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -3924,13 +3924,13 @@ declare const __VLS_export$19: import("vue").DefineComponent<Props$18, {}, {}, {
3924
3924
  "update:tintMode": (args_0?: Phaser.TintModes | undefined) => any;
3925
3925
  "update:tint": (args_0?: number | undefined) => any;
3926
3926
  "update:isTinted": (args_0?: boolean | undefined) => any;
3927
- "update:height": (args_0?: number | undefined) => any;
3928
- "update:width": (args_0?: number | undefined) => any;
3929
3927
  "update:key": (args_0?: string | Phaser.Textures.Texture | undefined) => any;
3930
3928
  "update:frame": (args_0?: string | number | undefined) => any;
3931
3929
  "update:flipX": (args_0?: boolean | undefined) => any;
3932
3930
  "update:flipY": (args_0?: boolean | undefined) => any;
3933
3931
  "update:useSpriteSheet": (args_0?: boolean | undefined) => any;
3932
+ "update:width": (args_0?: number | undefined) => any;
3933
+ "update:height": (args_0?: number | undefined) => any;
3934
3934
  "update:texture": (args_0?: string | undefined) => any;
3935
3935
  "update:animations": (args_0?: Phaser.Types.Animations.Animation[] | undefined) => any;
3936
3936
  "update:playAnimationKey": (args_0?: undefined) => any;
@@ -4079,13 +4079,13 @@ declare const __VLS_export$19: import("vue").DefineComponent<Props$18, {}, {}, {
4079
4079
  "onUpdate:tintMode"?: ((args_0?: Phaser.TintModes | undefined) => any) | undefined;
4080
4080
  "onUpdate:tint"?: ((args_0?: number | undefined) => any) | undefined;
4081
4081
  "onUpdate:isTinted"?: ((args_0?: boolean | undefined) => any) | undefined;
4082
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
4083
- "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
4084
4082
  "onUpdate:key"?: ((args_0?: string | Phaser.Textures.Texture | undefined) => any) | undefined;
4085
4083
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
4086
4084
  "onUpdate:flipX"?: ((args_0?: boolean | undefined) => any) | undefined;
4087
4085
  "onUpdate:flipY"?: ((args_0?: boolean | undefined) => any) | undefined;
4088
4086
  "onUpdate:useSpriteSheet"?: ((args_0?: boolean | undefined) => any) | undefined;
4087
+ "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
4088
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
4089
4089
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
4090
4090
  "onUpdate:animations"?: ((args_0?: Phaser.Types.Animations.Animation[] | undefined) => any) | undefined;
4091
4091
  "onUpdate:playAnimationKey"?: ((args_0?: undefined) => any) | undefined;
@@ -4280,10 +4280,10 @@ declare const __VLS_export$17: import("vue").DefineComponent<Props$17, {}, {}, {
4280
4280
  "update:tintMode": (args_0?: Phaser.TintModes | undefined) => any;
4281
4281
  "update:tint": (args_0?: number | undefined) => any;
4282
4282
  "update:isTinted": (args_0?: boolean | undefined) => any;
4283
- "update:height": (args_0?: number | undefined) => any;
4284
- "update:width": (args_0?: number | undefined) => any;
4285
4283
  "update:flipX": (args_0?: boolean | undefined) => any;
4286
4284
  "update:flipY": (args_0?: boolean | undefined) => any;
4285
+ "update:width": (args_0?: number | undefined) => any;
4286
+ "update:height": (args_0?: number | undefined) => any;
4287
4287
  }, string, import("vue").PublicProps, Readonly<Props$17> & Readonly<{
4288
4288
  "onUpdate:visible"?: ((args_0?: boolean | undefined) => any) | undefined;
4289
4289
  "onUpdate:alpha"?: ((args_0?: number | undefined) => any) | undefined;
@@ -4429,10 +4429,10 @@ declare const __VLS_export$17: import("vue").DefineComponent<Props$17, {}, {}, {
4429
4429
  "onUpdate:tintMode"?: ((args_0?: Phaser.TintModes | undefined) => any) | undefined;
4430
4430
  "onUpdate:tint"?: ((args_0?: number | undefined) => any) | undefined;
4431
4431
  "onUpdate:isTinted"?: ((args_0?: boolean | undefined) => any) | undefined;
4432
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
4433
- "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
4434
4432
  "onUpdate:flipX"?: ((args_0?: boolean | undefined) => any) | undefined;
4435
4433
  "onUpdate:flipY"?: ((args_0?: boolean | undefined) => any) | undefined;
4434
+ "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
4435
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
4436
4436
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4437
4437
  declare const _default$17: typeof __VLS_export$17;
4438
4438
  //#endregion
@@ -4578,8 +4578,8 @@ declare const __VLS_export$16: import("vue").DefineComponent<Props$16, {}, {}, {
4578
4578
  pointerover: (...args: Phaser.Types.Input.EventData[]) => any;
4579
4579
  pointerup: (...args: Phaser.Types.Input.EventData[]) => any;
4580
4580
  wheel: (...args: Phaser.Types.Input.EventData[]) => any;
4581
- "update:height": (args_0?: number | undefined) => any;
4582
4581
  "update:width": (args_0?: number | undefined) => any;
4582
+ "update:height": (args_0?: number | undefined) => any;
4583
4583
  }, string, import("vue").PublicProps, Readonly<Props$16> & Readonly<{
4584
4584
  "onUpdate:visible"?: ((args_0?: boolean | undefined) => any) | undefined;
4585
4585
  "onUpdate:alpha"?: ((args_0?: number | undefined) => any) | undefined;
@@ -4713,8 +4713,8 @@ declare const __VLS_export$16: import("vue").DefineComponent<Props$16, {}, {}, {
4713
4713
  onPointerover?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
4714
4714
  onPointerup?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
4715
4715
  onWheel?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
4716
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
4717
4716
  "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
4717
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
4718
4718
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4719
4719
  declare const _default$16: typeof __VLS_export$16;
4720
4720
  //#endregion
@@ -5156,11 +5156,11 @@ declare const __VLS_export$14: import("vue").DefineComponent<Props$14, {}, {}, {
5156
5156
  "update:tintMode": (args_0?: Phaser.TintModes | undefined) => any;
5157
5157
  "update:tint": (args_0?: number | undefined) => any;
5158
5158
  "update:isTinted": (args_0?: boolean | undefined) => any;
5159
- "update:height": (args_0?: number | undefined) => any;
5160
- "update:width": (args_0?: number | undefined) => any;
5161
5159
  "update:frame": (args_0?: string | number | undefined) => any;
5162
5160
  "update:flipX": (args_0?: boolean | undefined) => any;
5163
5161
  "update:flipY": (args_0?: boolean | undefined) => any;
5162
+ "update:width": (args_0?: number | undefined) => any;
5163
+ "update:height": (args_0?: number | undefined) => any;
5164
5164
  "update:texture": (args_0?: string | undefined) => any;
5165
5165
  "update:to": (args_0?: number | undefined) => any;
5166
5166
  "update:duration": (args_0?: number | undefined) => any;
@@ -5316,11 +5316,11 @@ declare const __VLS_export$14: import("vue").DefineComponent<Props$14, {}, {}, {
5316
5316
  "onUpdate:tintMode"?: ((args_0?: Phaser.TintModes | undefined) => any) | undefined;
5317
5317
  "onUpdate:tint"?: ((args_0?: number | undefined) => any) | undefined;
5318
5318
  "onUpdate:isTinted"?: ((args_0?: boolean | undefined) => any) | undefined;
5319
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
5320
- "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
5321
5319
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
5322
5320
  "onUpdate:flipX"?: ((args_0?: boolean | undefined) => any) | undefined;
5323
5321
  "onUpdate:flipY"?: ((args_0?: boolean | undefined) => any) | undefined;
5322
+ "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
5323
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
5324
5324
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
5325
5325
  "onUpdate:to"?: ((args_0?: number | undefined) => any) | undefined;
5326
5326
  "onUpdate:duration"?: ((args_0?: number | undefined) => any) | undefined;
@@ -5737,10 +5737,10 @@ declare const __VLS_export$12: import("vue").DefineComponent<Props$12, {}, {}, {
5737
5737
  pointerover: (...args: Phaser.Types.Input.EventData[]) => any;
5738
5738
  pointerup: (...args: Phaser.Types.Input.EventData[]) => any;
5739
5739
  wheel: (...args: Phaser.Types.Input.EventData[]) => any;
5740
- "update:height": (args_0?: number | undefined) => any;
5741
- "update:width": (args_0?: number | undefined) => any;
5742
5740
  "update:key": (args_0?: string | Phaser.Textures.Texture | undefined) => any;
5743
5741
  "update:frame": (args_0?: string | number | undefined) => any;
5742
+ "update:width": (args_0?: number | undefined) => any;
5743
+ "update:height": (args_0?: number | undefined) => any;
5744
5744
  "update:texture": (args_0?: string | undefined) => any;
5745
5745
  "update:leftWidth": (args_0?: number | undefined) => any;
5746
5746
  "update:rightWidth": (args_0?: number | undefined) => any;
@@ -5876,10 +5876,10 @@ declare const __VLS_export$12: import("vue").DefineComponent<Props$12, {}, {}, {
5876
5876
  onPointerover?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
5877
5877
  onPointerup?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
5878
5878
  onWheel?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
5879
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
5880
- "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
5881
5879
  "onUpdate:key"?: ((args_0?: string | Phaser.Textures.Texture | undefined) => any) | undefined;
5882
5880
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
5881
+ "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
5882
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
5883
5883
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
5884
5884
  "onUpdate:leftWidth"?: ((args_0?: number | undefined) => any) | undefined;
5885
5885
  "onUpdate:rightWidth"?: ((args_0?: number | undefined) => any) | undefined;
@@ -6927,14 +6927,14 @@ declare const __VLS_export$8: import("vue").DefineComponent<Props$8, {}, {}, {},
6927
6927
  "update:tintMode": (args_0?: Phaser.TintModes | undefined) => any;
6928
6928
  "update:tint": (args_0?: number | undefined) => any;
6929
6929
  "update:isTinted": (args_0?: boolean | undefined) => any;
6930
- "update:height": (args_0?: number | undefined) => any;
6931
- "update:width": (args_0?: number | undefined) => any;
6932
6930
  "update:key": (args_0?: string | Phaser.Textures.Texture | undefined) => any;
6933
6931
  "update:frame": (args_0?: string | number | undefined) => any;
6934
6932
  "update:flipX": (args_0?: boolean | undefined) => any;
6935
6933
  "update:flipY": (args_0?: boolean | undefined) => any;
6936
6934
  "update:anims": (args_0?: string | Phaser.Animations.Animation | Phaser.Types.Animations.PlayAnimationConfig | undefined) => any;
6937
6935
  "update:useSpriteSheet": (args_0?: boolean | undefined) => any;
6936
+ "update:width": (args_0?: number | undefined) => any;
6937
+ "update:height": (args_0?: number | undefined) => any;
6938
6938
  "update:texture": (args_0?: string | undefined) => any;
6939
6939
  "update:isCropped": (args_0?: boolean | undefined) => any;
6940
6940
  }, string, import("vue").PublicProps, Readonly<Props$8> & Readonly<{
@@ -7082,14 +7082,14 @@ declare const __VLS_export$8: import("vue").DefineComponent<Props$8, {}, {}, {},
7082
7082
  "onUpdate:tintMode"?: ((args_0?: Phaser.TintModes | undefined) => any) | undefined;
7083
7083
  "onUpdate:tint"?: ((args_0?: number | undefined) => any) | undefined;
7084
7084
  "onUpdate:isTinted"?: ((args_0?: boolean | undefined) => any) | undefined;
7085
- "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
7086
- "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
7087
7085
  "onUpdate:key"?: ((args_0?: string | Phaser.Textures.Texture | undefined) => any) | undefined;
7088
7086
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
7089
7087
  "onUpdate:flipX"?: ((args_0?: boolean | undefined) => any) | undefined;
7090
7088
  "onUpdate:flipY"?: ((args_0?: boolean | undefined) => any) | undefined;
7091
7089
  "onUpdate:anims"?: ((args_0?: string | Phaser.Animations.Animation | Phaser.Types.Animations.PlayAnimationConfig | undefined) => any) | undefined;
7092
7090
  "onUpdate:useSpriteSheet"?: ((args_0?: boolean | undefined) => any) | undefined;
7091
+ "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
7092
+ "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
7093
7093
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
7094
7094
  "onUpdate:isCropped"?: ((args_0?: boolean | undefined) => any) | undefined;
7095
7095
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7511,9 +7511,9 @@ declare const __VLS_export$5: import("vue").DefineComponent<Props$5, {}, {}, {},
7511
7511
  pointerover: (...args: Phaser.Types.Input.EventData[]) => any;
7512
7512
  pointerup: (...args: Phaser.Types.Input.EventData[]) => any;
7513
7513
  wheel: (...args: Phaser.Types.Input.EventData[]) => any;
7514
+ "update:width": (args_0?: number | undefined) => any;
7514
7515
  "update:height": (args_0?: number | undefined) => any;
7515
7516
  "update:smoothness": (args_0?: number | undefined) => any;
7516
- "update:width": (args_0?: number | undefined) => any;
7517
7517
  }, string, import("vue").PublicProps, Readonly<Props$5> & Readonly<{
7518
7518
  "onUpdate:visible"?: ((args_0?: boolean | undefined) => any) | undefined;
7519
7519
  "onUpdate:alpha"?: ((args_0?: number | undefined) => any) | undefined;
@@ -7647,9 +7647,9 @@ declare const __VLS_export$5: import("vue").DefineComponent<Props$5, {}, {}, {},
7647
7647
  onPointerover?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
7648
7648
  onPointerup?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
7649
7649
  onWheel?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
7650
+ "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
7650
7651
  "onUpdate:height"?: ((args_0?: number | undefined) => any) | undefined;
7651
7652
  "onUpdate:smoothness"?: ((args_0?: number | undefined) => any) | undefined;
7652
- "onUpdate:width"?: ((args_0?: number | undefined) => any) | undefined;
7653
7653
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7654
7654
  declare const _default$5: typeof __VLS_export$5;
7655
7655
  //#endregion
@@ -10328,7 +10328,7 @@ export declare const AnimationSetterMap: {
10328
10328
  onResumeParams?: any[] | undefined;
10329
10329
  persist?: boolean | undefined;
10330
10330
  interpolation?: (string | Function) | undefined;
10331
- }[] | undefined) => void) & ((event: "update:origin", args_0?: number | undefined) => void) & ((event: "update:scrollFactor", args_0?: number | undefined) => void) & ((event: "clickoutside", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "drag", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragend", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragenter", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragleave", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragover", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragstart", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "drop", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointerdown", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointermove", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointerout", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointerover", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointerup", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "wheel", ...args: Phaser.Types.Input.EventData[]) => 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: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:tint2TopLeft", args_0?: number | undefined) => void) & ((event: "update:tint2TopRight", args_0?: number | undefined) => void) & ((event: "update:tint2BottomLeft", args_0?: number | undefined) => void) & ((event: "update:tint2BottomRight", args_0?: number | undefined) => void) & ((event: "update:tintMode", args_0?: Phaser.TintModes | undefined) => void) & ((event: "update:tint", args_0?: number | undefined) => void) & ((event: "update:isTinted", args_0?: boolean | undefined) => void) & ((event: "update:height", args_0?: number | undefined) => void) & ((event: "update:width", args_0?: number | undefined) => void) & ((event: "update:key", args_0?: string | Phaser.Textures.Texture | undefined) => void) & ((event: "update:frame", args_0?: string | number | undefined) => void) & ((event: "update:flipX", args_0?: boolean | undefined) => void) & ((event: "update:flipY", args_0?: boolean | undefined) => void) & ((event: "update:useSpriteSheet", args_0?: boolean | undefined) => void) & ((event: "update:texture", args_0?: string | undefined) => void) & ((event: "update:animations", args_0?: Phaser.Types.Animations.Animation[] | undefined) => void) & ((event: "update:playAnimationKey", args_0?: undefined) => void)) => (configurations: Phaser.Types.Animations.Animation[] | undefined) => void;
10331
+ }[] | undefined) => void) & ((event: "update:origin", args_0?: number | undefined) => void) & ((event: "update:scrollFactor", args_0?: number | undefined) => void) & ((event: "clickoutside", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "drag", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragend", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragenter", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragleave", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragover", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "dragstart", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "drop", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointerdown", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointermove", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointerout", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointerover", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "pointerup", ...args: Phaser.Types.Input.EventData[]) => void) & ((event: "wheel", ...args: Phaser.Types.Input.EventData[]) => 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: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:tint2TopLeft", args_0?: number | undefined) => void) & ((event: "update:tint2TopRight", args_0?: number | undefined) => void) & ((event: "update:tint2BottomLeft", args_0?: number | undefined) => void) & ((event: "update:tint2BottomRight", args_0?: number | undefined) => void) & ((event: "update:tintMode", args_0?: Phaser.TintModes | undefined) => void) & ((event: "update:tint", args_0?: number | undefined) => void) & ((event: "update:isTinted", args_0?: boolean | undefined) => void) & ((event: "update:key", args_0?: string | Phaser.Textures.Texture | undefined) => void) & ((event: "update:frame", args_0?: string | number | undefined) => void) & ((event: "update:flipX", args_0?: boolean | undefined) => void) & ((event: "update:flipY", args_0?: boolean | undefined) => void) & ((event: "update:useSpriteSheet", args_0?: boolean | undefined) => void) & ((event: "update:width", args_0?: number | undefined) => void) & ((event: "update:height", args_0?: number | undefined) => void) & ((event: "update:texture", args_0?: string | undefined) => void) & ((event: "update:animations", args_0?: Phaser.Types.Animations.Animation[] | undefined) => void) & ((event: "update:playAnimationKey", args_0?: undefined) => void)) => (configurations: Phaser.Types.Animations.Animation[] | undefined) => void;
10332
10332
  readonly playAnimationKey: (gameObject: GameObjects.Sprite) => (value: undefined) => void;
10333
10333
  };
10334
10334
  //#endregion
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, inject, nextTick, onMounted, onUnmounted, openBlock, provide, ref, renderSlot, toValue, useTemplateRef, watch } from "vue";
2
- import { ID_SEPARATOR, InvalidOperationError, NotFoundError, NotInitializedError, Operation, checkIsPlainObject, takeOne, toKebabCase } from "@esposter/shared";
1
+ import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, inject, nextTick, onMounted, onUnmounted, openBlock, provide, ref, renderSlot, shallowRef, toValue, useTemplateRef, watch } from "vue";
2
+ import { ID_SEPARATOR, InvalidOperationError, NotFoundError, NotInitializedError, Operation, checkIsPlainObject, getOrCreate, takeOne, toKebabCase } from "@esposter/shared";
3
3
  import ClickOutside from "phaser4-rex-plugins/plugins/clickoutside.js";
4
4
  import { Animations, Cameras, Core, Game, Loader, Scene, Scenes, Tilemaps, Tweens, Utils } from "phaser";
5
5
  import { defineStore, storeToRefs } from "pinia";
@@ -50,17 +50,10 @@ const useInitializeGameObjectEvents = () => {
50
50
  if ("eventIndex" in context) takeOne(args).stopPropagation = takeOne(args, context.eventIndex).stopPropagation;
51
51
  emit(gameObjectEvent, ...args);
52
52
  };
53
- if (gameObjectEvent === "clickoutside") {
54
- const clickOutside = new ClickOutside(gameObject);
55
- clickOutside.on(gameObjectEvent, eventListener);
56
- eventStopHandles.push(() => {
57
- clickOutside.off(gameObjectEvent, eventListener);
58
- });
59
- continue;
60
- }
61
- gameObject.on(gameObjectEvent, eventListener);
53
+ const emitter = gameObjectEvent === "clickoutside" ? new ClickOutside(gameObject) : gameObject;
54
+ emitter.on(gameObjectEvent, eventListener);
62
55
  eventStopHandles.push(() => {
63
- gameObject.off(gameObjectEvent, eventListener);
56
+ emitter.off(gameObjectEvent, eventListener);
64
57
  });
65
58
  }
66
59
  };
@@ -103,14 +96,8 @@ const ExternalSceneStore = {
103
96
  //#region src/services/hooks/pushListener.ts
104
97
  const pushListener = (lifecycle, listener, key) => {
105
98
  const sceneKey = key ?? useInjectSceneKey();
106
- const listenersMap = ExternalSceneStore.lifecycleListenersMap.get(lifecycle);
107
- if (!listenersMap) {
108
- ExternalSceneStore.lifecycleListenersMap.set(lifecycle, /* @__PURE__ */ new Map([[sceneKey, [listener]]]));
109
- return;
110
- }
111
- const listeners = listenersMap.get(sceneKey);
112
- if (listeners) listeners.push(listener);
113
- else listenersMap.set(sceneKey, [listener]);
99
+ const listenersMap = getOrCreate(ExternalSceneStore.lifecycleListenersMap, lifecycle, () => /* @__PURE__ */ new Map());
100
+ getOrCreate(listenersMap, sceneKey, () => []).push(listener);
114
101
  };
115
102
  //#endregion
116
103
  //#region src/hooks/onNextTick.ts
@@ -704,7 +691,7 @@ const _sfc_main$23 = /*@__PURE__*/ defineComponent({
704
691
  },
705
692
  setup(__props) {
706
693
  const sceneKey = useInjectSceneKey();
707
- const tilemap = ref();
694
+ const tilemap = shallowRef();
708
695
  onCreate((newScene) => {
709
696
  tilemap.value = newScene.make.tilemap(__props.configuration);
710
697
  __props.onComplete?.(newScene, tilemap.value);
@@ -1518,7 +1505,7 @@ var TiledJSONExternalFile = class extends MultiFile {
1518
1505
  const loader = this.loader;
1519
1506
  const files = this.files;
1520
1507
  this.complete = true;
1521
- for (const tilesetFile of tilesetFiles) {
1508
+ await Promise.all(tilesetFiles.map(async (tilesetFile) => {
1522
1509
  const responseText = tilesetFile.xhrLoader?.responseText;
1523
1510
  if (!responseText) throw new InvalidOperationError(Operation.Read, this.addToCache.name, tilesetFile.key);
1524
1511
  const responseData = await parseXmlString(responseText);
@@ -1529,7 +1516,7 @@ var TiledJSONExternalFile = class extends MultiFile {
1529
1516
  imagewidth: tilesetData.image.width,
1530
1517
  source: void 0
1531
1518
  });
1532
- }
1519
+ }));
1533
1520
  loader.cacheManager.tilemap.add(tilemapKey, {
1534
1521
  data: tilemapData,
1535
1522
  format: Tilemaps.Formats.TILED_JSON
@@ -1706,7 +1693,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
1706
1693
  },
1707
1694
  setup(__props, { emit: __emit }) {
1708
1695
  const emit = __emit;
1709
- const container = ref();
1696
+ const container = shallowRef();
1710
1697
  useInitializeGameObject((scene) => {
1711
1698
  const { children, x, y } = __props.configuration;
1712
1699
  container.value = scene.add.container(x, y, children);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-phaserjs",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "A component library to integrate Phaser Framework with Vue.",
5
5
  "keywords": [
6
6
  "component-library",
@@ -55,18 +55,18 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@arethetypeswrong/core": "^0.18.5",
58
- "@esposter/configuration": "3.2.0",
58
+ "@esposter/configuration": "3.3.0",
59
59
  "@vue/test-utils": "^2.5.1",
60
60
  "publint": "^0.3.24",
61
61
  "tsdown": "^0.23.0",
62
62
  "type-fest": "^5.10.0",
63
63
  "typedoc": "^0.28.20",
64
- "vitest": "^5.0.1",
64
+ "vitest": "^5.0.2",
65
65
  "vue-tsc": "^3.3.11"
66
66
  },
67
67
  "peerDependencies": {
68
- "@esposter/shared": "3.1.0",
69
- "parse-tmx": "3.1.0",
68
+ "@esposter/shared": "3.2.0",
69
+ "parse-tmx": "3.2.0",
70
70
  "phaser": "^4.2.1",
71
71
  "phaser4-rex-plugins": "^4.2.0",
72
72
  "pinia": "^4.0.3",
@@ -75,5 +75,5 @@
75
75
  "inlinedDependencies": {
76
76
  "type-fest": "5.10.0"
77
77
  },
78
- "gitHead": "bc055ed2f154eff219a355016a6b586962dbfa9c"
78
+ "gitHead": "5854a00717502d8de96adc8b44d3621ab85f9b57"
79
79
  }