Jacques wrote:

>Has anyone done any work on a Snap to Grid kind of solution in SVG?
>
>  
>
I have this in my javascript code that gets the user space cordinates.

var snappedX = X;
if (gridSize)
{
    snappedX  = Math.round(X*gridSize)/gridSize;
}

of course this only works if your grid is uniform.

>I'm working on an application that will produce results in organogram 
>style visual. 
>The client wants the user to be able to drag and drop composite images 
>(symbol, individual's name, overlays, etc) and when dropped it should 
>snap to a cell area within a grid. 
>Basically the user can't reposition pixel by pixel, but rather by 
>cells.
>
>Thanks
>Jacques.
>
>
>
>
>
>
>-----
>To unsubscribe send a message to: [EMAIL PROTECTED]
>-or-
>visit http://groups.yahoo.com/group/svg-developers and click "edit my 
>membership"
>---- 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>  
>



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to