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

By default draw gene as "+" strand.

parent 650de17e
...@@ -8,17 +8,17 @@ export function arrowShape( ...@@ -8,17 +8,17 @@ export function arrowShape(
const { position: { x, y, width } } = data; const { position: { x, y, width } } = data;
const genePath = path(); const genePath = path();
if (width < arrowWidth) { if (width < arrowWidth) {
genePath.moveTo(0, geneHeight / 2); genePath.moveTo(0, 0)
genePath.lineTo(width, geneHeight); genePath.moveTo(0, geneHeight)
genePath.lineTo(width, 0); genePath.moveTo(width, geneHeight / 2)
genePath.closePath(); genePath.closePath();
} }
else { else {
genePath.moveTo(0, geneHeight / 2); genePath.moveTo(0, 0);
genePath.lineTo(arrowWidth, geneHeight); genePath.lineTo(0, geneHeight);
genePath.lineTo(width, geneHeight); genePath.lineTo(width - arrowWidth, geneHeight);
genePath.lineTo(width, 0); genePath.lineTo(width, geneHeight / 2);
genePath.lineTo(arrowWidth, 0); genePath.lineTo(width - arrowWidth, 0);
genePath.closePath(); genePath.closePath();
} }
return genePath.toString(); return genePath.toString();
......
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