Commit cd76c473 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Move axis component to a folder axis

parent 296054a1
import GeneComponent from "./sequence/gene";
import GenomeAxis from "./sequence/genome-axis";
import BrushableGenomeAxis from "./sequence/brushable-genome-axis";
import GenomeAxis from "./axis/genome-axis";
import BrushableGenomeAxis from "./axis/brushable-genome-axis";
// D3
import { select, Selection } from "d3-selection";
import { drag } from "d3-drag";
......@@ -40,6 +40,7 @@ export default function () {
genomeBrowserE.append("g").classed("chromosome-axis", true);
genomeBrowserE.append("g").classed("selected-chromosome", true);
genomeBrowserE.append("g").classed("axis", true);
genomeBrowserE.append("g").classed("genes", true);
......
......@@ -145,7 +145,7 @@ function updateGenomeBrowserData(genomeBrowserData: GenomeBrowserData[]) {
genomeBrowserData[i].genomeWindow.size = window[1] - window[0];
const newData = updateGenomeBrowserData(genomeBrowserData);
newData.forEach(function (data) {
genomeBrowserComponent.updateGenome(data.axis.chromosome, data.chromosome.genes);
genomeBrowserComponent.updateSelectedChromosome(data.axis.chromosome, data.chromosome.genes);
})
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment