Ver Fonte

RefGraph update view

Piotr Labudda há 8 anos atrás
pai
commit
9d6447779b
2 ficheiros alterados com 10 adições e 2 exclusões
  1. 2 0
      SE/se-lib/Route/RefGraph.php
  2. 8 2
      SE/se-lib/Route/RefGraph.php.view.js

+ 2 - 0
SE/se-lib/Route/RefGraph.php

@@ -25,6 +25,8 @@ class Route_RefGraph extends RouteBase {
 			'HTML_ID_REF_GRAPH' => 'ref_graph_node',
 			'TYPENAME' => Api_WfsNs::typeName($namespace),
 			'PRIMARY_KEY' => $primaryKey,
+			// 'WFS_URL' => Router::getRoute('Test_WfsApi')->getLink(),
+			// 'WFS_URL' => "https://biuro.biall-net.pl/dev-pl/se-master/wfs-data.php/default_db/",
 			// 'JS_CHANNEL_UPDATE_NAME' => $jsFunction['JS_CHANNEL_UPDATE_NAME'],
 			'DBG' => (V::get('DBG', 0, $_GET, 'int') > 0),
 		]);

+ 8 - 2
SE/se-lib/Route/RefGraph.php.view.js

@@ -40,7 +40,7 @@ var _defaultVisJsOptions = {
 		hierarchical: {
 			direction: 'LR',
 			levelSeparation: 500, // hierarchical.levelSeparation	Number	150	The distance between the different levels.
-			nodeSpacing: 40, // hierarchical.nodeSpacing	Number	100	Minimum distance between nodes on the free axis. This is only for the initial layout. If you enable physics, the node distance there will be the effective node distance.
+			nodeSpacing: 50, // hierarchical.nodeSpacing	Number	100	Minimum distance between nodes on the free axis. This is only for the initial layout. If you enable physics, the node distance there will be the effective node distance.
 			treeSpacing: 500, // hierarchical.treeSpacing	Number	200	Distance between different trees (independent networks). This is only for the initial layout. If you enable physics, the repulsion model will denote the distance between the trees.
 			sortMethod: 'directed'
 			// hierarchical.enabled	Boolean	false	Toggle the usage of the hierarchical layout system. If this option is not defined, it is set to true if any of the properties in this object are defined.
@@ -238,7 +238,7 @@ function parseResponseXlinkListRec(_todoGraphData, json, typeName, parentNodeId,
 			if (!_todoGraphData[level]) _todoGraphData[level] = { nodes: [], edges: [] }
 			_todoGraphData[level].nodes.push({
 				id: nodeId,
-				label: makeShortLabel(nodeId) + ' (?)',
+				label: makeShortLabel(nodeId) + ' (+)',
 				group: objectName,
 				_loaded: false,
 				typeName: typeName,
@@ -251,6 +251,12 @@ function parseResponseXlinkListRec(_todoGraphData, json, typeName, parentNodeId,
 		}
 	} else if (p5Utils__isObject(json)) {
 		if(DBG)console.log('TODO: Not implemented - parseResponseRec isObject - fetch more xlink object');
+		// example json: { type: "next",
+		//  @backRefNS: "default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA",
+		//  @backRefPK: "42",
+		//  @typeName: "default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_P…ow:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row",
+		//  @startIndex: "10" }
+
 		// var nodeId = json.substr(json.indexOf('#') + 1)
 		// var objectName = typeName
 		// {