13
0

WS: Add strip labels in the mixer demo

Plus some minor widget code and layout improvements
This commit is contained in:
Luciano Iam 2020-07-25 17:45:39 +02:00
parent 63a117bf93
commit 43c1929b7d
2 changed files with 2 additions and 4 deletions

View File

@ -72,6 +72,7 @@ import { createRootContainer, Container, Dialog, Label, Button, DiscreteKnob,
const pan = new PanKnob();
pan.appendTo(container);
if (!strip.isVca) {
pan.bindTo(strip, 'pan');
}

View File

@ -19,13 +19,10 @@
import loadToolkit from './tkloader.js';
import { BaseWidget, BaseContainer, BaseDialog, BaseControl } from './widget.js';
let _tkRoot = null;
export async function createRootContainer () {
await loadToolkit();
_tkRoot = new TK.Root({id: 'root'});
const root = new Container();
root.tk = _tkRoot;
root.tk = new TK.Root({id: 'root'});
document.body.appendChild(root.element);
return root;
}