@league-of-foundry-developers/foundry-vtt-types 9.255.0 → 9.255.1

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.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/foundry/common/types.mjs.d.ts +120 -8
  4. package/src/foundry/common/utils/http.mjs.d.ts +52 -0
  5. package/src/foundry/common/utils/module.mjs.d.ts +1 -0
  6. package/src/foundry/common/utils/semaphore.mjs.d.ts +6 -3
  7. package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +8 -6
  8. package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +4 -4
  9. package/src/foundry/foundry.js/avClient.d.ts +15 -1
  10. package/src/foundry/foundry.js/avClients/index.d.ts +0 -1
  11. package/src/foundry/foundry.js/avClients/simplePeerAVClient.d.ts +31 -4
  12. package/src/foundry/foundry.js/avMaster.d.ts +21 -48
  13. package/src/foundry/foundry.js/avSettings.d.ts +19 -46
  14. package/src/foundry/foundry.js/clientDocumentMixin.d.ts +2 -2
  15. package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +28 -6
  16. package/src/foundry/foundry.js/clientDocuments/actor.d.ts +13 -70
  17. package/src/foundry/foundry.js/clientDocuments/canvasDocuments/tokenDocument.d.ts +42 -9
  18. package/src/foundry/foundry.js/clientDocuments/folder.d.ts +22 -20
  19. package/src/foundry/foundry.js/clientDocuments/item.d.ts +5 -23
  20. package/src/foundry/foundry.js/clientDocuments/macro.d.ts +10 -0
  21. package/src/foundry/foundry.js/clientDocuments/playlistSound.d.ts +1 -1
  22. package/src/foundry/foundry.js/clientDocuments/prototypeToken.d.ts +24 -14
  23. package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +16 -14
  24. package/src/foundry/foundry.js/clientDocuments/scene.d.ts +12 -7
  25. package/src/foundry/foundry.js/clientDocuments/user.d.ts +2 -12
  26. package/src/foundry/foundry.js/clientSettings.d.ts +38 -86
  27. package/src/foundry/foundry.js/gamepadManager.d.ts +12 -0
  28. package/src/foundry/foundry.js/globalVariables.d.ts +0 -31
  29. package/src/foundry/foundry.js/pixi/containers/baseGrid.d.ts +21 -6
  30. package/src/foundry/foundry.js/pixi/containers/baseGrids/hexagonalGrid.d.ts +13 -8
  31. package/src/foundry/foundry.js/pixi/containers/baseGrids/squareGrid.d.ts +5 -3
  32. package/src/foundry/foundry.js/pixi/containers/canvasLayers/gridLayer.d.ts +14 -5
  33. package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +9 -55
  34. package/src/foundry/foundry.js/pixi/containers/placeableObjects/ambientSound.d.ts +3 -0
  35. package/src/foundry/foundry.js/pixi/containers/placeableObjects/drawing.d.ts +3 -0
  36. package/src/foundry/foundry.js/pixi/containers/placeableObjects/measuredTemplate.d.ts +3 -0
  37. package/src/foundry/foundry.js/pixi/containers/placeableObjects/note.d.ts +3 -0
  38. package/src/foundry/foundry.js/pixi/containers/placeableObjects/tile.d.ts +3 -0
  39. package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +3 -0
  40. package/src/foundry/index.d.ts +0 -4
  41. package/src/foundry/foundry.js/avClients/easyRTCClient.d.ts +0 -392
  42. package/src/foundry/foundry.js/features.d.ts +0 -0
  43. package/src/foundry/foundry.js/fonts.d.ts +0 -24
@@ -4,7 +4,7 @@ import { Document } from '../../../common/abstract/module.mjs';
4
4
 
5
5
  declare global {
6
6
  /**
7
- * An Abstract Base Class which defines a Placeable Object which represents an Entity placed on the Canvas
7
+ * An Abstract Base Class which defines a Placeable Object which represents a Document placed on the Canvas
8
8
  */
9
9
  abstract class PlaceableObject<
10
10
  D extends Document<any, InstanceType<ConfiguredDocumentClass<typeof Scene>>> = Document<
@@ -68,8 +68,8 @@ declare global {
68
68
  protected _hover: boolean;
69
69
 
70
70
  /**
71
- * Identify the official EmbeddedEntity name for this PlaceableObject class
72
- * @remarks This getter is abstract in {@link PlaceableObject}.
71
+ * Identify the official Document name for this PlaceableObject class
72
+ * @remarks This is abstract in {@link PlaceableObject}.
73
73
  */
74
74
  static embeddedName: string;
75
75
 
@@ -77,7 +77,7 @@ declare global {
77
77
  * The bounding box for this PlaceableObject.
78
78
  * This is required if the layer uses a Quadtree, otherwise it is optional
79
79
  */
80
- get bounds(): Rectangle;
80
+ abstract get bounds(): Rectangle;
81
81
 
82
82
  /**
83
83
  * The central coordinate pair of the placeable object based on it's own width and height
@@ -106,8 +106,8 @@ declare global {
106
106
  get los(): this['vision']['los'];
107
107
 
108
108
  /**
109
- * A Form Application which is used to configure the properties of this Placeable Object or the EmbeddedEntity
110
- * it represents.
109
+ * A Form Application which is used to configure the properties of this Placeable Object or the Document it
110
+ * represents.
111
111
  */
112
112
  get sheet(): 'sheet' extends keyof D ? D['sheet'] : FormApplication | null;
113
113
 
@@ -151,7 +151,7 @@ declare global {
151
151
  protected _canView(user: InstanceType<ConfiguredDocumentClass<typeof User>>, event?: any): boolean;
152
152
 
153
153
  /**
154
- * Does the User have permission to create the underlying Embedded Entity?
154
+ * Does the User have permission to create the underlying Document?
155
155
  * @param event - (unused)
156
156
  */
157
157
  protected _canCreate(user: InstanceType<ConfiguredDocumentClass<typeof User>>, event?: any): boolean;
@@ -169,13 +169,13 @@ declare global {
169
169
  protected _canHover(user: InstanceType<ConfiguredDocumentClass<typeof User>>, event?: any): boolean;
170
170
 
171
171
  /**
172
- * Does the User have permission to update the underlying Embedded Entity?
172
+ * Does the User have permission to update the underlying Document?
173
173
  * @param event - (unused)
174
174
  */
175
175
  protected _canUpdate(user: InstanceType<ConfiguredDocumentClass<typeof User>>, event?: any): boolean;
176
176
 
177
177
  /**
178
- * Does the User have permission to delete the underlying Embedded Entity?
178
+ * Does the User have permission to delete the underlying Document?
179
179
  * @param event - (unused)
180
180
  */
181
181
  protected _canDelete(user: InstanceType<ConfiguredDocumentClass<typeof User>>, event?: any): boolean;
@@ -378,52 +378,6 @@ declare global {
378
378
  * @param event - The triggering mouse click event
379
379
  */
380
380
  protected _onDragLeftCancel(event: MouseEvent): void;
381
-
382
- /**
383
- * @deprecated since 0.8.0
384
- * @param options - (default: `{}`)
385
- */
386
- static create(
387
- data:
388
- | Parameters<InstanceType<ConfiguredDocumentClass<typeof Scene>>['createEmbeddedDocuments']>[1]
389
- | Parameters<InstanceType<ConfiguredDocumentClass<typeof Scene>>['createEmbeddedDocuments']>[1][],
390
- options?: Parameters<InstanceType<ConfiguredDocumentClass<typeof Scene>>['createEmbeddedDocuments']>[1]
391
- ): ReturnType<InstanceType<ConfiguredDocumentClass<typeof Scene>>['createEmbeddedDocuments']>;
392
-
393
- /**
394
- * @deprecated since 0.8.0
395
- */
396
- update(data: Parameters<D['update']>[0], options: Parameters<D['update']>[1]): ReturnType<D['update']>;
397
-
398
- /**
399
- * @deprecated since 0.8.0
400
- */
401
- delete(options: Parameters<D['delete']>[0]): ReturnType<D['delete']>;
402
-
403
- /**
404
- * @deprecated since 0.8.0
405
- */
406
- getFlag(scope: string, key: string): ReturnType<D['getFlag']>;
407
-
408
- /**
409
- * @deprecated since 0.8.0
410
- */
411
- setFlag(scope: string, key: string, value: unknown): ReturnType<D['setFlag']>;
412
-
413
- /**
414
- * @deprecated since 0.8.0
415
- */
416
- unsetFlag(scope: string, key: string): ReturnType<D['unsetFlag']>;
417
-
418
- /**
419
- * @deprecated since 0.8.0
420
- */
421
- get uuid(): string;
422
-
423
- /**
424
- * @deprecated since 0.8.2
425
- */
426
- static get layer(): PlaceablesLayer<any>;
427
381
  }
428
382
 
429
383
  namespace PlaceableObject {
@@ -27,6 +27,9 @@ declare global {
27
27
  */
28
28
  get isAudible(): boolean;
29
29
 
30
+ /** @override */
31
+ get bounds(): Rectangle;
32
+
30
33
  /**
31
34
  * A convenience accessor for the sound type
32
35
  */
@@ -59,6 +59,9 @@ declare global {
59
59
  */
60
60
  static FREEHAND_SAMPLE_RATE: number;
61
61
 
62
+ /** @override */
63
+ get bounds(): Rectangle;
64
+
62
65
  /**
63
66
  * A Boolean flag for whether or not the Drawing utilizes a tiled texture background
64
67
  */
@@ -33,6 +33,9 @@ declare global {
33
33
  /** @override */
34
34
  static embeddedName: 'MeasuredTemplate';
35
35
 
36
+ /** @override */
37
+ get bounds(): Rectangle;
38
+
36
39
  /**
37
40
  * A convenience accessor for the border color as a numeric hex code
38
41
  */
@@ -10,6 +10,9 @@ declare global {
10
10
  /** @override */
11
11
  static get embeddedName(): 'Note';
12
12
 
13
+ /** @override */
14
+ get bounds(): Rectangle;
15
+
13
16
  /**
14
17
  * The associated JournalEntry which is described by this note
15
18
  */
@@ -72,6 +72,9 @@ declare global {
72
72
  */
73
73
  get aspectRatio(): number;
74
74
 
75
+ /** @override */
76
+ get bounds(): Rectangle;
77
+
75
78
  /**
76
79
  * The HTML source element for the primary Tile texture
77
80
  */
@@ -77,6 +77,9 @@ declare global {
77
77
  */
78
78
  readonly name: string;
79
79
 
80
+ /** @override */
81
+ get bounds(): Rectangle;
82
+
80
83
  /**
81
84
  * Translate the token's grid width into a pixel width based on the canvas size
82
85
  */
@@ -20,12 +20,9 @@ import './foundry.js/clientSettings';
20
20
  import './foundry.js/collections';
21
21
  import './foundry.js/collisionResult';
22
22
  import './foundry.js/config';
23
- import './foundry.js/constants';
24
23
  import './foundry.js/contextMenu';
25
24
  import './foundry.js/dragDrop';
26
25
  import './foundry.js/draggable';
27
- import './foundry.js/features';
28
- import './foundry.js/fonts';
29
26
  import './foundry.js/formDataExtended';
30
27
  import './foundry.js/game';
31
28
  import './foundry.js/gameTime';
@@ -74,7 +71,6 @@ import './foundry.js/templateUtils';
74
71
  import './foundry.js/textEditor';
75
72
  import './foundry.js/textureLoader';
76
73
  import './foundry.js/textureUtils';
77
- import './foundry.js/types';
78
74
  import './foundry.js/userTargets';
79
75
  import './foundry.js/utils';
80
76
  import './foundry.js/videoHelper';
@@ -1,392 +0,0 @@
1
- /**
2
- * An AVClient implementation that uses WebRTC and the EasyRTC library.
3
- * This client is deprecated and will be removed entirely in 0.9.x.
4
- *
5
- * If you wish to continue using it, you will need to manually enable it by:
6
- * 1. Include the easyrtc.js library which is no longer served
7
- * 2. Set CONFIG.WebRTC.clientClass = EasyRTCClient
8
- *
9
- * @deprecated since 0.8.7 */
10
- declare class EasyRTCClient extends AVClient {
11
- /**
12
- * @param master - The master orchestration instance
13
- * @param settings - The audio/video settings being used
14
- */
15
- constructor(master: AVMaster, settings: AVSettings);
16
-
17
- /**
18
- * Store the name of the joined EasyRTC room
19
- * @defaultValue `null`
20
- */
21
- protected _room: string | null;
22
-
23
- /**
24
- * A mapping of easyRtcId peer ids to Foundry User ids
25
- * @defaultValue `{}`
26
- */
27
- protected _usernameCache: Record<string, string>;
28
-
29
- /**
30
- * An array of easyRtcId peers that rejected our call. Avoid continually trying to call the same peer.
31
- * @defaultValue `[]`
32
- */
33
- protected _callRejections: string[];
34
-
35
- /** @override */
36
- initialize(): Promise<void>;
37
-
38
- /** @override */
39
- connect(): Promise<true>;
40
-
41
- /** @override */
42
- disconnect(): Promise<true>;
43
-
44
- /**
45
- * Connect to the WebRTC server and configure ICE/TURN servers
46
- * @returns Was the server connected?
47
- */
48
- protected _connectServer({
49
- type,
50
- room,
51
- url,
52
- username,
53
- password
54
- }: {
55
- type?: 'FVTT' | 'custom';
56
- room?: string;
57
- url: string;
58
- username: string;
59
- password: string;
60
- }): Promise<boolean>;
61
-
62
- /**
63
- * Setup the custom TURN relay to be used in subsequent calls if there is one configured
64
- * If configured, setup custom TURN configuration for future calls. Turn credentials are mandatory in WebRTC.
65
- */
66
- protected _setupCustomTURN(): void;
67
-
68
- /**
69
- * Initialize a local media stream
70
- * Capture the local audio and video and returns the stream associated with them.
71
- *
72
- * If `temporary` is false (default), then this will initialize the master stream, not the actual
73
- * streams being sent to individual users. However, if a master stream was already created, it
74
- * will automatically get closed and every individual streams derived from it that are being sent
75
- * to connected users will be removed from the calls.
76
- * Each established or subsequent calls will receive a copy of the created stream (A/V depending on user permissions)
77
- *
78
- * If `temporary` is true then this only applies to a temporary stream and does not affect
79
- * the master stream or any streams in existing calls.
80
- * Note that this assumes only one temporary stream can be created at a time.
81
- *
82
- * @param audioSrc - ID of the audio source to capture from or null to disable Audio
83
- * (default: `undefined`)
84
- * @param videoSrc - ID of the video source to capture from or null to disable Video
85
- * (default: `undefined`)
86
- * @param temporary - Whether to create a temporary stream or the master stream
87
- * (default: `false`)
88
- * @returns Returns the local stream or `null` if none could be created
89
- */
90
- protected _initializeLocal({
91
- audioSrc,
92
- videoSrc,
93
- temporary
94
- }?: {
95
- audioSrc?: string | null;
96
- videoSrc?: string | null;
97
- temporary?: boolean;
98
- }): Promise<MediaStream>;
99
-
100
- /**
101
- * Create an open a local stream when initially connecting to the server.
102
- * This local stream becomes the "master" stream which tracks your own device inputs.
103
- * The master stream is cloned to provide a stream to every connected peer.
104
- */
105
- protected _openLocalStream(
106
- audioSrc: string | undefined | null,
107
- videoSrc: string | undefined | null,
108
- temporary?: boolean
109
- ): Promise<MediaStream | null>;
110
-
111
- /**
112
- * Close the local stream
113
- */
114
- protected _closeLocalStream(temporary?: boolean): void;
115
-
116
- /**
117
- * Define media constraints to control the resolution and devices used.
118
- * We need to set our own constraints so we can specify a min/max range of resolutions.
119
- */
120
- protected _getStreamMediaConstraints(
121
- videoSrc: string | undefined | null,
122
- audioSrc: string | undefined | null
123
- ): EasyRTCClient.StreamMediaConstraints;
124
-
125
- /**
126
- * Call a peer and establish a connection with them
127
- * @param easyRtcId - The peer ID to call
128
- * @returns Returns false if no call was made or true if the call is successful.
129
- * @throws raises an Exception in case of failure to establish the call.
130
- */
131
- protected _performCall(easyRtcId: string): Promise<boolean>;
132
-
133
- /**
134
- * Create a MediaStream to be sent to a specific peer.
135
- * This stream should control whether outbound video and audio is transmitted.
136
- * Create the stream as a clone of the current master stream for configuration on a peer-to-peer basis.
137
- */
138
- protected _createStreamForPeer(peer: string): MediaStream | null;
139
-
140
- /** @override */
141
- getAudioSinks(): Promise<Record<string, string>>;
142
-
143
- /** @override */
144
- getAudioSources(): Promise<Record<string, string>>;
145
-
146
- /** @override */
147
- getVideoSources(): Promise<Record<string, string>>;
148
-
149
- /**
150
- * Transform the device info array from easyrtc into an object with `{id: label}` keys
151
- * @param list - The list of devices
152
- */
153
- protected _deviceInfoToObject(list: EasyRTCClient.DeviceSource[]): Record<string, string>;
154
-
155
- /**
156
- * Obtain the EasyRTC user ID of a user based on their Foundry VTT user ID
157
- * @param userId - The ID of the user
158
- * @returns The EasyRtcId of the peer
159
- */
160
- protected _userIdToEasyRtcId(userId: string): string | null;
161
-
162
- /** @override */
163
- getConnectedUsers(): string[];
164
-
165
- /**
166
- * Get MediaStream instances for every connected peer in the room.
167
- * @returns - An array of stream information for each peer
168
- */
169
- getConnectedStreams(): EasyRTCClient.StreamInfo;
170
-
171
- /** @override */
172
- getMediaStreamForUser(userId: string): MediaStream;
173
-
174
- /** @override */
175
- isAudioEnabled(): boolean;
176
-
177
- /** @override */
178
- isVideoEnabled(): boolean;
179
-
180
- /**
181
- * Handle a request to enable or disable the outbound audio feed for the current game user.
182
- * @param enable - Whether the outbound audio track should be enabled (true) or disabled (false)
183
- */
184
- toggleAudio(enable: boolean): void;
185
-
186
- /**
187
- * Set whether the outbound audio feed for the current game user is actively broadcasting.
188
- * This can only be true if audio is enabled, but may be false if using push-to-talk or voice activation modes.
189
- * @param broadcast - Whether outbound audio should be sent to connected peers or not?
190
- */
191
- toggleBroadcast(broadcast: boolean): void;
192
-
193
- /**
194
- * Handle a request to enable or disable the outbound video feed for the current game user.
195
- * @param enable - Whether the outbound video track should be enabled (true) or disabled (false)
196
- */
197
- toggleVideo(enable: boolean): void;
198
-
199
- /** @override */
200
- setUserVideo(userId: string, videoElement: HTMLVideoElement): Promise<void>;
201
-
202
- /**
203
- * Enable or disable the audio tracks in a stream
204
- *
205
- * Disabling a track represents what a typical user would consider muting it.
206
- * We use the term 'enable' here instead of 'mute' to match the MediaStreamTrack
207
- * field name and to avoid confusion with the 'muted' read-only field of the MediaStreamTrack
208
- * as well as the video element's `muted` field which only stops playing the audio.
209
- * Muting by definition stops rendering any of the data, while a disabled track in this case
210
- * is still rendering its data, but is simply generating disabled content (silence and black frames)
211
- * See https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled
212
- *
213
- * @param stream - The stream to modify
214
- * @param enable - (optional) Whether to enable or disable the tracks
215
- * (default: `true`)
216
- */
217
- enableStreamAudio(stream: MediaStream, enable?: boolean): void;
218
-
219
- /**
220
- * Enable or disable the video tracks in a stream
221
- *
222
- * Disabling a track represents what a typical user would consider muting it. We use the term 'enable' here instead
223
- * of 'mute' to match the MediaStreamTrack field name and to avoid confusion with the 'muted' read-only field of the
224
- * MediaStreamTrack as well as the video element's `muted` field which only stops playing the audio.
225
- *
226
- * Muting by definition stops rendering any of the data, while a disabled track in this case is still rendering its
227
- * data, but is simply generating disabled content (silence and black frames).
228
- *
229
- * See https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled
230
- *
231
- * @param stream - The stream to modify
232
- * @param enable - (optional) Whether to enable or disable the tracks
233
- * (default: `true`)
234
- */
235
- enableStreamVideo(stream: MediaStream, enable?: boolean): void;
236
-
237
- /**
238
- * Enables or disables media tracks
239
- * See https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled
240
- * @param tracks - The tracks to enable/disable
241
- * @param enable - Whether to enable or disable the tracks
242
- */
243
- protected _enableMediaTracks(tracks: MediaStreamTrack[], enable: boolean): void;
244
-
245
- /**
246
- * Callback used to check if an incoming call should be accepted or not
247
- * @param easyRtcId - The peer ID of the caller
248
- * @param acceptor - Function to call with whether or not to accept the call and the media streams to use
249
- */
250
- protected _answerIncomingCall(
251
- easyRtcId: string,
252
- acceptor: (accept: boolean, streamNames: string[] | null) => unknown
253
- ): void;
254
-
255
- /**
256
- * Called when the connection to the signaling server is lost (unintentionally).
257
- * This handles the case of when connectivity is interrupted non-deliberately.
258
- */
259
- protected _onConnectionLost(): void;
260
-
261
- /**
262
- * Called when an error occurs
263
- */
264
- protected _onError({ errorCode, errorText }: { errorCode: string; errorText: string }): void;
265
-
266
- /**
267
- * Called whenever there is a change in the list of occupants in a room.
268
- * It can also be called if a peer's state changes, such as when a call is established or ended.
269
- * For each other peer in the room, record their user ID and establish a call with them.
270
- * Record the username associated with each peer.
271
- *
272
- * Important: We need to make sure that only user initiates a call, instead of both trying to call each other.
273
- * Resolve this by having the alphabetically greater ID call the other peer.
274
- *
275
- * @param roomName - The room name where occupants have changed
276
- * @param otherPeople - An array of other peers in the room
277
- * @param myInfo - My own connection info
278
- */
279
- protected _onRoomOccupantsChange(
280
- roomName: string,
281
- otherPeople: Record<string, any>,
282
- myInfo: { easyrtcid: string; [key: string]: any }
283
- ): Promise<void>;
284
-
285
- /**
286
- * Called when the connection with a peer has been established
287
- */
288
- protected onPeerOpen(easyRtcId: string): void;
289
-
290
- /**
291
- * Called when the connection with a peer has been lost and the ICE machine was unable to re-establish it.
292
- * In case of irrecoverable connection loss with the peer, hanging up the call will cause a roomOccupantListener
293
- * signal to be sent and we will automatically try to reconnect to the user.
294
- * First make sure that they are still in the room so we don't try to hangup with an easyRtcId that is invalid.
295
- */
296
- protected _onPeerClosed(easyRtcId: string): void;
297
-
298
- /**
299
- * Called when a remote stream is added to an existing call
300
- */
301
- protected _onPeerConnect(easyRtcId: string, stream: MediaStream): void;
302
-
303
- /**
304
- * Called when a remote stream is removed from an existing call
305
- */
306
- protected _onPeerDisconnect(easyRtcId: string, stream: MediaStream, streamName: string): void;
307
-
308
- /**
309
- * @deprecated Use `getMediaStreamForUser` instead
310
- */
311
- getStreamForUser(userId: string): MediaStream;
312
- }
313
-
314
- declare namespace EasyRTCClient {
315
- interface StreamMediaConstraints {
316
- video:
317
- | {
318
- /**
319
- * @defaultValue `4/3`
320
- */
321
- aspectRatio: number;
322
-
323
- width: {
324
- /**
325
- * @defaultValue `32=`
326
- */
327
- ideal: number;
328
-
329
- /**
330
- * @defaultValue `640`
331
- */
332
- max: number;
333
-
334
- /**
335
- * @defaultValue `160`
336
- */
337
- min: number;
338
- };
339
-
340
- height: {
341
- /**
342
- * @defaultValue `240`
343
- */
344
- ideal: number;
345
-
346
- /**
347
- * @defaultValue `480`
348
- */
349
- max: number;
350
-
351
- /**
352
- * @defaultValue `120`
353
- */
354
- min: number;
355
- };
356
-
357
- frameRate: {
358
- /**
359
- * @defaultValue `15`
360
- */
361
- ideal: number;
362
-
363
- /**
364
- * @defaultValue `30`
365
- */
366
- max: number;
367
- };
368
-
369
- deviceId: string | undefined | null;
370
- }
371
- | false;
372
- audio:
373
- | {
374
- deviceId: string | undefined | null;
375
- }
376
- | false;
377
- }
378
-
379
- interface DeviceSource {
380
- deviceId: string;
381
- groupId: string;
382
- label: string;
383
- kind: 'audio' | 'video';
384
- }
385
-
386
- interface StreamInfo {
387
- id: string;
388
- connection: RTCPeerConnection;
389
- local: MediaStream | null;
390
- remote: MediaStream | null;
391
- }
392
- }
File without changes
@@ -1,24 +0,0 @@
1
- /**
2
- * A configuration of font families which are initialized when the page loads
3
- */
4
- declare const FONTS: {
5
- FontAwesome: {
6
- custom: {
7
- families: ['FontAwesome'];
8
- urls: ['fonts/fontawesome/css/all.min.css'];
9
- };
10
- };
11
- Signika: {
12
- custom: {
13
- families: ['Signika'];
14
- urls: ['fonts/signika/signika.css'];
15
- };
16
- };
17
- _loaded: [];
18
- };
19
-
20
- /**
21
- * Load font, and perform a callback once the font has been rendered
22
- * @deprecated since 0.6.4, to be removed in 0.8.x
23
- */
24
- declare function loadFont(fontName: string, callback: () => void): void;