add inline _punchcard
This commit is contained in:
parent
6b98e414c6
commit
1e1dbd6085
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue