<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library</title>
	<atom:link href="http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/</link>
	<description>Andrea Leofreddi's homepage</description>
	<lastBuildDate>Fri, 27 Jan 2012 22:16:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Corey Wirun</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1759</link>
		<dc:creator>Corey Wirun</dc:creator>
		<pubDate>Fri, 27 Jan 2012 22:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1759</guid>
		<description>Hi Andrea,

Do you know if this will work if the  element is contained in an HTML file?  Does not look like it, as of yet...

Regards,
Corey.</description>
		<content:encoded><![CDATA[<p>Hi Andrea,</p>
<p>Do you know if this will work if the  element is contained in an HTML file?  Does not look like it, as of yet&#8230;</p>
<p>Regards,<br />
Corey.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1733</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 19 Jan 2012 18:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1733</guid>
		<description>How can this be adapted if you have multiple group/viewpoints.

My SVG will have nested SVGs, some of which are images, we need to be able to manually drag these images individually.

If I have multiple SVGs in with group/viewpoints only the first one found moves, what I could do with is a way the select the required SVG on mouseDown.</description>
		<content:encoded><![CDATA[<p>How can this be adapted if you have multiple group/viewpoints.</p>
<p>My SVG will have nested SVGs, some of which are images, we need to be able to manually drag these images individually.</p>
<p>If I have multiple SVGs in with group/viewpoints only the first one found moves, what I could do with is a way the select the required SVG on mouseDown.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: talos</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1675</link>
		<dc:creator>talos</dc:creator>
		<pubDate>Fri, 13 Jan 2012 03:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1675</guid>
		<description>I&#039;ve adapted svgpan as a jQuery plugin.  This lets you apply the features to arbitrary in-page SVG data.

https://github.com/talos/jquery-svgpan/
http://talos.github.com/jquery-svgpan/demo.html

The main use case is for visualizations from SVG generators like d3:

http://mbostock.github.com/d3/

Thanks for putting this together!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve adapted svgpan as a jQuery plugin.  This lets you apply the features to arbitrary in-page SVG data.</p>
<p><a href="https://github.com/talos/jquery-svgpan/" rel="nofollow">https://github.com/talos/jquery-svgpan/</a><br />
<a href="http://talos.github.com/jquery-svgpan/demo.html" rel="nofollow">http://talos.github.com/jquery-svgpan/demo.html</a></p>
<p>The main use case is for visualizations from SVG generators like d3:</p>
<p><a href="http://mbostock.github.com/d3/" rel="nofollow">http://mbostock.github.com/d3/</a></p>
<p>Thanks for putting this together!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Weinreb</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1400</link>
		<dc:creator>Gary Weinreb</dc:creator>
		<pubDate>Mon, 05 Dec 2011 17:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1400</guid>
		<description>Ciao Andrea,

This is a nice and very useful piece of work...

I am working on a project for a commercial client and would like to incorporate SVGPan.js into a rather specialized application which has no mouse, but only a very limited input device.  We require simple zoom and pan driven by a simple JS function call into your library, rather than the current event handler methodology.

My question is this:  Would you be interested in working with me, for pay, to make these modifications to the SVGPan.js for our specific use?

Thanks, and best regards,
Gary</description>
		<content:encoded><![CDATA[<p>Ciao Andrea,</p>
<p>This is a nice and very useful piece of work&#8230;</p>
<p>I am working on a project for a commercial client and would like to incorporate SVGPan.js into a rather specialized application which has no mouse, but only a very limited input device.  We require simple zoom and pan driven by a simple JS function call into your library, rather than the current event handler methodology.</p>
<p>My question is this:  Would you be interested in working with me, for pay, to make these modifications to the SVGPan.js for our specific use?</p>
<p>Thanks, and best regards,<br />
Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1335</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Mon, 28 Nov 2011 18:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1335</guid>
		<description>andrea,

Does the script tag have to be inside the SVG tag?  I was hoping to have your library referenced outside the actual SVG because I&#039;ll be dealing with dynamically generated SVG images that I need this functionality on.

Maybe there&#039;s a clean way to modify the SVG with JS to add the script at the same time I am appending the embed tag to the DOM?

Thanks for sharing such a great library!

-- Danny</description>
		<content:encoded><![CDATA[<p>andrea,</p>
<p>Does the script tag have to be inside the SVG tag?  I was hoping to have your library referenced outside the actual SVG because I&#8217;ll be dealing with dynamically generated SVG images that I need this functionality on.</p>
<p>Maybe there&#8217;s a clean way to modify the SVG with JS to add the script at the same time I am appending the embed tag to the DOM?</p>
<p>Thanks for sharing such a great library!</p>
<p>&#8211; Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Browne</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1334</link>
		<dc:creator>Danny Browne</dc:creator>
		<pubDate>Mon, 28 Nov 2011 18:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1334</guid>
		<description>pelucon,  I was able to just use the basic jQuery $.append to add an embed tag to the DOM and it seems to work perfectly.  Would that work for you?</description>
		<content:encoded><![CDATA[<p>pelucon,  I was able to just use the basic jQuery $.append to add an embed tag to the DOM and it seems to work perfectly.  Would that work for you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: catx</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1159</link>
		<dc:creator>catx</dc:creator>
		<pubDate>Tue, 25 Oct 2011 03:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1159</guid>
		<description>Hola!

I&#039;m using graphviz with &#039;tooltip&#039; entries to generate svg with objects like the following, using a xlink:title.  Unfortunately, while SVGPan works very nicely without the xlinks, it fails completely with them.

foo
&lt;a&gt;

foo
&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>Hola!</p>
<p>I&#8217;m using graphviz with &#8216;tooltip&#8217; entries to generate svg with objects like the following, using a xlink:title.  Unfortunately, while SVGPan works very nicely without the xlinks, it fails completely with them.</p>
<p>foo<br />
<a></p>
<p>foo<br />
</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1070</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Tue, 04 Oct 2011 13:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1070</guid>
		<description>Hello this is really helpful!
i am not a programmer but working on a small fashion project.
i can manage to get the library to work with one svg object.
but in my project i have 413 different svg objects in the same page!
the question is can i make each of the objects independability draggable?
thoguh i don&#039;t need zooming
give me some hints please :)</description>
		<content:encoded><![CDATA[<p>Hello this is really helpful!<br />
i am not a programmer but working on a small fashion project.<br />
i can manage to get the library to work with one svg object.<br />
but in my project i have 413 different svg objects in the same page!<br />
the question is can i make each of the objects independability draggable?<br />
thoguh i don&#8217;t need zooming<br />
give me some hints please <img src='http://www.cyberz.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pelucon</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-1063</link>
		<dc:creator>pelucon</dc:creator>
		<pubDate>Mon, 03 Oct 2011 00:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-1063</guid>
		<description>Hi Andrea,

this is great, but I can only get it to work when opening the svg by itself. If I load the SVG using the JQuery SVG plugin, I get this error when trying to zoom or pan. (I have created a group with id=&quot;viewport&quot;)

Uncaught TypeError: Object # has no method &#039;createSVGPoint&#039;
getEventPointSVGPan.js:133
handleMouseDownSVGPan.js:257
(anonymous function)8:1
onmousedown

Have you tried using your library with Jquery SVG?

thanks</description>
		<content:encoded><![CDATA[<p>Hi Andrea,</p>
<p>this is great, but I can only get it to work when opening the svg by itself. If I load the SVG using the JQuery SVG plugin, I get this error when trying to zoom or pan. (I have created a group with id=&#8221;viewport&#8221;)</p>
<p>Uncaught TypeError: Object # has no method &#8216;createSVGPoint&#8217;<br />
getEventPointSVGPan.js:133<br />
handleMouseDownSVGPan.js:257<br />
(anonymous function)8:1<br />
onmousedown</p>
<p>Have you tried using your library with Jquery SVG?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dangerman</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-769</link>
		<dc:creator>dangerman</dc:creator>
		<pubDate>Fri, 12 Aug 2011 10:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-769</guid>
		<description>Hi Andrea,

I got something working for my situation. I have a world map that should take 100% of the browser width, but I have  a viewbox=&quot;0 0 1200 600&quot;. The problem I faced is that resizing the browser window resizes the  element just fine, but does not resize the  element. 

My solution was to add this  onresize() handler. When the document is initialized I set initWidth and initHeight to the width and height of the viewbox (though in fact I cheated and hardcoded the viewbox values)

There&#039;s a minor bug in my solution. When you resize the browser window, any pan/zoom you have done is reset.




function handleResize(evt){

        var svgDoc = evt.target;
        var g = getRoot(svgDoc);
		/* BUG: on window resize, the scale is reset to 1.0 */
		var scalex = g.parentElement.width.baseVal.value / initWidth;
		var scaley = g.parentElement.height.baseVal.value / initHeight;
		var k = root.createSVGMatrix().scale(scalex).multiply(g.getCTM().inverse());
		setCTM(g, g.getCTM().multiply(k));
}


cheers,
dan</description>
		<content:encoded><![CDATA[<p>Hi Andrea,</p>
<p>I got something working for my situation. I have a world map that should take 100% of the browser width, but I have  a viewbox=&#8221;0 0 1200 600&#8243;. The problem I faced is that resizing the browser window resizes the  element just fine, but does not resize the  element. </p>
<p>My solution was to add this  onresize() handler. When the document is initialized I set initWidth and initHeight to the width and height of the viewbox (though in fact I cheated and hardcoded the viewbox values)</p>
<p>There&#8217;s a minor bug in my solution. When you resize the browser window, any pan/zoom you have done is reset.</p>
<p>function handleResize(evt){</p>
<p>        var svgDoc = evt.target;<br />
        var g = getRoot(svgDoc);<br />
		/* BUG: on window resize, the scale is reset to 1.0 */<br />
		var scalex = g.parentElement.width.baseVal.value / initWidth;<br />
		var scaley = g.parentElement.height.baseVal.value / initHeight;<br />
		var k = root.createSVGMatrix().scale(scalex).multiply(g.getCTM().inverse());<br />
		setCTM(g, g.getCTM().multiply(k));<br />
}</p>
<p>cheers,<br />
dan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

