modules/DMXDeviceMock.ts
DMX Device serial device mock
c
DMXDeviceMock(options: SerialPortMockOpenOptions)
DMX Device serial device mock
-
write(chunk: Array<number>): boolean
Emulate data sending
modules/ws_broadcast.ts
Data broadcasting to multiple WebSocket instances
f
ws_broadcast(): void
clients: Set<WebSocket>,
send_data: ArrayBuffer,
origin_client: WebSocket
Data broadcasting to multiple WebSocket instances
static/DMXLanes/DMXLanes.js
c
DMXLanes()
tabs_container,
lanes_container
DMX control lanes UI
-
current_tab(tab_index): void
Switch current tab by tab index
-
set_value(): voidchannel,value
Set value to a lane
-
user_labels_json(labels_json): void
Set user labels
static/packet/lane_modify.js
Encoding/decoding functions for lane-modify packet
f
decode_lane_modify_packet(packet)
Unpack lane-modify packet
f
encode_lane_modify_packet()
channel,
value
Create lane-modify packet
f
is_lane_modify_packet(packet)
Verify the packet is lane-modify packet
v
DMX_CHANNEL_MAX: 512
Maximum value of channel
v
DMX_CHANNEL_MIN: 1
Minimum number of channel
v
DMX_VALUE_MAX: 255
Maximum of value
v
DMX_VALUE_MIN: 0
Minimum of value
static/packet/lanes_initialize.js
Encoding/decoding functions for lanes-initialize packet
f
decode_lanes_initialize_packet(packet)
Unpack lanes-initialize packet
f
encode_lanes_initialize_packet(values)
Create lanes-initialize packet
f
is_lanes_initialize_packet(packet)
Verify the packet is lanes-initialize packet
v
DMX_CHANNEL_COUNT: 512
DMX channels count