mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
fix: id at wrong place
This commit is contained in:
parent
f83a156317
commit
a629c5c931
@ -106,7 +106,7 @@ function getCanvasWidget(id, options = {}) {
|
|||||||
|
|
||||||
registerWidget('_pianoroll', (id, options = {}, pat) => {
|
registerWidget('_pianoroll', (id, options = {}, pat) => {
|
||||||
const ctx = getCanvasWidget(id, options).getContext('2d');
|
const ctx = getCanvasWidget(id, options).getContext('2d');
|
||||||
return pat.id(id).pianoroll({ fold: 1, ...options, ctx, id });
|
return pat.pianoroll({ fold: 1, ...options, ctx, id });
|
||||||
});
|
});
|
||||||
|
|
||||||
registerWidget('_punchcard', (id, options = {}, pat) => {
|
registerWidget('_punchcard', (id, options = {}, pat) => {
|
||||||
@ -117,7 +117,7 @@ registerWidget('_punchcard', (id, options = {}, pat) => {
|
|||||||
registerWidget('_spiral', (id, options = {}, pat) => {
|
registerWidget('_spiral', (id, options = {}, pat) => {
|
||||||
options = { width: 200, height: 200, size: 36, ...options };
|
options = { width: 200, height: 200, size: 36, ...options };
|
||||||
const ctx = getCanvasWidget(id, options).getContext('2d');
|
const ctx = getCanvasWidget(id, options).getContext('2d');
|
||||||
return pat.spiral({ ...options, ctx, id });
|
return pat.id(id).spiral({ ...options, ctx, id });
|
||||||
});
|
});
|
||||||
|
|
||||||
registerWidget('_scope', (id, options = {}, pat) => {
|
registerWidget('_scope', (id, options = {}, pat) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user