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();
|
const pan = new PanKnob();
|
||||||
pan.appendTo(container);
|
pan.appendTo(container);
|
||||||
|
|
||||||
if (!strip.isVca) {
|
if (!strip.isVca) {
|
||||||
pan.bindTo(strip, 'pan');
|
pan.bindTo(strip, 'pan');
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,13 +19,10 @@
|
||||||
import loadToolkit from './tkloader.js';
|
import loadToolkit from './tkloader.js';
|
||||||
import { BaseWidget, BaseContainer, BaseDialog, BaseControl } from './widget.js';
|
import { BaseWidget, BaseContainer, BaseDialog, BaseControl } from './widget.js';
|
||||||
|
|
||||||
let _tkRoot = null;
|
|
||||||
|
|
||||||
export async function createRootContainer () {
|
export async function createRootContainer () {
|
||||||
await loadToolkit();
|
await loadToolkit();
|
||||||
_tkRoot = new TK.Root({id: 'root'});
|
|
||||||
const root = new Container();
|
const root = new Container();
|
||||||
root.tk = _tkRoot;
|
root.tk = new TK.Root({id: 'root'});
|
||||||
document.body.appendChild(root.element);
|
document.body.appendChild(root.element);
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user