Skip to content

Commit 087f4f8

Browse files
committed
Fixed reading y coordinates and became semver compliant.
1 parent 1bb8305 commit 087f4f8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graph-creator",
3-
"version": "0.8.8",
3+
"version": "0.8.1",
44
"main": "index.html",
55
"window": {
66
"height": 1024,

src/fileWrite.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ function parsePositions(posData){
275275
//Go through each nodes position and assign it
276276
for(key in positions){
277277
cy.getElementById(key).position('x', 1080 * positions[key][0]);
278-
cy.getElementById(key).position('y', 720 * positions[key][1]);
278+
279+
//We have to adjust the y positions as they're inverted when we write them
280+
cy.getElementById(key).position('y', 720 * (positions[key][1] - 1) * -1);
279281
}
280282
}
281283

0 commit comments

Comments
 (0)