old_sql 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,37 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
import os
|
|
5
|
+
import re
|
|
6
|
+
sys.path.append('/home/al/sites')
|
|
7
|
+
os.environ['DJANGO_SETTINGS_MODULE'] = '__main__'
|
|
8
|
+
|
|
9
|
+
DEFAULT_CHARSET = "utf-8"
|
|
10
|
+
TEMPLATE_DEBUG = False
|
|
11
|
+
LANGUAGE_CODE = "en"
|
|
12
|
+
|
|
13
|
+
INSTALLED_APPS = (
|
|
14
|
+
'django.contrib.markup',
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
TEMPLATE_DIRS = (
|
|
18
|
+
'/home/al/sites/liquidx/templates',
|
|
19
|
+
'.'
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
from django.template import Template, Context, loader
|
|
23
|
+
|
|
24
|
+
def make(src, dst):
|
|
25
|
+
print '%s -> %s' % (src, dst)
|
|
26
|
+
c = Context({})
|
|
27
|
+
filled = loader.render_to_string(src, {})
|
|
28
|
+
open(dst, 'w').write(filled)
|
|
29
|
+
|
|
30
|
+
if __name__ == "__main__":
|
|
31
|
+
for dirname, dirs, files in os.walk('.'):
|
|
32
|
+
if re.search('/\.svn', dirname):
|
|
33
|
+
continue
|
|
34
|
+
for f in files:
|
|
35
|
+
if f[-4:] == ".txt":
|
|
36
|
+
newname = f.replace('.txt', '.html')
|
|
37
|
+
make(os.path.join(dirname, f), os.path.join(dirname, newname))
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
#
|
|
3
|
+
# custom_rhino.jar from:
|
|
4
|
+
# http://dojotoolkit.org/svn/dojo/buildscripts/lib/custom_rhino.jar
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
import os
|
|
8
|
+
import re
|
|
9
|
+
import sys
|
|
10
|
+
import shutil
|
|
11
|
+
import subprocess
|
|
12
|
+
mk = file('PlotKit/PlotKit.js').read()
|
|
13
|
+
if len(sys.argv) > 1:
|
|
14
|
+
outf = sys.stdout
|
|
15
|
+
else:
|
|
16
|
+
outf = file('PlotKit/PlotKit_Packed.js', 'w')
|
|
17
|
+
VERSION = re.search(
|
|
18
|
+
r"""(?mxs)PlotKit.PlotKit.VERSION\s*=\s*['"]([^'"]+)""",
|
|
19
|
+
mk
|
|
20
|
+
).group(1)
|
|
21
|
+
if len(sys.argv) > 1:
|
|
22
|
+
SUBMODULES = sys.argv[1:]
|
|
23
|
+
else:
|
|
24
|
+
SUBMODULES = map(str.strip, re.search(
|
|
25
|
+
r"""(?mxs)PlotKit.PlotKit.SUBMODULES\s*=\s*\[([^\]]+)""",
|
|
26
|
+
mk
|
|
27
|
+
).group(1).replace(' ', '').replace('"', '').split(','))
|
|
28
|
+
|
|
29
|
+
alltext = '\n'.join(
|
|
30
|
+
[file('PlotKit/%s.js' % m).read() for m in SUBMODULES])
|
|
31
|
+
|
|
32
|
+
tf = file('_scratch.js', 'w')
|
|
33
|
+
tf.write(alltext)
|
|
34
|
+
tf.flush()
|
|
35
|
+
|
|
36
|
+
p = subprocess.Popen(
|
|
37
|
+
['java', '-jar', 'scripts/custom_rhino.jar', '-c', tf.name],
|
|
38
|
+
stdout=subprocess.PIPE,
|
|
39
|
+
)
|
|
40
|
+
print >>outf, """/***
|
|
41
|
+
|
|
42
|
+
PlotKit.PlotKit %(VERSION)s : PACKED VERSION
|
|
43
|
+
|
|
44
|
+
THIS FILE IS AUTOMATICALLY GENERATED. If creating patches, please
|
|
45
|
+
diff against the source tree, not this file.
|
|
46
|
+
|
|
47
|
+
For more information, <http://www.liquidx.net/plotkit/>.
|
|
48
|
+
|
|
49
|
+
Copyright (c) 2006. Alastair Tse.
|
|
50
|
+
|
|
51
|
+
***/
|
|
52
|
+
""" % locals()
|
|
53
|
+
shutil.copyfileobj(p.stdout, outf)
|
|
54
|
+
outf.write('\n')
|
|
55
|
+
outf.flush()
|
|
56
|
+
outf.close()
|
|
57
|
+
tf.close()
|
|
58
|
+
os.remove(tf.name)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>PlotKit: Axis Test</title>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
6
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet"
|
|
7
|
+
type="text/css" />
|
|
8
|
+
<link href="tests.css" media="screen" rel="Stylesheet" type="text/css" />
|
|
9
|
+
<script src="/js/mochi/MochiKit.js" type="text/javascript"></script>
|
|
10
|
+
<script src="/js/plotkit-svn/excanvas.js" type="text/javascript"></script>
|
|
11
|
+
<script src="/js/plotkit-svn/PlotKit_Packed.js" type="text/javascript"></script>
|
|
12
|
+
</head>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
<div id="body">
|
|
17
|
+
<h2>Axis Test</h2>
|
|
18
|
+
|
|
19
|
+
<div id="example" style="margin: 0 auto 0 auto;" width="400" height="400"></div>
|
|
20
|
+
|
|
21
|
+
<script type="text/javascript">
|
|
22
|
+
var data = [[0,0], [1,2], [2,3], [3, 7], [4, 8], [5, 6]];
|
|
23
|
+
var options = {"xAxis": [1,4], "yAxis":[1,6]};
|
|
24
|
+
var plotter = EasyPlot("line", options, $("example"),
|
|
25
|
+
[data, "sample.txt"]);
|
|
26
|
+
</script>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
|
|
30
|
+
</div>
|
|
31
|
+
</body></html>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>PlotKit : Basic Unit Tests</title>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
6
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet"
|
|
7
|
+
type="text/css" />
|
|
8
|
+
<link href="tests.css" media="screen" rel="Stylesheet"
|
|
9
|
+
type="text/css" />
|
|
10
|
+
<script src="/js/mochi/MochiKit.js" type="text/javascript"></script>
|
|
11
|
+
<script src="/js/plotkit-svn/excanvas.js" type="text/javascript"></script>
|
|
12
|
+
<script src="/js/plotkit-svn/PlotKit_Packed.js" type="text/javascript"></script>
|
|
13
|
+
<script src="/js/plotkit-tests/basic.js" type="text/javascript"></script>
|
|
14
|
+
</head>
|
|
15
|
+
|
|
16
|
+
<body>
|
|
17
|
+
<div id="body">
|
|
18
|
+
<h2>Basic Unit Tests for PlotKit</h2>
|
|
19
|
+
|
|
20
|
+
<div id="tests">
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
|
|
24
|
+
</div>
|
|
25
|
+
</body></html>
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* actual tests */
|
|
2
|
+
|
|
3
|
+
var opts = {
|
|
4
|
+
"IECanvasHTC": "../plotkit/iecanvas.htc",
|
|
5
|
+
"enableEvents": true,
|
|
6
|
+
"strokeColor": null
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
function alert_val(e) {
|
|
10
|
+
alert("x:" + e.chart.xval + "y:" + e.chart.yval);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function genericTest(num, plotStyle) {
|
|
14
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
|
15
|
+
var success = l.addDatasetFromTable("data" + num, $("test" + num));
|
|
16
|
+
l.evaluate();
|
|
17
|
+
var c = $("test" + num + "canvas");
|
|
18
|
+
var g = new PlotKit.CanvasRenderer(c, l, opts);
|
|
19
|
+
g.render();
|
|
20
|
+
|
|
21
|
+
// test events
|
|
22
|
+
MochiKit.Signal.connect(g, "onclick", alert_val);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function genericTestAndClear(num, plotStyle) {
|
|
26
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
|
27
|
+
l.addDatasetFromTable("data" + num, $("test" + num));
|
|
28
|
+
l.evaluate();
|
|
29
|
+
var c = $("test" + num + "canvas");
|
|
30
|
+
var g = new PlotKit.CanvasRenderer(c, l, opts);
|
|
31
|
+
g.render();
|
|
32
|
+
g.clear();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function dualDataSet(num, plotStyle) {
|
|
36
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
|
37
|
+
l.addDatasetFromTable("data1." + num, $("test" + num), 0, 1);
|
|
38
|
+
l.addDatasetFromTable("data2." + num, $("test" + num), 0, 2);
|
|
39
|
+
l.evaluate();
|
|
40
|
+
var c = $("test" + num + "canvas");
|
|
41
|
+
var g = new PlotKit.CanvasRenderer(c, l, opts);
|
|
42
|
+
g.render();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/* create HTML for tests */
|
|
47
|
+
|
|
48
|
+
function makeTableRow(list) {
|
|
49
|
+
return TR({}, map(partial(TD, null), list));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function generateTestTable(num, data) {
|
|
53
|
+
var tableid = "test" + num;
|
|
54
|
+
var tablehead = THEAD(null, map(makeTableRow, [["x", "y"]]));
|
|
55
|
+
var tablebody = TBODY(null, map(makeTableRow, data));
|
|
56
|
+
|
|
57
|
+
var table = TABLE({"class": "data", "id": tableid}, [tablehead, tablebody]);
|
|
58
|
+
return table;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function generateCanvas(num) {
|
|
62
|
+
var canvasid = "test" + num + "canvas";
|
|
63
|
+
var canvas = CANVAS({"id":canvasid, "width": "400", "height": "200"}, "");
|
|
64
|
+
return canvas
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function generateUnitTest(num, func, data, type, desc) {
|
|
68
|
+
var table = DIV({"class": "data"}, generateTestTable(num, data));
|
|
69
|
+
var canvas = DIV({"class": "canvas"}, generateCanvas(num));
|
|
70
|
+
var ending = DIV({"class":"ending"}, desc);
|
|
71
|
+
|
|
72
|
+
addLoadEvent(partial(func, num, type));
|
|
73
|
+
|
|
74
|
+
return DIV({"class": "unit"}, [table, canvas, ending]);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function generateTests() {
|
|
78
|
+
var tests = $('tests');
|
|
79
|
+
|
|
80
|
+
// datasets
|
|
81
|
+
var simpleData1 = [[0, 0], [1, 1], [2, 2], [3, 3]];
|
|
82
|
+
var simpleData2 = [[1, 2], [2, 3], [3, 4], [4, 5]];
|
|
83
|
+
var singleData = [[1, 1]];
|
|
84
|
+
|
|
85
|
+
var ninety = [[1, 9], [2, 1]];
|
|
86
|
+
|
|
87
|
+
var floatData1 = [[0, 0.5], [1, 0.4], [2, 0.3]];
|
|
88
|
+
var missingData = [[0, 1], [1, 4], [3, 16], [5, 17]];
|
|
89
|
+
|
|
90
|
+
var dualData = [[0,0,0], [1,2,1], [2,4,4], [3,8,9], [4,16,16], [5,32,25], [6, 64, 36], [7, 128, 49]];
|
|
91
|
+
|
|
92
|
+
tests.appendChild(H2(null, "Simple Tests"));
|
|
93
|
+
|
|
94
|
+
tests.appendChild(generateUnitTest(1, genericTest, simpleData1,
|
|
95
|
+
"bar", ""));
|
|
96
|
+
|
|
97
|
+
tests.appendChild(generateUnitTest(2, genericTest, simpleData1,
|
|
98
|
+
"line", ""));
|
|
99
|
+
|
|
100
|
+
tests.appendChild(generateUnitTest(3, genericTest, simpleData2,
|
|
101
|
+
"pie", ""));
|
|
102
|
+
|
|
103
|
+
tests.appendChild(H2(null, "One Value Set"));
|
|
104
|
+
|
|
105
|
+
tests.appendChild(generateUnitTest(4, genericTest, singleData,
|
|
106
|
+
"bar", ""));
|
|
107
|
+
tests.appendChild(generateUnitTest(5, genericTest, singleData,
|
|
108
|
+
"line", ""));
|
|
109
|
+
tests.appendChild(generateUnitTest(6, genericTest, singleData,
|
|
110
|
+
"pie", ""));
|
|
111
|
+
|
|
112
|
+
tests.appendChild(H2(null, "Float Values Set"));
|
|
113
|
+
tests.appendChild(generateUnitTest(7, genericTest, floatData1,
|
|
114
|
+
"bar", ""));
|
|
115
|
+
tests.appendChild(generateUnitTest(8, genericTest, floatData1,
|
|
116
|
+
"line", ""));
|
|
117
|
+
tests.appendChild(generateUnitTest(9, genericTest, floatData1,
|
|
118
|
+
"pie", ""));
|
|
119
|
+
|
|
120
|
+
tests.appendChild(H2(null, "Dual Value Set"));
|
|
121
|
+
tests.appendChild(generateUnitTest(10, dualDataSet, dualData,
|
|
122
|
+
"bar", ""));
|
|
123
|
+
tests.appendChild(generateUnitTest(11, dualDataSet, dualData,
|
|
124
|
+
"line", ""));
|
|
125
|
+
|
|
126
|
+
tests.appendChild(H2(null, "Drawing and Clearing"));
|
|
127
|
+
tests.appendChild(generateUnitTest(12, genericTest, floatData1,
|
|
128
|
+
"bar", ""));
|
|
129
|
+
tests.appendChild(generateUnitTest(13, genericTestAndClear, floatData1,
|
|
130
|
+
"bar", ""));
|
|
131
|
+
tests.appendChild(generateUnitTest(14, genericTest, floatData1,
|
|
132
|
+
"pie", ""));
|
|
133
|
+
tests.appendChild(generateUnitTest(15, genericTestAndClear, floatData1,
|
|
134
|
+
"pie", ""));
|
|
135
|
+
|
|
136
|
+
tests.appendChild(H2(null, "Testing Circle Drawing"));
|
|
137
|
+
|
|
138
|
+
tests.appendChild(generateUnitTest(16, genericTest, ninety,
|
|
139
|
+
"pie", ""));
|
|
140
|
+
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
addLoadEvent(generateTests);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>PlotKit: Debug</title>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
6
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet"
|
|
7
|
+
type="text/css" />
|
|
8
|
+
<link href="tests.css" media="screen" rel="Stylesheet" type="text/css" />
|
|
9
|
+
<script src="/js/mochi/MochiKit.js" type="text/javascript"></script>
|
|
10
|
+
<script src="/js/plotkit-svn/excanvas.js" type="text/javascript"></script>
|
|
11
|
+
<script src="/js/plotkit-svn/Base.js" type="text/javascript"></script>
|
|
12
|
+
<script src="/js/plotkit-svn/Layout.js" type="text/javascript"></script>
|
|
13
|
+
<script src="/js/plotkit-svn/Canvas.js" type="text/javascript"></script>
|
|
14
|
+
<script src="/js/plotkit-svn/SweetCanvas.js" type="text/javascript"></script>
|
|
15
|
+
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div id="body">
|
|
21
|
+
<h2>Debug</h2>
|
|
22
|
+
|
|
23
|
+
<div style="margin: 0 auto 0 auto; width: 500px;">
|
|
24
|
+
<div><canvas id="chart" width="500" height="300"></canvas></div>
|
|
25
|
+
|
|
26
|
+
<script type="text/javascript">
|
|
27
|
+
var options = {
|
|
28
|
+
"padding": {left: 20, right: 0, top: 10, bottom: 30},
|
|
29
|
+
"yAxis": [0, 60]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function drawGraph() {
|
|
33
|
+
var layoutOptions = {
|
|
34
|
+
"xAxis" : [1, 4],
|
|
35
|
+
"xOriginIsZero" : false,
|
|
36
|
+
"xTicks" : [ {v: 0}, {v: 1}, {v: 2}, {v: 3}, {v: 4}, {v: 5} ],
|
|
37
|
+
"yAxis" : [1, 4],
|
|
38
|
+
"yOriginIsZero" : false,
|
|
39
|
+
"yTicks" : [ {v: 0}, {v: 1}, {v: 2}, {v: 3}, {v: 4}, {v: 5} ]
|
|
40
|
+
};
|
|
41
|
+
var layout = new PlotKit.Layout("line", layoutOptions);
|
|
42
|
+
layout.addDataset("myDataset", [ [1, 1], [2, 2], [3, 3], [4, 4] ]);
|
|
43
|
+
layout.evaluate();
|
|
44
|
+
|
|
45
|
+
var canvas = MochiKit.DOM.getElement("chart");
|
|
46
|
+
var plotter = new PlotKit.SweetCanvasRenderer(canvas, layout, options);
|
|
47
|
+
plotter.render();
|
|
48
|
+
}
|
|
49
|
+
MochiKit.DOM.addLoadEvent(drawGraph);
|
|
50
|
+
|
|
51
|
+
</script>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
|
|
55
|
+
</div>
|
|
56
|
+
</body></html>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
4
|
+
<head>
|
|
5
|
+
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
|
|
6
|
+
<?import namespace="svg" implementation="#AdobeSVG"?>
|
|
7
|
+
<title>PlotKit: SVGRenderer Test</title>
|
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
9
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet"
|
|
10
|
+
type="text/css" />
|
|
11
|
+
<link href="tests.css" media="screen" rel="Stylesheet" type="text/css" />
|
|
12
|
+
|
|
13
|
+
<script src="/js/mochi/MochiKit.js" type="text/javascript"></script>
|
|
14
|
+
<script src="/js/plotkit/Base.js" type="text/javascript"></script>
|
|
15
|
+
<script src="/js/plotkit/Layout.js" type="text/javascript"></script>
|
|
16
|
+
<script src="/js/plotkit/SVG.js" type="text/javascript"></script>
|
|
17
|
+
<script src="/js/plotkit-tests/demo-svg.js" type="text/javascript"></script>
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
<body>
|
|
21
|
+
<div id="body">
|
|
22
|
+
<h2>PlotKit Demo Page (SVG)</h2>
|
|
23
|
+
|
|
24
|
+
<div id="tests">
|
|
25
|
+
<table class="matrix">
|
|
26
|
+
<tr>
|
|
27
|
+
<td><div><svg:svg id="test1" width="220" height="220"></svg:svg></div></td>
|
|
28
|
+
<td><div><svg:svg id="test2" width="220" height="220"></svg:svg></div></td>
|
|
29
|
+
<td><div><svg:svg id="test3" width="220" height="220"></svg:svg></div></td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr>
|
|
32
|
+
<td><div><svg:svg id="test4" width="220" height="220"></svg:svg></div></td>
|
|
33
|
+
<td><div><svg:svg id="test5" width="220" height="220"></svg:svg></div></td>
|
|
34
|
+
<td><div><svg:svg id="test6" width="220" height="220"></svg:svg></div></td>
|
|
35
|
+
</tr>
|
|
36
|
+
<tr>
|
|
37
|
+
<td><div><svg:svg id="test7" width="220" height="220"></svg:svg></div></td>
|
|
38
|
+
<td><div><svg:svg id="test8" width="220" height="220"></svg:svg></div></td>
|
|
39
|
+
<td><div><svg:svg id="test9" width="220" height="220"></svg:svg></div></td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr>
|
|
42
|
+
<td><div><svg:svg id="test10" width="220" height="220"></svg:svg></div></td>
|
|
43
|
+
<td><div><svg:svg id="test11" width="220" height="220"></svg:svg></div></td>
|
|
44
|
+
<td><div><svg:svg id="test12" width="220" height="220"></svg:svg></div></td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td><div><svg:svg id="test13" width="220" height="220"></svg:svg></div></td>
|
|
48
|
+
<td><div><svg:svg id="test14" width="220" height="220"></svg:svg></div></td>
|
|
49
|
+
<td><div><svg:svg id="test15" width="220" height="220"></svg:svg></div></td>
|
|
50
|
+
</tr>
|
|
51
|
+
|
|
52
|
+
</table>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
|
|
57
|
+
</div>
|
|
58
|
+
</body></html>
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* actual tests */
|
|
2
|
+
|
|
3
|
+
function drawDemo(element, layout, options) {
|
|
4
|
+
var renderer = new PlotKit.SVGRenderer(element, layout, options);
|
|
5
|
+
renderer.render();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function demoWithStyle(style) {
|
|
9
|
+
// datasets
|
|
10
|
+
var dataset = [
|
|
11
|
+
[0,1],
|
|
12
|
+
[1,4],
|
|
13
|
+
[2,16],
|
|
14
|
+
[3,8],
|
|
15
|
+
[4,16],
|
|
16
|
+
[5,4],
|
|
17
|
+
[6,1]
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
var dataset_rev = [
|
|
21
|
+
[6,0],
|
|
22
|
+
[5,1],
|
|
23
|
+
[4,4],
|
|
24
|
+
[3,9],
|
|
25
|
+
[2,16],
|
|
26
|
+
[1,25],
|
|
27
|
+
[0,36]
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
var options = {
|
|
31
|
+
"drawBackground": false,
|
|
32
|
+
"shouldFill": true,
|
|
33
|
+
"shouldStroke": true,
|
|
34
|
+
"drawXAxis": true,
|
|
35
|
+
"drawYAxis": true,
|
|
36
|
+
"padding": {left: 40, right: 10, top: 10, bottom: 20},
|
|
37
|
+
"axisLabelUseDiv": false
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
if (style == "pie") {
|
|
41
|
+
options["padding"] = {left: 50, right: 50, top: 50, bottom: 50}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var layout = new PlotKit.Layout(style, options);
|
|
45
|
+
layout.addDataset("noname", dataset);
|
|
46
|
+
layout.evaluate();
|
|
47
|
+
|
|
48
|
+
// stroke/fill toggle
|
|
49
|
+
drawDemo($('test1'), layout, options);
|
|
50
|
+
options["shouldFill"] = false;
|
|
51
|
+
drawDemo($('test2'), layout, options);
|
|
52
|
+
options["shouldStroke"] = false;
|
|
53
|
+
options["shouldFill"] = true;
|
|
54
|
+
drawDemo($('test3'), layout, options);
|
|
55
|
+
|
|
56
|
+
// drawing axis
|
|
57
|
+
options["shouldFill"] = true;
|
|
58
|
+
options["shouldStroke"] = true;
|
|
59
|
+
options["drawXAxis"] = false;
|
|
60
|
+
options["drawYAxis"] = false;
|
|
61
|
+
drawDemo($('test4'), layout, options);
|
|
62
|
+
options["drawXAxis"] = true;
|
|
63
|
+
drawDemo($('test5'), layout, options);
|
|
64
|
+
options["drawYAxis"] = true;
|
|
65
|
+
options["drawXAxis"] = false;
|
|
66
|
+
drawDemo($('test6'), layout, options);
|
|
67
|
+
|
|
68
|
+
// changing background color and axis color
|
|
69
|
+
options["drawXAxis"] = true;
|
|
70
|
+
options["colorScheme"] = PlotKit.Base.colorScheme().reverse()
|
|
71
|
+
drawDemo($('test7'), layout, options);
|
|
72
|
+
options["drawBackground"] = true;
|
|
73
|
+
options["backgroundColor"] = Color.blueColor().lighterColorWithLevel(0.45);
|
|
74
|
+
drawDemo($('test8'), layout, options);
|
|
75
|
+
options["drawBackground"] = false;
|
|
76
|
+
options["axisLineColor"] = Color.grayColor();
|
|
77
|
+
options["axisLabelColor"] = Color.grayColor();
|
|
78
|
+
options["axisLabelFontSize"] = 9;
|
|
79
|
+
drawDemo($('test9'), layout, options);
|
|
80
|
+
|
|
81
|
+
// layout customisation
|
|
82
|
+
options["colorScheme"] = PlotKit.Base.colorScheme();
|
|
83
|
+
options["axisLineColor"] = Color.blackColor();
|
|
84
|
+
options["axisLabelColor"] = Color.blackColor();
|
|
85
|
+
options["axisLabelFontSize"] = 9;
|
|
86
|
+
options["yNumberOfTicks"] = 3;
|
|
87
|
+
|
|
88
|
+
layout.options.yNumberOfTicks = 3;
|
|
89
|
+
layout.evaluate();
|
|
90
|
+
drawDemo($('test10'), layout, options);
|
|
91
|
+
|
|
92
|
+
layout.options.xNumberOfTicks = 3;
|
|
93
|
+
layout.evaluate();
|
|
94
|
+
drawDemo($('test11'), layout, options);
|
|
95
|
+
|
|
96
|
+
layout.options.barWidthFillFraction = 0.5;
|
|
97
|
+
layout.evaluate();
|
|
98
|
+
drawDemo($('test12'), layout, options);
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
// custom labels
|
|
102
|
+
layout.options.barWidthFillFraction = 0.75;
|
|
103
|
+
layout.options.yTicks = [{v:10}, {v:20}, {v:30}, {v:40}];
|
|
104
|
+
layout.evaluate();
|
|
105
|
+
drawDemo($('test13'), layout, options);
|
|
106
|
+
|
|
107
|
+
layout.options.xTicks = [
|
|
108
|
+
{v:1, label:"one"},
|
|
109
|
+
{v:2, label:"two"},
|
|
110
|
+
{v:3, label:"three"},
|
|
111
|
+
{v:4, label:"four"},
|
|
112
|
+
{v:5, label:"five"},
|
|
113
|
+
{v:6, label:"six"}];
|
|
114
|
+
layout.evaluate();
|
|
115
|
+
drawDemo($('test14'), layout, options);
|
|
116
|
+
|
|
117
|
+
layout.addDataset("reversed", dataset_rev);
|
|
118
|
+
layout.options.yTicks = null;
|
|
119
|
+
layout.options.xTicks = null;
|
|
120
|
+
layout.options.xNumberOfTicks = 10;
|
|
121
|
+
layout.options.yNumberOfTicks = 5;
|
|
122
|
+
layout.options.xTicks = null;
|
|
123
|
+
layout.options.yTicks = null;
|
|
124
|
+
layout.evaluate();
|
|
125
|
+
drawDemo($('test15'), layout, options);
|
|
126
|
+
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function demo() {
|
|
130
|
+
demoWithStyle("bar");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
addLoadEvent(demo);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>PlotKit : Demo</title>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
6
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet"
|
|
7
|
+
type="text/css" />
|
|
8
|
+
<link href="tests.css" media="screen" rel="Stylesheet" type="text/css" />
|
|
9
|
+
<script src="/js/mochi/MochiKit.js" type="text/javascript"></script>
|
|
10
|
+
<script src="/js/plotkit/Base.js" type="text/javascript"></script>
|
|
11
|
+
<script src="/js/plotkit/Layout.js" type="text/javascript"></script>
|
|
12
|
+
<script src="/js/plotkit/Canvas.js" type="text/javascript"></script>
|
|
13
|
+
<script src="/js/plotkit/SVG.js" type="text/javascript"></script>
|
|
14
|
+
<script src="/js/plotkit-tests/demo.js" type="text/javascript"></script>
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
<div id="body">
|
|
19
|
+
<h2>PlotKit Demo Page</h2>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<div id="tests">
|
|
24
|
+
<table class="matrix">
|
|
25
|
+
<tr>
|
|
26
|
+
<td><div><canvas id="test1" width="220" height="220"></canvas></div></td>
|
|
27
|
+
<td><div><canvas id="test2" width="220" height="220"></canvas></div></td>
|
|
28
|
+
<td><div><canvas id="test3" width="220" height="220"></canvas></div></td>
|
|
29
|
+
</tr>
|
|
30
|
+
<tr>
|
|
31
|
+
<td><div><canvas id="test4" width="220" height="220"></canvas></div></td>
|
|
32
|
+
<td><div><canvas id="test5" width="220" height="220"></canvas></div></td>
|
|
33
|
+
<td><div><canvas id="test6" width="220" height="220"></canvas></div></td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr>
|
|
36
|
+
<td><div><canvas id="test7" width="220" height="220"></canvas></div></td>
|
|
37
|
+
<td><div><canvas id="test8" width="220" height="220"></canvas></div></td>
|
|
38
|
+
<td><div><canvas id="test9" width="220" height="220"></canvas></div></td>
|
|
39
|
+
</tr>
|
|
40
|
+
<tr>
|
|
41
|
+
<td><div><canvas id="test10" width="220" height="220"></canvas></div></td>
|
|
42
|
+
<td><div><canvas id="test11" width="220" height="220"></canvas></div></td>
|
|
43
|
+
<td><div><canvas id="test12" width="220" height="220"></canvas></div></td>
|
|
44
|
+
</tr>
|
|
45
|
+
<tr>
|
|
46
|
+
<td><div><canvas id="test13" width="220" height="220"></canvas></div></td>
|
|
47
|
+
<td><div><canvas id="test14" width="220" height="220"></canvas></div></td>
|
|
48
|
+
<td><div><canvas id="test15" width="220" height="220"></canvas></div></td>
|
|
49
|
+
</tr>
|
|
50
|
+
|
|
51
|
+
</table>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
|
|
56
|
+
</div>
|
|
57
|
+
</body></html>
|