File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ class BuildingShapeUtils extends ShapeUtils {
2424 const elements = way . getElementsByTagName ( 'nd' ) ;
2525
2626 // Get the coordinates of all the nodes and add them to the shape outline.
27-
2827 for ( const element of elements ) {
2928 ref = element . getAttribute ( 'ref' ) ;
3029 nodes . push ( nodelist [ ref ] ) ;
Original file line number Diff line number Diff line change @@ -127,6 +127,13 @@ rectangle.lineTo(-4.332738077015795, 5.88221335051411);
127127rectangle . lineTo ( 4.332747472106493 , 5.88221335051411 ) ;
128128rectangle . lineTo ( 4.332747472106493 , - 5.882209888874915 ) ;
129129
130+ const rectangle = new Shape ( ) ;
131+ rectangle . moveTo ( - 4.332738077015795 , - 5.882209888874915 ) ;
132+ rectangle . lineTo ( - 4.332738077015795 , 5.88221335051411 ) ;
133+ rectangle . lineTo ( 4.332747472106493 , 5.88221335051411 ) ;
134+ rectangle . lineTo ( 4.332747472106493 , - 5.882209888874915 ) ;
135+ rectangle . lineTo ( - 4.332738077015795 , - 5.882209888874915 ) ;
136+
130137test ( 'Extents no Rotation' , ( ) => {
131138 expect ( BuildingShapeUtils . extents ( rightTriangle ) ) . toStrictEqual ( [ - 1 , - 1 , 1 , 1 ] ) ;
132139} ) ;
You can’t perform that action at this time.
0 commit comments