@3dsource/angular-unreal-module 0.0.183 → 0.0.184
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/package.json
CHANGED
|
@@ -3597,5 +3597,133 @@ declare const selectUserInactivityDetected: _ngrx_store.MemoizedSelector<Record<
|
|
|
3597
3597
|
/** Used by external consumers (e.g., metabox). Do not remove. */
|
|
3598
3598
|
declare const selectIsVideoPlayingAndDataChannelConnected: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (s1: boolean, s2: boolean) => boolean>;
|
|
3599
3599
|
|
|
3600
|
-
|
|
3600
|
+
interface CachedCanvas {
|
|
3601
|
+
canvas: HTMLCanvasElement;
|
|
3602
|
+
ctx: CanvasRenderingContext2D;
|
|
3603
|
+
}
|
|
3604
|
+
declare function getCanvasCached(id: string): CachedCanvas;
|
|
3605
|
+
type SnapshotSource = HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap;
|
|
3606
|
+
declare function getSnapshot(imageElement: SnapshotSource, maxWidth?: number, output?: ImageOutputValues, quality?: number): HTMLCanvasElement | string;
|
|
3607
|
+
|
|
3608
|
+
/**
|
|
3609
|
+
* Colour-space conversions used by the dev stat graph overlay.
|
|
3610
|
+
*
|
|
3611
|
+
* Carried over verbatim; `HSVtoRGB` reassigns its locals, hence the
|
|
3612
|
+
* file-level `prefer-const` exemption.
|
|
3613
|
+
*/
|
|
3614
|
+
declare function HEXtoRGB(color: number | string): {
|
|
3615
|
+
r: number;
|
|
3616
|
+
g: number;
|
|
3617
|
+
b: number;
|
|
3618
|
+
};
|
|
3619
|
+
declare function RGBtoHEX(r: number, g: number, b: number): string;
|
|
3620
|
+
/**
|
|
3621
|
+
* RGB from the respective figures, HSV sequences in terms of returns.
|
|
3622
|
+
* RGB values are as follows.
|
|
3623
|
+
* R - a number from 0 to 255
|
|
3624
|
+
* G - a number from 0 to 255
|
|
3625
|
+
* B - a number from 0 to 255
|
|
3626
|
+
*
|
|
3627
|
+
* HSV values are as follows.
|
|
3628
|
+
* H - a number between 360-0
|
|
3629
|
+
* S - number between 0 and 1.0
|
|
3630
|
+
* V - number between 0 and 1.0
|
|
3631
|
+
*
|
|
3632
|
+
* Cannot compute, including alpha.
|
|
3633
|
+
* @ Param r the red (R) indicating the number (0x00 to 0xFF to)
|
|
3634
|
+
* @ Param g green (G) indicates the number (0x00 to 0xFF to)
|
|
3635
|
+
* @ Param b blue (B) shows the number (0x00 to 0xFF to)
|
|
3636
|
+
* @ Return HSV values as [H, S, V]
|
|
3637
|
+
**/
|
|
3638
|
+
declare function RGBtoHSV(r: number, g: number, b: number): number[];
|
|
3639
|
+
/**
|
|
3640
|
+
* HSV from each of the RGB values to determine a return as a number[].
|
|
3641
|
+
* RGB values are as follows.
|
|
3642
|
+
* R - a number from 0 to 255
|
|
3643
|
+
* G - a number from 0 to 255
|
|
3644
|
+
* B - a number from 0 to 255
|
|
3645
|
+
*
|
|
3646
|
+
* HSV values are as follows.
|
|
3647
|
+
* H - a number between 360-0
|
|
3648
|
+
* S - number between 0 and 1.0
|
|
3649
|
+
* V - number between 0 and 1.0
|
|
3650
|
+
*
|
|
3651
|
+
* H is replaced with equivalent numbers in the range of the 360-0 that is out of range.
|
|
3652
|
+
* Cannot compute, including alpha.
|
|
3653
|
+
*
|
|
3654
|
+
* @ Param h hue (Hue) number that indicates (to 360-0)
|
|
3655
|
+
* @ Param s the saturation (Saturation) shows the number (0.0 to 1.0)
|
|
3656
|
+
* @ Param v lightness (Value) indicates the number (0.0 to 1.0)
|
|
3657
|
+
* @ Return RGB values into a number[] of [R, G, B]
|
|
3658
|
+
**/
|
|
3659
|
+
declare function HSVtoRGB(h: number, s: number, v: number): [number, number, number];
|
|
3660
|
+
|
|
3661
|
+
/** Console palette for the Unreal/Cirrus message log. */
|
|
3662
|
+
declare const COLOR_CODES: {
|
|
3663
|
+
readonly TO_UNREAL: readonly ["#ffffff", "#005912", "UNREAL <-"];
|
|
3664
|
+
readonly TAP_LOG: readonly ["#ffff00", "#1976d2", " [TAPLOG]"];
|
|
3665
|
+
readonly FROM_UNREAL: readonly ["#ffff00", "#898989", "UNREAL ->"];
|
|
3666
|
+
readonly FROM_UNREAL_ERROR: readonly ["#ffffff", "#ff0000", "UNREAL ERROR ->"];
|
|
3667
|
+
readonly FROM_CIRRUS: readonly ["#ffffff", "#ef702b", "CIRRUS ->"];
|
|
3668
|
+
readonly FROM_CIRRUS_ERROR: readonly ["#ffffff", "#ff0000", "CIRRUS ->"];
|
|
3669
|
+
readonly TO_CIRRUS: readonly ["#ffffff", "#3c9738", "CIRRUS <-"];
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
declare function fitIntoRectangle(objectRect: Rect, areaRect: Rect, round?: boolean, fixedRatio?: number | null): Area;
|
|
3673
|
+
|
|
3674
|
+
declare function generateUuid(): string;
|
|
3675
|
+
|
|
3676
|
+
declare class Logger {
|
|
3677
|
+
static isDevMode: boolean;
|
|
3678
|
+
static colored(color: string, background: string, ...args: unknown[]): void;
|
|
3679
|
+
static log(...args: unknown[]): void;
|
|
3680
|
+
static warn(...args: unknown[]): void;
|
|
3681
|
+
static info(...args: unknown[]): void;
|
|
3682
|
+
static error(...args: unknown[]): void;
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3685
|
+
/** Clamps `value` between `min` and `max`; an inverted range yields `min`. */
|
|
3686
|
+
declare function clampf(min: number, max: number, value: number): number;
|
|
3687
|
+
/** Linear interpolation; `value` is clamped to the 0..1 range first. */
|
|
3688
|
+
declare function lerp(min: number, max: number, value: number): number;
|
|
3689
|
+
/**
|
|
3690
|
+
* The inverse of {@link lerp}: where `value` sits between `min` and `max`.
|
|
3691
|
+
*
|
|
3692
|
+
* Returns 1 when the range is empty, to avoid dividing by zero.
|
|
3693
|
+
*/
|
|
3694
|
+
declare function inverseLerp(min: number, max: number, value: number, clampToNormal?: boolean): number;
|
|
3695
|
+
/**
|
|
3696
|
+
* Floating-point equality within `Epsilon` (default `0.01`).
|
|
3697
|
+
*
|
|
3698
|
+
* Note the `||` fallback: passing `0` uses the default, it does not compare
|
|
3699
|
+
* exactly.
|
|
3700
|
+
*/
|
|
3701
|
+
declare function fpIsASameAsB(A: number, B: number, Epsilon?: number): boolean;
|
|
3702
|
+
|
|
3703
|
+
type TruthyTypesOf<T> = T extends false | '' | 0 | null | undefined ? never : T;
|
|
3704
|
+
type FalsyTypesOf<T> = T extends false | '' | 0 | null | undefined ? T : never;
|
|
3705
|
+
/**
|
|
3706
|
+
* Truthiness with the string forms folded in: `'false'`, `'undefined'` and
|
|
3707
|
+
* `'null'` are falsy here, which `Boolean` would call true.
|
|
3708
|
+
*/
|
|
3709
|
+
declare const Truthy: <T>(value: T) => value is TruthyTypesOf<T>;
|
|
3710
|
+
/** The inverse of {@link Truthy}. */
|
|
3711
|
+
declare const Falsy: <T>(value: T) => value is FalsyTypesOf<T>;
|
|
3712
|
+
|
|
3713
|
+
/**
|
|
3714
|
+
* A counting semaphore: `acquire()` resolves once a slot is free, `release()`
|
|
3715
|
+
* hands the slot to the longest-waiting caller.
|
|
3716
|
+
*/
|
|
3717
|
+
declare class Semaphore {
|
|
3718
|
+
private readonly maxConcurrency;
|
|
3719
|
+
private tasks;
|
|
3720
|
+
private currentCount;
|
|
3721
|
+
constructor(maxConcurrency: number);
|
|
3722
|
+
acquire(): Promise<void>;
|
|
3723
|
+
release(): void;
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3726
|
+
declare const tapLog: <T>(text: string, ...args: unknown[]) => ((source: Observable<T>) => Observable<T>);
|
|
3727
|
+
|
|
3728
|
+
export { AFKService, ALL_KEYBOARD_KEYS, AUTO_HIGH_RESOLUTION_IDLE_MS, AfkTimeoutModalComponent, AggregatorService, AnalyticsService, AnswerHandler, COLOR_CODES, CommandTelemetryService, ConfigHandler, ConsoleExtensionsService, ControlScheme, DATA_CHANNEL_CONNECTION_TIMEOUT, DEBOUNCE_TO_MANY_RESIZE_CALLS, DEFAULT_AFK_TIMEOUT, DEFAULT_AFK_TIMEOUT_PERIOD, DESTROY_DISCONNECT_REASONS, DevModeService, DisconnectReason, FULL_HD_HEIGHT, FULL_HD_WIDTH, Falsy, FileHandlerService, FileReceiverService, FpsMonitorService, FreezeFrameComponent, FreezeFrameService, HEXtoRGB, HSVtoRGB, IME_PROCESS_KEY, INNER_RETRY_LIMIT, INSTANCE_READY_TIMEOUT, IceCandidateHandler, ImageLoadingSrcComponent, InputOptions, InputService, InstanceReadyHandler, InstanceReservedHandler, IntroSrcComponent, LatencyTimings, LoadingProgressService, Logger, MINIMAL_FPS, MIN_CONTAINER_SIZE, MODIFIER_KEY_CODES, MessageType, MouseButton, MouseButtonsMask, OUTER_RETRY_DELAY, OnCloseHandler, OnErrorHandler, OnMessageHandler, OnOpenHandler, OrchestrationMessageTypes, POLLING_TIME, PlayerCountHandler, RECONNECT_CONFIG, REGION_PING_ACCURATE_SAMPLES, REGION_PING_BACKGROUND_REFRESH_DELAY_MS, REGION_PING_CACHE_KEY, REGION_PING_CACHE_TTL_MS, REGION_PING_WARMUP_DEADLINE_MS, RGBtoHEX, RGBtoHSV, RegionsPingService, SAME_SIZE_THRESHOLD, SCREEN_LOCKER_CONTAINER_ID, SIGNALLING_PERCENT_VALUE, SSInfoHandler, STREAMING_AUDIO_ID, STREAMING_VIDEO_ID, SafePipe, Semaphore, SignallingService, StatGraphComponent, StreamAdoptionService, StreamStatusTelemetryService, StreamStatusTelemetryService2, SubService, ToClientMessage, Truthy, UnrealAfkSlotDirective, UnrealCallbackService, UnrealCommunicatorService, UnrealEffects, UnrealKeyCode, UnrealResumeSlotDirective, UnrealSceneComponent, UnrealStatusMessage, UnrealStatusSlotDirective, VideoService, VideoStatsComponent, WSCloseCode_CIRRUS_ABNORMAL_CLOSURE, WSCloseCode_CIRRUS_MAX_PLAYERS_ERROR, WSCloseCode_CIRRUS_PLAYER_DISCONNECTED, WSCloseCode_CIRRUS_STREAMER_KIKED_PLAYER, WSCloseCode_FORCE_CIRRUS_CLOSE, WSCloseCode_NORMAL_AFK_TIMEOUT, WSCloseCode_NORMAL_CLOSURE, WSCloseCode_NORMAL_MANUAL_DISCONNECT, WSCloseCode_UNKNOWN, WSCloseCodes, WS_OPEN_STATE, WS_RETRY_PER_INSTANCE, WS_TIMEOUT, WebRtcPlayerService, WebrtcErrorModalComponent, abortEstablishingConnection, answerSent, changeStatusMainVideoOnScene, changeStreamResolutionAction, clampf, commandCompleted, commandStarted, dataChannelConnected, dataChannelReady, decodeData, destroyRemoteConnections, destroyUnrealScene, disconnectStream, dispatchResize, dropConnection, dropDC, dropPC, fitIntoRectangle, floatToPercents, floatToSmoothPercents, forceResizeViewport, fpIsASameAsB, fromResizeObserver, generateUuid, getActiveUrl, getCanvasCached, getImageFromVideoStream, getResizeStudioValues, getResizeValuesUniversal, getRtcErrorMessage, getSnapshot, iceConnectionFailed, initSignalling, instanceReady, inverseLerp, isAppOwned, isMetaboxMode, keepMaxUntilReset, lerp, makeEven, pollingEnded, pollingStarted, provideUnrealModule, provideUnrealState, qpToQuality, reconnectPeer, reconnectPeerFailed, reconnectPeerSuccess, regionPingFetchEnd, regionPingFetchStart, regionResolved, resetAfk, resetConfig, resetDataChannelForReconnect, resetIntroSrc, resetUserInactivityTimeout, resetWarnTimeout, resolveSkin, saveAnalyticsEvent, selectCirrusConnectionId, selectClientAndViewIds, selectCommandProgress, selectFreezeFrameCombinedDataUrl, selectFreezeFrameDataUrl, selectFreezeFrameDataUrlFromVideo, selectFreezeFrameProgressMessageFromVideo, selectIsAutostart, selectIsExistMatchUrls, selectIsFreezeFrameLoading, selectIsFullyConnected, selectIsLoaderScreenVisible, selectIsVideoPlayingAndDataChannelConnected, selectShowLoader, selectShowReconnectPopup, selectSignalingParameters, selectStreamConfig, selectTotalProgress, selectUserInactivityDetected, selectWarnTimeout, setAfkTimerCountdown, setAfkTimerHide, setAfkTimerVisible, setAwsInstance, setCirrusConnected, setCirrusDisconnected, setConfig, setEstablishingConnection, setFreezeFrame, setFreezeFrameFromVideo, setIntroImageSrc, setIntroVideoSrc, setLoadingImageSrc, setLoopBackCommandIsCompleted, setMaxFps, setOrchestrationContext, setOrchestrationMessage, setOrchestrationParameters, setOrchestrationProgress, setSignalingName, setStatusMessage, setStatusPercentSignallingServer, setStreamClientCompanyId, setStreamViewId, setUnrealPlaywrightConfig, setUserInactivityTimeout, setViewportNotReady, setViewportReady, showLoadingProgress, showResumeStreamPopup, showUnrealErrorMessage, showUserInactivityTimeoutPopup, signalingRetryAttempted, startStream, streamAdopted, tapLog, trackMixpanelEvent, trackTelemetryData, uint8ToBase64, unrealCommandCallback, unrealFeature, unrealReducer, updateCirrusInfo, videoAdaptedToContainer, videoStreamInitialized };
|
|
3601
3729
|
export type { AggregatedStat, AnySignalingMessage, AppOwnedStream, Area, AwsInstance, BootstrapInfo, CandidateMessage, CirrusRequestKind, CloseReason, CommandInProgress, ConfigMessage, ConnectionError, ControlSchemeValues, Coords, DisconnectReasonType, EmittedMilestone, EventId, FpsLowData, FreezeFrameMessage, IKeyCode, IKeyCodeName, IKeyName, ImageOutputValues, InboundVideoStats, InputProps, InstanceReady, InstanceReserved, InterruptClientStream, ListStreamersMessage, MessageBase, MessageTypeValues, OrchestrationErrorMessage, OrchestrationMessageType, P2PEstablishedMessage, ParkedStream, PhaseEndedData, PhaseOverlay, PhaseParam, PlayerCountMessage, PollingOrchestrationMessage, Quality, QualityAnomalyData, ReceivedFile, Rect, RequestStream, ResourceBucket, ResourceTotals, SSInfo, SampleData, SelectedIceCandidatePair, SessionEndReason, SessionEndedData, SessionStartedData, SignalingData, SignalingMessageHandler, SignalingMessageMap, SignalingRetryData, SignalingRetryKind, Size, SlowResource, StreamConfig, StreamRequestContext, StreamResolutionProps, StreamTelemetryEvent, StreamTelemetryEventMap, StreamTelemetryEventName, StreamTelemetryLifecycleData, StreamTelemetryLifecycleEventName, StreamTelemetryTrackData, StreamerListMessage, TelemetryEventEnvelope, TelemetryLifecycleEnvelope, TelemetryType, UnknownFields, UnrealAfkSlotContext, UnrealCallbackDescriptor, UnrealCallbackEventMap, UnrealCallbackJson, UnrealCallbackJsonWrapped, UnrealResumeSlotContext, UnrealSlotTemplateContext, UnrealState, UnrealStatusSlotContext, UnrealUiClasses, UnrealUiPart, WSCloseCodesValues, WindowAggregate };
|