Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status:
Offline
Webcomponent support in SweetHome3D JS
I'd like to use SweetHome3D in a webcomponent. But the viewHome function requires a element id. Would it be possible, if I use a HTMLElement as a parameter instead of a string, you use the compoent you get hand over, instead of search yourself for the component. So it could be use inside of a webcomponent?
Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status:
Offline
Re: Webcomponent support in SweetHome3D JS
I now also remove the "define" calls from some additional libs. Cause I use "monaco" editor in my frontend, wich is using require/define and this does not work with the libs. In these the code is only for nodejs support, but I think it is not needed there. Best would be to switch to es6...