src/visualizations/sunburst-clock.ts
Function update
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update(el: HTMLElement, root_event: IEvent & { children: IEvent[] }) {
// Basic setup of page elements.
initializeBreadcrumbTrail();
el.querySelector('#container').innerHTML = '';
Function drawLegend
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawLegend() {
// Dimensions of legend item: width, height, spacing, radius of rounded rect.
const li = {
w: 75,
h: 30,
Function create
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create(el: HTMLElement) {
// Clear the svg in case we are redrawing
rootEl = d3.select(el);
rootEl.selectAll('svg').remove();