@sepveneto/dao 0.1.3 → 0.1.4
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.
|
@@ -22,6 +22,12 @@ export type ContainerChild = Container;
|
|
|
22
22
|
export type IHitArea = {
|
|
23
23
|
contains(x: number, y: number): boolean;
|
|
24
24
|
};
|
|
25
|
+
export interface ContainerEvents extends FederatedEventEmitterTypes {
|
|
26
|
+
destroyed: [container: Container];
|
|
27
|
+
}
|
|
28
|
+
type AnyEvent = {
|
|
29
|
+
[K: ({} & string) | ({} & symbol)]: any;
|
|
30
|
+
};
|
|
25
31
|
export interface ContainerOptions<C extends ContainerChild = ContainerChild> extends EffectMixinConstructor, SortMixinConstructor, MeasureMixinConstructor {
|
|
26
32
|
label?: string;
|
|
27
33
|
isRenderGroup?: boolean;
|
|
@@ -40,9 +46,9 @@ export interface ContainerOptions<C extends ContainerChild = ContainerChild> ext
|
|
|
40
46
|
y?: number;
|
|
41
47
|
boundsArea?: Rectangle;
|
|
42
48
|
}
|
|
43
|
-
export interface Container extends EffectMixin, SortMixin, MeasureMixin, ChildrenHelperMixin {
|
|
49
|
+
export interface Container extends EffectMixin, SortMixin, MeasureMixin, ChildrenHelperMixin, EventEmitter<ContainerEvents & AnyEvent> {
|
|
44
50
|
}
|
|
45
|
-
export declare class Container<C extends ContainerChild = ContainerChild> extends EventEmitter<
|
|
51
|
+
export declare class Container<C extends ContainerChild = ContainerChild> extends EventEmitter<ContainerEvents & AnyEvent> {
|
|
46
52
|
label: string;
|
|
47
53
|
destroyed: boolean;
|
|
48
54
|
renderGroup: RenderGroup;
|
|
@@ -198,3 +204,4 @@ export declare class Container<C extends ContainerChild = ContainerChild> extend
|
|
|
198
204
|
getGlobalPosition(skipUpdate?: boolean): Vector2;
|
|
199
205
|
destroy(options?: DestroyOptions): void;
|
|
200
206
|
}
|
|
207
|
+
export {};
|