Jump to content

JS Help With Canvas


TapeGun007

Recommended Posts

So... I'm more of a PHP/mySQL guy.  

I'm going to be attempting to program a graph drawing type of program that I want to be specifically web based.  Here is what I would like to accomplish (hopefully, it will make sense):

  • I need a grid just like graph paper, only smaller, tighter squares.
  • I want to draw lines that will snap to that grid.
  • While the line is being drawn, it should say how many feet that line is.
  • Once the line is drawn, I should be able to select it and move it or resize it.
  • It needs to work with both mouse and touchscreen.
  • I want to be able to save the graph and all the drawings on it and be able to recall them later.

I have found a few examples that do various elements of the above, but I cannot seem to figure out how to combine them into a single program.  If you have any places I can go to read about this, I'm more than willing to read and learn.

Basically, I'll be graphing homes from a birds eye perspective.

 

Here is my work so far:

https://depests.com/leads/test/graph2.html - This has a graph and the object snaps to grid.

https://depests.com/leads/test/test2.html - This allows me to draw lines, but they don't snap to a grid.

https://depests.com/leads/test/test3.html - This tracks mouse and/or ipad touch movement, so I have something as sort of a guide on touch/mouse functionality.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.