vue-phaserjs 2.19.2 → 2.20.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/Arc.vue.d.ts +285 -0
- package/dist/components/BitmapText.vue.d.ts +307 -0
- package/dist/components/Circle.vue.d.ts +6 -2
- package/dist/components/Container.vue.d.ts +2 -8
- package/dist/components/Curve.vue.d.ts +281 -0
- package/dist/components/Ellipse.vue.d.ts +283 -0
- package/dist/components/Graphics.vue.d.ts +257 -0
- package/dist/components/Image.vue.d.ts +4 -4
- package/dist/components/IsoBox.vue.d.ts +295 -0
- package/dist/components/IsoTriangle.vue.d.ts +297 -0
- package/dist/components/Line.vue.d.ts +281 -0
- package/dist/components/Nineslice.vue.d.ts +13 -5
- package/dist/components/Particles.vue.d.ts +263 -0
- package/dist/components/PathFollower.vue.d.ts +6 -4
- package/dist/components/Polygon.vue.d.ts +279 -0
- package/dist/components/RenderTexture.vue.d.ts +301 -0
- package/dist/components/Sprite.vue.d.ts +2 -2
- package/dist/components/Star.vue.d.ts +283 -0
- package/dist/components/Text.vue.d.ts +2 -2
- package/dist/components/TileSprite.vue.d.ts +4 -0
- package/dist/components/Triangle.vue.d.ts +279 -0
- package/dist/components/Video.vue.d.ts +305 -0
- package/dist/components/index.d.ts +15 -1
- package/dist/index.d.ts +44 -3
- package/dist/index.js +27877 -4323
- package/dist/models/configuration/ArcConfiguration.d.ts +1 -5
- package/dist/models/configuration/BitmapTextConfiguration.d.ts +16 -0
- package/dist/models/configuration/ContainerConfiguration.d.ts +1 -2
- package/dist/models/configuration/CurveConfiguration.d.ts +5 -0
- package/dist/models/configuration/EllipseConfiguration.d.ts +4 -0
- package/dist/models/configuration/GraphicsConfiguration.d.ts +11 -0
- package/dist/models/configuration/IsoBoxConfiguration.d.ts +6 -0
- package/dist/models/configuration/IsoTriangleConfiguration.d.ts +6 -0
- package/dist/models/configuration/LineConfiguration.d.ts +5 -0
- package/dist/models/configuration/{NineSliceConfiguration.d.ts → NinesliceConfiguration.d.ts} +1 -1
- package/dist/models/configuration/ParticlesConfiguration.d.ts +14 -0
- package/dist/models/configuration/PolygonConfiguration.d.ts +5 -0
- package/dist/models/configuration/RectangleConfiguration.d.ts +1 -3
- package/dist/models/configuration/RenderTextureConfiguration.d.ts +17 -0
- package/dist/models/configuration/StarConfiguration.d.ts +4 -0
- package/dist/models/configuration/TriangleConfiguration.d.ts +5 -0
- package/dist/models/configuration/VideoConfiguration.d.ts +18 -0
- package/dist/models/emit/BitmapTextEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/CurveEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/EllipseEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/GraphicsEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/IsoBoxEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/IsoTriangleEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/LineEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/{NineSliceEventEmitsOptions.d.ts → NinesliceEventEmitsOptions.d.ts} +3 -3
- package/dist/models/emit/ParticlesEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/PolygonEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/RenderTextureEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/StarEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/TriangleEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/VideoEventEmitsOptions.d.ts +7 -0
- package/dist/models/scene/SceneLifecycleHooks.d.ts +7 -0
- package/dist/util/createSceneClass.d.ts +34 -0
- package/dist/util/emit/getUpdateEvent.d.ts +2 -2
- package/dist/util/setterMap/BitmapTextSetterMap.d.ts +5 -0
- package/dist/util/setterMap/CurveSetterMap.d.ts +5 -0
- package/dist/util/setterMap/EllipseSetterMap.d.ts +5 -0
- package/dist/util/setterMap/GraphicsSetterMap.d.ts +5 -0
- package/dist/util/setterMap/IsoBoxSetterMap.d.ts +5 -0
- package/dist/util/setterMap/IsoTriangleSetterMap.d.ts +5 -0
- package/dist/util/setterMap/LineSetterMap.d.ts +5 -0
- package/dist/util/setterMap/NinesliceSetterMap.d.ts +5 -0
- package/dist/util/setterMap/ParticlesSetterMap.d.ts +5 -0
- package/dist/util/setterMap/PolygonSetterMap.d.ts +5 -0
- package/dist/util/setterMap/RenderTextureSetterMap.d.ts +5 -0
- package/dist/util/setterMap/StarSetterMap.d.ts +5 -0
- package/dist/util/setterMap/TriangleSetterMap.d.ts +5 -0
- package/dist/util/setterMap/VideoSetterMap.d.ts +5 -0
- package/dist/util/setterMap/shared/AnimationSetterMap.d.ts +1 -1
- package/package.json +16 -7
- package/dist/util/setterMap/NineSliceSetterMap.d.ts +0 -5
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { ShapeConfiguration } from './shared/ShapeConfiguration';
|
|
2
2
|
import { GameObjects } from 'phaser';
|
|
3
|
-
export interface ArcConfiguration extends ShapeConfiguration {
|
|
4
|
-
closePath: GameObjects.Arc["closePath"];
|
|
5
|
-
endAngle: GameObjects.Arc["endAngle"];
|
|
6
|
-
radius: GameObjects.Arc["radius"];
|
|
7
|
-
startAngle: GameObjects.Arc["startAngle"];
|
|
3
|
+
export interface ArcConfiguration extends Pick<GameObjects.Arc, "closePath" | "endAngle" | "radius" | "startAngle">, ShapeConfiguration {
|
|
8
4
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AlphaConfiguration } from './components/AlphaConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
5
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
6
|
+
import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
|
|
7
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
8
|
+
import { TintConfiguration } from './components/TintConfiguration';
|
|
9
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
10
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
11
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
12
|
+
import { GameObjects } from 'phaser';
|
|
13
|
+
export interface BitmapTextConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, Pick<GameObjects.BitmapText, "align" | "font" | "fontSize" | "letterSpacing" | "lineSpacing" | "text" | "wordWrapCharCode">, RenderNodesConfiguration, ScrollFactorConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
|
|
14
|
+
dropShadow: Parameters<GameObjects.BitmapText["setDropShadow"]>;
|
|
15
|
+
maxWidth: Parameters<GameObjects.BitmapText["setMaxWidth"]>[0];
|
|
16
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AlphaSingleConfiguration } from './components/AlphaSingleConfiguration';
|
|
2
2
|
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
-
import { ComputedSizeConfiguration } from './components/ComputedSizeConfiguration';
|
|
4
3
|
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
5
4
|
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
6
5
|
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
@@ -9,5 +8,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
|
9
8
|
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
10
9
|
import { Types } from 'phaser';
|
|
11
10
|
import { Except } from 'type-fest';
|
|
12
|
-
export interface ContainerConfiguration extends AlphaSingleConfiguration, BlendModeConfiguration,
|
|
11
|
+
export interface ContainerConfiguration extends AlphaSingleConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Container.ContainerConfig, keyof Types.GameObjects.GameObjectConfig>, GlobalConfiguration, MaskConfiguration, ScrollFactorConfiguration, TransformConfiguration, VisibleConfiguration {
|
|
13
12
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AlphaSingleConfiguration } from './components/AlphaSingleConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
5
|
+
import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
|
|
6
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
7
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
8
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
9
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
10
|
+
export interface GraphicsConfiguration extends AlphaSingleConfiguration, BlendModeConfiguration, DepthConfiguration, GlobalConfiguration, MaskConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TransformConfiguration, VisibleConfiguration {
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ShapeConfiguration } from './shared/ShapeConfiguration';
|
|
2
|
+
import { GameObjects } from 'phaser';
|
|
3
|
+
export interface IsoBoxConfiguration extends Pick<GameObjects.IsoBox, "fillLeft" | "fillRight" | "fillTop" | "projection" | "showLeft" | "showRight" | "showTop">, ShapeConfiguration {
|
|
4
|
+
height: number;
|
|
5
|
+
size: number;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ShapeConfiguration } from './shared/ShapeConfiguration';
|
|
2
|
+
import { GameObjects } from 'phaser';
|
|
3
|
+
export interface IsoTriangleConfiguration extends Pick<GameObjects.IsoTriangle, "fillLeft" | "fillRight" | "fillTop" | "isReversed" | "projection" | "showLeft" | "showRight" | "showTop">, ShapeConfiguration {
|
|
4
|
+
height: number;
|
|
5
|
+
size: number;
|
|
6
|
+
}
|
package/dist/models/configuration/{NineSliceConfiguration.d.ts → NinesliceConfiguration.d.ts}
RENAMED
|
@@ -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
|
|
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
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AlphaSingleConfiguration } from './components/AlphaSingleConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
5
|
+
import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
|
|
6
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
7
|
+
import { TextureConfiguration } from './components/TextureConfiguration';
|
|
8
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
9
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
10
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
11
|
+
import { Types } from 'phaser';
|
|
12
|
+
export interface ParticlesConfiguration extends AlphaSingleConfiguration, BlendModeConfiguration, DepthConfiguration, GlobalConfiguration, MaskConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TextureConfiguration, TransformConfiguration, VisibleConfiguration {
|
|
13
|
+
config: Types.GameObjects.Particles.ParticleEmitterConfig;
|
|
14
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ShapeConfiguration } from './shared/ShapeConfiguration';
|
|
2
2
|
import { GameObjects } from 'phaser';
|
|
3
|
-
export interface RectangleConfiguration extends ShapeConfiguration {
|
|
4
|
-
height: GameObjects.Rectangle["height"];
|
|
5
|
-
width: GameObjects.Rectangle["width"];
|
|
3
|
+
export interface RectangleConfiguration extends Pick<GameObjects.Rectangle, "height" | "width">, ShapeConfiguration {
|
|
6
4
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AlphaConfiguration } from './components/AlphaConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { FlipConfiguration } from './components/FlipConfiguration';
|
|
5
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
6
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
7
|
+
import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
|
|
8
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
9
|
+
import { SizeConfiguration } from './components/SizeConfiguration';
|
|
10
|
+
import { TintConfiguration } from './components/TintConfiguration';
|
|
11
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
12
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
13
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
14
|
+
export interface RenderTextureConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, SizeConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
|
|
15
|
+
height: number;
|
|
16
|
+
width: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AlphaConfiguration } from './components/AlphaConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { FlipConfiguration } from './components/FlipConfiguration';
|
|
5
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
6
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
7
|
+
import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
|
|
8
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
9
|
+
import { TextureCropConfiguration } from './components/TextureCropConfiguration';
|
|
10
|
+
import { TintConfiguration } from './components/TintConfiguration';
|
|
11
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
12
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
13
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
14
|
+
export interface VideoConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TextureCropConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
|
|
15
|
+
key: string;
|
|
16
|
+
muted: boolean;
|
|
17
|
+
volume: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BitmapTextConfiguration } from '../configuration/BitmapTextConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type BitmapTextEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof BitmapTextConfiguration>]: [BitmapTextConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CurveConfiguration } from '../configuration/CurveConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type CurveEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof CurveConfiguration>]: [CurveConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EllipseConfiguration } from '../configuration/EllipseConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type EllipseEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof EllipseConfiguration>]: [EllipseConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GraphicsConfiguration } from '../configuration/GraphicsConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type GraphicsEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof GraphicsConfiguration>]: [GraphicsConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IsoBoxConfiguration } from '../configuration/IsoBoxConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type IsoBoxEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof IsoBoxConfiguration>]: [IsoBoxConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IsoTriangleConfiguration } from '../configuration/IsoTriangleConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type IsoTriangleEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof IsoTriangleConfiguration>]: [IsoTriangleConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LineConfiguration } from '../configuration/LineConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type LineEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof LineConfiguration>]: [LineConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
package/dist/models/emit/{NineSliceEventEmitsOptions.d.ts → NinesliceEventEmitsOptions.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NinesliceConfiguration } from '../configuration/NinesliceConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
3
|
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
4
|
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
-
export type
|
|
6
|
-
[P in UpdateEvent<keyof
|
|
5
|
+
export type NinesliceEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof NinesliceConfiguration>]: [NinesliceConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
7
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParticlesConfiguration } from '../configuration/ParticlesConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type ParticlesEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof ParticlesConfiguration>]: [ParticlesConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PolygonConfiguration } from '../configuration/PolygonConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type PolygonEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof PolygonConfiguration>]: [PolygonConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RenderTextureConfiguration } from '../configuration/RenderTextureConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type RenderTextureEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof RenderTextureConfiguration>]: [RenderTextureConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StarConfiguration } from '../configuration/StarConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type StarEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof StarConfiguration>]: [StarConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TriangleConfiguration } from '../configuration/TriangleConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type TriangleEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof TriangleConfiguration>]: [TriangleConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VideoConfiguration } from '../configuration/VideoConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../util/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../util/types/UpdateEvent';
|
|
5
|
+
export type VideoEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
+
[P in UpdateEvent<keyof VideoConfiguration>]: [VideoConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SceneWithPlugins } from './SceneWithPlugins';
|
|
2
|
+
export interface SceneLifecycleHooks {
|
|
3
|
+
onCreate?: (scene: SceneWithPlugins) => void;
|
|
4
|
+
onInit?: (scene: SceneWithPlugins) => void;
|
|
5
|
+
onPreload?: (scene: SceneWithPlugins) => void;
|
|
6
|
+
onUpdate?: (scene: SceneWithPlugins, time: number, delta: number) => void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SceneLifecycleHooks } from '../models/scene/SceneLifecycleHooks';
|
|
2
|
+
import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
|
|
3
|
+
export declare const createSceneClass: (key: string, hooks?: SceneLifecycleHooks) => {
|
|
4
|
+
new (): {
|
|
5
|
+
create(this: SceneWithPlugins): void;
|
|
6
|
+
init(this: SceneWithPlugins): void;
|
|
7
|
+
preload(this: SceneWithPlugins): void;
|
|
8
|
+
update(this: SceneWithPlugins, time: number, delta: number): void;
|
|
9
|
+
sys: Phaser.Scenes.Systems;
|
|
10
|
+
game: Phaser.Game;
|
|
11
|
+
anims: Phaser.Animations.AnimationManager;
|
|
12
|
+
cache: Phaser.Cache.CacheManager;
|
|
13
|
+
registry: Phaser.Data.DataManager;
|
|
14
|
+
sound: Phaser.Sound.NoAudioSoundManager | Phaser.Sound.HTML5AudioSoundManager | Phaser.Sound.WebAudioSoundManager;
|
|
15
|
+
textures: Phaser.Textures.TextureManager;
|
|
16
|
+
events: Phaser.Events.EventEmitter;
|
|
17
|
+
cameras: Phaser.Cameras.Scene2D.CameraManager;
|
|
18
|
+
add: Phaser.GameObjects.GameObjectFactory;
|
|
19
|
+
make: Phaser.GameObjects.GameObjectCreator;
|
|
20
|
+
scene: Phaser.Scenes.ScenePlugin;
|
|
21
|
+
children: Phaser.GameObjects.DisplayList;
|
|
22
|
+
lights: Phaser.GameObjects.LightsManager;
|
|
23
|
+
data: Phaser.Data.DataManager;
|
|
24
|
+
input: Phaser.Input.InputPlugin;
|
|
25
|
+
load: Phaser.Loader.LoaderPlugin;
|
|
26
|
+
time: Phaser.Time.Clock;
|
|
27
|
+
tweens: Phaser.Tweens.TweenManager;
|
|
28
|
+
physics: Phaser.Physics.Arcade.ArcadePhysics;
|
|
29
|
+
matter: Phaser.Physics.Matter.MatterPhysics;
|
|
30
|
+
scale: Phaser.Scale.ScaleManager;
|
|
31
|
+
plugins: Phaser.Plugins.PluginManager;
|
|
32
|
+
renderer: Phaser.Renderer.Canvas.CanvasRenderer | Phaser.Renderer.WebGL.WebGLRenderer;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UpdateEvent } from '../types/UpdateEvent';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getUpdateEvent: <T extends string>(property: T) => UpdateEvent<
|
|
2
|
+
import { KebabCase } from 'type-fest';
|
|
3
|
+
export declare const getUpdateEvent: <T extends string>(property: T) => UpdateEvent<KebabCase<T>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BitmapTextConfiguration } from '../../models/configuration/BitmapTextConfiguration';
|
|
2
|
+
import { BitmapTextEventEmitsOptions } from '../../models/emit/BitmapTextEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const BitmapTextSetterMap: SetterMap<BitmapTextConfiguration, GameObjects.BitmapText, BitmapTextEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CurveConfiguration } from '../../models/configuration/CurveConfiguration';
|
|
2
|
+
import { CurveEventEmitsOptions } from '../../models/emit/CurveEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const CurveSetterMap: SetterMap<CurveConfiguration, GameObjects.Curve, CurveEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EllipseConfiguration } from '../../models/configuration/EllipseConfiguration';
|
|
2
|
+
import { EllipseEventEmitsOptions } from '../../models/emit/EllipseEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const EllipseSetterMap: SetterMap<EllipseConfiguration, GameObjects.Ellipse, EllipseEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GraphicsConfiguration } from '../../models/configuration/GraphicsConfiguration';
|
|
2
|
+
import { GraphicsEventEmitsOptions } from '../../models/emit/GraphicsEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const GraphicsSetterMap: SetterMap<GraphicsConfiguration, GameObjects.Graphics, GraphicsEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IsoBoxConfiguration } from '../../models/configuration/IsoBoxConfiguration';
|
|
2
|
+
import { IsoBoxEventEmitsOptions } from '../../models/emit/IsoBoxEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const IsoBoxSetterMap: SetterMap<IsoBoxConfiguration, GameObjects.IsoBox, IsoBoxEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IsoTriangleConfiguration } from '../../models/configuration/IsoTriangleConfiguration';
|
|
2
|
+
import { IsoTriangleEventEmitsOptions } from '../../models/emit/IsoTriangleEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const IsoTriangleSetterMap: SetterMap<IsoTriangleConfiguration, GameObjects.IsoTriangle, IsoTriangleEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LineConfiguration } from '../../models/configuration/LineConfiguration';
|
|
2
|
+
import { LineEventEmitsOptions } from '../../models/emit/LineEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const LineSetterMap: SetterMap<LineConfiguration, GameObjects.Line, LineEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NinesliceConfiguration } from '../../models/configuration/NinesliceConfiguration';
|
|
2
|
+
import { NinesliceEventEmitsOptions } from '../../models/emit/NinesliceEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const NinesliceSetterMap: SetterMap<NinesliceConfiguration, GameObjects.NineSlice, NinesliceEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ParticlesConfiguration } from '../../models/configuration/ParticlesConfiguration';
|
|
2
|
+
import { ParticlesEventEmitsOptions } from '../../models/emit/ParticlesEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const ParticlesSetterMap: SetterMap<ParticlesConfiguration, GameObjects.Particles.ParticleEmitter, ParticlesEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PolygonConfiguration } from '../../models/configuration/PolygonConfiguration';
|
|
2
|
+
import { PolygonEventEmitsOptions } from '../../models/emit/PolygonEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const PolygonSetterMap: SetterMap<PolygonConfiguration, GameObjects.Polygon, PolygonEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RenderTextureConfiguration } from '../../models/configuration/RenderTextureConfiguration';
|
|
2
|
+
import { RenderTextureEventEmitsOptions } from '../../models/emit/RenderTextureEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const RenderTextureSetterMap: SetterMap<RenderTextureConfiguration, GameObjects.RenderTexture, RenderTextureEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StarConfiguration } from '../../models/configuration/StarConfiguration';
|
|
2
|
+
import { StarEventEmitsOptions } from '../../models/emit/StarEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const StarSetterMap: SetterMap<StarConfiguration, GameObjects.Star, StarEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TriangleConfiguration } from '../../models/configuration/TriangleConfiguration';
|
|
2
|
+
import { TriangleEventEmitsOptions } from '../../models/emit/TriangleEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const TriangleSetterMap: SetterMap<TriangleConfiguration, GameObjects.Triangle, TriangleEventEmitsOptions>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VideoConfiguration } from '../../models/configuration/VideoConfiguration';
|
|
2
|
+
import { VideoEventEmitsOptions } from '../../models/emit/VideoEventEmitsOptions';
|
|
3
|
+
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
+
import { GameObjects } from 'phaser';
|
|
5
|
+
export declare const VideoSetterMap: SetterMap<VideoConfiguration, GameObjects.Video, VideoEventEmitsOptions>;
|
|
@@ -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.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:
|
|
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:tintMode", args_0?: number | 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
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-phaserjs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
4
4
|
"description": "A component library to integrate Phaser Framework with Vue.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"phaser",
|
|
@@ -28,19 +28,28 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "pnpm export:gen && vite build",
|
|
30
30
|
"export:gen": "ctix build --config ../configuration/.ctirc-vue && ctix build --config ../configuration/.ctirc-ts",
|
|
31
|
+
"format": "oxfmt",
|
|
32
|
+
"format:check": "oxfmt --check",
|
|
31
33
|
"lint": "oxlint && eslint .",
|
|
32
34
|
"lint:fix": "oxlint --fix && eslint --fix .",
|
|
35
|
+
"test": "vitest",
|
|
33
36
|
"typecheck": "vue-tsc"
|
|
34
37
|
},
|
|
35
38
|
"dependencies": {
|
|
36
|
-
"@esposter/shared": "2.
|
|
37
|
-
"parse-tmx": "2.
|
|
39
|
+
"@esposter/shared": "2.20.0",
|
|
40
|
+
"parse-tmx": "2.20.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@esposter/configuration": "2.20.0",
|
|
44
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
45
|
+
"@vue/test-utils": "^2.4.6",
|
|
46
|
+
"unplugin-auto-import": "^21.0.0"
|
|
38
47
|
},
|
|
39
48
|
"peerDependencies": {
|
|
40
|
-
"phaser": "^4.0.0-rc.
|
|
41
|
-
"phaser3-rex-plugins": "^1.80.
|
|
49
|
+
"phaser": "^4.0.0-rc.7",
|
|
50
|
+
"phaser3-rex-plugins": "^1.80.19",
|
|
42
51
|
"pinia": "^3.0.4",
|
|
43
|
-
"vue": "^3.5.
|
|
52
|
+
"vue": "^3.5.31"
|
|
44
53
|
},
|
|
45
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "dd9cd98982a30612471aa8cc7e25db87d9e1d449"
|
|
46
55
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { NineSliceConfiguration } from '../../models/configuration/NineSliceConfiguration';
|
|
2
|
-
import { NineSliceEventEmitsOptions } from '../../models/emit/NineSliceEventEmitsOptions';
|
|
3
|
-
import { SetterMap } from '../../models/setterMap/SetterMap';
|
|
4
|
-
import { GameObjects } from 'phaser';
|
|
5
|
-
export declare const NineSliceSetterMap: SetterMap<NineSliceConfiguration, GameObjects.NineSlice, NineSliceEventEmitsOptions>;
|