Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn 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> References: <532307e3-2d8d-4b4e-bd7c-2d92bc3241e5@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn 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 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: >> >> 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). >> 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: > . 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: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.