mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 12:38:35 +00:00
add inline _punchcard
This commit is contained in:
parent
6b98e414c6
commit
1e1dbd6085
@ -109,6 +109,11 @@ registerWidget('_pianoroll', (id, options = {}, pat) => {
|
|||||||
return pat.pianoroll({ fold: 1, ...options, ctx, id });
|
return pat.pianoroll({ fold: 1, ...options, ctx, id });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
registerWidget('_punchcard', (id, options = {}, pat) => {
|
||||||
|
const ctx = getCanvasWidget(id, options).getContext('2d');
|
||||||
|
return pat.punchcard({ fold: 1, ...options, ctx, id });
|
||||||
|
});
|
||||||
|
|
||||||
/* 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');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user