|
@@ -192,11 +192,7 @@ function SidebarGeometry( editor ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- const left = ( screen.width - 500 ) / 2;
|
|
|
- const top = ( screen.height - 500 ) / 2;
|
|
|
-
|
|
|
- const url = URL.createObjectURL( new Blob( [ output ], { type: 'text/plain;charset=utf-8' } ) );
|
|
|
- window.open( url, '_blank', `location=no,left=${left},top=${top},width=500,height=500` );
|
|
|
+ editor.utils.save( new Blob( [ output ] ), `${ geometryName.getValue() || 'geometry' }.json` );
|
|
|
|
|
|
} );
|
|
|
container.add( exportJson );
|