<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: View Position in Tools</title>
    <link>https://community.cisco.com/t5/tools/view-position/m-p/3513460#M223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;Thanks a lot for your prompt answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I do understand this correctly. If &lt;STRONG&gt;X&lt;/STRONG&gt; and &lt;STRONG&gt;Y&lt;/STRONG&gt; are set to a node, the dataProcessor "force" or "nextforce" should be ignored.&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;That really would make sense to me, but unfortunately it behaves in a different manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time we save nodes with (X,Y) and reload them we have a delta. Most times it's small but sometimes its really big.&lt;/P&gt;&lt;P&gt;This does not happen if we do not use "force" or "nextforce".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2015 08:18:00 GMT</pubDate>
    <dc:creator>m.rainer</dc:creator>
    <dc:date>2015-12-23T08:18:00Z</dc:date>
    <item>
      <title>View Position</title>
      <link>https://community.cisco.com/t5/tools/view-position/m-p/3513458#M221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are trying to save the position of our nodes and nodesets to database.&lt;/P&gt;&lt;P&gt;Everything works fine so far. But when using&lt;/P&gt;&lt;P class="p1"&gt;"dataProcessor&lt;SPAN class="s1"&gt;: force or nextforce"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;the nodes move automatically when being saved and reloaded. &lt;/P&gt;&lt;P class="p1"&gt;When using dataProcessor we recognize some new values in nodes. (px, py or dx, dy).&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Can anybody help us to understand what these values are and how we have to use them when saving positions? &lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Thanks a lot&lt;/P&gt;&lt;P class="p1"&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 13:37:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/view-position/m-p/3513458#M221</guid>
      <dc:creator>m.rainer</dc:creator>
      <dc:date>2015-12-22T13:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: View Position</title>
      <link>https://community.cisco.com/t5/tools/view-position/m-p/3513459#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have properties &lt;EM&gt;&lt;STRONG&gt;x&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;y&lt;/STRONG&gt;&lt;/EM&gt; set for the nodes, 'force layout' skips those nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my last project I also had savable layout (but I stored data in local data storage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We had an object dumpData, which had a property 'nodes' (array). Each node had x and y properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14508056875372559" jivemacro_uid="_14508056875372559"&gt;
&lt;P&gt;$scope.readDumpData = function(){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if($scope.dumpData &amp;amp;&amp;amp; $scope.dumpData.nodes ){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $scope.dumpData.nodes.forEach(function(node, index, nodes){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; nodeInst = $scope.topo.getNode($scope.topologyData.nodesDict.getItem(node.nodeName));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(nodeInst != undefined)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; nodeInst.position({'x': node.x, 'y': node.y});&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is not typical in this code is $scope and something called nodesDict. $scope is an AngularJS object for interaction within directives/controllers/etc. nodesDict is a nx.data.Dictionary object that associates a node's name with its internal id. This is specific to our project, but you may try to modify and reuse the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get back to me if it has not solved the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:34:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/view-position/m-p/3513459#M222</guid>
      <dc:creator>alzverev</dc:creator>
      <dc:date>2015-12-22T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: View Position</title>
      <link>https://community.cisco.com/t5/tools/view-position/m-p/3513460#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;Thanks a lot for your prompt answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I do understand this correctly. If &lt;STRONG&gt;X&lt;/STRONG&gt; and &lt;STRONG&gt;Y&lt;/STRONG&gt; are set to a node, the dataProcessor "force" or "nextforce" should be ignored.&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;That really would make sense to me, but unfortunately it behaves in a different manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time we save nodes with (X,Y) and reload them we have a delta. Most times it's small but sometimes its really big.&lt;/P&gt;&lt;P&gt;This does not happen if we do not use "force" or "nextforce".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 08:18:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/view-position/m-p/3513460#M223</guid>
      <dc:creator>m.rainer</dc:creator>
      <dc:date>2015-12-23T08:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: View Position</title>
      <link>https://community.cisco.com/t5/tools/view-position/m-p/3513461#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One tips for that, if node already has x,y attribute and you don't want that involve in force layout. you can add '&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;"&gt;fixed:true&lt;/SPAN&gt;' to you data to achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 00:06:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/view-position/m-p/3513461#M224</guid>
      <dc:creator>aaikepae</dc:creator>
      <dc:date>2016-02-11T00:06:52Z</dc:date>
    </item>
  </channel>
</rss>

