From 1427e9bf4f85823164b4573a3bcf1ba3ba6b04d0 Mon Sep 17 00:00:00 2001
From: ziejd2
Date: Wed, 24 Feb 2021 15:19:03 -0600
Subject: Moving final GENENET8 version to master
---
sourcecodes/layout_svg_no.php | 69 +++++++++++++++++++++++++++++--------------
1 file changed, 47 insertions(+), 22 deletions(-)
(limited to 'sourcecodes/layout_svg_no.php')
diff --git a/sourcecodes/layout_svg_no.php b/sourcecodes/layout_svg_no.php
index f32b4054..f7268788 100644
--- a/sourcecodes/layout_svg_no.php
+++ b/sourcecodes/layout_svg_no.php
@@ -14,10 +14,9 @@ include("header_new.inc");
include("input_validate.php");
$keyval=valid_keyval($_GET["My_key"]);
-//$dir="./data/";
-$dir="/var/lib/genenet/bnw/";
+$dir="./data/";
-$svg_file=$keyval."network_no_edge.svg";
+$svg_file=$dir.$keyval."network_no_edge.svg";
$png_file=$keyval."network_no_edge.png";
@@ -60,8 +59,7 @@ function calcHeight()
@@ -70,15 +68,16 @@ if(file_exists($filename1))
}
?>
-
+
- - View structure matrix
+
- View structure matrix
- View network parameters
@@ -113,35 +112,61 @@ if(file_exists($filename1))
//onload = "makeDraggable(evt)";
-
-d3.xml("", function(dumm){
- var data1 = ;
- var data2 = data1.join("")
- parser = new DOMParser();
- documentFragment = parser.parseFromString(data2,"text/xml");
+
+d3.xml("", function(error, documentFragment){
+ if (error) {console.log(error); return;}
+
var svgNode = documentFragment
.getElementsByTagName("svg")[0];
d3.select("#svg_div").node().appendChild(svgNode);
+ // nodes = d3.selectAll('.node');
+ // links = d3.selectAll('.edge');
width = svgNode.getBBox().width*5;
height = svgNode.getBBox().height*5;
-});
+ // nodes
+ // .call(d3.drag()
+ // .on("start",dragstarted)
+ // .on("drag",dragged)
+ // .on("end",dragended));
+
+ // links
+ // .call(d3.drag()
+ // .on("start",dragstarted)
+ // .on("drag",dragged)
+ // .on("end",dragended));
+
+
+ //function dragstarted(d) {
+ // d3.select(this).raise().classed("active", true);
+ //}
+
+ //function dragged(d) {
+ //this.x = this.x || 0;
+ //this.y = this.y || 0;
+ //this.x += d3.event.dx;
+ //this.y += d3.event.dy;
+ //d3.select(this)
+ // .attr("transform","translate(" + this.x + "," + this.y + ")");
+ //}
+
+ //function dragended(d) {
+ //d3.select(this).classed("active", false);
+ //}
+
+ //console.log(svgNode);
+ //console.log(nodes);
+ //console.log(links);
+
+ });