aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/CGP.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* js/CGP: scroll wheel zoom center positionPeter Chiocchetti2014-12-131-2/+4
| | | | Closes #111
* make detail page accessible when using "canvas" graph_typePim van den Berg2014-11-111-0/+6
| | | | Closes #106
* Merge (a)sync code, reformat CGP.jsPeter Wu2014-08-021-98/+129
| | | | | | | | | | | | | | | | | | | | Best viewed with `git diff -w`. Since CGP-sync.js and CGP-async.js are almost equal except for one function call, merge them into a single function. While at it, reformat CGP.js to expose a single namespace (`CGP`) which exports the symbol `drawAll`. Remove `alert()` and add a `console.error()` call instead. This is less intrustive to users (who will notice a broken graph anyway) and be more helpful for developers (who can examine the call trace in the Developer Console. Add `"use strict"` and use the standard four spaces as indent. Process the script through `js-beautify` which re-indented the code and added some spaces between operators. Replace double by single quotes for consistency. Rename `catch(e)` to `catch(ex)` to supress a jshint warning about IE8.
* Defensive programming: more urlencode/htmlentitiesPeter Wu2014-07-201-1/+1
| | | | | | | | | | | | | | | | | | Make build_url return an URL, not HTML. This separates presentation from data. plugin_header's return value is unused, remove the unnecessary return. At places where `printf("<tag att='%s'>", $x);` is used, it is now converted to `printf("<tag att=\"%s\">", htmlentities($x));` since the single quote is not escaped by default by htmlentities. In case the canvas style is used, JS should use `textContent` instead of `innerHTML` to avoid reading `&quot;` instead of `"`. Nobody (should) use(s) IE6 anymore, so it is a safe change. While at it, use the standard charset attribute of meta to specify the character set (UTF-8).
* Add a configuration option for sync/async choice for the canvas graphsVincent Brillault2014-01-121-22/+0
|
* jsrrdgraph: CGP.js: split draw(id) into prepare_draw(id) and draw(id)Vincent Brillault2014-01-121-1/+7
|
* integrate jsrrdgraph in CGPPim van den Berg2013-05-181-0/+124