Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 12
Posts: 12   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1097 times and has 11 replies Next Thread
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
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?
[Oct 26, 2023, 5:40:40 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: Webcomponent support in SweetHome3D JS

One of the changes needed would be this: https://github.com/node-projects/sweethome3d-...72b7d3ad5525bdad72e0af8d3
[Oct 26, 2023, 9:16:14 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: Webcomponent support in SweetHome3D JS

and this one https://github.com/node-projects/sweethome3d-...c05b6c30613b5c101e70a4e40
[Oct 26, 2023, 9:35:20 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: Webcomponent support in SweetHome3D JS

Can I create Pull reuests? Never used sourceforge in the last years?
[Oct 26, 2023, 9:36:49 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
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...

see commit: https://github.com/node-projects/sweethome3d-...cbbfc5f6507a62f1a5cc97d57
[Oct 26, 2023, 10:49:25 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: Webcomponent support in SweetHome3D JS



was the wrong commit, this is the correct one: https://github.com/node-projects/sweethome3d-...63ae5f6c4f938b90985781e1d
[Oct 26, 2023, 10:51:29 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: Webcomponent support in SweetHome3D JS

And another fix for activeElement inside shadowRoot: https://github.com/node-projects/sweethome3d-...e619a7388972e1c350031f992
[Oct 26, 2023, 11:05:11 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: Webcomponent support in SweetHome3D JS

here is a sample how it could be used: https://node-projects.github.io/web-component...projects-sweet-home-3d%3E
[Oct 26, 2023, 11:19:38 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jogibear9988
Newbie



Deutschland
Joined: Oct 26, 2023
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: Webcomponent support in SweetHome3D JS

@Puybaret
what do you think about the changes? i would do them myself, if there is a way to create pull requests.
[Oct 28, 2023, 9:55:04 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Kunda
Newbie




Joined: Jan 8, 2017
Post Count: 18
Status: Offline
Reply to this Post  Reply with Quote 
Re: Webcomponent support in SweetHome3D JS

You can make patches and then submit them on the forum or directly to sourceforge
[Nov 1, 2023, 1:04:29 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 12   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved