@@ -461,11 +461,11 @@ function objToYaml(obj) {
461
461
obj . roomplans . forEach ( obj => {
462
462
string += "\t- name: " + obj . name + "\n" ;
463
463
string += "\t\tpoints:" + "\n" ;
464
- string += "\t\t\t - [ " + Math . round ( obj . x1 / 100 ) + ", " + Math . round ( obj . y1 / 100 ) + "]\n" ;
465
- string += "\t\t\t - [ " + Math . round ( obj . x2 / 100 ) + ", " + Math . round ( obj . y1 / 100 ) + "]\n" ;
466
- string += "\t\t\t - [ " + Math . round ( obj . x2 / 100 ) + ", " + Math . round ( obj . y2 / 100 ) + "]\n" ;
467
- string += "\t\t\t - [ " + Math . round ( obj . x1 / 100 ) + ", " + Math . round ( obj . y2 / 100 ) + "]\n" ;
468
- string += "\t\t\t - [ " + Math . round ( obj . x1 / 100 ) + ", " + Math . round ( obj . y1 / 100 ) + "]\n" ;
464
+ string += "\t\t\t - [ " + ( Math . round ( obj . x1 ) / 100 ) + ", " + ( Math . round ( obj . y1 ) / 100 ) + "]\n" ;
465
+ string += "\t\t\t - [ " + ( Math . round ( obj . x2 ) / 100 ) + ", " + ( Math . round ( obj . y1 ) / 100 ) + "]\n" ;
466
+ string += "\t\t\t - [ " + ( Math . round ( obj . x2 ) / 100 ) + ", " + ( Math . round ( obj . y2 ) / 100 ) + "]\n" ;
467
+ string += "\t\t\t - [ " + ( Math . round ( obj . x1 ) / 100 ) + ", " + ( Math . round ( obj . y2 ) / 100 ) + "]\n" ;
468
+ string += "\t\t\t - [ " + ( Math . round ( obj . x1 ) / 100 ) + ", " + ( Math . round ( obj . y1 ) / 100 ) + "]\n" ;
469
469
} ) ;
470
470
471
471
string += "nodes: \n" ;
@@ -474,7 +474,7 @@ function objToYaml(obj) {
474
474
var x = currentUnit == "m" ? Math . abs ( probe . x - firstCoordinateOffsetX ) : Math . abs ( probe . x - firstCoordinateOffsetX ) / 3.2808 ;
475
475
var y = currentUnit == "m" ? Math . abs ( probe . y - firstCoordinateOffsetY ) : Math . abs ( probe . y - firstCoordinateOffsetY ) / 3.2808 ;
476
476
string += "\t- name: " + probe . name + "\n" ;
477
- string += "\tpoint: [" + + Math . round ( x / 100 ) + "," + ( y / 100 ) + "," + Math . round ( y / 100 ) + ", 0]\n" ;
477
+ string += "\tpoint: [" + ( Math . round ( x ) / 100 ) + "," + ( Math . round ( y ) / 100 ) + ", 0]\n" ;
478
478
string += "\tfloors: [\"first\"]\n" ;
479
479
} ) ;
480
480
} ) ;
0 commit comments