rename inline functions to match global ones, prefixed with _

This commit is contained in:
Felix Roos 2024-03-17 04:15:59 +01:00
parent 076b6f1c82
commit be77882d70
2 changed files with 4 additions and 11 deletions

View file

@ -27,7 +27,7 @@ customElement('strudel-claviature', { options: '{}' }, (props, { element }) => {
);
});
registerWidget('claviature', (id, options = {}, pat) => {
registerWidget('_claviature', (id, options = {}, pat) => {
options = { range: ['A0', 'C8'], scaleY: 1, scaleY: 0.5, scaleX: 0.5, ...options };
const height = (options.upperHeight + options.lowerHeight) * options.scaleY;
const el = getSolidWidget('strudel-claviature', id, { ...options, height });