Skip to content

Commit

Permalink
Merge pull request #304 from SynBioDex/higher-resolution-export
Browse files Browse the repository at this point in the history
Tripled the resolution of exported images
  • Loading branch information
Drock54651 authored Jul 26, 2024
2 parents a1333a4 + 1a716f5 commit b17604c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SBOLCanvasFrontend/src/app/graph.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ export class GraphService extends GraphHelpers {

exportImage(filename: string, format: string) {
let bg = '#ffffff';
let scale = 1;
let scale = 3;
let b = 1;

let imgExport = new mx.mxImageExport();
Expand All @@ -1193,7 +1193,7 @@ export class GraphService extends GraphHelpers {

let xmlCanvas = new mx.mxXmlCanvas2D(root);
xmlCanvas.translate(Math.floor((b / scale - bounds.x) / vs), Math.floor((b / scale - bounds.y) / vs));
xmlCanvas.scale(1 / vs);
xmlCanvas.scale(scale / vs);

imgExport.drawState(this.graph.getView().getState(this.graph.getCurrentRoot()), xmlCanvas);

Expand Down

0 comments on commit b17604c

Please sign in to comment.