From 797ade3e9423b505c8a18d853dbfcfd507cb61ee Mon Sep 17 00:00:00 2001 From: ivanPozdnyakov Date: Thu, 28 Jan 2016 12:17:43 -0500 Subject: [PATCH] custom attributes on elements standardized to Pascal Case, PreAdd Checks now sets defaults if values invalid or if necessary fields are missing, parents with none bundle types are set to being bundles (for future: need to change from conditional or statement to cross referencing against array of valid bundle types) --- VQI_PathwayEditorGUI.js | 338 ++++++++++++++++++++-------------------- 1 file changed, 171 insertions(+), 167 deletions(-) diff --git a/VQI_PathwayEditorGUI.js b/VQI_PathwayEditorGUI.js index 906a853..0687cc7 100644 --- a/VQI_PathwayEditorGUI.js +++ b/VQI_PathwayEditorGUI.js @@ -20,7 +20,7 @@ var VQI_PathwayEditorGUI = function (parent) { var self = this; var nodeTypes = ["bundleone", "bundletwo", "gene", "geneproduct", "protein", "rna", "microrna", "kinase", "ligand", "receptor", "biologicalprocess", "triangle", "rectangle", "circle", "ellipse", "pentagon", "hexagon", "heptagon", "octagon", "star", "diamond", "vee", "rhomboid", "label"]; var edgeLineTypes = ["line", "dashed","dotted"]; - var arrowLineTypes = ["solid", "tbar", "solid"]; + var arrowLineTypes = ["solid", "tbar", "arrow"]; var personId = ""; var pathName = ""; var states = []; @@ -119,9 +119,9 @@ var VQI_PathwayEditorGUI = function (parent) { strVar += " "; strVar += " name<\/td>"; strVar += " percentage<\/td>"; - strVar += " rna distance<\/td>"; - strVar += " cnv distance<\/td>"; - strVar += " mut distance<\/td>"; + strVar += " Rna distance<\/td>"; + strVar += " Cnv distance<\/td>"; + strVar += " Mut distance<\/td>"; strVar += " <\/tr>"; strVar += " <\/table>"; strVar += " <\/div>"; @@ -256,11 +256,11 @@ var VQI_PathwayEditorGUI = function (parent) { strVar += "