Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28299

Re: Best JavaScript graphics library

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Best JavaScript graphics library
Date Mon, 06 Jul 2015 01:11:22 +0200
Organization PointedEars Software (PES)
Lines 60
Message-ID <3875154.O60GRSYfbQ@PointedEars.de> (permalink)
References <XT9mx.80172$dP4.27697@fx43.am4> <532307e3-2d8d-4b4e-bd7c-2d92bc3241e5@googlegroups.com> <mnc8lq$sk2$1@solani.org>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1436138067 15279 eJwFwQkRADAIAzBLMCiPnK0H/iUsgYUG0wPhWOxe0p9q9c3pZo1zquSsUvLYYy5FBtiwZn4uTRFu (5 Jul 2015 23:14:27 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 5 Jul 2015 23:14:27 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYEBwDAEBMCVoniMI+L3H6F3rhBMGBzmdGavJg+E7SE8sWraaXWjv3n1/KSK+m4jcsDpK2ugZTVpP1HjFdU=
Cancel-Lock sha1:J9eCuFhANLzhQg8i5jwNNP2Au3I=
X-NNTP-Posting-Host eJwFwYEBwCAIA7CXFErBc9YJ/59gEs7NP8EgYmKosbu7HZnrmHDEQaOUZQttny4GqmrRYQ8dThEL
Xref csiph.com comp.lang.javascript:28299

Show key headers only | View raw


Christoph M. Becker wrote:

> Michael Haufe (TNO) wrote:
>> On Sunday, July 5, 2015 at 8:00:45 AM UTC-5, JiiPee wrote:
>>> […]
>>> I found this JSGL http://jsgl.org. Is that a good one? I like it, but is
>>> what js programmers normally use? Looks simple for me, but do you people
>>> recommend it? I would like to have a simple to use library as well. This
>>> one seems like that, but is its quality good enough? thanks
>>>
>>> I did a small js graphics test (a card folllowing mouse), and seems to
>>> me that the graphics is quite fast and good enough.
>> 
>> My first suggestion is to learn the standard CANVAS API before looking at
>> a library:
>> 
>> <https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API>

Different to the SVG DOM, the Canvas *API* (everything that builds on the 
return value of the getContext() method) is _not_ (yet) part of a Web 
standard.  Only the “canvas” element and corresponding interface is, in W3C 
HTML5 (and not the referred pseudo-standard of WHATWG HTML).

<http://www.w3.org/TR/2011/REC-SVG11-20110816/svgdom.html>
<http://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html#the-canvas-element>
 
>> After that, if you are unwilling and/or unable to build a library for
>> your specific needs, let's go from there.
> 
> ACK.
> 
> However, SVG may be an interesting alternative:
> <https://developer.mozilla.org/en/docs/Web/SVG>.

AIUI, JSGL uses either SVG or VML, whichever is supported first (VML would 
be used for IE/MSHTML < 9 only, which do not support SVG).  Therefore, the 
observed graphics speed and quality must be attributed to the layout engines 
of the used Web browser, not the script library.  You can have the same 
result without the library.

Obviously, the OP has not read the FAQ and has not understood the difference 
between a programming language like C++, and its libraries, and a scripting 
language like JavaScript: “A scripting language is a programming language 
that is used to manipulate, customise, and automate the facilities *of an 
existing system*.” (from the ECMAScript Language Specification; emphasis by 
me)

However, without having a look at the underlying code, I already see two 
problems with it: the code has been last updated three years ago, which may 
indicate that it is no longer maintained, and certainly it cannot consider 
the recent browser developments; and then, as you indicated, if you are 
using SVG, what do you need a client-side script library for?  Just use SVG 
as it is, generate it server-side, and manipulate it with plain 
ECMAScript+SVG DOM, if necessary.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Best JavaScript graphics library JiiPee <no@notvalid.com> - 2015-07-05 14:00 +0100
  Re: Best JavaScript graphics library "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-05 11:29 -0700
    Re: Best JavaScript graphics library "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-07-05 23:47 +0200
      Re: Best JavaScript graphics library Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-06 01:11 +0200
    Re: Best JavaScript graphics library JiiPee <no@notvalid.com> - 2015-07-05 23:01 +0100
      Re: Best JavaScript graphics library Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-07-06 14:52 +0200
        Re: Best JavaScript graphics library JiiPee <no@notvalid.com> - 2015-07-06 21:03 +0100
  Re: Best JavaScript graphics library "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-06 15:02 +0200
  Re: Best JavaScript graphics library Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-07-06 16:33 +0200

csiph-web