Commit 87e5a95b authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Add gene-shapes module

parent d7db88af
import { GeneData } from "./gene";
import { ScaleLinear } from "d3-scale";
export function arrowShape(data: GeneData, xScale: ScaleLinear<number, number>, geneHeight: number) {
const geneWidth = xScale(data.length);
return "M 0 0 V " + (-geneHeight) + " H " + geneWidth + " V " + geneHeight + " H " + (-geneWidth) + " Z";
}
\ No newline at end of file
Supports Markdown
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