@utsp/types 0.17.0-nightly.20260114213208.c9c64d9 → 0.17.0-nightly.20260121133546.82645b6
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/index.d.ts +27 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -941,14 +941,13 @@ interface IRenderer {
|
|
|
941
941
|
*/
|
|
942
942
|
getCanvas(): unknown;
|
|
943
943
|
/**
|
|
944
|
-
* Set
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
*
|
|
949
|
-
* @param cellHeight - Cell height in pixels (includes spacing)
|
|
944
|
+
* Set image font structure (allocate texture)
|
|
945
|
+
*/
|
|
946
|
+
setImageFontStructure?(glyphWidth: number, glyphHeight: number, cellWidth: number, cellHeight: number, atlasBlocks: 1 | 4 | 16): Promise<void>;
|
|
947
|
+
/**
|
|
948
|
+
* Set image font data block
|
|
950
949
|
*/
|
|
951
|
-
|
|
950
|
+
setImageFontBlock?(blockIndex: number, data: Uint8Array): Promise<void>;
|
|
952
951
|
/**
|
|
953
952
|
* Set image font (PNG atlas) for extended character rendering
|
|
954
953
|
* @param imageData - PNG image data as Uint8Array
|
|
@@ -958,6 +957,7 @@ interface IRenderer {
|
|
|
958
957
|
* @param cellHeight - Cell height in pixels (includes spacing)
|
|
959
958
|
* @param atlasBlocks - Number of 256-char blocks (1, 4, or 16)
|
|
960
959
|
* @returns Promise that resolves when font is loaded
|
|
960
|
+
* @deprecated Use setImageFontStructure and setImageFontBlock
|
|
961
961
|
*/
|
|
962
962
|
setImageFont?(imageData: Uint8Array, glyphWidth: number, glyphHeight: number, cellWidth: number, cellHeight: number, atlasBlocks: 1 | 4 | 16): Promise<void>;
|
|
963
963
|
/**
|
|
@@ -1299,6 +1299,23 @@ interface NetworkServerOptions {
|
|
|
1299
1299
|
/** Session ID (if using a relay) */
|
|
1300
1300
|
sessionId?: string;
|
|
1301
1301
|
}
|
|
1302
|
+
/** Signaling information for clients */
|
|
1303
|
+
interface SignalingInfo {
|
|
1304
|
+
/** Mode: 'socketio' or 'webrtc' */
|
|
1305
|
+
mode: 'socketio' | 'webrtc';
|
|
1306
|
+
/** Transport: 'websocket', 'polling', or 'webrtc' */
|
|
1307
|
+
transport: 'websocket' | 'polling' | 'webrtc';
|
|
1308
|
+
/** Signaling Host (if direct) */
|
|
1309
|
+
host?: string;
|
|
1310
|
+
/** Signaling Port (if direct) */
|
|
1311
|
+
port?: number;
|
|
1312
|
+
/** Signaling Path (default: /utsp-signal) */
|
|
1313
|
+
path?: string;
|
|
1314
|
+
/** Signal Server URL (if relay) */
|
|
1315
|
+
signalUrl?: string;
|
|
1316
|
+
/** Session ID (if relay or identified) */
|
|
1317
|
+
sessionId?: string;
|
|
1318
|
+
}
|
|
1302
1319
|
/** Client info */
|
|
1303
1320
|
interface ClientInfo {
|
|
1304
1321
|
/** Client ID */
|
|
@@ -1316,6 +1333,8 @@ interface INetworkServer {
|
|
|
1316
1333
|
isRunning(): boolean;
|
|
1317
1334
|
/** Start server */
|
|
1318
1335
|
start(): Promise<void>;
|
|
1336
|
+
/** Get signaling info for clients */
|
|
1337
|
+
getSignalingInfo(): SignalingInfo;
|
|
1319
1338
|
/** Stop server */
|
|
1320
1339
|
stop(): Promise<void>;
|
|
1321
1340
|
/** Get connected client IDs */
|
|
@@ -2234,4 +2253,4 @@ interface IGamepadVibrationProcessor {
|
|
|
2234
2253
|
type GamepadVibrationPreset = 'tap' | 'impact' | 'heavy' | 'success' | 'error' | 'explosion' | 'engine' | 'heartbeat';
|
|
2235
2254
|
|
|
2236
2255
|
export { GRID_DEFAULTS, GamepadInput, InputDeviceType, KeyboardInput, MouseInput, NetworkEvent, NetworkState, NetworkTransportType, POST_PROCESS_DEFAULTS, ScalingMode, ScalingModeValue, TVRemoteInput, TouchInput, TouchZoneInput, Vector2, Vector3, createInputDescriptor, deserializeInputDescriptor, gamepadAxisIndexToInput, gamepadButtonIndexToInput, getTouchXAxis, getTouchYAxis, getTouchZoneXAxis, getTouchZoneYAxis, inputDescriptorToString, isAxis, isButton, isGamepadAxis, isGamepadButton, isMouseAxis, isMouseButton, isNetworkEvent, isTVRemoteAxis, isTVRemoteButton, isTouchButton, isTouchGesture, isTouchPosition, isTouchZoneButton, isTouchZonePosition, keyCodeToKeyboardInput, keyboardInputToKeyCode, parseInputDescriptor, scalingModeToValue, serializeInputDescriptor, valueToScalingMode };
|
|
2237
|
-
export type { AmbientEffectConfig, AnyNetworkMessage, AnySoundLoadPacket, AudioAck, AudioAckBase, AudioAckHandler, AudioAckType, AudioConfigCommand, AudioPlayOptions, AudioPlayResult, AudioSpatialOptions, AxisBinding, AxisSource, BridgeClientHandler, BridgeServerHandler, ButtonBinding, ButtonSource, CancelVibrationCommand, ChatMessage, ClientInfo, ConfigureSpatialCommand, ConnectionHandler, DisconnectionHandler, ErrorMessage, FadeOutSoundCommand, GamepadCancelVibrationCommand, GamepadInputDescriptor, GamepadVibrateCommand, GamepadVibrationCommand, GamepadVibrationOptions, GamepadVibrationPreset, GridConfig, IApplication, IAudioProcessor, IColorPalette, IGamepadVibrationProcessor, IInputSystem, IMobileVibrationProcessor, INetworkClient, INetworkServer, IRenderer, ISoundLoader, InputBindingLoadPacket, InputDescriptor, InputEnum, InputMessage, JoinMessage, JoinResponseMessage, KeyboardInputDescriptor, LeaveMessage, LoadMessage, MessageType, MobileVibrationCommand, MobileVibrationPreset, MouseInputDescriptor, NetworkClientOptions, NetworkEventHandler, NetworkMessage, NetworkServerOptions, PauseSoundCommand, PingMessage, PlaySoundCommand, PlaybackEndedAck, PlaybackErrorAck, PlaybackStartedAck, PongMessage, PostProcessCommand, PostProcessCommandType, PostProcessConfig, RGBColor, RenderPassState, RenderState, RenderedCell, ResumeSoundCommand, ScanlinesConfig, ServerEventHandler, SetListenerPositionCommand, SetSoundEffectsCommand, SoundErrorAck, SoundExternalEntry, SoundExternalLoadPacket, SoundFileEntry, SoundFormat, SoundInstanceId, SoundLoadPacket, SoundLoadType, SoundLoadedAck, SpatialAudioConfig, StopSoundCommand, TVRemoteInputDescriptor, TouchInputDescriptor, TouchZoneBinding, TypedInputDescriptor, UpdateMessage, UserMetadata, UserRenderState, VibrateCommand, VibrationPattern };
|
|
2256
|
+
export type { AmbientEffectConfig, AnyNetworkMessage, AnySoundLoadPacket, AudioAck, AudioAckBase, AudioAckHandler, AudioAckType, AudioConfigCommand, AudioPlayOptions, AudioPlayResult, AudioSpatialOptions, AxisBinding, AxisSource, BridgeClientHandler, BridgeServerHandler, ButtonBinding, ButtonSource, CancelVibrationCommand, ChatMessage, ClientInfo, ConfigureSpatialCommand, ConnectionHandler, DisconnectionHandler, ErrorMessage, FadeOutSoundCommand, GamepadCancelVibrationCommand, GamepadInputDescriptor, GamepadVibrateCommand, GamepadVibrationCommand, GamepadVibrationOptions, GamepadVibrationPreset, GridConfig, IApplication, IAudioProcessor, IColorPalette, IGamepadVibrationProcessor, IInputSystem, IMobileVibrationProcessor, INetworkClient, INetworkServer, IRenderer, ISoundLoader, InputBindingLoadPacket, InputDescriptor, InputEnum, InputMessage, JoinMessage, JoinResponseMessage, KeyboardInputDescriptor, LeaveMessage, LoadMessage, MessageType, MobileVibrationCommand, MobileVibrationPreset, MouseInputDescriptor, NetworkClientOptions, NetworkEventHandler, NetworkMessage, NetworkServerOptions, PauseSoundCommand, PingMessage, PlaySoundCommand, PlaybackEndedAck, PlaybackErrorAck, PlaybackStartedAck, PongMessage, PostProcessCommand, PostProcessCommandType, PostProcessConfig, RGBColor, RenderPassState, RenderState, RenderedCell, ResumeSoundCommand, ScanlinesConfig, ServerEventHandler, SetListenerPositionCommand, SetSoundEffectsCommand, SignalingInfo, SoundErrorAck, SoundExternalEntry, SoundExternalLoadPacket, SoundFileEntry, SoundFormat, SoundInstanceId, SoundLoadPacket, SoundLoadType, SoundLoadedAck, SpatialAudioConfig, StopSoundCommand, TVRemoteInputDescriptor, TouchInputDescriptor, TouchZoneBinding, TypedInputDescriptor, UpdateMessage, UserMetadata, UserRenderState, VibrateCommand, VibrationPattern };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utsp/types",
|
|
3
|
-
"version": "0.17.0-nightly.
|
|
3
|
+
"version": "0.17.0-nightly.20260121133546.82645b6",
|
|
4
4
|
"description": "Type definitions and interfaces for UTSP (Universal Tile Stream Protocol)",
|
|
5
5
|
"author": "THP Software",
|
|
6
6
|
"license": "MIT",
|