<?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: SVG Using Nothin&#8217; But JavaScript</title>
	<atom:link href="http://www.codedread.com/blog/archives/2006/02/05/svg-using-nothin-but-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedread.com/blog/archives/2006/02/05/svg-using-nothin-but-javascript/</link>
	<description></description>
	<lastBuildDate>Sun, 07 Mar 2010 07:18:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Groups</title>
		<link>http://www.codedread.com/blog/archives/2006/02/05/svg-using-nothin-but-javascript/comment-page-1/#comment-373</link>
		<dc:creator>Groups</dc:creator>
		<pubDate>Thu, 23 Aug 2007 00:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=221#comment-373</guid>
		<description>The JavaScript drawing library is basically a worst-case scenario - it’s a fallback for all browsers that have no better method.</description>
		<content:encoded><![CDATA[<p>The JavaScript drawing library is basically a worst-case scenario &#8211; it’s a fallback for all browsers that have no better method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://www.codedread.com/blog/archives/2006/02/05/svg-using-nothin-but-javascript/comment-page-1/#comment-372</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Sun, 12 Feb 2006 14:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=221#comment-372</guid>
		<description>Paul - true.

However, I originally wrote the thing with only simple cases in mind - icons, and small logos, for example. If the client is in the business of printing out images, then they should really be using proper plugins anyway.

I believe the script to be an acceptable alternative for simple SVG cases. In fact, the original case I had in mind is probably ideal - in  that case, I wanted to be able to load a toolbar full of icons with just one or two http requests. SVG was a solution to that problem, but I needed to ensure that non-SVG browsers could read the icons as well; hence the script.

I was really not considering larger cases at all.</description>
		<content:encoded><![CDATA[<p>Paul &#8211; true.</p>
<p>However, I originally wrote the thing with only simple cases in mind &#8211; icons, and small logos, for example. If the client is in the business of printing out images, then they should really be using proper plugins anyway.</p>
<p>I believe the script to be an acceptable alternative for simple SVG cases. In fact, the original case I had in mind is probably ideal &#8211; in  that case, I wanted to be able to load a toolbar full of icons with just one or two http requests. SVG was a solution to that problem, but I needed to ensure that non-SVG browsers could read the icons as well; hence the script.</p>
<p>I was really not considering larger cases at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.codedread.com/blog/archives/2006/02/05/svg-using-nothin-but-javascript/comment-page-1/#comment-371</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 12 Feb 2006 10:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=221#comment-371</guid>
		<description>Hi Kae,
legitimate claim, my comment doesn&#039;t come across vividly at all;-)
Let me give you an example that will make things clear. Supposed case: you&#039;ve to draw a couple of circles.
In Firefox these circles will get rasterized/more or less antialiased to a bitmap. It doesn&#039;t make any difference how many circles are drawn using native svg or your library, the bitmap is one gdi object.
It&#039;s a different story in internet explorer. If I get you right, the circles will get tessellated to a number of separate rectangular div elements? More precisely, if you strive for an acceptable (print:-) image of these circles, you&#039;ve to consider antialiasing as well- and you&#039;ll end up with a vast amount of different colored divs. Each div will chew up a gdi object for display and printout.
I&#039;ve got no idea how many div objects a decent representation of an ordinary svg file will require. I dunno. On the other hand I do know that you cannot expect a determinable upper limit at the time of rendering at the client&#039;s system. For instance, a &#039;3000 div&#039; svg instantiation (OMG, bloated dom) at the clients system probably won&#039;t be printable anymore. The background printing thread would require another 3000 gdi objects as well.
Well, you plan to employ ie&#039;s vector graphics behaviour for your ie rendering.
That&#039;s another story...</description>
		<content:encoded><![CDATA[<p>Hi Kae,<br />
legitimate claim, my comment doesn&#8217;t come across vividly at all;-)<br />
Let me give you an example that will make things clear. Supposed case: you&#8217;ve to draw a couple of circles.<br />
In Firefox these circles will get rasterized/more or less antialiased to a bitmap. It doesn&#8217;t make any difference how many circles are drawn using native svg or your library, the bitmap is one gdi object.<br />
It&#8217;s a different story in internet explorer. If I get you right, the circles will get tessellated to a number of separate rectangular div elements? More precisely, if you strive for an acceptable (print:-) image of these circles, you&#8217;ve to consider antialiasing as well- and you&#8217;ll end up with a vast amount of different colored divs. Each div will chew up a gdi object for display and printout.<br />
I&#8217;ve got no idea how many div objects a decent representation of an ordinary svg file will require. I dunno. On the other hand I do know that you cannot expect a determinable upper limit at the time of rendering at the client&#8217;s system. For instance, a &#8216;3000 div&#8217; svg instantiation (OMG, bloated dom) at the clients system probably won&#8217;t be printable anymore. The background printing thread would require another 3000 gdi objects as well.<br />
Well, you plan to employ ie&#8217;s vector graphics behaviour for your ie rendering.<br />
That&#8217;s another story&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://www.codedread.com/blog/archives/2006/02/05/svg-using-nothin-but-javascript/comment-page-1/#comment-370</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Thu, 09 Feb 2006 09:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=221#comment-370</guid>
		<description>Paul, I&#039;m not sure if I understood anything you just said there... The renderer that I&#039;m using at the moment is a &quot;fast&quot; (for javascript values of &quot;fast&quot;) graphics library that renders using as few resources as possible. If you check out Walter Zorn&#039;s library (http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm), you&#039;ll see he has optimised it quite well.

It&#039;s not like I&#039;m rendering every pixel one at a time!

Besides - now that I have it working basically in every browser that I have a copy of (that can handle JavaScript, of course), I&#039;ll be optimising on a per-browser basis. For example, in IE, I will adapt the code so that it draws using Emil E Eklund&#039;s canvas implementation (http://me.eae.net/archive/2005/12/29/canvas-in-ie/). This should help reduce the resources worry that you have.

The JavaScript drawing library is basically a worst-case scenario - it&#039;s a fallback for all browsers that have no better method.</description>
		<content:encoded><![CDATA[<p>Paul, I&#8217;m not sure if I understood anything you just said there&#8230; The renderer that I&#8217;m using at the moment is a &#8220;fast&#8221; (for javascript values of &#8220;fast&#8221;) graphics library that renders using as few resources as possible. If you check out Walter Zorn&#8217;s library (<a href="http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm" rel="nofollow">http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm</a>), you&#8217;ll see he has optimised it quite well.</p>
<p>It&#8217;s not like I&#8217;m rendering every pixel one at a time!</p>
<p>Besides &#8211; now that I have it working basically in every browser that I have a copy of (that can handle JavaScript, of course), I&#8217;ll be optimising on a per-browser basis. For example, in IE, I will adapt the code so that it draws using Emil E Eklund&#8217;s canvas implementation (<a href="http://me.eae.net/archive/2005/12/29/canvas-in-ie/" rel="nofollow">http://me.eae.net/archive/2005/12/29/canvas-in-ie/</a>). This should help reduce the resources worry that you have.</p>
<p>The JavaScript drawing library is basically a worst-case scenario &#8211; it&#8217;s a fallback for all browsers that have no better method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.codedread.com/blog/archives/2006/02/05/svg-using-nothin-but-javascript/comment-page-1/#comment-369</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 08 Feb 2006 11:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=221#comment-369</guid>
		<description>What a fantastic idea???

Hi Jeff,
this idea is wrong in many ways. Conceptual, practicability, resources consumption, performance, consequences, …

Regarding windows clients we’ve to recognize that there are browsers out there implementing rasterizing renderers- and gdi (graphics device interface) rendering on the other hand. There are pros and cons for each of the implementation decision. No matter for discussion here.
Most foolish procedure is to implement a rasterizer (or mosaicer?) with individual gdi objects (other than a bitmap:-). Gdi objects are precious resources and depending on the available memory. For Windows there are per process and per session upper limits. E.g. for a Win2k System there’s a limit of max 2^14 gdi handles per session. I.e. you can’t expect more than a few thousand individual fragments for this kind of tessellated vector display in an IE window. Finally a lousy maximum image resolution for the entire scalable vector overhead involved here?</description>
		<content:encoded><![CDATA[<p>What a fantastic idea???</p>
<p>Hi Jeff,<br />
this idea is wrong in many ways. Conceptual, practicability, resources consumption, performance, consequences, …</p>
<p>Regarding windows clients we’ve to recognize that there are browsers out there implementing rasterizing renderers- and gdi (graphics device interface) rendering on the other hand. There are pros and cons for each of the implementation decision. No matter for discussion here.<br />
Most foolish procedure is to implement a rasterizer (or mosaicer?) with individual gdi objects (other than a bitmap:-). Gdi objects are precious resources and depending on the available memory. For Windows there are per process and per session upper limits. E.g. for a Win2k System there’s a limit of max 2^14 gdi handles per session. I.e. you can’t expect more than a few thousand individual fragments for this kind of tessellated vector display in an IE window. Finally a lousy maximum image resolution for the entire scalable vector overhead involved here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://www.codedread.com/blog/archives/2006/02/05/svg-using-nothin-but-javascript/comment-page-1/#comment-368</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Mon, 06 Feb 2006 14:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=221#comment-368</guid>
		<description>Thanks Jeff; The library indeed does not produce a high level of quality, but I am developing it at the moment for simple graphics such as graphs and charts. I may go further and expand it to manage animation and scripting, but as you said, for now, it will only be useful for static images.</description>
		<content:encoded><![CDATA[<p>Thanks Jeff; The library indeed does not produce a high level of quality, but I am developing it at the moment for simple graphics such as graphs and charts. I may go further and expand it to manage animation and scripting, but as you said, for now, it will only be useful for static images.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
