Skip to content

Commit 13ba258

Browse files
committed
Allow much higher zoom
1 parent d083bd1 commit 13ba258

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.asm
33
*.iml
44
target/*
5+
todo.txt

src/main/java/net/nandgr/debugger/report/Report.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public Report(List<ContractObject> contracts, String txHash) {
2727
}
2828

2929
public String createReport() throws ReportException {
30-
String reportFileName = "debug-" + randomSuffix(6) + ".html";
30+
String reportFileName = "debug-" + randomSuffix(10) + ".html";
3131
File debugFile = new File(reportFileName);
3232
try {
3333
if (!debugFile.createNewFile()) {

src/main/resources/template/graph_template.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
}
5656

5757
.tab {
58-
height:100vh;
59-
margin:0;
60-
padding:0;
61-
width:100%;
58+
height: 85vh;
59+
margin: 0;
60+
padding: 0;
61+
width: 100%;
6262
}
6363

6464
.parent {
@@ -159,8 +159,9 @@
159159
#end
160160

161161
function render(dotSrc, gViz, contractName) {
162-
transition1 = d3.transition();
163162
gViz.renderDot(dotSrc);
163+
// Allowing a very high zoom
164+
gViz._zoomBehavior.scaleExtent([1/10, 10000]);
164165
onTransition();
165166
}
166167

@@ -179,7 +180,6 @@
179180

180181
function fieldClickHandler () {
181182
var node = d3.select(this);
182-
var text = node.selectAll('text').text();
183183
var id = node.attr('id').replace(/^a_/, '');
184184
var idArr = id.split("#");
185185
var offset = idArr[0];
@@ -253,7 +253,6 @@
253253
memoryTable.appendChild(tr);
254254
}
255255

256-
257256
memoryElement.appendChild(memoryTable);
258257

259258
var storage = trace.storage;

0 commit comments

Comments
 (0)