Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-44361 Import YUI 3.15.0

Includes @VERSION@ fix
  • Loading branch information...
commit 4d24e65cb8a43289049cae9dd4e5032a355470c5 1 parent ec4c816
@andrewnicols andrewnicols authored
Showing with 4 additions and 15,063 deletions.
  1. +2 −0  .gitignore
  2. +1 −1  lib/setup.php
  3. +1 −1  lib/thirdpartylibs.xml
  4. +0 −13 lib/yuilib/3.13.0/align-plugin/align-plugin-coverage.js
  5. +0 −200 lib/yuilib/3.13.0/align-plugin/align-plugin-debug.js
  6. +0 −8 lib/yuilib/3.13.0/align-plugin/align-plugin-min.js
  7. +0 −200 lib/yuilib/3.13.0/align-plugin/align-plugin.js
  8. +0 −13 lib/yuilib/3.13.0/anim-base/anim-base-coverage.js
  9. +0 −692 lib/yuilib/3.13.0/anim-base/anim-base-debug.js
  10. +0 −8 lib/yuilib/3.13.0/anim-base/anim-base-min.js
  11. +0 −691 lib/yuilib/3.13.0/anim-base/anim-base.js
  12. +0 −13 lib/yuilib/3.13.0/anim-color/anim-color-coverage.js
  13. +0 −60 lib/yuilib/3.13.0/anim-color/anim-color-debug.js
  14. +0 −8 lib/yuilib/3.13.0/anim-color/anim-color-min.js
  15. +0 −60 lib/yuilib/3.13.0/anim-color/anim-color.js
  16. +0 −13 lib/yuilib/3.13.0/anim-curve/anim-curve-coverage.js
  17. +0 −66 lib/yuilib/3.13.0/anim-curve/anim-curve-debug.js
  18. +0 −8 lib/yuilib/3.13.0/anim-curve/anim-curve-min.js
  19. +0 −66 lib/yuilib/3.13.0/anim-curve/anim-curve.js
  20. +0 −13 lib/yuilib/3.13.0/anim-easing/anim-easing-coverage.js
  21. +0 −372 lib/yuilib/3.13.0/anim-easing/anim-easing-debug.js
  22. +0 −8 lib/yuilib/3.13.0/anim-easing/anim-easing-min.js
  23. +0 −372 lib/yuilib/3.13.0/anim-easing/anim-easing.js
  24. +0 −13 lib/yuilib/3.13.0/anim-node-plugin/anim-node-plugin-coverage.js
  25. +0 −33 lib/yuilib/3.13.0/anim-node-plugin/anim-node-plugin-debug.js
  26. +0 −8 lib/yuilib/3.13.0/anim-node-plugin/anim-node-plugin-min.js
  27. +0 −33 lib/yuilib/3.13.0/anim-node-plugin/anim-node-plugin.js
  28. +0 −13 lib/yuilib/3.13.0/anim-scroll/anim-scroll-coverage.js
  29. +0 −45 lib/yuilib/3.13.0/anim-scroll/anim-scroll-debug.js
  30. +0 −8 lib/yuilib/3.13.0/anim-scroll/anim-scroll-min.js
  31. +0 −45 lib/yuilib/3.13.0/anim-scroll/anim-scroll.js
  32. +0 −13 lib/yuilib/3.13.0/anim-shape/anim-shape-coverage.js
  33. +0 −192 lib/yuilib/3.13.0/anim-shape/anim-shape-debug.js
  34. +0 −8 lib/yuilib/3.13.0/anim-shape/anim-shape-min.js
  35. +0 −192 lib/yuilib/3.13.0/anim-shape/anim-shape.js
  36. +0 −13 lib/yuilib/3.13.0/anim-xy/anim-xy-coverage.js
  37. +0 −33 lib/yuilib/3.13.0/anim-xy/anim-xy-debug.js
  38. +0 −8 lib/yuilib/3.13.0/anim-xy/anim-xy-min.js
  39. +0 −33 lib/yuilib/3.13.0/anim-xy/anim-xy.js
  40. +0 −13 lib/yuilib/3.13.0/app-base/app-base-coverage.js
  41. +0 −1,123 lib/yuilib/3.13.0/app-base/app-base-debug.js
  42. +0 −8 lib/yuilib/3.13.0/app-base/app-base-min.js
  43. +0 −1,123 lib/yuilib/3.13.0/app-base/app-base.js
  44. +0 −13 lib/yuilib/3.13.0/app-content/app-content-coverage.js
  45. +0 −241 lib/yuilib/3.13.0/app-content/app-content-debug.js
  46. +0 −8 lib/yuilib/3.13.0/app-content/app-content-min.js
  47. +0 −241 lib/yuilib/3.13.0/app-content/app-content.js
  48. +0 −8 lib/yuilib/3.13.0/app-transitions-css/app-transitions-css-min.css
  49. +0 −40 lib/yuilib/3.13.0/app-transitions-css/app-transitions-css.css
  50. +0 −13 lib/yuilib/3.13.0/app-transitions-native/app-transitions-native-coverage.js
  51. +0 −360 lib/yuilib/3.13.0/app-transitions-native/app-transitions-native-debug.js
  52. +0 −8 lib/yuilib/3.13.0/app-transitions-native/app-transitions-native-min.js
  53. +0 −360 lib/yuilib/3.13.0/app-transitions-native/app-transitions-native.js
  54. +0 −13 lib/yuilib/3.13.0/app-transitions/app-transitions-coverage.js
  55. +0 −249 lib/yuilib/3.13.0/app-transitions/app-transitions-debug.js
  56. +0 −8 lib/yuilib/3.13.0/app-transitions/app-transitions-min.js
  57. +0 −249 lib/yuilib/3.13.0/app-transitions/app-transitions.js
  58. +0 −13 lib/yuilib/3.13.0/array-extras/array-extras-coverage.js
  59. +0 −407 lib/yuilib/3.13.0/array-extras/array-extras-debug.js
  60. +0 −8 lib/yuilib/3.13.0/array-extras/array-extras-min.js
  61. +0 −407 lib/yuilib/3.13.0/array-extras/array-extras.js
  62. +0 −13 lib/yuilib/3.13.0/array-invoke/array-invoke-coverage.js
  63. +0 −47 lib/yuilib/3.13.0/array-invoke/array-invoke-debug.js
  64. +0 −8 lib/yuilib/3.13.0/array-invoke/array-invoke-min.js
  65. +0 −47 lib/yuilib/3.13.0/array-invoke/array-invoke.js
  66. +0 −13 lib/yuilib/3.13.0/arraylist-add/arraylist-add-coverage.js
  67. +0 −94 lib/yuilib/3.13.0/arraylist-add/arraylist-add-debug.js
  68. +0 −8 lib/yuilib/3.13.0/arraylist-add/arraylist-add-min.js
  69. +0 −94 lib/yuilib/3.13.0/arraylist-add/arraylist-add.js
  70. +0 −13 lib/yuilib/3.13.0/arraylist-filter/arraylist-filter-coverage.js
  71. +0 −52 lib/yuilib/3.13.0/arraylist-filter/arraylist-filter-debug.js
  72. +0 −8 lib/yuilib/3.13.0/arraylist-filter/arraylist-filter-min.js
  73. +0 −52 lib/yuilib/3.13.0/arraylist-filter/arraylist-filter.js
  74. +0 −13 lib/yuilib/3.13.0/arraylist/arraylist-coverage.js
  75. +0 −221 lib/yuilib/3.13.0/arraylist/arraylist-debug.js
  76. +0 −8 lib/yuilib/3.13.0/arraylist/arraylist-min.js
  77. +0 −221 lib/yuilib/3.13.0/arraylist/arraylist.js
  78. +0 −13 lib/yuilib/3.13.0/arraysort/arraysort-coverage.js
  79. +0 −188 lib/yuilib/3.13.0/arraysort/arraysort-debug.js
  80. +0 −8 lib/yuilib/3.13.0/arraysort/arraysort-min.js
  81. +0 −188 lib/yuilib/3.13.0/arraysort/arraysort.js
  82. +0 −197 lib/yuilib/3.13.0/assets/skin/audio-light/skin.css
  83. +0 −197 lib/yuilib/3.13.0/assets/skin/audio/skin.css
  84. +0 −197 lib/yuilib/3.13.0/assets/skin/capsule-dark/skin.css
  85. +0 −201 lib/yuilib/3.13.0/assets/skin/capsule/skin.css
  86. +0 −1,759 lib/yuilib/3.13.0/assets/skin/night/skin.css
  87. +0 −193 lib/yuilib/3.13.0/assets/skin/round-dark/skin.css
  88. +0 −193 lib/yuilib/3.13.0/assets/skin/round/skin.css
  89. +0 −189 lib/yuilib/3.13.0/assets/skin/sam-dark/skin.css
  90. +0 −1,670 lib/yuilib/3.13.0/assets/skin/sam/skin.css
  91. +0 −8 lib/yuilib/3.13.0/assets/skins/audio-light/slider-base.css
  92. +0 −8 lib/yuilib/3.13.0/assets/skins/audio/slider-base.css
  93. +0 −8 lib/yuilib/3.13.0/assets/skins/capsule-dark/slider-base.css
  94. +0 −8 lib/yuilib/3.13.0/assets/skins/capsule/slider-base.css
  95. +0 −8 lib/yuilib/3.13.0/assets/skins/night/autocomplete-list.css
  96. +0 −8 lib/yuilib/3.13.0/assets/skins/night/calendar-base.css
  97. +0 −8 lib/yuilib/3.13.0/assets/skins/night/calendar.css
  98. +0 −8 lib/yuilib/3.13.0/assets/skins/night/calendarnavigator.css
  99. +0 −8 lib/yuilib/3.13.0/assets/skins/night/datatable-base.css
  100. +0 −8 lib/yuilib/3.13.0/assets/skins/night/datatable-highlight.css
  101. +0 −8 lib/yuilib/3.13.0/assets/skins/night/datatable-message.css
  102. +0 −8 lib/yuilib/3.13.0/assets/skins/night/datatable-paginator.css
  103. +0 −8 lib/yuilib/3.13.0/assets/skins/night/datatable-scroll.css
  104. +0 −8 lib/yuilib/3.13.0/assets/skins/night/datatable-sort.css
  105. +0 −8 lib/yuilib/3.13.0/assets/skins/night/dial.css
  106. +0 −8 lib/yuilib/3.13.0/assets/skins/night/node-menunav.css
  107. +0 −8 lib/yuilib/3.13.0/assets/skins/night/overlay.css
  108. +0 −8 lib/yuilib/3.13.0/assets/skins/night/panel.css
  109. +0 −8 lib/yuilib/3.13.0/assets/skins/night/resize-base.css
  110. +0 −8 lib/yuilib/3.13.0/assets/skins/night/scrollview-base.css
  111. +0 −8 lib/yuilib/3.13.0/assets/skins/night/scrollview-list.css
  112. +0 −8 lib/yuilib/3.13.0/assets/skins/night/scrollview-scrollbars.css
  113. +0 −8 lib/yuilib/3.13.0/assets/skins/night/slider-base.css
  114. +0 −8 lib/yuilib/3.13.0/assets/skins/night/tabview.css
  115. +0 −8 lib/yuilib/3.13.0/assets/skins/night/widget-base.css
  116. +0 −8 lib/yuilib/3.13.0/assets/skins/night/widget-modality.css
  117. +0 −8 lib/yuilib/3.13.0/assets/skins/night/widget-stack.css
  118. +0 −8 lib/yuilib/3.13.0/assets/skins/round-dark/slider-base.css
  119. +0 −8 lib/yuilib/3.13.0/assets/skins/round/slider-base.css
  120. +0 −8 lib/yuilib/3.13.0/assets/skins/sam-dark/slider-base.css
  121. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/autocomplete-list.css
  122. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/calendar-base.css
  123. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/calendar.css
  124. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/calendarnavigator.css
  125. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/console-filters.css
  126. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/console.css
  127. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/datatable-base.css
  128. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/datatable-highlight.css
  129. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/datatable-message.css
  130. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/datatable-paginator.css
  131. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/datatable-scroll.css
  132. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/datatable-sort.css
  133. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/dial.css
  134. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/node-flick.css
  135. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/node-menunav.css
  136. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/overlay.css
  137. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/panel.css
  138. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/resize-base.css
  139. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/scrollview-base.css
  140. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/scrollview-list.css
  141. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/scrollview-scrollbars.css
  142. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/slider-base.css
  143. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/tabview.css
  144. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/test-console.css
  145. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/widget-base.css
  146. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/widget-modality.css
  147. +0 −8 lib/yuilib/3.13.0/assets/skins/sam/widget-stack.css
  148. +0 −13 lib/yuilib/3.13.0/async-queue/async-queue-coverage.js
Sorry, we could not display the entire diff because too many files (3,574) changed.
View
2  .gitignore
@@ -33,3 +33,5 @@ composer.lock
/behat.yml
*/yui/build/*/*-coverage.js
/lib/yuilib/*/build/*/*-coverage.js
+# lib/yuilib/version/module/module-coverage.js
+/lib/yuilib/*/*/*-coverage.js
View
2  lib/setup.php
@@ -347,7 +347,7 @@
// Exact version of currently used yui2 and 3 library.
$CFG->yui2version = '2.9.0';
-$CFG->yui3version = '3.13.0';
+$CFG->yui3version = '3.15.0';
// Patching the upstream YUI release.
// For important information on patching YUI modules, please see http://docs.moodle.org/dev/YUI/Patching.
View
2  lib/thirdpartylibs.xml
@@ -179,7 +179,7 @@
<location>yui</location>
<name>YUI</name>
<license>BSD</license>
- <version>3.13.0</version>
+ <version>3.15.0</version>
<licenseversion></licenseversion>
</library>
<library>
View
13 lib/yuilib/3.13.0/align-plugin/align-plugin-coverage.js
@@ -1,13 +0,0 @@
-/*
-YUI 3.13.0 (build 508226d)
-Copyright 2013 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-
-if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
-if (!__coverage__['build/align-plugin/align-plugin.js']) {
- __coverage__['build/align-plugin/align-plugin.js'] = {"path":"build/align-plugin/align-plugin.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":43}}},"2":{"name":"Align","line":20,"loc":{"start":{"line":20,"column":4},"end":{"line":20,"column":27}}},"3":{"name":"(anonymous_3)","line":58,"loc":{"start":{"line":58,"column":12},"end":{"line":58,"column":63}}},"4":{"name":"(anonymous_4)","line":103,"loc":{"start":{"line":103,"column":14},"end":{"line":103,"column":25}}},"5":{"name":"(anonymous_5)","line":108,"loc":{"start":{"line":108,"column":17},"end":{"line":108,"column":31}}},"6":{"name":"(anonymous_6)","line":118,"loc":{"start":{"line":118,"column":19},"end":{"line":118,"column":30}}},"7":{"name":"(anonymous_7)","line":120,"loc":{"start":{"line":120,"column":23},"end":{"line":120,"column":34}}},"8":{"name":"(anonymous_8)","line":133,"loc":{"start":{"line":133,"column":16},"end":{"line":133,"column":41}}},"9":{"name":"(anonymous_9)","line":143,"loc":{"start":{"line":143,"column":17},"end":{"line":143,"column":28}}},"10":{"name":"(anonymous_10)","line":152,"loc":{"start":{"line":152,"column":13},"end":{"line":152,"column":31}}},"11":{"name":"(anonymous_11)","line":156,"loc":{"start":{"line":156,"column":13},"end":{"line":156,"column":31}}},"12":{"name":"(anonymous_12)","line":160,"loc":{"start":{"line":160,"column":13},"end":{"line":160,"column":31}}},"13":{"name":"(anonymous_13)","line":164,"loc":{"start":{"line":164,"column":13},"end":{"line":164,"column":31}}},"14":{"name":"(anonymous_14)","line":168,"loc":{"start":{"line":168,"column":13},"end":{"line":168,"column":38}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":193,"column":63}},"2":{"start":{"line":9,"column":4},"end":{"line":11,"column":30}},"3":{"start":{"line":20,"column":4},"end":{"line":24,"column":5}},"4":{"start":{"line":21,"column":8},"end":{"line":23,"column":9}},"5":{"start":{"line":22,"column":12},"end":{"line":22,"column":37}},"6":{"start":{"line":26,"column":4},"end":{"line":149,"column":6}},"7":{"start":{"line":60,"column":12},"end":{"line":60,"column":48}},"8":{"start":{"line":62,"column":12},"end":{"line":64,"column":13}},"9":{"start":{"line":63,"column":16},"end":{"line":63,"column":53}},"10":{"start":{"line":66,"column":12},"end":{"line":99,"column":13}},"11":{"start":{"line":67,"column":16},"end":{"line":77,"column":89}},"12":{"start":{"line":79,"column":16},"end":{"line":81,"column":17}},"13":{"start":{"line":80,"column":20},"end":{"line":80,"column":59}},"14":{"start":{"line":82,"column":16},"end":{"line":84,"column":17}},"15":{"start":{"line":83,"column":20},"end":{"line":83,"column":59}},"16":{"start":{"line":86,"column":16},"end":{"line":88,"column":17}},"17":{"start":{"line":87,"column":20},"end":{"line":87,"column":53}},"18":{"start":{"line":89,"column":16},"end":{"line":91,"column":17}},"19":{"start":{"line":90,"column":20},"end":{"line":90,"column":53}},"20":{"start":{"line":93,"column":16},"end":{"line":95,"column":17}},"21":{"start":{"line":94,"column":20},"end":{"line":94,"column":35}},"22":{"start":{"line":97,"column":16},"end":{"line":97,"column":43}},"23":{"start":{"line":100,"column":12},"end":{"line":100,"column":24}},"24":{"start":{"line":104,"column":12},"end":{"line":104,"column":48}},"25":{"start":{"line":105,"column":12},"end":{"line":105,"column":24}},"26":{"start":{"line":109,"column":12},"end":{"line":109,"column":38}},"27":{"start":{"line":110,"column":12},"end":{"line":114,"column":13}},"28":{"start":{"line":111,"column":16},"end":{"line":111,"column":76}},"29":{"start":{"line":112,"column":19},"end":{"line":114,"column":13}},"30":{"start":{"line":113,"column":16},"end":{"line":113,"column":32}},"31":{"start":{"line":119,"column":12},"end":{"line":119,"column":28}},"32":{"start":{"line":120,"column":12},"end":{"line":122,"column":15}},"33":{"start":{"line":121,"column":16},"end":{"line":121,"column":28}},"34":{"start":{"line":134,"column":12},"end":{"line":134,"column":48}},"35":{"start":{"line":135,"column":12},"end":{"line":135,"column":24}},"36":{"start":{"line":144,"column":12},"end":{"line":144,"column":38}},"37":{"start":{"line":145,"column":12},"end":{"line":147,"column":13}},"38":{"start":{"line":146,"column":16},"end":{"line":146,"column":32}},"39":{"start":{"line":151,"column":4},"end":{"line":181,"column":6}},"40":{"start":{"line":153,"column":12},"end":{"line":153,"column":22}},"41":{"start":{"line":157,"column":12},"end":{"line":157,"column":43}},"42":{"start":{"line":161,"column":12},"end":{"line":161,"column":43}},"43":{"start":{"line":165,"column":12},"end":{"line":165,"column":22}},"44":{"start":{"line":169,"column":12},"end":{"line":170,"column":25}},"45":{"start":{"line":172,"column":12},"end":{"line":177,"column":13}},"46":{"start":{"line":173,"column":16},"end":{"line":173,"column":63}},"47":{"start":{"line":175,"column":16},"end":{"line":175,"column":47}},"48":{"start":{"line":176,"column":16},"end":{"line":176,"column":59}},"49":{"start":{"line":179,"column":13},"end":{"line":179,"column":24}},"50":{"start":{"line":183,"column":4},"end":{"line":183,"column":25}},"51":{"start":{"line":184,"column":4},"end":{"line":184,"column":23}},"52":{"start":{"line":186,"column":4},"end":{"line":186,"column":40}},"53":{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},"54":{"start":{"line":189,"column":4},"end":{"line":189,"column":27}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":8},"end":{"line":21,"column":8}},{"start":{"line":21,"column":8},"end":{"line":21,"column":8}}]},"2":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":12},"end":{"line":62,"column":12}},{"start":{"line":62,"column":12},"end":{"line":62,"column":12}}]},"3":{"line":66,"type":"if","locations":[{"start":{"line":66,"column":12},"end":{"line":66,"column":12}},{"start":{"line":66,"column":12},"end":{"line":66,"column":12}}]},"4":{"line":74,"type":"cond-expr","locations":[{"start":{"line":74,"column":46},"end":{"line":74,"column":75}},{"start":{"line":74,"column":77},"end":{"line":74,"column":81}}]},"5":{"line":75,"type":"cond-expr","locations":[{"start":{"line":75,"column":72},"end":{"line":75,"column":101}},{"start":{"line":75,"column":104},"end":{"line":75,"column":108}}]},"6":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":33},"end":{"line":75,"column":44}},{"start":{"line":75,"column":48},"end":{"line":75,"column":68}}]},"7":{"line":76,"type":"cond-expr","locations":[{"start":{"line":76,"column":38},"end":{"line":76,"column":61}},{"start":{"line":76,"column":64},"end":{"line":76,"column":68}}]},"8":{"line":77,"type":"cond-expr","locations":[{"start":{"line":77,"column":58},"end":{"line":77,"column":81}},{"start":{"line":77,"column":84},"end":{"line":77,"column":88}}]},"9":{"line":77,"type":"binary-expr","locations":[{"start":{"line":77,"column":31},"end":{"line":77,"column":36}},{"start":{"line":77,"column":40},"end":{"line":77,"column":54}}]},"10":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":16},"end":{"line":79,"column":16}},{"start":{"line":79,"column":16},"end":{"line":79,"column":16}}]},"11":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":16},"end":{"line":82,"column":16}},{"start":{"line":82,"column":16},"end":{"line":82,"column":16}}]},"12":{"line":86,"type":"if","locations":[{"start":{"line":86,"column":16},"end":{"line":86,"column":16}},{"start":{"line":86,"column":16},"end":{"line":86,"column":16}}]},"13":{"line":89,"type":"if","locations":[{"start":{"line":89,"column":16},"end":{"line":89,"column":16}},{"start":{"line":89,"column":16},"end":{"line":89,"column":16}}]},"14":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":16},"end":{"line":93,"column":16}},{"start":{"line":93,"column":16},"end":{"line":93,"column":16}}]},"15":{"line":93,"type":"binary-expr","locations":[{"start":{"line":93,"column":20},"end":{"line":93,"column":22}},{"start":{"line":93,"column":26},"end":{"line":93,"column":30}}]},"16":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":12},"end":{"line":110,"column":12}},{"start":{"line":110,"column":12},"end":{"line":110,"column":12}}]},"17":{"line":110,"type":"binary-expr","locations":[{"start":{"line":110,"column":16},"end":{"line":110,"column":19}},{"start":{"line":110,"column":23},"end":{"line":110,"column":30}}]},"18":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":19},"end":{"line":112,"column":19}},{"start":{"line":112,"column":19},"end":{"line":112,"column":19}}]},"19":{"line":112,"type":"binary-expr","locations":[{"start":{"line":112,"column":23},"end":{"line":112,"column":27}},{"start":{"line":112,"column":31},"end":{"line":112,"column":37}}]},"20":{"line":145,"type":"if","locations":[{"start":{"line":145,"column":12},"end":{"line":145,"column":12}},{"start":{"line":145,"column":12},"end":{"line":145,"column":12}}]},"21":{"line":169,"type":"cond-expr","locations":[{"start":{"line":169,"column":65},"end":{"line":169,"column":66}},{"start":{"line":169,"column":69},"end":{"line":169,"column":70}}]},"22":{"line":169,"type":"binary-expr","locations":[{"start":{"line":169,"column":24},"end":{"line":169,"column":40}},{"start":{"line":169,"column":44},"end":{"line":169,"column":60}}]},"23":{"line":172,"type":"if","locations":[{"start":{"line":172,"column":12},"end":{"line":172,"column":12}},{"start":{"line":172,"column":12},"end":{"line":172,"column":12}}]},"24":{"line":176,"type":"cond-expr","locations":[{"start":{"line":176,"column":31},"end":{"line":176,"column":43}},{"start":{"line":176,"column":46},"end":{"line":176,"column":58}}]}},"code":["(function () { YUI.add('align-plugin', function (Y, NAME) {",""," /**"," * Provides advanced positioning support for Node via a Plugin"," * for centering and alignment."," * @module align-plugin"," */",""," var OFFSET_WIDTH = 'offsetWidth',"," OFFSET_HEIGHT = 'offsetHeight',"," undefined = undefined;",""," /**"," * Node plugin which can be used to align a node with another node,"," * region, or the viewport."," *"," * @class Plugin.Align"," * @param {Object} User configuration object"," */"," function Align(config) {"," if (config.host) {"," this._host = config.host;"," }"," }",""," Align.prototype = {"," /**"," * Aligns node with a point on another node or region."," * Possible alignment points are:"," * <dl>"," * <dt>tl</dt>"," * <dd>top left</dd>"," * <dt>tr</dt>"," * <dd>top right</dd>"," * <dt>bl</dt>"," * <dd>bottom left</dd>"," * <dt>br</dt>"," * <dd>bottom right</dd>"," * <dt>tc</dt>"," * <dd>top center</dd>"," * <dt>bc</dt>"," * <dd>bottom center</dd>"," * <dt>rc</dt>"," * <dd>right center</dd>"," * <dt>lc</dt>"," * <dd>left center</dd>"," * <dt>cc</dt>"," * <dd>center center</dd>"," * </dl>"," * @method to"," * @param region {String || Node || HTMLElement || Object} The node or"," * region to align with. Defaults to the viewport region."," * @param regionPoint {String} The point of the region to align with."," * @param point {String} The point of the node aligned to the region."," * @param resize {Boolean} Whether or not the node should re-align when"," * the window is resized. Defaults to false."," */"," to: function(region, regionPoint, point, syncOnResize) {"," // cache original args for syncing"," this._syncArgs = Y.Array(arguments);",""," if (region.top === undefined) {"," region = Y.one(region).get('region');"," }",""," if (region) {"," var xy = [region.left, region.top],"," offxy = [region.width, region.height],"," points = Align.points,"," node = this._host,"," NULL = null,"," size = node.getAttrs([OFFSET_HEIGHT, OFFSET_WIDTH]),"," nodeoff = [0 - size[OFFSET_WIDTH], 0 - size[OFFSET_HEIGHT]], // reverse offsets"," regionFn0 = regionPoint ? points[regionPoint.charAt(0)]: NULL,"," regionFn1 = (regionPoint && regionPoint !== 'cc') ? points[regionPoint.charAt(1)] : NULL,"," nodeFn0 = point ? points[point.charAt(0)] : NULL,"," nodeFn1 = (point && point !== 'cc') ? points[point.charAt(1)] : NULL;",""," if (regionFn0) {"," xy = regionFn0(xy, offxy, regionPoint);"," }"," if (regionFn1) {"," xy = regionFn1(xy, offxy, regionPoint);"," }",""," if (nodeFn0) {"," xy = nodeFn0(xy, nodeoff, point);"," }"," if (nodeFn1) {"," xy = nodeFn1(xy, nodeoff, point);"," }",""," if (xy && node) {"," node.setXY(xy);"," }",""," this._resize(syncOnResize);",""," }"," return this;"," },",""," sync: function() {"," this.to.apply(this, this._syncArgs);"," return this;"," },",""," _resize: function(add) {"," var handle = this._handle;"," if (add && !handle) {"," this._handle = Y.on('resize', this._onresize, window, this);"," } else if (!add && handle) {"," handle.detach();"," }",""," },",""," _onresize: function() {"," var self = this;"," setTimeout(function() { // for performance"," self.sync();"," });"," },",""," /**"," * Aligns the center of a node to the center of another node or region."," * @method center"," * @param region {Node || HTMLElement || Object} optional The node or"," * region to align with. Defaults to the viewport region."," * the window is resized. If centering to viewport, this defaults"," * to true, otherwise default is false."," */"," center: function(region, resize) {"," this.to(region, 'cc', 'cc', resize);"," return this;"," },",""," /**"," * Removes the resize handler, if any. This is called automatically"," * when unplugged from the host node."," * @method destroy"," */"," destroy: function() {"," var handle = this._handle;"," if (handle) {"," handle.detach();"," }"," }"," };",""," Align.points = {"," 't': function(xy, off) {"," return xy;"," },",""," 'r': function(xy, off) {"," return [xy[0] + off[0], xy[1]];"," },",""," 'b': function(xy, off) {"," return [xy[0], xy[1] + off[1]];"," },",""," 'l': function(xy, off) {"," return xy;"," },",""," 'c': function(xy, off, point) {"," var axis = (point[0] === 't' || point[0] === 'b') ? 0 : 1,"," ret, val;",""," if (point === 'cc') {"," ret = [xy[0] + off[0] / 2, xy[1] + off[1] / 2];"," } else {"," val = xy[axis] + off[axis] / 2;"," ret = (axis) ? [xy[0], val] : [val, xy[1]];"," }",""," return ret;"," }"," };",""," Align.NAME = 'Align';"," Align.NS = 'align';",""," Align.prototype.constructor = Align;",""," Y.namespace('Plugin');"," Y.Plugin.Align = Align;","","","","}, '3.13.0', {\"requires\": [\"node-screen\", \"node-pluginhost\"]});","","}());"]};
-}
-var __cov_R9lh3EQUN7v9Y4Y8KNqxug = __coverage__['build/align-plugin/align-plugin.js'];
-__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['1']++;YUI.add('align-plugin',function(Y,NAME){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['1']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['2']++;var OFFSET_WIDTH='offsetWidth',OFFSET_HEIGHT='offsetHeight',undefined=undefined;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['3']++;function Align(config){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['2']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['4']++;if(config.host){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['1'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['5']++;this._host=config.host;}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['1'][1]++;}}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['6']++;Align.prototype={to:function(region,regionPoint,point,syncOnResize){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['3']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['7']++;this._syncArgs=Y.Array(arguments);__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['8']++;if(region.top===undefined){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['2'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['9']++;region=Y.one(region).get('region');}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['2'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['10']++;if(region){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['3'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['11']++;var xy=[region.left,region.top],offxy=[region.width,region.height],points=Align.points,node=this._host,NULL=null,size=node.getAttrs([OFFSET_HEIGHT,OFFSET_WIDTH]),nodeoff=[0-size[OFFSET_WIDTH],0-size[OFFSET_HEIGHT]],regionFn0=regionPoint?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['4'][0]++,points[regionPoint.charAt(0)]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['4'][1]++,NULL),regionFn1=(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['6'][0]++,regionPoint)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['6'][1]++,regionPoint!=='cc')?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['5'][0]++,points[regionPoint.charAt(1)]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['5'][1]++,NULL),nodeFn0=point?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['7'][0]++,points[point.charAt(0)]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['7'][1]++,NULL),nodeFn1=(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['9'][0]++,point)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['9'][1]++,point!=='cc')?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['8'][0]++,points[point.charAt(1)]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['8'][1]++,NULL);__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['12']++;if(regionFn0){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['10'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['13']++;xy=regionFn0(xy,offxy,regionPoint);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['10'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['14']++;if(regionFn1){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['11'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['15']++;xy=regionFn1(xy,offxy,regionPoint);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['11'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['16']++;if(nodeFn0){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['12'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['17']++;xy=nodeFn0(xy,nodeoff,point);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['12'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['18']++;if(nodeFn1){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['13'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['19']++;xy=nodeFn1(xy,nodeoff,point);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['13'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['20']++;if((__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['15'][0]++,xy)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['15'][1]++,node)){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['14'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['21']++;node.setXY(xy);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['14'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['22']++;this._resize(syncOnResize);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['3'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['23']++;return this;},sync:function(){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['4']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['24']++;this.to.apply(this,this._syncArgs);__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['25']++;return this;},_resize:function(add){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['5']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['26']++;var handle=this._handle;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['27']++;if((__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['17'][0]++,add)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['17'][1]++,!handle)){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['16'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['28']++;this._handle=Y.on('resize',this._onresize,window,this);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['16'][1]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['29']++;if((__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['19'][0]++,!add)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['19'][1]++,handle)){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['18'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['30']++;handle.detach();}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['18'][1]++;}}},_onresize:function(){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['6']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['31']++;var self=this;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['32']++;setTimeout(function(){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['7']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['33']++;self.sync();});},center:function(region,resize){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['8']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['34']++;this.to(region,'cc','cc',resize);__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['35']++;return this;},destroy:function(){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['9']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['36']++;var handle=this._handle;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['37']++;if(handle){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['20'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['38']++;handle.detach();}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['20'][1]++;}}};__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['39']++;Align.points={'t':function(xy,off){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['10']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['40']++;return xy;},'r':function(xy,off){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['11']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['41']++;return[xy[0]+off[0],xy[1]];},'b':function(xy,off){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['12']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['42']++;return[xy[0],xy[1]+off[1]];},'l':function(xy,off){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['13']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['43']++;return xy;},'c':function(xy,off,point){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['14']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['44']++;var axis=(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['22'][0]++,point[0]==='t')||(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['22'][1]++,point[0]==='b')?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['21'][0]++,0):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['21'][1]++,1),ret,val;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['45']++;if(point==='cc'){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['23'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['46']++;ret=[xy[0]+off[0]/2,xy[1]+off[1]/2];}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['23'][1]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['47']++;val=xy[axis]+off[axis]/2;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['48']++;ret=axis?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['24'][0]++,[xy[0],val]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['24'][1]++,[val,xy[1]]);}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['49']++;return ret;}};__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['50']++;Align.NAME='Align';__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['51']++;Align.NS='align';__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['52']++;Align.prototype.constructor=Align;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['53']++;Y.namespace('Plugin');__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['54']++;Y.Plugin.Align=Align;},'3.13.0',{'requires':['node-screen','node-pluginhost']});
View
200 lib/yuilib/3.13.0/align-plugin/align-plugin-debug.js
@@ -1,200 +0,0 @@
-/*
-YUI 3.13.0 (build 508226d)
-Copyright 2013 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-
-YUI.add('align-plugin', function (Y, NAME) {
-
- /**
- * Provides advanced positioning support for Node via a Plugin
- * for centering and alignment.
- * @module align-plugin
- */
-
- var OFFSET_WIDTH = 'offsetWidth',
- OFFSET_HEIGHT = 'offsetHeight',
- undefined = undefined;
-
- /**
- * Node plugin which can be used to align a node with another node,
- * region, or the viewport.
- *
- * @class Plugin.Align
- * @param {Object} User configuration object
- */
- function Align(config) {
- if (config.host) {
- this._host = config.host;
- }
- }
-
- Align.prototype = {
- /**
- * Aligns node with a point on another node or region.
- * Possible alignment points are:
- * <dl>
- * <dt>tl</dt>
- * <dd>top left</dd>
- * <dt>tr</dt>
- * <dd>top right</dd>
- * <dt>bl</dt>
- * <dd>bottom left</dd>
- * <dt>br</dt>
- * <dd>bottom right</dd>
- * <dt>tc</dt>
- * <dd>top center</dd>
- * <dt>bc</dt>
- * <dd>bottom center</dd>
- * <dt>rc</dt>
- * <dd>right center</dd>
- * <dt>lc</dt>
- * <dd>left center</dd>
- * <dt>cc</dt>
- * <dd>center center</dd>
- * </dl>
- * @method to
- * @param region {String || Node || HTMLElement || Object} The node or
- * region to align with. Defaults to the viewport region.
- * @param regionPoint {String} The point of the region to align with.
- * @param point {String} The point of the node aligned to the region.
- * @param resize {Boolean} Whether or not the node should re-align when
- * the window is resized. Defaults to false.
- */
- to: function(region, regionPoint, point, syncOnResize) {
- // cache original args for syncing
- this._syncArgs = Y.Array(arguments);
-
- if (region.top === undefined) {
- region = Y.one(region).get('region');
- }
-
- if (region) {
- var xy = [region.left, region.top],
- offxy = [region.width, region.height],
- points = Align.points,
- node = this._host,
- NULL = null,
- size = node.getAttrs([OFFSET_HEIGHT, OFFSET_WIDTH]),
- nodeoff = [0 - size[OFFSET_WIDTH], 0 - size[OFFSET_HEIGHT]], // reverse offsets
- regionFn0 = regionPoint ? points[regionPoint.charAt(0)]: NULL,
- regionFn1 = (regionPoint && regionPoint !== 'cc') ? points[regionPoint.charAt(1)] : NULL,
- nodeFn0 = point ? points[point.charAt(0)] : NULL,
- nodeFn1 = (point && point !== 'cc') ? points[point.charAt(1)] : NULL;
-
- if (regionFn0) {
- xy = regionFn0(xy, offxy, regionPoint);
- }
- if (regionFn1) {
- xy = regionFn1(xy, offxy, regionPoint);
- }
-
- if (nodeFn0) {
- xy = nodeFn0(xy, nodeoff, point);
- }
- if (nodeFn1) {
- xy = nodeFn1(xy, nodeoff, point);
- }
-
- if (xy && node) {
- node.setXY(xy);
- }
-
- this._resize(syncOnResize);
-
- }
- return this;
- },
-
- sync: function() {
- this.to.apply(this, this._syncArgs);
- return this;
- },
-
- _resize: function(add) {
- var handle = this._handle;
- if (add && !handle) {
- this._handle = Y.on('resize', this._onresize, window, this);
- } else if (!add && handle) {
- handle.detach();
- }
-
- },
-
- _onresize: function() {
- var self = this;
- setTimeout(function() { // for performance
- self.sync();
- });
- },
-
- /**
- * Aligns the center of a node to the center of another node or region.
- * @method center
- * @param region {Node || HTMLElement || Object} optional The node or
- * region to align with. Defaults to the viewport region.
- * the window is resized. If centering to viewport, this defaults
- * to true, otherwise default is false.
- */
- center: function(region, resize) {
- this.to(region, 'cc', 'cc', resize);
- return this;
- },
-
- /**
- * Removes the resize handler, if any. This is called automatically
- * when unplugged from the host node.
- * @method destroy
- */
- destroy: function() {
- var handle = this._handle;
- if (handle) {
- handle.detach();
- }
- }
- };
-
- Align.points = {
- 't': function(xy, off) {
- return xy;
- },
-
- 'r': function(xy, off) {
- return [xy[0] + off[0], xy[1]];
- },
-
- 'b': function(xy, off) {
- return [xy[0], xy[1] + off[1]];
- },
-
- 'l': function(xy, off) {
- return xy;
- },
-
- 'c': function(xy, off, point) {
- var axis = (point[0] === 't' || point[0] === 'b') ? 0 : 1,
- ret, val;
-
- if (point === 'cc') {
- ret = [xy[0] + off[0] / 2, xy[1] + off[1] / 2];
- } else {
- val = xy[axis] + off[axis] / 2;
- ret = (axis) ? [xy[0], val] : [val, xy[1]];
- }
-
- return ret;
- }
- };
-
- Align.NAME = 'Align';
- Align.NS = 'align';
-
- Align.prototype.constructor = Align;
-
- Y.namespace('Plugin');
- Y.Plugin.Align = Align;
-
-
-
-}, '3.13.0', {"requires": ["node-screen", "node-pluginhost"]});
View
8 lib/yuilib/3.13.0/align-plugin/align-plugin-min.js
@@ -1,8 +0,0 @@
-/*
-YUI 3.13.0 (build 508226d)
-Copyright 2013 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-
-YUI.add("align-plugin",function(e,t){function s(e){e.host&&(this._host=e.host)}var n="offsetWidth",r="offsetHeight",i=i;s.prototype={to:function(t,o,u,a){this._syncArgs=e.Array(arguments),t.top===i&&(t=e.one(t).get("region"));if(t){var f=[t.left,t.top],l=[t.width,t.height],c=s.points,h=this._host,p=null,d=h.getAttrs([r,n]),v=[0-d[n],0-d[r]],m=o?c[o.charAt(0)]:p,g=o&&o!=="cc"?c[o.charAt(1)]:p,y=u?c[u.charAt(0)]:p,b=u&&u!=="cc"?c[u.charAt(1)]:p;m&&(f=m(f,l,o)),g&&(f=g(f,l,o)),y&&(f=y(f,v,u)),b&&(f=b(f,v,u)),f&&h&&h.setXY(f),this._resize(a)}return this},sync:function(){return this.to.apply(this,this._syncArgs),this},_resize:function(t){var n=this._handle;t&&!n?this._handle=e.on("resize",this._onresize,window,this):!t&&n&&n.detach()},_onresize:function(){var e=this;setTimeout(function(){e.sync()})},center:function(e,t){return this.to(e,"cc","cc",t),this},destroy:function(){var e=this._handle;e&&e.detach()}},s.points={t:function(e,t){return e},r:function(e,t){return[e[0]+t[0],e[1]]},b:function(e,t){return[e[0],e[1]+t[1]]},l:function(e,t){return e},c:function(e,t,n){var r=n[0]==="t"||n[0]==="b"?0:1,i,s;return n==="cc"?i=[e[0]+t[0]/2,e[1]+t[1]/2]:(s=e[r]+t[r]/2,i=r?[e[0],s]:[s,e[1]]),i}},s.NAME="Align",s.NS="align",s.prototype.constructor=s,e.namespace("Plugin"),e.Plugin.Align=s},"3.13.0",{requires:["node-screen","node-pluginhost"]});
View
200 lib/yuilib/3.13.0/align-plugin/align-plugin.js
@@ -1,200 +0,0 @@
-/*
-YUI 3.13.0 (build 508226d)
-Copyright 2013 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-
-YUI.add('align-plugin', function (Y, NAME) {
-
- /**
- * Provides advanced positioning support for Node via a Plugin
- * for centering and alignment.
- * @module align-plugin
- */
-
- var OFFSET_WIDTH = 'offsetWidth',
- OFFSET_HEIGHT = 'offsetHeight',
- undefined = undefined;
-
- /**
- * Node plugin which can be used to align a node with another node,
- * region, or the viewport.
- *
- * @class Plugin.Align
- * @param {Object} User configuration object
- */
- function Align(config) {
- if (config.host) {
- this._host = config.host;
- }
- }
-
- Align.prototype = {
- /**
- * Aligns node with a point on another node or region.
- * Possible alignment points are:
- * <dl>
- * <dt>tl</dt>
- * <dd>top left</dd>
- * <dt>tr</dt>
- * <dd>top right</dd>
- * <dt>bl</dt>
- * <dd>bottom left</dd>
- * <dt>br</dt>
- * <dd>bottom right</dd>
- * <dt>tc</dt>
- * <dd>top center</dd>
- * <dt>bc</dt>
- * <dd>bottom center</dd>
- * <dt>rc</dt>
- * <dd>right center</dd>
- * <dt>lc</dt>
- * <dd>left center</dd>
- * <dt>cc</dt>
- * <dd>center center</dd>
- * </dl>
- * @method to
- * @param region {String || Node || HTMLElement || Object} The node or
- * region to align with. Defaults to the viewport region.
- * @param regionPoint {String} The point of the region to align with.
- * @param point {String} The point of the node aligned to the region.
- * @param resize {Boolean} Whether or not the node should re-align when
- * the window is resized. Defaults to false.
- */
- to: function(region, regionPoint, point, syncOnResize) {
- // cache original args for syncing
- this._syncArgs = Y.Array(arguments);
-
- if (region.top === undefined) {
- region = Y.one(region).get('region');
- }
-
- if (region) {
- var xy = [region.left, region.top],
- offxy = [region.width, region.height],
- points = Align.points,
- node = this._host,
- NULL = null,
- size = node.getAttrs([OFFSET_HEIGHT, OFFSET_WIDTH]),
- nodeoff = [0 - size[OFFSET_WIDTH], 0 - size[OFFSET_HEIGHT]], // reverse offsets
- regionFn0 = regionPoint ? points[regionPoint.charAt(0)]: NULL,
- regionFn1 = (regionPoint && regionPoint !== 'cc') ? points[regionPoint.charAt(1)] : NULL,
- nodeFn0 = point ? points[point.charAt(0)] : NULL,
- nodeFn1 = (point && point !== 'cc') ? points[point.charAt(1)] : NULL;
-
- if (regionFn0) {
- xy = regionFn0(xy, offxy, regionPoint);
- }
- if (regionFn1) {
- xy = regionFn1(xy, offxy, regionPoint);
- }
-
- if (nodeFn0) {
- xy = nodeFn0(xy, nodeoff, point);
- }
- if (nodeFn1) {
- xy = nodeFn1(xy, nodeoff, point);
- }
-
- if (xy && node) {
- node.setXY(xy);
- }
-
- this._resize(syncOnResize);
-
- }
- return this;
- },
-
- sync: function() {
- this.to.apply(this, this._syncArgs);
- return this;
- },
-
- _resize: function(add) {
- var handle = this._handle;
- if (add && !handle) {
- this._handle = Y.on('resize', this._onresize, window, this);
- } else if (!add && handle) {
- handle.detach();
- }
-
- },
-
- _onresize: function() {
- var self = this;
- setTimeout(function() { // for performance
- self.sync();
- });
- },
-
- /**
- * Aligns the center of a node to the center of another node or region.
- * @method center
- * @param region {Node || HTMLElement || Object} optional The node or
- * region to align with. Defaults to the viewport region.
- * the window is resized. If centering to viewport, this defaults
- * to true, otherwise default is false.
- */
- center: function(region, resize) {
- this.to(region, 'cc', 'cc', resize);
- return this;
- },
-
- /**
- * Removes the resize handler, if any. This is called automatically
- * when unplugged from the host node.
- * @method destroy
- */
- destroy: function() {
- var handle = this._handle;
- if (handle) {
- handle.detach();
- }
- }
- };
-
- Align.points = {
- 't': function(xy, off) {
- return xy;
- },
-
- 'r': function(xy, off) {
- return [xy[0] + off[0], xy[1]];
- },
-
- 'b': function(xy, off) {
- return [xy[0], xy[1] + off[1]];
- },
-
- 'l': function(xy, off) {
- return xy;
- },
-
- 'c': function(xy, off, point) {
- var axis = (point[0] === 't' || point[0] === 'b') ? 0 : 1,
- ret, val;
-
- if (point === 'cc') {
- ret = [xy[0] + off[0] / 2, xy[1] + off[1] / 2];
- } else {
- val = xy[axis] + off[axis] / 2;
- ret = (axis) ? [xy[0], val] : [val, xy[1]];
- }
-
- return ret;
- }
- };
-
- Align.NAME = 'Align';
- Align.NS = 'align';
-
- Align.prototype.constructor = Align;
-
- Y.namespace('Plugin');
- Y.Plugin.Align = Align;
-
-
-
-}, '3.13.0', {"requires": ["node-screen", "node-pluginhost"]});
View
13 lib/yuilib/3.13.0/anim-base/anim-base-coverage.js
@@ -1,13 +0,0 @@
-/*
-YUI 3.13.0 (build 508226d)
-Copyright 2013 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-
-if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
-if (!__coverage__['build/anim-base/anim-base.js']) {
- __coverage__['build/anim-base/anim-base.js'] = {"path":"build/anim-base/anim-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0],"54":[0,0],"55":[0,0],"56":[0,0],"57":[0,0],"58":[0,0],"59":[0,0],"60":[0,0],"61":[0,0],"62":[0,0],"63":[0,0],"64":[0,0],"65":[0,0],"66":[0,0],"67":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":40}}},"2":{"name":"(anonymous_2)","line":60,"loc":{"start":{"line":60,"column":13},"end":{"line":60,"column":24}}},"3":{"name":"(anonymous_3)","line":85,"loc":{"start":{"line":85,"column":28},"end":{"line":85,"column":50}}},"4":{"name":"(anonymous_4)","line":106,"loc":{"start":{"line":106,"column":17},"end":{"line":106,"column":38}}},"5":{"name":"(anonymous_5)","line":120,"loc":{"start":{"line":120,"column":28},"end":{"line":120,"column":87}}},"6":{"name":"(anonymous_6)","line":147,"loc":{"start":{"line":147,"column":28},"end":{"line":147,"column":48}}},"7":{"name":"(anonymous_7)","line":176,"loc":{"start":{"line":176,"column":20},"end":{"line":176,"column":35}}},"8":{"name":"(anonymous_8)","line":208,"loc":{"start":{"line":208,"column":20},"end":{"line":208,"column":34}}},"9":{"name":"(anonymous_9)","line":281,"loc":{"start":{"line":281,"column":20},"end":{"line":281,"column":31}}},"10":{"name":"(anonymous_10)","line":354,"loc":{"start":{"line":354,"column":17},"end":{"line":354,"column":28}}},"11":{"name":"(anonymous_11)","line":369,"loc":{"start":{"line":369,"column":19},"end":{"line":369,"column":30}}},"12":{"name":"(anonymous_12)","line":384,"loc":{"start":{"line":384,"column":18},"end":{"line":384,"column":29}}},"13":{"name":"(anonymous_13)","line":393,"loc":{"start":{"line":393,"column":25},"end":{"line":393,"column":36}}},"14":{"name":"(anonymous_14)","line":399,"loc":{"start":{"line":399,"column":24},"end":{"line":399,"column":35}}},"15":{"name":"(anonymous_15)","line":410,"loc":{"start":{"line":410,"column":23},"end":{"line":410,"column":34}}},"16":{"name":"(anonymous_16)","line":433,"loc":{"start":{"line":433,"column":13},"end":{"line":433,"column":24}}},"17":{"name":"(anonymous_17)","line":449,"loc":{"start":{"line":449,"column":15},"end":{"line":449,"column":26}}},"18":{"name":"(anonymous_18)","line":462,"loc":{"start":{"line":462,"column":14},"end":{"line":462,"column":31}}},"19":{"name":"(anonymous_19)","line":471,"loc":{"start":{"line":471,"column":16},"end":{"line":471,"column":27}}},"20":{"name":"(anonymous_20)","line":483,"loc":{"start":{"line":483,"column":16},"end":{"line":483,"column":27}}},"21":{"name":"(anonymous_21)","line":497,"loc":{"start":{"line":497,"column":17},"end":{"line":497,"column":28}}},"22":{"name":"(anonymous_22)","line":512,"loc":{"start":{"line":512,"column":14},"end":{"line":512,"column":31}}},"23":{"name":"(anonymous_23)","line":526,"loc":{"start":{"line":526,"column":19},"end":{"line":526,"column":30}}},"24":{"name":"(anonymous_24)","line":542,"loc":{"start":{"line":542,"column":19},"end":{"line":542,"column":43}}},"25":{"name":"(anonymous_25)","line":578,"loc":{"start":{"line":578,"column":20},"end":{"line":578,"column":31}}},"26":{"name":"(anonymous_26)","line":603,"loc":{"start":{"line":603,"column":23},"end":{"line":603,"column":34}}},"27":{"name":"(anonymous_27)","line":614,"loc":{"start":{"line":614,"column":23},"end":{"line":614,"column":43}}},"28":{"name":"(anonymous_28)","line":656,"loc":{"start":{"line":656,"column":20},"end":{"line":656,"column":35}}},"29":{"name":"(anonymous_29)","line":676,"loc":{"start":{"line":676,"column":20},"end":{"line":676,"column":31}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":684,"column":56}},"2":{"start":{"line":23,"column":4},"end":{"line":55,"column":21}},"3":{"start":{"line":57,"column":4},"end":{"line":58,"column":15}},"4":{"start":{"line":60,"column":4},"end":{"line":63,"column":6}},"5":{"start":{"line":61,"column":8},"end":{"line":61,"column":61}},"6":{"start":{"line":62,"column":8},"end":{"line":62,"column":48}},"7":{"start":{"line":65,"column":4},"end":{"line":65,"column":25}},"8":{"start":{"line":67,"column":4},"end":{"line":67,"column":27}},"9":{"start":{"line":75,"column":4},"end":{"line":75,"column":97}},"10":{"start":{"line":83,"column":4},"end":{"line":83,"column":31}},"11":{"start":{"line":85,"column":4},"end":{"line":87,"column":6}},"12":{"start":{"line":86,"column":8},"end":{"line":86,"column":29}},"13":{"start":{"line":96,"column":4},"end":{"line":96,"column":30}},"14":{"start":{"line":104,"column":4},"end":{"line":110,"column":6}},"15":{"start":{"line":107,"column":16},"end":{"line":107,"column":45}},"16":{"start":{"line":112,"column":4},"end":{"line":112,"column":49}},"17":{"start":{"line":120,"column":4},"end":{"line":139,"column":6}},"18":{"start":{"line":121,"column":8},"end":{"line":123,"column":72}},"19":{"start":{"line":125,"column":8},"end":{"line":138,"column":9}},"20":{"start":{"line":126,"column":12},"end":{"line":133,"column":13}},"21":{"start":{"line":127,"column":16},"end":{"line":127,"column":34}},"22":{"start":{"line":128,"column":16},"end":{"line":128,"column":47}},"23":{"start":{"line":129,"column":19},"end":{"line":133,"column":13}},"24":{"start":{"line":130,"column":16},"end":{"line":130,"column":44}},"25":{"start":{"line":131,"column":19},"end":{"line":133,"column":13}},"26":{"start":{"line":132,"column":16},"end":{"line":132,"column":35}},"27":{"start":{"line":134,"column":15},"end":{"line":138,"column":9}},"28":{"start":{"line":135,"column":12},"end":{"line":135,"column":31}},"29":{"start":{"line":136,"column":15},"end":{"line":138,"column":9}},"30":{"start":{"line":137,"column":12},"end":{"line":137,"column":28}},"31":{"start":{"line":147,"column":4},"end":{"line":167,"column":6}},"32":{"start":{"line":148,"column":8},"end":{"line":150,"column":21}},"33":{"start":{"line":152,"column":8},"end":{"line":164,"column":9}},"34":{"start":{"line":153,"column":12},"end":{"line":159,"column":13}},"35":{"start":{"line":154,"column":16},"end":{"line":154,"column":49}},"36":{"start":{"line":155,"column":19},"end":{"line":159,"column":13}},"37":{"start":{"line":156,"column":16},"end":{"line":156,"column":45}},"38":{"start":{"line":157,"column":19},"end":{"line":159,"column":13}},"39":{"start":{"line":158,"column":16},"end":{"line":158,"column":35}},"40":{"start":{"line":160,"column":15},"end":{"line":164,"column":9}},"41":{"start":{"line":161,"column":12},"end":{"line":161,"column":32}},"42":{"start":{"line":162,"column":15},"end":{"line":164,"column":9}},"43":{"start":{"line":163,"column":12},"end":{"line":163,"column":28}},"44":{"start":{"line":166,"column":8},"end":{"line":166,"column":19}},"45":{"start":{"line":169,"column":4},"end":{"line":347,"column":6}},"46":{"start":{"line":177,"column":16},"end":{"line":181,"column":17}},"47":{"start":{"line":178,"column":20},"end":{"line":180,"column":21}},"48":{"start":{"line":179,"column":24},"end":{"line":179,"column":43}},"49":{"start":{"line":183,"column":16},"end":{"line":183,"column":34}},"50":{"start":{"line":184,"column":16},"end":{"line":185,"column":17}},"51":{"start":{"line":186,"column":16},"end":{"line":186,"column":28}},"52":{"start":{"line":209,"column":16},"end":{"line":211,"column":17}},"53":{"start":{"line":210,"column":20},"end":{"line":210,"column":41}},"54":{"start":{"line":282,"column":16},"end":{"line":282,"column":49}},"55":{"start":{"line":354,"column":4},"end":{"line":362,"column":6}},"56":{"start":{"line":355,"column":8},"end":{"line":356,"column":14}},"57":{"start":{"line":357,"column":8},"end":{"line":361,"column":9}},"58":{"start":{"line":358,"column":12},"end":{"line":360,"column":13}},"59":{"start":{"line":359,"column":16},"end":{"line":359,"column":35}},"60":{"start":{"line":369,"column":4},"end":{"line":377,"column":6}},"61":{"start":{"line":370,"column":8},"end":{"line":374,"column":9}},"62":{"start":{"line":371,"column":12},"end":{"line":373,"column":13}},"63":{"start":{"line":372,"column":16},"end":{"line":372,"column":36}},"64":{"start":{"line":376,"column":8},"end":{"line":376,"column":28}},"65":{"start":{"line":384,"column":4},"end":{"line":391,"column":6}},"66":{"start":{"line":385,"column":8},"end":{"line":389,"column":9}},"67":{"start":{"line":386,"column":12},"end":{"line":388,"column":13}},"68":{"start":{"line":387,"column":16},"end":{"line":387,"column":35}},"69":{"start":{"line":390,"column":8},"end":{"line":390,"column":28}},"70":{"start":{"line":393,"column":4},"end":{"line":397,"column":6}},"71":{"start":{"line":394,"column":8},"end":{"line":396,"column":9}},"72":{"start":{"line":395,"column":12},"end":{"line":395,"column":73}},"73":{"start":{"line":399,"column":4},"end":{"line":402,"column":6}},"74":{"start":{"line":400,"column":8},"end":{"line":400,"column":30}},"75":{"start":{"line":401,"column":8},"end":{"line":401,"column":19}},"76":{"start":{"line":410,"column":4},"end":{"line":423,"column":6}},"77":{"start":{"line":411,"column":8},"end":{"line":412,"column":17}},"78":{"start":{"line":413,"column":8},"end":{"line":418,"column":9}},"79":{"start":{"line":414,"column":12},"end":{"line":417,"column":13}},"80":{"start":{"line":415,"column":16},"end":{"line":415,"column":29}},"81":{"start":{"line":416,"column":16},"end":{"line":416,"column":43}},"82":{"start":{"line":420,"column":8},"end":{"line":422,"column":9}},"83":{"start":{"line":421,"column":12},"end":{"line":421,"column":32}},"84":{"start":{"line":425,"column":4},"end":{"line":425,"column":71}},"85":{"start":{"line":427,"column":4},"end":{"line":679,"column":6}},"86":{"start":{"line":434,"column":12},"end":{"line":438,"column":13}},"87":{"start":{"line":435,"column":16},"end":{"line":435,"column":31}},"88":{"start":{"line":436,"column":19},"end":{"line":438,"column":13}},"89":{"start":{"line":437,"column":16},"end":{"line":437,"column":30}},"90":{"start":{"line":439,"column":12},"end":{"line":439,"column":24}},"91":{"start":{"line":450,"column":12},"end":{"line":452,"column":13}},"92":{"start":{"line":451,"column":16},"end":{"line":451,"column":30}},"93":{"start":{"line":453,"column":12},"end":{"line":453,"column":24}},"94":{"start":{"line":463,"column":12},"end":{"line":465,"column":13}},"95":{"start":{"line":464,"column":16},"end":{"line":464,"column":34}},"96":{"start":{"line":466,"column":12},"end":{"line":466,"column":24}},"97":{"start":{"line":472,"column":12},"end":{"line":472,"column":71}},"98":{"start":{"line":473,"column":12},"end":{"line":473,"column":35}},"99":{"start":{"line":474,"column":12},"end":{"line":476,"column":13}},"100":{"start":{"line":475,"column":16},"end":{"line":475,"column":37}},"101":{"start":{"line":477,"column":12},"end":{"line":477,"column":43}},"102":{"start":{"line":478,"column":12},"end":{"line":478,"column":33}},"103":{"start":{"line":480,"column":12},"end":{"line":480,"column":29}},"104":{"start":{"line":484,"column":12},"end":{"line":484,"column":40}},"105":{"start":{"line":485,"column":12},"end":{"line":485,"column":36}},"106":{"start":{"line":486,"column":12},"end":{"line":486,"column":43}},"107":{"start":{"line":494,"column":12},"end":{"line":494,"column":31}},"108":{"start":{"line":498,"column":12},"end":{"line":498,"column":37}},"109":{"start":{"line":499,"column":12},"end":{"line":499,"column":43}},"110":{"start":{"line":500,"column":12},"end":{"line":500,"column":71}},"111":{"start":{"line":501,"column":12},"end":{"line":501,"column":33}},"112":{"start":{"line":509,"column":12},"end":{"line":509,"column":32}},"113":{"start":{"line":513,"column":12},"end":{"line":513,"column":55}},"114":{"start":{"line":514,"column":12},"end":{"line":516,"column":13}},"115":{"start":{"line":515,"column":16},"end":{"line":515,"column":70}},"116":{"start":{"line":518,"column":12},"end":{"line":518,"column":40}},"117":{"start":{"line":519,"column":12},"end":{"line":519,"column":39}},"118":{"start":{"line":520,"column":12},"end":{"line":520,"column":37}},"119":{"start":{"line":522,"column":12},"end":{"line":522,"column":43}},"120":{"start":{"line":523,"column":12},"end":{"line":523,"column":62}},"121":{"start":{"line":527,"column":12},"end":{"line":530,"column":32}},"122":{"start":{"line":532,"column":12},"end":{"line":532,"column":42}},"123":{"start":{"line":533,"column":12},"end":{"line":533,"column":36}},"124":{"start":{"line":534,"column":12},"end":{"line":534,"column":39}},"125":{"start":{"line":536,"column":12},"end":{"line":536,"column":29}},"126":{"start":{"line":537,"column":12},"end":{"line":539,"column":13}},"127":{"start":{"line":538,"column":16},"end":{"line":538,"column":34}},"128":{"start":{"line":543,"column":12},"end":{"line":550,"column":18}},"129":{"start":{"line":552,"column":12},"end":{"line":554,"column":13}},"130":{"start":{"line":553,"column":16},"end":{"line":553,"column":28}},"131":{"start":{"line":556,"column":12},"end":{"line":559,"column":13}},"132":{"start":{"line":557,"column":16},"end":{"line":557,"column":26}},"133":{"start":{"line":558,"column":16},"end":{"line":558,"column":30}},"134":{"start":{"line":561,"column":12},"end":{"line":573,"column":13}},"135":{"start":{"line":562,"column":16},"end":{"line":572,"column":17}},"136":{"start":{"line":563,"column":20},"end":{"line":563,"column":40}},"137":{"start":{"line":564,"column":20},"end":{"line":565,"column":70}},"138":{"start":{"line":567,"column":20},"end":{"line":571,"column":21}},"139":{"start":{"line":568,"column":24},"end":{"line":568,"column":100}},"140":{"start":{"line":570,"column":24},"end":{"line":570,"column":108}},"141":{"start":{"line":579,"column":12},"end":{"line":580,"column":54}},"142":{"start":{"line":582,"column":12},"end":{"line":582,"column":27}},"143":{"start":{"line":583,"column":12},"end":{"line":597,"column":13}},"144":{"start":{"line":584,"column":16},"end":{"line":586,"column":17}},"145":{"start":{"line":585,"column":20},"end":{"line":585,"column":58}},"146":{"start":{"line":593,"column":16},"end":{"line":593,"column":39}},"147":{"start":{"line":595,"column":16},"end":{"line":595,"column":30}},"148":{"start":{"line":596,"column":16},"end":{"line":596,"column":28}},"149":{"start":{"line":599,"column":12},"end":{"line":599,"column":46}},"150":{"start":{"line":600,"column":12},"end":{"line":600,"column":50}},"151":{"start":{"line":604,"column":12},"end":{"line":612,"column":33}},"152":{"start":{"line":614,"column":12},"end":{"line":649,"column":21}},"153":{"start":{"line":615,"column":16},"end":{"line":617,"column":17}},"154":{"start":{"line":616,"column":20},"end":{"line":616,"column":47}},"155":{"start":{"line":619,"column":16},"end":{"line":619,"column":35}},"156":{"start":{"line":620,"column":16},"end":{"line":625,"column":17}},"157":{"start":{"line":621,"column":20},"end":{"line":622,"column":97}},"158":{"start":{"line":623,"column":23},"end":{"line":625,"column":17}},"159":{"start":{"line":624,"column":20},"end":{"line":624,"column":51}},"160":{"start":{"line":627,"column":16},"end":{"line":628,"column":52}},"161":{"start":{"line":630,"column":16},"end":{"line":630,"column":49}},"162":{"start":{"line":631,"column":16},"end":{"line":631,"column":41}},"163":{"start":{"line":632,"column":16},"end":{"line":632,"column":61}},"164":{"start":{"line":634,"column":16},"end":{"line":636,"column":17}},"165":{"start":{"line":635,"column":20},"end":{"line":635,"column":47}},"166":{"start":{"line":638,"column":16},"end":{"line":641,"column":17}},"167":{"start":{"line":639,"column":20},"end":{"line":639,"column":81}},"168":{"start":{"line":640,"column":20},"end":{"line":640,"column":27}},"169":{"start":{"line":643,"column":16},"end":{"line":647,"column":18}},"170":{"start":{"line":651,"column":12},"end":{"line":651,"column":37}},"171":{"start":{"line":657,"column":12},"end":{"line":661,"column":25}},"172":{"start":{"line":663,"column":12},"end":{"line":671,"column":13}},"173":{"start":{"line":664,"column":16},"end":{"line":664,"column":53}},"174":{"start":{"line":665,"column":16},"end":{"line":670,"column":17}},"175":{"start":{"line":666,"column":20},"end":{"line":666,"column":38}},"176":{"start":{"line":667,"column":20},"end":{"line":667,"column":35}},"177":{"start":{"line":669,"column":20},"end":{"line":669,"column":28}},"178":{"start":{"line":673,"column":12},"end":{"line":673,"column":23}},"179":{"start":{"line":677,"column":12},"end":{"line":677,"column":52}},"180":{"start":{"line":681,"column":4},"end":{"line":681,"column":36}}},"branchMap":{"1":{"line":125,"type":"if","locations":[{"start":{"line":125,"column":8},"end":{"line":125,"column":8}},{"start":{"line":125,"column":8},"end":{"line":125,"column":8}}]},"2":{"line":126,"type":"if","locations":[{"start":{"line":126,"column":12},"end":{"line":126,"column":12}},{"start":{"line":126,"column":12},"end":{"line":126,"column":12}}]},"3":{"line":126,"type":"binary-expr","locations":[{"start":{"line":126,"column":16},"end":{"line":126,"column":34}},{"start":{"line":126,"column":39},"end":{"line":126,"column":59}},{"start":{"line":126,"column":63},"end":{"line":126,"column":89}}]},"4":{"line":127,"type":"binary-expr","locations":[{"start":{"line":127,"column":23},"end":{"line":127,"column":27}},{"start":{"line":127,"column":31},"end":{"line":127,"column":33}}]},"5":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":19},"end":{"line":129,"column":19}},{"start":{"line":129,"column":19},"end":{"line":129,"column":19}}]},"6":{"line":129,"type":"binary-expr","locations":[{"start":{"line":129,"column":23},"end":{"line":129,"column":46}},{"start":{"line":129,"column":50},"end":{"line":129,"column":75}}]},"7":{"line":131,"type":"if","locations":[{"start":{"line":131,"column":19},"end":{"line":131,"column":19}},{"start":{"line":131,"column":19},"end":{"line":131,"column":19}}]},"8":{"line":134,"type":"if","locations":[{"start":{"line":134,"column":15},"end":{"line":134,"column":15}},{"start":{"line":134,"column":15},"end":{"line":134,"column":15}}]},"9":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":15},"end":{"line":136,"column":15}},{"start":{"line":136,"column":15},"end":{"line":136,"column":15}}]},"10":{"line":152,"type":"if","locations":[{"start":{"line":152,"column":8},"end":{"line":152,"column":8}},{"start":{"line":152,"column":8},"end":{"line":152,"column":8}}]},"11":{"line":153,"type":"if","locations":[{"start":{"line":153,"column":12},"end":{"line":153,"column":12}},{"start":{"line":153,"column":12},"end":{"line":153,"column":12}}]},"12":{"line":153,"type":"binary-expr","locations":[{"start":{"line":153,"column":16},"end":{"line":153,"column":34}},{"start":{"line":153,"column":39},"end":{"line":153,"column":59}},{"start":{"line":153,"column":63},"end":{"line":153,"column":89}}]},"13":{"line":155,"type":"if","locations":[{"start":{"line":155,"column":19},"end":{"line":155,"column":19}},{"start":{"line":155,"column":19},"end":{"line":155,"column":19}}]},"14":{"line":155,"type":"binary-expr","locations":[{"start":{"line":155,"column":23},"end":{"line":155,"column":46}},{"start":{"line":155,"column":50},"end":{"line":155,"column":75}}]},"15":{"line":157,"type":"if","locations":[{"start":{"line":157,"column":19},"end":{"line":157,"column":19}},{"start":{"line":157,"column":19},"end":{"line":157,"column":19}}]},"16":{"line":160,"type":"if","locations":[{"start":{"line":160,"column":15},"end":{"line":160,"column":15}},{"start":{"line":160,"column":15},"end":{"line":160,"column":15}}]},"17":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":15},"end":{"line":162,"column":15}},{"start":{"line":162,"column":15},"end":{"line":162,"column":15}}]},"18":{"line":177,"type":"if","locations":[{"start":{"line":177,"column":16},"end":{"line":177,"column":16}},{"start":{"line":177,"column":16},"end":{"line":177,"column":16}}]},"19":{"line":178,"type":"if","locations":[{"start":{"line":178,"column":20},"end":{"line":178,"column":20}},{"start":{"line":178,"column":20},"end":{"line":178,"column":20}}]},"20":{"line":178,"type":"binary-expr","locations":[{"start":{"line":178,"column":24},"end":{"line":178,"column":48}},{"start":{"line":178,"column":52},"end":{"line":178,"column":65}}]},"21":{"line":184,"type":"if","locations":[{"start":{"line":184,"column":16},"end":{"line":184,"column":16}},{"start":{"line":184,"column":16},"end":{"line":184,"column":16}}]},"22":{"line":209,"type":"if","locations":[{"start":{"line":209,"column":16},"end":{"line":209,"column":16}},{"start":{"line":209,"column":16},"end":{"line":209,"column":16}}]},"23":{"line":209,"type":"binary-expr","locations":[{"start":{"line":209,"column":20},"end":{"line":209,"column":43}},{"start":{"line":209,"column":47},"end":{"line":209,"column":55}}]},"24":{"line":358,"type":"if","locations":[{"start":{"line":358,"column":12},"end":{"line":358,"column":12}},{"start":{"line":358,"column":12},"end":{"line":358,"column":12}}]},"25":{"line":371,"type":"if","locations":[{"start":{"line":371,"column":12},"end":{"line":371,"column":12}},{"start":{"line":371,"column":12},"end":{"line":371,"column":12}}]},"26":{"line":386,"type":"if","locations":[{"start":{"line":386,"column":12},"end":{"line":386,"column":12}},{"start":{"line":386,"column":12},"end":{"line":386,"column":12}}]},"27":{"line":394,"type":"if","locations":[{"start":{"line":394,"column":8},"end":{"line":394,"column":8}},{"start":{"line":394,"column":8},"end":{"line":394,"column":8}}]},"28":{"line":414,"type":"if","locations":[{"start":{"line":414,"column":12},"end":{"line":414,"column":12}},{"start":{"line":414,"column":12},"end":{"line":414,"column":12}}]},"29":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":8},"end":{"line":420,"column":8}},{"start":{"line":420,"column":8},"end":{"line":420,"column":8}}]},"30":{"line":434,"type":"if","locations":[{"start":{"line":434,"column":12},"end":{"line":434,"column":12}},{"start":{"line":434,"column":12},"end":{"line":434,"column":12}}]},"31":{"line":436,"type":"if","locations":[{"start":{"line":436,"column":19},"end":{"line":436,"column":19}},{"start":{"line":436,"column":19},"end":{"line":436,"column":19}}]},"32":{"line":450,"type":"if","locations":[{"start":{"line":450,"column":12},"end":{"line":450,"column":12}},{"start":{"line":450,"column":12},"end":{"line":450,"column":12}}]},"33":{"line":463,"type":"if","locations":[{"start":{"line":463,"column":12},"end":{"line":463,"column":12}},{"start":{"line":463,"column":12},"end":{"line":463,"column":12}}]},"34":{"line":463,"type":"binary-expr","locations":[{"start":{"line":463,"column":16},"end":{"line":463,"column":33}},{"start":{"line":463,"column":37},"end":{"line":463,"column":53}}]},"35":{"line":474,"type":"if","locations":[{"start":{"line":474,"column":12},"end":{"line":474,"column":12}},{"start":{"line":474,"column":12},"end":{"line":474,"column":12}}]},"36":{"line":514,"type":"if","locations":[{"start":{"line":514,"column":12},"end":{"line":514,"column":12}},{"start":{"line":514,"column":12},"end":{"line":514,"column":12}}]},"37":{"line":537,"type":"if","locations":[{"start":{"line":537,"column":12},"end":{"line":537,"column":12}},{"start":{"line":537,"column":12},"end":{"line":537,"column":12}}]},"38":{"line":552,"type":"if","locations":[{"start":{"line":552,"column":12},"end":{"line":552,"column":12}},{"start":{"line":552,"column":12},"end":{"line":552,"column":12}}]},"39":{"line":556,"type":"if","locations":[{"start":{"line":556,"column":12},"end":{"line":556,"column":12}},{"start":{"line":556,"column":12},"end":{"line":556,"column":12}}]},"40":{"line":562,"type":"if","locations":[{"start":{"line":562,"column":16},"end":{"line":562,"column":16}},{"start":{"line":562,"column":16},"end":{"line":562,"column":16}}]},"41":{"line":564,"type":"cond-expr","locations":[{"start":{"line":565,"column":28},"end":{"line":565,"column":45}},{"start":{"line":565,"column":48},"end":{"line":565,"column":69}}]},"42":{"line":564,"type":"binary-expr","locations":[{"start":{"line":564,"column":30},"end":{"line":564,"column":45}},{"start":{"line":564,"column":49},"end":{"line":564,"column":71}}]},"43":{"line":567,"type":"if","locations":[{"start":{"line":567,"column":20},"end":{"line":567,"column":20}},{"start":{"line":567,"column":20},"end":{"line":567,"column":20}}]},"44":{"line":583,"type":"if","locations":[{"start":{"line":583,"column":12},"end":{"line":583,"column":12}},{"start":{"line":583,"column":12},"end":{"line":583,"column":12}}]},"45":{"line":583,"type":"binary-expr","locations":[{"start":{"line":583,"column":16},"end":{"line":583,"column":35}},{"start":{"line":583,"column":39},"end":{"line":583,"column":55}}]},"46":{"line":584,"type":"if","locations":[{"start":{"line":584,"column":16},"end":{"line":584,"column":16}},{"start":{"line":584,"column":16},"end":{"line":584,"column":16}}]},"47":{"line":604,"type":"binary-expr","locations":[{"start":{"line":604,"column":23},"end":{"line":604,"column":39}},{"start":{"line":604,"column":43},"end":{"line":604,"column":45}}]},"48":{"line":605,"type":"binary-expr","locations":[{"start":{"line":605,"column":21},"end":{"line":605,"column":35}},{"start":{"line":605,"column":39},"end":{"line":605,"column":41}}]},"49":{"line":615,"type":"if","locations":[{"start":{"line":615,"column":16},"end":{"line":615,"column":16}},{"start":{"line":615,"column":16},"end":{"line":615,"column":16}}]},"50":{"line":620,"type":"if","locations":[{"start":{"line":620,"column":16},"end":{"line":620,"column":16}},{"start":{"line":620,"column":16},"end":{"line":620,"column":16}}]},"51":{"line":621,"type":"cond-expr","locations":[{"start":{"line":622,"column":28},"end":{"line":622,"column":60}},{"start":{"line":622,"column":63},"end":{"line":622,"column":96}}]},"52":{"line":621,"type":"binary-expr","locations":[{"start":{"line":621,"column":29},"end":{"line":621,"column":47}},{"start":{"line":621,"column":51},"end":{"line":621,"column":76}}]},"53":{"line":623,"type":"if","locations":[{"start":{"line":623,"column":23},"end":{"line":623,"column":23}},{"start":{"line":623,"column":23},"end":{"line":623,"column":23}}]},"54":{"line":630,"type":"cond-expr","locations":[{"start":{"line":630,"column":32},"end":{"line":630,"column":40}},{"start":{"line":630,"column":43},"end":{"line":630,"column":48}}]},"55":{"line":631,"type":"cond-expr","locations":[{"start":{"line":631,"column":28},"end":{"line":631,"column":34}},{"start":{"line":631,"column":37},"end":{"line":631,"column":40}}]},"56":{"line":632,"type":"cond-expr","locations":[{"start":{"line":632,"column":29},"end":{"line":632,"column":35}},{"start":{"line":632,"column":38},"end":{"line":632,"column":60}}]},"57":{"line":632,"type":"cond-expr","locations":[{"start":{"line":632,"column":47},"end":{"line":632,"column":55}},{"start":{"line":632,"column":58},"end":{"line":632,"column":60}}]},"58":{"line":634,"type":"if","locations":[{"start":{"line":634,"column":16},"end":{"line":634,"column":16}},{"start":{"line":634,"column":16},"end":{"line":634,"column":16}}]},"59":{"line":634,"type":"binary-expr","locations":[{"start":{"line":634,"column":20},"end":{"line":634,"column":25}},{"start":{"line":634,"column":29},"end":{"line":634,"column":62}}]},"60":{"line":638,"type":"if","locations":[{"start":{"line":638,"column":16},"end":{"line":638,"column":16}},{"start":{"line":638,"column":16},"end":{"line":638,"column":16}}]},"61":{"line":638,"type":"binary-expr","locations":[{"start":{"line":638,"column":20},"end":{"line":638,"column":26}},{"start":{"line":638,"column":30},"end":{"line":638,"column":34}}]},"62":{"line":644,"type":"cond-expr","locations":[{"start":{"line":644,"column":51},"end":{"line":644,"column":65}},{"start":{"line":644,"column":68},"end":{"line":644,"column":73}}]},"63":{"line":659,"type":"cond-expr","locations":[{"start":{"line":659,"column":42},"end":{"line":659,"column":48}},{"start":{"line":659,"column":50},"end":{"line":659,"column":56}}]},"64":{"line":660,"type":"cond-expr","locations":[{"start":{"line":660,"column":42},"end":{"line":660,"column":48}},{"start":{"line":660,"column":50},"end":{"line":660,"column":56}}]},"65":{"line":663,"type":"if","locations":[{"start":{"line":663,"column":12},"end":{"line":663,"column":12}},{"start":{"line":663,"column":12},"end":{"line":663,"column":12}}]},"66":{"line":665,"type":"if","locations":[{"start":{"line":665,"column":16},"end":{"line":665,"column":16}},{"start":{"line":665,"column":16},"end":{"line":665,"column":16}}]},"67":{"line":665,"type":"binary-expr","locations":[{"start":{"line":665,"column":20},"end":{"line":665,"column":43}},{"start":{"line":665,"column":47},"end":{"line":665,"column":67}}]}},"code":["(function () { YUI.add('anim-base', function (Y, NAME) {","","/**","* The Animation Utility provides an API for creating advanced transitions.","* @module anim","*/","","/**","* Provides the base Anim class, for animating numeric properties.","*","* @module anim","* @submodule anim-base","*/",""," /**"," * A class for constructing animation instances."," * @class Anim"," * @for Anim"," * @constructor"," * @extends Base"," */",""," var RUNNING = 'running',"," START_TIME = 'startTime',"," ELAPSED_TIME = 'elapsedTime',"," /**"," * @for Anim"," * @event start"," * @description fires when an animation begins."," * @param {Event} ev The start event."," * @type Event.Custom"," */"," START = 'start',",""," /**"," * @event tween"," * @description fires every frame of the animation."," * @param {Event} ev The tween event."," * @type Event.Custom"," */"," TWEEN = 'tween',",""," /**"," * @event end"," * @description fires after the animation completes."," * @param {Event} ev The end event."," * @type Event.Custom"," */"," END = 'end',"," NODE = 'node',"," PAUSED = 'paused',"," REVERSE = 'reverse', // TODO: cleanup"," ITERATION_COUNT = 'iterationCount',",""," NUM = Number;",""," var _running = {},"," _timer;",""," Y.Anim = function() {"," Y.Anim.superclass.constructor.apply(this, arguments);"," Y.Anim._instances[Y.stamp(this)] = this;"," };",""," Y.Anim.NAME = 'anim';",""," Y.Anim._instances = {};",""," /**"," * Regex of properties that should use the default unit."," *"," * @property RE_DEFAULT_UNIT"," * @static"," */"," Y.Anim.RE_DEFAULT_UNIT = /^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i;",""," /**"," * The default unit to use with properties that pass the RE_DEFAULT_UNIT test."," *"," * @property DEFAULT_UNIT"," * @static"," */"," Y.Anim.DEFAULT_UNIT = 'px';",""," Y.Anim.DEFAULT_EASING = function (t, b, c, d) {"," return c * t / d + b; // linear easing"," };",""," /**"," * Time in milliseconds passed to setInterval for frame processing"," *"," * @property intervalTime"," * @default 20"," * @static"," */"," Y.Anim._intervalTime = 20;",""," /**"," * Bucket for custom getters and setters"," *"," * @property behaviors"," * @static"," */"," Y.Anim.behaviors = {"," left: {"," get: function(anim, attr) {"," return anim._getOffset(attr);"," }"," }"," };",""," Y.Anim.behaviors.top = Y.Anim.behaviors.left;",""," /**"," * The default setter to use when setting object properties."," *"," * @property DEFAULT_SETTER"," * @static"," */"," Y.Anim.DEFAULT_SETTER = function(anim, att, from, to, elapsed, duration, fn, unit) {"," var node = anim._node,"," domNode = node._node,"," val = fn(elapsed, NUM(from), NUM(to) - NUM(from), duration);",""," if (domNode) {"," if ('style' in domNode && (att in domNode.style || att in Y.DOM.CUSTOM_STYLES)) {"," unit = unit || '';"," node.setStyle(att, val + unit);"," } else if ('attributes' in domNode && att in domNode.attributes) {"," node.setAttribute(att, val);"," } else if (att in domNode) {"," domNode[att] = val;"," }"," } else if (node.set) {"," node.set(att, val);"," } else if (att in node) {"," node[att] = val;"," }"," };",""," /**"," * The default getter to use when getting object properties."," *"," * @property DEFAULT_GETTER"," * @static"," */"," Y.Anim.DEFAULT_GETTER = function(anim, att) {"," var node = anim._node,"," domNode = node._node,"," val = '';",""," if (domNode) {"," if ('style' in domNode && (att in domNode.style || att in Y.DOM.CUSTOM_STYLES)) {"," val = node.getComputedStyle(att);"," } else if ('attributes' in domNode && att in domNode.attributes) {"," val = node.getAttribute(att);"," } else if (att in domNode) {"," val = domNode[att];"," }"," } else if (node.get) {"," val = node.get(att);"," } else if (att in node) {"," val = node[att];"," }",""," return val;"," };",""," Y.Anim.ATTRS = {"," /**"," * The object to be animated."," * @attribute node"," * @type Node"," */"," node: {"," setter: function(node) {"," if (node) {"," if (typeof node === 'string' || node.nodeType) {"," node = Y.one(node);"," }"," }",""," this._node = node;"," if (!node) {"," }"," return node;"," }"," },",""," /**"," * The length of the animation. Defaults to \"1\" (second)."," * @attribute duration"," * @type NUM"," */"," duration: {"," value: 1"," },",""," /**"," * The method that will provide values to the attribute(s) during the animation."," * Defaults to \"Easing.easeNone\"."," * @attribute easing"," * @type Function"," */"," easing: {"," value: Y.Anim.DEFAULT_EASING,",""," setter: function(val) {"," if (typeof val === 'string' && Y.Easing) {"," return Y.Easing[val];"," }"," }"," },",""," /**"," * The starting values for the animated properties."," *"," * Fields may be strings, numbers, or functions."," * If a function is used, the return value becomes the from value."," * If no from value is specified, the DEFAULT_GETTER will be used."," * Supports any unit, provided it matches the \"to\" (or default)"," * unit (e.g. `{width: '10em', color: 'rgb(0, 0, 0)', borderColor: '#ccc'}`)."," *"," * If using the default ('px' for length-based units), the unit may be omitted"," * (e.g. `{width: 100}, borderColor: 'ccc'}`, which defaults to pixels"," * and hex, respectively)."," *"," * @attribute from"," * @type Object"," */"," from: {},",""," /**"," * The ending values for the animated properties."," *"," * Fields may be strings, numbers, or functions."," * Supports any unit, provided it matches the \"from\" (or default)"," * unit (e.g. `{width: '50%', color: 'red', borderColor: '#ccc'}`)."," *"," * If using the default ('px' for length-based units), the unit may be omitted"," * (e.g. `{width: 100, borderColor: 'ccc'}`, which defaults to pixels"," * and hex, respectively)."," *"," * @attribute to"," * @type Object"," */"," to: {},",""," /**"," * Date stamp for the first frame of the animation."," * @attribute startTime"," * @type Int"," * @default 0"," * @readOnly"," */"," startTime: {"," value: 0,"," readOnly: true"," },",""," /**"," * Current time the animation has been running."," * @attribute elapsedTime"," * @type Int"," * @default 0"," * @readOnly"," */"," elapsedTime: {"," value: 0,"," readOnly: true"," },",""," /**"," * Whether or not the animation is currently running."," * @attribute running"," * @type Boolean"," * @default false"," * @readOnly"," */"," running: {"," getter: function() {"," return !!_running[Y.stamp(this)];"," },"," value: false,"," readOnly: true"," },",""," /**"," * The number of times the animation should run"," * @attribute iterations"," * @type Int"," * @default 1"," */"," iterations: {"," value: 1"," },",""," /**"," * The number of iterations that have occurred."," * Resets when an animation ends (reaches iteration count or stop() called)."," * @attribute iterationCount"," * @type Int"," * @default 0"," * @readOnly"," */"," iterationCount: {"," value: 0,"," readOnly: true"," },",""," /**"," * How iterations of the animation should behave."," * Possible values are \"normal\" and \"alternate\"."," * Normal will repeat the animation, alternate will reverse on every other pass."," *"," * @attribute direction"," * @type String"," * @default \"normal\""," */"," direction: {"," value: 'normal' // | alternate (fwd on odd, rev on even per spec)"," },",""," /**"," * Whether or not the animation is currently paused."," * @attribute paused"," * @type Boolean"," * @default false"," * @readOnly"," */"," paused: {"," readOnly: true,"," value: false"," },",""," /**"," * If true, animation begins from last frame"," * @attribute reverse"," * @type Boolean"," * @default false"," */"," reverse: {"," value: false"," }","",""," };",""," /**"," * Runs all animation instances."," * @method run"," * @static"," */"," Y.Anim.run = function() {"," var instances = Y.Anim._instances,"," i;"," for (i in instances) {"," if (instances[i].run) {"," instances[i].run();"," }"," }"," };",""," /**"," * Pauses all animation instances."," * @method pause"," * @static"," */"," Y.Anim.pause = function() {"," for (var i in _running) { // stop timer if nothing running"," if (_running[i].pause) {"," _running[i].pause();"," }"," }",""," Y.Anim._stopTimer();"," };",""," /**"," * Stops all animation instances."," * @method stop"," * @static"," */"," Y.Anim.stop = function() {"," for (var i in _running) { // stop timer if nothing running"," if (_running[i].stop) {"," _running[i].stop();"," }"," }"," Y.Anim._stopTimer();"," };",""," Y.Anim._startTimer = function() {"," if (!_timer) {"," _timer = setInterval(Y.Anim._runFrame, Y.Anim._intervalTime);"," }"," };",""," Y.Anim._stopTimer = function() {"," clearInterval(_timer);"," _timer = 0;"," };",""," /**"," * Called per Interval to handle each animation frame."," * @method _runFrame"," * @private"," * @static"," */"," Y.Anim._runFrame = function() {"," var done = true,"," anim;"," for (anim in _running) {"," if (_running[anim]._runFrame) {"," done = false;"," _running[anim]._runFrame();"," }"," }",""," if (done) {"," Y.Anim._stopTimer();"," }"," };",""," Y.Anim.RE_UNITS = /^(-?\\d*\\.?\\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;",""," var proto = {"," /**"," * Starts or resumes an animation."," * @method run"," * @chainable"," */"," run: function() {"," if (this.get(PAUSED)) {"," this._resume();"," } else if (!this.get(RUNNING)) {"," this._start();"," }"," return this;"," },",""," /**"," * Pauses the animation and"," * freezes it in its current state and time."," * Calling run() will continue where it left off."," * @method pause"," * @chainable"," */"," pause: function() {"," if (this.get(RUNNING)) {"," this._pause();"," }"," return this;"," },",""," /**"," * Stops the animation and resets its time."," * @method stop"," * @param {Boolean} finish If true, the animation will move to the last frame"," * @chainable"," */"," stop: function(finish) {"," if (this.get(RUNNING) || this.get(PAUSED)) {"," this._end(finish);"," }"," return this;"," },",""," _added: false,",""," _start: function() {"," this._set(START_TIME, new Date() - this.get(ELAPSED_TIME));"," this._actualFrames = 0;"," if (!this.get(PAUSED)) {"," this._initAnimAttr();"," }"," _running[Y.stamp(this)] = this;"," Y.Anim._startTimer();",""," this.fire(START);"," },",""," _pause: function() {"," this._set(START_TIME, null);"," this._set(PAUSED, true);"," delete _running[Y.stamp(this)];",""," /**"," * @event pause"," * @description fires when an animation is paused."," * @param {Event} ev The pause event."," * @type Event.Custom"," */"," this.fire('pause');"," },",""," _resume: function() {"," this._set(PAUSED, false);"," _running[Y.stamp(this)] = this;"," this._set(START_TIME, new Date() - this.get(ELAPSED_TIME));"," Y.Anim._startTimer();",""," /**"," * @event resume"," * @description fires when an animation is resumed (run from pause)."," * @param {Event} ev The pause event."," * @type Event.Custom"," */"," this.fire('resume');"," },",""," _end: function(finish) {"," var duration = this.get('duration') * 1000;"," if (finish) { // jump to last frame"," this._runAttrs(duration, duration, this.get(REVERSE));"," }",""," this._set(START_TIME, null);"," this._set(ELAPSED_TIME, 0);"," this._set(PAUSED, false);",""," delete _running[Y.stamp(this)];"," this.fire(END, {elapsed: this.get(ELAPSED_TIME)});"," },",""," _runFrame: function() {"," var d = this._runtimeAttr.duration,"," t = new Date() - this.get(START_TIME),"," reverse = this.get(REVERSE),"," done = (t >= d);",""," this._runAttrs(t, d, reverse);"," this._actualFrames += 1;"," this._set(ELAPSED_TIME, t);",""," this.fire(TWEEN);"," if (done) {"," this._lastFrame();"," }"," },",""," _runAttrs: function(t, d, reverse) {"," var attr = this._runtimeAttr,"," customAttr = Y.Anim.behaviors,"," easing = attr.easing,"," lastFrame = d,"," done = false,"," attribute,"," setter,"," i;",""," if (t >= d) {"," done = true;"," }",""," if (reverse) {"," t = d - t;"," lastFrame = 0;"," }",""," for (i in attr) {"," if (attr[i].to) {"," attribute = attr[i];"," setter = (i in customAttr && 'set' in customAttr[i]) ?"," customAttr[i].set : Y.Anim.DEFAULT_SETTER;",""," if (!done) {"," setter(this, i, attribute.from, attribute.to, t, d, easing, attribute.unit);"," } else {"," setter(this, i, attribute.from, attribute.to, lastFrame, d, easing, attribute.unit);"," }"," }"," }","",""," },",""," _lastFrame: function() {"," var iter = this.get('iterations'),"," iterCount = this.get(ITERATION_COUNT);",""," iterCount += 1;"," if (iter === 'infinite' || iterCount < iter) {"," if (this.get('direction') === 'alternate') {"," this.set(REVERSE, !this.get(REVERSE)); // flip it"," }"," /**"," * @event iteration"," * @description fires when an animation begins an iteration."," * @param {Event} ev The iteration event."," * @type Event.Custom"," */"," this.fire('iteration');"," } else {"," iterCount = 0;"," this._end();"," }",""," this._set(START_TIME, new Date());"," this._set(ITERATION_COUNT, iterCount);"," },",""," _initAnimAttr: function() {"," var from = this.get('from') || {},"," to = this.get('to') || {},"," attr = {"," duration: this.get('duration') * 1000,"," easing: this.get('easing')"," },"," customAttr = Y.Anim.behaviors,"," node = this.get(NODE), // implicit attr init"," unit, begin, end;",""," Y.each(to, function(val, name) {"," if (typeof val === 'function') {"," val = val.call(this, node);"," }",""," begin = from[name];"," if (begin === undefined) {"," begin = (name in customAttr && 'get' in customAttr[name]) ?"," customAttr[name].get(this, name) : Y.Anim.DEFAULT_GETTER(this, name);"," } else if (typeof begin === 'function') {"," begin = begin.call(this, node);"," }",""," var mFrom = Y.Anim.RE_UNITS.exec(begin),"," mTo = Y.Anim.RE_UNITS.exec(val);",""," begin = mFrom ? mFrom[1] : begin;"," end = mTo ? mTo[1] : val;"," unit = mTo ? mTo[2] : mFrom ? mFrom[2] : ''; // one might be zero TODO: mixed units",""," if (!unit && Y.Anim.RE_DEFAULT_UNIT.test(name)) {"," unit = Y.Anim.DEFAULT_UNIT;"," }",""," if (!begin || !end) {"," Y.error('invalid \"from\" or \"to\" for \"' + name + '\"', 'Anim');"," return;"," }",""," attr[name] = {"," from: Y.Lang.isObject(begin) ? Y.clone(begin) : begin,"," to: end,"," unit: unit"," };",""," }, this);",""," this._runtimeAttr = attr;"," },","",""," // TODO: move to computedStyle? (browsers dont agree on default computed offsets)"," _getOffset: function(attr) {"," var node = this._node,"," val = node.getComputedStyle(attr),"," get = (attr === 'left') ? 'getX': 'getY',"," set = (attr === 'left') ? 'setX': 'setY',"," position;",""," if (val === 'auto') {"," position = node.getStyle('position');"," if (position === 'absolute' || position === 'fixed') {"," val = node[get]();"," node[set](val);"," } else {"," val = 0;"," }"," }",""," return val;"," },",""," destructor: function() {"," delete Y.Anim._instances[Y.stamp(this)];"," }"," };",""," Y.extend(Y.Anim, Y.Base, proto);","","","}, '3.13.0', {\"requires\": [\"base-base\", \"node-style\"]});","","}());"]};
-}
-var __cov_LgJ5P4ZXEcllOMVJL_pLXQ = __coverage__['build/anim-base/anim-base.js'];
-__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['1']++;YUI.add('anim-base',function(Y,NAME){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['1']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['2']++;var RUNNING='running',START_TIME='startTime',ELAPSED_TIME='elapsedTime',START='start',TWEEN='tween',END='end',NODE='node',PAUSED='paused',REVERSE='reverse',ITERATION_COUNT='iterationCount',NUM=Number;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['3']++;var _running={},_timer;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['4']++;Y.Anim=function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['2']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['5']++;Y.Anim.superclass.constructor.apply(this,arguments);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['6']++;Y.Anim._instances[Y.stamp(this)]=this;};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['7']++;Y.Anim.NAME='anim';__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['8']++;Y.Anim._instances={};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['9']++;Y.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['10']++;Y.Anim.DEFAULT_UNIT='px';__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['11']++;Y.Anim.DEFAULT_EASING=function(t,b,c,d){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['3']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['12']++;return c*t/d+b;};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['13']++;Y.Anim._intervalTime=20;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['14']++;Y.Anim.behaviors={left:{get:function(anim,attr){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['4']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['15']++;return anim._getOffset(attr);}}};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['16']++;Y.Anim.behaviors.top=Y.Anim.behaviors.left;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['17']++;Y.Anim.DEFAULT_SETTER=function(anim,att,from,to,elapsed,duration,fn,unit){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['5']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['18']++;var node=anim._node,domNode=node._node,val=fn(elapsed,NUM(from),NUM(to)-NUM(from),duration);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['19']++;if(domNode){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['1'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['20']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['3'][0]++,'style'in domNode)&&((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['3'][1]++,att in domNode.style)||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['3'][2]++,att in Y.DOM.CUSTOM_STYLES))){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['2'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['21']++;unit=(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['4'][0]++,unit)||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['4'][1]++,'');__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['22']++;node.setStyle(att,val+unit);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['2'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['23']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['6'][0]++,'attributes'in domNode)&&(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['6'][1]++,att in domNode.attributes)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['5'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['24']++;node.setAttribute(att,val);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['5'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['25']++;if(att in domNode){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['7'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['26']++;domNode[att]=val;}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['7'][1]++;}}}}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['1'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['27']++;if(node.set){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['8'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['28']++;node.set(att,val);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['8'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['29']++;if(att in node){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['9'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['30']++;node[att]=val;}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['9'][1]++;}}}};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['31']++;Y.Anim.DEFAULT_GETTER=function(anim,att){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['6']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['32']++;var node=anim._node,domNode=node._node,val='';__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['33']++;if(domNode){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['10'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['34']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['12'][0]++,'style'in domNode)&&((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['12'][1]++,att in domNode.style)||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['12'][2]++,att in Y.DOM.CUSTOM_STYLES))){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['11'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['35']++;val=node.getComputedStyle(att);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['11'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['36']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['14'][0]++,'attributes'in domNode)&&(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['14'][1]++,att in domNode.attributes)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['13'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['37']++;val=node.getAttribute(att);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['13'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['38']++;if(att in domNode){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['15'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['39']++;val=domNode[att];}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['15'][1]++;}}}}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['10'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['40']++;if(node.get){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['16'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['41']++;val=node.get(att);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['16'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['42']++;if(att in node){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['17'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['43']++;val=node[att];}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['17'][1]++;}}}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['44']++;return val;};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['45']++;Y.Anim.ATTRS={node:{setter:function(node){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['7']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['46']++;if(node){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['18'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['47']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['20'][0]++,typeof node==='string')||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['20'][1]++,node.nodeType)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['19'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['48']++;node=Y.one(node);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['19'][1]++;}}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['18'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['49']++;this._node=node;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['50']++;if(!node){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['21'][0]++;}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['21'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['51']++;return node;}},duration:{value:1},easing:{value:Y.Anim.DEFAULT_EASING,setter:function(val){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['8']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['52']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['23'][0]++,typeof val==='string')&&(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['23'][1]++,Y.Easing)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['22'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['53']++;return Y.Easing[val];}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['22'][1]++;}}},from:{},to:{},startTime:{value:0,readOnly:true},elapsedTime:{value:0,readOnly:true},running:{getter:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['9']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['54']++;return!!_running[Y.stamp(this)];},value:false,readOnly:true},iterations:{value:1},iterationCount:{value:0,readOnly:true},direction:{value:'normal'},paused:{readOnly:true,value:false},reverse:{value:false}};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['55']++;Y.Anim.run=function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['10']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['56']++;var instances=Y.Anim._instances,i;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['57']++;for(i in instances){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['58']++;if(instances[i].run){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['24'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['59']++;instances[i].run();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['24'][1]++;}}};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['60']++;Y.Anim.pause=function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['11']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['61']++;for(var i in _running){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['62']++;if(_running[i].pause){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['25'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['63']++;_running[i].pause();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['25'][1]++;}}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['64']++;Y.Anim._stopTimer();};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['65']++;Y.Anim.stop=function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['12']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['66']++;for(var i in _running){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['67']++;if(_running[i].stop){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['26'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['68']++;_running[i].stop();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['26'][1]++;}}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['69']++;Y.Anim._stopTimer();};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['70']++;Y.Anim._startTimer=function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['13']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['71']++;if(!_timer){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['27'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['72']++;_timer=setInterval(Y.Anim._runFrame,Y.Anim._intervalTime);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['27'][1]++;}};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['73']++;Y.Anim._stopTimer=function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['14']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['74']++;clearInterval(_timer);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['75']++;_timer=0;};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['76']++;Y.Anim._runFrame=function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['15']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['77']++;var done=true,anim;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['78']++;for(anim in _running){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['79']++;if(_running[anim]._runFrame){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['28'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['80']++;done=false;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['81']++;_running[anim]._runFrame();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['28'][1]++;}}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['82']++;if(done){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['29'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['83']++;Y.Anim._stopTimer();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['29'][1]++;}};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['84']++;Y.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['85']++;var proto={run:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['16']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['86']++;if(this.get(PAUSED)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['30'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['87']++;this._resume();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['30'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['88']++;if(!this.get(RUNNING)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['31'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['89']++;this._start();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['31'][1]++;}}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['90']++;return this;},pause:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['17']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['91']++;if(this.get(RUNNING)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['32'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['92']++;this._pause();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['32'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['93']++;return this;},stop:function(finish){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['18']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['94']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['34'][0]++,this.get(RUNNING))||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['34'][1]++,this.get(PAUSED))){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['33'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['95']++;this._end(finish);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['33'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['96']++;return this;},_added:false,_start:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['19']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['97']++;this._set(START_TIME,new Date()-this.get(ELAPSED_TIME));__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['98']++;this._actualFrames=0;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['99']++;if(!this.get(PAUSED)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['35'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['100']++;this._initAnimAttr();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['35'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['101']++;_running[Y.stamp(this)]=this;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['102']++;Y.Anim._startTimer();__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['103']++;this.fire(START);},_pause:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['20']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['104']++;this._set(START_TIME,null);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['105']++;this._set(PAUSED,true);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['106']++;delete _running[Y.stamp(this)];__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['107']++;this.fire('pause');},_resume:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['21']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['108']++;this._set(PAUSED,false);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['109']++;_running[Y.stamp(this)]=this;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['110']++;this._set(START_TIME,new Date()-this.get(ELAPSED_TIME));__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['111']++;Y.Anim._startTimer();__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['112']++;this.fire('resume');},_end:function(finish){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['22']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['113']++;var duration=this.get('duration')*1000;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['114']++;if(finish){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['36'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['115']++;this._runAttrs(duration,duration,this.get(REVERSE));}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['36'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['116']++;this._set(START_TIME,null);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['117']++;this._set(ELAPSED_TIME,0);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['118']++;this._set(PAUSED,false);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['119']++;delete _running[Y.stamp(this)];__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['120']++;this.fire(END,{elapsed:this.get(ELAPSED_TIME)});},_runFrame:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['23']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['121']++;var d=this._runtimeAttr.duration,t=new Date()-this.get(START_TIME),reverse=this.get(REVERSE),done=t>=d;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['122']++;this._runAttrs(t,d,reverse);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['123']++;this._actualFrames+=1;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['124']++;this._set(ELAPSED_TIME,t);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['125']++;this.fire(TWEEN);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['126']++;if(done){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['37'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['127']++;this._lastFrame();}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['37'][1]++;}},_runAttrs:function(t,d,reverse){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['24']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['128']++;var attr=this._runtimeAttr,customAttr=Y.Anim.behaviors,easing=attr.easing,lastFrame=d,done=false,attribute,setter,i;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['129']++;if(t>=d){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['38'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['130']++;done=true;}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['38'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['131']++;if(reverse){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['39'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['132']++;t=d-t;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['133']++;lastFrame=0;}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['39'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['134']++;for(i in attr){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['135']++;if(attr[i].to){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['40'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['136']++;attribute=attr[i];__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['137']++;setter=(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['42'][0]++,i in customAttr)&&(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['42'][1]++,'set'in customAttr[i])?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['41'][0]++,customAttr[i].set):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['41'][1]++,Y.Anim.DEFAULT_SETTER);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['138']++;if(!done){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['43'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['139']++;setter(this,i,attribute.from,attribute.to,t,d,easing,attribute.unit);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['43'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['140']++;setter(this,i,attribute.from,attribute.to,lastFrame,d,easing,attribute.unit);}}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['40'][1]++;}}},_lastFrame:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['25']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['141']++;var iter=this.get('iterations'),iterCount=this.get(ITERATION_COUNT);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['142']++;iterCount+=1;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['143']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['45'][0]++,iter==='infinite')||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['45'][1]++,iterCount<iter)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['44'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['144']++;if(this.get('direction')==='alternate'){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['46'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['145']++;this.set(REVERSE,!this.get(REVERSE));}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['46'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['146']++;this.fire('iteration');}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['44'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['147']++;iterCount=0;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['148']++;this._end();}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['149']++;this._set(START_TIME,new Date());__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['150']++;this._set(ITERATION_COUNT,iterCount);},_initAnimAttr:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['26']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['151']++;var from=(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['47'][0]++,this.get('from'))||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['47'][1]++,{}),to=(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['48'][0]++,this.get('to'))||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['48'][1]++,{}),attr={duration:this.get('duration')*1000,easing:this.get('easing')},customAttr=Y.Anim.behaviors,node=this.get(NODE),unit,begin,end;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['152']++;Y.each(to,function(val,name){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['27']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['153']++;if(typeof val==='function'){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['49'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['154']++;val=val.call(this,node);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['49'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['155']++;begin=from[name];__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['156']++;if(begin===undefined){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['50'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['157']++;begin=(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['52'][0]++,name in customAttr)&&(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['52'][1]++,'get'in customAttr[name])?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['51'][0]++,customAttr[name].get(this,name)):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['51'][1]++,Y.Anim.DEFAULT_GETTER(this,name));}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['50'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['158']++;if(typeof begin==='function'){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['53'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['159']++;begin=begin.call(this,node);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['53'][1]++;}}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['160']++;var mFrom=Y.Anim.RE_UNITS.exec(begin),mTo=Y.Anim.RE_UNITS.exec(val);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['161']++;begin=mFrom?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['54'][0]++,mFrom[1]):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['54'][1]++,begin);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['162']++;end=mTo?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['55'][0]++,mTo[1]):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['55'][1]++,val);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['163']++;unit=mTo?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['56'][0]++,mTo[2]):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['56'][1]++,mFrom?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['57'][0]++,mFrom[2]):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['57'][1]++,''));__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['164']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['59'][0]++,!unit)&&(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['59'][1]++,Y.Anim.RE_DEFAULT_UNIT.test(name))){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['58'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['165']++;unit=Y.Anim.DEFAULT_UNIT;}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['58'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['166']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['61'][0]++,!begin)||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['61'][1]++,!end)){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['60'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['167']++;Y.error('invalid "from" or "to" for "'+name+'"','Anim');__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['168']++;return;}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['60'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['169']++;attr[name]={from:Y.Lang.isObject(begin)?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['62'][0]++,Y.clone(begin)):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['62'][1]++,begin),to:end,unit:unit};},this);__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['170']++;this._runtimeAttr=attr;},_getOffset:function(attr){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['28']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['171']++;var node=this._node,val=node.getComputedStyle(attr),get=attr==='left'?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['63'][0]++,'getX'):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['63'][1]++,'getY'),set=attr==='left'?(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['64'][0]++,'setX'):(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['64'][1]++,'setY'),position;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['172']++;if(val==='auto'){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['65'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['173']++;position=node.getStyle('position');__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['174']++;if((__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['67'][0]++,position==='absolute')||(__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['67'][1]++,position==='fixed')){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['66'][0]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['175']++;val=node[get]();__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['176']++;node[set](val);}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['66'][1]++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['177']++;val=0;}}else{__cov_LgJ5P4ZXEcllOMVJL_pLXQ.b['65'][1]++;}__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['178']++;return val;},destructor:function(){__cov_LgJ5P4ZXEcllOMVJL_pLXQ.f['29']++;__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['179']++;delete Y.Anim._instances[Y.stamp(this)];}};__cov_LgJ5P4ZXEcllOMVJL_pLXQ.s['180']++;Y.extend(Y.Anim,Y.Base,proto);},'3.13.0',{'requires':['base-base','node-style']});
View
692 lib/yuilib/3.13.0/anim-base/anim-base-debug.js
@@ -1,692 +0,0 @@
-/*
-YUI 3.13.0 (build 508226d)
-Copyright 2013 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-
-YUI.add('anim-base', function (Y, NAME) {
-
-/**
-* The Animation Utility provides an API for creating advanced transitions.
-* @module anim
-*/
-
-/**
-* Provides the base Anim class, for animating numeric properties.
-*
-* @module anim
-* @submodule anim-base
-*/
-
- /**
- * A class for constructing animation instances.
- * @class Anim
- * @for Anim
- * @constructor
- * @extends Base
- */
-
- var RUNNING = 'running',
- START_TIME = 'startTime',
- ELAPSED_TIME = 'elapsedTime',
- /**
- * @for Anim
- * @event start
- * @description fires when an animation begins.
- * @param {Event} ev The start event.
- * @type Event.Custom
- */
- START = 'start',
-
- /**
- * @event tween
- * @description fires every frame of the animation.
- * @param {Event} ev The tween event.
- * @type Event.Custom
- */
- TWEEN = 'tween',
-
- /**
- * @event end
- * @description fires after the animation completes.
- * @param {Event} ev The end event.
- * @type Event.Custom
- */
- END = 'end',
- NODE = 'node',
- PAUSED = 'paused',
- REVERSE = 'reverse', // TODO: cleanup
- ITERATION_COUNT = 'iterationCount',
-
- NUM = Number;
-
- var _running = {},
- _timer;
-
- Y.Anim = function() {
- Y.Anim.superclass.constructor.apply(this, arguments);
- Y.Anim._instances[Y.stamp(this)] = this;
- };
-
- Y.Anim.NAME = 'anim';
-
- Y.Anim._instances = {};
-
- /**
- * Regex of properties that should use the default unit.
- *
- * @property RE_DEFAULT_UNIT
- * @static
- */
- Y.Anim.RE_DEFAULT_UNIT = /^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i;
-
- /**
- * The default unit to use with properties that pass the RE_DEFAULT_UNIT test.
- *
- * @property DEFAULT_UNIT
- * @static
- */
- Y.Anim.DEFAULT_UNIT = 'px';
-
- Y.Anim.DEFAULT_EASING = function (t, b, c, d) {
- return c * t / d + b; // linear easing
- };
-
- /**
- * Time in milliseconds passed to setInterval for frame processing
- *
- * @property intervalTime
- * @default 20
- * @static
- */
- Y.Anim._intervalTime = 20;
-
- /**
- * Bucket for custom getters and setters
- *
- * @property behaviors
- * @static
- */
- Y.Anim.behaviors = {
- left: {
- get: function(anim, attr) {
- return anim._getOffset(attr);
- }
- }
- };
-
- Y.Anim.behaviors.top = Y.Anim.behaviors.left;
-
- /**
- * The default setter to use when setting object properties.
- *
- * @property DEFAULT_SETTER
- * @static
- */
- Y.Anim.DEFAULT_SETTER = function(anim, att, from, to, elapsed, duration, fn, unit) {
- var node = anim._node,
- domNode = node._node,
- val = fn(elapsed, NUM(from), NUM(to) - NUM(from), duration);
-
- if (domNode) {
- if ('style' in domNode && (att in domNode.style || att in Y.DOM.CUSTOM_STYLES)) {
- unit = unit || '';
- node.setStyle(att, val + unit);
- } else if ('attributes' in domNode && att in domNode.attributes) {
- node.setAttribute(att, val);
- } else if (att in domNode) {
- domNode[att] = val;
- }
- } else if (node.set) {
- node.set(att, val);
- } else if (att in node) {
- node[att] = val;
- }
- };
-
- /**
- * The default getter to use when getting object properties.
- *
- * @property DEFAULT_GETTER
- * @static
- */
- Y.Anim.DEFAULT_GETTER = function(anim, att) {
- var node = anim._node,
- domNode = node._node,
- val = '';
-
- if (domNode) {
- if ('style' in domNode && (att in domNode.style || att in Y.DOM.CUSTOM_STYLES)) {
- val = node.getComputedStyle(att);
- } else if ('attributes' in domNode && att in domNode.attributes) {
- val = node.getAttribute(att);
- } else if (att in domNode) {
- val = domNode[att];
- }
- } else if (node.get) {
- val = node.get(att);
- } else if (att in node) {
- val = node[att];
- }
-
- return val;
- };
-
- Y.Anim.ATTRS = {
- /**
- * The object to be animated.
- * @attribute node
- * @type Node
- */
- node: {
- setter: function(node) {
- if (node) {
- if (typeof node === 'string' || node.nodeType) {
- node = Y.one(node);
- }
- }
-
- this._node = node;
- if (!node) {
- Y.log(node + ' is not a valid node', 'warn', 'Anim');
- }
- return node;
- }
- },
-
- /**
- * The length of the animation. Defaults to "1" (second).
- * @attribute duration
- * @type NUM
- */
- duration: {
- value: 1
- },
-
- /**
- * The method that will provide values to the attribute(s) during the animation.
- * Defaults to "Easing.easeNone".
- * @attribute easing
- * @type Function
- */
- easing: {
- value: Y.Anim.DEFAULT_EASING,
-
- setter: function(val) {
- if (typeof val === 'string' && Y.Easing) {
- return Y.Easing[val];
- }
- }
- },
-
- /**
- * The starting values for the animated properties.
- *
- * Fields may be strings, numbers, or functions.
- * If a function is used, the return value becomes the from value.
- * If no from value is specified, the DEFAULT_GETTER will be used.
- * Supports any unit, provided it matches the "to" (or default)
- * unit (e.g. `{width: '10em', color: 'rgb(0, 0, 0)', borderColor: '#ccc'}`).
- *
- * If using the default ('px' for length-based units), the unit may be omitted
- * (e.g. `{width: 100}, borderColor: 'ccc'}`, which defaults to pixels
- * and hex, respectively).
- *
- * @attribute from
- * @type Object
- */
- from: {},
-
- /**
- * The ending values for the animated properties.
- *
- * Fields may be strings, numbers, or functions.
- * Supports any unit, provided it matches the "from" (or default)
- * unit (e.g. `{width: '50%', color: 'red', borderColor: '#ccc'}`).
- *
- * If using the default ('px' for length-based units), the unit may be omitted
- * (e.g. `{width: 100, borderColor: 'ccc'}`, which defaults to pixels
- * and hex, respectively).
- *
- * @attribute to
- * @type Object
- */
- to: {},
-
- /**
- * Date stamp for the first frame of the animation.
- * @attribute startTime
- * @type Int
- * @default 0
- * @readOnly
- */
- startTime: {
- value: 0,
- readOnly: true
- },
-
- /**
- * Current time the animation has been running.
- * @attribute elapsedTime
- * @type Int
- * @default 0
- * @readOnly
- */
- elapsedTime: {
- value: 0,
- readOnly: true
- },
-
- /**
- * Whether or not the animation is currently running.
- * @attribute running
- * @type Boolean
- * @default false
- * @readOnly
- */
- running: {
- getter: function() {
- return !!_running[Y.stamp(this)];
- },
- value: false,
- readOnly: true
- },
-
- /**
- * The number of times the animation should run
- * @attribute iterations
- * @type Int
- * @default 1
- */
- iterations: {
- value: 1
- },
-
- /**
- * The number of iterations that have occurred.
- * Resets when an animation ends (reaches iteration count or stop() called).
- * @attribute iterationCount
- * @type Int
- * @default 0
- * @readOnly
- */
- iterationCount: {
- value: 0,
- readOnly: true
- },
-
- /**
- * How iterations of the animation should behave.
- * Possible values are "normal" and "alternate".
- * Normal will repeat the animation, alternate will reverse on every other pass.
- *
- * @attribute direction
- * @type String
- * @default "normal"
- */
- direction: {
- value: 'normal' // | alternate (fwd on odd, rev on even per spec)
- },
-
- /**
- * Whether or not the animation is currently paused.
- * @attribute paused
- * @type Boolean
- * @default false
- * @readOnly
- */
- paused: {
- readOnly: true,
- value: false
- },
-
- /**
- * If true, animation begins from last frame
- * @attribute reverse
- * @type Boolean
- * @default false
- */
- reverse: {
- value: false
- }
-
-
- };
-
- /**
- * Runs all animation instances.
- * @method run
- * @static
- */
- Y.Anim.run = function() {
- var instances = Y.Anim._instances,
- i;
- for (i in instances) {
- if (instances[i].run) {
- instances[i].run();
- }
- }
- };
-
- /**
- * Pauses all animation instances.
- * @method pause
- * @static
- */
- Y.Anim.pause = function() {
- for (var i in _running) { // stop timer if nothing running
- if (_running[i].pause) {
- _running[i].pause();
- }
- }
-
- Y.Anim._stopTimer();
- };
-
- /**
- * Stops all animation instances.
- * @method stop
- * @static
- */
- Y.Anim.stop = function() {
- for (var i in _running) { // stop timer if nothing running
- if (_running[i].stop) {
- _running[i].stop();
- }
- }
- Y.Anim._stopTimer();
- };
-
- Y.Anim._startTimer = function() {
- if (!_timer) {
- _timer = setInterval(Y.Anim._runFrame, Y.Anim._intervalTime);
- }
- };
-
- Y.Anim._stopTimer = function() {
- clearInterval(_timer);
- _timer = 0;
- };
-
- /**
- * Called per Interval to handle each animation frame.
- * @method _runFrame
- * @private
- * @static
- */
- Y.Anim._runFrame = function() {
- var done = true,
- anim;
- for (anim in _running) {
- if (_running[anim]._runFrame) {
- done = false;
- _running[anim]._runFrame();
- }
- }
-
- if (done) {
- Y.Anim._stopTimer();
- }
- };
-
- Y.Anim.RE_UNITS = /^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;
-
- var proto = {
- /**
- * Starts or resumes an animation.
- * @method run
- * @chainable
- */
- run: function() {
- if (this.get(PAUSED)) {
- this._resume();
- } else if (!this.get(RUNNING)) {
- this._start();
- }
- return this;
- },
-
- /**
- * Pauses the animation and
- * freezes it in its current state and time.
- * Calling run() will continue where it left off.
- * @method pause
- * @chainable
- */
- pause: function() {
- if (this.get(RUNNING)) {
- this._pause();
- }
- return this;
- },
-
- /**
- * Stops the animation and resets its time.
- * @method stop
- * @param {Boolean} finish If true, the animation will move to the last frame
- * @chainable
- */
- stop: function(finish) {
- if (this.get(RUNNING) || this.get(PAUSED)) {
- this._end(finish);
- }
- return this;
- },
-
- _added: false,
-
- _start: function() {
- this._set(START_TIME, new Date() - this.get(ELAPSED_TIME));
- this._actualFrames = 0;
- if (!this.get(PAUSED)) {
- this._initAnimAttr();
- }
- _running[Y.stamp(this)] = this;
- Y.Anim._startTimer();
-
- this.fire(START);
- },
-
- _pause: function() {
- this._set(START_TIME, null);
- this._set(PAUSED, true);
- delete _running[Y.stamp(this)];
-
- /**
- * @event pause
- * @description fires when an animation is paused.
- * @param {Event} ev The pause event.
- * @type Event.Custom
- */
- this.fire('pause');
- },
-
- _resume: function() {
- this._set(PAUSED, false);
- _running[Y.stamp(this)] = this;
- this._set(START_TIME, new Date() - this.get(ELAPSED_TIME));
- Y.Anim._startTimer();
-
- /**
- * @event resume
- * @description fires when an animation is resumed (run from pause).
- * @param {Event} ev The pause event.
- * @type Event.Custom
- */
- this.fire('resume');
- },
-
- _end: function(finish) {
- var duration = this.get('duration') * 1000;
- if (finish) { // jump to last frame
- this._runAttrs(duration, duration, this.get(REVERSE));
- }
-
- this._set(START_TIME, null);
- this._set(ELAPSED_TIME, 0);
- this._set(PAUSED, false);
-
- delete _running[Y.stamp(this)];
- this.fire(END, {elapsed: this.get(ELAPSED_TIME)});
- },
-
- _runFrame: function() {
- var d = this._runtimeAttr.duration,
- t = new Date() - this.get(START_TIME),
- reverse = this.get(REVERSE),
- done = (t >= d);
-
- this._runAttrs(t, d, reverse);
- this._actualFrames += 1;
- this._set(ELAPSED_TIME, t);
-
- this.fire(TWEEN);
- if (done) {
- this._lastFrame();
- }
- },
-
- _runAttrs: function(t, d, reverse) {
- var attr = this._runtimeAttr,
- customAttr = Y.Anim.behaviors,
- easing = attr.easing,
- lastFrame = d,
- done = false,
- attribute,
- setter,
- i;
-
- if (t >= d) {
- done = true;
- }
-
- if (reverse) {
- t = d - t;
- lastFrame = 0;
- }
-
- for (i in attr) {
- if (attr[i].to) {
- attribute = attr[i];
- setter = (i in customAttr && 'set' in customAttr[i]) ?
- customAttr[i].set : Y.Anim.DEFAULT_SETTER;
-
- if (!done) {
- setter(this, i, attribute.from, attribute.to, t, d, easing, attribute.unit);
- } else {
- setter(this, i, attribute.from, attribute.to, lastFrame, d, easing, attribute.unit);
- }
- }
- }
-
-
- },
-
- _lastFrame: function() {
- var iter = this.get('iterations'),
- iterCount = this.get(ITERATION_COUNT);
-
- iterCount += 1;
- if (iter === 'infinite' || iterCount < iter) {
- if (this.get('direction') === 'alternate') {
- this.set(REVERSE, !this.get(REVERSE)); // flip it
- }
- /**
- * @event iteration
- * @description fires when an animation begins an iteration.
- * @param {Event} ev The iteration event.
- * @type Event.Custom
- */
- this.fire('iteration');
- } else {
- iterCount = 0;
- this._end();
- }
-
- this._set(START_TIME, new Date());
- this._set(ITERATION_COUNT, iterCount);
- },
-
- _initAnimAttr: function() {
- var from = this.get('from') || {},
- to = this.get('to') || {},
- attr = {
- duration: this.get('duration') * 1000,
- easing: this.get('easing')
- },
- customAttr = Y.Anim.behaviors,
- node = this.get(NODE), // implicit attr init
- unit, begin, end;
-
- Y.each(to, function(val, name) {
- if (typeof val === 'function') {
- val = val.call(this, node);
- }
-
- begin = from[name];
- if (begin === undefined) {
- begin = (name in customAttr && 'get' in customAttr[name]) ?
- customAttr[name].get(this, name) : Y.Anim.DEFAULT_GETTER(this, name);
- } else if (typeof begin === 'function') {
- begin = begin.call(this, node);
- }
-
- var mFrom = Y.Anim.RE_UNITS.exec(begin),
- mTo = Y.Anim.RE_UNITS.exec(val);
-
- begin = mFrom ? mFrom[1] : begin;
- end = mTo ? mTo[1] : val;
- unit = mTo ? mTo[2] : mFrom ? mFrom[2] : ''; // one might be zero TODO: mixed units
-
- if (!unit && Y.Anim.RE_DEFAULT_UNIT.test(name)) {
- unit = Y.Anim.DEFAULT_UNIT;
- }
-
- if (!begin || !end) {
- Y.error('invalid "from" or "to" for "' + name + '"', 'Anim');
- return;
- }
-
- attr[name] = {
- from: Y.Lang.isObject(begin) ? Y.clone(begin) : begin,
- to: end,
- unit: unit
- };
-
- }, this);
-
- this._runtimeAttr = attr;
- },
-
-
- // TODO: move to computedStyle? (browsers dont agree on default computed offsets)
- _getOffset: function(attr) {
- var node = this._node,
- val = node.getComputedStyle(attr),
- get = (attr === 'left') ? 'getX': 'getY',
- set = (attr === 'left') ? 'setX': 'setY',
- position;
-
- if (val === 'auto') {
- position = node.getStyle('position');
- if (position === 'absolute' || position === 'fixed') {
- val = node[get]();
- node[set](val);
- } else {
- val = 0;
- }
- }
-
- return val;
- },
-
- destructor: function() {
- delete Y.Anim._instances[Y.stamp(this)];
- }
- };
-
- Y.extend(Y.Anim, Y.Base, proto);
-
-
-}, '3.13.0', {"requires": ["base-base", "node-style"]});
View
8 lib/yuilib/3.13.0/anim-base/anim-base-min.js
@@ -1,8 +0,0 @@
-/*
-YUI 3.13.0 (build 508226d)
-Copyright 2013 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-
-YUI.add("anim-base",function(e,t){var n="running",r="startTime",i="elapsedTime",s="start",o="tween",u="end",a="node",f="paused",l="reverse",c="iterationCount",h=Number,p={},d;e.Anim=function(){e.Anim.superclass.constructor.apply(this,arguments),e.Anim._instances[e.stamp(this)]=this},e.Anim.NAME="anim",e.Anim._instances={},e.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i,e.Anim.DEFAULT_UNIT="px",e.Anim.DEFAULT_EASING=function(e,t,n,r){return n*e/r+t},e.Anim._intervalTime=20,e.Anim.behaviors={left:{get:function(e,t){return e._getOffset(t)}}},e.Anim.behaviors.top=e.Anim.behaviors.left,e.Anim.DEFAULT_SETTER=function(t,n,r,i,s,o,u,a){var f=t._node,l=f._node,c=u(s,h(r),h(i)-h(r),o);l?"style"in l&&(n in l.style||n in e.DOM.CUSTOM_STYLES)?(a=a||"",f.setStyle(n,c+a)):"attributes"in l&&n in l.attributes?f.setAttribute(n,c):n in l&&(l[n]=c):f.set?f.set(n,c):n in f&&(f[n]=c)},e.Anim.DEFAULT_GETTER=function(t,n){var r=t._node,i=r._node,s="";return i?"style"in i&&(n in i.style||n in e.DOM.CUSTOM_STYLES)?s=r.getComputedStyle(n):"attributes"in i&&n in i.attributes?s=r.getAttribute(n):n in i&&(s=i[n]):r.get?s=r.get(n):n in r&&(s=r[n]),s},e.Anim.ATTRS={node:{setter:function(t){return t&&(typeof t=="string"||t.nodeType)&&(t=e.one(t)),this._node=t,!t,t}},duration:{value:1},easing:{value:e.Anim.DEFAULT_EASING,setter:function(t){if(typeof t=="string"&&e.Easing)return e.Easing[t]}},from:{},to:{},startTime:{value:0,readOnly:!0},elapsedTime:{value:0,readOnly:!0},running:{getter:function(){return!!p[e.stamp(this)]},value:!1,readOnly:!0},iterations:{value:1},iterationCount:{value:0,readOnly:!0},direction:{value:"normal"},paused:{readOnly:!0,value:!1},reverse:{value:!1}},e.Anim.run=function(){var t=e.Anim._instances,n;for(n in t)t[n].run&&t[n].run()},e.Anim.pause=function(){for(var t in p)p[t].pause&&p[t].pause();e.Anim._stopTimer()},e.Anim.stop=function(){for(var t in p)p[t].stop&&p[t].stop();e.Anim._stopTimer()},e.Anim._startTimer=function(){d||(d=setInterval(e.Anim._runFrame,e.Anim._intervalTime))},e.Anim._stopTimer=function(){clearInterval(d),d=0},e.Anim._runFrame=function(){var t=!0,n;for(n in p)p[n]._runFrame&&(t=!1,p[n]._runFrame());t&&e.Anim._stopTimer()},e.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;var v={run:function(){return this.get(f)?this._resume():this.get(n)||this._start(),this},pause:function(){return this.get(n)&&this._pause(),this},stop:function(e){return(this.get(n)||this.get(f))&&this._end(e),this},_added:!1,_start:function(){this._set(r,new Date-this.get(i)),this._actualFrames=0,this.get(f)||this._initAnimAttr(),p[e.stamp(this)]=this,e.Anim._startTimer(),this.fire(s)},_pause:function(){this._set(r,null),this._set(f,!0),delete p[e.stamp(this)],this.fire("pause")},_resume:function(){this._set(f,!1),p[e.stamp(this)]=this,this._set(r,new Date-this.get(i)),e.Anim._startTimer(),this.fire("resume")},_end:function(t){var n=this.get("duration")*1e3;t&&this._runAttrs(n,n,this.get(l)),this._set(r,null),this._set(i,0),this._set(f,!1),delete p[e.stamp(this)],this.fire(u,{elapsed:this.get(i)})},_runFrame:function(){var e=this._runtimeAttr.duration,t=new Date-this.get(r),n=this.get(l),s=t>=e;this._runAttrs(t,e,n),this._actualFrames+=1,this._set(i,t),this.fire(o),s&&this._lastFrame()},_runAttrs:function(t,n,r){var i=this._runtimeAttr,s=e.Anim.behaviors,o=i.easing,u=n,a=!1,f,l,c;t>=n&&(a=!0),r&&(t=n-t,u=0);for(c in i)i[c].to&&(f=i[c],l=c in s&&"set"in s[c]?s[c].set:e.Anim.DEFAULT_SETTER,a?l(this,c,f.from,f.to,u,n,o,f.unit):l(this,c,f.from,f.to,t,n,o,f.unit))},_lastFrame:function(){var e=this.get("iterations"),t=this.get(c);t+=1,e==="infinite"||t<e?(this.get("direction")==="alternate"&&this.set(l,!this.get(l)),this.fire("iteration")):(t=0,this._end()),this._set(r,new Date),this._set(c,t)},_initAnimAttr:function(){var t=this.get("from")||{},n=this.get("to")||{},r={duration:this.get("duration")*1e3,easing:this.get("easing")},i=e.Anim.behaviors,s=this.get(a),o,u,f;e.each(n,function(n,a){typeof n=="function"&&(n=n.call(this,s)),u=t[a],u===undefined?u=a in i&&"get"in i[a]?i[a].get(this,a):e.Anim.DEFAULT_GETTER(this,a):typeof u=="function"&&(u=u.call(this,s));var l=e.Anim.RE_UNITS.exec(u),c=e.Anim.RE_UNITS.exec(n);u=l?l[1]:u,f=c?c[1]:n,o=c?c[2]:l?l[2]:"",!o&&e.Anim.RE_DEFAULT_UNIT.test(a)&&(o=e.Anim.DEFAULT_UNIT);if(!u||!f){e.error('invalid "from" or "to" for "'+a+'"',"Anim");return}r[a]={from:e.Lang.isObject(u)?e.clone(u):u,to:f,unit:o}},this),this._runtimeAttr=r},_getOffset:function(e){var t=this._node,n=t.getComputedStyle(e),r=e==="left"?"getX":"getY",i=e==="left"?"setX":"setY",s;return n==="auto"&&(s=t.getStyle("position"),s==="absolute"||s==="fixed"?(n=t[r](),t[i](n)):n=0),n},destructor:function(){delete e.Anim._instances[e.stamp(this)]}};e.extend(e.Anim,e.Base,v)},"3.13.0",{requires:["base-base","node-style"]});
View
691 lib/yuilib/3.13.0/anim-base/anim-base.js
@@ -1,691 +0,0 @@
-/*
-YUI 3.13.0 (build 508226d)
-Copyright 2013 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-
-YUI.add('anim-base', function (Y, NAME) {
-
-/**
-* The Animation Utility provides an API for creating advanced transitions.
-* @module anim
-*/
-
-/**
-* Provides the base Anim class, for animating numeric properties.
-*
-* @module anim
-* @submodule anim-base
-*/
-
- /**
- * A class for constructing animation instances.
- * @class Anim
- * @for Anim
- * @constructor
- * @extends Base
- */
-
- var RUNNING = 'running',
- START_TIME = 'startTime',
- ELAPSED_TIME = 'elapsedTime',
- /**
- * @for Anim
- * @event start
- * @description fires when an animation begins.
- * @param {Event} ev The start event.
- * @type Event.Custom
- */
- START = 'start',
-
- /**
- * @event tween
- * @description fires every frame of the animation.
- * @param {Event} ev The tween event.
- * @type Event.Custom
- */
- TWEEN = 'tween',
-
- /**
- * @event end
- * @description fires after the animation completes.
- * @param {Event} ev The end event.
- * @type Event.Custom
- */
- END = 'end',
- NODE = 'node',
- PAUSED = 'paused',
- REVERSE = 'reverse', // TODO: cleanup
- ITERATION_COUNT = 'iterationCount',
-
- NUM = Number;
-
- var _running = {},
- _timer;
-
- Y.Anim = function() {
- Y.Anim.superclass.constructor.apply(this, arguments);
- Y.Anim._instances[Y.stamp(this)] = this;
- };
-
- Y.Anim.NAME = 'anim';
-
- Y.Anim._instances = {};
-
- /**
- * Regex of properties that should use the default unit.
- *
- * @property RE_DEFAULT_UNIT
- * @static
- */
- Y.Anim.RE_DEFAULT_UNIT = /^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i;
-
- /**
- * The default unit to use with properties that pass the RE_DEFAULT_UNIT test.
- *
- * @property DEFAULT_UNIT
- * @static
- */
- Y.Anim.DEFAULT_UNIT = 'px';
-
- Y.Anim.DEFAULT_EASING = function (t, b, c, d) {
- return c * t / d + b; // linear easing
- };
-
- /**
- * Time in milliseconds passed to setInterval for frame processing
- *
- * @property intervalTime
- * @default 20
- * @static
- */
- Y.Anim._intervalTime = 20;
-
- /**
- * Bucket for custom getters and setters
- *
- * @property behaviors
- * @static
- */
- Y.Anim.behaviors = {
- left: {
- get: function(anim, attr) {
- return anim._getOffset(attr);
- }
- }
- };
-
- Y.Anim.behaviors.top = Y.Anim.behaviors.left;
-
- /**
- * The default setter to use when setting object properties.
- *
- * @property DEFAULT_SETTER
- * @static
- */
- Y.Anim.DEFAULT_SETTER = function(anim, att, from, to, elapsed, duration, fn, unit) {
- var node = anim._node,
- domNode = node._node,
- val = fn(elapsed, NUM(from), NUM(to) - NUM(from), duration);
-
- if (domNode) {
- if ('style' in domNode && (att in domNode.style || att in Y.DOM.CUSTOM_STYLES)) {
- unit = unit || '';
- node.setStyle(att, val + unit);
- } else if ('attributes' in domNode && att in domNode.attributes) {
- node.setAttribute(att, val);
- } else if (att in domNode) {
- domNode[att] = val;
- }
- } else if (node.set) {
- node.set(att, val);
- } else if (att in node) {
- node[att] = val;
- }
- };
-
- /**
- * The default getter to use when getting object properties.
- *
- * @property DEFAULT_GETTER
- * @static
- */
- Y.Anim.DEFAULT_GETTER = function(anim, att) {
- var node = anim._node,
- domNode = node._node,
- val = '';
-
- if (domNode) {
- if ('style' in domNode && (att in domNode.style || att in Y.DOM.CUSTOM_STYLES)) {
- val = node.getComputedStyle(att);
- } else if ('attributes' in domNode && att in domNode.attributes) {
- val = node.getAttribute(att);
- } else if (att in domNode) {
- val = domNode[att];
- }
- } else if (node.get) {
- val = node.get(att);
- } else if (att in node) {
- val = node[att];
- }
-
- return val;
- };
-
- Y.Anim.ATTRS = {
- /**
- * The object to be animated.
- * @attribute node
- * @type Node
- */
- node: {
- setter: function(node) {
- if (node) {
- if (typeof node === 'string' || node.nodeType) {
- node = Y.one(node);
- }
- }
-
- this._node = node;
- if (!node) {
- }
- return node;
- }
- },
-
- /**
- * The length of the animation. Defaults to "1" (second).
- * @attribute duration
- * @type NUM
- */
- duration: {
- value: 1
- },
-
- /**
- * The method that will provide values to the attribute(s) during the animation.
- * Defaults to "Easing.easeNone".
- * @attribute easing
- * @type Function
- */
- easing: {
- value: Y.Anim.DEFAULT_EASING,
-
- setter: function(val) {
- if (typeof val === 'string' && Y.Easing) {
- return Y.Easing[val];
- }
- }
- },
-
- /**
- * The starting values for the animated properties.
- *
- * Fields may be strings, numbers, or functions.
- * If a function is used, the return value becomes the from value.
- * If no from value is specified, the DEFAULT_GETTER will be used.
- * Supports any unit, provided it matches the "to" (or default)
- * unit (e.g. `{width: '10em', color: 'rgb(0, 0, 0)', borderColor: '#ccc'}`).
- *
- * If using the default ('px' for length-based units), the unit may be omitted
- * (e.g. `{width: 100}, borderColor: 'ccc'}`, which defaults to pixels
- * and hex, respectively).
- *
- * @attribute from
- * @type Object
- */
- from: {},
-
- /**
- * The ending values for the animated properties.
- *
- * Fields may be strings, numbers, or functions.
- * Supports any unit, provided it matches the "from" (or default)
- * unit (e.g. `{width: '50%', color: 'red', borderColor: '#ccc'}`).
- *
- * If using the default ('px' for length-based units), the unit may be omitted
- * (e.g. `{width: 100, borderColor: 'ccc'}`, which defaults to pixels
- * and hex, respectively).
- *
- * @attribute to
- * @type Object
- */
- to: {},
-
- /**
- * Date stamp for the first frame of the animation.
- * @attribute startTime
- * @type Int
- * @default 0
- * @readOnly
- */
- startTime: {
- value: 0,
- readOnly: true
- },
-
- /**
- * Current time the animation has been running.
- * @attribute elapsedTime
- * @type Int
- * @default 0
- * @readOnly
- */
- elapsedTime: {
- value: 0,
- readOnly: true
- },
-
- /**
- * Whether or not the animation is currently running.
- * @attribute running
- * @type Boolean
- * @default false
- * @readOnly
- */
- running: {
- getter: function() {
- return !!_running[Y.stamp(this)];
- },
- value: false,
- readOnly: true
- },
-
- /**
- * The number of times the animation should run
- * @attribute iterations
- * @type Int
- * @default 1
- */
- iterations: {
- value: 1
- },
-
- /**
- * The number of iterations that have occurred.
- * Resets when an animation ends (reaches iteration count or stop() called).
- * @attribute iterationCount
- * @type Int
- * @default 0
- * @readOnly
- */
- iterationCount: {
- value: 0,
- readOnly: true
- },
-
- /**
- * How iterations of the animation should behave.
- * Possible values are "normal" and "alternate".
- * Normal will repeat the animation, alternate will reverse on every other pass.
- *
- * @attribute direction
- * @type String
- * @default "normal"
- */
- direction: {
- value: 'normal' // | alternate (fwd on odd, rev on even per spec)
- },
-
- /**
- * Whether or not the animation is currently paused.
- * @attribute paused
- * @type Boolean
- * @default false
- * @readOnly
- */
- paused: {
- readOnly: true,
- value: false
- },
-
- /**
- * If true, animation begins from last frame
- * @attribute reverse
- * @type Boolean
- * @default false
- */
- reverse: {
- value: false
- }
-
-
- };
-
- /**
- * Runs all animation instances.
- * @method run
- * @static
- */
- Y.Anim.run = function() {
- var instances = Y.Anim._instances,
- i;
- for (i in instances) {
- if (instances[i].run) {
- instances[i].run();
- }
- }
- };
-
- /**
- * Pauses all animation instances.
- * @method pause
- * @static
- */
- Y.Anim.pause = function() {
- for (var i in _running) { // stop timer if nothing running
- if (_running[i].pause) {
- _running[i].pause();
- }
- }
-
- Y.Anim._stopTimer();
- };
-
- /**
- * Stops all animation instances.
- * @method stop
- * @static
- */
- Y.Anim.stop = function() {
- for (var i in _running) { // stop timer if nothing running
- if (_running[i].stop) {
- _running[i].stop();
- }
- }
- Y.Anim._stopTimer();
- };
-
- Y.Anim._startTimer = function() {
- if (!_timer) {
- _timer = setInterval(Y.Anim._runFrame, Y.Anim._intervalTime);
- }
- };
-
- Y.Anim._stopTimer = function() {
- clearInterval(_timer);
- _timer = 0;
- };
-
- /**
- * Called per Interval to handle each animation frame.
- * @method _runFrame
- * @private
- * @static
- */
- Y.Anim._runFrame = function() {
- var done = true,
- anim;
- for (anim in _running) {
- if (_running[anim]._runFrame) {
- done = false;
- _running[anim]._runFrame();
- }
- }
-
- if (done) {
- Y.Anim._stopTimer();
- }
- };
-
- Y.Anim.RE_UNITS = /^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;
-
- var proto = {
- /**
- * Starts or resumes an animation.
- * @method run
- * @chainable
- */
- run: function() {
- if (this.get(PAUSED)) {
- this._resume();
- } else if (!this.get(RUNNING)) {
- this._start();
- }
- return this;
- },
-
- /**
- * Pauses the animation and
- * freezes it in its current state and time.
- * Calling run() will continue where it left off.
- * @method pause
- * @chainable
- */
- pause: function() {
- if (this.get(RUNNING)) {
- this._pause();
- }
- return this;
- },
-
- /**
- * Stops the animation and resets its time.
- * @method stop
- * @param {Boolean} finish If true, the animation will move to the last frame
- * @chainable
- */
- stop: function(finish) {
- if (this.get(RUNNING) || this.get(PAUSED)) {
- this._end(finish);
- }
- return this;
- },
-
- _added: false,
-
- _start: function() {
- this._set(START_TIME, new Date() - this.get(ELAPSED_TIME));
- this._actualFrames = 0;
- if (!this.get(PAUSED)) {
- this._initAnimAttr();
- }
- _running[Y.stamp(this)] = this;
- Y.Anim._startTimer();
-
- this.fire(START);
- },
-
- _pause: function() {
- this._set(START_TIME, null);
- this._set(PAUSED, true);
- delete _running[Y.stamp(this)];
-
- /**
- * @event pause
- * @description fires when an animation is paused.
- * @param {Event} ev The pause event.
- * @type Event.Custom
- */
- this.fire('pause');
- },
-
- _resume: function() {
- this._set(PAUSED, false);
- _running[Y.stamp(this)] = this;
- this._set(START_TIME, new Date() - this.get(ELAPSED_TIME));
- Y.Anim._startTimer();
-
- /**
- * @event resume
- * @description fires when an animation is resumed (run from pause).
- * @param {Event} ev The pause event.
- * @type Event.Custom
- */
- this.fire('resume');
- },
-
- _end: function(finish) {
- var duration = this.get('duration') * 1000;
- if (finish) { // jump to last frame
- this._runAttrs(duration, duration, this.get(REVERSE));