fix _pianoroll

This commit is contained in:
Felix Roos 2024-03-23 12:20:01 +01:00
parent 0eccbae048
commit 21f5d639a3

View File

@ -106,7 +106,7 @@ function getCanvasWidget(id, options = {}) {
registerWidget('_pianoroll', (id, options = {}, pat) => {
const ctx = getCanvasWidget(id, options).getContext('2d');
return pat.pianoroll({ fold: 1, ...options, ctx, id });
return pat.id(id).pianoroll({ fold: 1, ...options, ctx, id });
});
registerWidget('_punchcard', (id, options = {}, pat) => {
@ -123,5 +123,5 @@ registerWidget('_spiral', (id, options = {}, pat) => {
registerWidget('_scope', (id, options = {}, pat) => {
options = { width: 500, height: 60, pos: 0.5, scale: 1, ...options };
const ctx = getCanvasWidget(id, options).getContext('2d');
return pat.scope({ ...options, ctx, id });
return pat.id(id).scope({ ...options, ctx, id });
});