Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

responsive draw #270

Open
supun19 opened this issue Jul 12, 2018 · 3 comments
Open

responsive draw #270

supun19 opened this issue Jul 12, 2018 · 3 comments

Comments

@supun19
Copy link

supun19 commented Jul 12, 2018

can you suggest me to how to draw responsive for all the screen.

@JohnMcLear
Copy link
Owner

Can you explain exactly what you mean?

@supun19
Copy link
Author

supun19 commented Jul 16, 2018

I have two major issues. One is some of the points (i.e. points drawn close to the edges in larger screens like laptop )cannot be seen in mobile view. I doubt whether it's due to mobile view not having larger cordinates like the laptop view. The other problem is if I draw in larger screen and switch to a smaller view some the drawings cannot be seen instead of dropping the ratio and showing the whole drawing. Can you help me out? I can contribute to fix this if it's necessary

@supun19
Copy link
Author

supun19 commented Jul 17, 2018

This is the way how we tried. We made up the canvas to 14:9 ratio. Whatever the size of the screen, we sent cordinates converted to 1400:900 canvas. It worked but we faced several problems, one was, a long line was drawn at the start of drawing.
We couldn't find a method to convert the cordinates loaded from the db which are in 1400:900 cordinate system. Can you suggest me a method? We used 'resize' method in paper js to scale the current coordinates when the window is resized. But we couldn't find how to apply the scale method in paper js. Can you suggest me a good method?

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