Search found 21 matches

by kingoftailor
Sat Aug 13, 2022 11:44 am
Forum: Developers
Topic: Canvas size in Sweet Home 3D JS
Replies: 10
Views: 8223

Re: Sweet Home 3D JS Online

<r>I modified the code. I omitted the planView.paintComponent line and put back the part planView.gridColor = oldGridColor from the original code. Even so, the downloaded image is perfectly fine and I don't see any changes in the floor plan after reloading the page.<br/>
<br/>
The final code:<br ...
by kingoftailor
Sat Aug 13, 2022 9:49 am
Forum: Developers
Topic: Canvas size in Sweet Home 3D JS
Replies: 10
Views: 8223

Re: Sweet Home 3D JS Online

<r>The problem was that a new canvas was created. This is how it works:<br/>

<CODE><s>[code]</s><i>
</i>function AlaprajzMentes() {
let downloadLink = document.createElement('a');
downloadLink.setAttribute('download', 'alaprajz.jpg');

let canvas = document.getElementById('home-plan.canvas ...
by kingoftailor
Fri Aug 12, 2022 5:25 pm
Forum: Developers
Topic: Canvas size in Sweet Home 3D JS
Replies: 10
Views: 8223

Re: Sweet Home 3D JS Online

<r>It's almost good. There is only a problem with the background color. It should be all white. (The invisible part is not white)<br/>

<CODE><s>[code]</s><i>
</i>function AlaprajzMentes() {
let downloadLink = document.createElement('a');
downloadLink.setAttribute('download', 'alaprajz.jpg ...
by kingoftailor
Fri Aug 12, 2022 12:56 pm
Forum: Developers
Topic: Canvas size in Sweet Home 3D JS
Replies: 10
Views: 8223

Re: Sweet Home 3D JS Online

<r>That's right, but you also posted in the blog that this is how you can save it as an image.<br/>
<br/>
No idea why it doesn't save the whole canvas?<br/>
<br/>
It looks like this:<br/>
<br/>
<IMG src="https://megveszlak.hu/images/alaprajz-rajz%20%283%29.jpg"><s>[img]</s><URL url="https ...
by kingoftailor
Fri Aug 12, 2022 11:47 am
Forum: Developers
Topic: Canvas size in Sweet Home 3D JS
Replies: 10
Views: 8223

Re: Sweet Home 3D JS Online

<r>The problem is not with printing, but with saving as an image:<br/>

<CODE><s>[code]</s><i>
</i>function DownloadAsImage() {
let downloadLink = document.createElement('a');
downloadLink.setAttribute('download', 'plan.jpg');
let canvas = document.getElementById('home-plan.canvas');

var ...
by kingoftailor
Thu Aug 11, 2022 8:41 pm
Forum: Developers
Topic: Canvas size in Sweet Home 3D JS
Replies: 10
Views: 8223

Re: Sweet Home 3D JS Online

<t>I would like to use the floor plan designer in such a way that it can be used on desktop, tablet and mobile.<br/>
<br/>
For example, the user goes to an apartment and draws the floor plan on a mobile phone, then completes it on the desktop computer and prints it out.<br/>
<br/>
I found several ...
by kingoftailor
Tue Jun 14, 2022 6:39 pm
Forum: Developers
Topic: Autosave 3djs
Replies: 10
Views: 7238

Re: Autosave 3djs

<t>I resolved the problem.<br/>
<br/>
Lack of write permission to folder caused the error.<br/>
<br/>
I have only one problem. I can not able to delete the sh3d files from the apache homes folder.<br/>
<br/>
I have got exception:<br/>
System.UnauthorizedAccessException: Access to the path 'xxxx.sh3d ...
by kingoftailor
Wed Jun 08, 2022 11:28 am
Forum: Developers
Topic: Autosave 3djs
Replies: 10
Views: 7238

Autosave 3djs

<r>Hello Emmanuel, Renaud,<br/>
<br/>
I tried to set it to automatically save changes to the file when editing an empty sh3d file, but it returns an error 500.<br/>
<br/>
<br/>
I have added the following to the currently working planner:<br/>
<br/>
var application = new SweetHome3DJSApplication(<br ...
by kingoftailor
Sat Jun 04, 2022 7:17 am
Forum: Developers
Topic: Saving by button click and reload online 3djs
Replies: 1
Views: 4543

Saving by button click and reload online 3djs

<r>I would like to save and reload the sh3d file by saving the file with the click of a button.<br/>
<br/>
The latest version of 3djs online is running on my own server (<URL url="https://megveszlak.hu/alaprajz-tervezo">https://megveszlak.hu/alaprajz-tervezo</URL>)<br/>
<br/>
When starts the program ...
by kingoftailor
Wed Mar 30, 2022 7:57 pm
Forum: Installation
Topic: Installing Sweet Home 3D JS Online on my server
Replies: 17
Views: 8369

Re: Sweet Home 3D JS Online

Your software is very cool.

Here is the online version:

https://megveszlak.hu/alaprajz-tervezo