old_sql 1.16.0 → 1.17.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.
Files changed (273) hide show
  1. data/README.md +24 -13
  2. data/app/controllers/old_sql/report_controller.rb +3 -17
  3. data/app/views/layouts/old_sql/chart.html.erb +11 -0
  4. data/app/views/old_sql/report/chart.html.erb +8 -25
  5. data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
  6. data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
  7. data/lib/old_sql/report_design/chart.rb +2 -2
  8. data/lib/old_sql/report_design/chart_item.rb +4 -4
  9. data/lib/old_sql/report_design/chart_parser.rb +2 -2
  10. data/public/javascripts/old_sql/chart.js +33 -0
  11. metadata +5 -265
  12. data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
  13. data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
  14. data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
  15. data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
  16. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
  17. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
  18. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
  19. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
  20. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
  21. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
  22. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
  23. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
  24. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
  25. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
  26. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
  27. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
  28. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
  29. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
  30. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
  31. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
  32. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
  33. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
  34. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
  35. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
  36. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
  37. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
  38. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
  39. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
  40. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
  41. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
  42. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
  43. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
  44. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
  45. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
  46. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
  47. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
  48. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
  49. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
  50. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
  51. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
  52. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
  53. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
  54. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
  55. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
  56. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
  57. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
  58. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
  59. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
  60. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
  61. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
  62. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
  63. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
  64. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
  65. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
  66. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
  67. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
  68. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
  69. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
  70. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
  71. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
  72. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
  73. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
  74. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
  75. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
  76. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
  77. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
  78. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
  79. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
  80. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
  81. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
  82. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
  83. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
  84. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
  85. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
  86. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
  87. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
  88. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
  89. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
  90. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
  91. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
  92. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
  93. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
  94. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
  95. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
  96. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
  97. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
  98. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
  99. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
  100. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
  101. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
  102. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
  103. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
  104. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
  105. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
  106. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
  107. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
  108. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
  109. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
  110. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
  111. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
  112. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
  113. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
  114. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
  115. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
  116. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
  117. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
  118. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
  119. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
  120. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
  121. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
  122. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
  123. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
  124. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
  125. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
  126. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
  127. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
  128. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
  129. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
  130. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
  131. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
  132. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
  133. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
  134. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
  135. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
  136. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
  137. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
  138. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
  139. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
  140. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
  141. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
  142. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
  143. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
  144. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
  145. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
  146. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
  147. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
  148. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
  149. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
  150. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
  151. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
  152. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
  153. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
  154. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
  155. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
  156. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
  157. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
  158. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
  159. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
  160. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
  161. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
  162. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
  163. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
  164. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
  165. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
  166. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
  167. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
  168. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
  169. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
  170. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
  171. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
  172. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
  173. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
  174. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
  175. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
  176. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
  177. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
  178. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
  179. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
  180. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
  181. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
  182. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
  183. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
  184. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
  185. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
  186. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
  187. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
  188. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
  189. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
  190. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
  191. data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
  192. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
  193. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
  194. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
  195. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
  196. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
  197. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
  198. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
  199. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
  200. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
  201. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
  202. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
  203. data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
  204. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
  205. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
  206. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
  207. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
  208. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
  209. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
  210. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
  211. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
  212. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
  213. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
  214. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
  215. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
  216. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
  217. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
  218. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
  219. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
  220. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
  221. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
  222. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
  223. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
  224. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
  225. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
  226. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
  227. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
  228. data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
  229. data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
  230. data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
  231. data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
  232. data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
  233. data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
  234. data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
  235. data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
  236. data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
  237. data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
  238. data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
  239. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
  240. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
  241. data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
  242. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
  243. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
  244. data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
  245. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
  246. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
  247. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
  248. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
  249. data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
  250. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
  251. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
  252. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
  253. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
  254. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
  255. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
  256. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
  257. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
  258. data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
  259. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
  260. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
  261. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
  262. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
  263. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
  264. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
  265. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
  266. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
  267. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
  268. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
  269. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
  270. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
  271. data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
  272. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
  273. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
@@ -1,384 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
8
- <title></title>
9
-
10
- <link rel="stylesheet" href="../../../include/css/documentation.css" type="text/css" />
11
- <script type="text/javascript" src="../../../packed/lib/MochiKit/MochiKit.js"></script>
12
- <script type="text/javascript" src="../../js/toc.js"></script>
13
- </head>
14
- <body>
15
- <a href="http://mochikit.com"><img id="mainlink" src="../../../include/_img/g_logo_doc.gif" alt="MochiKit" /></a>
16
- <a class='indexlink' href='index.html'>Back to docs index</a>
17
- <div class="document">
18
- <p>2008-11-27 v1.4.2 (bug fix release)</p>
19
- <ul class="simple">
20
- <li>Changed default packed version to contain all modules (since easy
21
- customization is now available).</li>
22
- <li>More fixes in MochiKit.Style.getElementDimensions for IE and hidden
23
- elements (#325).</li>
24
- <li>Fixed issue in MochiKit.Style.getViewportDimensions when called within the
25
- document HEAD.</li>
26
- <li>Fixed MochiKit.DOM.coerceToDOM() handling of arrays when MochiKit.Iter
27
- is not loaded (#328).</li>
28
- </ul>
29
- <p>2008-11-02 v1.4.1 (bug fix release)</p>
30
- <ul class="simple">
31
- <li>Added export of deprecated MochiKit.DOM.computedStyle function (#324).</li>
32
- <li>Fixed issue in MochiKit.Style.getElementDimensions when elements are
33
- hidden due to CSS class definitions (#325).</li>
34
- <li>Moved makePositioned, undoPositioned, makeClipping and undoClipping
35
- from MochiKit.DOM to MochiKit.Style due to circular dependency (#327).</li>
36
- <li>Fixed makeClipping and undoClipping to handle overflow-x and overflow-y
37
- styles correctly (#326).</li>
38
- <li>Fixed issue with Event.relatedTarget() sometimes returning XUL elements
39
- in Mozilla-based browsers (#322).</li>
40
- </ul>
41
- <p>2008-10-21 v1.4</p>
42
- <ul class="simple">
43
- <li>Added pt_BR to MochiKit.Format.LOCALE.</li>
44
- <li>MochiKit.Async now sets the &quot;X-Requested-With: XMLHttpRequest&quot; header,
45
- a de facto standard (Prototype, jQuery, Mootools).</li>
46
- <li>MochiKit.Signal custom handlers no longer cause callbacks to get re-bound to
47
- the source if they were previously bound.</li>
48
- <li>Fixed MochiKit.Signal.signal re-entrancy bug that could cause recently
49
- disconnected slots to get signaled.</li>
50
- <li>MochiKit.Base.evalJSON will now evaluate JSON that is wrapped in a
51
- <tt class="docutils literal"><span class="pre">/*</span> <span class="pre">comment</span> <span class="pre">block</span> <span class="pre">*/</span></tt>.</li>
52
- <li>MochiKit.Color's HSV to RGB conversion code fixed to return the correct
53
- value (hsv.v for RGB values) in cases where saturation === 0.</li>
54
- <li>doXHR workaround for a Mozilla bug when calling XMLHttpRequest in certain
55
- situations. Always wraps call in a callLater(0, doXHR, url, opts).</li>
56
- <li>parseQueryString will now parse values with embedded &quot;=&quot;</li>
57
- <li>Workaround for a Safari DOM crash when using MochiKit.Iter.list.
58
- <a class="reference" href="http://bugs.webkit.org/show_bug.cgi?id=12191">http://bugs.webkit.org/show_bug.cgi?id=12191</a></li>
59
- <li>New removeNodeAttribute function in MochiKit.DOM.</li>
60
- <li>MochiKit.Async.doXHR and dependent functions now accept 201 CREATED and
61
- 204 NO CONTENT as valid.</li>
62
- <li>MochiKit.DOM.formContents now treats option tags the same way that
63
- form posts do in the case of missing and empty string value attributes,
64
- even in IE.</li>
65
- <li>MochiKit.Base.queryString now accepts third queryString([names, values])
66
- form.</li>
67
- <li>MochiKit.DOM.formContents now defaults to document.body if no element is
68
- given.</li>
69
- <li>New MochiKit.Selector module (still somewhat experimental)</li>
70
- <li>MochiKit.LoggingPane fixes for Internet Explorer</li>
71
- <li>MochiKit.DOM now creates XHTML nodes in XUL documents.</li>
72
- <li>MochiKit.LoggingPane now works on pages with '#' in the URL on IE</li>
73
- <li>New MochiKit.Async.doXHR as a convenient method for doing custom
74
- XMLHttpRequests (e.g. extra headers, overrideMimeType, etc.)</li>
75
- <li>New __connect__ protocol for MochiKit.Signal.connect source notifications</li>
76
- <li>Added colSpan, bgColor to the list of DOM renames for Internet Explorer</li>
77
- <li>New MochiKit.Signal.disconnectAllTo function</li>
78
- <li>MochiKit.Base.parseQueryString now accepts leading question mark</li>
79
- <li>New MochiKit.Base.values function</li>
80
- <li>Fixed MochiKit.Signal.disconnect when called from a signal handler invoked
81
- by MochiKit.Signal.signal</li>
82
- <li>parseQueryString now splits on HTML entities equivalent to ampersand as well</li>
83
- <li>Better XHTML compatibility (removed obvious cases where uppercase tagName or
84
- nodeName was assumed)</li>
85
- <li>MochiKit.Base.queryString now handles array values in the same way HTML
86
- forms handle multiple elements of the same name.</li>
87
- <li>MochiKit.Base.parseQueryString now returns {} for empty query string instead
88
- of {&quot;&quot;: &quot;undefined&quot;}</li>
89
- <li>MochiKit.DOM.formContents now handles option value=&quot;&quot; correctly.</li>
90
- <li>MochiKit.DOM now checks for undefined className.</li>
91
- <li>MochiKit.Iter.groupby() now uses compare() to group rather than == and !=</li>
92
- <li>serializeJSON no longer serializes undefined, as per the JSON spec</li>
93
- <li>Fixed an infinite recursion bug in serializeJSON if an adapter
94
- returns the object itself.</li>
95
- <li>Fixed vertical tab and control char encoding in serializeJSON (#313).</li>
96
- <li>New MochiKit.Base.operator.seq and sne to support strict comparison</li>
97
- <li>MochiKit.Base.isArrayLike no longer returns true for DOM text nodes</li>
98
- <li>Added readonly-readOnly to the list of DOM renames for Internet Explorer</li>
99
- <li>New MochiKit.Signal event method: confirmUnload (sets returnValue for
100
- onbeforeunload)</li>
101
- <li>Fix interpreter help() function for Firefox and IE</li>
102
- <li>API version compatibility notes added</li>
103
- <li>New MochiKit.Base functions methodcaller and compose</li>
104
- <li>Support IE-based native console logging (Debugger, Atlas)</li>
105
- <li>Refactored style functions from MochiKit.DOM to MochiKit.Style</li>
106
- <li>MochiKit.Async.DeferredList is now a proper Deferred</li>
107
- <li>MochiKit.DOM.formContents now supports SELECT multiple tags</li>
108
- <li>Re-use StopIteration Error if the browser already has it</li>
109
- <li>Workaround IE type=&quot;&quot; bug for INPUT elements</li>
110
- <li>Allow LoggingPane to work in IE with hyphen-containing URLs</li>
111
- <li>Replace percents for Safari native logging to avoid crashing</li>
112
- <li>New MochiKit.DOM.coerceToDOM .dom(node) / .__dom__(node) protocol</li>
113
- <li>MochiKit.DOM's MochiKit.Iter dependency is now optional</li>
114
- <li>Added expand all link to the documentation index</li>
115
- <li>Added MochiKit.DOM.isChildNode function.</li>
116
- <li>Added synthesizing for onmouseenter/onmouseleave</li>
117
- <li>Added animation functions and classes to MochiKit.Visual.</li>
118
- <li>Added MochiKit.Style.getElementDimensions support for calculating the
119
- actual content size (without padding and borders).</li>
120
- <li>Added MochiKit.DOM.insertSiblingNodesBefore, getFirstElementByTagAndClassName,
121
- getFirstParentByTagAndClassName, makeClipping, makePositioned,
122
- undoClipping, undoPositioned and removeEmptyTextNodes functions.</li>
123
- <li>Added MochiKit.Base.bindLate, camelize, flattenArray, mean, median and
124
- noop functions.</li>
125
- <li>New MochiKit.DragAndDrop module for drag and drop handling.</li>
126
- <li>New MochiKit.Sortable module for lists sortable with drag and drop.</li>
127
- <li>Changed MochiKit.Signal.connect to use late function binding also
128
- for non-DOM signals (#307).</li>
129
- <li>Fixed MochiKit.Color.isColor when symbols not exported (#296).</li>
130
- <li>Added support for inclusion in SVG files (#290).</li>
131
- <li>Fixed rounding errors in MochiKit.Format.twoDigitFloat (#275).</li>
132
- <li>Fixed MochiKit.Logging to convert log levels to strings (#273).</li>
133
- <li>Fixed MochiKit.Iter.forEach and iextend for array-like objects with
134
- and iter function (#268).</li>
135
- </ul>
136
- <p>2006-04-29 v1.3.1 (bug fix release)</p>
137
- <ul class="simple">
138
- <li>Fix sendXMLHttpRequest sendContent regression</li>
139
- <li>Internet Explorer fix in MochiKit.Logging (printfire exception)</li>
140
- <li>Internet Explorer XMLHttpRequest object leak fixed in MochiKit.Async</li>
141
- </ul>
142
- <p>2006-04-26 v1.3 &quot;warp zone&quot;</p>
143
- <ul class="simple">
144
- <li>IMPORTANT: Renamed MochiKit.Base.forward to forwardCall (for export)</li>
145
- <li>IMPORTANT: Renamed MochiKit.Base.find to findValue (for export)</li>
146
- <li>New MochiKit.Base.method as a convenience form of bind that takes the
147
- object before the method</li>
148
- <li>New MochiKit.Base.flattenArguments for flattening a list of arguments to
149
- a single Array</li>
150
- <li>Refactored MochiRegExp example to use MochiKit.Signal</li>
151
- <li>New key_events example demonstrating use of MochiKit.Signal's key handling
152
- capabilities.</li>
153
- <li>MochiKit.DOM.createDOM API change for convenience: if attrs is a string,
154
- null is used and the string will be considered the first node. This
155
- allows for the more natural P(&quot;foo&quot;) rather than P(null, &quot;foo&quot;).</li>
156
- <li>MochiKit Interpreter example refactored to use MochiKit.Signal and now
157
- provides multi-line input and a help() function to get MochiKit function
158
- signature from the documentation.</li>
159
- <li>Native Console Logging for the default MochiKit.Logging logger</li>
160
- <li>New MochiKit.Async.DeferredList, gatherResults, maybeDeferred</li>
161
- <li>New MochiKit.Signal example: draggable</li>
162
- <li>Added sanity checking to Deferred to ensure that errors happen when chaining
163
- is used incorrectly</li>
164
- <li>Opera sendXMLHttpRequest fix (sends empty string instead of null by default)</li>
165
- <li>Fix a bug in MochiKit.Color that incorrectly generated hex colors for
166
- component values smaller than 16/255.</li>
167
- <li>Fix a bug in MochiKit.Logging that prevented logs from being capped at a
168
- maximum size</li>
169
- <li>MochiKit.Async.Deferred will now wrap thrown objects that are not instanceof
170
- Error, so that the errback chain is used instead of the callback chain.</li>
171
- <li>MochiKit.DOM.appendChildNodes and associated functions now append iterables
172
- in the correct order.</li>
173
- <li>New MochiKit-based SimpleTest test runner as a replacement for Test.Simple</li>
174
- <li>MochiKit.Base.isNull no longer matches undefined</li>
175
- <li>example doctypes changed to HTML4</li>
176
- <li>isDateLike no longer throws error on null</li>
177
- <li>New MochiKit.Signal module, modeled after the slot/signal mechanism in Qt</li>
178
- <li>updated elementDimensions to calculate width from offsetWidth instead
179
- of clientWidth</li>
180
- <li>formContents now works with FORM tags that have a name attribute</li>
181
- <li>Documentation now uses MochiKit to generate a function index</li>
182
- </ul>
183
- <p>2006-01-26 v1.2 &quot;the ocho&quot;</p>
184
- <ul class="simple">
185
- <li>Fixed MochiKit.Color.Color.lighterColorWithLevel</li>
186
- <li>Added new MochiKit.Base.findIdentical function to find the index of an
187
- element in an Array-like object. Uses === for identity comparison.</li>
188
- <li>Added new MochiKit.Base.find function to find the index of an element in
189
- an Array-like object. Uses compare for rich comparison.</li>
190
- <li>MochiKit.Base.bind will accept a string for func, which will be immediately
191
- looked up as self[func].</li>
192
- <li>MochiKit.DOM.formContents no longer skips empty form elements for Zope
193
- compatibility</li>
194
- <li>MochiKit.Iter.forEach will now catch StopIteration to break</li>
195
- <li>New MochiKit.DOM.elementDimensions(element) for determining the width and
196
- height of an element in the document</li>
197
- <li>MochiKit.DOM's initialization is now compatible with
198
- HTMLUnit + JWebUnit + Rhino</li>
199
- <li>MochiKit.LoggingPane will now re-use a <tt class="docutils literal"><span class="pre">_MochiKit_LoggingPane</span></tt> DIV element
200
- currently in the document instead of always creating one.</li>
201
- <li>MochiKit.Base now has operator.mul</li>
202
- <li>MochiKit.DOM.formContents correctly handles unchecked checkboxes that have
203
- a custom value attribute</li>
204
- <li>Added new MochiKit.Color constructors fromComputedStyle and fromText</li>
205
- <li>MochiKit.DOM.setNodeAttribute should work now</li>
206
- <li>MochiKit.DOM now has a workaround for an IE bug when setting the style
207
- property to a string</li>
208
- <li>MochiKit.DOM.createDOM now has workarounds for IE bugs when setting the
209
- name and for properties</li>
210
- <li>MochiKit.DOM.scrapeText now walks the DOM tree in-order</li>
211
- <li>MochiKit.LoggingPane now sanitizes the window name to work around IE bug</li>
212
- <li>MochiKit.DOM now translates usemap to useMap to work around IE bug</li>
213
- <li>MochiKit.Logging is now resistant to Prototype's dumb Object.prototype hacks</li>
214
- <li>Added new MochiKit.DOM documentation on element visibility</li>
215
- <li>New MochiKit.DOM.elementPosition(element[, relativeTo={x: 0, y: 0}])
216
- for determining the position of an element in the document</li>
217
- <li>Added new MochiKit.DOM createDOMFunc aliases: CANVAS, STRONG</li>
218
- </ul>
219
- <p>2005-11-14 v1.1</p>
220
- <ul class="simple">
221
- <li>Fixed a bug in numberFormatter with large numbers</li>
222
- <li>Massively overhauled documentation</li>
223
- <li>Fast-path for primitives in MochiKit.Base.compare</li>
224
- <li>New groupby and groupby_as_array in MochiKit.Iter</li>
225
- <li>Added iterator factory adapter for objects that implement iterateNext()</li>
226
- <li>Fixed isoTimestamp to handle timestamps with time zone correctly</li>
227
- <li>Added new MochiKit.DOM createDOMFunc aliases: SELECT, OPTION, OPTGROUP,
228
- LEGEND, FIELDSET</li>
229
- <li>New MochiKit.DOM formContents and enhancement to queryString to support it</li>
230
- <li>Updated view_source example to use dp.SyntaxHighlighter 1.3.0</li>
231
- <li>MochiKit.LoggingPane now uses named windows based on the URL so that
232
- a given URL will get the same LoggingPane window after a reload
233
- (at the same position, etc.)</li>
234
- <li>MochiKit.DOM now has currentWindow() and currentDocument() context
235
- variables that are set with withWindow() and withDocument(). These
236
- context variables affect all MochiKit.DOM functionality (getElement,
237
- createDOM, etc.)</li>
238
- <li>MochiKit.Base.items will now catch and ignore exceptions for properties
239
- that are enumerable but not accessible (e.g. permission denied)</li>
240
- <li>MochiKit.Async.Deferred's addCallback/addErrback/addBoth
241
- now accept additional arguments that are used to create a partially
242
- applied function. This differs from Twisted in that the callback/errback
243
- result becomes the <em>last</em> argument, not the first when this feature
244
- is used.</li>
245
- <li>MochiKit.Async's doSimpleXMLHttpRequest will now accept additional
246
- arguments which are used to create a GET query string</li>
247
- <li>Did some refactoring to reduce the footprint of MochiKit by a few
248
- kilobytes</li>
249
- <li>escapeHTML to longer escapes ' (apos) and now uses
250
- String.replace instead of iterating over every char.</li>
251
- <li>Added DeferredLock to Async</li>
252
- <li>Renamed getElementsComputedStyle to computedStyle and moved
253
- it from MochiKit.Visual to MochiKit.DOM</li>
254
- <li>Moved all color support out of MochiKit.Visual and into MochiKit.Color</li>
255
- <li>Fixed range() to accept a negative step</li>
256
- <li>New alias to MochiKit.swapDOM called removeElement</li>
257
- <li>New MochiKit.DOM.setNodeAttribute(node, attr, value) which sets
258
- an attribute on a node without raising, roughly equivalent to:
259
- updateNodeAttributes(node, {attr: value})</li>
260
- <li>New MochiKit.DOM.getNodeAttribute(node, attr) which gets the value of
261
- a node's attribute or returns null without raising</li>
262
- <li>Fixed a potential IE memory leak if using MochiKit.DOM.addToCallStack
263
- directly (addLoadEvent did not leak, since it clears the handler)</li>
264
- </ul>
265
- <p>2005-10-24 v1.0</p>
266
- <ul class="simple">
267
- <li>New interpreter example that shows usage of MochiKit.DOM to make
268
- an interactive JavaScript interpreter</li>
269
- <li>New MochiKit.LoggingPane for use with the MochiKit.Logging
270
- debuggingBookmarklet, with logging_pane example to show its usage</li>
271
- <li>New mochiregexp example that demonstrates MochiKit.DOM and MochiKit.Async
272
- in order to provide a live regular expression matching tool</li>
273
- <li>Added advanced number formatting capabilities to MochiKit.Format:
274
- numberFormatter(pattern, placeholder=&quot;&quot;, locale=&quot;default&quot;) and
275
- formatLocale(locale=&quot;default&quot;)</li>
276
- <li>Added updatetree(self, obj[, ...]) to MochiKit.Base, and changed
277
- MochiKit.DOM's updateNodeAttributes(node, attrs) to use it when appropiate.</li>
278
- <li>Added new MochiKit.DOM createDOMFunc aliases: BUTTON, TT, PRE</li>
279
- <li>Added truncToFixed(aNumber, precision) and roundToFixed(aNumber, precision)
280
- to MochiKit.Format</li>
281
- <li>MochiKit.DateTime can now handle full ISO 8601 timestamps, specifically
282
- isoTimestamp(isoString) will convert them to Date objects, and
283
- toISOTimestamp(date, true) will return an ISO 8601 timestamp in UTC</li>
284
- <li>Fixed missing errback for sendXMLHttpRequest when the server does not
285
- respond</li>
286
- <li>Fixed infinite recusion bug when using roundClass(&quot;DIV&quot;, ...)</li>
287
- <li>Fixed a bug in MochiKit.Async wait (and callLater) that prevented them
288
- from being cancelled properly</li>
289
- <li>Workaround in MochiKit.Base bind (and partial) for functions that don't
290
- have an apply method, such as alert</li>
291
- <li>Reliably return null from the string parsing/manipulation functions if
292
- the input can't be coerced to a string (s + &quot;&quot;) or the input makes no sense;
293
- e.g. isoTimestamp(null) and isoTimestamp(&quot;&quot;) return null</li>
294
- </ul>
295
- <p>2005-10-08 v0.90</p>
296
- <ul class="simple">
297
- <li>Fixed ISO compliance with toISODate</li>
298
- <li>Added missing operator.sub</li>
299
- <li>Placated Mozilla's strict warnings a bit</li>
300
- <li>Added JSON serialization and unserialization support to MochiKit.Base:
301
- serializeJSON, evalJSON, registerJSON. This is very similar to the repr
302
- API.</li>
303
- <li>Fixed a bug in the script loader that failed in some scenarios when a script
304
- tag did not have a &quot;src&quot; attribute (thanks Ian!)</li>
305
- <li>Added new MochiKit.DOM createDOMFunc aliases: H1, H2, H3, BR, HR, TEXTAREA,
306
- P, FORM</li>
307
- <li>Use encodeURIComponent / decodeURIComponent for MochiKit.Base urlEncode
308
- and parseQueryString, when available.</li>
309
- </ul>
310
- <p>2005-08-12 v0.80</p>
311
- <ul class="simple">
312
- <li>Source highlighting in all examples, moved to a view-source example</li>
313
- <li>Added some experimental syntax highlighting for the Rounded Corners example,
314
- via the LGPL dp.SyntaxHighlighter 1.2.0 now included in examples/common/lib</li>
315
- <li>Use an indirect binding for the logger conveniences, so that the global
316
- logger could be replaced by setting MochiKit.Logger.logger to something else
317
- (though an observer is probably a better choice).</li>
318
- <li>Allow MochiKit.DOM.getElementsByTagAndClassName to take a string for parent,
319
- which will be looked up with getElement</li>
320
- <li>Fixed bug in MochiKit.Color.fromBackground (was using node.parent instead of
321
- node.parentNode)</li>
322
- <li>Consider a 304 (NOT_MODIFIED) response from XMLHttpRequest to be success</li>
323
- <li>Disabled Mozilla map(...) fast-path due to Deer Park compatibility issues</li>
324
- <li>Possible workaround for Safari issue with swapDOM, where it would get
325
- confused because two elements were in the DOM at the same time with the
326
- same id</li>
327
- <li>Added missing THEAD convenience function to MochiKit.DOM</li>
328
- <li>Added lstrip, rstrip, strip to MochiKit.Format</li>
329
- <li>Added updateNodeAttributes, appendChildNodes, replaceChildNodes to
330
- MochiKit.DOM</li>
331
- <li>MochiKit.Iter.iextend now has a fast-path for array-like objects</li>
332
- <li>Added HSV color space support to MochiKit.Visual</li>
333
- <li>Fixed a bug in the sortable_tables example, it now converts types
334
- correctly</li>
335
- <li>Fixed a bug where MochiKit.DOM referenced MochiKit.Iter.next from global
336
- scope</li>
337
- </ul>
338
- <p>2005-08-04 v0.70</p>
339
- <ul class="simple">
340
- <li>New ajax_tables example, which shows off XMLHttpRequest, ajax, json, and
341
- a little TAL-ish DOM templating attribute language.</li>
342
- <li>sendXMLHttpRequest and functions that use it (loadJSONDoc, etc.) no longer
343
- ignore requests with status == 0, which seems to happen for cached or local
344
- requests</li>
345
- <li>Added sendXMLHttpRequest to MochiKit.Async.EXPORT, d'oh.</li>
346
- <li>Changed scrapeText API to return a string by default. This is API-breaking!
347
- It was dumb to have the default return value be the form you almost never
348
- want. Sorry.</li>
349
- <li>Added special form to swapDOM(dest, src). If src is null, dest is removed
350
- (where previously you'd likely get a DOM exception).</li>
351
- <li>Added three new functions to MochiKit.Base for dealing with URL query
352
- strings: urlEncode, queryString, parseQueryString</li>
353
- <li>MochiKit.DOM.createDOM will now use attr[k] = v for all browsers if the name
354
- starts with &quot;on&quot; (e.g. &quot;onclick&quot;). If v is a string, it will set it to
355
- new Function(v).</li>
356
- <li>Another workaround for Internet &quot;worst browser ever&quot; Explorer's setAttribute
357
- usage in MochiKit.DOM.createDOM (checked -&gt; defaultChecked).</li>
358
- <li>Added UL, OL, LI convenience createDOM aliases to MochiKit.DOM</li>
359
- <li>Packing is now done by Dojo's custom Rhino interpreter, so it's much smaller
360
- now!</li>
361
- </ul>
362
- <p>2005-07-29 v0.60</p>
363
- <ul class="simple">
364
- <li>Beefed up the MochiKit.DOM test suite</li>
365
- <li>Fixed return value for MochiKit.DOM.swapElementClass, could return
366
- false unexpectedly before</li>
367
- <li>Added an optional &quot;parent&quot; argument to
368
- MochiKit.DOM.getElementsByTagAndClassName</li>
369
- <li>Added a &quot;packed&quot; version in packed/lib/MochiKit/MochiKit.js</li>
370
- <li>Changed build script to rewrite the URLs in tests to account for the
371
- JSAN-required reorganization</li>
372
- <li>MochiKit.Compat to potentially work around IE 5.5 issues
373
- (5.0 still not supported). Test.Simple doesn't seem to work there,
374
- though.</li>
375
- <li>Several minor documentation corrections</li>
376
- </ul>
377
- <p>2005-07-27 v0.50</p>
378
- <ul class="simple">
379
- <li>Initial Release</li>
380
- </ul>
381
- </div>
382
-
383
- </body>
384
- </html>
@@ -1,1161 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
8
- <title>MochiKit.Visual - visual effects</title>
9
-
10
- <link rel="stylesheet" href="../../../include/css/documentation.css" type="text/css" />
11
- <script type="text/javascript" src="../../../packed/lib/MochiKit/MochiKit.js"></script>
12
- <script type="text/javascript" src="../../js/toc.js"></script>
13
- </head>
14
- <body>
15
- <a href="http://mochikit.com"><img id="mainlink" src="../../../include/_img/g_logo_doc.gif" alt="MochiKit" /></a>
16
- <a class='indexlink' href='index.html'>Back to docs index</a>
17
- <div class="document">
18
- <div class="section">
19
- <h1><a id="name" name="name">Name</a></h1>
20
- <p>MochiKit.Visual - visual effects</p>
21
- </div>
22
- <div class="section">
23
- <h1><a id="synopsis" name="synopsis">Synopsis</a></h1>
24
- <pre class="literal-block">
25
- // round the corners of all h1 elements
26
- roundClass(&quot;h1&quot;, null);
27
-
28
- // round the top left corner of the element with the id &quot;title&quot;
29
- roundElement(&quot;title&quot;, {corners: &quot;tl&quot;});
30
-
31
- // Add an fade effect to an element
32
- fade('myelement');
33
- </pre>
34
- </div>
35
- <div class="section">
36
- <h1><a id="description" name="description">Description</a></h1>
37
- <p>MochiKit.Visual provides visual effects and animations for HTML elements.</p>
38
- </div>
39
- <div class="section">
40
- <h1><a id="dependencies" name="dependencies">Dependencies</a></h1>
41
- <ul class="simple">
42
- <li><a class="mochiref reference" href="Base.html">MochiKit.Base</a></li>
43
- <li><a class="mochiref reference" href="Iter.html">MochiKit.Iter</a></li>
44
- <li><a class="mochiref reference" href="DOM.html">MochiKit.DOM</a></li>
45
- <li><a class="mochiref reference" href="Color.html">MochiKit.Color</a></li>
46
- <li><a class="mochiref reference" href="Position.html">MochiKit.Position</a></li>
47
- </ul>
48
- </div>
49
- <div class="section">
50
- <h1><a id="overview" name="overview">Overview</a></h1>
51
- <p>MochiKit.Visual provides different visual effects: rounded corners and
52
- animations for your HTML elements. Rounded corners are created
53
- completely through CSS manipulations and require no external images or
54
- style sheets. This implementation was adapted from <a class="reference" href="http://www.openrico.org">Rico</a>. Dynamic
55
- effects are ported from <a class="reference" href="http://script.aculo.us">Scriptaculous</a>.</p>
56
- <div class="section">
57
- <h2><a id="animations-effects" name="animations-effects">Animations &amp; Effects</a></h2>
58
- <p>Dynamic or animated effects are managed by a basic looping service (see
59
- <a class="mochiref reference" href="#fn-base">Base</a>). The effect looping is controlled by timers that are invoked
60
- at regular and short intervals while the effect is executing. The base looping
61
- service takes the current system time into consideration, automatically
62
- skipping effect steps on execution delays.</p>
63
- <p>The effect classes need only handle dynamic updates based on a floating-point
64
- number between <tt class="docutils literal"><span class="pre">0.0</span></tt> and <tt class="docutils literal"><span class="pre">1.0</span></tt> (the effect position). This effect position
65
- may also be manipulated by <a class="mochiref reference" href="#fn-transitions">Transitions</a> to provide non-linear
66
- updates, which may further enhance the visual effect.</p>
67
- <p>The effect timer and transitions can be controlled through a set of
68
- <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a> that are available for all effect classes.</p>
69
- </div>
70
- <div class="section">
71
- <h2><a id="the-effects-queue" name="the-effects-queue">The Effects Queue</a></h2>
72
- <p>When you create effects based on user input (mouse clicks for example), it can
73
- create conflicts between the effects if multiple effects are running at the
74
- same time. To manage this problem, the Queue mechanism has been introduced:
75
- it's responsible for running the effects as you desired.</p>
76
- <p>By default, you have one Queue called <tt class="docutils literal"><span class="pre">'global'</span></tt>, and the effects run in
77
- <tt class="docutils literal"><span class="pre">'parallel'</span></tt> (see <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>). Every effect has a <tt class="docutils literal"><span class="pre">queue</span></tt>
78
- option to customize this. Its value can be a string, thereby using the
79
- <tt class="docutils literal"><span class="pre">global</span></tt> scope:</p>
80
- <ul class="simple">
81
- <li><cite>front</cite>: the effect will be run before any other non-started effect;</li>
82
- <li><cite>end</cite>: the effect will be run when all other effects have finished;</li>
83
- <li><cite>break</cite>: every other effect is immediately finalized when the the effect start;</li>
84
- <li><cite>parallel</cite>: the effect runs in parallel with other effects.</li>
85
- </ul>
86
- <p>But you have even more control if you use an object with the following
87
- property keys:</p>
88
- <ul class="simple">
89
- <li><cite>position</cite> takes one of the values listed above;</li>
90
- <li><cite>scope</cite> contains the queue name. If it's <tt class="docutils literal"><span class="pre">&quot;global&quot;</span></tt> the effect will use the
91
- default queue, otherwise you can define your own queue name. For example, if
92
- you add an effect on a specified element, you may use the element id as scope;</li>
93
- <li><cite>limit</cite> defines how many effects can be stored in the queue at a single time.
94
- If an effect is added when the limit has been reached, it will never be run
95
- (it's lost).</li>
96
- </ul>
97
- </div>
98
- </div>
99
- <div class="section">
100
- <h1><a id="api-reference" name="api-reference">API Reference</a></h1>
101
- <div class="section">
102
- <h2><a id="functions" name="functions">Functions</a></h2>
103
- <p>
104
- <a name="fn-roundclass"></a>
105
- <a class="mochidef reference" href="#fn-roundclass">roundClass(tagName[, className[, options]])</a>:</p>
106
- <blockquote>
107
- <p>Rounds all of the elements that match the <tt class="docutils literal"><span class="pre">tagName</span></tt> and
108
- <tt class="docutils literal"><span class="pre">className</span></tt> specifiers, using the options provided. <tt class="docutils literal"><span class="pre">tagName</span></tt>
109
- or <tt class="docutils literal"><span class="pre">className</span></tt> can be <tt class="docutils literal"><span class="pre">null</span></tt> to match all tags or classes.
110
- Regarding the <tt class="docutils literal"><span class="pre">options</span></tt>, see the <a class="mochiref reference" href="#fn-roundelement">roundElement</a> function.</p>
111
- <dl class="docutils">
112
- <dt><em>Availability</em>:</dt>
113
- <dd>Available in MochiKit 1.3.1+</dd>
114
- </dl>
115
- </blockquote>
116
- <p>
117
- <a name="fn-roundelement"></a>
118
- <a class="mochidef reference" href="#fn-roundelement">roundElement(element[, options])</a>:</p>
119
- <blockquote>
120
- <p>Immediately round the corners of the specified <tt class="docutils literal"><span class="pre">element</span></tt>.</p>
121
- <dl class="docutils">
122
- <dt>element:</dt>
123
- <dd>An element ID string or a DOM node (see
124
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
125
- <dt>options:</dt>
126
- <dd><p class="first">The <tt class="docutils literal"><span class="pre">options</span></tt> mapping has the following defaults:</p>
127
- <table border="1" class="last docutils">
128
- <colgroup>
129
- <col width="35%" />
130
- <col width="65%" />
131
- </colgroup>
132
- <tbody valign="top">
133
- <tr><td>corners</td>
134
- <td><tt class="docutils literal"><span class="pre">&quot;all&quot;</span></tt></td>
135
- </tr>
136
- <tr><td>color</td>
137
- <td><tt class="docutils literal"><span class="pre">&quot;fromElement&quot;</span></tt></td>
138
- </tr>
139
- <tr><td>bgColor</td>
140
- <td><tt class="docutils literal"><span class="pre">&quot;fromParent&quot;</span></tt></td>
141
- </tr>
142
- <tr><td>blend</td>
143
- <td><tt class="docutils literal"><span class="pre">true</span></tt></td>
144
- </tr>
145
- <tr><td>border</td>
146
- <td><tt class="docutils literal"><span class="pre">false</span></tt></td>
147
- </tr>
148
- <tr><td>compact</td>
149
- <td><tt class="docutils literal"><span class="pre">false</span></tt></td>
150
- </tr>
151
- </tbody>
152
- </table>
153
- </dd>
154
- </dl>
155
- <p>The <tt class="docutils literal"><span class="pre">options</span></tt> parameters can have following values:</p>
156
- <dl class="docutils">
157
- <dt>corners:</dt>
158
- <dd><p class="first">Specifies which corners of the element should be rounded.
159
- Choices are:</p>
160
- <ul class="simple">
161
- <li>all</li>
162
- <li>top</li>
163
- <li>bottom</li>
164
- <li>tl (top left)</li>
165
- <li>bl (bottom left)</li>
166
- <li>tr (top right)</li>
167
- <li>br (bottom right)</li>
168
- </ul>
169
- <dl class="last docutils">
170
- <dt>Example:</dt>
171
- <dd><tt class="docutils literal"><span class="pre">&quot;tl</span> <span class="pre">br&quot;</span></tt>: top-left and bottom-right corners are rounded</dd>
172
- </dl>
173
- </dd>
174
- <dt>blend:</dt>
175
- <dd>Specifies whether the color and background color should be
176
- blended together to produce the border color.</dd>
177
- <dt><em>Availability</em>:</dt>
178
- <dd>Available in MochiKit 1.3.1+</dd>
179
- </dl>
180
- </blockquote>
181
- <p>
182
- <a name="fn-toggle"></a>
183
- <a class="mochidef reference" href="#fn-toggle">toggle(element[, effect[, options]])</a>:</p>
184
- <blockquote>
185
- <p>Toggle an <tt class="docutils literal"><span class="pre">element</span></tt> between visible and invisible state using an
186
- effect.</p>
187
- <dl class="docutils">
188
- <dt>element:</dt>
189
- <dd>An element ID string or a DOM node (see
190
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
191
- <dt>effect:</dt>
192
- <dd><p class="first">One of the visual pairs to use:</p>
193
- <table border="1" class="last docutils">
194
- <colgroup>
195
- <col width="21%" />
196
- <col width="79%" />
197
- </colgroup>
198
- <tbody valign="top">
199
- <tr><td><tt class="docutils literal"><span class="pre">&quot;appear&quot;</span></tt></td>
200
- <td><a class="mochiref reference" href="#fn-appear">appear</a> and <a class="mochiref reference" href="#fn-fade">fade</a></td>
201
- </tr>
202
- <tr><td><tt class="docutils literal"><span class="pre">&quot;blind&quot;</span></tt></td>
203
- <td><a class="mochiref reference" href="#fn-blindup">blindUp</a> and <a class="mochiref reference" href="#fn-blinddown">blindDown</a></td>
204
- </tr>
205
- <tr><td><tt class="docutils literal"><span class="pre">&quot;size&quot;</span></tt></td>
206
- <td><a class="mochiref reference" href="#fn-grow">grow</a> and <a class="mochiref reference" href="#fn-shrink">shrink</a></td>
207
- </tr>
208
- <tr><td><tt class="docutils literal"><span class="pre">&quot;slide&quot;</span></tt></td>
209
- <td><a class="mochiref reference" href="#fn-slideup">slideUp</a> and <a class="mochiref reference" href="#fn-slidedown">slideDown</a></td>
210
- </tr>
211
- </tbody>
212
- </table>
213
- </dd>
214
- <dt>options:</dt>
215
- <dd>The optional effect options (see the respective effect
216
- functions for details).</dd>
217
- <dt><em>Availability</em>:</dt>
218
- <dd>Available in MochiKit 1.4+</dd>
219
- </dl>
220
- </blockquote>
221
- <p>
222
- <a name="fn-tagifytext"></a>
223
- <a class="mochidef reference" href="#fn-tagifytext">tagifyText(element[, tagifyStyle])</a>:</p>
224
- <blockquote>
225
- <p>Transform the node text into <tt class="docutils literal"><span class="pre">SPAN</span></tt> nodes each containing a single
226
- letter. Only text nodes that are immediate children will be modified
227
- by this function.</p>
228
- <dl class="docutils">
229
- <dt>element:</dt>
230
- <dd>An element ID string or a DOM node (see
231
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
232
- <dt>tagifyStyle:</dt>
233
- <dd>Style to apply to each new <tt class="docutils literal"><span class="pre">SPAN</span></tt> node, defaults to
234
- <tt class="docutils literal"><span class="pre">'position:</span> <span class="pre">relative'</span></tt>.</dd>
235
- <dt><em>Availability</em>:</dt>
236
- <dd>Available in MochiKit 1.4+</dd>
237
- </dl>
238
- </blockquote>
239
- <p>
240
- <a name="fn-multiple"></a>
241
- <a class="mochidef reference" href="#fn-multiple">multiple(elements, effect[, options])</a>:</p>
242
- <blockquote>
243
- <p>Launch the same effect on a list of <tt class="docutils literal"><span class="pre">elements</span></tt>.</p>
244
- <dl class="docutils">
245
- <dt>elements:</dt>
246
- <dd>A list of element ID strings or a DOM nodes (see
247
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
248
- <dt>effect:</dt>
249
- <dd>An effect class constructor function.</dd>
250
- <dt>options:</dt>
251
- <dd><p class="first">The effect options (see the respective effect class). A special
252
- <tt class="docutils literal"><span class="pre">speed</span></tt> value will be added to the effect <tt class="docutils literal"><span class="pre">delay</span></tt> for each
253
- additional element in the list. This cause the effects to not run
254
- exactly in parallel by default.</p>
255
- <table border="1" class="last docutils">
256
- <colgroup>
257
- <col width="35%" />
258
- <col width="65%" />
259
- </colgroup>
260
- <tbody valign="top">
261
- <tr><td>speed</td>
262
- <td><tt class="docutils literal"><span class="pre">0.1</span></tt></td>
263
- </tr>
264
- <tr><td>delay</td>
265
- <td><tt class="docutils literal"><span class="pre">0.0</span></tt> (initial)</td>
266
- </tr>
267
- </tbody>
268
- </table>
269
- </dd>
270
- <dt><em>Availability</em>:</dt>
271
- <dd>Available in MochiKit 1.4+</dd>
272
- </dl>
273
- </blockquote>
274
- </div>
275
- <div class="section">
276
- <h2><a id="combination-effects" name="combination-effects">Combination Effects</a></h2>
277
- <p>
278
- <a name="fn-fade"></a>
279
- <a class="mochidef reference" href="#fn-fade">fade(element[, options])</a>:</p>
280
- <blockquote>
281
- <p>Fades an <tt class="docutils literal"><span class="pre">element</span></tt> using the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect. Once
282
- the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
283
- <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
284
- opacity will be restored.</p>
285
- <dl class="docutils">
286
- <dt>element:</dt>
287
- <dd>An element ID string or a DOM node (see
288
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
289
- <dt>options:</dt>
290
- <dd><table border="1" class="first last docutils">
291
- <colgroup>
292
- <col width="12%" />
293
- <col width="88%" />
294
- </colgroup>
295
- <tbody valign="top">
296
- <tr><td>from</td>
297
- <td><tt class="docutils literal"><span class="pre">element.opacity</span> <span class="pre">||</span> <span class="pre">1.0</span></tt></td>
298
- </tr>
299
- <tr><td>to</td>
300
- <td><tt class="docutils literal"><span class="pre">0.0</span></tt></td>
301
- </tr>
302
- </tbody>
303
- </table>
304
- </dd>
305
- <dt><em>Availability</em>:</dt>
306
- <dd>Available in MochiKit 1.4+</dd>
307
- </dl>
308
- </blockquote>
309
- <p>
310
- <a name="fn-appear"></a>
311
- <a class="mochidef reference" href="#fn-appear">appear(element [, options])</a>:</p>
312
- <blockquote>
313
- <p>Slowly shows an <tt class="docutils literal"><span class="pre">element</span></tt> using the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect.
314
- If the <tt class="docutils literal"><span class="pre">element</span></tt> has <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">none&quot;</span></tt> style, it will be changed
315
- to <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">block&quot;</span></tt> with <a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>.</p>
316
- <dl class="docutils">
317
- <dt>element:</dt>
318
- <dd>An element ID string or a DOM node (see
319
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
320
- <dt>options:</dt>
321
- <dd><table border="1" class="first last docutils">
322
- <colgroup>
323
- <col width="10%" />
324
- <col width="90%" />
325
- </colgroup>
326
- <tbody valign="top">
327
- <tr><td>from</td>
328
- <td><tt class="docutils literal"><span class="pre">element.opacity</span> <span class="pre">||</span> <span class="pre">0.0</span></tt></td>
329
- </tr>
330
- <tr><td>to</td>
331
- <td><tt class="docutils literal"><span class="pre">1.0</span></tt></td>
332
- </tr>
333
- </tbody>
334
- </table>
335
- </dd>
336
- <dt><em>Availability</em>:</dt>
337
- <dd>Available in MochiKit 1.4+</dd>
338
- </dl>
339
- </blockquote>
340
- <p>
341
- <a name="fn-puff"></a>
342
- <a class="mochidef reference" href="#fn-puff">puff(element [, options])</a>:</p>
343
- <blockquote>
344
- <p>Make an <tt class="docutils literal"><span class="pre">element</span></tt> double size while also fading it using the
345
- <a class="mochiref reference" href="#fn-scale">Scale</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel.
346
- Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
347
- <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
348
- size, position and opacity will be restored.</p>
349
- <dl class="docutils">
350
- <dt>element:</dt>
351
- <dd>An element ID string or a DOM node (see
352
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
353
- <dt>options:</dt>
354
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
355
- <dt><em>Availability</em>:</dt>
356
- <dd>Available in MochiKit 1.4+</dd>
357
- </dl>
358
- </blockquote>
359
- <p>
360
- <a name="fn-blindup"></a>
361
- <a class="mochidef reference" href="#fn-blindup">blindUp(element [, options])</a>:</p>
362
- <blockquote>
363
- <p>Blind an <tt class="docutils literal"><span class="pre">element</span></tt> up, changing its vertical size to 0 using the
364
- <a class="mochiref reference" href="#fn-scale">Scale</a> effect. Once the effect has completed, the
365
- <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
366
- <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
367
- size will be restored.</p>
368
- <dl class="docutils">
369
- <dt>element:</dt>
370
- <dd>An element ID string or a DOM node (see
371
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
372
- <dt>options:</dt>
373
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
374
- <dt><em>Availability</em>:</dt>
375
- <dd>Available in MochiKit 1.4+</dd>
376
- </dl>
377
- </blockquote>
378
- <p>
379
- <a name="fn-blinddown"></a>
380
- <a class="mochidef reference" href="#fn-blinddown">blindDown(element [, options])</a>:</p>
381
- <blockquote>
382
- <p>Blind an <tt class="docutils literal"><span class="pre">element</span></tt> down, restoring its vertical size using the
383
- <a class="mochiref reference" href="#fn-scale">Scale</a> effect. If the <tt class="docutils literal"><span class="pre">element</span></tt> has <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">none&quot;</span></tt>
384
- style, it will be changed to <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">block&quot;</span></tt> with
385
- <a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>.</p>
386
- <dl class="docutils">
387
- <dt>element:</dt>
388
- <dd>An element ID string or a DOM node (see
389
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
390
- <dt>options:</dt>
391
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
392
- <dt><em>Availability</em>:</dt>
393
- <dd>Available in MochiKit 1.4+</dd>
394
- </dl>
395
- </blockquote>
396
- <p>
397
- <a name="fn-switchoff"></a>
398
- <a class="mochidef reference" href="#fn-switchoff">switchOff(element [, options])</a>:</p>
399
- <blockquote>
400
- <p>A switch-off like effect, making the <tt class="docutils literal"><span class="pre">element</span></tt> disappear, using
401
- the <a class="mochiref reference" href="#fn-opacity">Opacity</a> and <a class="mochiref reference" href="#fn-scale">Scale</a> effects in sequence.
402
- The initial <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect uses a flicker (partially
403
- random) transformation. Once the effect has completed, the
404
- <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
405
- <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
406
- opacity, size and position will be restored.</p>
407
- <dl class="docutils">
408
- <dt>element:</dt>
409
- <dd>An element ID string or a DOM node (see
410
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
411
- <dt>options:</dt>
412
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options will
413
- only affect the secondary <a class="mochiref reference" href="#fn-scale">Scale</a> effect.</dd>
414
- <dt><em>Availability</em>:</dt>
415
- <dd>Available in MochiKit 1.4+</dd>
416
- </dl>
417
- </blockquote>
418
- <p>
419
- <a name="fn-dropout"></a>
420
- <a class="mochidef reference" href="#fn-dropout">dropOut(element [, options])</a>:</p>
421
- <blockquote>
422
- <p>Make the element fall and fade using the
423
- <a class="mochiref reference" href="#fn-move">Move</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel.
424
- Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
425
- <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element
426
- position and opacity will be restored.</p>
427
- <dl class="docutils">
428
- <dt>element:</dt>
429
- <dd>An element ID string or a DOM node (see
430
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
431
- <dt>options:</dt>
432
- <dd><p class="first">The <tt class="docutils literal"><span class="pre">distance</span></tt> option controls the number of pixels that the
433
- element will move downwards. See also the
434
- <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
435
- <table border="1" class="last docutils">
436
- <colgroup>
437
- <col width="53%" />
438
- <col width="47%" />
439
- </colgroup>
440
- <tbody valign="top">
441
- <tr><td>distance</td>
442
- <td><tt class="docutils literal"><span class="pre">100</span></tt></td>
443
- </tr>
444
- </tbody>
445
- </table>
446
- </dd>
447
- <dt><em>Availability</em>:</dt>
448
- <dd>Available in MochiKit 1.4+</dd>
449
- </dl>
450
- </blockquote>
451
- <p>
452
- <a name="fn-shake"></a>
453
- <a class="mochidef reference" href="#fn-shake">shake(element [, options])</a>:</p>
454
- <blockquote>
455
- <p>Shake an element from left to right using a sequence of six
456
- <a class="mochiref reference" href="#fn-move">Move</a> effects. Once the effect has completed, the
457
- original <tt class="docutils literal"><span class="pre">element</span></tt> position will be restored.</p>
458
- <dl class="docutils">
459
- <dt>element:</dt>
460
- <dd>An element ID string or a DOM node (see
461
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
462
- <dt>options:</dt>
463
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options will
464
- only affect the last <a class="mochiref reference" href="#fn-move">Move</a> effect.</dd>
465
- <dt><em>Availability</em>:</dt>
466
- <dd>Available in MochiKit 1.4+</dd>
467
- </dl>
468
- </blockquote>
469
- <p>
470
- <a name="fn-slidedown"></a>
471
- <a class="mochidef reference" href="#fn-slidedown">slideDown(element [, options])</a>:</p>
472
- <blockquote>
473
- <p>Slide an <tt class="docutils literal"><span class="pre">element</span></tt> down using the <a class="mochiref reference" href="#fn-scale">Scale</a> effect.
474
- The <tt class="docutils literal"><span class="pre">element</span></tt> must have a fixed height and contain a single
475
- child. If the <tt class="docutils literal"><span class="pre">element</span></tt> has <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">none&quot;</span></tt> style it
476
- will be changed to <tt class="docutils literal"><span class="pre">&quot;display:</span> <span class="pre">block&quot;</span></tt> with
477
- <a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a>.</p>
478
- <dl class="docutils">
479
- <dt>element:</dt>
480
- <dd>An element ID string or a DOM node (see
481
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
482
- <dt>options:</dt>
483
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
484
- <dt><em>Availability</em>:</dt>
485
- <dd>Available in MochiKit 1.4+</dd>
486
- </dl>
487
- </blockquote>
488
- <p>
489
- <a name="fn-slideup"></a>
490
- <a class="mochidef reference" href="#fn-slideup">slideUp(element [, options])</a>:</p>
491
- <blockquote>
492
- <p>Slide an <tt class="docutils literal"><span class="pre">element</span></tt> up using the <a class="mochiref reference" href="#fn-scale">Scale</a> effect.
493
- The <tt class="docutils literal"><span class="pre">element</span></tt> must have a fixed height and contain a single
494
- child. Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be
495
- hidden with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the
496
- original element size will be restored.</p>
497
- <dl class="docutils">
498
- <dt>element:</dt>
499
- <dd>An element ID string or a DOM node (see
500
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
501
- <dt>options:</dt>
502
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
503
- <dt><em>Availability</em>:</dt>
504
- <dd>Available in MochiKit 1.4+</dd>
505
- </dl>
506
- </blockquote>
507
- <p>
508
- <a name="fn-squish"></a>
509
- <a class="mochidef reference" href="#fn-squish">squish(element [, options])</a>:</p>
510
- <blockquote>
511
- <p>Reduce the horizontal and vertical sizes at the same time using
512
- a single <a class="mochiref reference" href="#fn-scale">Scale</a> effect. The result is similar to the
513
- <a class="mochiref reference" href="#fn-shrink">shrink</a> effect with a <tt class="docutils literal"><span class="pre">top-left</span></tt> value for the
514
- <tt class="docutils literal"><span class="pre">direction</span></tt> option. The <tt class="docutils literal"><span class="pre">element</span></tt> should have fixed width and
515
- height. Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be
516
- hidden with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the
517
- original element size will be restored.</p>
518
- <dl class="docutils">
519
- <dt>element:</dt>
520
- <dd>An element ID string or a DOM node (see
521
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
522
- <dt>options:</dt>
523
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
524
- <dt><em>Availability</em>:</dt>
525
- <dd>Available in MochiKit 1.4+</dd>
526
- </dl>
527
- </blockquote>
528
- <p>
529
- <a name="fn-grow"></a>
530
- <a class="mochidef reference" href="#fn-grow">grow(element [, options])</a>:</p>
531
- <blockquote>
532
- <p>Grows an <tt class="docutils literal"><span class="pre">element</span></tt> size using <a class="mochiref reference" href="#fn-scale">Scale</a>, <a class="mochiref reference" href="#fn-move">Move</a>
533
- and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. The <tt class="docutils literal"><span class="pre">element</span></tt> should
534
- have fixed width, height and top-left position. Before the effect
535
- starts, the <tt class="docutils literal"><span class="pre">element</span></tt> will be shown with
536
- <a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a> and the size and position
537
- values will be read.</p>
538
- <dl class="docutils">
539
- <dt>element:</dt>
540
- <dd>An element ID string or a DOM node (see
541
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
542
- <dt>options:</dt>
543
- <dd><p class="first">The following options and default values control this
544
- effect. Note that the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect is turned
545
- off by default. See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
546
- <table border="1" class="last docutils">
547
- <colgroup>
548
- <col width="30%" />
549
- <col width="70%" />
550
- </colgroup>
551
- <tbody valign="top">
552
- <tr><td>direction</td>
553
- <td><tt class="docutils literal"><span class="pre">&quot;center&quot;</span></tt></td>
554
- </tr>
555
- <tr><td>moveTransition</td>
556
- <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
557
- </tr>
558
- <tr><td>scaleTransition</td>
559
- <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
560
- </tr>
561
- <tr><td>opacityTransition</td>
562
- <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.full</span></tt></td>
563
- </tr>
564
- </tbody>
565
- </table>
566
- </dd>
567
- </dl>
568
- <p>The <tt class="docutils literal"><span class="pre">direction</span></tt> option controls the origin point of the effect.
569
- The following values are allowed:</p>
570
- <blockquote>
571
- <table border="1" class="docutils">
572
- <colgroup>
573
- <col width="34%" />
574
- <col width="66%" />
575
- </colgroup>
576
- <tbody valign="top">
577
- <tr><td><tt class="docutils literal"><span class="pre">&quot;center&quot;</span></tt></td>
578
- <td>Grows from the center</td>
579
- </tr>
580
- <tr><td><tt class="docutils literal"><span class="pre">&quot;top-left&quot;</span></tt></td>
581
- <td>Grows from the top left corner</td>
582
- </tr>
583
- <tr><td><tt class="docutils literal"><span class="pre">&quot;top-right&quot;</span></tt></td>
584
- <td>Grows from the top right corner</td>
585
- </tr>
586
- <tr><td><tt class="docutils literal"><span class="pre">&quot;bottom-left&quot;</span></tt></td>
587
- <td>Grows from the bottom left corner</td>
588
- </tr>
589
- <tr><td><tt class="docutils literal"><span class="pre">&quot;bottom-right&quot;</span></tt></td>
590
- <td>Grows from the bottom right corner</td>
591
- </tr>
592
- </tbody>
593
- </table>
594
- </blockquote>
595
- <dl class="docutils">
596
- <dt><em>Availability</em>:</dt>
597
- <dd>Available in MochiKit 1.4+</dd>
598
- </dl>
599
- </blockquote>
600
- <p>
601
- <a name="fn-shrink"></a>
602
- <a class="mochidef reference" href="#fn-shrink">shrink(element [, options])</a>:</p>
603
- <blockquote>
604
- <p>Shrinks an <tt class="docutils literal"><span class="pre">element</span></tt> using <a class="mochiref reference" href="#fn-scale">Scale</a>, <a class="mochiref reference" href="#fn-move">Move</a>
605
- and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. The <tt class="docutils literal"><span class="pre">element</span></tt> should
606
- have fixed width, height and top-left position. Once the effect has
607
- completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with
608
- <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original size and
609
- position will be restored.</p>
610
- <dl class="docutils">
611
- <dt>element:</dt>
612
- <dd>An element ID string or a DOM node (see
613
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
614
- <dt>options:</dt>
615
- <dd><p class="first">The following options and default values control this
616
- effect. Note that the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect is turned
617
- off by default. See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
618
- <table border="1" class="last docutils">
619
- <colgroup>
620
- <col width="30%" />
621
- <col width="70%" />
622
- </colgroup>
623
- <tbody valign="top">
624
- <tr><td>direction</td>
625
- <td><tt class="docutils literal"><span class="pre">&quot;center&quot;</span></tt></td>
626
- </tr>
627
- <tr><td>moveTransition</td>
628
- <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
629
- </tr>
630
- <tr><td>scaleTransition</td>
631
- <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
632
- </tr>
633
- <tr><td>opacityTransition</td>
634
- <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.full</span></tt></td>
635
- </tr>
636
- </tbody>
637
- </table>
638
- </dd>
639
- </dl>
640
- <p>The <tt class="docutils literal"><span class="pre">direction</span></tt> option controls the destination point of the
641
- effect. The following values are allowed:</p>
642
- <blockquote>
643
- <table border="1" class="docutils">
644
- <colgroup>
645
- <col width="34%" />
646
- <col width="66%" />
647
- </colgroup>
648
- <tbody valign="top">
649
- <tr><td><tt class="docutils literal"><span class="pre">&quot;center&quot;</span></tt></td>
650
- <td>Grows from the center</td>
651
- </tr>
652
- <tr><td><tt class="docutils literal"><span class="pre">&quot;top-left&quot;</span></tt></td>
653
- <td>Grows from the top left corner</td>
654
- </tr>
655
- <tr><td><tt class="docutils literal"><span class="pre">&quot;top-right&quot;</span></tt></td>
656
- <td>Grows from the top right corner</td>
657
- </tr>
658
- <tr><td><tt class="docutils literal"><span class="pre">&quot;bottom-left&quot;</span></tt></td>
659
- <td>Grows from the bottom left corner</td>
660
- </tr>
661
- <tr><td><tt class="docutils literal"><span class="pre">&quot;bottom-right&quot;</span></tt></td>
662
- <td>Grows from the bottom right corner</td>
663
- </tr>
664
- </tbody>
665
- </table>
666
- </blockquote>
667
- <dl class="docutils">
668
- <dt><em>Availability</em>:</dt>
669
- <dd>Available in MochiKit 1.4+</dd>
670
- </dl>
671
- </blockquote>
672
- <p>
673
- <a name="fn-pulsate"></a>
674
- <a class="mochidef reference" href="#fn-pulsate">pulsate(element [, options])</a>:</p>
675
- <blockquote>
676
- <p>Switches the <tt class="docutils literal"><span class="pre">element</span></tt> visibility using a pulsating
677
- <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect. The effect both starts and
678
- ends with a <tt class="docutils literal"><span class="pre">0</span></tt> opacity value.</p>
679
- <dl class="docutils">
680
- <dt>element:</dt>
681
- <dd>An element ID string or a DOM node (see
682
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
683
- <dt>options:</dt>
684
- <dd><p class="first">The <tt class="docutils literal"><span class="pre">pulses</span></tt> option controls the number of pulses
685
- made during the effect. See also the
686
- <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
687
- <table border="1" class="last docutils">
688
- <colgroup>
689
- <col width="43%" />
690
- <col width="57%" />
691
- </colgroup>
692
- <tbody valign="top">
693
- <tr><td>pulses</td>
694
- <td><tt class="docutils literal"><span class="pre">5</span></tt></td>
695
- </tr>
696
- </tbody>
697
- </table>
698
- </dd>
699
- <dt><em>Availability</em>:</dt>
700
- <dd>Available in MochiKit 1.4+</dd>
701
- </dl>
702
- </blockquote>
703
- <p>
704
- <a name="fn-fold"></a>
705
- <a class="mochidef reference" href="#fn-fold">fold(element [, options])</a>:</p>
706
- <blockquote>
707
- <p>Reduce first the <tt class="docutils literal"><span class="pre">element</span></tt> vertical size, and then the
708
- horizontal size using two <a class="mochiref reference" href="#fn-scale">Scale</a> effects in sequence.
709
- The <tt class="docutils literal"><span class="pre">element</span></tt> should have both fixed width and height. Once
710
- the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden
711
- with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original
712
- size and position will be restored.</p>
713
- <dl class="docutils">
714
- <dt>element:</dt>
715
- <dd>An element ID string or a DOM node (see
716
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
717
- <dt>options:</dt>
718
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options
719
- will only affect the first <a class="mochiref reference" href="#fn-scale">Scale</a> effect.</dd>
720
- <dt><em>Availability</em>:</dt>
721
- <dd>Available in MochiKit 1.4+</dd>
722
- </dl>
723
- </blockquote>
724
- </div>
725
- <div class="section">
726
- <h2><a id="basic-effects-classes-constants" name="basic-effects-classes-constants">Basic Effects Classes &amp; Constants</a></h2>
727
- <p>
728
- <a name="fn-transitions"></a>
729
- <a class="mochidef reference" href="#fn-transitions">Transitions</a>:</p>
730
- <blockquote>
731
- <p>Default transition functions available for all effects. A transition
732
- function adjusts the current position value between 0 and 1 in order
733
- to achieve a non-linear sequence of position values for the effect.</p>
734
- <table border="1" class="docutils">
735
- <colgroup>
736
- <col width="11%" />
737
- <col width="89%" />
738
- </colgroup>
739
- <tbody valign="top">
740
- <tr><td>linear</td>
741
- <td>A straight linear transition.</td>
742
- </tr>
743
- <tr><td>sinoidal</td>
744
- <td>A smooth sine value transition.</td>
745
- </tr>
746
- <tr><td>reverse</td>
747
- <td>A reverse linear transition.</td>
748
- </tr>
749
- <tr><td>flicker</td>
750
- <td>A sine transition with random additions.</td>
751
- </tr>
752
- <tr><td>wobble</td>
753
- <td>A multi-period sine curve transition with 4.5 wobbles and ending with one (1).</td>
754
- </tr>
755
- <tr><td>pulse</td>
756
- <td>A multi-period triangle curve transition with 5 pulses (by default) and ending with zero (0).</td>
757
- </tr>
758
- <tr><td>parabolic</td>
759
- <td>A smooth parabolic transition.</td>
760
- </tr>
761
- <tr><td>none</td>
762
- <td>A fixed zero (0) value transition.</td>
763
- </tr>
764
- <tr><td>full</td>
765
- <td>A fixed one (1) value transition.</td>
766
- </tr>
767
- </tbody>
768
- </table>
769
- <dl class="docutils">
770
- <dt><em>Availability</em>:</dt>
771
- <dd>Available in MochiKit 1.4+</dd>
772
- </dl>
773
- </blockquote>
774
- <p>
775
- <a name="fn-defaultoptions"></a>
776
- <a class="mochidef reference" href="#fn-defaultoptions">DefaultOptions</a>:</p>
777
- <blockquote>
778
- <p>Default options for all effects. Note that all effects inherit
779
- the <a class="mochiref reference" href="#fn-base">Base</a> class and thereby also support a number of
780
- events that can be specified as callback functions among the
781
- effect options.</p>
782
- <table border="1" class="docutils">
783
- <colgroup>
784
- <col width="13%" />
785
- <col width="88%" />
786
- </colgroup>
787
- <tbody valign="top">
788
- <tr><td>transition</td>
789
- <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td>
790
- </tr>
791
- <tr><td>duration</td>
792
- <td><tt class="docutils literal"><span class="pre">1.0</span></tt> (seconds)</td>
793
- </tr>
794
- <tr><td>fps</td>
795
- <td><tt class="docutils literal"><span class="pre">25.0</span></tt></td>
796
- </tr>
797
- <tr><td>sync</td>
798
- <td><tt class="docutils literal"><span class="pre">false</span></tt> (only set for <a class="mochiref reference" href="#fn-parallel">Parallel</a> or <a class="mochiref reference" href="#fn-sequence">Sequence</a> effects)</td>
799
- </tr>
800
- <tr><td>from</td>
801
- <td><tt class="docutils literal"><span class="pre">0.0</span></tt></td>
802
- </tr>
803
- <tr><td>to</td>
804
- <td><tt class="docutils literal"><span class="pre">1.0</span></tt></td>
805
- </tr>
806
- <tr><td>delay</td>
807
- <td><tt class="docutils literal"><span class="pre">0.0</span></tt></td>
808
- </tr>
809
- <tr><td>queue</td>
810
- <td><tt class="docutils literal"><span class="pre">'parallel'</span></tt></td>
811
- </tr>
812
- </tbody>
813
- </table>
814
- <dl class="docutils">
815
- <dt><em>Availability</em>:</dt>
816
- <dd>Available in MochiKit 1.4+</dd>
817
- </dl>
818
- </blockquote>
819
- <p>
820
- <a name="fn-base"></a>
821
- <a class="mochidef reference" href="#fn-base">Base()</a>:</p>
822
- <blockquote>
823
- <p>Base class to all effects. Define a basic looping service, use it
824
- for creating new effects.</p>
825
- <p>You can override the methods <tt class="docutils literal"><span class="pre">setup</span></tt>, <tt class="docutils literal"><span class="pre">update</span></tt> and <tt class="docutils literal"><span class="pre">finish</span></tt>.</p>
826
- <p>The class defines a number of events that will be called during effect
827
- life. The events are:</p>
828
- <ul class="simple">
829
- <li>beforeStart</li>
830
- <li>beforeSetup</li>
831
- <li>beforeUpdate</li>
832
- <li>afterUpdate</li>
833
- <li>beforeFinish</li>
834
- <li>afterFinish</li>
835
- </ul>
836
- <p>If you want to define your own callbacks, define it in the options
837
- parameter of the effect. Example:</p>
838
- <pre class="literal-block">
839
- // I slide it up and then down again
840
- slideUp('myelement', {afterFinish: function () {
841
- slideDown('myelement');
842
- });
843
- </pre>
844
- <p>Specific <tt class="docutils literal"><span class="pre">internal</span></tt> events are also available: for each one listed above,
845
- the same exists with an 'Internal' postfix (e.g. 'beforeStartInternal').
846
- Their purpose is mainly for creating your own effect and keep the user
847
- access to event callbacks (not overriding the library ones).</p>
848
- <dl class="docutils">
849
- <dt><em>Availability</em>:</dt>
850
- <dd>Available in MochiKit 1.4+</dd>
851
- </dl>
852
- </blockquote>
853
- <p>
854
- <a name="fn-parallel"></a>
855
- <a class="mochidef reference" href="#fn-parallel">Parallel(effects [, options])</a>:</p>
856
- <blockquote>
857
- <p>Launch a list of <tt class="docutils literal"><span class="pre">effects</span></tt> in parallel.</p>
858
- <dl class="docutils">
859
- <dt>effects:</dt>
860
- <dd>An array of instantiated effect objects. Note that they <em>must</em>
861
- all have <tt class="docutils literal"><span class="pre">sync</span></tt> set to <tt class="docutils literal"><span class="pre">true</span></tt>.</dd>
862
- <dt>options:</dt>
863
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
864
- <dt><em>Availability</em>:</dt>
865
- <dd>Available in MochiKit 1.4+</dd>
866
- </dl>
867
- </blockquote>
868
- <p>
869
- <a name="fn-sequence"></a>
870
- <a class="mochidef reference" href="#fn-sequence">Sequence(effects [, options])</a>:</p>
871
- <blockquote>
872
- <p>Launch a list of <tt class="docutils literal"><span class="pre">effects</span></tt> in sequence, one after the other.</p>
873
- <dl class="docutils">
874
- <dt>effects:</dt>
875
- <dd>An array of instantiated effect objects. Note that they <em>must</em>
876
- all have <tt class="docutils literal"><span class="pre">sync</span></tt> set to <tt class="docutils literal"><span class="pre">true</span></tt>.</dd>
877
- <dt>options:</dt>
878
- <dd><p class="first">See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the default value
879
- for some options is different and that some of the transition
880
- and timing options don't make sense to override.</p>
881
- <table border="1" class="last docutils">
882
- <colgroup>
883
- <col width="20%" />
884
- <col width="80%" />
885
- </colgroup>
886
- <tbody valign="top">
887
- <tr><td>transition</td>
888
- <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.linear</span></tt></td>
889
- </tr>
890
- <tr><td>duration</td>
891
- <td>Sum of the <tt class="docutils literal"><span class="pre">duration</span></tt> for all <tt class="docutils literal"><span class="pre">effects</span></tt>.</td>
892
- </tr>
893
- <tr><td>from</td>
894
- <td>Only <tt class="docutils literal"><span class="pre">0.0</span></tt> makes sense.</td>
895
- </tr>
896
- <tr><td>to</td>
897
- <td>Only <tt class="docutils literal"><span class="pre">1.0</span></tt> makes sense.</td>
898
- </tr>
899
- </tbody>
900
- </table>
901
- </dd>
902
- <dt><em>Availability</em>:</dt>
903
- <dd>Available in MochiKit 1.4+</dd>
904
- </dl>
905
- </blockquote>
906
- <p>
907
- <a name="fn-opacity"></a>
908
- <a class="mochidef reference" href="#fn-opacity">Opacity(element [, options])</a>:</p>
909
- <blockquote>
910
- <p>Change the opacity of an <tt class="docutils literal"><span class="pre">element</span></tt> progressively.</p>
911
- <dl class="docutils">
912
- <dt>element:</dt>
913
- <dd>An element ID string or a DOM node (see
914
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
915
- <dt>options:</dt>
916
- <dd><p class="first">The following options and default values control this effect.
917
- See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
918
- <table border="1" class="last docutils">
919
- <colgroup>
920
- <col width="43%" />
921
- <col width="57%" />
922
- </colgroup>
923
- <tbody valign="top">
924
- <tr><td>from</td>
925
- <td><tt class="docutils literal"><span class="pre">0.0</span></tt></td>
926
- </tr>
927
- <tr><td>to</td>
928
- <td><tt class="docutils literal"><span class="pre">1.0</span></tt></td>
929
- </tr>
930
- </tbody>
931
- </table>
932
- </dd>
933
- <dt><em>Availability</em>:</dt>
934
- <dd>Available in MochiKit 1.4+</dd>
935
- </dl>
936
- </blockquote>
937
- <p>
938
- <a name="fn-move"></a>
939
- <a class="mochidef reference" href="#fn-move">Move(element [, options])</a>:</p>
940
- <blockquote>
941
- <p>Changes the (top left) position of an <tt class="docutils literal"><span class="pre">element</span></tt> in small steps,
942
- creating a moving effect.</p>
943
- <dl class="docutils">
944
- <dt>element:</dt>
945
- <dd>An element ID string or a DOM node (see
946
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
947
- <dt>options:</dt>
948
- <dd><p class="first">The following options and default values control this effect.
949
- See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
950
- <table border="1" class="last docutils">
951
- <colgroup>
952
- <col width="36%" />
953
- <col width="64%" />
954
- </colgroup>
955
- <tbody valign="top">
956
- <tr><td>x</td>
957
- <td><tt class="docutils literal"><span class="pre">0</span></tt></td>
958
- </tr>
959
- <tr><td>y</td>
960
- <td><tt class="docutils literal"><span class="pre">0</span></tt></td>
961
- </tr>
962
- <tr><td>mode</td>
963
- <td><tt class="docutils literal"><span class="pre">'relative'</span></tt></td>
964
- </tr>
965
- </tbody>
966
- </table>
967
- </dd>
968
- </dl>
969
- <p>The <tt class="docutils literal"><span class="pre">mode</span></tt> option controls if the specified <tt class="docutils literal"><span class="pre">x</span></tt> and <tt class="docutils literal"><span class="pre">y</span></tt>
970
- coordinates are <tt class="docutils literal"><span class="pre">relative</span></tt> or <tt class="docutils literal"><span class="pre">absolute</span></tt> with respect to the
971
- current <tt class="docutils literal"><span class="pre">element</span></tt> position.</p>
972
- <dl class="docutils">
973
- <dt><em>Availability</em>:</dt>
974
- <dd>Available in MochiKit 1.4+</dd>
975
- </dl>
976
- </blockquote>
977
- <p>
978
- <a name="fn-scale"></a>
979
- <a class="mochidef reference" href="#fn-scale">Scale(element, percent [, options])</a>:</p>
980
- <blockquote>
981
- <p>Changes the size of an <tt class="docutils literal"><span class="pre">element</span></tt>.</p>
982
- <dl class="docutils">
983
- <dt>element:</dt>
984
- <dd>An element ID string or a DOM node (see
985
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
986
- <dt>percent:</dt>
987
- <dd>Final wanted size in percent of current size. The size will be
988
- reduced if the value is between 0 and 100, and raised if the
989
- value is above 100.</dd>
990
- <dt>options:</dt>
991
- <dd><p class="first">The following options and default values control this effect.
992
- See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
993
- <table border="1" class="last docutils">
994
- <colgroup>
995
- <col width="57%" />
996
- <col width="43%" />
997
- </colgroup>
998
- <tbody valign="top">
999
- <tr><td>scaleX</td>
1000
- <td><tt class="docutils literal"><span class="pre">true</span></tt></td>
1001
- </tr>
1002
- <tr><td>scaleY</td>
1003
- <td><tt class="docutils literal"><span class="pre">true</span></tt></td>
1004
- </tr>
1005
- <tr><td>scaleContent</td>
1006
- <td><tt class="docutils literal"><span class="pre">true</span></tt></td>
1007
- </tr>
1008
- <tr><td>scaleFromCenter</td>
1009
- <td><tt class="docutils literal"><span class="pre">false</span></tt></td>
1010
- </tr>
1011
- <tr><td>scaleMode</td>
1012
- <td><tt class="docutils literal"><span class="pre">&quot;box&quot;</span></tt></td>
1013
- </tr>
1014
- <tr><td>scaleFrom</td>
1015
- <td><tt class="docutils literal"><span class="pre">100.0</span></tt></td>
1016
- </tr>
1017
- <tr><td>scaleTo</td>
1018
- <td><tt class="docutils literal"><span class="pre">percent</span></tt></td>
1019
- </tr>
1020
- </tbody>
1021
- </table>
1022
- </dd>
1023
- </dl>
1024
- <p>The <tt class="docutils literal"><span class="pre">scaleContent</span></tt> option controls if the element <tt class="docutils literal"><span class="pre">font-size</span></tt>
1025
- should also be scaled along with the size. The <tt class="docutils literal"><span class="pre">scaleFromCenter</span></tt>
1026
- option allows continual adjustment of the <tt class="docutils literal"><span class="pre">element</span></tt> top left
1027
- position to keep the element centered during the size change.
1028
- The <tt class="docutils literal"><span class="pre">scaleMode</span></tt> option is used to determine the original
1029
- <tt class="docutils literal"><span class="pre">element</span></tt> size. It can have one of the following values:</p>
1030
- <blockquote>
1031
- <table border="1" class="docutils">
1032
- <colgroup>
1033
- <col width="18%" />
1034
- <col width="82%" />
1035
- </colgroup>
1036
- <tbody valign="top">
1037
- <tr><td><tt class="docutils literal"><span class="pre">&quot;box&quot;</span></tt></td>
1038
- <td>Uses <tt class="docutils literal"><span class="pre">offsetHeight</span></tt> and <tt class="docutils literal"><span class="pre">offsetWidth</span></tt></td>
1039
- </tr>
1040
- <tr><td><tt class="docutils literal"><span class="pre">&quot;contents&quot;</span></tt></td>
1041
- <td>Uses <tt class="docutils literal"><span class="pre">scrollHeight</span></tt> and <tt class="docutils literal"><span class="pre">scrollWidth</span></tt></td>
1042
- </tr>
1043
- <tr><td>{...}</td>
1044
- <td>Uses <tt class="docutils literal"><span class="pre">originalHeight</span></tt> and <tt class="docutils literal"><span class="pre">originalWidth</span></tt> from the specified object</td>
1045
- </tr>
1046
- </tbody>
1047
- </table>
1048
- </blockquote>
1049
- <dl class="docutils">
1050
- <dt><em>Availability</em>:</dt>
1051
- <dd>Available in MochiKit 1.4+</dd>
1052
- </dl>
1053
- </blockquote>
1054
- <p>
1055
- <a name="fn-highlight"></a>
1056
- <a class="mochidef reference" href="#fn-highlight">Highlight(element [, options])</a>:</p>
1057
- <blockquote>
1058
- <p>Highlights an <tt class="docutils literal"><span class="pre">element</span></tt> by flashing the background color. The
1059
- color is first set to the <tt class="docutils literal"><span class="pre">startcolor</span></tt> and is then slowly
1060
- morphed into the <tt class="docutils literal"><span class="pre">endcolor</span></tt>, normally the original background
1061
- color of the element.</p>
1062
- <dl class="docutils">
1063
- <dt>element:</dt>
1064
- <dd>An element ID string or a DOM node (see
1065
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
1066
- <dt>options:</dt>
1067
- <dd><p class="first">The following options and default values control this effect.
1068
- See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p>
1069
- <table border="1" class="last docutils">
1070
- <colgroup>
1071
- <col width="25%" />
1072
- <col width="75%" />
1073
- </colgroup>
1074
- <tbody valign="top">
1075
- <tr><td>startcolor</td>
1076
- <td><tt class="docutils literal"><span class="pre">'#ffff99'</span></tt></td>
1077
- </tr>
1078
- <tr><td>endcolor</td>
1079
- <td><tt class="docutils literal"><span class="pre">element.style.backgroundColor</span></tt></td>
1080
- </tr>
1081
- </tbody>
1082
- </table>
1083
- </dd>
1084
- <dt><em>Availability</em>:</dt>
1085
- <dd>Available in MochiKit 1.4+</dd>
1086
- </dl>
1087
- </blockquote>
1088
- <p>
1089
- <a name="fn-scrollto"></a>
1090
- <a class="mochidef reference" href="#fn-scrollto">ScrollTo(element [, options])</a>:</p>
1091
- <blockquote>
1092
- <p>Scroll the window to the position of the given <tt class="docutils literal"><span class="pre">element</span></tt>. Note
1093
- that this effect only scrolls the top window and not any parent
1094
- elements with scrollbars due to <tt class="docutils literal"><span class="pre">&quot;overflow:</span> <span class="pre">auto&quot;</span></tt> style.</p>
1095
- <dl class="docutils">
1096
- <dt>element:</dt>
1097
- <dd>An element ID string or a DOM node (see
1098
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
1099
- <dt>options:</dt>
1100
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
1101
- <dt><em>Availability</em>:</dt>
1102
- <dd>Available in MochiKit 1.4+</dd>
1103
- </dl>
1104
- </blockquote>
1105
- <p>
1106
- <a name="fn-morph"></a>
1107
- <a class="mochidef reference" href="#fn-morph">Morph(element [, options])</a>:</p>
1108
- <blockquote>
1109
- <p>Make a transformation to the given <tt class="docutils literal"><span class="pre">element</span></tt>. It's called with the option
1110
- <tt class="docutils literal"><span class="pre">style</span></tt> with an array holding the styles to change. It works with
1111
- properties for size (<tt class="docutils literal"><span class="pre">font-size</span></tt>, <tt class="docutils literal"><span class="pre">border-width</span></tt>, ...) and properties
1112
- for color (<tt class="docutils literal"><span class="pre">color</span></tt>, <tt class="docutils literal"><span class="pre">background-color</span></tt>, ...).</p>
1113
- <p>For size, it's better to have defined the original style. You <em>must</em>
1114
- use the same unit in the call to Morph (no translation exists between two
1115
- different units).</p>
1116
- <p>Parsed length are postfixed with: em, ex, px, in, cm, mm, pt, pc.</p>
1117
- <p>Example:</p>
1118
- <pre class="literal-block">
1119
- &lt;div id=&quot;foo&quot; style=&quot;font-size: 1em&quot;&gt;MyDiv&lt;/div&gt;
1120
- ...
1121
- Morph(&quot;foo&quot;, {&quot;style&quot;: {&quot;font-size&quot;: &quot;2em&quot;}});
1122
- </pre>
1123
- <dl class="docutils">
1124
- <dt>element:</dt>
1125
- <dd>An element ID string or a DOM node (see
1126
- <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd>
1127
- <dt>options:</dt>
1128
- <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd>
1129
- <dt><em>Availability</em>:</dt>
1130
- <dd>Available in MochiKit 1.4+</dd>
1131
- </dl>
1132
- </blockquote>
1133
- </div>
1134
- </div>
1135
- <div class="section">
1136
- <h1><a id="authors" name="authors">Authors</a></h1>
1137
- <ul class="simple">
1138
- <li>Kevin Dangoor &lt;<a class="reference" href="mailto:dangoor&#64;gmail.com">dangoor&#64;gmail.com</a>&gt;</li>
1139
- <li>Bob Ippolito &lt;<a class="reference" href="mailto:bob&#64;redivi.com">bob&#64;redivi.com</a>&gt;</li>
1140
- <li>Thomas Herve &lt;<a class="reference" href="mailto:therve&#64;gmail.com">therve&#64;gmail.com</a>&gt;</li>
1141
- <li>Round corners originally adapted from Rico &lt;<a class="reference" href="http://openrico.org/">http://openrico.org/</a>&gt;
1142
- (though little remains)</li>
1143
- <li>Effects originally adapted from Script.aculo.us
1144
- &lt;<a class="reference" href="http://script.aculo.us/">http://script.aculo.us/</a>&gt;</li>
1145
- </ul>
1146
- </div>
1147
- <div class="section">
1148
- <h1><a id="copyright" name="copyright">Copyright</a></h1>
1149
- <p>Copyright 2005 Bob Ippolito &lt;<a class="reference" href="mailto:bob&#64;redivi.com">bob&#64;redivi.com</a>&gt;. This program is
1150
- dual-licensed free software; you can redistribute it and/or modify it
1151
- under the terms of the <a class="reference" href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <a class="reference" href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License
1152
- v2.1</a>.</p>
1153
- <p>Portions adapted from <a class="reference" href="http://www.openrico.org">Rico</a> are available under the terms of the
1154
- <a class="reference" href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License, Version 2.0</a>.</p>
1155
- <p>Portions adapted from <a class="reference" href="http://script.aculo.us">Scriptaculous</a> are available under the terms
1156
- of the <a class="reference" href="http://www.opensource.org/licenses/mit-license.php">MIT License</a>.</p>
1157
- </div>
1158
- </div>
1159
-
1160
- </body>
1161
- </html>