I thought about clipping, but that seems complicated.  I also thought 
about the raster idea.  This begs the question, can an svg, within 
viewbox only, be converted to a raster on mousedown?  If it can, the 
rest is easy.

[EMAIL PROTECTED] wrote:

>I wonder what effect appending a clip path around the svg would have?
>Maybe it would increase the performance?
>
>-----Original Message-----
>From: Pete d'Oronzio [mailto:[EMAIL PROTECTED] 
>Sent: Friday, February 25, 2005 2:45 PM
>To: svg-developers@yahoogroups.com
>Subject: RE: [svg-developers] Panning
>
>
>  
>
>>I want the SVG to move as I drag the mouse, similar to the 
>>Adobe viewer pan tool, but I want the svg to be clipped at 
>>the viewbox edges until the mouseup event.  The adobe viewer 
>>clips around the edges until mouse up, making it very fast 
>>when moving the SVG around.
>>    
>>
>
>I think that the Adobe viewer is panning by moving a raster image around
>until you mouse up.  When you mouse up, then it modifies the DOM and
>refreshes the image.  I don't think there's any clipping being done,
>it's
>just that there's no (rendered) image around the edges to show.
>
>That said, I don't know how you could tell the Adobe viewer to do that.
>Though... If it's in your own app, (as opposed to a browser) you
>probably
>have access to that raster image yourself.  You could move the raster
>image
>around yourself and then tell Adobe to refresh when you're done.
>
>hth
>
>-pete
>
>  
>
>>[EMAIL PROTECTED] wrote:
>>
>>    
>>
>>>You asked how to keep it from refreshing svg until mouse up 
>>>      
>>>
>>event.  The 
>>    
>>
>>>svg doesn't change anything on its own, you do it in script.  If you 
>>>don't want anything to change until mouse up, then do your 
>>>modifications to the SVG on the mouseup event.
>>>
>>>It sounds like maybe your doing a click and drag method of panning.  
>>>Why don't you just store the clientx/clienty in a variable on 
>>>mousedown, and hold them there until mouse up, then you can 
>>>      
>>>
>>calculate 
>>    
>>
>>>the distance dragged and update your svg onmouseup event.
>>>
>>>--KG
>>>
>>>-----Original Message-----
>>>From: Rerun [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, February 25, 2005 2:09 PM
>>>To: svg-developers@yahoogroups.com
>>>Subject: [svg-developers] Panning
>>>
>>>
>>>Maybe I should rephrase my question.  Is there a way to 
>>>      
>>>
>>freeze the SVG 
>>    
>>
>>>while my home-made panning tool is panning, similar to what 
>>>      
>>>
>>the Adobe 
>>    
>>
>>>viewer pan tool doese?  For large SVG content, panning can be slow 
>>>otherwise.  Thanks.
>>>
>>>
>>>      
>>>
>
>
>-----
>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 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