チェンジセット 138 : SPARQLBuilderWWW/web

差分発生行の前後
無視リスト:
更新日時:
2014/08/19 18:02:55 (10 年 前)
更新者:
lenz
ログメッセージ:

ノードテキストのスタイルの変更
URIから末尾を取得する部分のバグフィックス

ファイル:
1 変更

凡例:

変更なし
追加
削除
  • SPARQLBuilderWWW/web/jsgui.html

    r137 r138  
    181181        .attr("x", function(d) { return d.x; }) 
    182182        .attr("y", function(d) { return d.y; }) 
    183         .text(function(d) { return d.name; }) 
     183        .text(function(d) { 
     184                var nodetext = d.name 
     185                var nodesplit1 = nodetext.split("/"); 
     186                var nodesplit2 = nodesplit1[linksplit1.length - 1]; 
     187                var nodesplit3 = nodesplit2.split("#"); 
     188                nodetext = nodesplit3[nodesplit3.length - 1]; 
     189                return nodetext; 
     190        }) 
    184191        .style("fill", function(d) { return '#000000'; }) 
    185         .style("stroke", function(d) { return '#000000'; }) 
    186         .style("stroke-width", function(d) { return '1.5px'; }) 
     192        //.style("stroke", function(d) { return '#000000'; }) 
     193        //.style("stroke-width", function(d) { return '1.5px'; }) 
    187194        .style("text-anchor", function(d) { return 'middle'; }) 
    188195        .style("pointer-events", "none");