corrected directionality to point right way
This commit is contained in:
parent
08c7c3b517
commit
5839ca191c
3 changed files with 6 additions and 6 deletions
|
@ -84,10 +84,10 @@ function initFD(){
|
||||||
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, true, canvas);
|
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, true, canvas);
|
||||||
}
|
}
|
||||||
else if (direction == "from-to") {
|
else if (direction == "from-to") {
|
||||||
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, false, canvas);
|
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, true, canvas);
|
||||||
}
|
}
|
||||||
else if (direction == "to-from") {
|
else if (direction == "to-from") {
|
||||||
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, true, canvas);
|
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, false, canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for edge label in data
|
//check for edge label in data
|
||||||
|
|
|
@ -84,10 +84,10 @@ function initRG(){
|
||||||
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, true, canvas);
|
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, true, canvas);
|
||||||
}
|
}
|
||||||
else if (direction == "from-to") {
|
else if (direction == "from-to") {
|
||||||
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, false, canvas);
|
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, true, canvas);
|
||||||
}
|
}
|
||||||
else if (direction == "to-from") {
|
else if (direction == "to-from") {
|
||||||
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, true, canvas);
|
this.edgeHelper.arrow.render({ x: pos.x, y: pos.y }, { x: posChild.x, y: posChild.y }, 40, false, canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for edge label in data
|
//check for edge label in data
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<%= form_for @synapse, url: user_synapse_url do |form| %>
|
<%= form_for @synapse, url: user_synapse_url do |form| %>
|
||||||
<h3>Edit Synapse</h3>
|
<h3>Edit Synapse</h3>
|
||||||
<% if Item.visibleToUser(user, nil).count > 0 %>
|
<% if Item.visibleToUser(user, nil).count > 0 %>
|
||||||
<label for="node1_id">Choose First <%= @synapse.category %></label>
|
<label for="node1_id">Choose First Topic</label>
|
||||||
<%= select "node1_id", "node1", Item.order("name ASC").visibleToUser(user, nil).map {|p| [ p.name, p.id ] }, { :selected => @synapse.node1_id } %>
|
<%= select "node1_id", "node1", Item.order("name ASC").visibleToUser(user, nil).map {|p| [ p.name, p.id ] }, { :selected => @synapse.node1_id } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<label for="item_category">Directionality of the Connection</label>
|
<label for="item_category">Directionality of the Connection</label>
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
<label for="item_desc">Describe The Connection</label>
|
<label for="item_desc">Describe The Connection</label>
|
||||||
<%= form.text_field :desc, class: "description" %>
|
<%= form.text_field :desc, class: "description" %>
|
||||||
<% if Item.visibleToUser(user, nil).count > 0 %>
|
<% if Item.visibleToUser(user, nil).count > 0 %>
|
||||||
<label for="node2_id">Choose Second <%= @synapse.category %></label>
|
<label for="node2_id">Choose Second Topic</label>
|
||||||
<%= select "node2_id", "node2", Item.order("name ASC").visibleToUser(user, nil).map {|p| [ p.name, p.id ] }, { :selected => @synapse.node2_id } %>
|
<%= select "node2_id", "node2", Item.order("name ASC").visibleToUser(user, nil).map {|p| [ p.name, p.id ] }, { :selected => @synapse.node2_id } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<label for="synapse_permission">Permission</label>
|
<label for="synapse_permission">Permission</label>
|
||||||
|
|
Loading…
Reference in a new issue