INNER CODE UNIT · JavaScript
getAncestors
KeepSafe/dexcount-gradle-plugin · src/main/resources/com/getkeepsafe/dexcount/chart-builder.js:163
function getAncestors(node) {
var path = [];
var current = node;
while (current.parent) {
path.unshift(current);
current = current.parent;
}
return path;
}
function initializeBreadcrumbTrail() {
// Add the svg area.
var trail = d3.select("#sequence").append("svg:svg")
.attr("width", 1500)
.attr("height", 50)
.attr("id", "trail");
// Add the label at the end, for the percentage.
trail.append("svg:text")