Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ It's designed to replicate much of the functionality of [FigTree](http://tree.bi
First import the library:

```HTML
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/tidytree.min.js"></script>
```

Expand Down
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
</div>
</div>

<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
Expand Down
8 changes: 3 additions & 5 deletions dist/tidytree.js
Original file line number Diff line number Diff line change
Expand Up @@ -1414,8 +1414,6 @@ var TidyTree = (function () {
this.height =
parseFloat(parent.style("height")) - this.margin[0] - this.margin[2] - this._rulerOffset();

let tree = d3.tree();

let svg = parent
.html(null)
.append("svg")
Expand All @@ -1431,8 +1429,8 @@ var TidyTree = (function () {
.attr("y", -5)
.attr("fill", "white");

this.zoom = d3.zoom().on("zoom", () => {
let transform = (this.transform = d3.event.transform);
this.zoom = d3.zoom().on("zoom", e => {
let transform = (this.transform = e.transform);
g.attr(
"transform",
`translate(${transform.x},${transform.y}) scale(${transform.k}) rotate(${
Expand Down Expand Up @@ -2621,4 +2619,4 @@ var TidyTree = (function () {

return TidyTree;

}());
})();
2 changes: 1 addition & 1 deletion dist/tidytree.min.js

Large diffs are not rendered by default.

Loading