<?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>Comentarii pentru Johann Philipp Strathausen</title>
	<atom:link href="http://www.strathausen.eu/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.strathausen.eu</link>
	<description>blogging in the internet since 2009</description>
	<lastBuildDate>Tue, 03 Apr 2012 10:04:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>Comentariu la (Deutsch) Raphael SVG Tooltip de către Eugene Tjoa</title>
		<link>http://www.strathausen.eu/ro/2010/04/25/raphael-svg-tooltip/comment-page-1/#comment-3832</link>
		<dc:creator>Eugene Tjoa</dc:creator>
		<pubDate>Tue, 03 Apr 2012 10:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=164#comment-3832</guid>
		<description>Thanks for your plugin. I added a function to it, so you can simply assign a tooltip text to an element.

Raphael.el.setToolTipText = function(tip) {
this.paper.setStart();
// Create background
var frameEl = this.paper.rect(0.5, 0.5, 0, 0);
// Create text element
var textEl = this.paper.text(5, 0, tip).attr({&#039;text-anchor&#039;:&#039;start&#039;, &#039;font-size&#039;:11})
var bbox = textEl.getBBox();
// Resize the background to fit the text
frameEl.attr({width:bbox.width + 10, height: bbox.height+10, fill: &#039;#f0f0f0&#039;, &#039;stroke-width&#039;:1, stroke:&#039;#cccccc&#039;});
// Move the text vertically to position it correctly
textEl.attr({y: Math.round(bbox.height/2)+5});
var set = this.paper.setFinish();
this.tooltip(set);
}

You can call this function like this:
var rect = paper.rect(0, 0, 5, 5);
rect.setToolTipText(&#039;This is a:\nTool Tip!&#039;);</description>
		<content:encoded><![CDATA[<p>Thanks for your plugin. I added a function to it, so you can simply assign a tooltip text to an element.</p>
<p>Raphael.el.setToolTipText = function(tip) {<br />
this.paper.setStart();<br />
// Create background<br />
var frameEl = this.paper.rect(0.5, 0.5, 0, 0);<br />
// Create text element<br />
var textEl = this.paper.text(5, 0, tip).attr({&#8216;text-anchor&#8217;:'start&#8217;, &#8216;font-size&#8217;:11})<br />
var bbox = textEl.getBBox();<br />
// Resize the background to fit the text<br />
frameEl.attr({width:bbox.width + 10, height: bbox.height+10, fill: &#8216;#f0f0f0&#8242;, &#8216;stroke-width&#8217;:1, stroke:&#8217;#cccccc&#8217;});<br />
// Move the text vertically to position it correctly<br />
textEl.attr({y: Math.round(bbox.height/2)+5});<br />
var set = this.paper.setFinish();<br />
this.tooltip(set);<br />
}</p>
<p>You can call this function like this:<br />
var rect = paper.rect(0, 0, 5, 5);<br />
rect.setToolTipText(&#8216;This is a:\nTool Tip!&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentariu la (Deutsch) Raphael SVG Tooltip de către Sebastien</title>
		<link>http://www.strathausen.eu/ro/2010/04/25/raphael-svg-tooltip/comment-page-1/#comment-2729</link>
		<dc:creator>Sebastien</dc:creator>
		<pubDate>Wed, 02 Nov 2011 16:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=164#comment-2729</guid>
		<description>First, thanks for your plugin!

I noticed that hovering my element a few times was slowing the tooltip to the point that it was unusable. I solved the problem by moving the &#039;mousemove&#039; event outside the hover method, so the element doesn&#039;t get rebind each time the user hover it.

Raphael.el.tooltip = function (tp) {
    this.tp = tp;
    this.tp.ox = 0;
    this.tp.oy = 0;
    this.tp.hide();
    this.mousemove(function(event){ 
        this.tp.translate(event.clientX - 
            this.tp.ox,event.clientY - this.tp.oy);
        this.tp.ox = event.clientX;
        this.tp.oy = event.clientY;
    });
    this.hover(
    	function(event){ 
    		this.tp.show().toFront();
        }, 
        function(event){
        	this.tp.hide();
            this.unmousemove();
            });
    return this;
};</description>
		<content:encoded><![CDATA[<p>First, thanks for your plugin!</p>
<p>I noticed that hovering my element a few times was slowing the tooltip to the point that it was unusable. I solved the problem by moving the &#8216;mousemove&#8217; event outside the hover method, so the element doesn&#8217;t get rebind each time the user hover it.</p>
<p>Raphael.el.tooltip = function (tp) {<br />
    this.tp = tp;<br />
    this.tp.ox = 0;<br />
    this.tp.oy = 0;<br />
    this.tp.hide();<br />
    this.mousemove(function(event){<br />
        this.tp.translate(event.clientX &#8211;<br />
            this.tp.ox,event.clientY &#8211; this.tp.oy);<br />
        this.tp.ox = event.clientX;<br />
        this.tp.oy = event.clientY;<br />
    });<br />
    this.hover(<br />
    	function(event){<br />
    		this.tp.show().toFront();<br />
        },<br />
        function(event){<br />
        	this.tp.hide();<br />
            this.unmousemove();<br />
            });<br />
    return this;<br />
};</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentariu la (Deutsch) Raphael SVG Tooltip de către Letitia Lew</title>
		<link>http://www.strathausen.eu/ro/2010/04/25/raphael-svg-tooltip/comment-page-1/#comment-1037</link>
		<dc:creator>Letitia Lew</dc:creator>
		<pubDate>Wed, 18 May 2011 18:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=164#comment-1037</guid>
		<description>Hi Johann,

I really love your Dracula package, it&#039;s so easy to use, beautiful and just a godsend for my project!  Thank you so much for putting in the time to make such an elegant library!

I tried incorporating tooltips similar to your &quot;Showcase&quot;, but I got something like this instead:
http://www.stanford.edu/~lletitia/Dracula/li_dracula2.html
It looks kind of broken, and I&#039;d like to keep the graph edges and default colourful oval nodes.  Is there any way to attach tooltips to the regular nodes without drawing custom node objects?

Thanks,
Letitia</description>
		<content:encoded><![CDATA[<p>Hi Johann,</p>
<p>I really love your Dracula package, it&#8217;s so easy to use, beautiful and just a godsend for my project!  Thank you so much for putting in the time to make such an elegant library!</p>
<p>I tried incorporating tooltips similar to your &#8220;Showcase&#8221;, but I got something like this instead:<br />
<a href="http://www.stanford.edu/~lletitia/Dracula/li_dracula2.html" rel="nofollow">http://www.stanford.edu/~lletitia/Dracula/li_dracula2.html</a><br />
It looks kind of broken, and I&#8217;d like to keep the graph edges and default colourful oval nodes.  Is there any way to attach tooltips to the regular nodes without drawing custom node objects?</p>
<p>Thanks,<br />
Letitia</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentariu la (Deutsch) Raphael SVG Tooltip de către Johann Philipp</title>
		<link>http://www.strathausen.eu/ro/2010/04/25/raphael-svg-tooltip/comment-page-1/#comment-50</link>
		<dc:creator>Johann Philipp</dc:creator>
		<pubDate>Thu, 19 Aug 2010 20:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=164#comment-50</guid>
		<description>Hi again, there was a bug in the code. You’d better use this version of tool-tip for now:

&lt;pre lang=&quot;Javascript&quot;&gt;
Raphael.el.tooltip = function (tp) {
    this.tp = tp;
    this.tp.ox = 0;
    this.tp.oy = 0;
    this.tp.hide();
    this.hover(
        function(event){ 
            this.mousemove(function(event){ 
                this.tp.translate(event.clientX -
                    this.tp.ox,event.clientY - this.tp.oy);
                this.tp.ox = event.clientX;
                this.tp.oy = event.clientY;
            });
            this.tp.show().toFront();
        }, 
        function(event){
            this.tp.hide();
            this.unmousemove();
            });
    return this;
};
&lt;/pre&gt;

I just used “translate” instead of setting the coordinates via “attr”.</description>
		<content:encoded><![CDATA[<p>Hi again, there was a bug in the code. You’d better use this version of tool-tip for now:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">Raphael.<span style="color: #660066;">el</span>.<span style="color: #660066;">tooltip</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>tp<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span> <span style="color: #339933;">=</span> tp<span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">ox</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">oy</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span>
        <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> 
            <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">mousemove</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> 
                <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">translate</span><span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">clientX</span> <span style="color: #339933;">-</span>
                    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">ox</span><span style="color: #339933;">,</span>event.<span style="color: #660066;">clientY</span> <span style="color: #339933;">-</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">oy</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">ox</span> <span style="color: #339933;">=</span> event.<span style="color: #660066;">clientX</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">oy</span> <span style="color: #339933;">=</span> event.<span style="color: #660066;">clientY</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toFront</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> 
        <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">tp</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">unmousemove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I just used “translate” instead of setting the coordinates via “attr”.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentariu la (Deutsch) Raphael SVG Tooltip de către Mike</title>
		<link>http://www.strathausen.eu/ro/2010/04/25/raphael-svg-tooltip/comment-page-1/#comment-35</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 05 Aug 2010 16:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=164#comment-35</guid>
		<description>Ah. I finally figured it out. I didn&#039;t realize that the object passed to the function had to be a Raphael object. I was trying to pass it a string, which it didn&#039;t like at all.

What I&#039;m trying to do now is pass a set to the function, so that I can have a tooltip with a box with some writing in it. The code below creates a set and passes them to the function, but I can&#039;t get the text and the rect to be centered on each other:
&lt;pre lang=&quot;javascript&quot;&gt;
    var set = paper.set();
    set.push(
        paper.rect(0, 0, 50, 10).attr({&#039;fill&#039;: &#039;yellow&#039;}),
        paper.text(25, 5, &quot;Test&quot;)
    );
    
    paper.rect(200, 200, 200, 200, 10).attr({&#039;fill&#039;: &#039;red&#039;}).tooltip(set);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ah. I finally figured it out. I didn&#8217;t realize that the object passed to the function had to be a Raphael object. I was trying to pass it a string, which it didn&#8217;t like at all.</p>
<p>What I&#8217;m trying to do now is pass a set to the function, so that I can have a tooltip with a box with some writing in it. The code below creates a set and passes them to the function, but I can&#8217;t get the text and the rect to be centered on each other:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">    <span style="color: #003366; font-weight: bold;">var</span> set <span style="color: #339933;">=</span> paper.<span style="color: #660066;">set</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    set.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>
        paper.<span style="color: #660066;">rect</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">50</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'fill'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'yellow'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        paper.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">25</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">5</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Test&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    paper.<span style="color: #660066;">rect</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">200</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">200</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">200</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">200</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'fill'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'red'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">tooltip</span><span style="color: #009900;">&#40;</span>set<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Comentariu la (Deutsch) Raphael SVG Tooltip de către Johann Philipp</title>
		<link>http://www.strathausen.eu/ro/2010/04/25/raphael-svg-tooltip/comment-page-1/#comment-34</link>
		<dc:creator>Johann Philipp</dc:creator>
		<pubDate>Thu, 05 Aug 2010 13:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=164#comment-34</guid>
		<description>Should work actually, could you send me the code?</description>
		<content:encoded><![CDATA[<p>Should work actually, could you send me the code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentariu la (Deutsch) Raphael SVG Tooltip de către Johann Philipp</title>
		<link>http://www.strathausen.eu/ro/2010/04/25/raphael-svg-tooltip/comment-page-1/#comment-33</link>
		<dc:creator>Johann Philipp</dc:creator>
		<pubDate>Thu, 05 Aug 2010 10:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=164#comment-33</guid>
		<description>Okay, I&#039;ll check on this. My first guess would be that I might have accidentally used jQuery here, without knowing so, since it is part of most of my web projects anyway. Are you using the latest Raphael?</description>
		<content:encoded><![CDATA[<p>Okay, I&#8217;ll check on this. My first guess would be that I might have accidentally used jQuery here, without knowing so, since it is part of most of my web projects anyway. Are you using the latest Raphael?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentariu la (Deutsch) Raphael SVG Tooltip de către Mike</title>
		<link>http://www.strathausen.eu/ro/2010/04/25/raphael-svg-tooltip/comment-page-1/#comment-32</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 05 Aug 2010 07:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=164#comment-32</guid>
		<description>Hmmm...I get an error that hide() is not a valid function. Strange...</description>
		<content:encoded><![CDATA[<p>Hmmm&#8230;I get an error that hide() is not a valid function. Strange&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentariu la (Deutsch) (English) Dracula Graph Library 0.0.3alpha de către Johann Philipp</title>
		<link>http://www.strathausen.eu/ro/2010/06/01/dracula_0-0-3alpha/comment-page-1/#comment-1</link>
		<dc:creator>Johann Philipp</dc:creator>
		<pubDate>Wed, 23 Jun 2010 12:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ameisenbar.de/?p=173#comment-1</guid>
		<description>Hello People!

1. Unfortunately, during the upgrade process to WordPress 3, all the comments got lost somehow. You are free to comment again!
2. There&#039;s a new site anyway, check out http://graphdracula.net</description>
		<content:encoded><![CDATA[<p>Hello People!</p>
<p>1. Unfortunately, during the upgrade process to WordPress 3, all the comments got lost somehow. You are free to comment again!<br />
2. There&#8217;s a new site anyway, check out <a href="http://graphdracula.net" rel="nofollow">http://graphdracula.net</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

