Skip to content

Commit 4d7ad61

Browse files
committed
reduce size of svg image during rendering
1 parent 85b1ada commit 4d7ad61

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/resources/static/js/target.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ export default class Target{
8484
})
8585
.attr("r", 7).call(force.drag);
8686

87-
const sbolImgSize = 50;
87+
const sbolImgSize = 30;
8888

89-
var images = linksEnter.append("svg:image")
89+
let images = linksEnter.append("svg:image")
9090
.attr("height", sbolImgSize)
9191
.attr("width", sbolImgSize)
9292
.attr("class", "sboltip")
@@ -142,8 +142,6 @@ export default class Target{
142142
}
143143

144144
setHistory(graph){
145-
console.log(graph);
146-
147145
let zoom = d3.behavior.zoom()
148146
.scaleExtent([1, 10])
149147
.on("zoom", () => {

0 commit comments

Comments
 (0)