= 6; }) .font('14px Helvetica'); function toggle(n) { n.toggle(pv.event.altKey); return partition.reset().root; } root.nodes().each(function(ea, i) { if (i != 0) ea.toggle(); }); return vis; }, }); $morph('DiagBtn').setLabel('Create');]]> Lively Kernel canvas {"x":912,"y":-3}{"x":1,"y":1}""{"x":-12,"y":-8}"Global.lively.Text" ThisdemowasdoneincollaborationwithMarkoRoeder(SAPChiefScientistGroup)usingtheLivelyKernel-ArchitectureWorkbenchwhichisbasedonanideaofDanIngalls(SAPChiefScientistGroup).{"x":297,"y":690}{"x":1,"y":1}16"This demo was done in collaboration with Marko Roeder (SAP Chief Scientist Group) using the Lively Kernel - Architecture Workbench which is based on an idea of Dan Ingalls (SAP Chief Scientist Group).""""534187:TextMorph"{"x":733,"y":56.00003560384115}{"runs":[91,40,69],"values":[{},{"style":"bold"},{}]}{"runs":[71,40,69],"values":[{},{"style":"bold"},{}]}{"x":10,"y":5.333333333333333,"width":0,"height":0}"Global.lively.Text"true2 {"x":650,"y":83}{"x":1,"y":1}""{"x":-12,"y":-8}"Global.lively.Text" URL:{"x":50,"y":92}{"x":1,"y":1}14"URL:""""528978:TextMorph"{"x":38,"y":15.39996592203776}{"x":9,"y":4.666666666666667,"width":0,"height":0}{"runs":[4],"values":[{"style":"bold"}]}truetrue"Global.lively.Text" http://lu00473254a:8222/workspaces(com.sap.ais.christofsDemo)/$metadata{"x":110,"y":92}{"x":1,"y":1}14"528978:TextMorph""http://lu00473254a:8222/workspaces(com.sap.ais.christofsDemo)/$metadata"""{"x":552,"y":15.39996592203776}{"x":9,"y":4.666666666666667,"width":0,"height":0}truetrue"AISURL""Global.lively.Text" {"x":37,"y":132}{"x":1,"y":1}"1183:Morph"{"x":748,"y":624}"ProtoVisContainer"{}true Demo:ActiveInformationStore{"x":742,"y":41}{"x":1,"y":1}30"Demo: Active Information Store"{"x":17,"y":10,"width":0,"height":0}true{"x":566,"y":36}"Global.lively.Text" Update"Update""Update""566111:TextMorph"{"x":16.5,"y":9.900000095367432}{"x":188,"y":92}false{"x":0,"y":0,"width":0,"height":0}"Shrink"nulltrue{"x":699,"y":89}{"x":1,"y":1}"533713:ScriptableButtonMorph"{"x":70,"y":30}falsetrue"var url = new URL($morph('AISURL').textString);\nvar xml = new WebResource(url).get().content;\nvar xmlDOM = new DOMParser().parseFromString(xml, \"text/xml\").documentElement;\n\nvar conv = new lively.Helper.XMLConverter();\nvar json = conv.convertToJSON(xmlDOM);\n\nvar edmx = XMLJSONPrettifier.makePretty(json);\n\nrestructure = function(data) {\n\tvar res = {};\n\n\tdata.Property.each(function(ea) {\n\t\tvar t = ea.Name;\n\t\tvar r = ea.Name;\n\t\tvar pos = ea.Name.indexOf(':');\n\t\tif (pos != -1) {\n\t\t\tt = t.substr(0, pos);\n\t\t\tr = r.substr(pos + 1);\n\t\t}\n\t\tif (!res[t])\n\t\t\tres[t] = {};\n\t\tres[t][r] = ea;\n\t\tif (ea['Property']) {\n\t\t\tObjectHelper.each(restructure(ea), function(key, val) { res[t][r][key] = val; });\n\t\t\tdelete ea.Property;\n\t\t}\n\t\tdelete ea.Name;\n\t});\n\n\treturn res;\n}\n\nif (typeof graph != 'undefined') {\n\tgraph.remove();\n\tdelete graph;\n}\n\nif ($morph('DiagType').getLabel().substring(0,5) == 'Tree ')\n\tgraph = new DynamicNodeLinkTreeDiagram($morph('ProtoVisContainer'));\nelse\n\tgraph = new DynamicSunburstDiagram($morph('ProtoVisContainer'));\ngraph.setData(restructure(edmx), 'term');\ngraph.render();\nthis.setLabel('Update');""Global.lively.Widgets""DiagBtn" Sunburstdiagram"Sunburst diagram""Sunburst diagram""566147:TextMorph"{"x":12.5,"y":10.400000095367432}{"x":188,"y":92}false{"x":0,"y":0,"width":0,"height":0}"Shrink"nulltrue{"x":650,"y":49}{"x":1,"y":1}"547397:ScriptableButtonMorph"{"x":121,"y":31}falsetrue"var m = $morph('DiagType');\nif (m.getLabel().substring(0, 5) == 'Tree ')\n\tm.setLabel('Sunburst diagram');\nelse\n\tm.setLabel('Tree diagram');""DiagType" Wikicontrol"Wiki control""Wiki control""565100:TextMorph"{"x":0,"y":0}{"x":68,"y":42}truetrue = 6; }) .font(function(d) { return (d.firstChild || d.toggled ? 'bold ' : 'italic ') + '14px Helvetica' }); function toggle(n) { n.toggle(pv.event.altKey); curNode = n; return partition.reset().root; } root.nodes().each(function(ea, i) { if (i != 0) ea.toggle(); }); return vis; }, }); $morph('DiagBtn').setLabel('Create');]]>null253