mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-31 00:34:25 -04:00
fix: id at wrong place
This commit is contained in:
@@ -106,7 +106,7 @@ function getCanvasWidget(id, options = {}) {
|
||||
|
||||
registerWidget('_pianoroll', (id, options = {}, pat) => {
|
||||
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) => {
|
||||
@@ -117,7 +117,7 @@ registerWidget('_punchcard', (id, options = {}, pat) => {
|
||||
registerWidget('_spiral', (id, options = {}, pat) => {
|
||||
options = { width: 200, height: 200, size: 36, ...options };
|
||||
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) => {
|
||||
|
||||
Reference in New Issue
Block a user