OK,

Im considering that [jsffi](https://nim-lang.org/docs/jsffi.html#jsnew,auto) is 
good way.
    
    
    var scene = jsnew(Scene())
    var geometry = jsnew(BoxGeometry( 1, 1, 1,0,0,0 ))
    

will transpiled as
    
    
    var scene_69011 = (new THREE.Scene());
    var geometry_69079 = (new 
1.0000000000000000e+00.THREE.BoxGeometry(1.0000000000000000e+00, 
1.0000000000000000e+00, 0.0, 0.0, 0.0));
    
    

typeddeclaration is
    
    
    proc Scene*(): JsObject {. importcpp: "THREE.Scene" .}
    proc BoxGeometry*(width,
                    height,
                    depth,
                    widthSegments,
                    heightSegments,
                    depthSegments : float): JsObject {. importcpp: 
"THREE.BoxGeometry" .}
    

Do you know, why is constructor with parameters wrong transpiled?

thanks

Reply via email to