Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

[Question] Draw room plan from scratch ? #31

Open
play-dogs opened this issue Sep 14, 2020 · 3 comments
Open

[Question] Draw room plan from scratch ? #31

play-dogs opened this issue Sep 14, 2020 · 3 comments

Comments

@play-dogs
Copy link

Hi,
Thank you for this great package.
I was wondering if it is possible with your package to draw a room plan, or a house plan, but only the border, without any background image.
Let's say that for example you want the user to draw his house's border in order to tell him how much square meters he has?

Thank you in advance,

Mike

@c15yi
Copy link
Member

c15yi commented Sep 15, 2020

Hey Mike,
thanks for your question.
We currently don't support calculating the area of some shape, but that might come in the future. (Currently, I have little time since I am involved in other projects)

Generally, you could display a white background image and let the user draw on it.
I guess you would have to get to the correct scale for the drawing, maybe the user could start with the first outside wall and then your application can ask him/her how long that wall should be. I think with that info you could calculate the correct scale factor and the user can then draw the other walls.

Hope that helps if you have further questions feel free to ask. 🙂

Christian

@play-dogs
Copy link
Author

Hi,
Thank you for your quick and complete answer.
The idea of calculating the shape was an example and is not my current goal.
I just would like to be able to design a room plan. So the solution with the white background could do it. Even without the scaling feature at the beginning. So I could do that with your package?
I will try this weekend if I have time.
Thank you again for your help :)
Best,
Michael

@c15yi
Copy link
Member

c15yi commented Sep 16, 2020

It might somehow work, although it is probably not optimal for that.

I think you could have issues with:

  • there is only one continuous line when adding a point it is connected to the last one. This will probably hinder you on drawing inner walls
  • you cant save the point constellation. To archive it you can only do a screenshot I guess.

Nevertheless, it would be great to hear from your experience with the package and if you have any suggestions feel free to open another issue for it. 🙂

Best regards,
Christian

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants