old_sql 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +179 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +814 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +1703 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +755 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +1197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +168 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +187 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +300 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +524 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +420 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +142 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +240 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +508 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +244 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +385 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +384 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +1161 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +447 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +113 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +767 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +1445 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +651 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +1143 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +145 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +258 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +454 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +348 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +128 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +26 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +498 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +895 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +83 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +401 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +10 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +96 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +4 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +95 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +42 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +90 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +189 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +36 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +65 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +483 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +62 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +373 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +5 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +85 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +46 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +11 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +74 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +125 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +59 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +3 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +45 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +119 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +91 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +93 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +64 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +66 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +177 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +339 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +22 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +622 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +70 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +130 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +682 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +1489 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +863 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +1256 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +222 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +793 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +304 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +844 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +315 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +188 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +115 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +236 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +415 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +897 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +589 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +594 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +162 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +2026 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +7829 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +251 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +381 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +159 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +25 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +16 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +577 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +137 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +52 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +89 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +408 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +34 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +84 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +363 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +32 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +295 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +223 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +481 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +406 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +683 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +756 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +2177 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +705 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +348 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +247 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +9 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +723 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/README +1 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +302 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +139 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +172 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +81 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +155 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +50 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +428 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +330 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +368 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +256 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +436 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +299 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +159 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +64 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +334 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +304 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +144 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +62 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +37 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +31 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +25 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +143 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +56 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +133 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +136 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +38 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +43 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +53 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +61 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +6 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +141 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +26 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +147 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +24 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +89 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +66 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +20 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +31 -0
- metadata +264 -2
@@ -0,0 +1,348 @@
|
|
1
|
+
/*
|
2
|
+
PlotKit Sweet Canvas Renderer
|
3
|
+
=============================
|
4
|
+
Canvas Renderer for PlotKit which looks pretty!
|
5
|
+
|
6
|
+
Copyright
|
7
|
+
---------
|
8
|
+
Copyright 2005,2006 (c) Alastair Tse <alastair^liquidx.net>
|
9
|
+
For use under the BSD license. <http://www.liquidx.net/plotkit>
|
10
|
+
*/
|
11
|
+
|
12
|
+
// -------------------------------------------------------------------------
|
13
|
+
// Check required components
|
14
|
+
// -------------------------------------------------------------------------
|
15
|
+
|
16
|
+
try {
|
17
|
+
if (typeof(PlotKit.CanvasRenderer) == 'undefined')
|
18
|
+
{
|
19
|
+
throw "";
|
20
|
+
}
|
21
|
+
}
|
22
|
+
catch (e) {
|
23
|
+
throw "SweetCanvas depends on MochiKit.{Base,Color,DOM,Format} and PlotKit.{Layout, Canvas}"
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
if (typeof(PlotKit.SweetCanvasRenderer) == 'undefined') {
|
28
|
+
PlotKit.SweetCanvasRenderer = {};
|
29
|
+
}
|
30
|
+
|
31
|
+
PlotKit.SweetCanvasRenderer = function(element, layout, options) {
|
32
|
+
if (arguments.length > 0) {
|
33
|
+
this.__init__(element, layout, options);
|
34
|
+
}
|
35
|
+
};
|
36
|
+
|
37
|
+
PlotKit.SweetCanvasRenderer.NAME = "PlotKit.SweetCanvasRenderer";
|
38
|
+
PlotKit.SweetCanvasRenderer.VERSION = PlotKit.VERSION;
|
39
|
+
|
40
|
+
PlotKit.SweetCanvasRenderer.__repr__ = function() {
|
41
|
+
return "[" + this.NAME + " " + this.VERSION + "]";
|
42
|
+
};
|
43
|
+
|
44
|
+
PlotKit.SweetCanvasRenderer.toString = function() {
|
45
|
+
return this.__repr__();
|
46
|
+
};
|
47
|
+
|
48
|
+
// ---------------------------------------------------------------------
|
49
|
+
// Subclassing Magic
|
50
|
+
// ---------------------------------------------------------------------
|
51
|
+
|
52
|
+
PlotKit.SweetCanvasRenderer.prototype = new PlotKit.CanvasRenderer();
|
53
|
+
PlotKit.SweetCanvasRenderer.prototype.constructor = PlotKit.SweetCanvasRenderer;
|
54
|
+
PlotKit.SweetCanvasRenderer.__super__ = PlotKit.CanvasRenderer.prototype;
|
55
|
+
|
56
|
+
// ---------------------------------------------------------------------
|
57
|
+
// Constructor
|
58
|
+
// ---------------------------------------------------------------------
|
59
|
+
|
60
|
+
PlotKit.SweetCanvasRenderer.prototype.__init__ = function(el, layout, opts) {
|
61
|
+
var moreOpts = PlotKit.Base.officeBlue();
|
62
|
+
MochiKit.Base.update(moreOpts, opts);
|
63
|
+
PlotKit.SweetCanvasRenderer.__super__.__init__.call(this, el, layout, moreOpts);
|
64
|
+
};
|
65
|
+
|
66
|
+
// ---------------------------------------------------------------------
|
67
|
+
// Extended Plotting Functions
|
68
|
+
// ---------------------------------------------------------------------
|
69
|
+
|
70
|
+
PlotKit.SweetCanvasRenderer.prototype._renderBarChart = function() {
|
71
|
+
var bind = MochiKit.Base.bind;
|
72
|
+
var shadowColor = Color.blackColor().colorWithAlpha(0.1).toRGBString();
|
73
|
+
|
74
|
+
var prepareFakeShadow = function(context, x, y, w, h) {
|
75
|
+
context.fillStyle = shadowColor;
|
76
|
+
context.fillRect(x-2, y-2, w+4, h+2);
|
77
|
+
context.fillStyle = shadowColor;
|
78
|
+
context.fillRect(x-1, y-1, w+2, h+1);
|
79
|
+
};
|
80
|
+
|
81
|
+
var colorCount = this.options.colorScheme.length;
|
82
|
+
var colorScheme = this.options.colorScheme;
|
83
|
+
var setNames = PlotKit.Base.keys(this.layout.datasets);
|
84
|
+
var setCount = setNames.length;
|
85
|
+
|
86
|
+
var chooseColor = function(name) {
|
87
|
+
for (var i = 0; i < setCount; i++) {
|
88
|
+
if (name == setNames[i])
|
89
|
+
return colorScheme[i%colorCount];
|
90
|
+
}
|
91
|
+
return colorScheme[0];
|
92
|
+
};
|
93
|
+
|
94
|
+
var drawRect = function(context, bar) {
|
95
|
+
var x = this.area.w * bar.x + this.area.x;
|
96
|
+
var y = this.area.h * bar.y + this.area.y;
|
97
|
+
var w = this.area.w * bar.w;
|
98
|
+
var h = this.area.h * bar.h;
|
99
|
+
|
100
|
+
if ((w < 1) || (h < 1))
|
101
|
+
return;
|
102
|
+
|
103
|
+
context.save();
|
104
|
+
|
105
|
+
context.shadowBlur = 5.0;
|
106
|
+
context.shadowColor = Color.fromHexString("#888888").toRGBString();
|
107
|
+
|
108
|
+
if (this.isIE) {
|
109
|
+
context.save();
|
110
|
+
context.fillStyle = "#cccccc";
|
111
|
+
context.fillRect(x-2, y-2, w+4, h+2);
|
112
|
+
context.restore();
|
113
|
+
}
|
114
|
+
else {
|
115
|
+
prepareFakeShadow(context, x, y, w, h);
|
116
|
+
}
|
117
|
+
|
118
|
+
if (this.options.shouldFill) {
|
119
|
+
context.fillStyle = chooseColor(bar.name).toRGBString();
|
120
|
+
context.fillRect(x, y, w, h);
|
121
|
+
}
|
122
|
+
|
123
|
+
context.shadowBlur = 0;
|
124
|
+
context.strokeStyle = Color.whiteColor().toRGBString();
|
125
|
+
context.lineWidth = 2.0;
|
126
|
+
|
127
|
+
if (this.options.shouldStroke) {
|
128
|
+
context.strokeRect(x, y, w, h);
|
129
|
+
}
|
130
|
+
|
131
|
+
context.restore();
|
132
|
+
|
133
|
+
};
|
134
|
+
this._renderBarChartWrap(this.layout.bars, bind(drawRect, this));
|
135
|
+
};
|
136
|
+
|
137
|
+
PlotKit.SweetCanvasRenderer.prototype._renderLineChart = function() {
|
138
|
+
var context = this.element.getContext("2d");
|
139
|
+
var colorCount = this.options.colorScheme.length;
|
140
|
+
var colorScheme = this.options.colorScheme;
|
141
|
+
var setNames = PlotKit.Base.keys(this.layout.datasets);
|
142
|
+
var setCount = setNames.length;
|
143
|
+
var bind = MochiKit.Base.bind;
|
144
|
+
|
145
|
+
|
146
|
+
for (var i = 0; i < setCount; i++) {
|
147
|
+
var setName = setNames[i];
|
148
|
+
var color = colorScheme[i%colorCount];
|
149
|
+
var strokeX = this.options.strokeColorTransform;
|
150
|
+
|
151
|
+
// setup graphics context
|
152
|
+
context.save();
|
153
|
+
|
154
|
+
// create paths
|
155
|
+
var makePath = function(ctx) {
|
156
|
+
ctx.beginPath();
|
157
|
+
ctx.moveTo(this.area.x, this.area.y + this.area.h);
|
158
|
+
var addPoint = function(ctx_, point) {
|
159
|
+
if (point.name == setName)
|
160
|
+
ctx_.lineTo(this.area.w * point.x + this.area.x,
|
161
|
+
this.area.h * point.y + this.area.y);
|
162
|
+
};
|
163
|
+
MochiKit.Iter.forEach(this.layout.points, partial(addPoint, ctx), this);
|
164
|
+
ctx.lineTo(this.area.w + this.area.x,
|
165
|
+
this.area.h + this.area.y);
|
166
|
+
ctx.lineTo(this.area.x, this.area.y + this.area.h);
|
167
|
+
ctx.closePath();
|
168
|
+
};
|
169
|
+
|
170
|
+
// faux shadow for firefox
|
171
|
+
if (this.options.shouldFill) {
|
172
|
+
context.save();
|
173
|
+
if (this.isIE) {
|
174
|
+
context.fillStyle = "#cccccc";
|
175
|
+
}
|
176
|
+
else {
|
177
|
+
context.fillStyle = Color.blackColor().colorWithAlpha(0.2).toRGBString();
|
178
|
+
}
|
179
|
+
context.translate(-1, -2);
|
180
|
+
bind(makePath, this)(context);
|
181
|
+
if (this.options.shouldFill) {
|
182
|
+
context.fill();
|
183
|
+
}
|
184
|
+
context.restore();
|
185
|
+
}
|
186
|
+
|
187
|
+
context.shadowBlur = 5.0;
|
188
|
+
context.shadowColor = Color.fromHexString("#888888").toRGBString();
|
189
|
+
context.fillStyle = color.toRGBString();
|
190
|
+
context.lineWidth = 2.0;
|
191
|
+
context.strokeStyle = Color.whiteColor().toRGBString();
|
192
|
+
|
193
|
+
if (this.options.shouldFill) {
|
194
|
+
bind(makePath, this)(context);
|
195
|
+
context.fill();
|
196
|
+
}
|
197
|
+
if (this.options.shouldStroke) {
|
198
|
+
bind(makePath, this)(context);
|
199
|
+
context.stroke();
|
200
|
+
}
|
201
|
+
context.restore();
|
202
|
+
}
|
203
|
+
};
|
204
|
+
|
205
|
+
PlotKit.SweetCanvasRenderer.prototype._renderPieChart = function() {
|
206
|
+
var context = this.element.getContext("2d");
|
207
|
+
|
208
|
+
var colorCount = this.options.colorScheme.length;
|
209
|
+
var slices = this.layout.slices;
|
210
|
+
|
211
|
+
var centerx = this.area.x + this.area.w * 0.5;
|
212
|
+
var centery = this.area.y + this.area.h * 0.5;
|
213
|
+
var radius = Math.min(this.area.w * this.options.pieRadius,
|
214
|
+
this.area.h * this.options.pieRadius);
|
215
|
+
|
216
|
+
if (this.isIE) {
|
217
|
+
centerx = parseInt(centerx);
|
218
|
+
centery = parseInt(centery);
|
219
|
+
radius = parseInt(radius);
|
220
|
+
}
|
221
|
+
|
222
|
+
// NOTE NOTE!! Canvas Tag draws the circle clockwise from the y = 0, x = 1
|
223
|
+
// so we have to subtract 90 degrees to make it start at y = 1, x = 0
|
224
|
+
|
225
|
+
if (!this.isIE) {
|
226
|
+
context.save();
|
227
|
+
var shadowColor = Color.blackColor().colorWithAlpha(0.2);
|
228
|
+
context.fillStyle = shadowColor.toRGBString();
|
229
|
+
context.shadowBlur = 5.0;
|
230
|
+
context.shadowColor = Color.fromHexString("#888888").toRGBString();
|
231
|
+
context.translate(1, 1);
|
232
|
+
context.beginPath();
|
233
|
+
context.moveTo(centerx, centery);
|
234
|
+
context.arc(centerx, centery, radius + 2, 0, Math.PI*2, false);
|
235
|
+
context.closePath();
|
236
|
+
context.fill();
|
237
|
+
context.restore();
|
238
|
+
}
|
239
|
+
|
240
|
+
context.save();
|
241
|
+
context.strokeStyle = Color.whiteColor().toRGBString();
|
242
|
+
context.lineWidth = 2.0;
|
243
|
+
for (var i = 0; i < slices.length; i++) {
|
244
|
+
var color = this.options.colorScheme[i%colorCount];
|
245
|
+
context.fillStyle = color.toRGBString();
|
246
|
+
|
247
|
+
var makePath = function() {
|
248
|
+
context.beginPath();
|
249
|
+
context.moveTo(centerx, centery);
|
250
|
+
context.arc(centerx, centery, radius,
|
251
|
+
slices[i].startAngle - Math.PI/2,
|
252
|
+
slices[i].endAngle - Math.PI/2,
|
253
|
+
false);
|
254
|
+
context.lineTo(centerx, centery);
|
255
|
+
context.closePath();
|
256
|
+
};
|
257
|
+
|
258
|
+
if (Math.abs(slices[i].startAngle - slices[i].endAngle) > 0.0001) {
|
259
|
+
if (this.options.shouldFill) {
|
260
|
+
makePath();
|
261
|
+
context.fill();
|
262
|
+
}
|
263
|
+
if (this.options.shouldStroke) {
|
264
|
+
makePath();
|
265
|
+
context.stroke();
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
context.restore();
|
270
|
+
};
|
271
|
+
|
272
|
+
PlotKit.SweetCanvasRenderer.prototype._renderBackground = function() {
|
273
|
+
var context = this.element.getContext("2d");
|
274
|
+
|
275
|
+
if (this.layout.style == "bar" || this.layout.style == "line") {
|
276
|
+
context.save();
|
277
|
+
context.fillStyle = this.options.backgroundColor.toRGBString();
|
278
|
+
context.fillRect(this.area.x, this.area.y, this.area.w, this.area.h);
|
279
|
+
context.strokeStyle = this.options.axisLineColor.toRGBString();
|
280
|
+
context.lineWidth = 1.0;
|
281
|
+
|
282
|
+
var ticks = this.layout.yticks;
|
283
|
+
var horiz = false;
|
284
|
+
if (this.layout.style == "bar" &&
|
285
|
+
this.layout.options.barOrientation == "horizontal") {
|
286
|
+
ticks = this.layout.xticks;
|
287
|
+
horiz = true;
|
288
|
+
}
|
289
|
+
|
290
|
+
for (var i = 0; i < ticks.length; i++) {
|
291
|
+
var x1 = 0;
|
292
|
+
var y1 = 0;
|
293
|
+
var x2 = 0;
|
294
|
+
var y2 = 0;
|
295
|
+
|
296
|
+
if (horiz) {
|
297
|
+
x1 = ticks[i][0] * this.area.w + this.area.x;
|
298
|
+
y1 = this.area.y;
|
299
|
+
x2 = x1;
|
300
|
+
y2 = y1 + this.area.h;
|
301
|
+
}
|
302
|
+
else {
|
303
|
+
x1 = this.area.x;
|
304
|
+
y1 = ticks[i][0] * this.area.h + this.area.y;
|
305
|
+
x2 = x1 + this.area.w;
|
306
|
+
y2 = y1;
|
307
|
+
}
|
308
|
+
|
309
|
+
context.beginPath();
|
310
|
+
context.moveTo(x1, y1);
|
311
|
+
context.lineTo(x2, y2);
|
312
|
+
context.closePath();
|
313
|
+
context.stroke();
|
314
|
+
}
|
315
|
+
context.restore();
|
316
|
+
}
|
317
|
+
else {
|
318
|
+
PlotKit.SweetCanvasRenderer.__super__._renderBackground.call(this);
|
319
|
+
}
|
320
|
+
};
|
321
|
+
|
322
|
+
// Namespace Iniitialisation
|
323
|
+
|
324
|
+
PlotKit.SweetCanvas = {}
|
325
|
+
PlotKit.SweetCanvas.SweetCanvasRenderer = PlotKit.SweetCanvasRenderer;
|
326
|
+
|
327
|
+
PlotKit.SweetCanvas.EXPORT = [
|
328
|
+
"SweetCanvasRenderer"
|
329
|
+
];
|
330
|
+
|
331
|
+
PlotKit.SweetCanvas.EXPORT_OK = [
|
332
|
+
"SweetCanvasRenderer"
|
333
|
+
];
|
334
|
+
|
335
|
+
PlotKit.SweetCanvas.__new__ = function() {
|
336
|
+
var m = MochiKit.Base;
|
337
|
+
|
338
|
+
m.nameFunctions(this);
|
339
|
+
|
340
|
+
this.EXPORT_TAGS = {
|
341
|
+
":common": this.EXPORT,
|
342
|
+
":all": m.concat(this.EXPORT, this.EXPORT_OK)
|
343
|
+
};
|
344
|
+
};
|
345
|
+
|
346
|
+
PlotKit.SweetCanvas.__new__();
|
347
|
+
MochiKit.Base._exportSymbols(this, PlotKit.SweetCanvas);
|
348
|
+
|
@@ -0,0 +1,247 @@
|
|
1
|
+
/*
|
2
|
+
PlotKit Sweet SVG Renderer
|
3
|
+
==========================
|
4
|
+
SVG Renderer for PlotKit which looks pretty!
|
5
|
+
|
6
|
+
Copyright
|
7
|
+
---------
|
8
|
+
Copyright 2005,2006 (c) Alastair Tse <alastair^liquidx.net>
|
9
|
+
For use under the BSD license. <http://www.liquidx.net/plotkit>
|
10
|
+
*/
|
11
|
+
|
12
|
+
|
13
|
+
// -------------------------------------------------------------------------
|
14
|
+
// Check required components
|
15
|
+
// -------------------------------------------------------------------------
|
16
|
+
|
17
|
+
try {
|
18
|
+
if (typeof(PlotKit.SVGRenderer) == 'undefined')
|
19
|
+
{
|
20
|
+
throw "";
|
21
|
+
}
|
22
|
+
}
|
23
|
+
catch (e) {
|
24
|
+
throw "SweetSVG depends on MochiKit.{Base,Color,DOM,Format} and PlotKit.{Layout, SVG}"
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
if (typeof(PlotKit.SweetSVGRenderer) == 'undefined') {
|
29
|
+
PlotKit.SweetSVGRenderer = {};
|
30
|
+
}
|
31
|
+
|
32
|
+
PlotKit.SweetSVGRenderer = function(element, layout, options) {
|
33
|
+
if (arguments.length > 0) {
|
34
|
+
this.__init__(element, layout, options);
|
35
|
+
}
|
36
|
+
};
|
37
|
+
|
38
|
+
PlotKit.SweetSVGRenderer.NAME = "PlotKit.SweetSVGRenderer";
|
39
|
+
PlotKit.SweetSVGRenderer.VERSION = PlotKit.VERSION;
|
40
|
+
|
41
|
+
PlotKit.SweetSVGRenderer.__repr__ = function() {
|
42
|
+
return "[" + this.NAME + " " + this.VERSION + "]";
|
43
|
+
};
|
44
|
+
|
45
|
+
PlotKit.SweetSVGRenderer.toString = function() {
|
46
|
+
return this.__repr__();
|
47
|
+
};
|
48
|
+
|
49
|
+
// ---------------------------------------------------------------------
|
50
|
+
// Subclassing Magic
|
51
|
+
// ---------------------------------------------------------------------
|
52
|
+
|
53
|
+
PlotKit.SweetSVGRenderer.prototype = new PlotKit.SVGRenderer();
|
54
|
+
PlotKit.SweetSVGRenderer.prototype.constructor = PlotKit.SweetSVGRenderer;
|
55
|
+
PlotKit.SweetSVGRenderer.__super__ = PlotKit.SVGRenderer.prototype;
|
56
|
+
|
57
|
+
// ---------------------------------------------------------------------
|
58
|
+
// Constructor
|
59
|
+
// ---------------------------------------------------------------------
|
60
|
+
|
61
|
+
PlotKit.SweetSVGRenderer.prototype.__init__ = function(element, layout, options) {
|
62
|
+
var moreOpts = PlotKit.Base.officeBlue();
|
63
|
+
MochiKit.Base.update(moreOpts, options);
|
64
|
+
PlotKit.SweetSVGRenderer.__super__.__init__.call(this, element, layout, moreOpts);
|
65
|
+
//this._addDropShadowFilter();
|
66
|
+
};
|
67
|
+
|
68
|
+
PlotKit.SweetSVGRenderer.prototype._addDropShadowFilter = function() {
|
69
|
+
var filter = this.createSVGElement("filter", {x: 0, y: 0, "id":"dropShadow"});
|
70
|
+
var goffset = this.createSVGElement("feOffset",
|
71
|
+
{"in": "SourceGraphic", "dx": 0, "dy": 0, "result": "topCopy"});
|
72
|
+
var blur = this.createSVGElement("feGaussianBlur",
|
73
|
+
{"in": "SourceAlpha", "StdDeviation": 2, "result": "shadow"});
|
74
|
+
var soffset = this.createSVGElement("feOffset",
|
75
|
+
{"in": "shadow", "dx": -1, "dy": -2, "result":"movedShadow"});
|
76
|
+
var merge = this.createSVGElement("feMerge");
|
77
|
+
var gmerge = this.createSVGElement("feMergeNode", {"in":"topCopy"});
|
78
|
+
var smerge = this.createSVGElement("feMergeNode", {"in":"movedShadow"});
|
79
|
+
|
80
|
+
merge.appendChild(gmerge);
|
81
|
+
merge.appendChild(smerge);
|
82
|
+
filter.appendChild(goffset);
|
83
|
+
filter.appendChild(blur);
|
84
|
+
filter.appendChild(soffset);
|
85
|
+
filter.appendChild(merge);
|
86
|
+
this.defs.appendChild(filter);
|
87
|
+
};
|
88
|
+
|
89
|
+
// ---------------------------------------------------------------------
|
90
|
+
// Extended Plotting Functions
|
91
|
+
// ---------------------------------------------------------------------
|
92
|
+
|
93
|
+
PlotKit.SweetSVGRenderer.prototype._renderBarChart = function() {
|
94
|
+
var bind = MochiKit.Base.bind;
|
95
|
+
var shadowColor = Color.blackColor().toRGBString();
|
96
|
+
var shadowStyle = "fill:" + shadowColor + ";fill-opacity:0.15";
|
97
|
+
var strokeStyle = "stroke-width: 2.0; stroke:" + Color.whiteColor().toRGBString();
|
98
|
+
|
99
|
+
var drawRect = function(attrs, bar) {
|
100
|
+
var x = this.area.w * bar.x + this.area.x;
|
101
|
+
var y = this.area.h * bar.y + this.area.y;
|
102
|
+
var w = this.area.w * bar.w;
|
103
|
+
var h = this.area.h * bar.h;
|
104
|
+
|
105
|
+
if ((w < 1) || (h < 1))
|
106
|
+
return;
|
107
|
+
|
108
|
+
//attrs["filter"] = "url(#dropShadow)";
|
109
|
+
attrs["style"] = strokeStyle;
|
110
|
+
this._drawRect(x - 2, y - 1, w+4, h+2, {"style":shadowStyle});
|
111
|
+
this._drawRect(x, y, w, h, attrs);
|
112
|
+
};
|
113
|
+
this._renderBarOrLine(this.layout.bars, bind(drawRect, this));
|
114
|
+
|
115
|
+
};
|
116
|
+
|
117
|
+
PlotKit.SweetSVGRenderer.prototype._renderLineChart = function() {
|
118
|
+
var bind = MochiKit.Base.bind;
|
119
|
+
var shadowColor = Color.blackColor().toRGBString();
|
120
|
+
var shadowStyle = "fill:" + shadowColor + ";fill-opacity:0.15";
|
121
|
+
var strokeStyle = "stroke-width: 2.0; stroke:" + Color.whiteColor().toRGBString();
|
122
|
+
|
123
|
+
var addPoint = function(attrs, point) {
|
124
|
+
this._tempPointsBuffer += (this.area.w * point.x + this.area.x) + "," +
|
125
|
+
(this.area.h * point.y + this.area.y) + " ";
|
126
|
+
};
|
127
|
+
|
128
|
+
var startLine = function(attrs) {
|
129
|
+
this._tempPointsBuffer = "";
|
130
|
+
this._tempPointsBuffer += (this.area.x) + "," + (this.area.y+this.area.h) + " ";
|
131
|
+
};
|
132
|
+
|
133
|
+
var endLine = function(attrs) {
|
134
|
+
this._tempPointsBuffer += (this.area.w + this.area.x) + "," +(this.area.h + this.area.y);
|
135
|
+
attrs["points"] = this._tempPointsBuffer;
|
136
|
+
|
137
|
+
attrs["stroke"] = "none";
|
138
|
+
attrs["transform"] = "translate(-2, -1)";
|
139
|
+
attrs["style"] = shadowStyle;
|
140
|
+
var shadow = this.createSVGElement("polygon", attrs);
|
141
|
+
this.root.appendChild(shadow);
|
142
|
+
|
143
|
+
attrs["transform"] = "";
|
144
|
+
attrs["style"] = strokeStyle;
|
145
|
+
var elem = this.createSVGElement("polygon", attrs);
|
146
|
+
this.root.appendChild(elem);
|
147
|
+
|
148
|
+
|
149
|
+
};
|
150
|
+
|
151
|
+
this._renderBarOrLine(this.layout.points,
|
152
|
+
bind(addPoint, this),
|
153
|
+
bind(startLine, this),
|
154
|
+
bind(endLine, this));
|
155
|
+
};
|
156
|
+
|
157
|
+
PlotKit.SweetSVGRenderer.prototype._renderPieChart = function() {
|
158
|
+
var centerx = this.area.x + this.area.w * 0.5;
|
159
|
+
var centery = this.area.y + this.area.h * 0.5;
|
160
|
+
var shadowColor = Color.blackColor().toRGBString();
|
161
|
+
var radius = Math.min(this.area.w * this.options.pieRadius,
|
162
|
+
this.area.h * this.options.pieRadius);
|
163
|
+
var shadowStyle = "fill:" + shadowColor + ";fill-opacity:0.15";
|
164
|
+
|
165
|
+
var shadow = this.createSVGElement("circle",
|
166
|
+
{"style": shadowStyle, "cx": centerx + 1, "cy": centery + 1, "r": radius + 1});
|
167
|
+
this.root.appendChild(shadow);
|
168
|
+
|
169
|
+
PlotKit.SweetSVGRenderer.__super__._renderPieChart.call(this);
|
170
|
+
};
|
171
|
+
|
172
|
+
|
173
|
+
PlotKit.SweetSVGRenderer.prototype._renderBackground = function() {
|
174
|
+
var attrs = {
|
175
|
+
"fill": this.options.backgroundColor.toRGBString(),
|
176
|
+
"stroke": "none"
|
177
|
+
};
|
178
|
+
|
179
|
+
|
180
|
+
if (this.layout.style == "bar" || this.layout.style == "line") {
|
181
|
+
this._drawRect(this.area.x, this.area.y,
|
182
|
+
this.area.w, this.area.h, attrs);
|
183
|
+
|
184
|
+
var ticks = this.layout.yticks;
|
185
|
+
var horiz = false;
|
186
|
+
if (this.layout.style == "bar" &&
|
187
|
+
this.layout.options.barOrientation == "horizontal") {
|
188
|
+
ticks = this.layout.xticks;
|
189
|
+
horiz = true;
|
190
|
+
}
|
191
|
+
|
192
|
+
for (var i = 0; i < ticks.length; i++) {
|
193
|
+
var x = 0;
|
194
|
+
var y = 0;
|
195
|
+
var w = 0;
|
196
|
+
var h = 0;
|
197
|
+
|
198
|
+
if (horiz) {
|
199
|
+
x = ticks[i][0] * this.area.w + this.area.x;
|
200
|
+
y = this.area.y;
|
201
|
+
w = 1;
|
202
|
+
h = this.area.w;
|
203
|
+
}
|
204
|
+
else {
|
205
|
+
x = this.area.x;
|
206
|
+
y = ticks[i][0] * this.area.h + this.area.y;
|
207
|
+
w = this.area.w;
|
208
|
+
h = 1;
|
209
|
+
}
|
210
|
+
|
211
|
+
this._drawRect(x, y, w, h,
|
212
|
+
{"fill": this.options.axisLineColor.toRGBString()});
|
213
|
+
}
|
214
|
+
}
|
215
|
+
else {
|
216
|
+
PlotKit.SweetSVGRenderer.__super__._renderBackground.call(this);
|
217
|
+
|
218
|
+
}
|
219
|
+
|
220
|
+
};
|
221
|
+
|
222
|
+
// Namespace Iniitialisation
|
223
|
+
|
224
|
+
PlotKit.SweetSVG = {}
|
225
|
+
PlotKit.SweetSVG.SweetSVGRenderer = PlotKit.SweetSVGRenderer;
|
226
|
+
|
227
|
+
PlotKit.SweetSVG.EXPORT = [
|
228
|
+
"SweetSVGRenderer"
|
229
|
+
];
|
230
|
+
|
231
|
+
PlotKit.SweetSVG.EXPORT_OK = [
|
232
|
+
"SweetSVGRenderer"
|
233
|
+
];
|
234
|
+
|
235
|
+
PlotKit.SweetSVG.__new__ = function() {
|
236
|
+
var m = MochiKit.Base;
|
237
|
+
|
238
|
+
m.nameFunctions(this);
|
239
|
+
|
240
|
+
this.EXPORT_TAGS = {
|
241
|
+
":common": this.EXPORT,
|
242
|
+
":all": m.concat(this.EXPORT, this.EXPORT_OK)
|
243
|
+
};
|
244
|
+
};
|
245
|
+
|
246
|
+
PlotKit.SweetSVG.__new__();
|
247
|
+
MochiKit.Base._exportSymbols(this, PlotKit.SweetSVG);
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg
|
3
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
4
|
+
xmlns:cc="http://web.resource.org/cc/"
|
5
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
6
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
8
|
+
xmlns:xlink="http://www.w3.org/1999/xlink">
|
9
|
+
</svg>
|