Routing: level of a connection inside its crosspoint

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-02 18:29:35 +01:00
1 parent 5c391d932c
commit 2fbb5e7424
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -1537,7 +1537,7 @@ function viewRouting(d) {
onclick: () => { onclick: () => {
const m = chans(dev(), "out")[o].matrix ^ (1 << i); const m = chans(dev(), "out")[o].matrix ^ (1 << i);
setParam("out", o, "matrix", m); render(); setParam("out", o, "matrix", m); render();
} }, h("span", { class: "node" }), on ? h("small", {}, gainDb(oc.mix[i]) === 0 ? "0 dB" : sign(gainDb(oc.mix[i]))) : null)); } }, h("span", { class: "node" }), on ? h("small", { title: `${sign(gainDb(oc.mix[i]))} dB` }, gainDb(oc.mix[i]) === 0 ? "0" : sign(gainDb(oc.mix[i]))) : null));
}); });
if (open) grid.append(h("div", { class: "xpanel" }, h("div", { class: "xpanel-h" }, t("Level for {ch}", { ch: chTitle(d, "out", o) }), if (open) grid.append(h("div", { class: "xpanel" }, h("div", { class: "xpanel-h" }, t("Level for {ch}", { ch: chTitle(d, "out", o) }),
h("button", { class: "small", onclick: () => openChannel("out", o) }, t("Open channel"))), mixList(d, o))); h("button", { class: "small", onclick: () => openChannel("out", o) }, t("Open channel"))), mixList(d, o)));
+4
View File
@@ -963,3 +963,7 @@ body.dashonly .dlink { cursor: default; }
85% { opacity: .5; } 92%, 100% { background-position: 0% 0, 100% 0; opacity: 0; } 85% { opacity: .5; } 92%, 100% { background-position: 0% 0, 100% 0; opacity: 0; }
} }
@media (prefers-reduced-motion: reduce) { .xp.on::before, .xp.on::after { animation: none; } } @media (prefers-reduced-motion: reduce) { .xp.on::before, .xp.on::after { animation: none; } }
/* level of a connection inside its point */
.xp.on .node { width: 36px; height: 36px; border-width: 2px; transform: none; }
.xp.on small { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none;
font-size: 10px; font-weight: 700; letter-spacing: -.02em; color: #0b0c0f; }