How Export a Dae File

Hello Friends I’m working with an open source 3D editor (three.js) and I need to export a Collada File, the editor works with javascript
If any of you have this code or know the solution to my problem, I would appreciate it greatly

Three.js code

Hi Drager, did you figure out how to export a Collada file in three.js?