diff --git a/src/scripts/component/ruler/chromosome.ts b/src/scripts/component/ruler/chromosome.ts index fa0753a8fa8881bcbab3d32add007f446f03f836..0901ae113cd130282d47de4545f5f41605528ccb 100644 --- a/src/scripts/component/ruler/chromosome.ts +++ b/src/scripts/component/ruler/chromosome.ts @@ -58,7 +58,10 @@ export default function () { .select(".title > text") .style("fill", "black") .style("font-family", "monospace") - .attr("transform", d => "translate(" + (width / 2 + d.title.length * 8 / 2) + ",20)") + .attr( + "transform", + d => "translate(" + (width / 2 + d.title.length * 8 / 2) + ",20)" + ) .text(d => d.title); diff --git a/tests/brushable-chromosome.test.ts b/tests/brushable-chromosome.test.ts index 9558dd2093892092e706e90d1cd9a85280993057..eef0b1c884d225b4926432665210fdb5532c5e97 100644 --- a/tests/brushable-chromosome.test.ts +++ b/tests/brushable-chromosome.test.ts @@ -26,7 +26,9 @@ describe("Test Chromosome Ruler", () => { .call(brushableChromosomeRulerComponent, 1500, 20); expect(container.html()).toBe(result); }) - + test("Test end event when selection bigger than max", () => { + + }); });