Commit cee405ad authored by Remi  PLANEL's avatar Remi PLANEL

Change type Gene. Expect SVGGElement

parent 934f7721
...@@ -78,12 +78,12 @@ export default function () { ...@@ -78,12 +78,12 @@ export default function () {
); );
selectedChromosomeUpdate selectedChromosomeUpdate
.select<SVGElement>("." + classes.rule) .select<SVGGElement>("." + classes.rule)
.datum<GenericAxisData>(d => d.rule) .datum<GenericAxisData>(d => d.rule)
.call(ruleComponent, width, 0) .call(ruleComponent, width, 0)
selectedChromosomeUpdate selectedChromosomeUpdate
.select<SVGElement>("." + classes.genes) .select<SVGGElement>("." + classes.genes)
.datum<GeneData[]>(d => d.genes) .datum<GeneData[]>(d => d.genes)
.call(geneComponent, ruleComponent.scale(), 20, 70); .call(geneComponent, ruleComponent.scale(), 20, 70);
......
...@@ -11,7 +11,7 @@ import { GeneData, PositionedGeneData } from "../../types"; ...@@ -11,7 +11,7 @@ import { GeneData, PositionedGeneData } from "../../types";
export default function () { export default function () {
function gene( function gene(
_selection: Selection<SVGElement, Array<GeneData>, SVGElement, any>, _selection: Selection<SVGGElement, Array<GeneData>, any, any>,
xScale: ScaleLinear<number, number>, xScale: ScaleLinear<number, number>,
geneHeight: number = 30, geneHeight: number = 30,
yPosition: number = 60 yPosition: number = 60
......
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