var data = {nodes: [], links: []} this.data = data var morphs = {} var index = 0; $world.withAllSubmorphsDo(function(ea) { var node = {name: ea.name || ea.constructor.name , index: index++} morphs[ea.id] = node; data.nodes[node.index] = node if (ea.owner) { data.links.push({ source: morphs[ea.owner.id].index, target: morphs[ea.id].index, weight: 1}) } }) this.draw()
WorldTitleSteppingWordCounterWordsTextButtonTextButton1TextButton2TextTextTextText1CheapWorldLayoutSpecialSyntaxWorkspaceMagnifierButton1Textleftpointing_magnifying_glass.pngd3Wrapperd3ForceLayoutExampleText8d3WrapperHandMorph
WorldGraphD3
X
M