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
1 change: 0 additions & 1 deletion html/js/thirdparty/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
This directory contains third party JavaScript libraries:

- SVG.js is a lightweight library for manipulating and animating SVG. It has no dependencies and aims to be as minimal as possible. This folder contains the minimized version of the library and the humanized one. For more information about the library refer to the official GitHub page (SVG.js) [https://github.com/wout/svg.js] and its (documentation) [http://documentup.com/wout/SVG.js]

14 changes: 0 additions & 14 deletions html/js/tree/Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,6 @@ GTE.TREE = (function (parentModule) {
}
};

/**
* Function that clears the canvas
* Takes care of removing the foreigns used during inline editing
*/
Tree.prototype.clear = function(){
// Clear canvas
GTE.canvas.clear();
// Remove labels
var foreigns = document.getElementsByTagName("foreignObject");
for (var index = foreigns.length - 1; index >= 0; index--) {
foreigns[index].parentNode.removeChild(foreigns[index]);
}
};

/**
* Recursive function that draws the Game in the global canvas starting from a node
* If no param is given it will start from root
Expand Down