Skip to content

Commit

Permalink
Improve SVG export
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-veit committed Oct 18, 2021
1 parent 7e8a0b2 commit 010651e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "higlass-general-vcf",
"version": "0.1.0",
"version": "0.1.1",
"description": "HiGlass General VCF Track",
"keywords": [
"HiGlass",
Expand Down
15 changes: 2 additions & 13 deletions src/GeneralVcfTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,19 +836,10 @@ varying vec4 vColor;
`translate(${this.pMain.position.x},${this.pMain.position.y}) scale(${this.pMain.scale.x},${this.pMain.scale.y})`,
);

const gSegment = document.createElement('g');

gSegment.setAttribute(
'transform',
`translate(${this.segmentGraphics.position.x},${this.segmentGraphics.position.y})` +
`scale(${this.segmentGraphics.scale.x},${this.segmentGraphics.scale.y})`,
);

output.appendChild(gSegment);

if (this.segmentGraphics) {
const gSegment = document.createElement('g');
output.appendChild(gSegment);
const b64string = HGC.services.pixiRenderer.plugins.extract.base64(
// this.segmentGraphics, 'image/png', 1,
this.pMain.parent.parent,
);

Expand All @@ -864,8 +855,6 @@ varying vec4 vColor;
);
gImage.appendChild(image);
gSegment.appendChild(gImage);

// gSegment.appendChild(image);
}

return [base, base];
Expand Down

0 comments on commit 010651e

Please sign in to comment.