sim: fixture editor for DDP and Art-Net/DMX fixtures
The rig sim receives Art-Net (UDP 6454, answers ArtPoll) and DDP (each port the room's DDP strips use) in sim_net.c and passes changed universes and pixels to the page over /sim/ws, now with a kind byte in front of each binary frame. Rooms gain fixture types: ddp strips, artnet pixel strips, and artnet cans and movers that read named channels from the room's dmx_definitions (the qlcplus stage map's format). Overlapping DMX channels are refused. Cans and movers are decoded and drawn as in the qlcplus stage simulator (dmx.js, dmx-draw.js). In Edit mode: pick a type to add, edit port/offset/universe/address/colour order/definition, see a can's or mover's live channels, make a controller output aimed at the sim and send its test. The room dialog lists DMX definitions, with presets, a channel editor, and .qxf and stage map import. GET /sim/api/dmx shows what the receiver has had. Tests: test/api/test_sim_net.py and test/browser/dmx_decode.test.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2fdd55323b
commit
35207a868a
16 files changed
+2859
-118
No files matched your search
@@ -249,3 +249,47 @@ table.defs input { width: 100%; }
|
||||
|
||||
/* In the controller's split view (an iframe beside it) */
|
||||
body.embedded .not-embedded { display: none; }
|
||||
|
||||
/* ---- network fixtures: DDP and Art-Net (sim_net.c), DMX cans and movers (dmx.js, dmx-draw.js) ---- */
|
||||
.add-group { display: inline-flex; align-items: center; gap: 4px; }
|
||||
.edit-form label[hidden], .log[hidden], .log-head[hidden], .drawer-actions[hidden] { display: none; }
|
||||
.edit-form label.check { flex-direction: row; align-items: center; gap: 6px; align-self: end; }
|
||||
.net-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
||||
.net-actions[hidden] { display: none; }
|
||||
.net-actions .note { flex-basis: 100%; color: var(--muted); }
|
||||
table.channels { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
|
||||
table.channels[hidden] { display: none; }
|
||||
table.channels th { text-align: left; color: var(--muted); font-weight: normal; padding: 2px 4px; border-bottom: 1px solid var(--line); }
|
||||
table.channels td { padding: 2px 4px; }
|
||||
table.channels td.num { text-align: right; width: 4em; }
|
||||
table.channels tr.on td { color: var(--text); }
|
||||
table.channels tr:not(.on) td:not(.muted) { color: var(--muted); }
|
||||
dialog h3 { margin: 6px 0 0; font-size: 13px; }
|
||||
dialog .small, .small { font-size: 12px; margin: 0; }
|
||||
.dmx-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
||||
label.button.file {
|
||||
display: inline-block;
|
||||
flex-direction: row;
|
||||
cursor: pointer;
|
||||
color: var(--text);
|
||||
border: 1px solid var(--line);
|
||||
background: var(--panel-2);
|
||||
border-radius: 6px;
|
||||
padding: 5px 11px;
|
||||
}
|
||||
label.button.file:hover { background: #232730; }
|
||||
.dmx-edit { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
|
||||
.dmx-edit[hidden] { display: none; }
|
||||
.dmx-edit textarea {
|
||||
font: 12px ui-monospace, Menlo, Consolas, monospace;
|
||||
color: var(--text);
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
padding: 6px;
|
||||
resize: vertical;
|
||||
}
|
||||
dialog { max-height: calc(100vh - 32px); overflow: auto; }
|
||||
.edit-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
|
||||
.edit-form input:not([type=checkbox]), .edit-form select { width: 100%; box-sizing: border-box; }
|
||||
.drawer { overflow-x: hidden; }
|
||||
Reference in new issue
Block a user