add examples page with prerendered swatches

This commit is contained in:
Felix Roos 2022-12-28 14:40:53 +01:00
parent 1dd0ff13d8
commit 9f058bd88a
6 changed files with 380 additions and 6 deletions

View file

@ -56,9 +56,6 @@ Pattern.prototype.pianoroll = function ({
from = 0;
to = timeframeProp;
}
if (!autorange && fold) {
console.warn('disabling autorange has no effect when fold is enabled');
}
const timeAxis = vertical ? h : w;
const valueAxis = vertical ? w : h;
let timeRange = vertical ? [timeAxis, 0] : [0, timeAxis]; // pixel range for time
@ -190,9 +187,6 @@ export function pianoroll({
from = 0;
to = timeframeProp;
}
if (!autorange && fold) {
console.warn('disabling autorange has no effect when fold is enabled');
}
const timeAxis = vertical ? h : w;
const valueAxis = vertical ? w : h;
let timeRange = vertical ? [timeAxis, 0] : [0, timeAxis]; // pixel range for time