lib/graph-printer/old/index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
rect.scope {
/*cursor: pointer;*/
/*opacity: 0.2;*/
stroke: #000;
stroke-width: .5px;
fill: none;
}
/*
.node:hover {
stroke: #000;
stroke-width: 1.5px;
}*/
/*.node--leaf {
fill: white;
}*/
.label {
font: 11px "Helvetica Neue", Helvetica, Arial, sans-serif;
text-anchor: middle;
text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff, 0 -1px 0 #fff;
}
.label,
.node-root,
.node-leaf {
pointer-events: none;
}
</style>
<body>
<script src="bower_components/d3/d3.js"></script>
<script src="pack-layout.js"></script>
<script src="graph.js"></script>
<script type="text/javascript">
d3.json("ctx-mock.json", function(err, root) {
if (err) return console.error(err);
else return graph(root);
});
</script>