Browse Source

filtering not working at the moment

css_transitions
Alex de Mulder 10 years ago
parent
commit
e4181b02dc
80 changed files with 6708 additions and 3345 deletions
  1. +2
    -0
      Jakefile.js
  2. +3340
    -5
      dist/vis.js
  3. +1
    -1
      dist/vis.min.css
  4. +12
    -10
      dist/vis.min.js
  5. +0
    -0
      examples/graph3d/ajax.js
  6. +0
    -0
      examples/graph3d/datasource.php
  7. +0
    -0
      examples/graph3d/datasource_csv.php
  8. +0
    -0
      examples/graph3d/datasource_csv_to_json.php
  9. +0
    -0
      examples/graph3d/datastream_csv.php
  10. +0
    -0
      examples/graph3d/default.css
  11. +5
    -13
      examples/graph3d/example01_basis.html
  12. +6
    -27
      examples/graph3d/example02_camera.html
  13. +10
    -19
      examples/graph3d/example03_filter.html
  14. +0
    -0
      examples/graph3d/example04_animate.html
  15. +0
    -0
      examples/graph3d/example05_datasource.html
  16. +0
    -0
      examples/graph3d/example06_line.html
  17. +0
    -0
      examples/graph3d/example07_internet_explorer_9.html
  18. +0
    -0
      examples/graph3d/example08_moving_dots.html
  19. +0
    -0
      examples/graph3d/example09_dot_cloud_colors.html
  20. +0
    -0
      examples/graph3d/example10_dot_cloud_size.html
  21. +0
    -0
      examples/graph3d/example11_datasource_refresh.html
  22. +0
    -0
      examples/graph3d/example12_datastream.html
  23. +0
    -0
      examples/graph3d/example13_mobile.html
  24. +0
    -0
      examples/graph3d/example14_styles.html
  25. +0
    -0
      examples/graph3d/example15_tooltips.html
  26. +0
    -0
      examples/graph3d/index.html
  27. +0
    -3270
      src/3dgraph/graph3d.js
  28. +0
    -0
      src/graph3d/doc/.gitignore
  29. +0
    -0
      src/graph3d/doc/default.css
  30. +0
    -0
      src/graph3d/doc/example.html
  31. +0
    -0
      src/graph3d/doc/graph3d.png
  32. +0
    -0
      src/graph3d/doc/graph3d120x60.png
  33. +0
    -0
      src/graph3d/doc/index.html
  34. +0
    -0
      src/graph3d/doc/prettify/lang-apollo.js
  35. +0
    -0
      src/graph3d/doc/prettify/lang-css.js
  36. +0
    -0
      src/graph3d/doc/prettify/lang-hs.js
  37. +0
    -0
      src/graph3d/doc/prettify/lang-lisp.js
  38. +0
    -0
      src/graph3d/doc/prettify/lang-lua.js
  39. +0
    -0
      src/graph3d/doc/prettify/lang-ml.js
  40. +0
    -0
      src/graph3d/doc/prettify/lang-proto.js
  41. +0
    -0
      src/graph3d/doc/prettify/lang-scala.js
  42. +0
    -0
      src/graph3d/doc/prettify/lang-sql.js
  43. +0
    -0
      src/graph3d/doc/prettify/lang-vb.js
  44. +0
    -0
      src/graph3d/doc/prettify/lang-vhdl.js
  45. +0
    -0
      src/graph3d/doc/prettify/lang-wiki.js
  46. +0
    -0
      src/graph3d/doc/prettify/lang-yaml.js
  47. +0
    -0
      src/graph3d/doc/prettify/prettify.css
  48. +0
    -0
      src/graph3d/doc/prettify/prettify.js
  49. +3332
    -0
      src/graph3d/graph3d.js
  50. +0
    -0
      src/graph3d/playground/csv2array.js
  51. +0
    -0
      src/graph3d/playground/csv2datatable.html
  52. +0
    -0
      src/graph3d/playground/datasource.html
  53. +0
    -0
      src/graph3d/playground/datasource.php
  54. +0
    -0
      src/graph3d/playground/index.html
  55. +0
    -0
      src/graph3d/playground/playground.css
  56. +0
    -0
      src/graph3d/playground/playground.js
  57. +0
    -0
      src/graph3d/playground/prettify/lang-apollo.js
  58. +0
    -0
      src/graph3d/playground/prettify/lang-css.js
  59. +0
    -0
      src/graph3d/playground/prettify/lang-hs.js
  60. +0
    -0
      src/graph3d/playground/prettify/lang-lisp.js
  61. +0
    -0
      src/graph3d/playground/prettify/lang-lua.js
  62. +0
    -0
      src/graph3d/playground/prettify/lang-ml.js
  63. +0
    -0
      src/graph3d/playground/prettify/lang-proto.js
  64. +0
    -0
      src/graph3d/playground/prettify/lang-scala.js
  65. +0
    -0
      src/graph3d/playground/prettify/lang-sql.js
  66. +0
    -0
      src/graph3d/playground/prettify/lang-vb.js
  67. +0
    -0
      src/graph3d/playground/prettify/lang-vhdl.js
  68. +0
    -0
      src/graph3d/playground/prettify/lang-wiki.js
  69. +0
    -0
      src/graph3d/playground/prettify/lang-yaml.js
  70. +0
    -0
      src/graph3d/playground/prettify/prettify.css
  71. +0
    -0
      src/graph3d/playground/prettify/prettify.js
  72. +0
    -0
      src/graph3d/tests/example01_basis.html
  73. +0
    -0
      src/graph3d/tests/example04_animate.html
  74. +0
    -0
      src/graph3d/tests/sebleedelisle/canvas3d2.html
  75. +0
    -0
      src/graph3d/tests/sebleedelisle/canvas3d3.html
  76. +0
    -0
      src/graph3d/tests/sebleedelisle/canvas3d4.html
  77. +0
    -0
      src/graph3d/tests/sebleedelisle/url.txt
  78. +0
    -0
      src/graph3d/tests/test.html
  79. +0
    -0
      src/graph3d/tests/test_extreme_data.html
  80. +0
    -0
      src/graph3d/tests/test_slider.html

+ 2
- 0
Jakefile.js View File

@ -102,6 +102,8 @@ task('build', {async: true}, function () {
'./src/graph/graphMixins/MixinLoader.js', './src/graph/graphMixins/MixinLoader.js',
'./src/graph/Graph.js', './src/graph/Graph.js',
'./src/graph3d/graph3d.js',
'./src/module/exports.js' './src/module/exports.js'
], ],

+ 3340
- 5
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/vis.min.css
File diff suppressed because it is too large
View File


+ 12
- 10
dist/vis.min.js
File diff suppressed because it is too large
View File


src/3dgraph/examples/ajax.js → examples/graph3d/ajax.js View File


src/3dgraph/examples/datasource.php → examples/graph3d/datasource.php View File


src/3dgraph/examples/datasource_csv.php → examples/graph3d/datasource_csv.php View File


src/3dgraph/examples/datasource_csv_to_json.php → examples/graph3d/datasource_csv_to_json.php View File


src/3dgraph/examples/datastream_csv.php → examples/graph3d/datastream_csv.php View File


src/3dgraph/doc/default.css → examples/graph3d/default.css View File


src/3dgraph/examples/example01_basis.html → examples/graph3d/example01_basis.html View File

@ -7,18 +7,12 @@
body {font: 10pt arial;} body {font: 10pt arial;}
</style> </style>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="../graph3d.js"></script>
<script type="text/javascript" src="../../dist/vis.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var data = null; var data = null;
var graph = null; var graph = null;
google.load("visualization", "1");
// Set callback to run when API is loaded
google.setOnLoadCallback(drawVisualization);
function custom(x, y) { function custom(x, y) {
return (Math.sin(x/50) * Math.cos(y/50) * 50 + 50); return (Math.sin(x/50) * Math.cos(y/50) * 50 + 50);
} }
@ -26,11 +20,7 @@
// Called when the Visualization API is loaded. // Called when the Visualization API is loaded.
function drawVisualization() { function drawVisualization() {
// Create and populate a data table. // Create and populate a data table.
data = new google.visualization.DataTable();
data.addColumn('number', 'x');
data.addColumn('number', 'y');
data.addColumn('number', 'z');
var data = new vis.DataSet({});
// create some nice looking data with sin/cos // create some nice looking data with sin/cos
var steps = 50; // number of datapoints will be steps*steps var steps = 50; // number of datapoints will be steps*steps
var axisMax = 314; var axisMax = 314;
@ -38,7 +28,9 @@
for (var x = 0; x < axisMax; x+=axisStep) { for (var x = 0; x < axisMax; x+=axisStep) {
for (var y = 0; y < axisMax; y+=axisStep) { for (var y = 0; y < axisMax; y+=axisStep) {
var value = custom(x,y); var value = custom(x,y);
data.addRow([x, y, value]);
data.add([
{x:x,y:y,z:value,t:0,style:value}
]);
} }
} }

src/3dgraph/examples/example02_camera.html → examples/graph3d/example02_camera.html View File

@ -8,18 +8,12 @@
td {font: 10pt arial} td {font: 10pt arial}
</style> </style>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="../graph3d.js"></script>
<script type="text/javascript" src="../../dist/vis.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var data = null; var data = null;
var graph = null; var graph = null;
google.load("visualization", "1");
// Set callback to run when API is loaded
google.setOnLoadCallback(drawVisualization);
function custom(x, y) { function custom(x, y) {
return (Math.sin(x/50) * Math.cos(y/50) * 50 + 50); return (Math.sin(x/50) * Math.cos(y/50) * 50 + 50);
} }
@ -51,31 +45,20 @@
// Called when the Visualization API is loaded. // Called when the Visualization API is loaded.
function drawVisualization() { function drawVisualization() {
// Create and populate a data table. // Create and populate a data table.
data = new google.visualization.DataTable();
data.addColumn('number', 'x');
data.addColumn('number', 'y');
data.addColumn('number', 'value');
var JSONdata = [];
var data = new vis.DataSet({});
// create some nice looking data with sin/cos // create some nice looking data with sin/cos
var steps = 50; // number of datapoints will be steps*steps var steps = 50; // number of datapoints will be steps*steps
var axisMax = 314; var axisMax = 314;
var axisStep = axisMax / steps; var axisStep = axisMax / steps;
for (var x = 0; x < axisMax; x+=axisStep) { for (var x = 0; x < axisMax; x+=axisStep) {
JSONdata.push([]);
for (var y = 0; y < axisMax; y+=axisStep) { for (var y = 0; y < axisMax; y+=axisStep) {
var value = custom(x,y); var value = custom(x,y);
JSONdata[x].push(value);
data.add([
{x:x,y:y,z:value,t:0,style:value}
]);
} }
} }
for (var x = 0; x < axisMax; x+=axisStep) {
for (var y = 0; y < axisMax; y+=axisStep) {
var value = custom(x,y);
data.addRow([x, y, value]);
}
}
// specify options // specify options
var options = { var options = {
@ -92,10 +75,6 @@
// Instantiate our graph object. // Instantiate our graph object.
graph = new links.Graph3d(document.getElementById('mygraph')); graph = new links.Graph3d(document.getElementById('mygraph'));
// Add event listeners
google.visualization.events.addListener(graph, 'camerapositionchange',
oncamerapositionchange);
// Draw our graph with the created data and options // Draw our graph with the created data and options
graph.draw(data, options); graph.draw(data, options);
//graph.redraw(); //graph.redraw();
@ -103,7 +82,7 @@
</script> </script>
</head> </head>
<body>
<body onload="drawVisualization()">
<h1>Graph 3d camera position</h1> <h1>Graph 3d camera position</h1>
<table> <table>
<tr> <tr>

src/3dgraph/examples/example03_filter.html → examples/graph3d/example03_filter.html View File

@ -7,18 +7,12 @@
body {font: 10pt arial;} body {font: 10pt arial;}
</style> </style>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="../graph3d.js"></script>
<script type="text/javascript" src="../../dist/vis.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var data = null; var data = null;
var graph = null; var graph = null;
google.load("visualization", "1");
// Set callback to run when API is loaded
google.setOnLoadCallback(drawVisualization);
function custom(x, y) { function custom(x, y) {
return Math.sin(x/50) * Math.cos(y/50) * 50 + 50; return Math.sin(x/50) * Math.cos(y/50) * 50 + 50;
} }
@ -26,23 +20,20 @@
// Called when the Visualization API is loaded. // Called when the Visualization API is loaded.
function drawVisualization() { function drawVisualization() {
// Create and populate a data table. // Create and populate a data table.
data = new google.visualization.DataTable();
data.addColumn('number', 'x');
data.addColumn('number', 'y');
data.addColumn('number', 'value');
data.addColumn('string', 'Value range');
var data = new vis.DataSet({});
// create some nice looking data with sin/cos // create some nice looking data with sin/cos
var steps = 50; // number of datapoints will be steps^2
var steps = 50; // number of datapoints will be steps*steps
var axisMax = 314; var axisMax = 314;
axisStep = axisMax / steps;
var axisStep = axisMax / steps;
for (var x = 0; x < axisMax; x+=axisStep) { for (var x = 0; x < axisMax; x+=axisStep) {
for (var y = 0; y < axisMax; y+=axisStep) { for (var y = 0; y < axisMax; y+=axisStep) {
var value = custom(x,y); var value = custom(x,y);
var valueRange = (value > 67) ? "67-100" : var valueRange = (value > 67) ? "67-100" :
(value < 33) ? "0-33" :
"33-67";
data.addRow([x, y, value, valueRange]);
(value < 33) ? "0-33" :
"33-67";
data.add([
{x:x,y:y,z:value,filter:valueRange,style:value}
]);
} }
} }
@ -67,7 +58,7 @@
</script> </script>
</head> </head>
<body>
<body onload="drawVisualization()">
<div id="mygraph"></div> <div id="mygraph"></div>
<div id="info"></div> <div id="info"></div>

src/3dgraph/examples/example04_animate.html → examples/graph3d/example04_animate.html View File


src/3dgraph/examples/example05_datasource.html → examples/graph3d/example05_datasource.html View File


src/3dgraph/examples/example06_line.html → examples/graph3d/example06_line.html View File


src/3dgraph/examples/example07_internet_explorer_9.html → examples/graph3d/example07_internet_explorer_9.html View File


src/3dgraph/examples/example08_moving_dots.html → examples/graph3d/example08_moving_dots.html View File


src/3dgraph/examples/example09_dot_cloud_colors.html → examples/graph3d/example09_dot_cloud_colors.html View File


src/3dgraph/examples/example10_dot_cloud_size.html → examples/graph3d/example10_dot_cloud_size.html View File


src/3dgraph/examples/example11_datasource_refresh.html → examples/graph3d/example11_datasource_refresh.html View File


src/3dgraph/examples/example12_datastream.html → examples/graph3d/example12_datastream.html View File


src/3dgraph/examples/example13_mobile.html → examples/graph3d/example13_mobile.html View File


src/3dgraph/examples/example14_styles.html → examples/graph3d/example14_styles.html View File


src/3dgraph/examples/example15_tooltips.html → examples/graph3d/example15_tooltips.html View File


src/3dgraph/examples/index.html → examples/graph3d/index.html View File


+ 0
- 3270
src/3dgraph/graph3d.js
File diff suppressed because it is too large
View File


src/3dgraph/doc/.gitignore → src/graph3d/doc/.gitignore View File


src/3dgraph/examples/default.css → src/graph3d/doc/default.css View File


src/3dgraph/doc/example.html → src/graph3d/doc/example.html View File


src/3dgraph/doc/graph3d.png → src/graph3d/doc/graph3d.png View File


src/3dgraph/doc/graph3d120x60.png → src/graph3d/doc/graph3d120x60.png View File


src/3dgraph/doc/index.html → src/graph3d/doc/index.html View File


src/3dgraph/doc/prettify/lang-apollo.js → src/graph3d/doc/prettify/lang-apollo.js View File


src/3dgraph/doc/prettify/lang-css.js → src/graph3d/doc/prettify/lang-css.js View File


src/3dgraph/doc/prettify/lang-hs.js → src/graph3d/doc/prettify/lang-hs.js View File


src/3dgraph/doc/prettify/lang-lisp.js → src/graph3d/doc/prettify/lang-lisp.js View File


src/3dgraph/doc/prettify/lang-lua.js → src/graph3d/doc/prettify/lang-lua.js View File


src/3dgraph/doc/prettify/lang-ml.js → src/graph3d/doc/prettify/lang-ml.js View File


src/3dgraph/doc/prettify/lang-proto.js → src/graph3d/doc/prettify/lang-proto.js View File


src/3dgraph/doc/prettify/lang-scala.js → src/graph3d/doc/prettify/lang-scala.js View File


src/3dgraph/doc/prettify/lang-sql.js → src/graph3d/doc/prettify/lang-sql.js View File


src/3dgraph/doc/prettify/lang-vb.js → src/graph3d/doc/prettify/lang-vb.js View File


src/3dgraph/doc/prettify/lang-vhdl.js → src/graph3d/doc/prettify/lang-vhdl.js View File


src/3dgraph/doc/prettify/lang-wiki.js → src/graph3d/doc/prettify/lang-wiki.js View File


src/3dgraph/doc/prettify/lang-yaml.js → src/graph3d/doc/prettify/lang-yaml.js View File


src/3dgraph/doc/prettify/prettify.css → src/graph3d/doc/prettify/prettify.css View File


src/3dgraph/doc/prettify/prettify.js → src/graph3d/doc/prettify/prettify.js View File


+ 3332
- 0
src/graph3d/graph3d.js
File diff suppressed because it is too large
View File


src/3dgraph/playground/csv2array.js → src/graph3d/playground/csv2array.js View File


src/3dgraph/playground/csv2datatable.html → src/graph3d/playground/csv2datatable.html View File


src/3dgraph/playground/datasource.html → src/graph3d/playground/datasource.html View File


src/3dgraph/playground/datasource.php → src/graph3d/playground/datasource.php View File


src/3dgraph/playground/index.html → src/graph3d/playground/index.html View File


src/3dgraph/playground/playground.css → src/graph3d/playground/playground.css View File


src/3dgraph/playground/playground.js → src/graph3d/playground/playground.js View File


src/3dgraph/playground/prettify/lang-apollo.js → src/graph3d/playground/prettify/lang-apollo.js View File


src/3dgraph/playground/prettify/lang-css.js → src/graph3d/playground/prettify/lang-css.js View File


src/3dgraph/playground/prettify/lang-hs.js → src/graph3d/playground/prettify/lang-hs.js View File


src/3dgraph/playground/prettify/lang-lisp.js → src/graph3d/playground/prettify/lang-lisp.js View File


src/3dgraph/playground/prettify/lang-lua.js → src/graph3d/playground/prettify/lang-lua.js View File


src/3dgraph/playground/prettify/lang-ml.js → src/graph3d/playground/prettify/lang-ml.js View File


src/3dgraph/playground/prettify/lang-proto.js → src/graph3d/playground/prettify/lang-proto.js View File


src/3dgraph/playground/prettify/lang-scala.js → src/graph3d/playground/prettify/lang-scala.js View File


src/3dgraph/playground/prettify/lang-sql.js → src/graph3d/playground/prettify/lang-sql.js View File


src/3dgraph/playground/prettify/lang-vb.js → src/graph3d/playground/prettify/lang-vb.js View File


src/3dgraph/playground/prettify/lang-vhdl.js → src/graph3d/playground/prettify/lang-vhdl.js View File


src/3dgraph/playground/prettify/lang-wiki.js → src/graph3d/playground/prettify/lang-wiki.js View File


src/3dgraph/playground/prettify/lang-yaml.js → src/graph3d/playground/prettify/lang-yaml.js View File


src/3dgraph/playground/prettify/prettify.css → src/graph3d/playground/prettify/prettify.css View File


src/3dgraph/playground/prettify/prettify.js → src/graph3d/playground/prettify/prettify.js View File


src/3dgraph/tests/example01_basis.html → src/graph3d/tests/example01_basis.html View File


src/3dgraph/tests/example04_animate.html → src/graph3d/tests/example04_animate.html View File


src/3dgraph/tests/sebleedelisle/canvas3d2.html → src/graph3d/tests/sebleedelisle/canvas3d2.html View File


src/3dgraph/tests/sebleedelisle/canvas3d3.html → src/graph3d/tests/sebleedelisle/canvas3d3.html View File


src/3dgraph/tests/sebleedelisle/canvas3d4.html → src/graph3d/tests/sebleedelisle/canvas3d4.html View File


src/3dgraph/tests/sebleedelisle/url.txt → src/graph3d/tests/sebleedelisle/url.txt View File


src/3dgraph/tests/test.html → src/graph3d/tests/test.html View File


src/3dgraph/tests/test_extreme_data.html → src/graph3d/tests/test_extreme_data.html View File


src/3dgraph/tests/test_slider.html → src/graph3d/tests/test_slider.html View File


Loading…
Cancel
Save