agora-electron-sdk 4.2.0-dev.13 → 4.2.0-dev.15
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/js/Private/internal/IrisApiEngine.js +2 -2
- package/js/Private/internal/MediaEngineInternal.js +3 -22
- package/js/Private/internal/MediaPlayerInternal.js +3 -22
- package/js/Private/internal/MediaRecorderInternal.js +3 -22
- package/js/Private/internal/MusicContentCenterInternal.js +3 -22
- package/js/Private/internal/RtcEngineExInternal.js +3 -22
- package/js/Renderer/YUVCanvasRenderer/index.js +5 -8
- package/package.json +7 -10
- package/scripts/build.js +3 -1
- package/scripts/clean.js +20 -7
- package/scripts/downloadPrebuild.js +15 -13
- package/scripts/getConfig.js +8 -4
- package/scripts/synclib.js +19 -48
- package/scripts/util.js +1 -3
- package/ts/Private/extension/IAgoraMediaEngineExtension.ts +1 -2
- package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +1 -2
- package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +1 -2
- package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +1 -2
- package/ts/Private/extension/IAgoraRtcEngineExtension.ts +1 -2
- package/ts/Private/internal/IrisApiEngine.ts +2 -3
- package/ts/Private/internal/MediaEngineInternal.ts +4 -34
- package/ts/Private/internal/MediaPlayerInternal.ts +4 -34
- package/ts/Private/internal/MediaRecorderInternal.ts +4 -34
- package/ts/Private/internal/MusicContentCenterInternal.ts +4 -34
- package/ts/Private/internal/RtcEngineExInternal.ts +4 -34
- package/ts/Renderer/YUVCanvasRenderer/index.ts +1 -7
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +2 -3
- package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -1
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +2 -3
- package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -1
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +2 -3
- package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -1
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +2 -3
- package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -1
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +2 -3
- package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -1
- package/types/Private/internal/IrisApiEngine.d.ts +3 -3
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/MediaEngineInternal.d.ts +1 -3
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
- package/types/Private/internal/MediaPlayerInternal.d.ts +1 -3
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -1
- package/types/Private/internal/MediaRecorderInternal.d.ts +1 -3
- package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts +1 -3
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts +1 -3
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Renderer/IRenderer.d.ts +1 -1
- package/types/Renderer/IRenderer.d.ts.map +1 -1
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -1
- package/types/Types.d.ts +5 -5
- package/types/Types.d.ts.map +1 -1
- package/js/Private/internal/emitter/EventEmitter.js +0 -111
- package/ts/Private/internal/emitter/EventEmitter.d.ts +0 -164
- package/ts/Private/internal/emitter/EventEmitter.js +0 -124
- package/types/Private/internal/emitter/EventEmitter.d.ts +0 -60
- package/types/Private/internal/emitter/EventEmitter.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaPlayerInternal.d.ts","sourceRoot":"","sources":["../../../ts/Private/internal/MediaPlayerInternal.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EAEf,MAAM,m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,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,GACrC,IAAI;IAgCP,cAAc,CAAC,SAAS,SAAS,MAAM,iBAAiB,EACtD,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC;IAKxC,kBAAkB,CAAC,SAAS,SAAS,MAAM,iBAAiB,EAC1D,SAAS,CAAC,EAAE,SAAS;IAKd,gBAAgB,IAAI,MAAM;IAI1B,4BAA4B,CACnC,QAAQ,EAAE,0BAA0B,GACnC,MAAM;IAcA,8BAA8B,CACrC,QAAQ,EAAE,0BAA0B,GACnC,MAAM;IAYA,0BAA0B,CACjC,QAAQ,EAAE,kBAAkB,EAC5B,IAAI,GAAE,uBAA6E,GAClF,MAAM;IAiBA,4BAA4B,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM;IAYlE,0BAA0B,CACjC,QAAQ,EAAE,8BAA8B,GACvC,MAAM;IAiBA,4BAA4B,CACnC,QAAQ,EAAE,8BAA8B,GACvC,MAAM;IAYA,wCAAwC,CAC/C,QAAQ,EAAE,sBAAsB,EAChC,YAAY,EAAE,MAAM,GACnB,MAAM;IAoBA,0CAA0C,CACjD,QAAQ,EAAE,sBAAsB,GAC/B,MAAM;cAYU,kCAAkC,CACnD,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GACZ,MAAM;cAIU,qCAAqC,CACtD,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GACZ,MAAM;IAIA,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM;IAWlC,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,MAAM;CAkB3D"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { IMediaRecorderObserver } from '../AgoraMediaBase';
|
|
2
2
|
import { IMediaRecorderEvent } from '../extension/IAgoraMediaRecorderExtension';
|
|
3
3
|
import { IMediaRecorderImpl } from '../impl/IAgoraMediaRecorderImpl';
|
|
4
|
-
import type { EmitterSubscription } from './emitter/EventEmitter';
|
|
5
4
|
export declare class MediaRecorderInternal extends IMediaRecorderImpl {
|
|
6
5
|
static _observers: Map<string, IMediaRecorderObserver>;
|
|
7
6
|
private readonly _nativeHandle;
|
|
8
|
-
private _events;
|
|
9
7
|
constructor(nativeHandle: string);
|
|
10
8
|
release(): void;
|
|
11
9
|
get nativeHandle(): string;
|
|
12
10
|
setMediaRecorderObserver(callback: IMediaRecorderObserver): number;
|
|
13
11
|
_addListenerPreCheck<EventType extends keyof IMediaRecorderEvent>(eventType: EventType): boolean;
|
|
14
|
-
addListener<EventType extends keyof IMediaRecorderEvent>(eventType: EventType, listener: IMediaRecorderEvent[EventType]):
|
|
12
|
+
addListener<EventType extends keyof IMediaRecorderEvent>(eventType: EventType, listener: IMediaRecorderEvent[EventType]): void;
|
|
15
13
|
removeListener<EventType extends keyof IMediaRecorderEvent>(eventType: EventType, listener: IMediaRecorderEvent[EventType]): void;
|
|
16
14
|
removeAllListeners<EventType extends keyof IMediaRecorderEvent>(eventType?: EventType): void;
|
|
17
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaRecorderInternal.d.ts","sourceRoot":"","sources":["../../../ts/Private/internal/MediaRecorderInternal.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaRecorderInternal.d.ts","sourceRoot":"","sources":["../../../ts/Private/internal/MediaRecorderInternal.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAOrE,qBAAa,qBAAsB,SAAQ,kBAAkB;IAC3D,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAGlD;IACJ,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;gBAE3B,YAAY,EAAE,MAAM;IAKhC,OAAO;IAKP,IAAI,YAAY,IAAI,MAAM,CAEzB;IAEQ,wBAAwB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,MAAM;IAS3E,oBAAoB,CAAC,SAAS,SAAS,MAAM,mBAAmB,EAC9D,SAAS,EAAE,SAAS,GACnB,OAAO;IAeV,WAAW,CAAC,SAAS,SAAS,MAAM,mBAAmB,EACrD,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,mBAAmB,CAAC,SAAS,CAAC,GACvC,IAAI;IAeP,cAAc,CAAC,SAAS,SAAS,MAAM,mBAAmB,EACxD,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,mBAAmB,CAAC,SAAS,CAAC;IAK1C,kBAAkB,CAAC,SAAS,SAAS,MAAM,mBAAmB,EAC5D,SAAS,CAAC,EAAE,SAAS;CAIxB"}
|
|
@@ -2,12 +2,10 @@ import { IMusicContentCenterEventHandler, IMusicPlayer, Music } from '../IAgoraM
|
|
|
2
2
|
import { IMusicContentCenterEvent } from '../extension/IAgoraMusicContentCenterExtension';
|
|
3
3
|
import { IMusicContentCenterImpl, MusicCollectionImpl } from '../impl/IAgoraMusicContentCenterImpl';
|
|
4
4
|
import { MediaPlayerInternal } from './MediaPlayerInternal';
|
|
5
|
-
import type { EmitterSubscription } from './emitter/EventEmitter';
|
|
6
5
|
export declare class MusicContentCenterInternal extends IMusicContentCenterImpl {
|
|
7
6
|
static _event_handlers: IMusicContentCenterEventHandler[];
|
|
8
|
-
private _events;
|
|
9
7
|
_addListenerPreCheck<EventType extends keyof IMusicContentCenterEvent>(eventType: EventType): boolean;
|
|
10
|
-
addListener<EventType extends keyof IMusicContentCenterEvent>(eventType: EventType, listener: IMusicContentCenterEvent[EventType]):
|
|
8
|
+
addListener<EventType extends keyof IMusicContentCenterEvent>(eventType: EventType, listener: IMusicContentCenterEvent[EventType]): void;
|
|
11
9
|
removeListener<EventType extends keyof IMusicContentCenterEvent>(eventType: EventType, listener: IMusicContentCenterEvent[EventType]): void;
|
|
12
10
|
removeAllListeners<EventType extends keyof IMusicContentCenterEvent>(eventType?: EventType): void;
|
|
13
11
|
registerEventHandler(eventHandler: IMusicContentCenterEventHandler): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MusicContentCenterInternal.d.ts","sourceRoot":"","sources":["../../../ts/Private/internal/MusicContentCenterInternal.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,+BAA+B,EAC/B,YAAY,EACZ,KAAK,EACN,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAE1F,OAAO,EACL,uBAAuB,EAEvB,mBAAmB,EAEpB,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"MusicContentCenterInternal.d.ts","sourceRoot":"","sources":["../../../ts/Private/internal/MusicContentCenterInternal.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,+BAA+B,EAC/B,YAAY,EACZ,KAAK,EACN,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAE1F,OAAO,EACL,uBAAuB,EAEvB,mBAAmB,EAEpB,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,0BAA2B,SAAQ,uBAAuB;IACrE,MAAM,CAAC,eAAe,EAAE,+BAA+B,EAAE,CAAM;IAE/D,oBAAoB,CAAC,SAAS,SAAS,MAAM,wBAAwB,EACnE,SAAS,EAAE,SAAS,GACnB,OAAO;IAaV,WAAW,CA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ngineEvent } from '../extension/IAgoraRtcEngineExtension';
|
|
13
13
|
import { IRtcEngineExImpl } from '../impl/IAgoraRtcEngineExImpl';
|
|
14
|
-
import type { EmitterSubscription } from './emitter/EventEmitter';
|
|
15
14
|
export declare class RtcEngineExInternal extends IRtcEngineExImpl {
|
|
16
15
|
static _event_handlers: IRtcEngineEventHandler[];
|
|
17
16
|
static _direct_cdn_streaming_event_handler: IDirectCdnStreamingEventHandler[];
|
|
@@ -23,11 +22,10 @@ export declare class RtcEngineExInternal extends IRtcEngineExImpl {
|
|
|
23
22
|
private _media_engine;
|
|
24
23
|
private _music_content_center;
|
|
25
24
|
private _local_spatial_audio_engine;
|
|
26
|
-
private _events;
|
|
27
25
|
initialize(context: RtcEngineContext): number;
|
|
28
26
|
release(sync?: boolean): void;
|
|
29
27
|
_addListenerPreCheck<EventType extends keyof IRtcEngineEvent>(eventType: EventType): boolean;
|
|
30
|
-
addListener<EventType extends keyof IRtcEngineEvent>(eventType: EventType, listener: IRtcEngineEvent[EventType]):
|
|
28
|
+
addListener<EventType extends keyof IRtcEngineEvent>(eventType: EventType, listener: IRtcEngineEvent[EventType]): void;
|
|
31
29
|
removeListener<EventType extends keyof IRtcEngineEvent>(eventType: EventType, listener: IRtcEngineEvent[EventType]): void;
|
|
32
30
|
removeAllListeners<EventType extends keyof IRtcEngineEvent>(eventType?: EventType): void;
|
|
33
31
|
getVersion(): SDKBuildInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RtcEngineExInternal.d.ts","sourceRoot":"","sources":["../../../ts/Private/internal/RtcEngineExInternal.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGtC,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,EAC3B,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EAErB,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,+BAA+B,EAC/B,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,0BAA0B,EAC1B,uBAAuB,EACvB,IAAI,EACL,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAIxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"RtcEngineExInternal.d.ts","sourceRoot":"","sources":["../../../ts/Private/internal/RtcEngineExInternal.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGtC,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,EAC3B,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EAErB,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,eAAe,EACh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AA0B,IAAI,wBAAwB;IAItD,iCAAiC,CACxC,MAAM,EAAE,+BAA+B,EACvC,QAAQ,EAAE,0BAA0B,GACnC,MAAM;IAWA,mCAAmC,CAC1C,QAAQ,EAAE,0BAA0B,GACnC,MAAM;IAQA,6BAA6B,CACpC,QAAQ,EAAE,sBAAsB,GAC/B,MAAM;IAWA,+BAA+B,CACtC,QAAQ,EAAE,sBAAsB,GAC/B,MAAM;IAQA,uBAAuB,CAC9B,SAAS,EAAE,IAAI,EACf,QAAQ,EAAE,IAAI,EACd,aAAa,EAAE,OAAO,GACrB,uBAAuB,EAAE;IAwBnB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM;IA6B5C,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM;IAuB7C,kBAAkB,CACzB,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,aAAa,GACxB,MAAM;IAuBA,kBAAkB,CACzB,UAAU,EAAE,cAAc,EAC1B,UAAU,GAAE,mBAA6D,GACxE,MAAM;IAcA,mBAAmB,CAC1B,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,mBAAmB,GAC9B,MAAM;IAcA,qBAAqB,CAC5B,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,mBAAmB,EAC/B,UAAU,EAAE,aAAa,GACxB,MAAM;IAeA,uBAAuB,CAAC,UAAU,EAAE,mBAAmB,GAAG,MAAM;IAahE,qBAAqB,CAAC,IAAI,EAAE,GAAG;IAI/B,uBAAuB,CAC9B,eAAe,EAAE,eAAe,EAChC,SAAS,CAAC,EAAE,OAAO,EACnB,GAAG,CAAC,EAAE,MAAM;CAQf"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { RenderModeType } from '../Private/AgoraMediaBase';
|
|
4
4
|
import { RendererOptions, ShareVideoFrame } from '../Types';
|
|
5
|
-
export
|
|
5
|
+
export type RenderFailCallback = ((obj: {
|
|
6
6
|
error: string;
|
|
7
7
|
}) => void) | undefined | null;
|
|
8
8
|
export declare abstract class IRenderer {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IRenderer.d.ts","sourceRoot":"","sources":["../../ts/Renderer/IRenderer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"IRenderer.d.ts","sourceRoot":"","sources":["../../ts/Renderer/IRenderer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAC1B,CAAC,CAAC,GAAG,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,CAAC,GAClC,SAAS,GACT,IAAI,CAAC;AAET,8BAAsB,SAAS;IAC7B,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,WAAW,iBAAgC;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IAEV,QAAQ,CAAC,QAAQ,SAAc;IAO/B,IAAI,CAAC,OAAO,EAAE,WAAW;IAOhC,QAAQ,CAAC,MAAM,IAAI,IAAI;IAEhB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAU/C,QAAQ,CAAC,SAAS,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI;IAE7C,eAAe,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,eAAe;IAQ/D,QAAQ,CAAC,aAAa,IAAI,IAAI;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/Renderer/YUVCanvasRenderer/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/Renderer/YUVCanvasRenderer/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,OAAO,CAAC,mBAAmB,CAAC,CAAgB;IAC5C,OAAO,CAAC,cAAc,CAAC,CAAM;IAC7B,OAAO,CAAC,UAAU,CAAC,CAAc;IACjC,OAAO,CAAC,WAAW,CAAkB;;IAgB9B,IAAI,CAAC,OAAO,EAAE,WAAW;IAqBzB,MAAM;IAiBb,OAAO,CAAC,IAAI;IAqCZ,OAAO,CAAC,YAAY;IAwDb,SAAS,CAAC,KAAK,EAAE,eAAe;IAqEhC,aAAa;CAarB"}
|
package/types/Types.d.ts
CHANGED
|
@@ -86,8 +86,8 @@ export declare enum RENDER_MODE {
|
|
|
86
86
|
*/
|
|
87
87
|
SOFTWARE = 2
|
|
88
88
|
}
|
|
89
|
-
export
|
|
90
|
-
export
|
|
89
|
+
export type User = 'local' | 'videoSource' | number | string;
|
|
90
|
+
export type Channel = '' | string;
|
|
91
91
|
/**
|
|
92
92
|
* @ignore
|
|
93
93
|
*/
|
|
@@ -274,7 +274,7 @@ export interface RenderConfig {
|
|
|
274
274
|
*/
|
|
275
275
|
shareVideoFrame: ShareVideoFrame;
|
|
276
276
|
}
|
|
277
|
-
export
|
|
278
|
-
export
|
|
279
|
-
export
|
|
277
|
+
export type UidMap = Map<number, RenderConfig>;
|
|
278
|
+
export type ChannelIdMap = Map<Channel, UidMap>;
|
|
279
|
+
export type RenderMap = Map<VideoSourceType, ChannelIdMap>;
|
|
280
280
|
//# sourceMappingURL=Types.d.ts.map
|
package/types/Types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../ts/Types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD;;OAEG;IACH,mBAAmB,EAAE,mBAAmB,CAAC;IACzC;;OAEG;IACH,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,cAAc,CAAC;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,QAAQ,IAAI;CACb;AAED,
|
|
1
|
+
{"version":3,"file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AM,EAChB,MAAM,EAAE,GAAG,EACX,MAAM,CAAC,EAAE,UAAU,EAAE,EACrB,WAAW,CAAC,EAAE,MAAM,KACjB,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;CAClC;AAED,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAChD,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, '__esModule', {
|
|
3
|
-
value: true,
|
|
4
|
-
});
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
function _defineProperty(obj, key, value) {
|
|
7
|
-
if (key in obj) {
|
|
8
|
-
Object.defineProperty(obj, key, {
|
|
9
|
-
value: value,
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
writable: true,
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
obj[key] = value;
|
|
17
|
-
}
|
|
18
|
-
return obj;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @format
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* EventEmitter manages listeners and publishes events to them.
|
|
31
|
-
*
|
|
32
|
-
* EventEmitter accepts a single type parameter that defines the valid events
|
|
33
|
-
* and associated listener argument(s).
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
*
|
|
37
|
-
* const emitter = new EventEmitter<{
|
|
38
|
-
* success: [number, string],
|
|
39
|
-
* error: [Error],
|
|
40
|
-
* }>();
|
|
41
|
-
*
|
|
42
|
-
* emitter.on('success', (statusCode, responseText) => {...});
|
|
43
|
-
* emitter.emit('success', 200, '...');
|
|
44
|
-
*
|
|
45
|
-
* emitter.on('error', error => {...});
|
|
46
|
-
* emitter.emit('error', new Error('Resource not found'));
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
class EventEmitter {
|
|
50
|
-
constructor() {
|
|
51
|
-
_defineProperty(this, '_registry', {});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Registers a listener that is called when the supplied event is emitted.
|
|
55
|
-
* Returns a subscription that has a `remove` method to undo registration.
|
|
56
|
-
*/
|
|
57
|
-
addListener(eventType, listener, context) {
|
|
58
|
-
const registrations = allocate(this._registry, eventType);
|
|
59
|
-
const registration = {
|
|
60
|
-
context,
|
|
61
|
-
listener,
|
|
62
|
-
remove() {
|
|
63
|
-
registrations.delete(registration);
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
registrations.add(registration);
|
|
67
|
-
return registration;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Emits the supplied event. Additional arguments supplied to `emit` will be
|
|
71
|
-
* passed through to each of the registered listeners.
|
|
72
|
-
*
|
|
73
|
-
* If a listener modifies the listeners registered for the same event, those
|
|
74
|
-
* changes will not be reflected in the current invocation of `emit`.
|
|
75
|
-
*/
|
|
76
|
-
emit(eventType, ...args) {
|
|
77
|
-
const registrations = this._registry[eventType];
|
|
78
|
-
if (registrations != null) {
|
|
79
|
-
for (const registration of [...registrations]) {
|
|
80
|
-
registration.listener.apply(registration.context, args);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Removes all registered listeners.
|
|
86
|
-
*/
|
|
87
|
-
removeAllListeners(eventType) {
|
|
88
|
-
if (eventType == null) {
|
|
89
|
-
this._registry = {};
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
delete this._registry[eventType];
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Returns the number of registered listeners for the supplied event.
|
|
97
|
-
*/
|
|
98
|
-
listenerCount(eventType) {
|
|
99
|
-
const registrations = this._registry[eventType];
|
|
100
|
-
return registrations == null ? 0 : registrations.size;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.default = EventEmitter;
|
|
104
|
-
function allocate(registry, eventType) {
|
|
105
|
-
let registrations = registry[eventType];
|
|
106
|
-
if (registrations == null) {
|
|
107
|
-
registrations = new Set();
|
|
108
|
-
registry[eventType] = registrations;
|
|
109
|
-
}
|
|
110
|
-
return registrations;
|
|
111
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* EventSubscription represents a subscription to a particular event. It can
|
|
12
|
-
* remove its own subscription.
|
|
13
|
-
*/
|
|
14
|
-
interface EventSubscription {
|
|
15
|
-
eventType: string;
|
|
16
|
-
key: number;
|
|
17
|
-
subscriber: EventSubscriptionVendor;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @param subscriber the subscriber that controls
|
|
21
|
-
* this subscription.
|
|
22
|
-
*/
|
|
23
|
-
new (subscriber: EventSubscriptionVendor): EventSubscription;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Removes this subscription from the subscriber that controls it.
|
|
27
|
-
*/
|
|
28
|
-
remove(): void;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* EventSubscriptionVendor stores a set of EventSubscriptions that are
|
|
33
|
-
* subscribed to a particular event type.
|
|
34
|
-
*/
|
|
35
|
-
declare class EventSubscriptionVendor {
|
|
36
|
-
constructor();
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Adds a subscription keyed by an event type.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
addSubscription(
|
|
43
|
-
eventType: string,
|
|
44
|
-
subscription: EventSubscription
|
|
45
|
-
): EventSubscription;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Removes a bulk set of the subscriptions.
|
|
49
|
-
*
|
|
50
|
-
* @param eventType - Optional name of the event type whose
|
|
51
|
-
* registered supscriptions to remove, if null remove all subscriptions.
|
|
52
|
-
*/
|
|
53
|
-
removeAllSubscriptions(eventType?: string): void;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Removes a specific subscription. Instead of calling this function, call
|
|
57
|
-
* `subscription.remove()` directly.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
removeSubscription(subscription: any): void;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Returns the array of subscriptions that are currently registered for the
|
|
64
|
-
* given event type.
|
|
65
|
-
*
|
|
66
|
-
* Note: This array can be potentially sparse as subscriptions are deleted
|
|
67
|
-
* from it when they are removed.
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
getSubscriptionsForType(eventType: string): EventSubscription[];
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* EmitterSubscription represents a subscription with listener and context data.
|
|
75
|
-
*/
|
|
76
|
-
interface EmitterSubscription extends EventSubscription {
|
|
77
|
-
emitter: EventEmitter;
|
|
78
|
-
listener: () => any;
|
|
79
|
-
context: any;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @param emitter - The event emitter that registered this
|
|
83
|
-
* subscription
|
|
84
|
-
* @param subscriber - The subscriber that controls
|
|
85
|
-
* this subscription
|
|
86
|
-
* @param listener - Function to invoke when the specified event is
|
|
87
|
-
* emitted
|
|
88
|
-
* @param context - Optional context object to use when invoking the
|
|
89
|
-
* listener
|
|
90
|
-
*/
|
|
91
|
-
new (
|
|
92
|
-
emitter: EventEmitter,
|
|
93
|
-
subscriber: EventSubscriptionVendor,
|
|
94
|
-
listener: () => any,
|
|
95
|
-
context: any
|
|
96
|
-
): EmitterSubscription;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Removes this subscription from the emitter that registered it.
|
|
100
|
-
* Note: we're overriding the `remove()` method of EventSubscription here
|
|
101
|
-
* but deliberately not calling `super.remove()` as the responsibility
|
|
102
|
-
* for removing the subscription lies with the EventEmitter.
|
|
103
|
-
*/
|
|
104
|
-
remove(): void;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export declare class EventEmitter {
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @param subscriber - Optional subscriber instance
|
|
111
|
-
* to use. If omitted, a new subscriber will be created for the emitter.
|
|
112
|
-
*/
|
|
113
|
-
constructor(subscriber?: EventSubscriptionVendor | null);
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Adds a listener to be invoked when events of the specified type are
|
|
117
|
-
* emitted. An optional calling context may be provided. The data arguments
|
|
118
|
-
* emitted will be passed to the listener function.
|
|
119
|
-
*
|
|
120
|
-
* @param eventType - Name of the event to listen to
|
|
121
|
-
* @param listener - Function to invoke when the specified event is
|
|
122
|
-
* emitted
|
|
123
|
-
* @param context - Optional context object to use when invoking the
|
|
124
|
-
* listener
|
|
125
|
-
*/
|
|
126
|
-
addListener(
|
|
127
|
-
eventType: string,
|
|
128
|
-
listener: (...args: any[]) => any,
|
|
129
|
-
context?: any
|
|
130
|
-
): EmitterSubscription;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Removes all of the registered listeners, including those registered as
|
|
134
|
-
* listener maps.
|
|
135
|
-
*
|
|
136
|
-
* @param eventType - Optional name of the event whose registered
|
|
137
|
-
* listeners to remove
|
|
138
|
-
*/
|
|
139
|
-
removeAllListeners(eventType?: string): void;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Returns the number of listeners that are currently registered for the given
|
|
143
|
-
* event.
|
|
144
|
-
*
|
|
145
|
-
* @param eventType - Name of the event to query
|
|
146
|
-
*/
|
|
147
|
-
listenerCount(eventType: string): number;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Emits an event of the given type with the given data. All handlers of that
|
|
151
|
-
* particular type will be notified.
|
|
152
|
-
*
|
|
153
|
-
* @param eventType - Name of the event to emit
|
|
154
|
-
* @param Arbitrary arguments to be passed to each registered listener
|
|
155
|
-
*
|
|
156
|
-
* @example
|
|
157
|
-
* emitter.addListener('someEvent', function(message) {
|
|
158
|
-
* console.log(message);
|
|
159
|
-
* });
|
|
160
|
-
*
|
|
161
|
-
* emitter.emit('someEvent', 'abc'); // logs 'abc'
|
|
162
|
-
*/
|
|
163
|
-
emit(eventType: string, ...params: any[]): void;
|
|
164
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true,
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function _defineProperty(obj, key, value) {
|
|
9
|
-
if (key in obj) {
|
|
10
|
-
Object.defineProperty(obj, key, {
|
|
11
|
-
value: value,
|
|
12
|
-
enumerable: true,
|
|
13
|
-
configurable: true,
|
|
14
|
-
writable: true,
|
|
15
|
-
});
|
|
16
|
-
} else {
|
|
17
|
-
obj[key] = value;
|
|
18
|
-
}
|
|
19
|
-
return obj;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the MIT license found in the
|
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* @format
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* EventEmitter manages listeners and publishes events to them.
|
|
34
|
-
*
|
|
35
|
-
* EventEmitter accepts a single type parameter that defines the valid events
|
|
36
|
-
* and associated listener argument(s).
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
*
|
|
40
|
-
* const emitter = new EventEmitter<{
|
|
41
|
-
* success: [number, string],
|
|
42
|
-
* error: [Error],
|
|
43
|
-
* }>();
|
|
44
|
-
*
|
|
45
|
-
* emitter.on('success', (statusCode, responseText) => {...});
|
|
46
|
-
* emitter.emit('success', 200, '...');
|
|
47
|
-
*
|
|
48
|
-
* emitter.on('error', error => {...});
|
|
49
|
-
* emitter.emit('error', new Error('Resource not found'));
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
class EventEmitter {
|
|
53
|
-
constructor() {
|
|
54
|
-
_defineProperty(this, '_registry', {});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Registers a listener that is called when the supplied event is emitted.
|
|
59
|
-
* Returns a subscription that has a `remove` method to undo registration.
|
|
60
|
-
*/
|
|
61
|
-
addListener(eventType, listener, context) {
|
|
62
|
-
const registrations = allocate(this._registry, eventType);
|
|
63
|
-
const registration = {
|
|
64
|
-
context,
|
|
65
|
-
listener,
|
|
66
|
-
|
|
67
|
-
remove() {
|
|
68
|
-
registrations.delete(registration);
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
registrations.add(registration);
|
|
72
|
-
return registration;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Emits the supplied event. Additional arguments supplied to `emit` will be
|
|
76
|
-
* passed through to each of the registered listeners.
|
|
77
|
-
*
|
|
78
|
-
* If a listener modifies the listeners registered for the same event, those
|
|
79
|
-
* changes will not be reflected in the current invocation of `emit`.
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
emit(eventType, ...args) {
|
|
83
|
-
const registrations = this._registry[eventType];
|
|
84
|
-
|
|
85
|
-
if (registrations != null) {
|
|
86
|
-
for (const registration of [...registrations]) {
|
|
87
|
-
registration.listener.apply(registration.context, args);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Removes all registered listeners.
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
|
-
removeAllListeners(eventType) {
|
|
96
|
-
if (eventType == null) {
|
|
97
|
-
this._registry = {};
|
|
98
|
-
} else {
|
|
99
|
-
delete this._registry[eventType];
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Returns the number of registered listeners for the supplied event.
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
listenerCount(eventType) {
|
|
107
|
-
const registrations = this._registry[eventType];
|
|
108
|
-
return registrations == null ? 0 : registrations.size;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
exports.default = EventEmitter;
|
|
113
|
-
|
|
114
|
-
function allocate(registry, eventType) {
|
|
115
|
-
let registrations = registry[eventType];
|
|
116
|
-
|
|
117
|
-
if (registrations == null) {
|
|
118
|
-
registrations = new Set();
|
|
119
|
-
registry[eventType] = registrations;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return registrations;
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=EventEmitter.js.map
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export const __esModule: boolean;
|
|
2
|
-
export default EventEmitter;
|
|
3
|
-
/**
|
|
4
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @format
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* EventEmitter manages listeners and publishes events to them.
|
|
14
|
-
*
|
|
15
|
-
* EventEmitter accepts a single type parameter that defines the valid events
|
|
16
|
-
* and associated listener argument(s).
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
*
|
|
20
|
-
* const emitter = new EventEmitter<{
|
|
21
|
-
* success: [number, string],
|
|
22
|
-
* error: [Error],
|
|
23
|
-
* }>();
|
|
24
|
-
*
|
|
25
|
-
* emitter.on('success', (statusCode, responseText) => {...});
|
|
26
|
-
* emitter.emit('success', 200, '...');
|
|
27
|
-
*
|
|
28
|
-
* emitter.on('error', error => {...});
|
|
29
|
-
* emitter.emit('error', new Error('Resource not found'));
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
declare class EventEmitter {
|
|
33
|
-
/**
|
|
34
|
-
* Registers a listener that is called when the supplied event is emitted.
|
|
35
|
-
* Returns a subscription that has a `remove` method to undo registration.
|
|
36
|
-
*/
|
|
37
|
-
addListener(eventType: any, listener: any, context: any): {
|
|
38
|
-
context: any;
|
|
39
|
-
listener: any;
|
|
40
|
-
remove(): void;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Emits the supplied event. Additional arguments supplied to `emit` will be
|
|
44
|
-
* passed through to each of the registered listeners.
|
|
45
|
-
*
|
|
46
|
-
* If a listener modifies the listeners registered for the same event, those
|
|
47
|
-
* changes will not be reflected in the current invocation of `emit`.
|
|
48
|
-
*/
|
|
49
|
-
emit(eventType: any, ...args: any[]): void;
|
|
50
|
-
/**
|
|
51
|
-
* Removes all registered listeners.
|
|
52
|
-
*/
|
|
53
|
-
removeAllListeners(eventType: any): void;
|
|
54
|
-
_registry: {} | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Returns the number of registered listeners for the supplied event.
|
|
57
|
-
*/
|
|
58
|
-
listenerCount(eventType: any): any;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=EventEmitter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../../ts/Private/internal/emitter/EventEmitter.js"],"names":[],"mappings":";;AAqBA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IAKE;;;OAGG;IACH;;;;MAYC;IACD;;;;;;OAMG;IAEH,2CAQC;IACD;;OAEG;IAEH,yCAMC;IAJG,0BAAmB;IAKvB;;OAEG;IAEH,mCAGC;CACF"}
|