Add the Channel Mixer node (#1142)

* Add the Channel Mixer node

* Fix NodeIdentifier not found in Registry

* Add radio toggle for red/green/blue

---------

Co-authored-by: Dennis Kobert <dennis@kobert.dev>
This commit is contained in:
Keavon Chambers
2023-04-17 12:47:24 -07:00
co-authored by Dennis Kobert
parent a1b63811ba
commit 9db5ad43bf
6 changed files with 198 additions and 13 deletions
@@ -336,12 +336,12 @@
}
function doubleClick(e: MouseEvent) {
const node = (e.target as HTMLElement).closest("[data-node]") as HTMLElement | undefined;
const nodeId = node?.getAttribute("data-node") || undefined;
if (nodeId) {
const id = BigInt(nodeId);
editor.instance.doubleClickNode(id);
}
// const node = (e.target as HTMLElement).closest("[data-node]") as HTMLElement | undefined;
// const nodeId = node?.getAttribute("data-node") || undefined;
// if (nodeId) {
// const id = BigInt(nodeId);
// editor.instance.doubleClickNode(id);
// }
}
function pointerMove(e: PointerEvent) {