From b9b3b4b74e70cae099a6ccb0dd06427fdb5a2279 Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Tue, 6 Nov 2018 13:39:01 -0500 Subject: Remove obsolete dgbuilder SDNC dgbuilder is no longer used - dgbuilder is now in CCSDK. Change-Id: I496e346ed3864779f36c00c354742f7d36447399 Issue-ID: SDNC-488 Signed-off-by: Timoney, Dan (dt5972) Former-commit-id: e38fe292bd511784d1c145e84a9af7d94b6f3669 --- dgbuilder/public/util/js/dgeToXml.js.imp | 147 ------------------------------- 1 file changed, 147 deletions(-) delete mode 100644 dgbuilder/public/util/js/dgeToXml.js.imp (limited to 'dgbuilder/public/util/js/dgeToXml.js.imp') diff --git a/dgbuilder/public/util/js/dgeToXml.js.imp b/dgbuilder/public/util/js/dgeToXml.js.imp deleted file mode 100644 index 199b1c6c..00000000 --- a/dgbuilder/public/util/js/dgeToXml.js.imp +++ /dev/null @@ -1,147 +0,0 @@ -function getNodeToXml(){ - var nodeSet=[]; - var activeWorkspace=RED.view.getWorkspace(); - RED.nodes.eachNode(function(n) { - if (n.z == activeWorkspace) { - nodeSet.push({n:n}); - } - }); - - var exportableNodeSet = RED.nodes.createExportableNodeSet(nodeSet); - console.dir(exportableNodeSet); - console.log(JSON.stringify(exportableNodeSet)); - - function getDgStartNode(nodeList){ - for(var i=0;i 0){ - var spacing = Array(level).join(" "); - xmlStr=xmlStr.replace(/\n/g,spacing); - fullXmlStr +=xmlStr; - - console.log(xmlStr); - }else{ - fullXmlStr +=xmlStr; - console.log(xmlStr); - } - } - - //console.log("startTag:" + startTag); - - var wiredNodes = []; - if(node != null && node.wires != null && node.wires[0] != null && node.wires[0] != undefined && node.wires[0].length >0 ){ - wiredNodes=node.wires[0]; - //sort based on y position - wiredNodes.sort(function(a, b){ - return a.y-b.y; - }); - } - - for(var k=0;wiredNodes != null && k0){ - var spacing = Array(level).join(" "); - fullXmlStr += spacing + ""; - console.log(spacing + ""); - }else{ - fullXmlStr += ""; - console.log(""); - } - } - - if(level>0){ - level=level-1; - } - console.log("endTag:" + startTag); - //console.log("xml:" + fullXmlStr); - } - console.log("fullXmlStr:" + fullXmlStr); - - /* - for (var link in allLinks){ - var nd = RED.nodes.node(link); - console.dir(nd); - var obj = RED.nodes.getNodeSet(RED.view.getWorkspace()); - console.dir(obj); - } - */ - - - //console.dir(RED.nodes.getAllFlowNodes()); - //console.dir(RED.nodes.getType()); - /* - console.dir(RED.nodes.nodes); - RED.nodes.nodes.forEach(function (node){ - console.dir(node); - }); - */ - - /*var map = {68: false, 69: false, 86: false}; - $("#node-input-validate").keydown(function(e) { - if (e.keyCode in map) { - map[e.keyCode] = true; - if (map[68] && map[69] && map[86]) { - // FIRE EVENT - return "abcd"; - } - } - }).keyup(function(e) { - if (e.keyCode in map) { - map[e.keyCode] = false; - } - }); - */ - return fullXmlStr; -} -- cgit 1.2.3-korg