This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated connections so that there are ports on node top and bottom, a…
…nd arrows are anchored at node center instead of on the specific ports, in response to #89 and #31. No longer need input and output ports, so changed to use just a single port type. Note: now this is annoying when there are cyclic connections as they are displayed over the top of each other.
- Loading branch information
1 parent
f3ba749
commit 402bf8c
Showing
4 changed files
with
66 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
/* Input port that accepts connections from ContextmenuConnections | ||
/* Port that accepts connections from ContextmenuConnections | ||
* | ||
*/ | ||
lore.ore.graph.InputPort=function(_5320){draw2d.InputPort.call(this,_5320);}; | ||
lore.ore.graph.InputPort.prototype=new draw2d.InputPort; | ||
lore.ore.graph.InputPort.prototype.type="lore.ore.graph.InputPort"; | ||
lore.ore.graph.InputPort.prototype.onDrop=function(port){ | ||
if(port.getMaxFanOut&&port.getMaxFanOut()<=port.getFanOut()){return;} | ||
if(this.parentNode.id==port.parentNode.id){} | ||
else{var _5322=new draw2d.CommandConnect(this.parentNode.workflow,port,this); | ||
_5322.setConnection(new lore.ore.graph.ContextmenuConnection()); | ||
this.parentNode.workflow.getCommandStack().execute(_5322);}}; | ||
lore.ore.graph.Port = function(uirep) { | ||
draw2d.Port.call(this,uirep); | ||
}; | ||
lore.ore.graph.Port.prototype = new draw2d.Port; | ||
lore.ore.graph.Port.prototype.type = "lore.ore.graph.Port"; | ||
lore.ore.graph.Port.prototype.onDrop = function(port) { | ||
if (this.parentNode.id != port.parentNode.id) { | ||
var _5322 = new draw2d.CommandConnect(this.parentNode.workflow, this, | ||
port); | ||
_5322.setConnection(new lore.ore.graph.ContextmenuConnection()); | ||
this.parentNode.workflow.getCommandStack().execute(_5322); | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters