Permalink
Browse files

Initial import

git-svn-id: http://svn.alternateidea.com/javascript@1 ac094832-8ef0-452c-b0cc-323e7d6d75c8
  • Loading branch information...
caged
caged committed Nov 29, 2006
0 parents commit 02a04d29c76028f6f1eb60a602e6506c5f08d1be
Showing with 13,078 additions and 0 deletions.
  1. +16 −0 canvaslab/LICENSE
  2. +24 −0 canvaslab/README
  3. +40 −0 canvaslab/Rakefile
  4. +21 −0 canvaslab/TODO
  5. +1,720 −0 canvaslab/dist/canvaslab.js
  6. +36 −0 canvaslab/lib/protodoc.rb
  7. +830 −0 canvaslab/lib/toolkit.js
  8. +6 −0 canvaslab/src/HEADER
  9. +61 −0 canvaslab/src/area.js
  10. +122 −0 canvaslab/src/bar.js
  11. +239 −0 canvaslab/src/canvaslab.js
  12. +83 −0 canvaslab/src/dataset.js
  13. +47 −0 canvaslab/src/line.js
  14. +178 −0 canvaslab/src/pie.js
  15. +119 −0 canvaslab/src/stage.js
  16. +45 −0 canvaslab/src/theme.js
  17. +109 −0 canvaslab/tests/index.html
  18. +202 −0 canvaslab/tests/lib/jstest.rb
  19. +372 −0 canvaslab/tests/lib/unittest.js
  20. +380 −0 canvaslab/tests/shell.html
  21. +15 −0 canvaslab/tests/unit/dataset.html
  22. +106 −0 canvaslab/vendor/base.js
  23. +732 −0 canvaslab/vendor/excanvas.js
  24. +2,006 −0 canvaslab/vendor/prototype.js
  25. +3 −0 canvasprimitives/README
  26. +9 −0 canvasprimitives/Rakefile
  27. +15 −0 canvasprimitives/src/canvaslab.js
  28. +13 −0 canvasprimitives/src/line.js
  29. +23 −0 canvasprimitives/src/node.js
  30. +35 −0 canvasprimitives/src/polygon.js
  31. +32 −0 canvasprimitives/src/quaternion.js
  32. +33 −0 canvasprimitives/src/scene.js
  33. 0 canvasprimitives/src/test.js
  34. +408 −0 canvasprimitives/test/shell.html
  35. +2,006 −0 canvasprimitives/vendor/prototype.js
  36. +19 −0 cropper/LICENSE
  37. +233 −0 cropper/cropper.js
  38. +108 −0 event-selectors/event-selectors.js
  39. +56 −0 flash/flash.js
  40. +86 −0 hovertools/hovertools.js
  41. +129 −0 logger/logger.js
  42. 0 plastik/README
  43. +576 −0 plastik/canvas.js
  44. +757 −0 plastik/lib/color.js
  45. +105 −0 plastik/lib/prototype-ext.js
  46. +144 −0 plastik/plastik.js
  47. +446 −0 plastik/stage.js
  48. +255 −0 plastik/sweetcanvas.js
  49. +78 −0 resizer/resizer.js
@@ -0,0 +1,16 @@
+Copyright (c) 2006 Justin Palmer
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
@@ -0,0 +1,24 @@
+# CanvasLab
+## Canvas and charting library for the Prototype Javascript library.
+
+### Supported Browsers
+* Firefox 1.5
+* Safari 2.0.3
+* Internet Explorer 6 (with excanvas.js)
+* Webkit (Nightly Builds)
+
+Internet Explorer requires [excanvas.js](http://svn.sourceforge.net/viewcvs.cgi/*checkout*/excanvas/excanvas.js).
+This file must be included *before* CanvasLab.
+
+
+### Credits
+
+CanvasLab owes a lot of credit to Alastair Tse and his [plotKit library](http://www.liquidx.net/plotkit/).
+A lot of the algorithms found in CanvasLab were derived from the work Alastair did on plotKit.
+
+CanvasLab also uses a few derivatives of other open source tools. Thanks to these fine chaps for making
+them.
+
+* [Base](http://dean.edwards.name/base/Base.js) (*Dean Edwards*)
+* [DomBuilder](http://www.vivabit.com/bollocks/2006/04/06/introducing-dom-builder) (*Dan Webb*)
+* [Color and Format](http://mochikit.com/doc/html/MochiKit/Color.html) (*Bob Ippolito's Mochikit*)
@@ -0,0 +1,40 @@
+require 'rake'
+require 'rake/packagetask'
+
+CANVASLAB_ROOT = File.expand_path(File.dirname(__FILE__))
+CANVASLAB_SRC_DIR = File.join(CANVASLAB_ROOT, 'src')
+CANVASLAB_DIST_DIR = File.join(CANVASLAB_ROOT, 'dist')
+CANVASLAB_PKG_DIR = File.join(CANVASLAB_ROOT, 'pkg')
+CANVASLAB_VERSION = '0.1.0'
+
+desc "Update Prototype to latest"
+task :update_prototype do
+ rm 'vendor/prototype.js' if File.exists?('vendor/prototype.js')
+ `svn export http://dev.rubyonrails.org/svn/rails/trunk/railties/html/javascripts/prototype.js vendor/prototype.js`
+ puts '-> Prototype updated sucessfully'
+end
+
+
+desc "Combine all the files for distribution"
+task :dist do
+ $:.unshift File.join(CANVASLAB_ROOT, 'lib')
+ require 'protodoc'
+
+ Dir.chdir(CANVASLAB_SRC_DIR) do
+ File.open(File.join(CANVASLAB_DIST_DIR, 'canvaslab.js'), 'w+') do |dist|
+ dist << Protodoc::Preprocessor.new('canvaslab.js')
+ end
+ end
+end
+
+Rake::PackageTask.new('canvaslab', CANVASLAB_VERSION) do |package|
+ package.need_tar_gz = true
+ package.package_dir = CANVASLAB_PKG_DIR
+ package.package_files.include(
+ '[A-Z]*',
+ 'dist/canvaslab.js',
+ 'lib/**',
+ 'src/**',
+ 'test/**'
+ )
+end
@@ -0,0 +1,21 @@
+[C] = Complete
+[I] = In Progress
+
+* Allow single value datasets.
+ This should be a matter of checking if an array is
+ given and if not generate the first point.
+* Theme doesn't use enough colors if there are numerous data sets
+* Rip out some of the unwanted bloat from ToolKit.Color
+* Unit Tests
+* Code Optimization (Speed, Speed, Speed)
+* [C] Horizontal Bar
+* Stacked Bar
+* Re-implement DOM Builder using Base
+* Implement Legends (Export datasets to html list?)
+* Remove ToolKit Namespace?
+* Image's as Backgrounds (Tile/Static)
+
+
+RESEARCH/MAYBE
+ * Event Plugin? (Signals and Slots?)
+ * 3D Charts (non-core feature...perhaps a pluggable 3D API)
Oops, something went wrong.

0 comments on commit 02a04d2

Please sign in to comment.