Skip to content

Commit a80f5cf

Browse files
committed
adjust port connection position
always a fixed distance from the top of the port
1 parent bf52549 commit a80f5cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.marginallyclever</groupId>
66
<artifactId>nodegraphcore</artifactId>
7-
<version>1.5.5</version>
7+
<version>1.5.6</version>
88

99
<name>NodeGraphCore</name>
1010
<description>Flow based programming in Java.</description>

src/main/java/com/marginallyclever/nodegraphcore/port/Port.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ public String toString() {
169169
* @return the center of the input connection point of this variable
170170
*/
171171
public Point getInPosition() {
172-
return new Point((int)rectangle.getMinX(), rectangle.y+rectangle.height/2);
172+
return new Point((int)rectangle.getMinX(), rectangle.y+DEFAULT_HEIGHT/2);
173173
}
174174

175175
/**
176176
* Returns the center of the output connection point of this variable
177177
* @return the center of the output connection point of this variable
178178
*/
179179
public Point getOutPosition() {
180-
return new Point((int)rectangle.getMaxX(), rectangle.y+rectangle.height/2);
180+
return new Point((int)rectangle.getMaxX(), rectangle.y+DEFAULT_HEIGHT/2);
181181
}
182182

183183
public JSONObject toJSON() throws JSONException {

0 commit comments

Comments
 (0)