mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-25 17:58:11 -07:00
website: redesign part 13
This commit is contained in:
@@ -103,6 +103,14 @@ export function createScrubber(svg, readout, highlight) {
|
||||
update(1, false);
|
||||
}
|
||||
|
||||
function clear() {
|
||||
series = [];
|
||||
markers = [];
|
||||
group.replaceChildren(guide);
|
||||
delete svg.dataset.index;
|
||||
delete svg.dataset.scrubbing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {ScrubberSeries[]} nextSeries
|
||||
* @param {number} nextHeight
|
||||
@@ -153,7 +161,7 @@ export function createScrubber(svg, readout, highlight) {
|
||||
}
|
||||
});
|
||||
|
||||
return { setSeries };
|
||||
return { clear, setSeries };
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user