We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca81dd commit 9ae833aCopy full SHA for 9ae833a
src/fileWrite.js
@@ -225,9 +225,9 @@ function makePositionsString(nodeList){
225
else{
226
posJSON = posJSON + '"' + nodeList[i].data('id') + '": ';
227
}
228
- //Scale the coordinates
+ //Scale the coordinates (The y axis should be 0 - 1 from the bottom hence the 1 -)
229
var relX = nodeList[i].position().x / 1080,
230
- relY = nodeList[i].position().y / 720;
+ relY = 1 - nodeList[i].position().y / 720;
231
232
//Make sure the last entry doesn't have a comma
233
if(i < nodeList.length - 1){
0 commit comments