WS: Add strip labels in the mixer demo
Plus some minor widget code and layout improvements
This commit is contained in:
parent
63a117bf93
commit
43c1929b7d
@ -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');
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user