@epicgames-ps/lib-pixelstreamingfrontend-ue5.5 0.2.1 → 0.3.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/dist/commonjs/AFK/AFKController.js +110 -0
- package/dist/commonjs/AFK/AFKController.js.map +1 -0
- package/dist/commonjs/Config/Config.js +560 -0
- package/dist/commonjs/Config/Config.js.map +1 -0
- package/dist/commonjs/Config/SettingBase.js +99 -0
- package/dist/commonjs/Config/SettingBase.js.map +1 -0
- package/dist/commonjs/Config/SettingFlag.js +50 -0
- package/dist/commonjs/Config/SettingFlag.js.map +1 -0
- package/dist/commonjs/Config/SettingNumber.js +84 -0
- package/dist/commonjs/Config/SettingNumber.js.map +1 -0
- package/dist/commonjs/Config/SettingOption.js +85 -0
- package/dist/commonjs/Config/SettingOption.js.map +1 -0
- package/dist/commonjs/Config/SettingText.js +43 -0
- package/dist/commonjs/Config/SettingText.js.map +1 -0
- package/dist/commonjs/DataChannel/DataChannelController.js +107 -0
- package/dist/commonjs/DataChannel/DataChannelController.js.map +1 -0
- package/dist/commonjs/DataChannel/DataChannelLatencyTestController.js +95 -0
- package/dist/commonjs/DataChannel/DataChannelLatencyTestController.js.map +1 -0
- package/dist/commonjs/DataChannel/DataChannelLatencyTestResults.js +19 -0
- package/dist/commonjs/DataChannel/DataChannelLatencyTestResults.js.map +1 -0
- package/dist/commonjs/DataChannel/DataChannelSender.js +44 -0
- package/dist/commonjs/DataChannel/DataChannelSender.js.map +1 -0
- package/dist/commonjs/DataChannel/InitialSettings.js +42 -0
- package/dist/commonjs/DataChannel/InitialSettings.js.map +1 -0
- package/dist/commonjs/DataChannel/LatencyTestResults.js +61 -0
- package/dist/commonjs/DataChannel/LatencyTestResults.js.map +1 -0
- package/dist/commonjs/FreezeFrame/FreezeFrame.js +94 -0
- package/dist/commonjs/FreezeFrame/FreezeFrame.js.map +1 -0
- package/dist/commonjs/FreezeFrame/FreezeFrameController.js +96 -0
- package/dist/commonjs/FreezeFrame/FreezeFrameController.js.map +1 -0
- package/dist/commonjs/Inputs/GamepadController.js +189 -0
- package/dist/commonjs/Inputs/GamepadController.js.map +1 -0
- package/dist/commonjs/Inputs/GamepadTypes.js +22 -0
- package/dist/commonjs/Inputs/GamepadTypes.js.map +1 -0
- package/dist/commonjs/Inputs/IInputController.js +3 -0
- package/dist/commonjs/Inputs/IInputController.js.map +1 -0
- package/dist/commonjs/Inputs/InputClassesFactory.js +97 -0
- package/dist/commonjs/Inputs/InputClassesFactory.js.map +1 -0
- package/dist/commonjs/Inputs/KeyCodes.js +113 -0
- package/dist/commonjs/Inputs/KeyCodes.js.map +1 -0
- package/dist/commonjs/Inputs/KeyboardController.js +138 -0
- package/dist/commonjs/Inputs/KeyboardController.js.map +1 -0
- package/dist/commonjs/Inputs/MouseButtons.js +29 -0
- package/dist/commonjs/Inputs/MouseButtons.js.map +1 -0
- package/dist/commonjs/Inputs/MouseController.js +98 -0
- package/dist/commonjs/Inputs/MouseController.js.map +1 -0
- package/dist/commonjs/Inputs/MouseControllerHovering.js +94 -0
- package/dist/commonjs/Inputs/MouseControllerHovering.js.map +1 -0
- package/dist/commonjs/Inputs/MouseControllerLocked.js +154 -0
- package/dist/commonjs/Inputs/MouseControllerLocked.js.map +1 -0
- package/dist/commonjs/Inputs/SpecialKeyCodes.js +20 -0
- package/dist/commonjs/Inputs/SpecialKeyCodes.js.map +1 -0
- package/dist/commonjs/Inputs/TouchController.js +124 -0
- package/dist/commonjs/Inputs/TouchController.js.map +1 -0
- package/dist/commonjs/Inputs/TouchControllerFake.js +92 -0
- package/dist/commonjs/Inputs/TouchControllerFake.js.map +1 -0
- package/dist/commonjs/Inputs/XRGamepadController.js +125 -0
- package/dist/commonjs/Inputs/XRGamepadController.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/AggregatedStats.js +253 -0
- package/dist/commonjs/PeerConnectionController/AggregatedStats.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/CandidatePairStats.js +11 -0
- package/dist/commonjs/PeerConnectionController/CandidatePairStats.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/CandidateStat.js +11 -0
- package/dist/commonjs/PeerConnectionController/CandidateStat.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/CodecStats.js +11 -0
- package/dist/commonjs/PeerConnectionController/CodecStats.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/DataChannelStats.js +11 -0
- package/dist/commonjs/PeerConnectionController/DataChannelStats.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/InboundRTPStats.js +23 -0
- package/dist/commonjs/PeerConnectionController/InboundRTPStats.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/InboundTrackStats.js +11 -0
- package/dist/commonjs/PeerConnectionController/InboundTrackStats.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/OutBoundRTPStats.js +17 -0
- package/dist/commonjs/PeerConnectionController/OutBoundRTPStats.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/PeerConnectionController.js +585 -0
- package/dist/commonjs/PeerConnectionController/PeerConnectionController.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/SessionStats.js +11 -0
- package/dist/commonjs/PeerConnectionController/SessionStats.js.map +1 -0
- package/dist/commonjs/PeerConnectionController/StreamStats.js +11 -0
- package/dist/commonjs/PeerConnectionController/StreamStats.js.map +1 -0
- package/dist/commonjs/PixelStreaming/PixelStreaming.js +608 -0
- package/dist/commonjs/PixelStreaming/PixelStreaming.js.map +1 -0
- package/dist/commonjs/UI/OnScreenKeyboard.js +83 -0
- package/dist/commonjs/UI/OnScreenKeyboard.js.map +1 -0
- package/dist/commonjs/UeInstanceMessage/ResponseController.js +39 -0
- package/dist/commonjs/UeInstanceMessage/ResponseController.js.map +1 -0
- package/dist/commonjs/UeInstanceMessage/SendMessageController.js +121 -0
- package/dist/commonjs/UeInstanceMessage/SendMessageController.js.map +1 -0
- package/dist/commonjs/UeInstanceMessage/StreamMessageController.js +211 -0
- package/dist/commonjs/UeInstanceMessage/StreamMessageController.js.map +1 -0
- package/dist/commonjs/UeInstanceMessage/ToStreamerMessagesController.js +50 -0
- package/dist/commonjs/UeInstanceMessage/ToStreamerMessagesController.js.map +1 -0
- package/dist/commonjs/Util/EventEmitter.js +387 -0
- package/dist/commonjs/Util/EventEmitter.js.map +1 -0
- package/dist/commonjs/Util/FileUtil.js +109 -0
- package/dist/commonjs/Util/FileUtil.js.map +1 -0
- package/dist/commonjs/Util/IURLSearchParams.js +26 -0
- package/dist/commonjs/Util/IURLSearchParams.js.map +1 -0
- package/dist/commonjs/Util/InputCoordTranslator.js +50 -0
- package/dist/commonjs/Util/InputCoordTranslator.js.map +1 -0
- package/dist/commonjs/Util/RTCUtils.js +41 -0
- package/dist/commonjs/Util/RTCUtils.js.map +1 -0
- package/dist/commonjs/VideoPlayer/StreamController.js +68 -0
- package/dist/commonjs/VideoPlayer/StreamController.js.map +1 -0
- package/dist/commonjs/VideoPlayer/VideoPlayer.js +178 -0
- package/dist/commonjs/VideoPlayer/VideoPlayer.js.map +1 -0
- package/dist/commonjs/WebRtcPlayer/WebRtcPlayerController.js +1224 -0
- package/dist/commonjs/WebRtcPlayer/WebRtcPlayerController.js.map +1 -0
- package/dist/commonjs/WebXR/WebXRController.js +361 -0
- package/dist/commonjs/WebXR/WebXRController.js.map +1 -0
- package/dist/commonjs/pixelstreamingfrontend.js +71 -0
- package/dist/commonjs/pixelstreamingfrontend.js.map +1 -0
- package/dist/esm/AFK/AFKController.js +106 -0
- package/dist/esm/AFK/AFKController.js.map +1 -0
- package/dist/esm/Config/Config.js +552 -0
- package/dist/esm/Config/Config.js.map +1 -0
- package/dist/esm/Config/SettingBase.js +95 -0
- package/dist/esm/Config/SettingBase.js.map +1 -0
- package/dist/esm/Config/SettingFlag.js +46 -0
- package/dist/esm/Config/SettingFlag.js.map +1 -0
- package/dist/esm/Config/SettingNumber.js +80 -0
- package/dist/esm/Config/SettingNumber.js.map +1 -0
- package/dist/esm/Config/SettingOption.js +81 -0
- package/dist/esm/Config/SettingOption.js.map +1 -0
- package/dist/esm/Config/SettingText.js +39 -0
- package/dist/esm/Config/SettingText.js.map +1 -0
- package/dist/esm/DataChannel/DataChannelController.js +103 -0
- package/dist/esm/DataChannel/DataChannelController.js.map +1 -0
- package/dist/esm/DataChannel/DataChannelLatencyTestController.js +91 -0
- package/dist/esm/DataChannel/DataChannelLatencyTestController.js.map +1 -0
- package/dist/esm/DataChannel/DataChannelLatencyTestResults.js +15 -0
- package/dist/esm/DataChannel/DataChannelLatencyTestResults.js.map +1 -0
- package/dist/esm/DataChannel/DataChannelSender.js +40 -0
- package/dist/esm/DataChannel/DataChannelSender.js.map +1 -0
- package/dist/esm/DataChannel/InitialSettings.js +35 -0
- package/dist/esm/DataChannel/InitialSettings.js.map +1 -0
- package/dist/esm/DataChannel/LatencyTestResults.js +57 -0
- package/dist/esm/DataChannel/LatencyTestResults.js.map +1 -0
- package/dist/esm/FreezeFrame/FreezeFrame.js +90 -0
- package/dist/esm/FreezeFrame/FreezeFrame.js.map +1 -0
- package/dist/esm/FreezeFrame/FreezeFrameController.js +92 -0
- package/dist/esm/FreezeFrame/FreezeFrameController.js.map +1 -0
- package/dist/esm/Inputs/GamepadController.js +185 -0
- package/dist/esm/Inputs/GamepadController.js.map +1 -0
- package/dist/esm/Inputs/GamepadTypes.js +18 -0
- package/dist/esm/Inputs/GamepadTypes.js.map +1 -0
- package/dist/esm/Inputs/IInputController.js +2 -0
- package/dist/esm/Inputs/IInputController.js.map +1 -0
- package/dist/esm/Inputs/InputClassesFactory.js +92 -0
- package/dist/esm/Inputs/InputClassesFactory.js.map +1 -0
- package/dist/esm/Inputs/KeyCodes.js +110 -0
- package/dist/esm/Inputs/KeyCodes.js.map +1 -0
- package/dist/esm/Inputs/KeyboardController.js +134 -0
- package/dist/esm/Inputs/KeyboardController.js.map +1 -0
- package/dist/esm/Inputs/MouseButtons.js +24 -0
- package/dist/esm/Inputs/MouseButtons.js.map +1 -0
- package/dist/esm/Inputs/MouseController.js +94 -0
- package/dist/esm/Inputs/MouseController.js.map +1 -0
- package/dist/esm/Inputs/MouseControllerHovering.js +90 -0
- package/dist/esm/Inputs/MouseControllerHovering.js.map +1 -0
- package/dist/esm/Inputs/MouseControllerLocked.js +150 -0
- package/dist/esm/Inputs/MouseControllerLocked.js.map +1 -0
- package/dist/esm/Inputs/SpecialKeyCodes.js +16 -0
- package/dist/esm/Inputs/SpecialKeyCodes.js.map +1 -0
- package/dist/esm/Inputs/TouchController.js +120 -0
- package/dist/esm/Inputs/TouchController.js.map +1 -0
- package/dist/esm/Inputs/TouchControllerFake.js +88 -0
- package/dist/esm/Inputs/TouchControllerFake.js.map +1 -0
- package/dist/esm/Inputs/XRGamepadController.js +121 -0
- package/dist/esm/Inputs/XRGamepadController.js.map +1 -0
- package/dist/esm/PeerConnectionController/AggregatedStats.js +249 -0
- package/dist/esm/PeerConnectionController/AggregatedStats.js.map +1 -0
- package/dist/esm/PeerConnectionController/CandidatePairStats.js +7 -0
- package/dist/esm/PeerConnectionController/CandidatePairStats.js.map +1 -0
- package/dist/esm/PeerConnectionController/CandidateStat.js +7 -0
- package/dist/esm/PeerConnectionController/CandidateStat.js.map +1 -0
- package/dist/esm/PeerConnectionController/CodecStats.js +7 -0
- package/dist/esm/PeerConnectionController/CodecStats.js.map +1 -0
- package/dist/esm/PeerConnectionController/DataChannelStats.js +7 -0
- package/dist/esm/PeerConnectionController/DataChannelStats.js.map +1 -0
- package/dist/esm/PeerConnectionController/InboundRTPStats.js +17 -0
- package/dist/esm/PeerConnectionController/InboundRTPStats.js.map +1 -0
- package/dist/esm/PeerConnectionController/InboundTrackStats.js +7 -0
- package/dist/esm/PeerConnectionController/InboundTrackStats.js.map +1 -0
- package/dist/esm/PeerConnectionController/OutBoundRTPStats.js +12 -0
- package/dist/esm/PeerConnectionController/OutBoundRTPStats.js.map +1 -0
- package/dist/esm/PeerConnectionController/PeerConnectionController.js +581 -0
- package/dist/esm/PeerConnectionController/PeerConnectionController.js.map +1 -0
- package/dist/esm/PeerConnectionController/SessionStats.js +7 -0
- package/dist/esm/PeerConnectionController/SessionStats.js.map +1 -0
- package/dist/esm/PeerConnectionController/StreamStats.js +7 -0
- package/dist/esm/PeerConnectionController/StreamStats.js.map +1 -0
- package/dist/esm/PixelStreaming/PixelStreaming.js +604 -0
- package/dist/esm/PixelStreaming/PixelStreaming.js.map +1 -0
- package/dist/esm/UI/OnScreenKeyboard.js +79 -0
- package/dist/esm/UI/OnScreenKeyboard.js.map +1 -0
- package/dist/esm/UeInstanceMessage/ResponseController.js +35 -0
- package/dist/esm/UeInstanceMessage/ResponseController.js.map +1 -0
- package/dist/esm/UeInstanceMessage/SendMessageController.js +117 -0
- package/dist/esm/UeInstanceMessage/SendMessageController.js.map +1 -0
- package/dist/esm/UeInstanceMessage/StreamMessageController.js +206 -0
- package/dist/esm/UeInstanceMessage/StreamMessageController.js.map +1 -0
- package/dist/esm/UeInstanceMessage/ToStreamerMessagesController.js +46 -0
- package/dist/esm/UeInstanceMessage/ToStreamerMessagesController.js.map +1 -0
- package/dist/esm/Util/EventEmitter.js +346 -0
- package/dist/esm/Util/EventEmitter.js.map +1 -0
- package/dist/esm/Util/FileUtil.js +104 -0
- package/dist/esm/Util/FileUtil.js.map +1 -0
- package/dist/esm/Util/IURLSearchParams.js +22 -0
- package/dist/esm/Util/IURLSearchParams.js.map +1 -0
- package/dist/esm/Util/InputCoordTranslator.js +46 -0
- package/dist/esm/Util/InputCoordTranslator.js.map +1 -0
- package/dist/esm/Util/RTCUtils.js +37 -0
- package/dist/esm/Util/RTCUtils.js.map +1 -0
- package/dist/esm/VideoPlayer/StreamController.js +64 -0
- package/dist/esm/VideoPlayer/StreamController.js.map +1 -0
- package/dist/esm/VideoPlayer/VideoPlayer.js +174 -0
- package/dist/esm/VideoPlayer/VideoPlayer.js.map +1 -0
- package/dist/esm/WebRtcPlayer/WebRtcPlayerController.js +1220 -0
- package/dist/esm/WebRtcPlayer/WebRtcPlayerController.js.map +1 -0
- package/dist/esm/WebXR/WebXRController.js +357 -0
- package/dist/esm/WebXR/WebXRController.js.map +1 -0
- package/dist/esm/pixelstreamingfrontend.js +25 -0
- package/dist/esm/pixelstreamingfrontend.js.map +1 -0
- package/{types → dist/types}/AFK/AFKController.d.ts +38 -38
- package/{types → dist/types}/Config/Config.d.ts +220 -220
- package/{types → dist/types}/Config/SettingBase.d.ts +43 -43
- package/{types → dist/types}/Config/SettingFlag.d.ts +24 -24
- package/{types → dist/types}/Config/SettingNumber.d.ts +41 -41
- package/{types → dist/types}/Config/SettingOption.d.ts +41 -34
- package/{types → dist/types}/Config/SettingText.d.ts +21 -21
- package/{types → dist/types}/DataChannel/DataChannelController.d.ts +59 -59
- package/{types → dist/types}/DataChannel/DataChannelLatencyTestController.d.ts +25 -26
- package/{types → dist/types}/DataChannel/DataChannelLatencyTestResults.d.ts +46 -46
- package/{types → dist/types}/DataChannel/DataChannelSender.d.ts +21 -21
- package/{types → dist/types}/DataChannel/InitialSettings.d.ts +44 -44
- package/{types → dist/types}/DataChannel/LatencyTestResults.d.ts +31 -31
- package/{types → dist/types}/FreezeFrame/FreezeFrame.d.ts +36 -36
- package/{types → dist/types}/FreezeFrame/FreezeFrameController.d.ts +37 -37
- package/{types → dist/types}/Inputs/GamepadController.d.ts +61 -61
- package/{types → dist/types}/Inputs/GamepadTypes.d.ts +15 -15
- package/{types → dist/types}/Inputs/IInputController.d.ts +16 -16
- package/{types → dist/types}/Inputs/InputClassesFactory.d.ts +53 -53
- package/{types → dist/types}/Inputs/KeyCodes.d.ts +5 -5
- package/{types → dist/types}/Inputs/KeyboardController.d.ts +34 -34
- package/{types → dist/types}/Inputs/MouseButtons.d.ts +22 -22
- package/{types → dist/types}/Inputs/MouseController.d.ts +40 -40
- package/{types → dist/types}/Inputs/MouseControllerHovering.d.ts +26 -26
- package/{types → dist/types}/Inputs/MouseControllerLocked.d.ts +31 -31
- package/{types → dist/types}/Inputs/SpecialKeyCodes.d.ts +14 -14
- package/{types → dist/types}/Inputs/TouchController.d.ts +28 -28
- package/{types → dist/types}/Inputs/TouchControllerFake.d.ts +29 -29
- package/{types → dist/types}/Inputs/XRGamepadController.d.ts +15 -15
- package/{types → dist/types}/PeerConnectionController/AggregatedStats.d.ts +82 -84
- package/{types → dist/types}/PeerConnectionController/CandidatePairStats.d.ts +22 -22
- package/{types → dist/types}/PeerConnectionController/CandidateStat.d.ts +13 -13
- package/{types → dist/types}/PeerConnectionController/CodecStats.d.ts +14 -14
- package/{types → dist/types}/PeerConnectionController/DataChannelStats.d.ts +15 -15
- package/{types → dist/types}/PeerConnectionController/InboundRTPStats.d.ts +141 -141
- package/{types → dist/types}/PeerConnectionController/InboundTrackStats.d.ts +32 -32
- package/{types → dist/types}/PeerConnectionController/OutBoundRTPStats.d.ts +23 -23
- package/{types → dist/types}/PeerConnectionController/PeerConnectionController.d.ts +143 -143
- package/{types → dist/types}/PeerConnectionController/SessionStats.d.ts +8 -8
- package/{types → dist/types}/PeerConnectionController/StreamStats.d.ts +9 -9
- package/{types → dist/types}/PixelStreaming/PixelStreaming.d.ts +271 -271
- package/{types → dist/types}/UI/OnScreenKeyboard.d.ts +30 -30
- package/{types → dist/types}/UeInstanceMessage/ResponseController.d.ts +19 -19
- package/{types → dist/types}/UeInstanceMessage/SendMessageController.d.ts +18 -18
- package/{types → dist/types}/UeInstanceMessage/StreamMessageController.d.ts +29 -29
- package/{types → dist/types}/UeInstanceMessage/ToStreamerMessagesController.d.ts +32 -32
- package/{types → dist/types}/Util/EventEmitter.d.ts +429 -429
- package/{types → dist/types}/Util/FileUtil.d.ts +32 -32
- package/{types → dist/types}/Util/IURLSearchParams.d.ts +9 -9
- package/{types → dist/types}/Util/InputCoordTranslator.d.ts +29 -29
- package/{types → dist/types}/Util/RTCUtils.d.ts +8 -8
- package/{types → dist/types}/VideoPlayer/StreamController.d.ts +22 -22
- package/{types → dist/types}/VideoPlayer/VideoPlayer.d.ts +78 -78
- package/{types → dist/types}/WebRtcPlayer/WebRtcPlayerController.d.ts +379 -379
- package/{types → dist/types}/WebXR/WebXRController.d.ts +42 -42
- package/{types → dist/types}/pixelstreamingfrontend.d.ts +23 -22
- package/package.json +10 -14
- package/readme.md +9 -1
- package/src/Config/Config.ts +74 -25
- package/src/Config/SettingNumber.ts +13 -5
- package/src/Config/SettingOption.ts +31 -13
- package/src/DataChannel/DataChannelLatencyTestController.ts +6 -6
- package/src/PeerConnectionController/AggregatedStats.ts +26 -27
- package/src/PeerConnectionController/PeerConnectionController.ts +38 -9
- package/src/WebRtcPlayer/WebRtcPlayerController.ts +1 -1
- package/src/pixelstreamingfrontend.ts +7 -1
- package/tsconfig.cjs.json +9 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +4 -6
- package/dist/lib-pixelstreamingfrontend.esm.js +0 -1
- package/dist/lib-pixelstreamingfrontend.js +0 -1
- package/webpack.common.js +0 -35
- package/webpack.dev.js +0 -35
- package/webpack.prod.js +0 -36
|
@@ -1,220 +1,220 @@
|
|
|
1
|
-
import { SettingFlag } from './SettingFlag';
|
|
2
|
-
import { SettingNumber } from './SettingNumber';
|
|
3
|
-
import { SettingText } from './SettingText';
|
|
4
|
-
import { SettingOption } from './SettingOption';
|
|
5
|
-
import { EventEmitter } from '../Util/EventEmitter';
|
|
6
|
-
/**
|
|
7
|
-
* A collection of flags that can be toggled and are core to all Pixel Streaming experiences.
|
|
8
|
-
* These are used in the `Config.Flags` map.
|
|
9
|
-
*/
|
|
10
|
-
export declare class Flags {
|
|
11
|
-
static AutoConnect: "AutoConnect";
|
|
12
|
-
static AutoPlayVideo: "AutoPlayVideo";
|
|
13
|
-
static AFKDetection: "TimeoutIfIdle";
|
|
14
|
-
static HoveringMouseMode: "HoveringMouse";
|
|
15
|
-
static ForceMonoAudio: "ForceMonoAudio";
|
|
16
|
-
static ForceTURN: "ForceTURN";
|
|
17
|
-
static FakeMouseWithTouches: "FakeMouseWithTouches";
|
|
18
|
-
static IsQualityController: "ControlsQuality";
|
|
19
|
-
static MatchViewportResolution: "MatchViewportRes";
|
|
20
|
-
static StartVideoMuted: "StartVideoMuted";
|
|
21
|
-
static SuppressBrowserKeys: "SuppressBrowserKeys";
|
|
22
|
-
static UseMic: "UseMic";
|
|
23
|
-
static UseCamera: "UseCamera";
|
|
24
|
-
static KeyboardInput: "KeyboardInput";
|
|
25
|
-
static MouseInput: "MouseInput";
|
|
26
|
-
static TouchInput: "TouchInput";
|
|
27
|
-
static GamepadInput: "GamepadInput";
|
|
28
|
-
static XRControllerInput: "XRControllerInput";
|
|
29
|
-
static WaitForStreamer: "WaitForStreamer";
|
|
30
|
-
static HideUI: "HideUI";
|
|
31
|
-
}
|
|
32
|
-
export type FlagsKeys = Exclude<keyof typeof Flags, 'prototype'>;
|
|
33
|
-
export type FlagsIds = (typeof Flags)[FlagsKeys];
|
|
34
|
-
/**
|
|
35
|
-
* A collection of numeric parameters that are core to all Pixel Streaming experiences.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
export declare class NumericParameters {
|
|
39
|
-
static AFKTimeoutSecs: "AFKTimeout";
|
|
40
|
-
static AFKCountdownSecs: "AFKCountdown";
|
|
41
|
-
static MinQP: "MinQP";
|
|
42
|
-
static MaxQP: "MaxQP";
|
|
43
|
-
static WebRTCFPS: "WebRTCFPS";
|
|
44
|
-
static WebRTCMinBitrate: "WebRTCMinBitrate";
|
|
45
|
-
static WebRTCMaxBitrate: "WebRTCMaxBitrate";
|
|
46
|
-
static MaxReconnectAttempts: "MaxReconnectAttempts";
|
|
47
|
-
static StreamerAutoJoinInterval: "StreamerAutoJoinInterval";
|
|
48
|
-
}
|
|
49
|
-
export type NumericParametersKeys = Exclude<keyof typeof NumericParameters, 'prototype'>;
|
|
50
|
-
export type NumericParametersIds = (typeof NumericParameters)[NumericParametersKeys];
|
|
51
|
-
/**
|
|
52
|
-
* A collection of textual parameters that are core to all Pixel Streaming experiences.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export declare class TextParameters {
|
|
56
|
-
static SignallingServerUrl: "ss";
|
|
57
|
-
}
|
|
58
|
-
export type TextParametersKeys = Exclude<keyof typeof TextParameters, 'prototype'>;
|
|
59
|
-
export type TextParametersIds = (typeof TextParameters)[TextParametersKeys];
|
|
60
|
-
/**
|
|
61
|
-
* A collection of enum based parameters that are core to all Pixel Streaming experiences.
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
export declare class OptionParameters {
|
|
65
|
-
static PreferredCodec: "PreferredCodec";
|
|
66
|
-
static StreamerId: "StreamerId";
|
|
67
|
-
}
|
|
68
|
-
export type OptionParametersKeys = Exclude<keyof typeof OptionParameters, 'prototype'>;
|
|
69
|
-
export type OptionParametersIds = (typeof OptionParameters)[OptionParametersKeys];
|
|
70
|
-
/**
|
|
71
|
-
* Utility types for inferring data type based on setting ID
|
|
72
|
-
*/
|
|
73
|
-
export type OptionIds = FlagsIds | NumericParametersIds | TextParametersIds | OptionParametersIds;
|
|
74
|
-
export type OptionKeys<T> = T extends FlagsIds ? boolean : T extends NumericParametersIds ? number : T extends TextParametersIds ? string : T extends OptionParametersIds ? string : never;
|
|
75
|
-
export type AllSettings = {
|
|
76
|
-
[K in OptionIds]: OptionKeys<K>;
|
|
77
|
-
};
|
|
78
|
-
export interface ConfigParams {
|
|
79
|
-
/** Initial Pixel Streaming settings */
|
|
80
|
-
initialSettings?: Partial<AllSettings>;
|
|
81
|
-
/** If useUrlParams is set true, will read initial values from URL parameters and persist changed settings into URL */
|
|
82
|
-
useUrlParams?: boolean;
|
|
83
|
-
}
|
|
84
|
-
export declare class Config {
|
|
85
|
-
private flags;
|
|
86
|
-
private numericParameters;
|
|
87
|
-
private textParameters;
|
|
88
|
-
private optionParameters;
|
|
89
|
-
private _useUrlParams;
|
|
90
|
-
constructor(config?: ConfigParams);
|
|
91
|
-
/**
|
|
92
|
-
* True if reading configuration initial values from URL parameters, and
|
|
93
|
-
* persisting changes in URL when changed.
|
|
94
|
-
*/
|
|
95
|
-
get useUrlParams(): boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Populate the default settings for a Pixel Streaming application
|
|
98
|
-
*/
|
|
99
|
-
private populateDefaultSettings;
|
|
100
|
-
/**
|
|
101
|
-
* Add a callback to fire when the numeric setting is toggled.
|
|
102
|
-
* @param id The id of the flag.
|
|
103
|
-
* @param onChangedListener The callback to fire when the numeric value changes.
|
|
104
|
-
*/
|
|
105
|
-
_addOnNumericSettingChangedListener(id: NumericParametersIds, onChangedListener: (newValue: number) => void): void;
|
|
106
|
-
_addOnOptionSettingChangedListener(id: OptionParametersIds, onChangedListener: (newValue: string) => void): void;
|
|
107
|
-
/**
|
|
108
|
-
* @param id The id of the numeric setting we are interested in getting a value for.
|
|
109
|
-
* @returns The numeric value stored in the parameter with the passed id.
|
|
110
|
-
*/
|
|
111
|
-
getNumericSettingValue(id: NumericParametersIds): number;
|
|
112
|
-
/**
|
|
113
|
-
* @param id The id of the text setting we are interested in getting a value for.
|
|
114
|
-
* @returns The text value stored in the parameter with the passed id.
|
|
115
|
-
*/
|
|
116
|
-
getTextSettingValue(id: TextParametersIds): string;
|
|
117
|
-
/**
|
|
118
|
-
* Set number in the setting.
|
|
119
|
-
* @param id The id of the numeric setting we are interested in.
|
|
120
|
-
* @param value The numeric value to set.
|
|
121
|
-
*/
|
|
122
|
-
setNumericSetting(id: NumericParametersIds, value: number): void;
|
|
123
|
-
/**
|
|
124
|
-
* Add a callback to fire when the flag is toggled.
|
|
125
|
-
* @param id The id of the flag.
|
|
126
|
-
* @param onChangeListener The callback to fire when the value changes.
|
|
127
|
-
*/
|
|
128
|
-
_addOnSettingChangedListener(id: FlagsIds, onChangeListener: (newFlagValue: boolean) => void): void;
|
|
129
|
-
/**
|
|
130
|
-
* Add a callback to fire when the text is changed.
|
|
131
|
-
* @param id The id of the flag.
|
|
132
|
-
* @param onChangeListener The callback to fire when the value changes.
|
|
133
|
-
*/
|
|
134
|
-
_addOnTextSettingChangedListener(id: TextParametersIds, onChangeListener: (newTextValue: string) => void): void;
|
|
135
|
-
/**
|
|
136
|
-
* Get the option which has the given id.
|
|
137
|
-
* @param id The id of the option.
|
|
138
|
-
* @returns The SettingOption object matching id
|
|
139
|
-
*/
|
|
140
|
-
getSettingOption(id: OptionParametersIds): SettingOption;
|
|
141
|
-
/**
|
|
142
|
-
* Get the value of the configuration flag which has the given id.
|
|
143
|
-
* @param id The unique id for the flag.
|
|
144
|
-
* @returns True if the flag is enabled.
|
|
145
|
-
*/
|
|
146
|
-
isFlagEnabled(id: FlagsIds): boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Set flag to be enabled/disabled.
|
|
149
|
-
* @param id The id of the flag to toggle.
|
|
150
|
-
* @param flagEnabled True if the flag should be enabled.
|
|
151
|
-
*/
|
|
152
|
-
setFlagEnabled(id: FlagsIds, flagEnabled: boolean): void;
|
|
153
|
-
/**
|
|
154
|
-
* Set the text setting.
|
|
155
|
-
* @param id The id of the setting
|
|
156
|
-
* @param settingValue The value to set in the setting.
|
|
157
|
-
*/
|
|
158
|
-
setTextSetting(id: TextParametersIds, settingValue: string): void;
|
|
159
|
-
/**
|
|
160
|
-
* Set the option setting list of options.
|
|
161
|
-
* @param id The id of the setting
|
|
162
|
-
* @param settingOptions The values the setting could take
|
|
163
|
-
*/
|
|
164
|
-
setOptionSettingOptions(id: OptionParametersIds, settingOptions: Array<string>): void;
|
|
165
|
-
/**
|
|
166
|
-
* Set option enum settings selected option.
|
|
167
|
-
* @param id The id of the setting
|
|
168
|
-
* @param settingOptions The value to select out of all the options
|
|
169
|
-
*/
|
|
170
|
-
setOptionSettingValue(id: OptionParametersIds, settingValue: string): void;
|
|
171
|
-
/**
|
|
172
|
-
* Set the label for the flag.
|
|
173
|
-
* @param id The id of the flag.
|
|
174
|
-
* @param label The new label to use for the flag.
|
|
175
|
-
*/
|
|
176
|
-
setFlagLabel(id: FlagsIds, label: string): void;
|
|
177
|
-
/**
|
|
178
|
-
* Set a subset of all settings in one function call.
|
|
179
|
-
*
|
|
180
|
-
* @param settings A (partial) list of settings to set
|
|
181
|
-
*/
|
|
182
|
-
setSettings(settings: Partial<AllSettings>): void;
|
|
183
|
-
/**
|
|
184
|
-
* Get all settings
|
|
185
|
-
* @returns All setting values as an object with setting ids as keys
|
|
186
|
-
*/
|
|
187
|
-
getSettings(): Partial<AllSettings>;
|
|
188
|
-
/**
|
|
189
|
-
* Get all Flag settings as an array.
|
|
190
|
-
* @returns All SettingFlag objects
|
|
191
|
-
*/
|
|
192
|
-
getFlags(): Array<SettingFlag>;
|
|
193
|
-
/**
|
|
194
|
-
* Get all Text settings as an array.
|
|
195
|
-
* @returns All SettingText objects
|
|
196
|
-
*/
|
|
197
|
-
getTextSettings(): Array<SettingText>;
|
|
198
|
-
/**
|
|
199
|
-
* Get all Number settings as an array.
|
|
200
|
-
* @returns All SettingNumber objects
|
|
201
|
-
*/
|
|
202
|
-
getNumericSettings(): Array<SettingNumber>;
|
|
203
|
-
/**
|
|
204
|
-
* Get all Option settings as an array.
|
|
205
|
-
* @returns All SettingOption objects
|
|
206
|
-
*/
|
|
207
|
-
getOptionSettings(): Array<SettingOption>;
|
|
208
|
-
/**
|
|
209
|
-
* Emit events when settings change.
|
|
210
|
-
* @param eventEmitter
|
|
211
|
-
*/
|
|
212
|
-
_registerOnChangeEvents(eventEmitter: EventEmitter): void;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* The enum associated with the mouse being locked or hovering
|
|
216
|
-
*/
|
|
217
|
-
export declare enum ControlSchemeType {
|
|
218
|
-
LockedMouse = 0,
|
|
219
|
-
HoveringMouse = 1
|
|
220
|
-
}
|
|
1
|
+
import { SettingFlag } from './SettingFlag';
|
|
2
|
+
import { SettingNumber } from './SettingNumber';
|
|
3
|
+
import { SettingText } from './SettingText';
|
|
4
|
+
import { SettingOption } from './SettingOption';
|
|
5
|
+
import { EventEmitter } from '../Util/EventEmitter';
|
|
6
|
+
/**
|
|
7
|
+
* A collection of flags that can be toggled and are core to all Pixel Streaming experiences.
|
|
8
|
+
* These are used in the `Config.Flags` map.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Flags {
|
|
11
|
+
static AutoConnect: "AutoConnect";
|
|
12
|
+
static AutoPlayVideo: "AutoPlayVideo";
|
|
13
|
+
static AFKDetection: "TimeoutIfIdle";
|
|
14
|
+
static HoveringMouseMode: "HoveringMouse";
|
|
15
|
+
static ForceMonoAudio: "ForceMonoAudio";
|
|
16
|
+
static ForceTURN: "ForceTURN";
|
|
17
|
+
static FakeMouseWithTouches: "FakeMouseWithTouches";
|
|
18
|
+
static IsQualityController: "ControlsQuality";
|
|
19
|
+
static MatchViewportResolution: "MatchViewportRes";
|
|
20
|
+
static StartVideoMuted: "StartVideoMuted";
|
|
21
|
+
static SuppressBrowserKeys: "SuppressBrowserKeys";
|
|
22
|
+
static UseMic: "UseMic";
|
|
23
|
+
static UseCamera: "UseCamera";
|
|
24
|
+
static KeyboardInput: "KeyboardInput";
|
|
25
|
+
static MouseInput: "MouseInput";
|
|
26
|
+
static TouchInput: "TouchInput";
|
|
27
|
+
static GamepadInput: "GamepadInput";
|
|
28
|
+
static XRControllerInput: "XRControllerInput";
|
|
29
|
+
static WaitForStreamer: "WaitForStreamer";
|
|
30
|
+
static HideUI: "HideUI";
|
|
31
|
+
}
|
|
32
|
+
export type FlagsKeys = Exclude<keyof typeof Flags, 'prototype'>;
|
|
33
|
+
export type FlagsIds = (typeof Flags)[FlagsKeys];
|
|
34
|
+
/**
|
|
35
|
+
* A collection of numeric parameters that are core to all Pixel Streaming experiences.
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare class NumericParameters {
|
|
39
|
+
static AFKTimeoutSecs: "AFKTimeout";
|
|
40
|
+
static AFKCountdownSecs: "AFKCountdown";
|
|
41
|
+
static MinQP: "MinQP";
|
|
42
|
+
static MaxQP: "MaxQP";
|
|
43
|
+
static WebRTCFPS: "WebRTCFPS";
|
|
44
|
+
static WebRTCMinBitrate: "WebRTCMinBitrate";
|
|
45
|
+
static WebRTCMaxBitrate: "WebRTCMaxBitrate";
|
|
46
|
+
static MaxReconnectAttempts: "MaxReconnectAttempts";
|
|
47
|
+
static StreamerAutoJoinInterval: "StreamerAutoJoinInterval";
|
|
48
|
+
}
|
|
49
|
+
export type NumericParametersKeys = Exclude<keyof typeof NumericParameters, 'prototype'>;
|
|
50
|
+
export type NumericParametersIds = (typeof NumericParameters)[NumericParametersKeys];
|
|
51
|
+
/**
|
|
52
|
+
* A collection of textual parameters that are core to all Pixel Streaming experiences.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
export declare class TextParameters {
|
|
56
|
+
static SignallingServerUrl: "ss";
|
|
57
|
+
}
|
|
58
|
+
export type TextParametersKeys = Exclude<keyof typeof TextParameters, 'prototype'>;
|
|
59
|
+
export type TextParametersIds = (typeof TextParameters)[TextParametersKeys];
|
|
60
|
+
/**
|
|
61
|
+
* A collection of enum based parameters that are core to all Pixel Streaming experiences.
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare class OptionParameters {
|
|
65
|
+
static PreferredCodec: "PreferredCodec";
|
|
66
|
+
static StreamerId: "StreamerId";
|
|
67
|
+
}
|
|
68
|
+
export type OptionParametersKeys = Exclude<keyof typeof OptionParameters, 'prototype'>;
|
|
69
|
+
export type OptionParametersIds = (typeof OptionParameters)[OptionParametersKeys];
|
|
70
|
+
/**
|
|
71
|
+
* Utility types for inferring data type based on setting ID
|
|
72
|
+
*/
|
|
73
|
+
export type OptionIds = FlagsIds | NumericParametersIds | TextParametersIds | OptionParametersIds;
|
|
74
|
+
export type OptionKeys<T> = T extends FlagsIds ? boolean : T extends NumericParametersIds ? number : T extends TextParametersIds ? string : T extends OptionParametersIds ? string : never;
|
|
75
|
+
export type AllSettings = {
|
|
76
|
+
[K in OptionIds]: OptionKeys<K>;
|
|
77
|
+
};
|
|
78
|
+
export interface ConfigParams {
|
|
79
|
+
/** Initial Pixel Streaming settings */
|
|
80
|
+
initialSettings?: Partial<AllSettings>;
|
|
81
|
+
/** If useUrlParams is set true, will read initial values from URL parameters and persist changed settings into URL */
|
|
82
|
+
useUrlParams?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export declare class Config {
|
|
85
|
+
private flags;
|
|
86
|
+
private numericParameters;
|
|
87
|
+
private textParameters;
|
|
88
|
+
private optionParameters;
|
|
89
|
+
private _useUrlParams;
|
|
90
|
+
constructor(config?: ConfigParams);
|
|
91
|
+
/**
|
|
92
|
+
* True if reading configuration initial values from URL parameters, and
|
|
93
|
+
* persisting changes in URL when changed.
|
|
94
|
+
*/
|
|
95
|
+
get useUrlParams(): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Populate the default settings for a Pixel Streaming application
|
|
98
|
+
*/
|
|
99
|
+
private populateDefaultSettings;
|
|
100
|
+
/**
|
|
101
|
+
* Add a callback to fire when the numeric setting is toggled.
|
|
102
|
+
* @param id The id of the flag.
|
|
103
|
+
* @param onChangedListener The callback to fire when the numeric value changes.
|
|
104
|
+
*/
|
|
105
|
+
_addOnNumericSettingChangedListener(id: NumericParametersIds, onChangedListener: (newValue: number) => void): void;
|
|
106
|
+
_addOnOptionSettingChangedListener(id: OptionParametersIds, onChangedListener: (newValue: string) => void): void;
|
|
107
|
+
/**
|
|
108
|
+
* @param id The id of the numeric setting we are interested in getting a value for.
|
|
109
|
+
* @returns The numeric value stored in the parameter with the passed id.
|
|
110
|
+
*/
|
|
111
|
+
getNumericSettingValue(id: NumericParametersIds): number;
|
|
112
|
+
/**
|
|
113
|
+
* @param id The id of the text setting we are interested in getting a value for.
|
|
114
|
+
* @returns The text value stored in the parameter with the passed id.
|
|
115
|
+
*/
|
|
116
|
+
getTextSettingValue(id: TextParametersIds): string;
|
|
117
|
+
/**
|
|
118
|
+
* Set number in the setting.
|
|
119
|
+
* @param id The id of the numeric setting we are interested in.
|
|
120
|
+
* @param value The numeric value to set.
|
|
121
|
+
*/
|
|
122
|
+
setNumericSetting(id: NumericParametersIds, value: number): void;
|
|
123
|
+
/**
|
|
124
|
+
* Add a callback to fire when the flag is toggled.
|
|
125
|
+
* @param id The id of the flag.
|
|
126
|
+
* @param onChangeListener The callback to fire when the value changes.
|
|
127
|
+
*/
|
|
128
|
+
_addOnSettingChangedListener(id: FlagsIds, onChangeListener: (newFlagValue: boolean) => void): void;
|
|
129
|
+
/**
|
|
130
|
+
* Add a callback to fire when the text is changed.
|
|
131
|
+
* @param id The id of the flag.
|
|
132
|
+
* @param onChangeListener The callback to fire when the value changes.
|
|
133
|
+
*/
|
|
134
|
+
_addOnTextSettingChangedListener(id: TextParametersIds, onChangeListener: (newTextValue: string) => void): void;
|
|
135
|
+
/**
|
|
136
|
+
* Get the option which has the given id.
|
|
137
|
+
* @param id The id of the option.
|
|
138
|
+
* @returns The SettingOption object matching id
|
|
139
|
+
*/
|
|
140
|
+
getSettingOption(id: OptionParametersIds): SettingOption;
|
|
141
|
+
/**
|
|
142
|
+
* Get the value of the configuration flag which has the given id.
|
|
143
|
+
* @param id The unique id for the flag.
|
|
144
|
+
* @returns True if the flag is enabled.
|
|
145
|
+
*/
|
|
146
|
+
isFlagEnabled(id: FlagsIds): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Set flag to be enabled/disabled.
|
|
149
|
+
* @param id The id of the flag to toggle.
|
|
150
|
+
* @param flagEnabled True if the flag should be enabled.
|
|
151
|
+
*/
|
|
152
|
+
setFlagEnabled(id: FlagsIds, flagEnabled: boolean): void;
|
|
153
|
+
/**
|
|
154
|
+
* Set the text setting.
|
|
155
|
+
* @param id The id of the setting
|
|
156
|
+
* @param settingValue The value to set in the setting.
|
|
157
|
+
*/
|
|
158
|
+
setTextSetting(id: TextParametersIds, settingValue: string): void;
|
|
159
|
+
/**
|
|
160
|
+
* Set the option setting list of options.
|
|
161
|
+
* @param id The id of the setting
|
|
162
|
+
* @param settingOptions The values the setting could take
|
|
163
|
+
*/
|
|
164
|
+
setOptionSettingOptions(id: OptionParametersIds, settingOptions: Array<string>): void;
|
|
165
|
+
/**
|
|
166
|
+
* Set option enum settings selected option.
|
|
167
|
+
* @param id The id of the setting
|
|
168
|
+
* @param settingOptions The value to select out of all the options
|
|
169
|
+
*/
|
|
170
|
+
setOptionSettingValue(id: OptionParametersIds, settingValue: string): void;
|
|
171
|
+
/**
|
|
172
|
+
* Set the label for the flag.
|
|
173
|
+
* @param id The id of the flag.
|
|
174
|
+
* @param label The new label to use for the flag.
|
|
175
|
+
*/
|
|
176
|
+
setFlagLabel(id: FlagsIds, label: string): void;
|
|
177
|
+
/**
|
|
178
|
+
* Set a subset of all settings in one function call.
|
|
179
|
+
*
|
|
180
|
+
* @param settings A (partial) list of settings to set
|
|
181
|
+
*/
|
|
182
|
+
setSettings(settings: Partial<AllSettings>): void;
|
|
183
|
+
/**
|
|
184
|
+
* Get all settings
|
|
185
|
+
* @returns All setting values as an object with setting ids as keys
|
|
186
|
+
*/
|
|
187
|
+
getSettings(): Partial<AllSettings>;
|
|
188
|
+
/**
|
|
189
|
+
* Get all Flag settings as an array.
|
|
190
|
+
* @returns All SettingFlag objects
|
|
191
|
+
*/
|
|
192
|
+
getFlags(): Array<SettingFlag>;
|
|
193
|
+
/**
|
|
194
|
+
* Get all Text settings as an array.
|
|
195
|
+
* @returns All SettingText objects
|
|
196
|
+
*/
|
|
197
|
+
getTextSettings(): Array<SettingText>;
|
|
198
|
+
/**
|
|
199
|
+
* Get all Number settings as an array.
|
|
200
|
+
* @returns All SettingNumber objects
|
|
201
|
+
*/
|
|
202
|
+
getNumericSettings(): Array<SettingNumber>;
|
|
203
|
+
/**
|
|
204
|
+
* Get all Option settings as an array.
|
|
205
|
+
* @returns All SettingOption objects
|
|
206
|
+
*/
|
|
207
|
+
getOptionSettings(): Array<SettingOption>;
|
|
208
|
+
/**
|
|
209
|
+
* Emit events when settings change.
|
|
210
|
+
* @param eventEmitter
|
|
211
|
+
*/
|
|
212
|
+
_registerOnChangeEvents(eventEmitter: EventEmitter): void;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* The enum associated with the mouse being locked or hovering
|
|
216
|
+
*/
|
|
217
|
+
export declare enum ControlSchemeType {
|
|
218
|
+
LockedMouse = 0,
|
|
219
|
+
HoveringMouse = 1
|
|
220
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base class for a setting that has a text label and an arbitrary setting value it stores.
|
|
3
|
-
*/
|
|
4
|
-
export declare class SettingBase {
|
|
5
|
-
id: string;
|
|
6
|
-
description: string;
|
|
7
|
-
useUrlParams: boolean;
|
|
8
|
-
_urlParams: Record<string, string>;
|
|
9
|
-
_label: string;
|
|
10
|
-
_value: unknown;
|
|
11
|
-
onChange: (changedValue: unknown, setting: SettingBase) => void;
|
|
12
|
-
onChangeEmit: (changedValue: unknown) => void;
|
|
13
|
-
constructor(id: string, label: string, description: string, defaultSettingValue: unknown, defaultOnChangeListener?: (changedValue: unknown, setting: SettingBase) => void);
|
|
14
|
-
/**
|
|
15
|
-
* Set the label text for the setting.
|
|
16
|
-
* @param label setting label.
|
|
17
|
-
*/
|
|
18
|
-
set label(inLabel: string);
|
|
19
|
-
/**
|
|
20
|
-
* @returns The label text for the setting.
|
|
21
|
-
*/
|
|
22
|
-
get label(): string;
|
|
23
|
-
/**
|
|
24
|
-
* @return The setting's value.
|
|
25
|
-
*/
|
|
26
|
-
get value(): unknown;
|
|
27
|
-
/**
|
|
28
|
-
* Update the setting's stored value.
|
|
29
|
-
* @param inValue The new value for the setting.
|
|
30
|
-
*/
|
|
31
|
-
set value(inValue: unknown);
|
|
32
|
-
/**
|
|
33
|
-
* Persist the setting value in URL.
|
|
34
|
-
*/
|
|
35
|
-
updateURLParams(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Allows sub types to provide their value for the url search params.
|
|
38
|
-
*/
|
|
39
|
-
protected getValueAsString(): string;
|
|
40
|
-
private parseURLParams;
|
|
41
|
-
protected hasURLParam(name: string): boolean;
|
|
42
|
-
protected getURLParam(name: string): string;
|
|
43
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Base class for a setting that has a text label and an arbitrary setting value it stores.
|
|
3
|
+
*/
|
|
4
|
+
export declare class SettingBase {
|
|
5
|
+
id: string;
|
|
6
|
+
description: string;
|
|
7
|
+
useUrlParams: boolean;
|
|
8
|
+
_urlParams: Record<string, string>;
|
|
9
|
+
_label: string;
|
|
10
|
+
_value: unknown;
|
|
11
|
+
onChange: (changedValue: unknown, setting: SettingBase) => void;
|
|
12
|
+
onChangeEmit: (changedValue: unknown) => void;
|
|
13
|
+
constructor(id: string, label: string, description: string, defaultSettingValue: unknown, defaultOnChangeListener?: (changedValue: unknown, setting: SettingBase) => void);
|
|
14
|
+
/**
|
|
15
|
+
* Set the label text for the setting.
|
|
16
|
+
* @param label setting label.
|
|
17
|
+
*/
|
|
18
|
+
set label(inLabel: string);
|
|
19
|
+
/**
|
|
20
|
+
* @returns The label text for the setting.
|
|
21
|
+
*/
|
|
22
|
+
get label(): string;
|
|
23
|
+
/**
|
|
24
|
+
* @return The setting's value.
|
|
25
|
+
*/
|
|
26
|
+
get value(): unknown;
|
|
27
|
+
/**
|
|
28
|
+
* Update the setting's stored value.
|
|
29
|
+
* @param inValue The new value for the setting.
|
|
30
|
+
*/
|
|
31
|
+
set value(inValue: unknown);
|
|
32
|
+
/**
|
|
33
|
+
* Persist the setting value in URL.
|
|
34
|
+
*/
|
|
35
|
+
updateURLParams(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Allows sub types to provide their value for the url search params.
|
|
38
|
+
*/
|
|
39
|
+
protected getValueAsString(): string;
|
|
40
|
+
private parseURLParams;
|
|
41
|
+
protected hasURLParam(name: string): boolean;
|
|
42
|
+
protected getURLParam(name: string): string;
|
|
43
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import type { FlagsIds } from './Config';
|
|
2
|
-
import { SettingBase } from './SettingBase';
|
|
3
|
-
/**
|
|
4
|
-
* A boolean flag setting object with a text label.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SettingFlag<CustomIds extends string = FlagsIds> extends SettingBase {
|
|
7
|
-
id: FlagsIds | CustomIds;
|
|
8
|
-
onChangeEmit: (changedValue: boolean) => void;
|
|
9
|
-
constructor(id: FlagsIds | CustomIds, label: string, description: string, defaultFlagValue: boolean, useUrlParams: boolean, defaultOnChangeListener?: (changedValue: unknown, setting: SettingBase) => void);
|
|
10
|
-
protected getValueAsString(): string;
|
|
11
|
-
/**
|
|
12
|
-
* Enables this flag.
|
|
13
|
-
*/
|
|
14
|
-
enable(): void;
|
|
15
|
-
/**
|
|
16
|
-
* @return The setting's value.
|
|
17
|
-
*/
|
|
18
|
-
get flag(): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Update the setting's stored value.
|
|
21
|
-
* @param inValue The new value for the setting.
|
|
22
|
-
*/
|
|
23
|
-
set flag(inValue: boolean);
|
|
24
|
-
}
|
|
1
|
+
import type { FlagsIds } from './Config';
|
|
2
|
+
import { SettingBase } from './SettingBase';
|
|
3
|
+
/**
|
|
4
|
+
* A boolean flag setting object with a text label.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SettingFlag<CustomIds extends string = FlagsIds> extends SettingBase {
|
|
7
|
+
id: FlagsIds | CustomIds;
|
|
8
|
+
onChangeEmit: (changedValue: boolean) => void;
|
|
9
|
+
constructor(id: FlagsIds | CustomIds, label: string, description: string, defaultFlagValue: boolean, useUrlParams: boolean, defaultOnChangeListener?: (changedValue: unknown, setting: SettingBase) => void);
|
|
10
|
+
protected getValueAsString(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Enables this flag.
|
|
13
|
+
*/
|
|
14
|
+
enable(): void;
|
|
15
|
+
/**
|
|
16
|
+
* @return The setting's value.
|
|
17
|
+
*/
|
|
18
|
+
get flag(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Update the setting's stored value.
|
|
21
|
+
* @param inValue The new value for the setting.
|
|
22
|
+
*/
|
|
23
|
+
set flag(inValue: boolean);
|
|
24
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import type { NumericParametersIds } from './Config';
|
|
2
|
-
import { SettingBase } from './SettingBase';
|
|
3
|
-
/**
|
|
4
|
-
* A number setting object with a text label. Min and max limit the range of allowed values.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SettingNumber<CustomIds extends string = NumericParametersIds> extends SettingBase {
|
|
7
|
-
_min: number;
|
|
8
|
-
_max: number;
|
|
9
|
-
id: NumericParametersIds | CustomIds;
|
|
10
|
-
onChangeEmit: (changedValue: number) => void;
|
|
11
|
-
constructor(id: NumericParametersIds | CustomIds, label: string, description: string, min: number, max: number, defaultNumber: number, useUrlParams: boolean, defaultOnChangeListener?: (changedValue: unknown, setting: SettingBase) => void);
|
|
12
|
-
protected getValueAsString(): string;
|
|
13
|
-
/**
|
|
14
|
-
* Set the number value (will be clamped within range).
|
|
15
|
-
*/
|
|
16
|
-
set number(newNumber: number);
|
|
17
|
-
/**
|
|
18
|
-
* @returns The number stored.
|
|
19
|
-
*/
|
|
20
|
-
get number(): number;
|
|
21
|
-
/**
|
|
22
|
-
* Clamps a number between the min and max values (inclusive).
|
|
23
|
-
* @param inNumber The number to clamp.
|
|
24
|
-
* @returns The clamped number.
|
|
25
|
-
*/
|
|
26
|
-
clamp(inNumber: number): number;
|
|
27
|
-
/**
|
|
28
|
-
* Returns the minimum value
|
|
29
|
-
* @returns The minimum value
|
|
30
|
-
*/
|
|
31
|
-
get min(): number;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the maximum value
|
|
34
|
-
* @returns The maximum value
|
|
35
|
-
*/
|
|
36
|
-
get max(): number;
|
|
37
|
-
/**
|
|
38
|
-
* Add a change listener to the number object.
|
|
39
|
-
*/
|
|
40
|
-
addOnChangedListener(onChangedFunc: (newNumber: number) => void): void;
|
|
41
|
-
}
|
|
1
|
+
import type { NumericParametersIds } from './Config';
|
|
2
|
+
import { SettingBase } from './SettingBase';
|
|
3
|
+
/**
|
|
4
|
+
* A number setting object with a text label. Min and max limit the range of allowed values.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SettingNumber<CustomIds extends string = NumericParametersIds> extends SettingBase {
|
|
7
|
+
_min: number | null;
|
|
8
|
+
_max: number | null;
|
|
9
|
+
id: NumericParametersIds | CustomIds;
|
|
10
|
+
onChangeEmit: (changedValue: number) => void;
|
|
11
|
+
constructor(id: NumericParametersIds | CustomIds, label: string, description: string, min: number | null, max: number | null, defaultNumber: number, useUrlParams: boolean, defaultOnChangeListener?: (changedValue: unknown, setting: SettingBase) => void);
|
|
12
|
+
protected getValueAsString(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Set the number value (will be clamped within range).
|
|
15
|
+
*/
|
|
16
|
+
set number(newNumber: number);
|
|
17
|
+
/**
|
|
18
|
+
* @returns The number stored.
|
|
19
|
+
*/
|
|
20
|
+
get number(): number;
|
|
21
|
+
/**
|
|
22
|
+
* Clamps a number between the min and max values (inclusive).
|
|
23
|
+
* @param inNumber The number to clamp.
|
|
24
|
+
* @returns The clamped number.
|
|
25
|
+
*/
|
|
26
|
+
clamp(inNumber: number): number;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the minimum value
|
|
29
|
+
* @returns The minimum value
|
|
30
|
+
*/
|
|
31
|
+
get min(): number;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the maximum value
|
|
34
|
+
* @returns The maximum value
|
|
35
|
+
*/
|
|
36
|
+
get max(): number;
|
|
37
|
+
/**
|
|
38
|
+
* Add a change listener to the number object.
|
|
39
|
+
*/
|
|
40
|
+
addOnChangedListener(onChangedFunc: (newNumber: number) => void): void;
|
|
41
|
+
}
|