vue-phaserjs 2.34.1 → 2.35.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/LICENSE +201 -201
- package/dist/index.d.ts +2 -0
- package/dist/index.js +315 -339
- package/dist/models/emit/ArcEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/BitmapTextEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/ContainerEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/CurveEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/EllipseEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/GraphicsEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/ImageEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/IsoBoxEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/IsoTriangleEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/LineEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/NinesliceEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/ParticlesEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/PathFollowerEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/PolygonEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/RectangleEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/RenderTextureEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/SpriteEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/StarEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/TextEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/TileSpriteEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/TriangleEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/VideoEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/ZoneEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/AlphaEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/AlphaSingleEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/BaseTextureEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/BlendModeEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/ComputedSizeEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/DepthEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/FlipEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/MaskEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/OriginEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/PathFollowerComponentEventEmitsOptions.d.ts +2 -7
- package/dist/models/emit/components/RenderNodesEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/ScrollFactorEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/SizeEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/TextureCropEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/TextureEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/TintEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/TransformEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/components/VisibleEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/global/GameObjectEventEmitsOptions.d.ts +3 -9
- package/dist/models/emit/global/TweenEventEmitsOptions.d.ts +2 -5
- package/dist/models/emit/shared/ShapeEventEmitsOptions.d.ts +2 -5
- package/dist/util/setterMap/components/ComputedSizeSetterMap.d.ts +10 -2
- package/dist/util/setterMap/components/DisplaySizeSetterMap.d.ts +12 -0
- package/dist/util/setterMap/components/SizeSetterMap.d.ts +12 -4
- package/dist/util/setterMap/shared/ShapeSetterMap.d.ts +10 -2
- package/dist/util/types/EmitsOptionsFor.d.ts +5 -0
- package/package.json +12 -12
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { ArcConfiguration } from '../configuration/ArcConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type ArcEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof ArcConfiguration>]: [ArcConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type ArcEventEmitsOptions = EmitsOptionsFor<ArcConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { BitmapTextConfiguration } from '../configuration/BitmapTextConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type BitmapTextEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof BitmapTextConfiguration>]: [BitmapTextConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type BitmapTextEventEmitsOptions = EmitsOptionsFor<BitmapTextConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { ContainerConfiguration } from '../configuration/ContainerConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type ContainerEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof ContainerConfiguration>]: [ContainerConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type ContainerEventEmitsOptions = EmitsOptionsFor<ContainerConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { CurveConfiguration } from '../configuration/CurveConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type CurveEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof CurveConfiguration>]: [CurveConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type CurveEventEmitsOptions = EmitsOptionsFor<CurveConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { EllipseConfiguration } from '../configuration/EllipseConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type EllipseEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof EllipseConfiguration>]: [EllipseConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type EllipseEventEmitsOptions = EmitsOptionsFor<EllipseConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { GraphicsConfiguration } from '../configuration/GraphicsConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type GraphicsEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof GraphicsConfiguration>]: [GraphicsConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type GraphicsEventEmitsOptions = EmitsOptionsFor<GraphicsConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { ImageConfiguration } from '../configuration/ImageConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type ImageEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof ImageConfiguration>]: [ImageConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type ImageEventEmitsOptions = EmitsOptionsFor<ImageConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { IsoBoxConfiguration } from '../configuration/IsoBoxConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type IsoBoxEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof IsoBoxConfiguration>]: [IsoBoxConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type IsoBoxEventEmitsOptions = EmitsOptionsFor<IsoBoxConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { IsoTriangleConfiguration } from '../configuration/IsoTriangleConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type IsoTriangleEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof IsoTriangleConfiguration>]: [IsoTriangleConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type IsoTriangleEventEmitsOptions = EmitsOptionsFor<IsoTriangleConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { LineConfiguration } from '../configuration/LineConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type LineEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof LineConfiguration>]: [LineConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type LineEventEmitsOptions = EmitsOptionsFor<LineConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { NinesliceConfiguration } from '../configuration/NinesliceConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type NinesliceEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof NinesliceConfiguration>]: [NinesliceConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type NinesliceEventEmitsOptions = EmitsOptionsFor<NinesliceConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { ParticlesConfiguration } from '../configuration/ParticlesConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type ParticlesEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof ParticlesConfiguration>]: [ParticlesConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type ParticlesEventEmitsOptions = EmitsOptionsFor<ParticlesConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { PathFollowerConfiguration } from '../configuration/PathFollowerConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type PathFollowerEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof PathFollowerConfiguration>]: [PathFollowerConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type PathFollowerEventEmitsOptions = EmitsOptionsFor<PathFollowerConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { PolygonConfiguration } from '../configuration/PolygonConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type PolygonEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof PolygonConfiguration>]: [PolygonConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type PolygonEventEmitsOptions = EmitsOptionsFor<PolygonConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { RectangleConfiguration } from '../configuration/RectangleConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type RectangleEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof RectangleConfiguration>]: [RectangleConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type RectangleEventEmitsOptions = EmitsOptionsFor<RectangleConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { RenderTextureConfiguration } from '../configuration/RenderTextureConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type RenderTextureEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof RenderTextureConfiguration>]: [RenderTextureConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type RenderTextureEventEmitsOptions = EmitsOptionsFor<RenderTextureConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { SpriteConfiguration } from '../configuration/SpriteConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type SpriteEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof SpriteConfiguration>]: [SpriteConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type SpriteEventEmitsOptions = EmitsOptionsFor<SpriteConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { StarConfiguration } from '../configuration/StarConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type StarEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof StarConfiguration>]: [StarConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type StarEventEmitsOptions = EmitsOptionsFor<StarConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { TextConfiguration } from '../configuration/TextConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type TextEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof TextConfiguration>]: [TextConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type TextEventEmitsOptions = EmitsOptionsFor<TextConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { TileSpriteConfiguration } from '../configuration/TileSpriteConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type TileSpriteEventEmitsOptions = GameObjectEventMapEmitsOptions & Record<string, unknown[]> & {
|
|
6
|
-
[P in UpdateEvent<keyof TileSpriteConfiguration>]: [TileSpriteConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type TileSpriteEventEmitsOptions = EmitsOptionsFor<TileSpriteConfiguration> & GameObjectEventMapEmitsOptions & Record<string, unknown[]>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { TriangleConfiguration } from '../configuration/TriangleConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type TriangleEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof TriangleConfiguration>]: [TriangleConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type TriangleEventEmitsOptions = EmitsOptionsFor<TriangleConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { VideoConfiguration } from '../configuration/VideoConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type VideoEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof VideoConfiguration>]: [VideoConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type VideoEventEmitsOptions = EmitsOptionsFor<VideoConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { ZoneConfiguration } from '../configuration/ZoneConfiguration';
|
|
2
2
|
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type ZoneEventEmitsOptions = GameObjectEventMapEmitsOptions & {
|
|
6
|
-
[P in UpdateEvent<keyof ZoneConfiguration>]: [ZoneConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
-
};
|
|
3
|
+
import { EmitsOptionsFor } from '../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type ZoneEventEmitsOptions = EmitsOptionsFor<ZoneConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { AlphaConfiguration } from '../../configuration/components/AlphaConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type AlphaEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof AlphaConfiguration>]: [AlphaConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type AlphaEventEmitsOptions = EmitsOptionsFor<AlphaConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { AlphaSingleConfiguration } from '../../configuration/components/AlphaSingleConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type AlphaSingleEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof AlphaSingleConfiguration>]: [AlphaSingleConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type AlphaSingleEventEmitsOptions = EmitsOptionsFor<AlphaSingleConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { BaseTextureConfiguration } from '../../configuration/components/BaseTextureConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type BaseTextureEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof BaseTextureConfiguration>]: [BaseTextureConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type BaseTextureEventEmitsOptions = EmitsOptionsFor<BaseTextureConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { BlendModeConfiguration } from '../../configuration/components/BlendModeConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type BlendModeEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof BlendModeConfiguration>]: [BlendModeConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type BlendModeEventEmitsOptions = EmitsOptionsFor<BlendModeConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { ComputedSizeConfiguration } from '../../configuration/components/ComputedSizeConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type ComputedSizeEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof ComputedSizeConfiguration>]: [ComputedSizeConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type ComputedSizeEventEmitsOptions = EmitsOptionsFor<ComputedSizeConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { DepthConfiguration } from '../../configuration/components/DepthConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type DepthEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof DepthConfiguration>]: [DepthConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type DepthEventEmitsOptions = EmitsOptionsFor<DepthConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { FlipConfiguration } from '../../configuration/components/FlipConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type FlipEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof FlipConfiguration>]: [FlipConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type FlipEventEmitsOptions = EmitsOptionsFor<FlipConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { MaskConfiguration } from '../../configuration/components/MaskConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type MaskEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof MaskConfiguration>]: [MaskConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type MaskEventEmitsOptions = EmitsOptionsFor<MaskConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { OriginConfiguration } from '../../configuration/components/OriginConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type OriginEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof OriginConfiguration>]: [OriginConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type OriginEventEmitsOptions = EmitsOptionsFor<OriginConfiguration>;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { PathFollowerComponentConfiguration } from '../../configuration/components/PathFollowerComponentConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type PathFollowerComponentEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof PathFollowerComponentConfiguration>]: [
|
|
6
|
-
PathFollowerComponentConfiguration[ExtractUpdateEvent<P>]?
|
|
7
|
-
];
|
|
8
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type PathFollowerComponentEventEmitsOptions = EmitsOptionsFor<PathFollowerComponentConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { RenderNodesConfiguration } from '../../configuration/components/RenderNodesConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type RenderNodesEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof RenderNodesConfiguration>]: [RenderNodesConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type RenderNodesEventEmitsOptions = EmitsOptionsFor<RenderNodesConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { ScrollFactorConfiguration } from '../../configuration/components/ScrollFactorConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type ScrollFactorEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof ScrollFactorConfiguration>]: [ScrollFactorConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type ScrollFactorEventEmitsOptions = EmitsOptionsFor<ScrollFactorConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { SizeConfiguration } from '../../configuration/components/SizeConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type SizeEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof SizeConfiguration>]: [SizeConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type SizeEventEmitsOptions = EmitsOptionsFor<SizeConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { TextureCropConfiguration } from '../../configuration/components/TextureCropConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type TextureCropEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof TextureCropConfiguration>]: [TextureCropConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type TextureCropEventEmitsOptions = EmitsOptionsFor<TextureCropConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { TextureConfiguration } from '../../configuration/components/TextureConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type TextureEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof TextureConfiguration>]: [TextureConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type TextureEventEmitsOptions = EmitsOptionsFor<TextureConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { TintConfiguration } from '../../configuration/components/TintConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type TintEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof TintConfiguration>]: [TintConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type TintEventEmitsOptions = EmitsOptionsFor<TintConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { TransformConfiguration } from '../../configuration/components/TransformConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type TransformEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof TransformConfiguration>]: [TransformConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type TransformEventEmitsOptions = EmitsOptionsFor<TransformConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { VisibleConfiguration } from '../../configuration/components/VisibleConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type VisibleEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof VisibleConfiguration>]: [VisibleConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type VisibleEventEmitsOptions = EmitsOptionsFor<VisibleConfiguration>;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { GameObjectConfiguration } from '../../configuration/global/GameObjectConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { Types } from 'phaser';
|
|
6
|
-
export type GameObjectEventEmitsOptions = {
|
|
7
|
-
[P in keyof typeof GameObjectEventMap]: Types.Input.EventData[];
|
|
8
|
-
} & {
|
|
9
|
-
[P in UpdateEvent<keyof GameObjectConfiguration>]: [GameObjectConfiguration[ExtractUpdateEvent<P>]?];
|
|
10
|
-
};
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from '../shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
4
|
+
export type GameObjectEventEmitsOptions = EmitsOptionsFor<GameObjectConfiguration> & GameObjectEventMapEmitsOptions;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { TweenConfiguration } from '../../configuration/global/TweenConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type TweenEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof TweenConfiguration>]: [TweenConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type TweenEventEmitsOptions = EmitsOptionsFor<TweenConfiguration>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { ShapeConfiguration } from '../../configuration/shared/ShapeConfiguration';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type ShapeEventEmitsOptions = {
|
|
5
|
-
[P in UpdateEvent<keyof ShapeConfiguration>]: [ShapeConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
-
};
|
|
2
|
+
import { EmitsOptionsFor } from '../../../util/types/EmitsOptionsFor';
|
|
3
|
+
export type ShapeEventEmitsOptions = EmitsOptionsFor<ShapeConfiguration>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { GameObjects } from 'phaser';
|
|
2
2
|
export declare const ComputedSizeSetterMap: {
|
|
3
|
-
readonly displayHeight: (gameObject: GameObjects.Components.ComputedSize) => (value: number | undefined) => void;
|
|
4
|
-
readonly displayWidth: (gameObject: GameObjects.Components.ComputedSize) => (value: number | undefined) => void;
|
|
5
3
|
readonly height: (gameObject: GameObjects.Components.ComputedSize) => (value: number | undefined) => void;
|
|
6
4
|
readonly width: (gameObject: GameObjects.Components.ComputedSize) => (value: number | undefined) => void;
|
|
5
|
+
readonly displayHeight: (gameObject: {
|
|
6
|
+
displayHeight: number;
|
|
7
|
+
displayWidth: number;
|
|
8
|
+
setDisplaySize: (width: number, height: number) => unknown;
|
|
9
|
+
}) => (value: number | undefined) => void;
|
|
10
|
+
readonly displayWidth: (gameObject: {
|
|
11
|
+
displayHeight: number;
|
|
12
|
+
displayWidth: number;
|
|
13
|
+
setDisplaySize: (width: number, height: number) => unknown;
|
|
14
|
+
}) => (value: number | undefined) => void;
|
|
7
15
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const DisplaySizeSetterMap: {
|
|
2
|
+
readonly displayHeight: (gameObject: {
|
|
3
|
+
displayHeight: number;
|
|
4
|
+
displayWidth: number;
|
|
5
|
+
setDisplaySize: (width: number, height: number) => unknown;
|
|
6
|
+
}) => (value: number | undefined) => void;
|
|
7
|
+
readonly displayWidth: (gameObject: {
|
|
8
|
+
displayHeight: number;
|
|
9
|
+
displayWidth: number;
|
|
10
|
+
setDisplaySize: (width: number, height: number) => unknown;
|
|
11
|
+
}) => (value: number | undefined) => void;
|
|
12
|
+
};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { GameObjects } from 'phaser';
|
|
2
2
|
export declare const SizeSetterMap: {
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
|
|
3
|
+
readonly height: (gameObject: GameObjects.Components.ComputedSize) => (value: number | undefined) => void;
|
|
4
|
+
readonly width: (gameObject: GameObjects.Components.ComputedSize) => (value: number | undefined) => void;
|
|
5
|
+
readonly displayHeight: (gameObject: {
|
|
6
|
+
displayHeight: number;
|
|
7
|
+
displayWidth: number;
|
|
8
|
+
setDisplaySize: (width: number, height: number) => unknown;
|
|
9
|
+
}) => (value: number | undefined) => void;
|
|
10
|
+
readonly displayWidth: (gameObject: {
|
|
11
|
+
displayHeight: number;
|
|
12
|
+
displayWidth: number;
|
|
13
|
+
setDisplaySize: (width: number, height: number) => unknown;
|
|
14
|
+
}) => (value: number | undefined) => void;
|
|
7
15
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { GameObjects } from 'phaser';
|
|
2
2
|
export declare const ShapeSetterMap: {
|
|
3
3
|
readonly active: (gameObject: GameObjects.Shape) => (value: boolean | undefined) => void;
|
|
4
|
-
readonly displayHeight: (gameObject: GameObjects.Shape) => (value: number | undefined) => void;
|
|
5
|
-
readonly displayWidth: (gameObject: GameObjects.Shape) => (value: number | undefined) => void;
|
|
6
4
|
readonly fillAlpha: (gameObject: GameObjects.Shape) => (value: number | undefined) => void;
|
|
7
5
|
readonly fillColor: (gameObject: GameObjects.Shape) => (value: number | undefined) => void;
|
|
8
6
|
readonly strokeStyle: (gameObject: GameObjects.Shape) => (value: [lineWidth?: number | undefined, color?: number | undefined, alpha?: number | undefined] | undefined) => void;
|
|
@@ -25,6 +23,16 @@ export declare const ShapeSetterMap: {
|
|
|
25
23
|
readonly originX: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => void;
|
|
26
24
|
readonly originY: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => void;
|
|
27
25
|
readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.GeometryMask | undefined) => void;
|
|
26
|
+
readonly displayHeight: (gameObject: {
|
|
27
|
+
displayHeight: number;
|
|
28
|
+
displayWidth: number;
|
|
29
|
+
setDisplaySize: (width: number, height: number) => unknown;
|
|
30
|
+
}) => (value: number | undefined) => void;
|
|
31
|
+
readonly displayWidth: (gameObject: {
|
|
32
|
+
displayHeight: number;
|
|
33
|
+
displayWidth: number;
|
|
34
|
+
setDisplaySize: (width: number, height: number) => unknown;
|
|
35
|
+
}) => (value: number | undefined) => void;
|
|
28
36
|
readonly depth: (gameObject: GameObjects.Components.Depth & GameObjects.GameObject) => (value: number | undefined) => void;
|
|
29
37
|
readonly blendMode: (gameObject: GameObjects.Components.BlendMode) => (value: string | number | Phaser.BlendModes | undefined) => void;
|
|
30
38
|
readonly alpha: (gameObject: GameObjects.Components.AlphaSingle) => (value: number | undefined) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtractUpdateEvent } from './ExtractUpdateEvent';
|
|
2
|
+
import { UpdateEvent } from './UpdateEvent';
|
|
3
|
+
export type EmitsOptionsFor<TConfiguration extends object> = {
|
|
4
|
+
[P in UpdateEvent<keyof TConfiguration & string>]: [TConfiguration[ExtractUpdateEvent<P> & keyof TConfiguration]?];
|
|
5
|
+
};
|