提交 dd409fb1 作者: Juan Batiz-Benet

diagnostics/d3/view: added chord viewer hash

上级 b9f828e1
...@@ -55,7 +55,7 @@ d3.json(hash, function(error, data) { ...@@ -55,7 +55,7 @@ d3.json(hash, function(error, data) {
.attr("dy", ".31em") .attr("dy", ".31em")
// .attr("text-anchor", function(d) { return d.x < 180 ? "start" : "end"; }) // .attr("text-anchor", function(d) { return d.x < 180 ? "start" : "end"; })
// .attr("transform", function(d) { return d.x < 180 ? null : "rotate(180)"; }) // .attr("transform", function(d) { return d.x < 180 ? null : "rotate(180)"; })
.text(function(d) { return truncate(d.name, 16); }); .text(function(d) { return d.name; });
var p = projection var p = projection
var link = svg.selectAll(".link") var link = svg.selectAll(".link")
......
...@@ -8,7 +8,9 @@ cat >"$file" ...@@ -8,7 +8,9 @@ cat >"$file"
hash=$(ipfs add -q "$file" </dev/null | tail -n1) hash=$(ipfs add -q "$file" </dev/null | tail -n1)
# this viewer is the hash of go-ipfs/diagnostics/d3/viewer.html # this viewer is the hash of go-ipfs/diagnostics/d3/viewer.html
viewer="QmaY6Lq9MEhDfWUc1VfHcu9aLWSyvi4VDLvWQXLoVZ4Mau" force="QmaY6Lq9MEhDfWUc1VfHcu9aLWSyvi4VDLvWQXLoVZ4Mau"
chord="QmVGcat7ieYqf8mwcvwACbJstCRH8m8k2Yyt2qhuFEMoAz"
viewer="$chord"
# the ipfs gateway to use # the ipfs gateway to use
gatewayHTTP="http://ipfs.benet.ai:8080" gatewayHTTP="http://ipfs.benet.ai:8080"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论