@canonical/yui 3.18.2-pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1485) hide show
  1. package/AGENTS.md +50 -0
  2. package/BUILD.md +54 -0
  3. package/CONTRIBUTING.md +85 -0
  4. package/CONTRIBUTORS.md +30 -0
  5. package/Gruntfile.js +122 -0
  6. package/HISTORY.md +12 -0
  7. package/LICENSE.md +145 -0
  8. package/README.md +133 -0
  9. package/build/align-plugin/align-plugin-debug.js +193 -0
  10. package/build/align-plugin/align-plugin-min.js +1 -0
  11. package/build/align-plugin/align-plugin.js +193 -0
  12. package/build/anim-base/anim-base-debug.js +686 -0
  13. package/build/anim-base/anim-base-min.js +1 -0
  14. package/build/anim-base/anim-base.js +685 -0
  15. package/build/anim-color/anim-color-debug.js +53 -0
  16. package/build/anim-color/anim-color-min.js +1 -0
  17. package/build/anim-color/anim-color.js +53 -0
  18. package/build/anim-curve/anim-curve-debug.js +59 -0
  19. package/build/anim-curve/anim-curve-min.js +1 -0
  20. package/build/anim-curve/anim-curve.js +59 -0
  21. package/build/anim-easing/anim-easing-debug.js +365 -0
  22. package/build/anim-easing/anim-easing-min.js +1 -0
  23. package/build/anim-easing/anim-easing.js +365 -0
  24. package/build/anim-node-plugin/anim-node-plugin-debug.js +26 -0
  25. package/build/anim-node-plugin/anim-node-plugin-min.js +1 -0
  26. package/build/anim-node-plugin/anim-node-plugin.js +26 -0
  27. package/build/anim-scroll/anim-scroll-debug.js +38 -0
  28. package/build/anim-scroll/anim-scroll-min.js +1 -0
  29. package/build/anim-scroll/anim-scroll.js +38 -0
  30. package/build/anim-shape/anim-shape-debug.js +185 -0
  31. package/build/anim-shape/anim-shape-min.js +1 -0
  32. package/build/anim-shape/anim-shape.js +185 -0
  33. package/build/anim-xy/anim-xy-debug.js +26 -0
  34. package/build/anim-xy/anim-xy-min.js +1 -0
  35. package/build/anim-xy/anim-xy.js +26 -0
  36. package/build/app-base/app-base-debug.js +1116 -0
  37. package/build/app-base/app-base-min.js +1 -0
  38. package/build/app-base/app-base.js +1116 -0
  39. package/build/app-content/app-content-debug.js +235 -0
  40. package/build/app-content/app-content-min.js +1 -0
  41. package/build/app-content/app-content.js +235 -0
  42. package/build/app-transitions/app-transitions-debug.js +242 -0
  43. package/build/app-transitions/app-transitions-min.js +1 -0
  44. package/build/app-transitions/app-transitions.js +242 -0
  45. package/build/app-transitions-css/app-transitions-css-min.css +1 -0
  46. package/build/app-transitions-css/app-transitions-css.css +33 -0
  47. package/build/app-transitions-native/app-transitions-native-debug.js +353 -0
  48. package/build/app-transitions-native/app-transitions-native-min.js +1 -0
  49. package/build/app-transitions-native/app-transitions-native.js +353 -0
  50. package/build/array-extras/array-extras-debug.js +400 -0
  51. package/build/array-extras/array-extras-min.js +1 -0
  52. package/build/array-extras/array-extras.js +400 -0
  53. package/build/array-invoke/array-invoke-debug.js +40 -0
  54. package/build/array-invoke/array-invoke-min.js +1 -0
  55. package/build/array-invoke/array-invoke.js +40 -0
  56. package/build/arraylist/arraylist-debug.js +214 -0
  57. package/build/arraylist/arraylist-min.js +1 -0
  58. package/build/arraylist/arraylist.js +214 -0
  59. package/build/arraylist-add/arraylist-add-debug.js +87 -0
  60. package/build/arraylist-add/arraylist-add-min.js +1 -0
  61. package/build/arraylist-add/arraylist-add.js +87 -0
  62. package/build/arraylist-filter/arraylist-filter-debug.js +45 -0
  63. package/build/arraylist-filter/arraylist-filter-min.js +1 -0
  64. package/build/arraylist-filter/arraylist-filter.js +45 -0
  65. package/build/arraysort/arraysort-debug.js +181 -0
  66. package/build/arraysort/arraysort-min.js +1 -0
  67. package/build/arraysort/arraysort.js +181 -0
  68. package/build/async-queue/async-queue-debug.js +554 -0
  69. package/build/async-queue/async-queue-min.js +1 -0
  70. package/build/async-queue/async-queue.js +554 -0
  71. package/build/attribute-base/attribute-base-debug.js +110 -0
  72. package/build/attribute-base/attribute-base-min.js +1 -0
  73. package/build/attribute-base/attribute-base.js +110 -0
  74. package/build/attribute-complex/attribute-complex-debug.js +56 -0
  75. package/build/attribute-complex/attribute-complex-min.js +1 -0
  76. package/build/attribute-complex/attribute-complex.js +56 -0
  77. package/build/attribute-core/attribute-core-debug.js +1208 -0
  78. package/build/attribute-core/attribute-core-min.js +1 -0
  79. package/build/attribute-core/attribute-core.js +1196 -0
  80. package/build/attribute-extras/attribute-extras-debug.js +157 -0
  81. package/build/attribute-extras/attribute-extras-min.js +1 -0
  82. package/build/attribute-extras/attribute-extras.js +156 -0
  83. package/build/attribute-observable/attribute-observable-debug.js +237 -0
  84. package/build/attribute-observable/attribute-observable-min.js +1 -0
  85. package/build/attribute-observable/attribute-observable.js +236 -0
  86. package/build/autocomplete-base/autocomplete-base-debug.js +1557 -0
  87. package/build/autocomplete-base/autocomplete-base-min.js +2 -0
  88. package/build/autocomplete-base/autocomplete-base.js +1549 -0
  89. package/build/autocomplete-filters/autocomplete-filters-debug.js +239 -0
  90. package/build/autocomplete-filters/autocomplete-filters-min.js +1 -0
  91. package/build/autocomplete-filters/autocomplete-filters.js +239 -0
  92. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-debug.js +136 -0
  93. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-min.js +1 -0
  94. package/build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js +136 -0
  95. package/build/autocomplete-highlighters/autocomplete-highlighters-debug.js +199 -0
  96. package/build/autocomplete-highlighters/autocomplete-highlighters-min.js +1 -0
  97. package/build/autocomplete-highlighters/autocomplete-highlighters.js +199 -0
  98. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-debug.js +107 -0
  99. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-min.js +1 -0
  100. package/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js +107 -0
  101. package/build/autocomplete-list/assets/autocomplete-list-core.css +27 -0
  102. package/build/autocomplete-list/assets/skins/night/autocomplete-list-skin.css +51 -0
  103. package/build/autocomplete-list/assets/skins/night/autocomplete-list.css +1 -0
  104. package/build/autocomplete-list/assets/skins/sam/autocomplete-list-skin.css +17 -0
  105. package/build/autocomplete-list/assets/skins/sam/autocomplete-list.css +1 -0
  106. package/build/autocomplete-list/autocomplete-list-debug.js +906 -0
  107. package/build/autocomplete-list/autocomplete-list-min.js +2 -0
  108. package/build/autocomplete-list/autocomplete-list.js +906 -0
  109. package/build/autocomplete-list/lang/autocomplete-list.js +1 -0
  110. package/build/autocomplete-list/lang/autocomplete-list_en.js +1 -0
  111. package/build/autocomplete-list/lang/autocomplete-list_es.js +1 -0
  112. package/build/autocomplete-list/lang/autocomplete-list_hu.js +1 -0
  113. package/build/autocomplete-list/lang/autocomplete-list_it.js +1 -0
  114. package/build/autocomplete-list-keys/autocomplete-list-keys-debug.js +186 -0
  115. package/build/autocomplete-list-keys/autocomplete-list-keys-min.js +1 -0
  116. package/build/autocomplete-list-keys/autocomplete-list-keys.js +186 -0
  117. package/build/autocomplete-plugin/autocomplete-plugin-debug.js +48 -0
  118. package/build/autocomplete-plugin/autocomplete-plugin-min.js +1 -0
  119. package/build/autocomplete-plugin/autocomplete-plugin.js +48 -0
  120. package/build/autocomplete-sources/autocomplete-sources-debug.js +475 -0
  121. package/build/autocomplete-sources/autocomplete-sources-min.js +1 -0
  122. package/build/autocomplete-sources/autocomplete-sources.js +475 -0
  123. package/build/axis/axis-debug.js +3173 -0
  124. package/build/axis/axis-min.js +5 -0
  125. package/build/axis/axis.js +3173 -0
  126. package/build/axis-base/axis-base-debug.js +901 -0
  127. package/build/axis-base/axis-base-min.js +1 -0
  128. package/build/axis-base/axis-base.js +901 -0
  129. package/build/axis-category/axis-category-debug.js +119 -0
  130. package/build/axis-category/axis-category-min.js +1 -0
  131. package/build/axis-category/axis-category.js +119 -0
  132. package/build/axis-category-base/axis-category-base-debug.js +247 -0
  133. package/build/axis-category-base/axis-category-base-min.js +1 -0
  134. package/build/axis-category-base/axis-category-base.js +247 -0
  135. package/build/axis-numeric/axis-numeric-debug.js +140 -0
  136. package/build/axis-numeric/axis-numeric-min.js +1 -0
  137. package/build/axis-numeric/axis-numeric.js +140 -0
  138. package/build/axis-numeric-base/axis-numeric-base-debug.js +721 -0
  139. package/build/axis-numeric-base/axis-numeric-base-min.js +1 -0
  140. package/build/axis-numeric-base/axis-numeric-base.js +721 -0
  141. package/build/axis-stacked/axis-stacked-debug.js +23 -0
  142. package/build/axis-stacked/axis-stacked-min.js +1 -0
  143. package/build/axis-stacked/axis-stacked.js +23 -0
  144. package/build/axis-stacked-base/axis-stacked-base-debug.js +133 -0
  145. package/build/axis-stacked-base/axis-stacked-base-min.js +1 -0
  146. package/build/axis-stacked-base/axis-stacked-base.js +133 -0
  147. package/build/axis-time/axis-time-debug.js +91 -0
  148. package/build/axis-time/axis-time-min.js +1 -0
  149. package/build/axis-time/axis-time.js +91 -0
  150. package/build/axis-time-base/axis-time-base-debug.js +352 -0
  151. package/build/axis-time-base/axis-time-base-min.js +1 -0
  152. package/build/axis-time-base/axis-time-base.js +352 -0
  153. package/build/base-base/base-base-debug.js +184 -0
  154. package/build/base-base/base-base-min.js +1 -0
  155. package/build/base-base/base-base.js +184 -0
  156. package/build/base-build/base-build-debug.js +453 -0
  157. package/build/base-build/base-build-min.js +1 -0
  158. package/build/base-build/base-build.js +453 -0
  159. package/build/base-core/base-core-debug.js +838 -0
  160. package/build/base-core/base-core-min.js +1 -0
  161. package/build/base-core/base-core.js +832 -0
  162. package/build/base-observable/base-observable-debug.js +221 -0
  163. package/build/base-observable/base-observable-min.js +1 -0
  164. package/build/base-observable/base-observable.js +220 -0
  165. package/build/base-pluginhost/base-pluginhost-debug.js +36 -0
  166. package/build/base-pluginhost/base-pluginhost-min.js +1 -0
  167. package/build/base-pluginhost/base-pluginhost.js +36 -0
  168. package/build/button/button-debug.js +332 -0
  169. package/build/button/button-min.js +1 -0
  170. package/build/button/button.js +332 -0
  171. package/build/button-core/button-core-debug.js +399 -0
  172. package/build/button-core/button-core-min.js +1 -0
  173. package/build/button-core/button-core.js +399 -0
  174. package/build/button-group/button-group-debug.js +194 -0
  175. package/build/button-group/button-group-min.js +1 -0
  176. package/build/button-group/button-group.js +194 -0
  177. package/build/button-plugin/button-plugin-debug.js +134 -0
  178. package/build/button-plugin/button-plugin-min.js +1 -0
  179. package/build/button-plugin/button-plugin.js +134 -0
  180. package/build/cache-base/cache-base-debug.js +442 -0
  181. package/build/cache-base/cache-base-min.js +1 -0
  182. package/build/cache-base/cache-base.js +432 -0
  183. package/build/cache-offline/cache-offline-debug.js +341 -0
  184. package/build/cache-offline/cache-offline-min.js +1 -0
  185. package/build/cache-offline/cache-offline.js +333 -0
  186. package/build/cache-plugin/cache-plugin-debug.js +53 -0
  187. package/build/cache-plugin/cache-plugin-min.js +1 -0
  188. package/build/cache-plugin/cache-plugin.js +53 -0
  189. package/build/calendar/assets/calendar-core.css +31 -0
  190. package/build/calendar/assets/skins/night/calendar-skin.css +7 -0
  191. package/build/calendar/assets/skins/night/calendar.css +1 -0
  192. package/build/calendar/assets/skins/sam/calendar-skin.css +7 -0
  193. package/build/calendar/assets/skins/sam/calendar.css +1 -0
  194. package/build/calendar/calendar-debug.js +610 -0
  195. package/build/calendar/calendar-min.js +2 -0
  196. package/build/calendar/calendar.js +610 -0
  197. package/build/calendar-base/assets/calendar-base-core.css +21 -0
  198. package/build/calendar-base/assets/skins/night/calendar-base-skin.css +92 -0
  199. package/build/calendar-base/assets/skins/night/calendar-base.css +1 -0
  200. package/build/calendar-base/assets/skins/sam/calendar-base-skin.css +98 -0
  201. package/build/calendar-base/assets/skins/sam/calendar-base.css +1 -0
  202. package/build/calendar-base/calendar-base-debug.js +1719 -0
  203. package/build/calendar-base/calendar-base-min.js +3 -0
  204. package/build/calendar-base/calendar-base.js +1719 -0
  205. package/build/calendar-base/lang/calendar-base.js +1 -0
  206. package/build/calendar-base/lang/calendar-base_de.js +1 -0
  207. package/build/calendar-base/lang/calendar-base_en.js +1 -0
  208. package/build/calendar-base/lang/calendar-base_es-AR.js +1 -0
  209. package/build/calendar-base/lang/calendar-base_es.js +1 -0
  210. package/build/calendar-base/lang/calendar-base_fr.js +1 -0
  211. package/build/calendar-base/lang/calendar-base_hu.js +1 -0
  212. package/build/calendar-base/lang/calendar-base_it.js +1 -0
  213. package/build/calendar-base/lang/calendar-base_ja.js +1 -0
  214. package/build/calendar-base/lang/calendar-base_nb-NO.js +1 -0
  215. package/build/calendar-base/lang/calendar-base_nl.js +1 -0
  216. package/build/calendar-base/lang/calendar-base_pt-BR.js +1 -0
  217. package/build/calendar-base/lang/calendar-base_ru.js +1 -0
  218. package/build/calendar-base/lang/calendar-base_zh-HANT-TW.js +1 -0
  219. package/build/calendar-base/lang/calendar-base_zh-Hans-CN.js +1 -0
  220. package/build/calendar-base/lang/calendar-base_zh-Hans.js +1 -0
  221. package/build/calendar-base/lang/calendar-base_zh-Hant-HK.js +1 -0
  222. package/build/calendar-base/lang/calendar-base_zh-Hant.js +1 -0
  223. package/build/calendarnavigator/assets/calendarnavigator-core.css +18 -0
  224. package/build/calendarnavigator/assets/skins/night/calendarnavigator-skin.css +78 -0
  225. package/build/calendarnavigator/assets/skins/night/calendarnavigator.css +1 -0
  226. package/build/calendarnavigator/assets/skins/sam/calendarnavigator-skin.css +78 -0
  227. package/build/calendarnavigator/assets/skins/sam/calendarnavigator.css +1 -0
  228. package/build/calendarnavigator/calendarnavigator-debug.js +297 -0
  229. package/build/calendarnavigator/calendarnavigator-min.js +1 -0
  230. package/build/calendarnavigator/calendarnavigator.js +297 -0
  231. package/build/charts-base/charts-base-debug.js +5181 -0
  232. package/build/charts-base/charts-base-min.js +8 -0
  233. package/build/charts-base/charts-base.js +5181 -0
  234. package/build/charts-legend/charts-legend-debug.js +1703 -0
  235. package/build/charts-legend/charts-legend-min.js +3 -0
  236. package/build/charts-legend/charts-legend.js +1703 -0
  237. package/build/classnamemanager/classnamemanager-debug.js +84 -0
  238. package/build/classnamemanager/classnamemanager-min.js +1 -0
  239. package/build/classnamemanager/classnamemanager.js +84 -0
  240. package/build/clickable-rail/clickable-rail-debug.js +212 -0
  241. package/build/clickable-rail/clickable-rail-min.js +1 -0
  242. package/build/clickable-rail/clickable-rail.js +212 -0
  243. package/build/color-base/color-base-debug.js +492 -0
  244. package/build/color-base/color-base-min.js +1 -0
  245. package/build/color-base/color-base.js +492 -0
  246. package/build/color-harmony/color-harmony-debug.js +569 -0
  247. package/build/color-harmony/color-harmony-min.js +1 -0
  248. package/build/color-harmony/color-harmony.js +568 -0
  249. package/build/color-hsl/color-hsl-debug.js +218 -0
  250. package/build/color-hsl/color-hsl-min.js +1 -0
  251. package/build/color-hsl/color-hsl.js +218 -0
  252. package/build/color-hsv/color-hsv-debug.js +182 -0
  253. package/build/color-hsv/color-hsv-min.js +1 -0
  254. package/build/color-hsv/color-hsv.js +182 -0
  255. package/build/console/assets/console-core.css +0 -0
  256. package/build/console/assets/skins/sam/bg.png +0 -0
  257. package/build/console/assets/skins/sam/console-skin.css +185 -0
  258. package/build/console/assets/skins/sam/console.css +1 -0
  259. package/build/console/assets/skins/sam/warn_error.png +0 -0
  260. package/build/console/assets/warn_error.png +0 -0
  261. package/build/console/console-debug.js +1517 -0
  262. package/build/console/console-min.js +2 -0
  263. package/build/console/console.js +1517 -0
  264. package/build/console/lang/console.js +1 -0
  265. package/build/console/lang/console_en.js +1 -0
  266. package/build/console/lang/console_es.js +1 -0
  267. package/build/console/lang/console_hu.js +1 -0
  268. package/build/console/lang/console_it.js +1 -0
  269. package/build/console/lang/console_ja.js +1 -0
  270. package/build/console-filters/assets/console-filters-core.css +0 -0
  271. package/build/console-filters/assets/skins/sam/console-filters-skin.css +27 -0
  272. package/build/console-filters/assets/skins/sam/console-filters.css +1 -0
  273. package/build/console-filters/console-filters-debug.js +723 -0
  274. package/build/console-filters/console-filters-min.js +1 -0
  275. package/build/console-filters/console-filters.js +723 -0
  276. package/build/content-editable/content-editable-debug.js +808 -0
  277. package/build/content-editable/content-editable-min.js +1 -0
  278. package/build/content-editable/content-editable.js +797 -0
  279. package/build/cookie/cookie-debug.js +508 -0
  280. package/build/cookie/cookie-min.js +1 -0
  281. package/build/cookie/cookie.js +508 -0
  282. package/build/createlink-base/createlink-base-debug.js +86 -0
  283. package/build/createlink-base/createlink-base-min.js +1 -0
  284. package/build/createlink-base/createlink-base.js +85 -0
  285. package/build/cssbase/cssbase-min.css +1 -0
  286. package/build/cssbase/cssbase.css +77 -0
  287. package/build/cssbase-context/cssbase-context-min.css +1 -0
  288. package/build/cssbase-context/cssbase-context.css +76 -0
  289. package/build/cssbutton/cssbutton-min.css +1 -0
  290. package/build/cssbutton/cssbutton.css +147 -0
  291. package/build/cssfonts/cssfonts-min.css +1 -0
  292. package/build/cssfonts/cssfonts.css +43 -0
  293. package/build/cssfonts-context/cssfonts-context-min.css +1 -0
  294. package/build/cssfonts-context/cssfonts-context.css +43 -0
  295. package/build/cssgrids/cssgrids-min.css +11 -0
  296. package/build/cssgrids/cssgrids.css +298 -0
  297. package/build/cssgrids-base/cssgrids-base-min.css +6 -0
  298. package/build/cssgrids-base/cssgrids-base.css +80 -0
  299. package/build/cssgrids-responsive/cssgrids-responsive-min.css +6 -0
  300. package/build/cssgrids-responsive/cssgrids-responsive.css +398 -0
  301. package/build/cssgrids-units/cssgrids-units-min.css +6 -0
  302. package/build/cssgrids-units/cssgrids-units.css +221 -0
  303. package/build/cssnormalize/cssnormalize-min.css +9 -0
  304. package/build/cssnormalize/cssnormalize.css +584 -0
  305. package/build/cssnormalize-context/cssnormalize-context-min.css +9 -0
  306. package/build/cssnormalize-context/cssnormalize-context.css +584 -0
  307. package/build/cssreset/cssreset-min.css +1 -0
  308. package/build/cssreset/cssreset.css +116 -0
  309. package/build/cssreset-context/cssreset-context-min.css +1 -0
  310. package/build/cssreset-context/cssreset-context.css +121 -0
  311. package/build/dataschema-array/dataschema-array-debug.js +189 -0
  312. package/build/dataschema-array/dataschema-array-min.js +1 -0
  313. package/build/dataschema-array/dataschema-array.js +186 -0
  314. package/build/dataschema-base/dataschema-base-debug.js +67 -0
  315. package/build/dataschema-base/dataschema-base-min.js +1 -0
  316. package/build/dataschema-base/dataschema-base.js +66 -0
  317. package/build/dataschema-json/dataschema-json-debug.js +443 -0
  318. package/build/dataschema-json/dataschema-json-min.js +1 -0
  319. package/build/dataschema-json/dataschema-json.js +439 -0
  320. package/build/dataschema-text/dataschema-text-debug.js +183 -0
  321. package/build/dataschema-text/dataschema-text-min.js +1 -0
  322. package/build/dataschema-text/dataschema-text.js +182 -0
  323. package/build/dataschema-xml/dataschema-xml-debug.js +385 -0
  324. package/build/dataschema-xml/dataschema-xml-min.js +1 -0
  325. package/build/dataschema-xml/dataschema-xml.js +383 -0
  326. package/build/datasource-arrayschema/datasource-arrayschema-debug.js +106 -0
  327. package/build/datasource-arrayschema/datasource-arrayschema-min.js +1 -0
  328. package/build/datasource-arrayschema/datasource-arrayschema.js +106 -0
  329. package/build/datasource-cache/datasource-cache-debug.js +166 -0
  330. package/build/datasource-cache/datasource-cache-min.js +1 -0
  331. package/build/datasource-cache/datasource-cache.js +166 -0
  332. package/build/datasource-function/datasource-function-debug.js +108 -0
  333. package/build/datasource-function/datasource-function-min.js +1 -0
  334. package/build/datasource-function/datasource-function.js +106 -0
  335. package/build/datasource-get/datasource-get-debug.js +213 -0
  336. package/build/datasource-get/datasource-get-min.js +1 -0
  337. package/build/datasource-get/datasource-get.js +209 -0
  338. package/build/datasource-io/datasource-io-debug.js +204 -0
  339. package/build/datasource-io/datasource-io-min.js +1 -0
  340. package/build/datasource-io/datasource-io.js +201 -0
  341. package/build/datasource-jsonschema/datasource-jsonschema-debug.js +103 -0
  342. package/build/datasource-jsonschema/datasource-jsonschema-min.js +1 -0
  343. package/build/datasource-jsonschema/datasource-jsonschema.js +103 -0
  344. package/build/datasource-local/datasource-local-debug.js +402 -0
  345. package/build/datasource-local/datasource-local-min.js +1 -0
  346. package/build/datasource-local/datasource-local.js +398 -0
  347. package/build/datasource-polling/datasource-polling-debug.js +93 -0
  348. package/build/datasource-polling/datasource-polling-min.js +1 -0
  349. package/build/datasource-polling/datasource-polling.js +93 -0
  350. package/build/datasource-textschema/datasource-textschema-debug.js +102 -0
  351. package/build/datasource-textschema/datasource-textschema-min.js +1 -0
  352. package/build/datasource-textschema/datasource-textschema.js +102 -0
  353. package/build/datasource-xmlschema/datasource-xmlschema-debug.js +102 -0
  354. package/build/datasource-xmlschema/datasource-xmlschema-min.js +1 -0
  355. package/build/datasource-xmlschema/datasource-xmlschema.js +102 -0
  356. package/build/datatable-base/assets/datatable-base-core.css +4 -0
  357. package/build/datatable-base/assets/skins/night/datatable-base-skin.css +74 -0
  358. package/build/datatable-base/assets/skins/night/datatable-base.css +1 -0
  359. package/build/datatable-base/assets/skins/sam/datatable-base-skin.css +69 -0
  360. package/build/datatable-base/assets/skins/sam/datatable-base.css +1 -0
  361. package/build/datatable-base/datatable-base-debug.js +694 -0
  362. package/build/datatable-base/datatable-base-min.js +1 -0
  363. package/build/datatable-base/datatable-base.js +694 -0
  364. package/build/datatable-body/datatable-body-debug.js +1211 -0
  365. package/build/datatable-body/datatable-body-min.js +2 -0
  366. package/build/datatable-body/datatable-body.js +1211 -0
  367. package/build/datatable-column-widths/datatable-column-widths-debug.js +323 -0
  368. package/build/datatable-column-widths/datatable-column-widths-min.js +1 -0
  369. package/build/datatable-column-widths/datatable-column-widths.js +323 -0
  370. package/build/datatable-core/datatable-core-debug.js +1321 -0
  371. package/build/datatable-core/datatable-core-min.js +1 -0
  372. package/build/datatable-core/datatable-core.js +1319 -0
  373. package/build/datatable-datasource/datatable-datasource-debug.js +180 -0
  374. package/build/datatable-datasource/datatable-datasource-min.js +1 -0
  375. package/build/datatable-datasource/datatable-datasource.js +180 -0
  376. package/build/datatable-foot/datatable-foot-debug.js +112 -0
  377. package/build/datatable-foot/datatable-foot-min.js +1 -0
  378. package/build/datatable-foot/datatable-foot.js +112 -0
  379. package/build/datatable-formatters/datatable-formatters-debug.js +563 -0
  380. package/build/datatable-formatters/datatable-formatters-min.js +1 -0
  381. package/build/datatable-formatters/datatable-formatters.js +563 -0
  382. package/build/datatable-head/datatable-head-debug.js +532 -0
  383. package/build/datatable-head/datatable-head-min.js +1 -0
  384. package/build/datatable-head/datatable-head.js +532 -0
  385. package/build/datatable-highlight/assets/datatable-highlight-core.css +26 -0
  386. package/build/datatable-highlight/assets/skins/night/datatable-highlight-skin.css +11 -0
  387. package/build/datatable-highlight/assets/skins/night/datatable-highlight.css +1 -0
  388. package/build/datatable-highlight/assets/skins/sam/datatable-highlight-skin.css +11 -0
  389. package/build/datatable-highlight/assets/skins/sam/datatable-highlight.css +1 -0
  390. package/build/datatable-highlight/datatable-highlight-debug.js +282 -0
  391. package/build/datatable-highlight/datatable-highlight-min.js +1 -0
  392. package/build/datatable-highlight/datatable-highlight.js +282 -0
  393. package/build/datatable-keynav/datatable-keynav-debug.js +706 -0
  394. package/build/datatable-keynav/datatable-keynav-min.js +2 -0
  395. package/build/datatable-keynav/datatable-keynav.js +706 -0
  396. package/build/datatable-message/assets/datatable-message-core.css +8 -0
  397. package/build/datatable-message/assets/skins/night/datatable-message-skin.css +6 -0
  398. package/build/datatable-message/assets/skins/night/datatable-message.css +1 -0
  399. package/build/datatable-message/assets/skins/sam/datatable-message-skin.css +5 -0
  400. package/build/datatable-message/assets/skins/sam/datatable-message.css +1 -0
  401. package/build/datatable-message/datatable-message-debug.js +290 -0
  402. package/build/datatable-message/datatable-message-min.js +1 -0
  403. package/build/datatable-message/datatable-message.js +290 -0
  404. package/build/datatable-message/lang/datatable-message.js +1 -0
  405. package/build/datatable-message/lang/datatable-message_en.js +1 -0
  406. package/build/datatable-message/lang/datatable-message_es.js +1 -0
  407. package/build/datatable-message/lang/datatable-message_fr.js +1 -0
  408. package/build/datatable-message/lang/datatable-message_hu.js +1 -0
  409. package/build/datatable-message/lang/datatable-message_it.js +1 -0
  410. package/build/datatable-mutable/datatable-mutable-debug.js +635 -0
  411. package/build/datatable-mutable/datatable-mutable-min.js +1 -0
  412. package/build/datatable-mutable/datatable-mutable.js +630 -0
  413. package/build/datatable-paginator/assets/datatable-paginator-core.css +58 -0
  414. package/build/datatable-paginator/assets/skins/night/datatable-paginator-skin.css +35 -0
  415. package/build/datatable-paginator/assets/skins/night/datatable-paginator.css +1 -0
  416. package/build/datatable-paginator/assets/skins/sam/datatable-paginator-skin.css +36 -0
  417. package/build/datatable-paginator/assets/skins/sam/datatable-paginator.css +1 -0
  418. package/build/datatable-paginator/datatable-paginator-debug.js +995 -0
  419. package/build/datatable-paginator/datatable-paginator-min.js +2 -0
  420. package/build/datatable-paginator/datatable-paginator.js +995 -0
  421. package/build/datatable-paginator/lang/datatable-paginator.js +1 -0
  422. package/build/datatable-paginator/lang/datatable-paginator_en.js +1 -0
  423. package/build/datatable-paginator/lang/datatable-paginator_fr.js +1 -0
  424. package/build/datatable-paginator-templates/datatable-paginator-templates-debug.js +87 -0
  425. package/build/datatable-paginator-templates/datatable-paginator-templates-min.js +1 -0
  426. package/build/datatable-paginator-templates/datatable-paginator-templates.js +87 -0
  427. package/build/datatable-scroll/assets/datatable-scroll-core.css +71 -0
  428. package/build/datatable-scroll/assets/skins/night/datatable-scroll-skin.css +25 -0
  429. package/build/datatable-scroll/assets/skins/night/datatable-scroll.css +1 -0
  430. package/build/datatable-scroll/assets/skins/sam/datatable-scroll-skin.css +24 -0
  431. package/build/datatable-scroll/assets/skins/sam/datatable-scroll.css +1 -0
  432. package/build/datatable-scroll/datatable-scroll-debug.js +1386 -0
  433. package/build/datatable-scroll/datatable-scroll-min.js +2 -0
  434. package/build/datatable-scroll/datatable-scroll.js +1386 -0
  435. package/build/datatable-sort/assets/datatable-sort-core.css +17 -0
  436. package/build/datatable-sort/assets/skins/night/datatable-sort-skin.css +85 -0
  437. package/build/datatable-sort/assets/skins/night/datatable-sort.css +1 -0
  438. package/build/datatable-sort/assets/skins/night/sort-arrow-sprite-ie.png +0 -0
  439. package/build/datatable-sort/assets/skins/night/sort-arrow-sprite.png +0 -0
  440. package/build/datatable-sort/assets/skins/sam/datatable-sort-skin.css +43 -0
  441. package/build/datatable-sort/assets/skins/sam/datatable-sort.css +1 -0
  442. package/build/datatable-sort/assets/skins/sam/sort-arrow-sprite-ie.png +0 -0
  443. package/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png +0 -0
  444. package/build/datatable-sort/datatable-sort-debug.js +979 -0
  445. package/build/datatable-sort/datatable-sort-min.js +1 -0
  446. package/build/datatable-sort/datatable-sort.js +979 -0
  447. package/build/datatable-sort/lang/datatable-sort.js +1 -0
  448. package/build/datatable-sort/lang/datatable-sort_en.js +1 -0
  449. package/build/datatable-sort/lang/datatable-sort_es.js +1 -0
  450. package/build/datatable-sort/lang/datatable-sort_fr.js +1 -0
  451. package/build/datatable-sort/lang/datatable-sort_hu.js +1 -0
  452. package/build/datatable-table/datatable-table-debug.js +755 -0
  453. package/build/datatable-table/datatable-table-min.js +1 -0
  454. package/build/datatable-table/datatable-table.js +755 -0
  455. package/build/datatype-date-format/datatype-date-format-debug.js +387 -0
  456. package/build/datatype-date-format/datatype-date-format-min.js +1 -0
  457. package/build/datatype-date-format/datatype-date-format.js +385 -0
  458. package/build/datatype-date-format/lang/datatype-date-format.js +1 -0
  459. package/build/datatype-date-format/lang/datatype-date-format_ar-JO.js +1 -0
  460. package/build/datatype-date-format/lang/datatype-date-format_ar.js +1 -0
  461. package/build/datatype-date-format/lang/datatype-date-format_ca-ES.js +1 -0
  462. package/build/datatype-date-format/lang/datatype-date-format_ca.js +1 -0
  463. package/build/datatype-date-format/lang/datatype-date-format_da-DK.js +1 -0
  464. package/build/datatype-date-format/lang/datatype-date-format_da.js +1 -0
  465. package/build/datatype-date-format/lang/datatype-date-format_de-AT.js +1 -0
  466. package/build/datatype-date-format/lang/datatype-date-format_de-DE.js +1 -0
  467. package/build/datatype-date-format/lang/datatype-date-format_de.js +1 -0
  468. package/build/datatype-date-format/lang/datatype-date-format_el-GR.js +1 -0
  469. package/build/datatype-date-format/lang/datatype-date-format_el.js +1 -0
  470. package/build/datatype-date-format/lang/datatype-date-format_en-AU.js +1 -0
  471. package/build/datatype-date-format/lang/datatype-date-format_en-CA.js +1 -0
  472. package/build/datatype-date-format/lang/datatype-date-format_en-GB.js +1 -0
  473. package/build/datatype-date-format/lang/datatype-date-format_en-IE.js +1 -0
  474. package/build/datatype-date-format/lang/datatype-date-format_en-IN.js +1 -0
  475. package/build/datatype-date-format/lang/datatype-date-format_en-JO.js +1 -0
  476. package/build/datatype-date-format/lang/datatype-date-format_en-MY.js +1 -0
  477. package/build/datatype-date-format/lang/datatype-date-format_en-NZ.js +1 -0
  478. package/build/datatype-date-format/lang/datatype-date-format_en-PH.js +1 -0
  479. package/build/datatype-date-format/lang/datatype-date-format_en-SG.js +1 -0
  480. package/build/datatype-date-format/lang/datatype-date-format_en-US.js +1 -0
  481. package/build/datatype-date-format/lang/datatype-date-format_en.js +1 -0
  482. package/build/datatype-date-format/lang/datatype-date-format_es-AR.js +1 -0
  483. package/build/datatype-date-format/lang/datatype-date-format_es-BO.js +1 -0
  484. package/build/datatype-date-format/lang/datatype-date-format_es-CL.js +1 -0
  485. package/build/datatype-date-format/lang/datatype-date-format_es-CO.js +1 -0
  486. package/build/datatype-date-format/lang/datatype-date-format_es-EC.js +1 -0
  487. package/build/datatype-date-format/lang/datatype-date-format_es-ES.js +1 -0
  488. package/build/datatype-date-format/lang/datatype-date-format_es-MX.js +1 -0
  489. package/build/datatype-date-format/lang/datatype-date-format_es-PE.js +1 -0
  490. package/build/datatype-date-format/lang/datatype-date-format_es-PY.js +1 -0
  491. package/build/datatype-date-format/lang/datatype-date-format_es-US.js +1 -0
  492. package/build/datatype-date-format/lang/datatype-date-format_es-UY.js +1 -0
  493. package/build/datatype-date-format/lang/datatype-date-format_es-VE.js +1 -0
  494. package/build/datatype-date-format/lang/datatype-date-format_es.js +1 -0
  495. package/build/datatype-date-format/lang/datatype-date-format_fi-FI.js +1 -0
  496. package/build/datatype-date-format/lang/datatype-date-format_fi.js +1 -0
  497. package/build/datatype-date-format/lang/datatype-date-format_fr-BE.js +1 -0
  498. package/build/datatype-date-format/lang/datatype-date-format_fr-CA.js +1 -0
  499. package/build/datatype-date-format/lang/datatype-date-format_fr-FR.js +1 -0
  500. package/build/datatype-date-format/lang/datatype-date-format_fr.js +1 -0
  501. package/build/datatype-date-format/lang/datatype-date-format_hi-IN.js +1 -0
  502. package/build/datatype-date-format/lang/datatype-date-format_hi.js +1 -0
  503. package/build/datatype-date-format/lang/datatype-date-format_hu.js +1 -0
  504. package/build/datatype-date-format/lang/datatype-date-format_id-ID.js +1 -0
  505. package/build/datatype-date-format/lang/datatype-date-format_id.js +1 -0
  506. package/build/datatype-date-format/lang/datatype-date-format_it-IT.js +1 -0
  507. package/build/datatype-date-format/lang/datatype-date-format_it.js +1 -0
  508. package/build/datatype-date-format/lang/datatype-date-format_ja-JP.js +1 -0
  509. package/build/datatype-date-format/lang/datatype-date-format_ja.js +1 -0
  510. package/build/datatype-date-format/lang/datatype-date-format_ko-KR.js +1 -0
  511. package/build/datatype-date-format/lang/datatype-date-format_ko.js +1 -0
  512. package/build/datatype-date-format/lang/datatype-date-format_ms-MY.js +1 -0
  513. package/build/datatype-date-format/lang/datatype-date-format_ms.js +1 -0
  514. package/build/datatype-date-format/lang/datatype-date-format_nb-NO.js +1 -0
  515. package/build/datatype-date-format/lang/datatype-date-format_nb.js +1 -0
  516. package/build/datatype-date-format/lang/datatype-date-format_nl-BE.js +1 -0
  517. package/build/datatype-date-format/lang/datatype-date-format_nl-NL.js +1 -0
  518. package/build/datatype-date-format/lang/datatype-date-format_nl.js +1 -0
  519. package/build/datatype-date-format/lang/datatype-date-format_pl-PL.js +1 -0
  520. package/build/datatype-date-format/lang/datatype-date-format_pl.js +1 -0
  521. package/build/datatype-date-format/lang/datatype-date-format_pt-BR.js +1 -0
  522. package/build/datatype-date-format/lang/datatype-date-format_pt.js +1 -0
  523. package/build/datatype-date-format/lang/datatype-date-format_ro-RO.js +1 -0
  524. package/build/datatype-date-format/lang/datatype-date-format_ro.js +1 -0
  525. package/build/datatype-date-format/lang/datatype-date-format_ru-RU.js +1 -0
  526. package/build/datatype-date-format/lang/datatype-date-format_ru.js +1 -0
  527. package/build/datatype-date-format/lang/datatype-date-format_sv-SE.js +1 -0
  528. package/build/datatype-date-format/lang/datatype-date-format_sv.js +1 -0
  529. package/build/datatype-date-format/lang/datatype-date-format_th-TH.js +1 -0
  530. package/build/datatype-date-format/lang/datatype-date-format_th.js +1 -0
  531. package/build/datatype-date-format/lang/datatype-date-format_tr-TR.js +1 -0
  532. package/build/datatype-date-format/lang/datatype-date-format_tr.js +1 -0
  533. package/build/datatype-date-format/lang/datatype-date-format_vi-VN.js +1 -0
  534. package/build/datatype-date-format/lang/datatype-date-format_vi.js +1 -0
  535. package/build/datatype-date-format/lang/datatype-date-format_zh-Hans-CN.js +1 -0
  536. package/build/datatype-date-format/lang/datatype-date-format_zh-Hans.js +1 -0
  537. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant-HK.js +1 -0
  538. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant-TW.js +1 -0
  539. package/build/datatype-date-format/lang/datatype-date-format_zh-Hant.js +1 -0
  540. package/build/datatype-date-math/datatype-date-math-debug.js +208 -0
  541. package/build/datatype-date-math/datatype-date-math-min.js +1 -0
  542. package/build/datatype-date-math/datatype-date-math.js +207 -0
  543. package/build/datatype-date-parse/datatype-date-parse-debug.js +36 -0
  544. package/build/datatype-date-parse/datatype-date-parse-min.js +1 -0
  545. package/build/datatype-date-parse/datatype-date-parse.js +35 -0
  546. package/build/datatype-number-format/datatype-number-format-debug.js +109 -0
  547. package/build/datatype-number-format/datatype-number-format-min.js +1 -0
  548. package/build/datatype-number-format/datatype-number-format.js +108 -0
  549. package/build/datatype-number-parse/datatype-number-parse-debug.js +105 -0
  550. package/build/datatype-number-parse/datatype-number-parse-min.js +1 -0
  551. package/build/datatype-number-parse/datatype-number-parse.js +104 -0
  552. package/build/datatype-xml-format/datatype-xml-format-debug.js +53 -0
  553. package/build/datatype-xml-format/datatype-xml-format-min.js +1 -0
  554. package/build/datatype-xml-format/datatype-xml-format.js +52 -0
  555. package/build/datatype-xml-parse/datatype-xml-parse-debug.js +50 -0
  556. package/build/datatype-xml-parse/datatype-xml-parse-min.js +1 -0
  557. package/build/datatype-xml-parse/datatype-xml-parse.js +49 -0
  558. package/build/dd-constrain/dd-constrain-debug.js +562 -0
  559. package/build/dd-constrain/dd-constrain-min.js +1 -0
  560. package/build/dd-constrain/dd-constrain.js +562 -0
  561. package/build/dd-ddm/dd-ddm-debug.js +126 -0
  562. package/build/dd-ddm/dd-ddm-min.js +1 -0
  563. package/build/dd-ddm/dd-ddm.js +126 -0
  564. package/build/dd-ddm-base/dd-ddm-base-debug.js +374 -0
  565. package/build/dd-ddm-base/dd-ddm-base-min.js +1 -0
  566. package/build/dd-ddm-base/dd-ddm-base.js +374 -0
  567. package/build/dd-ddm-drop/dd-ddm-drop-debug.js +399 -0
  568. package/build/dd-ddm-drop/dd-ddm-drop-min.js +1 -0
  569. package/build/dd-ddm-drop/dd-ddm-drop.js +399 -0
  570. package/build/dd-delegate/dd-delegate-debug.js +337 -0
  571. package/build/dd-delegate/dd-delegate-min.js +1 -0
  572. package/build/dd-delegate/dd-delegate.js +337 -0
  573. package/build/dd-drag/dd-drag-debug.js +1270 -0
  574. package/build/dd-drag/dd-drag-min.js +2 -0
  575. package/build/dd-drag/dd-drag.js +1267 -0
  576. package/build/dd-drop/dd-drop-debug.js +553 -0
  577. package/build/dd-drop/dd-drop-min.js +1 -0
  578. package/build/dd-drop/dd-drop.js +552 -0
  579. package/build/dd-drop-plugin/dd-drop-plugin-debug.js +44 -0
  580. package/build/dd-drop-plugin/dd-drop-plugin-min.js +1 -0
  581. package/build/dd-drop-plugin/dd-drop-plugin.js +44 -0
  582. package/build/dd-gestures/dd-gestures-debug.js +56 -0
  583. package/build/dd-gestures/dd-gestures-min.js +1 -0
  584. package/build/dd-gestures/dd-gestures.js +54 -0
  585. package/build/dd-plugin/dd-plugin-debug.js +205 -0
  586. package/build/dd-plugin/dd-plugin-min.js +1 -0
  587. package/build/dd-plugin/dd-plugin.js +200 -0
  588. package/build/dd-proxy/dd-proxy-debug.js +251 -0
  589. package/build/dd-proxy/dd-proxy-min.js +1 -0
  590. package/build/dd-proxy/dd-proxy.js +251 -0
  591. package/build/dd-scroll/dd-scroll-debug.js +423 -0
  592. package/build/dd-scroll/dd-scroll-min.js +1 -0
  593. package/build/dd-scroll/dd-scroll.js +423 -0
  594. package/build/dial/assets/dial-core.css +42 -0
  595. package/build/dial/assets/skins/night/dial-skin.css +89 -0
  596. package/build/dial/assets/skins/night/dial.css +1 -0
  597. package/build/dial/assets/skins/sam/dial-skin.css +75 -0
  598. package/build/dial/assets/skins/sam/dial.css +1 -0
  599. package/build/dial/dial-debug.js +1327 -0
  600. package/build/dial/dial-min.js +3 -0
  601. package/build/dial/dial.js +1327 -0
  602. package/build/dial/lang/dial.js +1 -0
  603. package/build/dial/lang/dial_en.js +1 -0
  604. package/build/dial/lang/dial_es.js +1 -0
  605. package/build/dial/lang/dial_hu.js +1 -0
  606. package/build/dom-base/dom-base-debug.js +699 -0
  607. package/build/dom-base/dom-base-min.js +2 -0
  608. package/build/dom-base/dom-base.js +695 -0
  609. package/build/dom-core/dom-core-debug.js +390 -0
  610. package/build/dom-core/dom-core-min.js +1 -0
  611. package/build/dom-core/dom-core.js +390 -0
  612. package/build/dom-screen/dom-screen-debug.js +611 -0
  613. package/build/dom-screen/dom-screen-min.js +1 -0
  614. package/build/dom-screen/dom-screen.js +605 -0
  615. package/build/dom-style/dom-style-debug.js +249 -0
  616. package/build/dom-style/dom-style-min.js +1 -0
  617. package/build/dom-style/dom-style.js +249 -0
  618. package/build/dom-style-ie/dom-style-ie-debug.js +300 -0
  619. package/build/dom-style-ie/dom-style-ie-min.js +1 -0
  620. package/build/dom-style-ie/dom-style-ie.js +297 -0
  621. package/build/dump/dump-debug.js +105 -0
  622. package/build/dump/dump-min.js +1 -0
  623. package/build/dump/dump.js +105 -0
  624. package/build/editor-base/editor-base-debug.js +946 -0
  625. package/build/editor-base/editor-base-min.js +2 -0
  626. package/build/editor-base/editor-base.js +943 -0
  627. package/build/editor-bidi/editor-bidi-debug.js +340 -0
  628. package/build/editor-bidi/editor-bidi-min.js +1 -0
  629. package/build/editor-bidi/editor-bidi.js +340 -0
  630. package/build/editor-br/editor-br-debug.js +137 -0
  631. package/build/editor-br/editor-br-min.js +1 -0
  632. package/build/editor-br/editor-br.js +137 -0
  633. package/build/editor-inline/editor-inline-debug.js +32 -0
  634. package/build/editor-inline/editor-inline-min.js +1 -0
  635. package/build/editor-inline/editor-inline.js +32 -0
  636. package/build/editor-lists/editor-lists-debug.js +127 -0
  637. package/build/editor-lists/editor-lists-min.js +1 -0
  638. package/build/editor-lists/editor-lists.js +122 -0
  639. package/build/editor-para/editor-para-debug.js +356 -0
  640. package/build/editor-para/editor-para-min.js +1 -0
  641. package/build/editor-para/editor-para.js +355 -0
  642. package/build/editor-para-base/editor-para-base-debug.js +132 -0
  643. package/build/editor-para-base/editor-para-base-min.js +1 -0
  644. package/build/editor-para-base/editor-para-base.js +131 -0
  645. package/build/editor-para-ie/editor-para-ie-debug.js +134 -0
  646. package/build/editor-para-ie/editor-para-ie-min.js +1 -0
  647. package/build/editor-para-ie/editor-para-ie.js +134 -0
  648. package/build/editor-selection/editor-selection-debug.js +1042 -0
  649. package/build/editor-selection/editor-selection-min.js +2 -0
  650. package/build/editor-selection/editor-selection.js +1026 -0
  651. package/build/editor-tab/editor-tab-debug.js +69 -0
  652. package/build/editor-tab/editor-tab-min.js +1 -0
  653. package/build/editor-tab/editor-tab.js +68 -0
  654. package/build/escape/escape-debug.js +92 -0
  655. package/build/escape/escape-min.js +1 -0
  656. package/build/escape/escape.js +92 -0
  657. package/build/event-base/event-base-debug.js +1368 -0
  658. package/build/event-base/event-base-min.js +2 -0
  659. package/build/event-base/event-base.js +1363 -0
  660. package/build/event-base-ie/event-base-ie-debug.js +303 -0
  661. package/build/event-base-ie/event-base-ie-min.js +3 -0
  662. package/build/event-base-ie/event-base-ie.js +303 -0
  663. package/build/event-contextmenu/event-contextmenu-debug.js +192 -0
  664. package/build/event-contextmenu/event-contextmenu-min.js +1 -0
  665. package/build/event-contextmenu/event-contextmenu.js +192 -0
  666. package/build/event-custom-base/event-custom-base-debug.js +2464 -0
  667. package/build/event-custom-base/event-custom-base-min.js +3 -0
  668. package/build/event-custom-base/event-custom-base.js +2449 -0
  669. package/build/event-custom-complex/event-custom-complex-debug.js +673 -0
  670. package/build/event-custom-complex/event-custom-complex-min.js +1 -0
  671. package/build/event-custom-complex/event-custom-complex.js +670 -0
  672. package/build/event-delegate/event-delegate-debug.js +348 -0
  673. package/build/event-delegate/event-delegate-min.js +1 -0
  674. package/build/event-delegate/event-delegate.js +347 -0
  675. package/build/event-flick/event-flick-debug.js +272 -0
  676. package/build/event-flick/event-flick-min.js +1 -0
  677. package/build/event-flick/event-flick.js +271 -0
  678. package/build/event-focus/event-focus-debug.js +280 -0
  679. package/build/event-focus/event-focus-min.js +1 -0
  680. package/build/event-focus/event-focus.js +280 -0
  681. package/build/event-hover/event-hover-debug.js +70 -0
  682. package/build/event-hover/event-hover-min.js +1 -0
  683. package/build/event-hover/event-hover.js +70 -0
  684. package/build/event-key/event-key-debug.js +172 -0
  685. package/build/event-key/event-key-min.js +1 -0
  686. package/build/event-key/event-key.js +172 -0
  687. package/build/event-mouseenter/event-mouseenter-debug.js +129 -0
  688. package/build/event-mouseenter/event-mouseenter-min.js +1 -0
  689. package/build/event-mouseenter/event-mouseenter.js +129 -0
  690. package/build/event-mousewheel/event-mousewheel-debug.js +50 -0
  691. package/build/event-mousewheel/event-mousewheel-min.js +1 -0
  692. package/build/event-mousewheel/event-mousewheel.js +50 -0
  693. package/build/event-move/event-move-debug.js +639 -0
  694. package/build/event-move/event-move-min.js +1 -0
  695. package/build/event-move/event-move.js +626 -0
  696. package/build/event-outside/event-outside-debug.js +107 -0
  697. package/build/event-outside/event-outside-min.js +1 -0
  698. package/build/event-outside/event-outside.js +107 -0
  699. package/build/event-resize/event-resize-debug.js +53 -0
  700. package/build/event-resize/event-resize-min.js +1 -0
  701. package/build/event-resize/event-resize.js +53 -0
  702. package/build/event-simulate/event-simulate-debug.js +957 -0
  703. package/build/event-simulate/event-simulate-min.js +2 -0
  704. package/build/event-simulate/event-simulate.js +957 -0
  705. package/build/event-synthetic/event-synthetic-debug.js +845 -0
  706. package/build/event-synthetic/event-synthetic-min.js +1 -0
  707. package/build/event-synthetic/event-synthetic.js +845 -0
  708. package/build/event-tap/event-tap-debug.js +299 -0
  709. package/build/event-tap/event-tap-min.js +1 -0
  710. package/build/event-tap/event-tap.js +296 -0
  711. package/build/event-touch/event-touch-debug.js +187 -0
  712. package/build/event-touch/event-touch-min.js +1 -0
  713. package/build/event-touch/event-touch.js +181 -0
  714. package/build/event-valuechange/event-valuechange-debug.js +568 -0
  715. package/build/event-valuechange/event-valuechange-min.js +1 -0
  716. package/build/event-valuechange/event-valuechange.js +554 -0
  717. package/build/exec-command/exec-command-debug.js +721 -0
  718. package/build/exec-command/exec-command-min.js +2 -0
  719. package/build/exec-command/exec-command.js +717 -0
  720. package/build/features/features-debug.js +406 -0
  721. package/build/features/features-min.js +1 -0
  722. package/build/features/features.js +405 -0
  723. package/build/file/file-debug.js +31 -0
  724. package/build/file/file-min.js +1 -0
  725. package/build/file/file.js +31 -0
  726. package/build/file-flash/file-flash-debug.js +341 -0
  727. package/build/file-flash/file-flash-min.js +1 -0
  728. package/build/file-flash/file-flash.js +341 -0
  729. package/build/file-html5/file-html5-debug.js +503 -0
  730. package/build/file-html5/file-html5-min.js +1 -0
  731. package/build/file-html5/file-html5.js +503 -0
  732. package/build/frame/frame-debug.js +1076 -0
  733. package/build/frame/frame-min.js +2 -0
  734. package/build/frame/frame.js +1047 -0
  735. package/build/gesture-simulate/gesture-simulate-debug.js +1321 -0
  736. package/build/gesture-simulate/gesture-simulate-min.js +2 -0
  737. package/build/gesture-simulate/gesture-simulate.js +1321 -0
  738. package/build/get/get-debug.js +1292 -0
  739. package/build/get/get-min.js +2 -0
  740. package/build/get/get.js +1275 -0
  741. package/build/get-nodejs/get-nodejs-debug.js +225 -0
  742. package/build/get-nodejs/get-nodejs-min.js +107 -0
  743. package/build/get-nodejs/get-nodejs.js +204 -0
  744. package/build/graphics/graphics-debug.js +1270 -0
  745. package/build/graphics/graphics-min.js +1 -0
  746. package/build/graphics/graphics.js +1270 -0
  747. package/build/graphics-canvas/graphics-canvas-debug.js +3691 -0
  748. package/build/graphics-canvas/graphics-canvas-min.js +5 -0
  749. package/build/graphics-canvas/graphics-canvas.js +3691 -0
  750. package/build/graphics-canvas-default/graphics-canvas-default-debug.js +12 -0
  751. package/build/graphics-canvas-default/graphics-canvas-default-min.js +1 -0
  752. package/build/graphics-canvas-default/graphics-canvas-default.js +12 -0
  753. package/build/graphics-group/graphics-group-debug.js +310 -0
  754. package/build/graphics-group/graphics-group-min.js +1 -0
  755. package/build/graphics-group/graphics-group.js +310 -0
  756. package/build/graphics-svg/graphics-svg-debug.js +3557 -0
  757. package/build/graphics-svg/graphics-svg-min.js +5 -0
  758. package/build/graphics-svg/graphics-svg.js +3557 -0
  759. package/build/graphics-svg-default/graphics-svg-default-debug.js +12 -0
  760. package/build/graphics-svg-default/graphics-svg-default-min.js +1 -0
  761. package/build/graphics-svg-default/graphics-svg-default.js +12 -0
  762. package/build/graphics-vml/graphics-vml-debug.js +3753 -0
  763. package/build/graphics-vml/graphics-vml-min.js +5 -0
  764. package/build/graphics-vml/graphics-vml.js +3753 -0
  765. package/build/graphics-vml-default/graphics-vml-default-debug.js +12 -0
  766. package/build/graphics-vml-default/graphics-vml-default-min.js +1 -0
  767. package/build/graphics-vml-default/graphics-vml-default.js +12 -0
  768. package/build/handlebars-base/handlebars-base-debug.js +693 -0
  769. package/build/handlebars-base/handlebars-base-min.js +7 -0
  770. package/build/handlebars-base/handlebars-base.js +693 -0
  771. package/build/handlebars-compiler/handlebars-compiler-debug.js +2519 -0
  772. package/build/handlebars-compiler/handlebars-compiler-min.js +12 -0
  773. package/build/handlebars-compiler/handlebars-compiler.js +2519 -0
  774. package/build/highlight-accentfold/highlight-accentfold-debug.js +144 -0
  775. package/build/highlight-accentfold/highlight-accentfold-min.js +1 -0
  776. package/build/highlight-accentfold/highlight-accentfold.js +144 -0
  777. package/build/highlight-base/highlight-base-debug.js +312 -0
  778. package/build/highlight-base/highlight-base-min.js +1 -0
  779. package/build/highlight-base/highlight-base.js +312 -0
  780. package/build/history-base/history-base-debug.js +639 -0
  781. package/build/history-base/history-base-min.js +1 -0
  782. package/build/history-base/history-base.js +639 -0
  783. package/build/history-hash/history-hash-debug.js +475 -0
  784. package/build/history-hash/history-hash-min.js +1 -0
  785. package/build/history-hash/history-hash.js +475 -0
  786. package/build/history-hash-ie/history-hash-ie-debug.js +138 -0
  787. package/build/history-hash-ie/history-hash-ie-min.js +1 -0
  788. package/build/history-hash-ie/history-hash-ie.js +134 -0
  789. package/build/history-html5/history-html5-debug.js +189 -0
  790. package/build/history-html5/history-html5-min.js +1 -0
  791. package/build/history-html5/history-html5.js +189 -0
  792. package/build/imageloader/imageloader-debug.js +665 -0
  793. package/build/imageloader/imageloader-min.js +1 -0
  794. package/build/imageloader/imageloader.js +653 -0
  795. package/build/intl/intl-debug.js +150 -0
  796. package/build/intl/intl-min.js +1 -0
  797. package/build/intl/intl.js +150 -0
  798. package/build/intl-base/intl-base-debug.js +88 -0
  799. package/build/intl-base/intl-base-min.js +1 -0
  800. package/build/intl-base/intl-base.js +88 -0
  801. package/build/io-base/io-base-debug.js +1059 -0
  802. package/build/io-base/io-base-min.js +1 -0
  803. package/build/io-base/io-base.js +1053 -0
  804. package/build/io-form/io-form-debug.js +130 -0
  805. package/build/io-form/io-form-min.js +1 -0
  806. package/build/io-form/io-form.js +129 -0
  807. package/build/io-nodejs/io-nodejs-debug.js +215 -0
  808. package/build/io-nodejs/io-nodejs-min.js +108 -0
  809. package/build/io-nodejs/io-nodejs.js +199 -0
  810. package/build/io-queue/io-queue-debug.js +173 -0
  811. package/build/io-queue/io-queue-min.js +1 -0
  812. package/build/io-queue/io-queue.js +170 -0
  813. package/build/io-upload-iframe/io-upload-iframe-debug.js +313 -0
  814. package/build/io-upload-iframe/io-upload-iframe-min.js +1 -0
  815. package/build/io-upload-iframe/io-upload-iframe.js +305 -0
  816. package/build/io-xdr/io-xdr-debug.js +318 -0
  817. package/build/io-xdr/io-xdr-min.js +1 -0
  818. package/build/io-xdr/io-xdr.js +318 -0
  819. package/build/json-parse/json-parse-debug.js +10 -0
  820. package/build/json-parse/json-parse-min.js +1 -0
  821. package/build/json-parse/json-parse.js +10 -0
  822. package/build/json-parse-shim/json-parse-shim-debug.js +183 -0
  823. package/build/json-parse-shim/json-parse-shim-min.js +1 -0
  824. package/build/json-parse-shim/json-parse-shim.js +183 -0
  825. package/build/json-stringify/json-stringify-debug.js +99 -0
  826. package/build/json-stringify/json-stringify-min.js +1 -0
  827. package/build/json-stringify/json-stringify.js +99 -0
  828. package/build/json-stringify-shim/json-stringify-shim-debug.js +233 -0
  829. package/build/json-stringify-shim/json-stringify-shim-min.js +1 -0
  830. package/build/json-stringify-shim/json-stringify-shim.js +233 -0
  831. package/build/jsonp/jsonp-debug.js +274 -0
  832. package/build/jsonp/jsonp-min.js +1 -0
  833. package/build/jsonp/jsonp.js +268 -0
  834. package/build/jsonp-url/jsonp-url-debug.js +133 -0
  835. package/build/jsonp-url/jsonp-url-min.js +1 -0
  836. package/build/jsonp-url/jsonp-url.js +133 -0
  837. package/build/lazy-model-list/lazy-model-list-debug.js +518 -0
  838. package/build/lazy-model-list/lazy-model-list-min.js +1 -0
  839. package/build/lazy-model-list/lazy-model-list.js +518 -0
  840. package/build/loader/loader-debug.js +6053 -0
  841. package/build/loader/loader-min.js +9 -0
  842. package/build/loader/loader.js +6010 -0
  843. package/build/loader-base/loader-base-debug.js +2955 -0
  844. package/build/loader-base/loader-base-min.js +4 -0
  845. package/build/loader-base/loader-base.js +2915 -0
  846. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler-debug.js +320 -0
  847. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler-min.js +1 -0
  848. package/build/loader-pathogen-combohandler/loader-pathogen-combohandler.js +316 -0
  849. package/build/loader-pathogen-encoder/loader-pathogen-encoder-debug.js +6373 -0
  850. package/build/loader-pathogen-encoder/loader-pathogen-encoder-min.js +10 -0
  851. package/build/loader-pathogen-encoder/loader-pathogen-encoder.js +6326 -0
  852. package/build/loader-rollup/loader-rollup-debug.js +102 -0
  853. package/build/loader-rollup/loader-rollup-min.js +1 -0
  854. package/build/loader-rollup/loader-rollup.js +99 -0
  855. package/build/loader-yui3/loader-yui3-debug.js +2995 -0
  856. package/build/loader-yui3/loader-yui3-min.js +6 -0
  857. package/build/loader-yui3/loader-yui3.js +2995 -0
  858. package/build/matrix/matrix-debug.js +932 -0
  859. package/build/matrix/matrix-min.js +2 -0
  860. package/build/matrix/matrix.js +932 -0
  861. package/build/model/model-debug.js +1008 -0
  862. package/build/model/model-min.js +1 -0
  863. package/build/model/model.js +1007 -0
  864. package/build/model-list/model-list-debug.js +1269 -0
  865. package/build/model-list/model-list-min.js +1 -0
  866. package/build/model-list/model-list.js +1269 -0
  867. package/build/model-sync-local/model-sync-local-debug.js +360 -0
  868. package/build/model-sync-local/model-sync-local-min.js +1 -0
  869. package/build/model-sync-local/model-sync-local.js +359 -0
  870. package/build/model-sync-rest/model-sync-rest-debug.js +733 -0
  871. package/build/model-sync-rest/model-sync-rest-min.js +1 -0
  872. package/build/model-sync-rest/model-sync-rest.js +733 -0
  873. package/build/node-base/node-base-debug.js +1003 -0
  874. package/build/node-base/node-base-min.js +1 -0
  875. package/build/node-base/node-base.js +1001 -0
  876. package/build/node-core/node-core-debug.js +1626 -0
  877. package/build/node-core/node-core-min.js +2 -0
  878. package/build/node-core/node-core.js +1622 -0
  879. package/build/node-event-delegate/node-event-delegate-debug.js +54 -0
  880. package/build/node-event-delegate/node-event-delegate-min.js +1 -0
  881. package/build/node-event-delegate/node-event-delegate.js +54 -0
  882. package/build/node-event-html5/node-event-html5-debug.js +52 -0
  883. package/build/node-event-html5/node-event-html5-min.js +1 -0
  884. package/build/node-event-html5/node-event-html5.js +52 -0
  885. package/build/node-event-simulate/node-event-simulate-debug.js +187 -0
  886. package/build/node-event-simulate/node-event-simulate-min.js +1 -0
  887. package/build/node-event-simulate/node-event-simulate.js +187 -0
  888. package/build/node-flick/assets/node-flick-core.css +8 -0
  889. package/build/node-flick/assets/skins/sam/node-flick-skin.css +1 -0
  890. package/build/node-flick/assets/skins/sam/node-flick.css +1 -0
  891. package/build/node-flick/node-flick-debug.js +524 -0
  892. package/build/node-flick/node-flick-min.js +1 -0
  893. package/build/node-flick/node-flick.js +523 -0
  894. package/build/node-focusmanager/node-focusmanager-debug.js +1073 -0
  895. package/build/node-focusmanager/node-focusmanager-min.js +1 -0
  896. package/build/node-focusmanager/node-focusmanager.js +1069 -0
  897. package/build/node-load/node-load-debug.js +65 -0
  898. package/build/node-load/node-load-min.js +1 -0
  899. package/build/node-load/node-load.js +65 -0
  900. package/build/node-menunav/assets/node-menunav-core.css +169 -0
  901. package/build/node-menunav/assets/skins/night/horizontal-menu-submenu-indicator.png +0 -0
  902. package/build/node-menunav/assets/skins/night/node-menunav-skin.css +312 -0
  903. package/build/node-menunav/assets/skins/night/node-menunav.css +1 -0
  904. package/build/node-menunav/assets/skins/night/vertical-menu-submenu-indicator.png +0 -0
  905. package/build/node-menunav/assets/skins/sam/horizontal-menu-submenu-indicator.png +0 -0
  906. package/build/node-menunav/assets/skins/sam/horizontal-menu-submenu-toggle.png +0 -0
  907. package/build/node-menunav/assets/skins/sam/node-menunav-skin.css +266 -0
  908. package/build/node-menunav/assets/skins/sam/node-menunav.css +1 -0
  909. package/build/node-menunav/assets/skins/sam/vertical-menu-submenu-indicator.png +0 -0
  910. package/build/node-menunav/node-menunav-debug.js +2189 -0
  911. package/build/node-menunav/node-menunav-min.js +2 -0
  912. package/build/node-menunav/node-menunav.js +2188 -0
  913. package/build/node-pluginhost/node-pluginhost-debug.js +91 -0
  914. package/build/node-pluginhost/node-pluginhost-min.js +1 -0
  915. package/build/node-pluginhost/node-pluginhost.js +91 -0
  916. package/build/node-screen/node-screen-debug.js +240 -0
  917. package/build/node-screen/node-screen-min.js +1 -0
  918. package/build/node-screen/node-screen.js +238 -0
  919. package/build/node-scroll-info/node-scroll-info-debug.js +656 -0
  920. package/build/node-scroll-info/node-scroll-info-min.js +1 -0
  921. package/build/node-scroll-info/node-scroll-info.js +656 -0
  922. package/build/node-style/node-style-debug.js +271 -0
  923. package/build/node-style/node-style-min.js +1 -0
  924. package/build/node-style/node-style.js +271 -0
  925. package/build/oop/oop-debug.js +432 -0
  926. package/build/oop/oop-min.js +1 -0
  927. package/build/oop/oop.js +432 -0
  928. package/build/overlay/assets/overlay-core.css +11 -0
  929. package/build/overlay/assets/skins/night/overlay-skin.css +175 -0
  930. package/build/overlay/assets/skins/night/overlay.css +1 -0
  931. package/build/overlay/assets/skins/sam/overlay-skin.css +0 -0
  932. package/build/overlay/assets/skins/sam/overlay.css +1 -0
  933. package/build/overlay/overlay-debug.js +39 -0
  934. package/build/overlay/overlay-min.js +1 -0
  935. package/build/overlay/overlay.js +39 -0
  936. package/build/paginator/paginator-debug.js +75 -0
  937. package/build/paginator/paginator-min.js +1 -0
  938. package/build/paginator/paginator.js +75 -0
  939. package/build/paginator-core/paginator-core-debug.js +146 -0
  940. package/build/paginator-core/paginator-core-min.js +1 -0
  941. package/build/paginator-core/paginator-core.js +146 -0
  942. package/build/paginator-url/paginator-url-debug.js +67 -0
  943. package/build/paginator-url/paginator-url-min.js +1 -0
  944. package/build/paginator-url/paginator-url.js +67 -0
  945. package/build/panel/assets/panel-core.css +22 -0
  946. package/build/panel/assets/skins/night/panel-skin.css +123 -0
  947. package/build/panel/assets/skins/night/panel.css +1 -0
  948. package/build/panel/assets/skins/night/sprite_icons.png +0 -0
  949. package/build/panel/assets/skins/sam/panel-skin.css +95 -0
  950. package/build/panel/assets/skins/sam/panel.css +1 -0
  951. package/build/panel/assets/skins/sam/sprite_icons.png +0 -0
  952. package/build/panel/panel-debug.js +112 -0
  953. package/build/panel/panel-min.js +1 -0
  954. package/build/panel/panel.js +112 -0
  955. package/build/parallel/parallel-debug.js +109 -0
  956. package/build/parallel/parallel-min.js +1 -0
  957. package/build/parallel/parallel.js +107 -0
  958. package/build/pjax/pjax-debug.js +170 -0
  959. package/build/pjax/pjax-min.js +1 -0
  960. package/build/pjax/pjax.js +170 -0
  961. package/build/pjax-base/pjax-base-debug.js +443 -0
  962. package/build/pjax-base/pjax-base-min.js +1 -0
  963. package/build/pjax-base/pjax-base.js +442 -0
  964. package/build/pjax-content/pjax-content-debug.js +281 -0
  965. package/build/pjax-content/pjax-content-min.js +1 -0
  966. package/build/pjax-content/pjax-content.js +281 -0
  967. package/build/pjax-plugin/pjax-plugin-debug.js +29 -0
  968. package/build/pjax-plugin/pjax-plugin-min.js +1 -0
  969. package/build/pjax-plugin/pjax-plugin.js +29 -0
  970. package/build/plugin/plugin-debug.js +265 -0
  971. package/build/plugin/plugin-min.js +1 -0
  972. package/build/plugin/plugin.js +263 -0
  973. package/build/pluginhost-base/pluginhost-base-debug.js +187 -0
  974. package/build/pluginhost-base/pluginhost-base-min.js +1 -0
  975. package/build/pluginhost-base/pluginhost-base.js +185 -0
  976. package/build/pluginhost-config/pluginhost-config-debug.js +130 -0
  977. package/build/pluginhost-config/pluginhost-config-min.js +1 -0
  978. package/build/pluginhost-config/pluginhost-config.js +130 -0
  979. package/build/promise/promise-debug.js +624 -0
  980. package/build/promise/promise-min.js +1 -0
  981. package/build/promise/promise.js +620 -0
  982. package/build/querystring-parse/querystring-parse-debug.js +162 -0
  983. package/build/querystring-parse/querystring-parse-min.js +1 -0
  984. package/build/querystring-parse/querystring-parse.js +162 -0
  985. package/build/querystring-parse-simple/querystring-parse-simple-debug.js +49 -0
  986. package/build/querystring-parse-simple/querystring-parse-simple-min.js +1 -0
  987. package/build/querystring-parse-simple/querystring-parse-simple.js +49 -0
  988. package/build/querystring-stringify/querystring-stringify-debug.js +111 -0
  989. package/build/querystring-stringify/querystring-stringify-min.js +1 -0
  990. package/build/querystring-stringify/querystring-stringify.js +106 -0
  991. package/build/querystring-stringify-simple/querystring-stringify-simple-debug.js +44 -0
  992. package/build/querystring-stringify-simple/querystring-stringify-simple-min.js +1 -0
  993. package/build/querystring-stringify-simple/querystring-stringify-simple.js +44 -0
  994. package/build/queue-promote/queue-promote-debug.js +53 -0
  995. package/build/queue-promote/queue-promote-min.js +1 -0
  996. package/build/queue-promote/queue-promote.js +53 -0
  997. package/build/range-slider/range-slider-debug.js +28 -0
  998. package/build/range-slider/range-slider-min.js +1 -0
  999. package/build/range-slider/range-slider.js +28 -0
  1000. package/build/recordset-base/recordset-base-debug.js +651 -0
  1001. package/build/recordset-base/recordset-base-min.js +1 -0
  1002. package/build/recordset-base/recordset-base.js +650 -0
  1003. package/build/recordset-filter/recordset-filter-debug.js +105 -0
  1004. package/build/recordset-filter/recordset-filter-min.js +1 -0
  1005. package/build/recordset-filter/recordset-filter.js +105 -0
  1006. package/build/recordset-indexer/recordset-indexer-debug.js +227 -0
  1007. package/build/recordset-indexer/recordset-indexer-min.js +1 -0
  1008. package/build/recordset-indexer/recordset-indexer.js +227 -0
  1009. package/build/recordset-sort/recordset-sort-debug.js +206 -0
  1010. package/build/recordset-sort/recordset-sort-min.js +1 -0
  1011. package/build/recordset-sort/recordset-sort.js +205 -0
  1012. package/build/resize-base/assets/resize-base-core.css +241 -0
  1013. package/build/resize-base/assets/skins/night/arrows.png +0 -0
  1014. package/build/resize-base/assets/skins/night/resize-base-skin.css +46 -0
  1015. package/build/resize-base/assets/skins/night/resize-base.css +1 -0
  1016. package/build/resize-base/assets/skins/sam/arrows.png +0 -0
  1017. package/build/resize-base/assets/skins/sam/resize-base-skin.css +46 -0
  1018. package/build/resize-base/assets/skins/sam/resize-base.css +1 -0
  1019. package/build/resize-base/resize-base-debug.js +1644 -0
  1020. package/build/resize-base/resize-base-min.js +2 -0
  1021. package/build/resize-base/resize-base.js +1643 -0
  1022. package/build/resize-constrain/resize-constrain-debug.js +455 -0
  1023. package/build/resize-constrain/resize-constrain-min.js +1 -0
  1024. package/build/resize-constrain/resize-constrain.js +455 -0
  1025. package/build/resize-plugin/resize-plugin-debug.js +208 -0
  1026. package/build/resize-plugin/resize-plugin-min.js +1 -0
  1027. package/build/resize-plugin/resize-plugin.js +208 -0
  1028. package/build/resize-proxy/resize-proxy-debug.js +166 -0
  1029. package/build/resize-proxy/resize-proxy-min.js +1 -0
  1030. package/build/resize-proxy/resize-proxy.js +166 -0
  1031. package/build/router/router-debug.js +1818 -0
  1032. package/build/router/router-min.js +2 -0
  1033. package/build/router/router.js +1810 -0
  1034. package/build/scrollview/scrollview-debug.js +21 -0
  1035. package/build/scrollview/scrollview-min.js +1 -0
  1036. package/build/scrollview/scrollview.js +21 -0
  1037. package/build/scrollview-base/assets/scrollview-base-core.css +14 -0
  1038. package/build/scrollview-base/assets/skins/night/scrollview-base-skin.css +0 -0
  1039. package/build/scrollview-base/assets/skins/night/scrollview-base.css +1 -0
  1040. package/build/scrollview-base/assets/skins/sam/scrollview-base-skin.css +3 -0
  1041. package/build/scrollview-base/assets/skins/sam/scrollview-base.css +1 -0
  1042. package/build/scrollview-base/scrollview-base-debug.js +1457 -0
  1043. package/build/scrollview-base/scrollview-base-min.js +2 -0
  1044. package/build/scrollview-base/scrollview-base.js +1457 -0
  1045. package/build/scrollview-base-ie/scrollview-base-ie-debug.js +55 -0
  1046. package/build/scrollview-base-ie/scrollview-base-ie-min.js +1 -0
  1047. package/build/scrollview-base-ie/scrollview-base-ie.js +55 -0
  1048. package/build/scrollview-list/assets/scrollview-list-core.css +0 -0
  1049. package/build/scrollview-list/assets/skins/night/scrollview-list-skin.css +57 -0
  1050. package/build/scrollview-list/assets/skins/night/scrollview-list.css +1 -0
  1051. package/build/scrollview-list/assets/skins/sam/scrollview-list-skin.css +37 -0
  1052. package/build/scrollview-list/assets/skins/sam/scrollview-list.css +1 -0
  1053. package/build/scrollview-list/scrollview-list-debug.js +130 -0
  1054. package/build/scrollview-list/scrollview-list-min.js +1 -0
  1055. package/build/scrollview-list/scrollview-list.js +130 -0
  1056. package/build/scrollview-paginator/scrollview-paginator-debug.js +746 -0
  1057. package/build/scrollview-paginator/scrollview-paginator-min.js +1 -0
  1058. package/build/scrollview-paginator/scrollview-paginator.js +746 -0
  1059. package/build/scrollview-scrollbars/assets/scrollview-scrollbars-core.css +95 -0
  1060. package/build/scrollview-scrollbars/assets/skins/night/scrollview-scrollbars-skin.css +96 -0
  1061. package/build/scrollview-scrollbars/assets/skins/night/scrollview-scrollbars.css +1 -0
  1062. package/build/scrollview-scrollbars/assets/skins/sam/scrollview-scrollbars-skin.css +90 -0
  1063. package/build/scrollview-scrollbars/assets/skins/sam/scrollview-scrollbars.css +1 -0
  1064. package/build/scrollview-scrollbars/scrollview-scrollbars-debug.js +563 -0
  1065. package/build/scrollview-scrollbars/scrollview-scrollbars-min.js +1 -0
  1066. package/build/scrollview-scrollbars/scrollview-scrollbars.js +563 -0
  1067. package/build/selector/selector-debug.js +5 -0
  1068. package/build/selector/selector-min.js +1 -0
  1069. package/build/selector/selector.js +5 -0
  1070. package/build/selector-css2/selector-css2-debug.js +460 -0
  1071. package/build/selector-css2/selector-css2-min.js +1 -0
  1072. package/build/selector-css2/selector-css2.js +459 -0
  1073. package/build/selector-css3/selector-css3-debug.js +152 -0
  1074. package/build/selector-css3/selector-css3-min.js +1 -0
  1075. package/build/selector-css3/selector-css3.js +152 -0
  1076. package/build/selector-native/selector-native-debug.js +405 -0
  1077. package/build/selector-native/selector-native-min.js +1 -0
  1078. package/build/selector-native/selector-native.js +400 -0
  1079. package/build/series-area/series-area-debug.js +103 -0
  1080. package/build/series-area/series-area-min.js +1 -0
  1081. package/build/series-area/series-area.js +103 -0
  1082. package/build/series-area-stacked/series-area-stacked-debug.js +60 -0
  1083. package/build/series-area-stacked/series-area-stacked-min.js +1 -0
  1084. package/build/series-area-stacked/series-area-stacked.js +60 -0
  1085. package/build/series-areaspline/series-areaspline-debug.js +63 -0
  1086. package/build/series-areaspline/series-areaspline-min.js +1 -0
  1087. package/build/series-areaspline/series-areaspline.js +63 -0
  1088. package/build/series-areaspline-stacked/series-areaspline-stacked-debug.js +50 -0
  1089. package/build/series-areaspline-stacked/series-areaspline-stacked-min.js +1 -0
  1090. package/build/series-areaspline-stacked/series-areaspline-stacked.js +50 -0
  1091. package/build/series-bar/series-bar-debug.js +169 -0
  1092. package/build/series-bar/series-bar-min.js +1 -0
  1093. package/build/series-bar/series-bar.js +169 -0
  1094. package/build/series-bar-stacked/series-bar-stacked-debug.js +364 -0
  1095. package/build/series-bar-stacked/series-bar-stacked-min.js +1 -0
  1096. package/build/series-bar-stacked/series-bar-stacked.js +364 -0
  1097. package/build/series-base/series-base-debug.js +408 -0
  1098. package/build/series-base/series-base-min.js +1 -0
  1099. package/build/series-base/series-base.js +408 -0
  1100. package/build/series-candlestick/series-candlestick-debug.js +314 -0
  1101. package/build/series-candlestick/series-candlestick-min.js +1 -0
  1102. package/build/series-candlestick/series-candlestick.js +314 -0
  1103. package/build/series-cartesian/series-cartesian-debug.js +947 -0
  1104. package/build/series-cartesian/series-cartesian-min.js +2 -0
  1105. package/build/series-cartesian/series-cartesian.js +947 -0
  1106. package/build/series-column/series-column-debug.js +160 -0
  1107. package/build/series-column/series-column-min.js +1 -0
  1108. package/build/series-column/series-column.js +160 -0
  1109. package/build/series-column-stacked/series-column-stacked-debug.js +351 -0
  1110. package/build/series-column-stacked/series-column-stacked-min.js +1 -0
  1111. package/build/series-column-stacked/series-column-stacked.js +351 -0
  1112. package/build/series-combo/series-combo-debug.js +283 -0
  1113. package/build/series-combo/series-combo-min.js +1 -0
  1114. package/build/series-combo/series-combo.js +283 -0
  1115. package/build/series-combo-stacked/series-combo-stacked-debug.js +86 -0
  1116. package/build/series-combo-stacked/series-combo-stacked-min.js +1 -0
  1117. package/build/series-combo-stacked/series-combo-stacked.js +86 -0
  1118. package/build/series-combospline/series-combospline-debug.js +60 -0
  1119. package/build/series-combospline/series-combospline-min.js +1 -0
  1120. package/build/series-combospline/series-combospline.js +60 -0
  1121. package/build/series-combospline-stacked/series-combospline-stacked-debug.js +72 -0
  1122. package/build/series-combospline-stacked/series-combospline-stacked-min.js +1 -0
  1123. package/build/series-combospline-stacked/series-combospline-stacked.js +72 -0
  1124. package/build/series-curve-util/series-curve-util-debug.js +135 -0
  1125. package/build/series-curve-util/series-curve-util-min.js +1 -0
  1126. package/build/series-curve-util/series-curve-util.js +135 -0
  1127. package/build/series-fill-util/series-fill-util-debug.js +517 -0
  1128. package/build/series-fill-util/series-fill-util-min.js +1 -0
  1129. package/build/series-fill-util/series-fill-util.js +517 -0
  1130. package/build/series-histogram-base/series-histogram-base-debug.js +245 -0
  1131. package/build/series-histogram-base/series-histogram-base-min.js +1 -0
  1132. package/build/series-histogram-base/series-histogram-base.js +245 -0
  1133. package/build/series-line/series-line-debug.js +113 -0
  1134. package/build/series-line/series-line-min.js +1 -0
  1135. package/build/series-line/series-line.js +113 -0
  1136. package/build/series-line-stacked/series-line-stacked-debug.js +49 -0
  1137. package/build/series-line-stacked/series-line-stacked-min.js +1 -0
  1138. package/build/series-line-stacked/series-line-stacked.js +49 -0
  1139. package/build/series-line-util/series-line-util-debug.js +287 -0
  1140. package/build/series-line-util/series-line-util-min.js +1 -0
  1141. package/build/series-line-util/series-line-util.js +287 -0
  1142. package/build/series-marker/series-marker-debug.js +89 -0
  1143. package/build/series-marker/series-marker-min.js +1 -0
  1144. package/build/series-marker/series-marker.js +89 -0
  1145. package/build/series-marker-stacked/series-marker-stacked-debug.js +50 -0
  1146. package/build/series-marker-stacked/series-marker-stacked-min.js +1 -0
  1147. package/build/series-marker-stacked/series-marker-stacked.js +50 -0
  1148. package/build/series-ohlc/series-ohlc-debug.js +237 -0
  1149. package/build/series-ohlc/series-ohlc-min.js +1 -0
  1150. package/build/series-ohlc/series-ohlc.js +237 -0
  1151. package/build/series-pie/series-pie-debug.js +724 -0
  1152. package/build/series-pie/series-pie-min.js +2 -0
  1153. package/build/series-pie/series-pie.js +724 -0
  1154. package/build/series-plot-util/series-plot-util-debug.js +552 -0
  1155. package/build/series-plot-util/series-plot-util-min.js +1 -0
  1156. package/build/series-plot-util/series-plot-util.js +552 -0
  1157. package/build/series-range/series-range-debug.js +132 -0
  1158. package/build/series-range/series-range-min.js +1 -0
  1159. package/build/series-range/series-range.js +132 -0
  1160. package/build/series-spline/series-spline-debug.js +82 -0
  1161. package/build/series-spline/series-spline-min.js +1 -0
  1162. package/build/series-spline/series-spline.js +82 -0
  1163. package/build/series-spline-stacked/series-spline-stacked-debug.js +50 -0
  1164. package/build/series-spline-stacked/series-spline-stacked-min.js +1 -0
  1165. package/build/series-spline-stacked/series-spline-stacked.js +50 -0
  1166. package/build/series-stacked/series-stacked-debug.js +356 -0
  1167. package/build/series-stacked/series-stacked-min.js +1 -0
  1168. package/build/series-stacked/series-stacked.js +356 -0
  1169. package/build/shim-plugin/shim-plugin-debug.js +106 -0
  1170. package/build/shim-plugin/shim-plugin-min.js +1 -0
  1171. package/build/shim-plugin/shim-plugin.js +106 -0
  1172. package/build/slider-base/assets/skins/audio/rail-x.png +0 -0
  1173. package/build/slider-base/assets/skins/audio/rail-y.png +0 -0
  1174. package/build/slider-base/assets/skins/audio/slider-base-skin.css +91 -0
  1175. package/build/slider-base/assets/skins/audio/slider-base.css +1 -0
  1176. package/build/slider-base/assets/skins/audio/slider-skin.css +91 -0
  1177. package/build/slider-base/assets/skins/audio/thumb-x.png +0 -0
  1178. package/build/slider-base/assets/skins/audio/thumb-y.png +0 -0
  1179. package/build/slider-base/assets/skins/audio-light/rail-x.png +0 -0
  1180. package/build/slider-base/assets/skins/audio-light/rail-y.png +0 -0
  1181. package/build/slider-base/assets/skins/audio-light/slider-base-skin.css +91 -0
  1182. package/build/slider-base/assets/skins/audio-light/slider-base.css +1 -0
  1183. package/build/slider-base/assets/skins/audio-light/slider-skin.css +91 -0
  1184. package/build/slider-base/assets/skins/audio-light/thumb-x.png +0 -0
  1185. package/build/slider-base/assets/skins/audio-light/thumb-y.png +0 -0
  1186. package/build/slider-base/assets/skins/capsule/rail-x-dots.png +0 -0
  1187. package/build/slider-base/assets/skins/capsule/rail-x-lines.png +0 -0
  1188. package/build/slider-base/assets/skins/capsule/rail-x.png +0 -0
  1189. package/build/slider-base/assets/skins/capsule/rail-y-dots.png +0 -0
  1190. package/build/slider-base/assets/skins/capsule/rail-y-lines.png +0 -0
  1191. package/build/slider-base/assets/skins/capsule/rail-y.png +0 -0
  1192. package/build/slider-base/assets/skins/capsule/slider-base-skin.css +93 -0
  1193. package/build/slider-base/assets/skins/capsule/slider-base.css +1 -0
  1194. package/build/slider-base/assets/skins/capsule/slider-skin.css +93 -0
  1195. package/build/slider-base/assets/skins/capsule/thumb-x-line.png +0 -0
  1196. package/build/slider-base/assets/skins/capsule/thumb-x.png +0 -0
  1197. package/build/slider-base/assets/skins/capsule/thumb-y-line.png +0 -0
  1198. package/build/slider-base/assets/skins/capsule/thumb-y-lines.png +0 -0
  1199. package/build/slider-base/assets/skins/capsule/thumb-y.png +0 -0
  1200. package/build/slider-base/assets/skins/capsule-dark/rail-x-dots.png +0 -0
  1201. package/build/slider-base/assets/skins/capsule-dark/rail-x-lines.png +0 -0
  1202. package/build/slider-base/assets/skins/capsule-dark/rail-x.png +0 -0
  1203. package/build/slider-base/assets/skins/capsule-dark/rail-y-dots.png +0 -0
  1204. package/build/slider-base/assets/skins/capsule-dark/rail-y-lines.png +0 -0
  1205. package/build/slider-base/assets/skins/capsule-dark/rail-y.png +0 -0
  1206. package/build/slider-base/assets/skins/capsule-dark/slider-base-skin.css +91 -0
  1207. package/build/slider-base/assets/skins/capsule-dark/slider-base.css +1 -0
  1208. package/build/slider-base/assets/skins/capsule-dark/slider-skin.css +91 -0
  1209. package/build/slider-base/assets/skins/capsule-dark/thumb-x-line.png +0 -0
  1210. package/build/slider-base/assets/skins/capsule-dark/thumb-x.png +0 -0
  1211. package/build/slider-base/assets/skins/capsule-dark/thumb-y-line.png +0 -0
  1212. package/build/slider-base/assets/skins/capsule-dark/thumb-y.png +0 -0
  1213. package/build/slider-base/assets/skins/night/rail-x-lines.png +0 -0
  1214. package/build/slider-base/assets/skins/night/rail-x.png +0 -0
  1215. package/build/slider-base/assets/skins/night/rail-y-lines.png +0 -0
  1216. package/build/slider-base/assets/skins/night/rail-y.png +0 -0
  1217. package/build/slider-base/assets/skins/night/slider-base-skin.css +87 -0
  1218. package/build/slider-base/assets/skins/night/slider-base.css +1 -0
  1219. package/build/slider-base/assets/skins/night/slider-skin.css +87 -0
  1220. package/build/slider-base/assets/skins/night/thumb-x.png +0 -0
  1221. package/build/slider-base/assets/skins/night/thumb-y.png +0 -0
  1222. package/build/slider-base/assets/skins/round/rail-x.png +0 -0
  1223. package/build/slider-base/assets/skins/round/rail-y.png +0 -0
  1224. package/build/slider-base/assets/skins/round/slider-base-skin.css +89 -0
  1225. package/build/slider-base/assets/skins/round/slider-base.css +1 -0
  1226. package/build/slider-base/assets/skins/round/slider-skin.css +89 -0
  1227. package/build/slider-base/assets/skins/round/thumb-x-grip.png +0 -0
  1228. package/build/slider-base/assets/skins/round/thumb-x.png +0 -0
  1229. package/build/slider-base/assets/skins/round/thumb-y-grip.png +0 -0
  1230. package/build/slider-base/assets/skins/round/thumb-y.png +0 -0
  1231. package/build/slider-base/assets/skins/round-dark/rail-x.png +0 -0
  1232. package/build/slider-base/assets/skins/round-dark/rail-y.png +0 -0
  1233. package/build/slider-base/assets/skins/round-dark/slider-base-skin.css +89 -0
  1234. package/build/slider-base/assets/skins/round-dark/slider-base.css +1 -0
  1235. package/build/slider-base/assets/skins/round-dark/slider-skin.css +89 -0
  1236. package/build/slider-base/assets/skins/round-dark/thumb-x-grip.png +0 -0
  1237. package/build/slider-base/assets/skins/round-dark/thumb-x.png +0 -0
  1238. package/build/slider-base/assets/skins/round-dark/thumb-y-grip.png +0 -0
  1239. package/build/slider-base/assets/skins/round-dark/thumb-y.png +0 -0
  1240. package/build/slider-base/assets/skins/sam/rail-x-lines.png +0 -0
  1241. package/build/slider-base/assets/skins/sam/rail-x.png +0 -0
  1242. package/build/slider-base/assets/skins/sam/rail-y-lines.png +0 -0
  1243. package/build/slider-base/assets/skins/sam/rail-y.png +0 -0
  1244. package/build/slider-base/assets/skins/sam/slider-base-skin.css +87 -0
  1245. package/build/slider-base/assets/skins/sam/slider-base.css +1 -0
  1246. package/build/slider-base/assets/skins/sam/slider-skin.css +87 -0
  1247. package/build/slider-base/assets/skins/sam/thumb-x.png +0 -0
  1248. package/build/slider-base/assets/skins/sam/thumb-y.png +0 -0
  1249. package/build/slider-base/assets/skins/sam-dark/rail-x-lines.png +0 -0
  1250. package/build/slider-base/assets/skins/sam-dark/rail-x.png +0 -0
  1251. package/build/slider-base/assets/skins/sam-dark/rail-y-lines.png +0 -0
  1252. package/build/slider-base/assets/skins/sam-dark/rail-y.png +0 -0
  1253. package/build/slider-base/assets/skins/sam-dark/slider-base-skin.css +87 -0
  1254. package/build/slider-base/assets/skins/sam-dark/slider-base.css +1 -0
  1255. package/build/slider-base/assets/skins/sam-dark/slider-skin.css +87 -0
  1256. package/build/slider-base/assets/skins/sam-dark/thumb-x.png +0 -0
  1257. package/build/slider-base/assets/skins/sam-dark/thumb-y.png +0 -0
  1258. package/build/slider-base/assets/slider-base-core.css +31 -0
  1259. package/build/slider-base/assets/slider-core.css +31 -0
  1260. package/build/slider-base/assets/thumb-x-oblong-dark.png +0 -0
  1261. package/build/slider-base/assets/thumb-x-oblong.png +0 -0
  1262. package/build/slider-base/assets/thumb-x-oblong2-dark.png +0 -0
  1263. package/build/slider-base/assets/thumb-x-oblong2.png +0 -0
  1264. package/build/slider-base/assets/thumb-y-oblong-dark.png +0 -0
  1265. package/build/slider-base/assets/thumb-y-oblong.png +0 -0
  1266. package/build/slider-base/assets/thumb-y-oblong2-dark.png +0 -0
  1267. package/build/slider-base/assets/thumb-y-oblong2.png +0 -0
  1268. package/build/slider-base/slider-base-debug.js +762 -0
  1269. package/build/slider-base/slider-base-min.js +1 -0
  1270. package/build/slider-base/slider-base.js +760 -0
  1271. package/build/slider-value-range/slider-value-range-debug.js +422 -0
  1272. package/build/slider-value-range/slider-value-range-min.js +1 -0
  1273. package/build/slider-value-range/slider-value-range.js +418 -0
  1274. package/build/sortable/sortable-debug.js +528 -0
  1275. package/build/sortable/sortable-min.js +1 -0
  1276. package/build/sortable/sortable.js +527 -0
  1277. package/build/sortable-scroll/sortable-scroll-debug.js +67 -0
  1278. package/build/sortable-scroll/sortable-scroll-min.js +1 -0
  1279. package/build/sortable-scroll/sortable-scroll.js +67 -0
  1280. package/build/stylesheet/stylesheet-debug.js +642 -0
  1281. package/build/stylesheet/stylesheet-min.js +1 -0
  1282. package/build/stylesheet/stylesheet.js +638 -0
  1283. package/build/substitute/substitute-debug.js +170 -0
  1284. package/build/substitute/substitute-min.js +1 -0
  1285. package/build/substitute/substitute.js +170 -0
  1286. package/build/swf/swf-debug.js +206 -0
  1287. package/build/swf/swf-min.js +1 -0
  1288. package/build/swf/swf.js +204 -0
  1289. package/build/swfdetect/swfdetect-debug.js +116 -0
  1290. package/build/swfdetect/swfdetect-min.js +1 -0
  1291. package/build/swfdetect/swfdetect.js +115 -0
  1292. package/build/tabview/assets/skins/night/tabview-skin.css +89 -0
  1293. package/build/tabview/assets/skins/night/tabview.css +1 -0
  1294. package/build/tabview/assets/skins/sam/tabview-skin.css +58 -0
  1295. package/build/tabview/assets/skins/sam/tabview.css +1 -0
  1296. package/build/tabview/assets/tabview-core.css +42 -0
  1297. package/build/tabview/tabview-debug.js +436 -0
  1298. package/build/tabview/tabview-min.js +1 -0
  1299. package/build/tabview/tabview.js +436 -0
  1300. package/build/tabview-base/tabview-base-debug.js +144 -0
  1301. package/build/tabview-base/tabview-base-min.js +1 -0
  1302. package/build/tabview-base/tabview-base.js +144 -0
  1303. package/build/tabview-plugin/tabview-plugin-debug.js +16 -0
  1304. package/build/tabview-plugin/tabview-plugin-min.js +1 -0
  1305. package/build/tabview-plugin/tabview-plugin.js +16 -0
  1306. package/build/template-base/template-base-debug.js +272 -0
  1307. package/build/template-base/template-base-min.js +1 -0
  1308. package/build/template-base/template-base.js +272 -0
  1309. package/build/template-micro/template-micro-debug.js +249 -0
  1310. package/build/template-micro/template-micro-min.js +1 -0
  1311. package/build/template-micro/template-micro.js +249 -0
  1312. package/build/test/test-debug.js +3869 -0
  1313. package/build/test/test-min.js +6 -0
  1314. package/build/test/test.js +3869 -0
  1315. package/build/test-console/assets/skins/sam/test-console-skin.css +58 -0
  1316. package/build/test-console/assets/skins/sam/test-console.css +1 -0
  1317. package/build/test-console/assets/test-console-core.css +8 -0
  1318. package/build/test-console/test-console-debug.js +307 -0
  1319. package/build/test-console/test-console-min.js +1 -0
  1320. package/build/test-console/test-console.js +307 -0
  1321. package/build/text-accentfold/text-accentfold-debug.js +162 -0
  1322. package/build/text-accentfold/text-accentfold-min.js +1 -0
  1323. package/build/text-accentfold/text-accentfold.js +162 -0
  1324. package/build/text-data-accentfold/text-data-accentfold-debug.js +46 -0
  1325. package/build/text-data-accentfold/text-data-accentfold-min.js +1 -0
  1326. package/build/text-data-accentfold/text-data-accentfold.js +46 -0
  1327. package/build/text-data-wordbreak/text-data-wordbreak-debug.js +29 -0
  1328. package/build/text-data-wordbreak/text-data-wordbreak-min.js +2 -0
  1329. package/build/text-data-wordbreak/text-data-wordbreak.js +29 -0
  1330. package/build/text-wordbreak/text-wordbreak-debug.js +363 -0
  1331. package/build/text-wordbreak/text-wordbreak-min.js +1 -0
  1332. package/build/text-wordbreak/text-wordbreak.js +362 -0
  1333. package/build/timers/timers-debug.js +314 -0
  1334. package/build/timers/timers-min.js +1 -0
  1335. package/build/timers/timers.js +314 -0
  1336. package/build/transition/transition-debug.js +760 -0
  1337. package/build/transition/transition-min.js +2 -0
  1338. package/build/transition/transition.js +758 -0
  1339. package/build/transition-timer/transition-timer-debug.js +334 -0
  1340. package/build/transition-timer/transition-timer-min.js +1 -0
  1341. package/build/transition-timer/transition-timer.js +334 -0
  1342. package/build/tree/tree-debug.js +940 -0
  1343. package/build/tree/tree-min.js +1 -0
  1344. package/build/tree/tree.js +940 -0
  1345. package/build/tree-labelable/tree-labelable-debug.js +79 -0
  1346. package/build/tree-labelable/tree-labelable-min.js +1 -0
  1347. package/build/tree-labelable/tree-labelable.js +79 -0
  1348. package/build/tree-lazy/tree-lazy-debug.js +176 -0
  1349. package/build/tree-lazy/tree-lazy-min.js +1 -0
  1350. package/build/tree-lazy/tree-lazy.js +175 -0
  1351. package/build/tree-node/tree-node-debug.js +555 -0
  1352. package/build/tree-node/tree-node-min.js +1 -0
  1353. package/build/tree-node/tree-node.js +555 -0
  1354. package/build/tree-openable/tree-openable-debug.js +241 -0
  1355. package/build/tree-openable/tree-openable-min.js +1 -0
  1356. package/build/tree-openable/tree-openable.js +241 -0
  1357. package/build/tree-selectable/tree-selectable-debug.js +289 -0
  1358. package/build/tree-selectable/tree-selectable-min.js +1 -0
  1359. package/build/tree-selectable/tree-selectable.js +289 -0
  1360. package/build/tree-sortable/tree-sortable-debug.js +377 -0
  1361. package/build/tree-sortable/tree-sortable-min.js +1 -0
  1362. package/build/tree-sortable/tree-sortable.js +377 -0
  1363. package/build/uploader/assets/uploader-flash-core.css +4 -0
  1364. package/build/uploader/uploader-debug.js +53 -0
  1365. package/build/uploader/uploader-min.js +1 -0
  1366. package/build/uploader/uploader.js +53 -0
  1367. package/build/uploader-flash/assets/uploader-flash-core.css +4 -0
  1368. package/build/uploader-flash/uploader-flash-debug.js +1612 -0
  1369. package/build/uploader-flash/uploader-flash-min.js +3 -0
  1370. package/build/uploader-flash/uploader-flash.js +1611 -0
  1371. package/build/uploader-html5/assets/uploader-flash-core.css +4 -0
  1372. package/build/uploader-html5/uploader-html5-debug.js +1006 -0
  1373. package/build/uploader-html5/uploader-html5-min.js +2 -0
  1374. package/build/uploader-html5/uploader-html5.js +1006 -0
  1375. package/build/uploader-queue/assets/uploader-flash-core.css +4 -0
  1376. package/build/uploader-queue/uploader-queue-debug.js +656 -0
  1377. package/build/uploader-queue/uploader-queue-min.js +1 -0
  1378. package/build/uploader-queue/uploader-queue.js +656 -0
  1379. package/build/view/view-debug.js +434 -0
  1380. package/build/view/view-min.js +1 -0
  1381. package/build/view/view.js +433 -0
  1382. package/build/view-node-map/view-node-map-debug.js +84 -0
  1383. package/build/view-node-map/view-node-map-min.js +1 -0
  1384. package/build/view-node-map/view-node-map.js +84 -0
  1385. package/build/widget-anim/widget-anim-debug.js +257 -0
  1386. package/build/widget-anim/widget-anim-min.js +1 -0
  1387. package/build/widget-anim/widget-anim.js +257 -0
  1388. package/build/widget-autohide/widget-autohide-debug.js +238 -0
  1389. package/build/widget-autohide/widget-autohide-min.js +1 -0
  1390. package/build/widget-autohide/widget-autohide.js +237 -0
  1391. package/build/widget-base/assets/skins/night/widget-base-skin.css +0 -0
  1392. package/build/widget-base/assets/skins/night/widget-base.css +1 -0
  1393. package/build/widget-base/assets/skins/sam/widget-base-skin.css +0 -0
  1394. package/build/widget-base/assets/skins/sam/widget-base.css +1 -0
  1395. package/build/widget-base/assets/widget-base-core.css +20 -0
  1396. package/build/widget-base/widget-base-debug.js +1293 -0
  1397. package/build/widget-base/widget-base-min.js +2 -0
  1398. package/build/widget-base/widget-base.js +1289 -0
  1399. package/build/widget-base-ie/widget-base-ie-debug.js +49 -0
  1400. package/build/widget-base-ie/widget-base-ie-min.js +1 -0
  1401. package/build/widget-base-ie/widget-base-ie.js +49 -0
  1402. package/build/widget-buttons/widget-buttons-debug.js +1294 -0
  1403. package/build/widget-buttons/widget-buttons-min.js +2 -0
  1404. package/build/widget-buttons/widget-buttons.js +1294 -0
  1405. package/build/widget-child/widget-child-debug.js +377 -0
  1406. package/build/widget-child/widget-child-min.js +1 -0
  1407. package/build/widget-child/widget-child.js +377 -0
  1408. package/build/widget-htmlparser/widget-htmlparser-debug.js +215 -0
  1409. package/build/widget-htmlparser/widget-htmlparser-min.js +1 -0
  1410. package/build/widget-htmlparser/widget-htmlparser.js +215 -0
  1411. package/build/widget-modality/assets/skins/night/widget-modality-skin.css +7 -0
  1412. package/build/widget-modality/assets/skins/night/widget-modality.css +1 -0
  1413. package/build/widget-modality/assets/skins/sam/widget-modality-skin.css +7 -0
  1414. package/build/widget-modality/assets/skins/sam/widget-modality.css +1 -0
  1415. package/build/widget-modality/assets/widget-modality-core.css +1 -0
  1416. package/build/widget-modality/widget-modality-debug.js +566 -0
  1417. package/build/widget-modality/widget-modality-min.js +3 -0
  1418. package/build/widget-modality/widget-modality.js +565 -0
  1419. package/build/widget-parent/widget-parent-debug.js +866 -0
  1420. package/build/widget-parent/widget-parent-min.js +1 -0
  1421. package/build/widget-parent/widget-parent.js +865 -0
  1422. package/build/widget-position/widget-position-debug.js +276 -0
  1423. package/build/widget-position/widget-position-min.js +1 -0
  1424. package/build/widget-position/widget-position.js +276 -0
  1425. package/build/widget-position-align/widget-position-align-debug.js +656 -0
  1426. package/build/widget-position-align/widget-position-align-min.js +1 -0
  1427. package/build/widget-position-align/widget-position-align.js +652 -0
  1428. package/build/widget-position-constrain/widget-position-constrain-debug.js +348 -0
  1429. package/build/widget-position-constrain/widget-position-constrain-min.js +1 -0
  1430. package/build/widget-position-constrain/widget-position-constrain.js +348 -0
  1431. package/build/widget-skin/widget-skin-debug.js +59 -0
  1432. package/build/widget-skin/widget-skin-min.js +1 -0
  1433. package/build/widget-skin/widget-skin.js +59 -0
  1434. package/build/widget-stack/assets/skins/night/widget-stack-skin.css +0 -0
  1435. package/build/widget-stack/assets/skins/night/widget-stack.css +1 -0
  1436. package/build/widget-stack/assets/skins/sam/widget-stack-skin.css +0 -0
  1437. package/build/widget-stack/assets/skins/sam/widget-stack.css +1 -0
  1438. package/build/widget-stack/assets/widget-stack-core.css +19 -0
  1439. package/build/widget-stack/widget-stack-debug.js +440 -0
  1440. package/build/widget-stack/widget-stack-min.js +1 -0
  1441. package/build/widget-stack/widget-stack.js +440 -0
  1442. package/build/widget-stdmod/widget-stdmod-debug.js +780 -0
  1443. package/build/widget-stdmod/widget-stdmod-min.js +1 -0
  1444. package/build/widget-stdmod/widget-stdmod.js +780 -0
  1445. package/build/widget-uievents/widget-uievents-debug.js +227 -0
  1446. package/build/widget-uievents/widget-uievents-min.js +1 -0
  1447. package/build/widget-uievents/widget-uievents.js +226 -0
  1448. package/build/yql/yql-debug.js +168 -0
  1449. package/build/yql/yql-min.js +1 -0
  1450. package/build/yql/yql.js +167 -0
  1451. package/build/yql-jsonp/yql-jsonp-debug.js +29 -0
  1452. package/build/yql-jsonp/yql-jsonp-min.js +1 -0
  1453. package/build/yql-jsonp/yql-jsonp.js +29 -0
  1454. package/build/yql-nodejs/yql-nodejs-debug.js +33 -0
  1455. package/build/yql-nodejs/yql-nodejs-min.js +22 -0
  1456. package/build/yql-nodejs/yql-nodejs.js +33 -0
  1457. package/build/yql-winjs/yql-winjs-debug.js +34 -0
  1458. package/build/yql-winjs/yql-winjs-min.js +1 -0
  1459. package/build/yql-winjs/yql-winjs.js +34 -0
  1460. package/build/yui/yui-debug.js +12330 -0
  1461. package/build/yui/yui-min.js +16 -0
  1462. package/build/yui/yui.js +12022 -0
  1463. package/build/yui-base/yui-base-debug.js +6254 -0
  1464. package/build/yui-base/yui-base-min.js +7 -0
  1465. package/build/yui-base/yui-base.js +5989 -0
  1466. package/build/yui-core/yui-core-debug.js +4264 -0
  1467. package/build/yui-core/yui-core-min.js +5 -0
  1468. package/build/yui-core/yui-core.js +4017 -0
  1469. package/build/yui-later/yui-later-debug.js +78 -0
  1470. package/build/yui-later/yui-later-min.js +1 -0
  1471. package/build/yui-later/yui-later.js +78 -0
  1472. package/build/yui-log/yui-log-debug.js +125 -0
  1473. package/build/yui-log/yui-log-min.js +1 -0
  1474. package/build/yui-log/yui-log.js +125 -0
  1475. package/build/yui-log-nodejs/yui-log-nodejs-debug.js +81 -0
  1476. package/build/yui-log-nodejs/yui-log-nodejs-min.js +1 -0
  1477. package/build/yui-log-nodejs/yui-log-nodejs.js +81 -0
  1478. package/build/yui-nodejs/yui-nodejs-debug.js +11418 -0
  1479. package/build/yui-nodejs/yui-nodejs-min.js +15 -0
  1480. package/build/yui-nodejs/yui-nodejs.js +10969 -0
  1481. package/build/yui-throttle/yui-throttle-debug.js +54 -0
  1482. package/build/yui-throttle/yui-throttle-min.js +3 -0
  1483. package/build/yui-throttle/yui-throttle.js +54 -0
  1484. package/index.js +3 -0
  1485. package/package.json +36 -0
@@ -0,0 +1,3173 @@
1
+ YUI.add('axis', function (Y, NAME) {
2
+
3
+ /**
4
+ * Provides base functionality for drawing chart axes.
5
+ *
6
+ * @module charts
7
+ * @submodule axis
8
+ */
9
+ var CONFIG = Y.config,
10
+ DOCUMENT = CONFIG.doc,
11
+ Y_Lang = Y.Lang,
12
+ IS_STRING = Y_Lang.isString,
13
+ Y_DOM = Y.DOM,
14
+ LeftAxisLayout,
15
+ RightAxisLayout,
16
+ BottomAxisLayout,
17
+ TopAxisLayout;
18
+ /**
19
+ * Algorithmic strategy for rendering a left axis.
20
+ *
21
+ * @class LeftAxisLayout
22
+ * @constructor
23
+ * @submodule axis
24
+ */
25
+ LeftAxisLayout = function() {};
26
+
27
+ LeftAxisLayout.prototype = {
28
+ /**
29
+ * Default margins for text fields.
30
+ *
31
+ * @private
32
+ * @method _getDefaultMargins
33
+ * @return Object
34
+ */
35
+ _getDefaultMargins: function()
36
+ {
37
+ return {
38
+ top: 0,
39
+ left: 0,
40
+ right: 4,
41
+ bottom: 0
42
+ };
43
+ },
44
+
45
+ /**
46
+ * Sets the length of the tick on either side of the axis line.
47
+ *
48
+ * @method setTickOffset
49
+ * @protected
50
+ */
51
+ setTickOffsets: function()
52
+ {
53
+ var host = this,
54
+ majorTicks = host.get("styles").majorTicks,
55
+ tickLength = majorTicks.length,
56
+ halfTick = tickLength * 0.5,
57
+ display = majorTicks.display;
58
+ host.set("topTickOffset", 0);
59
+ host.set("bottomTickOffset", 0);
60
+
61
+ switch(display)
62
+ {
63
+ case "inside" :
64
+ host.set("rightTickOffset", tickLength);
65
+ host.set("leftTickOffset", 0);
66
+ break;
67
+ case "outside" :
68
+ host.set("rightTickOffset", 0);
69
+ host.set("leftTickOffset", tickLength);
70
+ break;
71
+ case "cross":
72
+ host.set("rightTickOffset", halfTick);
73
+ host.set("leftTickOffset", halfTick);
74
+ break;
75
+ default:
76
+ host.set("rightTickOffset", 0);
77
+ host.set("leftTickOffset", 0);
78
+ break;
79
+ }
80
+ },
81
+
82
+ /**
83
+ * Draws a tick
84
+ *
85
+ * @method drawTick
86
+ * @param {Path} path reference to the path `Path` element in which to draw the tick.
87
+ * @param {Object} pt Point on the axis in which the tick will intersect.
88
+ * @param {Object} tickStyle Hash of properties to apply to the tick.
89
+ * @protected
90
+ */
91
+ drawTick: function(path, pt, tickStyles)
92
+ {
93
+ var host = this,
94
+ style = host.get("styles"),
95
+ padding = style.padding,
96
+ tickLength = tickStyles.length,
97
+ start = {x:padding.left, y:pt.y},
98
+ end = {x:tickLength + padding.left, y:pt.y};
99
+ host.drawLine(path, start, end);
100
+ },
101
+
102
+ /**
103
+ * Calculates the coordinates for the first point on an axis.
104
+ *
105
+ * @method getLineStart
106
+ * @return {Object}
107
+ * @protected
108
+ */
109
+ getLineStart: function()
110
+ {
111
+ var style = this.get("styles"),
112
+ padding = style.padding,
113
+ majorTicks = style.majorTicks,
114
+ tickLength = majorTicks.length,
115
+ display = majorTicks.display,
116
+ pt = {x:padding.left, y:0};
117
+ if(display === "outside")
118
+ {
119
+ pt.x += tickLength;
120
+ }
121
+ else if(display === "cross")
122
+ {
123
+ pt.x += tickLength/2;
124
+ }
125
+ return pt;
126
+ },
127
+
128
+ /**
129
+ * Calculates the point for a label.
130
+ *
131
+ * @method getLabelPoint
132
+ * @param {Object} point Point on the axis in which the tick will intersect.
133
+ * @return {Object}
134
+ * @protected
135
+ */
136
+ getLabelPoint: function(point)
137
+ {
138
+ return {x:point.x - this.get("leftTickOffset"), y:point.y};
139
+ },
140
+
141
+ /**
142
+ * Updates the value for the `maxLabelSize` for use in calculating total size.
143
+ *
144
+ * @method updateMaxLabelSize
145
+ * @param {HTMLElement} label to measure
146
+ * @protected
147
+ */
148
+ updateMaxLabelSize: function(labelWidth, labelHeight)
149
+ {
150
+ var host = this,
151
+ props = this._labelRotationProps,
152
+ rot = props.rot,
153
+ absRot = props.absRot,
154
+ sinRadians = props.sinRadians,
155
+ cosRadians = props.cosRadians,
156
+ max;
157
+ if(rot === 0)
158
+ {
159
+ max = labelWidth;
160
+ }
161
+ else if(absRot === 90)
162
+ {
163
+ max = labelHeight;
164
+ }
165
+ else
166
+ {
167
+ max = (cosRadians * labelWidth) + (sinRadians * labelHeight);
168
+ }
169
+ host._maxLabelSize = Math.max(host._maxLabelSize, max);
170
+ },
171
+
172
+ /**
173
+ * Determines the available label width when the axis width has been explicitly set.
174
+ *
175
+ * @method getExplicitlySized
176
+ * @return Boolean
177
+ * @protected
178
+ */
179
+ getExplicitlySized: function(styles)
180
+ {
181
+ if(this._explicitWidth)
182
+ {
183
+ var host = this,
184
+ w = host._explicitWidth,
185
+ totalTitleSize = host._totalTitleSize,
186
+ leftTickOffset = host.get("leftTickOffset"),
187
+ margin = styles.label.margin.right;
188
+ host._maxLabelSize = w - (leftTickOffset + margin + totalTitleSize);
189
+ return true;
190
+ }
191
+ return false;
192
+ },
193
+
194
+ /**
195
+ * Rotate and position title.
196
+ *
197
+ * @method positionTitle
198
+ * @param {HTMLElement} label to rotate position
199
+ * @protected
200
+ */
201
+ positionTitle: function(label)
202
+ {
203
+ var host = this,
204
+ bounds = host._titleBounds,
205
+ margin = host.get("styles").title.margin,
206
+ props = host._titleRotationProps,
207
+ w = bounds.right - bounds.left,
208
+ labelWidth = label.offsetWidth,
209
+ labelHeight = label.offsetHeight,
210
+ x = (labelWidth * -0.5) + (w * 0.5),
211
+ y = (host.get("height") * 0.5) - (labelHeight * 0.5);
212
+ props.labelWidth = labelWidth;
213
+ props.labelHeight = labelHeight;
214
+ if(margin && margin.left)
215
+ {
216
+ x += margin.left;
217
+ }
218
+ props.x = x;
219
+ props.y = y;
220
+ props.transformOrigin = [0.5, 0.5];
221
+ host._rotate(label, props);
222
+ },
223
+
224
+ /**
225
+ * Rotate and position labels.
226
+ *
227
+ * @method positionLabel
228
+ * @param {HTMLElement} label to rotate position
229
+ * @param {Object} pt hash containing the x and y coordinates in which the label will be positioned
230
+ * against.
231
+ * @protected
232
+ */
233
+ positionLabel: function(label, pt, styles, i)
234
+ {
235
+ var host = this,
236
+ offset = parseFloat(styles.label.offset),
237
+ tickOffset = host.get("leftTickOffset"),
238
+ totalTitleSize = this._totalTitleSize,
239
+ leftOffset = pt.x + totalTitleSize - tickOffset,
240
+ topOffset = pt.y,
241
+ props = this._labelRotationProps,
242
+ rot = props.rot,
243
+ absRot = props.absRot,
244
+ maxLabelSize = host._maxLabelSize,
245
+ labelWidth = this._labelWidths[i],
246
+ labelHeight = this._labelHeights[i];
247
+ if(rot === 0)
248
+ {
249
+ leftOffset -= labelWidth;
250
+ topOffset -= labelHeight * offset;
251
+ }
252
+ else if(rot === 90)
253
+ {
254
+ leftOffset -= labelWidth * 0.5;
255
+ topOffset = topOffset + labelWidth/2 - (labelWidth * offset);
256
+ }
257
+ else if(rot === -90)
258
+ {
259
+ leftOffset -= labelWidth * 0.5;
260
+ topOffset = topOffset - labelHeight + labelWidth/2 - (labelWidth * offset);
261
+ }
262
+ else
263
+ {
264
+ leftOffset -= labelWidth + (labelHeight * absRot/360);
265
+ topOffset -= labelHeight * offset;
266
+ }
267
+ props.labelWidth = labelWidth;
268
+ props.labelHeight = labelHeight;
269
+ props.x = Math.round(maxLabelSize + leftOffset);
270
+ props.y = Math.round(topOffset);
271
+ this._rotate(label, props);
272
+ },
273
+
274
+ /**
275
+ * Adjusts the coordinates of an axis label based on the rotation.
276
+ *
277
+ * @method _setRotationCoords
278
+ * @param {Object} props Coordinates, dimension and rotation properties of the label.
279
+ * @protected
280
+ */
281
+ _setRotationCoords: function(props)
282
+ {
283
+ var rot = props.rot,
284
+ absRot = props.absRot,
285
+ leftOffset,
286
+ topOffset,
287
+ labelWidth = props.labelWidth,
288
+ labelHeight = props.labelHeight;
289
+ if(rot === 0)
290
+ {
291
+ leftOffset = labelWidth;
292
+ topOffset = labelHeight * 0.5;
293
+ }
294
+ else if(rot === 90)
295
+ {
296
+ topOffset = 0;
297
+ leftOffset = labelWidth * 0.5;
298
+ }
299
+ else if(rot === -90)
300
+ {
301
+ leftOffset = labelWidth * 0.5;
302
+ topOffset = labelHeight;
303
+ }
304
+ else
305
+ {
306
+ leftOffset = labelWidth + (labelHeight * absRot/360);
307
+ topOffset = labelHeight * 0.5;
308
+ }
309
+ props.x -= leftOffset;
310
+ props.y -= topOffset;
311
+ },
312
+
313
+ /**
314
+ * Returns the transformOrigin to use for an axis label based on the position of the axis
315
+ * and the rotation of the label.
316
+ *
317
+ * @method _getTransformOrigin
318
+ * @param {Number} rot The rotation (in degrees) of the label.
319
+ * @return Array
320
+ * @protected
321
+ */
322
+ _getTransformOrigin: function(rot)
323
+ {
324
+ var transformOrigin;
325
+ if(rot === 0)
326
+ {
327
+ transformOrigin = [0, 0];
328
+ }
329
+ else if(rot === 90)
330
+ {
331
+ transformOrigin = [0.5, 0];
332
+ }
333
+ else if(rot === -90)
334
+ {
335
+ transformOrigin = [0.5, 1];
336
+ }
337
+ else
338
+ {
339
+ transformOrigin = [1, 0.5];
340
+ }
341
+ return transformOrigin;
342
+ },
343
+
344
+ /**
345
+ * Adjust the position of the Axis widget's content box for internal axes.
346
+ *
347
+ * @method offsetNodeForTick
348
+ * @param {Node} cb contentBox of the axis
349
+ * @protected
350
+ */
351
+ offsetNodeForTick: function()
352
+ {
353
+ },
354
+
355
+ /**
356
+ * Sets the width of the axis based on its contents.
357
+ *
358
+ * @method setCalculatedSize
359
+ * @protected
360
+ */
361
+ setCalculatedSize: function()
362
+ {
363
+ var host = this,
364
+ graphic = this.get("graphic"),
365
+ style = host.get("styles"),
366
+ label = style.label,
367
+ tickOffset = host.get("leftTickOffset"),
368
+ max = host._maxLabelSize,
369
+ totalTitleSize = this._totalTitleSize,
370
+ ttl = Math.round(totalTitleSize + tickOffset + max + label.margin.right);
371
+ if(this._explicitWidth)
372
+ {
373
+ ttl = this._explicitWidth;
374
+ }
375
+ this.set("calculatedWidth", ttl);
376
+ graphic.set("x", ttl - tickOffset);
377
+ }
378
+ };
379
+
380
+ Y.LeftAxisLayout = LeftAxisLayout;
381
+ /**
382
+ * RightAxisLayout contains algorithms for rendering a right axis.
383
+ *
384
+ * @class RightAxisLayout
385
+ * @constructor
386
+ * @submodule axis
387
+ */
388
+ RightAxisLayout = function(){};
389
+
390
+ RightAxisLayout.prototype = {
391
+ /**
392
+ * Default margins for text fields.
393
+ *
394
+ * @private
395
+ * @method _getDefaultMargins
396
+ * @return Object
397
+ */
398
+ _getDefaultMargins: function()
399
+ {
400
+ return {
401
+ top: 0,
402
+ left: 4,
403
+ right: 0,
404
+ bottom: 0
405
+ };
406
+ },
407
+
408
+ /**
409
+ * Sets the length of the tick on either side of the axis line.
410
+ *
411
+ * @method setTickOffset
412
+ * @protected
413
+ */
414
+ setTickOffsets: function()
415
+ {
416
+ var host = this,
417
+ majorTicks = host.get("styles").majorTicks,
418
+ tickLength = majorTicks.length,
419
+ halfTick = tickLength * 0.5,
420
+ display = majorTicks.display;
421
+ host.set("topTickOffset", 0);
422
+ host.set("bottomTickOffset", 0);
423
+
424
+ switch(display)
425
+ {
426
+ case "inside" :
427
+ host.set("leftTickOffset", tickLength);
428
+ host.set("rightTickOffset", 0);
429
+ break;
430
+ case "outside" :
431
+ host.set("leftTickOffset", 0);
432
+ host.set("rightTickOffset", tickLength);
433
+ break;
434
+ case "cross" :
435
+ host.set("rightTickOffset", halfTick);
436
+ host.set("leftTickOffset", halfTick);
437
+ break;
438
+ default:
439
+ host.set("leftTickOffset", 0);
440
+ host.set("rightTickOffset", 0);
441
+ break;
442
+ }
443
+ },
444
+
445
+ /**
446
+ * Draws a tick
447
+ *
448
+ * @method drawTick
449
+ * @param {Path} path reference to the path `Path` element in which to draw the tick.
450
+ * @param {Object} pt Point on the axis in which the tick will intersect.
451
+ * @param {Object} tickStyle Hash of properties to apply to the tick.
452
+ * @protected
453
+ */
454
+ drawTick: function(path, pt, tickStyles)
455
+ {
456
+ var host = this,
457
+ style = host.get("styles"),
458
+ padding = style.padding,
459
+ tickLength = tickStyles.length,
460
+ start = {x:padding.left, y:pt.y},
461
+ end = {x:padding.left + tickLength, y:pt.y};
462
+ host.drawLine(path, start, end);
463
+ },
464
+
465
+ /**
466
+ * Calculates the coordinates for the first point on an axis.
467
+ *
468
+ * @method getLineStart
469
+ * @return {Object}
470
+ * @protected
471
+ */
472
+ getLineStart: function()
473
+ {
474
+ var host = this,
475
+ style = host.get("styles"),
476
+ padding = style.padding,
477
+ majorTicks = style.majorTicks,
478
+ tickLength = majorTicks.length,
479
+ display = majorTicks.display,
480
+ pt = {x:padding.left, y:padding.top};
481
+ if(display === "inside")
482
+ {
483
+ pt.x += tickLength;
484
+ }
485
+ else if(display === "cross")
486
+ {
487
+ pt.x += tickLength/2;
488
+ }
489
+ return pt;
490
+ },
491
+
492
+ /**
493
+ * Calculates the point for a label.
494
+ *
495
+ * @method getLabelPoint
496
+ * @param {Object} point Point on the axis in which the tick will intersect.
497
+ * @return {Object}
498
+ * @protected
499
+ */
500
+ getLabelPoint: function(point)
501
+ {
502
+ return {x:point.x + this.get("rightTickOffset"), y:point.y};
503
+ },
504
+
505
+ /**
506
+ * Updates the value for the `maxLabelSize` for use in calculating total size.
507
+ *
508
+ * @method updateMaxLabelSize
509
+ * @param {HTMLElement} label to measure
510
+ * @protected
511
+ */
512
+ updateMaxLabelSize: function(labelWidth, labelHeight)
513
+ {
514
+ var host = this,
515
+ props = this._labelRotationProps,
516
+ rot = props.rot,
517
+ absRot = props.absRot,
518
+ sinRadians = props.sinRadians,
519
+ cosRadians = props.cosRadians,
520
+ max;
521
+ if(rot === 0)
522
+ {
523
+ max = labelWidth;
524
+ }
525
+ else if(absRot === 90)
526
+ {
527
+ max = labelHeight;
528
+ }
529
+ else
530
+ {
531
+ max = (cosRadians * labelWidth) + (sinRadians * labelHeight);
532
+ }
533
+ host._maxLabelSize = Math.max(host._maxLabelSize, max);
534
+ },
535
+
536
+ /**
537
+ * Determines the available label width when the axis width has been explicitly set.
538
+ *
539
+ * @method getExplicitlySized
540
+ * @return Boolean
541
+ * @protected
542
+ */
543
+ getExplicitlySized: function(styles)
544
+ {
545
+ if(this._explicitWidth)
546
+ {
547
+ var host = this,
548
+ w = host._explicitWidth,
549
+ totalTitleSize = this._totalTitleSize,
550
+ rightTickOffset = host.get("rightTickOffset"),
551
+ margin = styles.label.margin.right;
552
+ host._maxLabelSize = w - (rightTickOffset + margin + totalTitleSize);
553
+ return true;
554
+ }
555
+ return false;
556
+ },
557
+
558
+ /**
559
+ * Rotate and position title.
560
+ *
561
+ * @method positionTitle
562
+ * @param {HTMLElement} label to rotate position
563
+ * @protected
564
+ */
565
+ positionTitle: function(label)
566
+ {
567
+ var host = this,
568
+ bounds = host._titleBounds,
569
+ margin = host.get("styles").title.margin,
570
+ props = host._titleRotationProps,
571
+ labelWidth = label.offsetWidth,
572
+ labelHeight = label.offsetHeight,
573
+ w = bounds.right - bounds.left,
574
+ x = this.get("width") - (labelWidth * 0.5) - (w * 0.5),
575
+ y = (host.get("height") * 0.5) - (labelHeight * 0.5);
576
+ props.labelWidth = labelWidth;
577
+ props.labelHeight = labelHeight;
578
+ if(margin && margin.right)
579
+ {
580
+ x -= margin.left;
581
+ }
582
+ props.x = x;
583
+ props.y = y;
584
+ props.transformOrigin = [0.5, 0.5];
585
+ host._rotate(label, props);
586
+ },
587
+
588
+ /**
589
+ * Rotate and position labels.
590
+ *
591
+ * @method positionLabel
592
+ * @param {HTMLElement} label to rotate position
593
+ * @param {Object} pt hash containing the x and y coordinates in which the label will be positioned
594
+ * against.
595
+ * @protected
596
+ */
597
+ positionLabel: function(label, pt, styles, i)
598
+ {
599
+ var host = this,
600
+ offset = parseFloat(styles.label.offset),
601
+ tickOffset = host.get("rightTickOffset"),
602
+ labelStyles = styles.label,
603
+ margin = 0,
604
+ leftOffset = pt.x,
605
+ topOffset = pt.y,
606
+ props = this._labelRotationProps,
607
+ rot = props.rot,
608
+ absRot = props.absRot,
609
+ labelWidth = this._labelWidths[i],
610
+ labelHeight = this._labelHeights[i];
611
+ if(labelStyles.margin && labelStyles.margin.left)
612
+ {
613
+ margin = labelStyles.margin.left;
614
+ }
615
+ if(rot === 0)
616
+ {
617
+ topOffset -= labelHeight * offset;
618
+ }
619
+ else if(rot === 90)
620
+ {
621
+ leftOffset -= labelWidth * 0.5;
622
+ topOffset = topOffset - labelHeight + labelWidth/2 - (labelWidth * offset);
623
+ }
624
+ else if(rot === -90)
625
+ {
626
+ topOffset = topOffset + labelWidth/2 - (labelWidth * offset);
627
+ leftOffset -= labelWidth * 0.5;
628
+ }
629
+ else
630
+ {
631
+ topOffset -= labelHeight * offset;
632
+ leftOffset += labelHeight/2 * absRot/90;
633
+ }
634
+ leftOffset += margin;
635
+ leftOffset += tickOffset;
636
+ props.labelWidth = labelWidth;
637
+ props.labelHeight = labelHeight;
638
+ props.x = Math.round(leftOffset);
639
+ props.y = Math.round(topOffset);
640
+ this._rotate(label, props);
641
+ },
642
+
643
+ /**
644
+ * Adjusts the coordinates of an axis label based on the rotation.
645
+ *
646
+ * @method _setRotationCoords
647
+ * @param {Object} props Coordinates, dimension and rotation properties of the label.
648
+ * @protected
649
+ */
650
+ _setRotationCoords: function(props)
651
+ {
652
+ var rot = props.rot,
653
+ absRot = props.absRot,
654
+ leftOffset = 0,
655
+ topOffset = 0,
656
+ labelWidth = props.labelWidth,
657
+ labelHeight = props.labelHeight;
658
+ if(rot === 0)
659
+ {
660
+ topOffset = labelHeight * 0.5;
661
+ }
662
+ else if(rot === 90)
663
+ {
664
+ leftOffset = labelWidth * 0.5;
665
+ topOffset = labelHeight;
666
+ }
667
+ else if(rot === -90)
668
+ {
669
+ leftOffset = labelWidth * 0.5;
670
+ }
671
+ else
672
+ {
673
+ topOffset = labelHeight * 0.5;
674
+ leftOffset = labelHeight/2 * absRot/90;
675
+ }
676
+ props.x -= leftOffset;
677
+ props.y -= topOffset;
678
+ },
679
+
680
+ /**
681
+ * Returns the transformOrigin to use for an axis label based on the position of the axis
682
+ * and the rotation of the label.
683
+ *
684
+ * @method _getTransformOrigin
685
+ * @param {Number} rot The rotation (in degrees) of the label.
686
+ * @return Array
687
+ * @protected
688
+ */
689
+ _getTransformOrigin: function(rot)
690
+ {
691
+ var transformOrigin;
692
+ if(rot === 0)
693
+ {
694
+ transformOrigin = [0, 0];
695
+ }
696
+ else if(rot === 90)
697
+ {
698
+ transformOrigin = [0.5, 1];
699
+ }
700
+ else if(rot === -90)
701
+ {
702
+ transformOrigin = [0.5, 0];
703
+ }
704
+ else
705
+ {
706
+ transformOrigin = [0, 0.5];
707
+ }
708
+ return transformOrigin;
709
+ },
710
+
711
+ /**
712
+ * Adjusts position for inner ticks.
713
+ *
714
+ * @method offsetNodeForTick
715
+ * @param {Node} cb contentBox of the axis
716
+ * @protected
717
+ */
718
+ offsetNodeForTick: function(cb)
719
+ {
720
+ var host = this,
721
+ tickOffset = host.get("leftTickOffset"),
722
+ offset = 0 - tickOffset;
723
+ cb.setStyle("left", offset);
724
+ },
725
+
726
+ /**
727
+ * Assigns a height based on the size of the contents.
728
+ *
729
+ * @method setCalculatedSize
730
+ * @protected
731
+ */
732
+ setCalculatedSize: function()
733
+ {
734
+ var host = this,
735
+ styles = host.get("styles"),
736
+ labelStyle = styles.label,
737
+ totalTitleSize = this._totalTitleSize,
738
+ ttl = Math.round(host.get("rightTickOffset") + host._maxLabelSize + totalTitleSize + labelStyle.margin.left);
739
+ if(this._explicitWidth)
740
+ {
741
+ ttl = this._explicitWidth;
742
+ }
743
+ host.set("calculatedWidth", ttl);
744
+ host.get("contentBox").setStyle("width", ttl);
745
+ }
746
+ };
747
+
748
+ Y.RightAxisLayout = RightAxisLayout;
749
+ /**
750
+ * Contains algorithms for rendering a bottom axis.
751
+ *
752
+ * @class BottomAxisLayout
753
+ * @Constructor
754
+ * @submodule axis
755
+ */
756
+ BottomAxisLayout = function(){};
757
+
758
+ BottomAxisLayout.prototype = {
759
+ /**
760
+ * Default margins for text fields.
761
+ *
762
+ * @private
763
+ * @method _getDefaultMargins
764
+ * @return Object
765
+ */
766
+ _getDefaultMargins: function()
767
+ {
768
+ return {
769
+ top: 4,
770
+ left: 0,
771
+ right: 0,
772
+ bottom: 0
773
+ };
774
+ },
775
+
776
+ /**
777
+ * Sets the length of the tick on either side of the axis line.
778
+ *
779
+ * @method setTickOffsets
780
+ * @protected
781
+ */
782
+ setTickOffsets: function()
783
+ {
784
+ var host = this,
785
+ majorTicks = host.get("styles").majorTicks,
786
+ tickLength = majorTicks.length,
787
+ halfTick = tickLength * 0.5,
788
+ display = majorTicks.display;
789
+ host.set("leftTickOffset", 0);
790
+ host.set("rightTickOffset", 0);
791
+
792
+ switch(display)
793
+ {
794
+ case "inside" :
795
+ host.set("topTickOffset", tickLength);
796
+ host.set("bottomTickOffset", 0);
797
+ break;
798
+ case "outside" :
799
+ host.set("topTickOffset", 0);
800
+ host.set("bottomTickOffset", tickLength);
801
+ break;
802
+ case "cross":
803
+ host.set("topTickOffset", halfTick);
804
+ host.set("bottomTickOffset", halfTick);
805
+ break;
806
+ default:
807
+ host.set("topTickOffset", 0);
808
+ host.set("bottomTickOffset", 0);
809
+ break;
810
+ }
811
+ },
812
+
813
+ /**
814
+ * Calculates the coordinates for the first point on an axis.
815
+ *
816
+ * @method getLineStart
817
+ * @protected
818
+ */
819
+ getLineStart: function()
820
+ {
821
+ var style = this.get("styles"),
822
+ padding = style.padding,
823
+ majorTicks = style.majorTicks,
824
+ tickLength = majorTicks.length,
825
+ display = majorTicks.display,
826
+ pt = {x:0, y:padding.top};
827
+ if(display === "inside")
828
+ {
829
+ pt.y += tickLength;
830
+ }
831
+ else if(display === "cross")
832
+ {
833
+ pt.y += tickLength/2;
834
+ }
835
+ return pt;
836
+ },
837
+
838
+ /**
839
+ * Draws a tick
840
+ *
841
+ * @method drawTick
842
+ * @param {Path} path reference to the path `Path` element in which to draw the tick.
843
+ * @param {Object} pt hash containing x and y coordinates
844
+ * @param {Object} tickStyles hash of properties used to draw the tick
845
+ * @protected
846
+ */
847
+ drawTick: function(path, pt, tickStyles)
848
+ {
849
+ var host = this,
850
+ style = host.get("styles"),
851
+ padding = style.padding,
852
+ tickLength = tickStyles.length,
853
+ start = {x:pt.x, y:padding.top},
854
+ end = {x:pt.x, y:tickLength + padding.top};
855
+ host.drawLine(path, start, end);
856
+ },
857
+
858
+ /**
859
+ * Calculates the point for a label.
860
+ *
861
+ * @method getLabelPoint
862
+ * @param {Object} pt Object containing x and y coordinates
863
+ * @return Object
864
+ * @protected
865
+ */
866
+ getLabelPoint: function(point)
867
+ {
868
+ return {x:point.x, y:point.y + this.get("bottomTickOffset")};
869
+ },
870
+
871
+ /**
872
+ * Updates the value for the `maxLabelSize` for use in calculating total size.
873
+ *
874
+ * @method updateMaxLabelSize
875
+ * @param {HTMLElement} label to measure
876
+ * @protected
877
+ */
878
+ updateMaxLabelSize: function(labelWidth, labelHeight)
879
+ {
880
+ var host = this,
881
+ props = this._labelRotationProps,
882
+ rot = props.rot,
883
+ absRot = props.absRot,
884
+ sinRadians = props.sinRadians,
885
+ cosRadians = props.cosRadians,
886
+ max;
887
+ if(rot === 0)
888
+ {
889
+ max = labelHeight;
890
+ }
891
+ else if(absRot === 90)
892
+ {
893
+ max = labelWidth;
894
+ }
895
+ else
896
+ {
897
+ max = (sinRadians * labelWidth) + (cosRadians * labelHeight);
898
+ }
899
+ host._maxLabelSize = Math.max(host._maxLabelSize, max);
900
+ },
901
+
902
+ /**
903
+ * Determines the available label height when the axis width has been explicitly set.
904
+ *
905
+ * @method getExplicitlySized
906
+ * @return Boolean
907
+ * @protected
908
+ */
909
+ getExplicitlySized: function(styles)
910
+ {
911
+ if(this._explicitHeight)
912
+ {
913
+ var host = this,
914
+ h = host._explicitHeight,
915
+ totalTitleSize = host._totalTitleSize,
916
+ bottomTickOffset = host.get("bottomTickOffset"),
917
+ margin = styles.label.margin.right;
918
+ host._maxLabelSize = h - (bottomTickOffset + margin + totalTitleSize);
919
+ return true;
920
+ }
921
+ return false;
922
+ },
923
+
924
+ /**
925
+ * Rotate and position title.
926
+ *
927
+ * @method positionTitle
928
+ * @param {HTMLElement} label to rotate position
929
+ * @protected
930
+ */
931
+ positionTitle: function(label)
932
+ {
933
+ var host = this,
934
+ bounds = host._titleBounds,
935
+ margin = host.get("styles").title.margin,
936
+ props = host._titleRotationProps,
937
+ h = bounds.bottom - bounds.top,
938
+ labelWidth = label.offsetWidth,
939
+ labelHeight = label.offsetHeight,
940
+ x = (host.get("width") * 0.5) - (labelWidth * 0.5),
941
+ y = host.get("height") - labelHeight/2 - h/2;
942
+ props.labelWidth = labelWidth;
943
+ props.labelHeight = labelHeight;
944
+ if(margin && margin.bottom)
945
+ {
946
+ y -= margin.bottom;
947
+ }
948
+ props.x = x;
949
+ props.y = y;
950
+ props.transformOrigin = [0.5, 0.5];
951
+ host._rotate(label, props);
952
+ },
953
+
954
+ /**
955
+ * Rotate and position labels.
956
+ *
957
+ * @method positionLabel
958
+ * @param {HTMLElement} label to rotate position
959
+ * @param {Object} pt hash containing the x and y coordinates in which the label will be positioned
960
+ * against.
961
+ * @protected
962
+ */
963
+ positionLabel: function(label, pt, styles, i)
964
+ {
965
+ var host = this,
966
+ offset = parseFloat(styles.label.offset),
967
+ tickOffset = host.get("bottomTickOffset"),
968
+ labelStyles = styles.label,
969
+ margin = 0,
970
+ props = host._labelRotationProps,
971
+ rot = props.rot,
972
+ absRot = props.absRot,
973
+ leftOffset = Math.round(pt.x),
974
+ topOffset = Math.round(pt.y),
975
+ labelWidth = host._labelWidths[i],
976
+ labelHeight = host._labelHeights[i];
977
+ if(labelStyles.margin && labelStyles.margin.top)
978
+ {
979
+ margin = labelStyles.margin.top;
980
+ }
981
+ if(rot === 90)
982
+ {
983
+ topOffset -= labelHeight/2 * rot/90;
984
+ leftOffset = leftOffset + labelHeight/2 - (labelHeight * offset);
985
+ }
986
+ else if(rot === -90)
987
+ {
988
+ topOffset -= labelHeight/2 * absRot/90;
989
+ leftOffset = leftOffset - labelWidth + labelHeight/2 - (labelHeight * offset);
990
+ }
991
+ else if(rot > 0)
992
+ {
993
+ leftOffset = leftOffset + labelHeight/2 - (labelHeight * offset);
994
+ topOffset -= labelHeight/2 * rot/90;
995
+ }
996
+ else if(rot < 0)
997
+ {
998
+ leftOffset = leftOffset - labelWidth + labelHeight/2 - (labelHeight * offset);
999
+ topOffset -= labelHeight/2 * absRot/90;
1000
+ }
1001
+ else
1002
+ {
1003
+ leftOffset -= labelWidth * offset;
1004
+ }
1005
+ topOffset += margin;
1006
+ topOffset += tickOffset;
1007
+ props.labelWidth = labelWidth;
1008
+ props.labelHeight = labelHeight;
1009
+ props.x = leftOffset;
1010
+ props.y = topOffset;
1011
+ host._rotate(label, props);
1012
+ },
1013
+
1014
+ /**
1015
+ * Adjusts the coordinates of an axis label based on the rotation.
1016
+ *
1017
+ * @method _setRotationCoords
1018
+ * @param {Object} props Coordinates, dimension and rotation properties of the label.
1019
+ * @protected
1020
+ */
1021
+ _setRotationCoords: function(props)
1022
+ {
1023
+ var rot = props.rot,
1024
+ absRot = props.absRot,
1025
+ labelWidth = props.labelWidth,
1026
+ labelHeight = props.labelHeight,
1027
+ leftOffset,
1028
+ topOffset;
1029
+
1030
+ if(rot > 0)
1031
+ {
1032
+ leftOffset = 0;
1033
+ topOffset = labelHeight/2 * rot/90;
1034
+ }
1035
+ else if(rot < 0)
1036
+ {
1037
+ leftOffset = labelWidth;
1038
+ topOffset = labelHeight/2 * absRot/90;
1039
+ }
1040
+ else
1041
+ {
1042
+ leftOffset = labelWidth * 0.5;
1043
+ topOffset = 0;
1044
+ }
1045
+ props.x -= leftOffset;
1046
+ props.y -= topOffset;
1047
+ },
1048
+
1049
+ /**
1050
+ * Returns the transformOrigin to use for an axis label based on the position of the axis
1051
+ * and the rotation of the label.
1052
+ *
1053
+ * @method _getTransformOrigin
1054
+ * @param {Number} rot The rotation (in degrees) of the label.
1055
+ * @return Array
1056
+ * @protected
1057
+ */
1058
+ _getTransformOrigin: function(rot)
1059
+ {
1060
+ var transformOrigin;
1061
+ if(rot > 0)
1062
+ {
1063
+ transformOrigin = [0, 0.5];
1064
+ }
1065
+ else if(rot < 0)
1066
+ {
1067
+ transformOrigin = [1, 0.5];
1068
+ }
1069
+ else
1070
+ {
1071
+ transformOrigin = [0, 0];
1072
+ }
1073
+ return transformOrigin;
1074
+ },
1075
+
1076
+ /**
1077
+ * Adjusts position for inner ticks.
1078
+ *
1079
+ * @method offsetNodeForTick
1080
+ * @param {Node} cb contentBox of the axis
1081
+ * @protected
1082
+ */
1083
+ offsetNodeForTick: function(cb)
1084
+ {
1085
+ var host = this;
1086
+ cb.setStyle("top", 0 - host.get("topTickOffset"));
1087
+ },
1088
+
1089
+ /**
1090
+ * Assigns a height based on the size of the contents.
1091
+ *
1092
+ * @method setCalculatedSize
1093
+ * @protected
1094
+ */
1095
+ setCalculatedSize: function()
1096
+ {
1097
+ var host = this,
1098
+ styles = host.get("styles"),
1099
+ labelStyle = styles.label,
1100
+ totalTitleSize = host._totalTitleSize,
1101
+ ttl = Math.round(host.get("bottomTickOffset") + host._maxLabelSize + labelStyle.margin.top + totalTitleSize);
1102
+ if(host._explicitHeight)
1103
+ {
1104
+ ttl = host._explicitHeight;
1105
+ }
1106
+ host.set("calculatedHeight", ttl);
1107
+ }
1108
+ };
1109
+ Y.BottomAxisLayout = BottomAxisLayout;
1110
+ /**
1111
+ * Contains algorithms for rendering a top axis.
1112
+ *
1113
+ * @class TopAxisLayout
1114
+ * @constructor
1115
+ * @submodule axis
1116
+ */
1117
+ TopAxisLayout = function(){};
1118
+
1119
+ TopAxisLayout.prototype = {
1120
+ /**
1121
+ * Default margins for text fields.
1122
+ *
1123
+ * @private
1124
+ * @method _getDefaultMargins
1125
+ * @return Object
1126
+ */
1127
+ _getDefaultMargins: function()
1128
+ {
1129
+ return {
1130
+ top: 0,
1131
+ left: 0,
1132
+ right: 0,
1133
+ bottom: 4
1134
+ };
1135
+ },
1136
+
1137
+ /**
1138
+ * Sets the length of the tick on either side of the axis line.
1139
+ *
1140
+ * @method setTickOffsets
1141
+ * @protected
1142
+ */
1143
+ setTickOffsets: function()
1144
+ {
1145
+ var host = this,
1146
+ majorTicks = host.get("styles").majorTicks,
1147
+ tickLength = majorTicks.length,
1148
+ halfTick = tickLength * 0.5,
1149
+ display = majorTicks.display;
1150
+ host.set("leftTickOffset", 0);
1151
+ host.set("rightTickOffset", 0);
1152
+ switch(display)
1153
+ {
1154
+ case "inside" :
1155
+ host.set("bottomTickOffset", tickLength);
1156
+ host.set("topTickOffset", 0);
1157
+ break;
1158
+ case "outside" :
1159
+ host.set("bottomTickOffset", 0);
1160
+ host.set("topTickOffset", tickLength);
1161
+ break;
1162
+ case "cross" :
1163
+ host.set("topTickOffset", halfTick);
1164
+ host.set("bottomTickOffset", halfTick);
1165
+ break;
1166
+ default:
1167
+ host.set("topTickOffset", 0);
1168
+ host.set("bottomTickOffset", 0);
1169
+ break;
1170
+ }
1171
+ },
1172
+
1173
+ /**
1174
+ * Calculates the coordinates for the first point on an axis.
1175
+ *
1176
+ * @method getLineStart
1177
+ * @protected
1178
+ */
1179
+ getLineStart: function()
1180
+ {
1181
+ var host = this,
1182
+ style = host.get("styles"),
1183
+ padding = style.padding,
1184
+ majorTicks = style.majorTicks,
1185
+ tickLength = majorTicks.length,
1186
+ display = majorTicks.display,
1187
+ pt = {x:0, y:padding.top};
1188
+ if(display === "outside")
1189
+ {
1190
+ pt.y += tickLength;
1191
+ }
1192
+ else if(display === "cross")
1193
+ {
1194
+ pt.y += tickLength/2;
1195
+ }
1196
+ return pt;
1197
+ },
1198
+
1199
+ /**
1200
+ * Draws a tick
1201
+ *
1202
+ * @method drawTick
1203
+ * @param {Path} path reference to the path `Path` element in which to draw the tick.
1204
+ * @param {Object} pt hash containing x and y coordinates
1205
+ * @param {Object} tickStyles hash of properties used to draw the tick
1206
+ * @protected
1207
+ */
1208
+ drawTick: function(path, pt, tickStyles)
1209
+ {
1210
+ var host = this,
1211
+ style = host.get("styles"),
1212
+ padding = style.padding,
1213
+ tickLength = tickStyles.length,
1214
+ start = {x:pt.x, y:padding.top},
1215
+ end = {x:pt.x, y:tickLength + padding.top};
1216
+ host.drawLine(path, start, end);
1217
+ },
1218
+
1219
+ /**
1220
+ * Calculates the point for a label.
1221
+ *
1222
+ * @method getLabelPoint
1223
+ * @param {Object} pt hash containing x and y coordinates
1224
+ * @return Object
1225
+ * @protected
1226
+ */
1227
+ getLabelPoint: function(pt)
1228
+ {
1229
+ return {x:pt.x, y:pt.y - this.get("topTickOffset")};
1230
+ },
1231
+
1232
+ /**
1233
+ * Updates the value for the `maxLabelSize` for use in calculating total size.
1234
+ *
1235
+ * @method updateMaxLabelSize
1236
+ * @param {HTMLElement} label to measure
1237
+ * @protected
1238
+ */
1239
+ updateMaxLabelSize: function(labelWidth, labelHeight)
1240
+ {
1241
+ var host = this,
1242
+ props = this._labelRotationProps,
1243
+ rot = props.rot,
1244
+ absRot = props.absRot,
1245
+ sinRadians = props.sinRadians,
1246
+ cosRadians = props.cosRadians,
1247
+ max;
1248
+ if(rot === 0)
1249
+ {
1250
+ max = labelHeight;
1251
+ }
1252
+ else if(absRot === 90)
1253
+ {
1254
+ max = labelWidth;
1255
+ }
1256
+ else
1257
+ {
1258
+ max = (sinRadians * labelWidth) + (cosRadians * labelHeight);
1259
+ }
1260
+ host._maxLabelSize = Math.max(host._maxLabelSize, max);
1261
+ },
1262
+
1263
+ /**
1264
+ * Determines the available label height when the axis width has been explicitly set.
1265
+ *
1266
+ * @method getExplicitlySized
1267
+ * @return Boolean
1268
+ * @protected
1269
+ */
1270
+ getExplicitlySized: function(styles)
1271
+ {
1272
+ if(this._explicitHeight)
1273
+ {
1274
+ var host = this,
1275
+ h = host._explicitHeight,
1276
+ totalTitleSize = host._totalTitleSize,
1277
+ topTickOffset = host.get("topTickOffset"),
1278
+ margin = styles.label.margin.right;
1279
+ host._maxLabelSize = h - (topTickOffset + margin + totalTitleSize);
1280
+ return true;
1281
+ }
1282
+ return false;
1283
+ },
1284
+
1285
+ /**
1286
+ * Rotate and position title.
1287
+ *
1288
+ * @method positionTitle
1289
+ * @param {HTMLElement} label to rotate position
1290
+ * @protected
1291
+ */
1292
+ positionTitle: function(label)
1293
+ {
1294
+ var host = this,
1295
+ bounds = host._titleBounds,
1296
+ margin = host.get("styles").title.margin,
1297
+ props = host._titleRotationProps,
1298
+ labelWidth = label.offsetWidth,
1299
+ labelHeight = label.offsetHeight,
1300
+ h = bounds.bottom - bounds.top,
1301
+ x = (host.get("width") * 0.5) - (labelWidth * 0.5),
1302
+ y = h/2 - labelHeight/2;
1303
+ props.labelWidth = labelWidth;
1304
+ props.labelHeight = labelHeight;
1305
+ if(margin && margin.top)
1306
+ {
1307
+ y += margin.top;
1308
+ }
1309
+ props.x = x;
1310
+ props.y = y;
1311
+ props.transformOrigin = [0.5, 0.5];
1312
+ host._rotate(label, props);
1313
+ },
1314
+
1315
+ /**
1316
+ * Rotate and position labels.
1317
+ *
1318
+ * @method positionLabel
1319
+ * @param {HTMLElement} label to rotate position
1320
+ * @param {Object} pt hash containing the x and y coordinates in which the label will be positioned
1321
+ * against.
1322
+ * @protected
1323
+ */
1324
+ positionLabel: function(label, pt, styles, i)
1325
+ {
1326
+ var host = this,
1327
+ offset = parseFloat(styles.label.offset),
1328
+ totalTitleSize = this._totalTitleSize,
1329
+ maxLabelSize = host._maxLabelSize,
1330
+ leftOffset = pt.x,
1331
+ topOffset = pt.y + totalTitleSize + maxLabelSize,
1332
+ props = this._labelRotationProps,
1333
+ rot = props.rot,
1334
+ absRot = props.absRot,
1335
+ labelWidth = this._labelWidths[i],
1336
+ labelHeight = this._labelHeights[i];
1337
+ if(rot === 0)
1338
+ {
1339
+ leftOffset -= labelWidth * offset;
1340
+ topOffset -= labelHeight;
1341
+ }
1342
+ else
1343
+ {
1344
+ if(rot === 90)
1345
+ {
1346
+ leftOffset = leftOffset - labelWidth + labelHeight/2 - (labelHeight * offset);
1347
+ topOffset -= (labelHeight * 0.5);
1348
+ }
1349
+ else if (rot === -90)
1350
+ {
1351
+ leftOffset = leftOffset + labelHeight/2 - (labelHeight * offset);
1352
+ topOffset -= (labelHeight * 0.5);
1353
+ }
1354
+ else if(rot > 0)
1355
+ {
1356
+ leftOffset = leftOffset - labelWidth + labelHeight/2 - (labelHeight * offset);
1357
+ topOffset -= labelHeight - (labelHeight * rot/180);
1358
+ }
1359
+ else
1360
+ {
1361
+ leftOffset = leftOffset + labelHeight/2 - (labelHeight * offset);
1362
+ topOffset -= labelHeight - (labelHeight * absRot/180);
1363
+ }
1364
+ }
1365
+ props.x = Math.round(leftOffset);
1366
+ props.y = Math.round(topOffset);
1367
+ props.labelWidth = labelWidth;
1368
+ props.labelHeight = labelHeight;
1369
+ this._rotate(label, props);
1370
+ },
1371
+
1372
+ /**
1373
+ * Adjusts the coordinates of an axis label based on the rotation.
1374
+ *
1375
+ * @method _setRotationCoords
1376
+ * @param {Object} props Coordinates, dimension and rotation properties of the label.
1377
+ * @protected
1378
+ */
1379
+ _setRotationCoords: function(props)
1380
+ {
1381
+ var rot = props.rot,
1382
+ absRot = props.absRot,
1383
+ labelWidth = props.labelWidth,
1384
+ labelHeight = props.labelHeight,
1385
+ leftOffset,
1386
+ topOffset;
1387
+ if(rot === 0)
1388
+ {
1389
+ leftOffset = labelWidth * 0.5;
1390
+ topOffset = labelHeight;
1391
+ }
1392
+ else
1393
+ {
1394
+ if(rot === 90)
1395
+ {
1396
+ leftOffset = labelWidth;
1397
+ topOffset = (labelHeight * 0.5);
1398
+ }
1399
+ else if (rot === -90)
1400
+ {
1401
+ topOffset = (labelHeight * 0.5);
1402
+ }
1403
+ else if(rot > 0)
1404
+ {
1405
+ leftOffset = labelWidth;
1406
+ topOffset = labelHeight - (labelHeight * rot/180);
1407
+ }
1408
+ else
1409
+ {
1410
+ topOffset = labelHeight - (labelHeight * absRot/180);
1411
+ }
1412
+ }
1413
+ props.x -= leftOffset;
1414
+ props.y -= topOffset;
1415
+ },
1416
+
1417
+ /**
1418
+ * Returns the transformOrigin to use for an axis label based on the position of the axis
1419
+ * and the rotation of the label.
1420
+ *
1421
+ * @method _getTransformOrigin
1422
+ * @param {Number} rot The rotation (in degrees) of the label.
1423
+ * @return Array
1424
+ * @protected
1425
+ */
1426
+ _getTransformOrigin: function(rot)
1427
+ {
1428
+ var transformOrigin;
1429
+ if(rot === 0)
1430
+ {
1431
+ transformOrigin = [0, 0];
1432
+ }
1433
+ else
1434
+ {
1435
+ if(rot === 90)
1436
+ {
1437
+ transformOrigin = [1, 0.5];
1438
+ }
1439
+ else if (rot === -90)
1440
+ {
1441
+ transformOrigin = [0, 0.5];
1442
+ }
1443
+ else if(rot > 0)
1444
+ {
1445
+ transformOrigin = [1, 0.5];
1446
+ }
1447
+ else
1448
+ {
1449
+ transformOrigin = [0, 0.5];
1450
+ }
1451
+ }
1452
+ return transformOrigin;
1453
+ },
1454
+
1455
+ /**
1456
+ * Adjusts position for inner ticks.
1457
+ *
1458
+ * @method offsetNodeForTick
1459
+ * @param {Node} cb contentBox of the axis
1460
+ * @protected
1461
+ */
1462
+ offsetNodeForTick: function()
1463
+ {
1464
+ },
1465
+
1466
+ /**
1467
+ * Assigns a height based on the size of the contents.
1468
+ *
1469
+ * @method setCalculatedSize
1470
+ * @protected
1471
+ */
1472
+ setCalculatedSize: function()
1473
+ {
1474
+ var host = this,
1475
+ graphic = host.get("graphic"),
1476
+ styles = host.get("styles"),
1477
+ labelMargin = styles.label.margin,
1478
+ totalLabelSize = labelMargin.bottom + host._maxLabelSize,
1479
+ totalTitleSize = host._totalTitleSize,
1480
+ topTickOffset = this.get("topTickOffset"),
1481
+ ttl = Math.round(topTickOffset + totalLabelSize + totalTitleSize);
1482
+ if(this._explicitHeight)
1483
+ {
1484
+ ttl = this._explicitHeight;
1485
+ }
1486
+ host.set("calculatedHeight", ttl);
1487
+ graphic.set("y", ttl - topTickOffset);
1488
+ }
1489
+ };
1490
+ Y.TopAxisLayout = TopAxisLayout;
1491
+
1492
+ /**
1493
+ * An abstract class that provides the core functionality for draw a chart axis. Axis is used by the following classes:
1494
+ * <ul>
1495
+ * <li>{{#crossLink "CategoryAxis"}}{{/crossLink}}</li>
1496
+ * <li>{{#crossLink "NumericAxis"}}{{/crossLink}}</li>
1497
+ * <li>{{#crossLink "StackedAxis"}}{{/crossLink}}</li>
1498
+ * <li>{{#crossLink "TimeAxis"}}{{/crossLink}}</li>
1499
+ * </ul>
1500
+ *
1501
+ * @class Axis
1502
+ * @extends Widget
1503
+ * @uses AxisBase
1504
+ * @uses TopAxisLayout
1505
+ * @uses RightAxisLayout
1506
+ * @uses BottomAxisLayout
1507
+ * @uses LeftAxisLayout
1508
+ * @constructor
1509
+ * @param {Object} config (optional) Configuration parameters.
1510
+ * @submodule axis
1511
+ */
1512
+ Y.Axis = Y.Base.create("axis", Y.Widget, [Y.AxisBase], {
1513
+ /**
1514
+ * Calculates and returns a value based on the number of labels and the index of
1515
+ * the current label.
1516
+ *
1517
+ * @method getLabelByIndex
1518
+ * @param {Number} i Index of the label.
1519
+ * @param {Number} l Total number of labels.
1520
+ * @return String
1521
+ */
1522
+ getLabelByIndex: function(i, l)
1523
+ {
1524
+ var position = this.get("position"),
1525
+ direction = position === "left" || position === "right" ? "vertical" : "horizontal";
1526
+ return this._getLabelByIndex(i, l, direction);
1527
+ },
1528
+
1529
+ /**
1530
+ * @method bindUI
1531
+ * @private
1532
+ */
1533
+ bindUI: function()
1534
+ {
1535
+ this.after("dataReady", Y.bind(this._dataChangeHandler, this));
1536
+ this.after("dataUpdate", Y.bind(this._dataChangeHandler, this));
1537
+ this.after("stylesChange", this._updateHandler);
1538
+ this.after("overlapGraphChange", this._updateHandler);
1539
+ this.after("positionChange", this._positionChangeHandler);
1540
+ this.after("widthChange", this._handleSizeChange);
1541
+ this.after("heightChange", this._handleSizeChange);
1542
+ this.after("calculatedWidthChange", this._handleSizeChange);
1543
+ this.after("calculatedHeightChange", this._handleSizeChange);
1544
+ },
1545
+ /**
1546
+ * Storage for calculatedWidth value.
1547
+ *
1548
+ * @property _calculatedWidth
1549
+ * @type Number
1550
+ * @private
1551
+ */
1552
+ _calculatedWidth: 0,
1553
+
1554
+ /**
1555
+ * Storage for calculatedHeight value.
1556
+ *
1557
+ * @property _calculatedHeight
1558
+ * @type Number
1559
+ * @private
1560
+ */
1561
+ _calculatedHeight: 0,
1562
+
1563
+ /**
1564
+ * Handles change to the dataProvider
1565
+ *
1566
+ * @method _dataChangeHandler
1567
+ * @param {Object} e Event object
1568
+ * @private
1569
+ */
1570
+ _dataChangeHandler: function()
1571
+ {
1572
+ if(this.get("rendered"))
1573
+ {
1574
+ this._drawAxis();
1575
+ }
1576
+ },
1577
+
1578
+ /**
1579
+ * Handles change to the position attribute
1580
+ *
1581
+ * @method _positionChangeHandler
1582
+ * @param {Object} e Event object
1583
+ * @private
1584
+ */
1585
+ _positionChangeHandler: function(e)
1586
+ {
1587
+ this._updateGraphic(e.newVal);
1588
+ this._updateHandler();
1589
+ },
1590
+
1591
+ /**
1592
+ * Updates the the Graphic instance
1593
+ *
1594
+ * @method _updateGraphic
1595
+ * @param {String} position Position of axis
1596
+ * @private
1597
+ */
1598
+ _updateGraphic: function(position)
1599
+ {
1600
+ var graphic = this.get("graphic");
1601
+ if(position === "none")
1602
+ {
1603
+ if(graphic)
1604
+ {
1605
+ graphic.destroy();
1606
+ }
1607
+ }
1608
+ else
1609
+ {
1610
+ if(!graphic)
1611
+ {
1612
+ this._setCanvas();
1613
+ }
1614
+ }
1615
+ },
1616
+
1617
+ /**
1618
+ * Handles changes to axis.
1619
+ *
1620
+ * @method _updateHandler
1621
+ * @param {Object} e Event object
1622
+ * @private
1623
+ */
1624
+ _updateHandler: function()
1625
+ {
1626
+ if(this.get("rendered"))
1627
+ {
1628
+ this._drawAxis();
1629
+ }
1630
+ },
1631
+
1632
+ /**
1633
+ * @method renderUI
1634
+ * @private
1635
+ */
1636
+ renderUI: function()
1637
+ {
1638
+ this._updateGraphic(this.get("position"));
1639
+ },
1640
+
1641
+ /**
1642
+ * @method syncUI
1643
+ * @private
1644
+ */
1645
+ syncUI: function()
1646
+ {
1647
+ var layout = this._layout,
1648
+ defaultMargins,
1649
+ styles,
1650
+ label,
1651
+ title,
1652
+ i;
1653
+ if(layout)
1654
+ {
1655
+ defaultMargins = layout._getDefaultMargins();
1656
+ styles = this.get("styles");
1657
+ label = styles.label.margin;
1658
+ title =styles.title.margin;
1659
+ //need to defaultMargins method to the layout classes.
1660
+ for(i in defaultMargins)
1661
+ {
1662
+ if(defaultMargins.hasOwnProperty(i))
1663
+ {
1664
+ label[i] = label[i] === undefined ? defaultMargins[i] : label[i];
1665
+ title[i] = title[i] === undefined ? defaultMargins[i] : title[i];
1666
+ }
1667
+ }
1668
+ }
1669
+ this._drawAxis();
1670
+ },
1671
+
1672
+ /**
1673
+ * Creates a graphic instance to be used for the axis line and ticks.
1674
+ *
1675
+ * @method _setCanvas
1676
+ * @private
1677
+ */
1678
+ _setCanvas: function()
1679
+ {
1680
+ var cb = this.get("contentBox"),
1681
+ bb = this.get("boundingBox"),
1682
+ p = this.get("position"),
1683
+ pn = this._parentNode,
1684
+ w = this.get("width"),
1685
+ h = this.get("height");
1686
+ bb.setStyle("position", "absolute");
1687
+ bb.setStyle("zIndex", 2);
1688
+ w = w ? w + "px" : pn.getStyle("width");
1689
+ h = h ? h + "px" : pn.getStyle("height");
1690
+ if(p === "top" || p === "bottom")
1691
+ {
1692
+ cb.setStyle("width", w);
1693
+ }
1694
+ else
1695
+ {
1696
+ cb.setStyle("height", h);
1697
+ }
1698
+ cb.setStyle("position", "relative");
1699
+ cb.setStyle("left", "0px");
1700
+ cb.setStyle("top", "0px");
1701
+ this.set("graphic", new Y.Graphic());
1702
+ this.get("graphic").render(cb);
1703
+ },
1704
+
1705
+ /**
1706
+ * Gets the default value for the `styles` attribute. Overrides
1707
+ * base implementation.
1708
+ *
1709
+ * @method _getDefaultStyles
1710
+ * @return Object
1711
+ * @protected
1712
+ */
1713
+ _getDefaultStyles: function()
1714
+ {
1715
+ var axisstyles = {
1716
+ majorTicks: {
1717
+ display:"inside",
1718
+ length:4,
1719
+ color:"#dad8c9",
1720
+ weight:1,
1721
+ alpha:1
1722
+ },
1723
+ minorTicks: {
1724
+ display:"none",
1725
+ length:2,
1726
+ color:"#dad8c9",
1727
+ weight:1
1728
+ },
1729
+ line: {
1730
+ weight:1,
1731
+ color:"#dad8c9",
1732
+ alpha:1
1733
+ },
1734
+ majorUnit: {
1735
+ determinant:"count",
1736
+ count:11,
1737
+ distance:75
1738
+ },
1739
+ top: "0px",
1740
+ left: "0px",
1741
+ width: "100px",
1742
+ height: "100px",
1743
+ label: {
1744
+ color:"#808080",
1745
+ alpha: 1,
1746
+ fontSize:"85%",
1747
+ rotation: 0,
1748
+ offset: 0.5,
1749
+ margin: {
1750
+ top: undefined,
1751
+ right: undefined,
1752
+ bottom: undefined,
1753
+ left: undefined
1754
+ }
1755
+ },
1756
+ title: {
1757
+ color:"#808080",
1758
+ alpha: 1,
1759
+ fontSize:"85%",
1760
+ rotation: undefined,
1761
+ margin: {
1762
+ top: undefined,
1763
+ right: undefined,
1764
+ bottom: undefined,
1765
+ left: undefined
1766
+ }
1767
+ },
1768
+ hideOverlappingLabelTicks: false
1769
+ };
1770
+
1771
+ return Y.merge(Y.Renderer.prototype._getDefaultStyles(), axisstyles);
1772
+ },
1773
+
1774
+ /**
1775
+ * Updates the axis when the size changes.
1776
+ *
1777
+ * @method _handleSizeChange
1778
+ * @param {Object} e Event object.
1779
+ * @private
1780
+ */
1781
+ _handleSizeChange: function(e)
1782
+ {
1783
+ var attrName = e.attrName,
1784
+ pos = this.get("position"),
1785
+ vert = pos === "left" || pos === "right",
1786
+ cb = this.get("contentBox"),
1787
+ hor = pos === "bottom" || pos === "top";
1788
+ cb.setStyle("width", this.get("width"));
1789
+ cb.setStyle("height", this.get("height"));
1790
+ if((hor && attrName === "width") || (vert && attrName === "height"))
1791
+ {
1792
+ this._drawAxis();
1793
+ }
1794
+ },
1795
+
1796
+ /**
1797
+ * Maps key values to classes containing layout algorithms
1798
+ *
1799
+ * @property _layoutClasses
1800
+ * @type Object
1801
+ * @private
1802
+ */
1803
+ _layoutClasses:
1804
+ {
1805
+ top : TopAxisLayout,
1806
+ bottom: BottomAxisLayout,
1807
+ left: LeftAxisLayout,
1808
+ right : RightAxisLayout
1809
+ },
1810
+
1811
+ /**
1812
+ * Draws a line segment between 2 points
1813
+ *
1814
+ * @method drawLine
1815
+ * @param {Object} startPoint x and y coordinates for the start point of the line segment
1816
+ * @param {Object} endPoint x and y coordinates for the for the end point of the line segment
1817
+ * @param {Object} line styles (weight, color and alpha to be applied to the line segment)
1818
+ * @private
1819
+ */
1820
+ drawLine: function(path, startPoint, endPoint)
1821
+ {
1822
+ path.moveTo(startPoint.x, startPoint.y);
1823
+ path.lineTo(endPoint.x, endPoint.y);
1824
+ },
1825
+
1826
+ /**
1827
+ * Generates the properties necessary for rotating and positioning a text field.
1828
+ *
1829
+ * @method _getTextRotationProps
1830
+ * @param {Object} styles properties for the text field
1831
+ * @return Object
1832
+ * @private
1833
+ */
1834
+ _getTextRotationProps: function(styles)
1835
+ {
1836
+ if(styles.rotation === undefined)
1837
+ {
1838
+ switch(this.get("position"))
1839
+ {
1840
+ case "left" :
1841
+ styles.rotation = -90;
1842
+ break;
1843
+ case "right" :
1844
+ styles.rotation = 90;
1845
+ break;
1846
+ default :
1847
+ styles.rotation = 0;
1848
+ break;
1849
+ }
1850
+ }
1851
+ var rot = Math.min(90, Math.max(-90, styles.rotation)),
1852
+ absRot = Math.abs(rot),
1853
+ radCon = Math.PI/180,
1854
+ sinRadians = parseFloat(parseFloat(Math.sin(absRot * radCon)).toFixed(8)),
1855
+ cosRadians = parseFloat(parseFloat(Math.cos(absRot * radCon)).toFixed(8));
1856
+ return {
1857
+ rot: rot,
1858
+ absRot: absRot,
1859
+ radCon: radCon,
1860
+ sinRadians: sinRadians,
1861
+ cosRadians: cosRadians,
1862
+ textAlpha: styles.alpha
1863
+ };
1864
+ },
1865
+
1866
+ /**
1867
+ * Draws an axis.
1868
+ *
1869
+ * @method _drawAxis
1870
+ * @private
1871
+ */
1872
+ _drawAxis: function ()
1873
+ {
1874
+ if(this._drawing)
1875
+ {
1876
+ this._callLater = true;
1877
+ return;
1878
+ }
1879
+ this._drawing = true;
1880
+ this._callLater = false;
1881
+ if(this._layout)
1882
+ {
1883
+ var styles = this.get("styles"),
1884
+ line = styles.line,
1885
+ labelStyles = styles.label,
1886
+ majorTickStyles = styles.majorTicks,
1887
+ drawTicks = majorTickStyles.display !== "none",
1888
+ len,
1889
+ i = 0,
1890
+ layout = this._layout,
1891
+ layoutLength,
1892
+ lineStart,
1893
+ label,
1894
+ labelWidth,
1895
+ labelHeight,
1896
+ labelFunction = this.get("labelFunction"),
1897
+ labelFunctionScope = this.get("labelFunctionScope"),
1898
+ labelFormat = this.get("labelFormat"),
1899
+ graphic = this.get("graphic"),
1900
+ path = this.get("path"),
1901
+ tickPath,
1902
+ explicitlySized,
1903
+ position = this.get("position"),
1904
+ labelData,
1905
+ labelValues,
1906
+ point,
1907
+ points,
1908
+ firstPoint,
1909
+ lastPoint,
1910
+ firstLabel,
1911
+ lastLabel,
1912
+ staticCoord,
1913
+ dynamicCoord,
1914
+ edgeOffset,
1915
+ explicitLabels = this._labelValuesExplicitlySet ? this.get("labelValues") : null,
1916
+ direction = (position === "left" || position === "right") ? "vertical" : "horizontal";
1917
+ this._labelWidths = [];
1918
+ this._labelHeights = [];
1919
+ graphic.set("autoDraw", false);
1920
+ path.clear();
1921
+ path.set("stroke", {
1922
+ weight: line.weight,
1923
+ color: line.color,
1924
+ opacity: line.alpha
1925
+ });
1926
+ this._labelRotationProps = this._getTextRotationProps(labelStyles);
1927
+ this._labelRotationProps.transformOrigin = layout._getTransformOrigin(this._labelRotationProps.rot);
1928
+ layout.setTickOffsets.apply(this);
1929
+ layoutLength = this.getLength();
1930
+
1931
+ len = this.getTotalMajorUnits();
1932
+ edgeOffset = this.getEdgeOffset(len, layoutLength);
1933
+ this.set("edgeOffset", edgeOffset);
1934
+ lineStart = layout.getLineStart.apply(this);
1935
+
1936
+ if(direction === "vertical")
1937
+ {
1938
+ staticCoord = "x";
1939
+ dynamicCoord = "y";
1940
+ }
1941
+ else
1942
+ {
1943
+ staticCoord = "y";
1944
+ dynamicCoord = "x";
1945
+ }
1946
+
1947
+ labelData = this._getLabelData(
1948
+ lineStart[staticCoord],
1949
+ staticCoord,
1950
+ dynamicCoord,
1951
+ this.get("minimum"),
1952
+ this.get("maximum"),
1953
+ edgeOffset,
1954
+ layoutLength - edgeOffset - edgeOffset,
1955
+ len,
1956
+ explicitLabels
1957
+ );
1958
+
1959
+ points = labelData.points;
1960
+ labelValues = labelData.values;
1961
+ len = points.length;
1962
+ if(!this._labelValuesExplicitlySet)
1963
+ {
1964
+ this.set("labelValues", labelValues, {src: "internal"});
1965
+ }
1966
+
1967
+ //Don't create the last label or tick.
1968
+ if(this.get("hideFirstMajorUnit"))
1969
+ {
1970
+ firstPoint = points.shift();
1971
+ firstLabel = labelValues.shift();
1972
+ len = len - 1;
1973
+ }
1974
+
1975
+ //Don't create the last label or tick.
1976
+ if(this.get("hideLastMajorUnit"))
1977
+ {
1978
+ lastPoint = points.pop();
1979
+ lastLabel = labelValues.pop();
1980
+ len = len - 1;
1981
+ }
1982
+
1983
+ if(len < 1)
1984
+ {
1985
+ this._clearLabelCache();
1986
+ }
1987
+ else
1988
+ {
1989
+ this.drawLine(path, lineStart, this.getLineEnd(lineStart));
1990
+ if(drawTicks)
1991
+ {
1992
+ tickPath = this.get("tickPath");
1993
+ tickPath.clear();
1994
+ tickPath.set("stroke", {
1995
+ weight: majorTickStyles.weight,
1996
+ color: majorTickStyles.color,
1997
+ opacity: majorTickStyles.alpha
1998
+ });
1999
+ for(i = 0; i < len; i = i + 1)
2000
+ {
2001
+ point = points[i];
2002
+ if(point)
2003
+ {
2004
+ layout.drawTick.apply(this, [tickPath, points[i], majorTickStyles]);
2005
+ }
2006
+ }
2007
+ }
2008
+ this._createLabelCache();
2009
+ this._maxLabelSize = 0;
2010
+ this._totalTitleSize = 0;
2011
+ this._titleSize = 0;
2012
+ this._setTitle();
2013
+ explicitlySized = layout.getExplicitlySized.apply(this, [styles]);
2014
+ for(i = 0; i < len; i = i + 1)
2015
+ {
2016
+ point = points[i];
2017
+ if(point)
2018
+ {
2019
+ label = this.getLabel(labelStyles);
2020
+ this._labels.push(label);
2021
+ this.get("appendLabelFunction")(label, labelFunction.apply(labelFunctionScope, [labelValues[i], labelFormat]));
2022
+ labelWidth = Math.round(label.offsetWidth);
2023
+ labelHeight = Math.round(label.offsetHeight);
2024
+ if(!explicitlySized)
2025
+ {
2026
+ this._layout.updateMaxLabelSize.apply(this, [labelWidth, labelHeight]);
2027
+ }
2028
+ this._labelWidths.push(labelWidth);
2029
+ this._labelHeights.push(labelHeight);
2030
+ }
2031
+ }
2032
+ this._clearLabelCache();
2033
+ if(this.get("overlapGraph"))
2034
+ {
2035
+ layout.offsetNodeForTick.apply(this, [this.get("contentBox")]);
2036
+ }
2037
+ layout.setCalculatedSize.apply(this);
2038
+ if(this._titleTextField)
2039
+ {
2040
+ this._layout.positionTitle.apply(this, [this._titleTextField]);
2041
+ }
2042
+ len = this._labels.length;
2043
+ for(i = 0; i < len; ++i)
2044
+ {
2045
+ layout.positionLabel.apply(this, [this.get("labels")[i], points[i], styles, i]);
2046
+ }
2047
+ if(firstPoint)
2048
+ {
2049
+ points.unshift(firstPoint);
2050
+ }
2051
+ if(lastPoint)
2052
+ {
2053
+ points.push(lastPoint);
2054
+ }
2055
+ if(firstLabel)
2056
+ {
2057
+ labelValues.unshift(firstLabel);
2058
+ }
2059
+ if(lastLabel)
2060
+ {
2061
+ labelValues.push(lastLabel);
2062
+ }
2063
+ this._tickPoints = points;
2064
+ }
2065
+ }
2066
+ this._drawing = false;
2067
+ if(this._callLater)
2068
+ {
2069
+ this._drawAxis();
2070
+ }
2071
+ else
2072
+ {
2073
+ this._updatePathElement();
2074
+ this.fire("axisRendered");
2075
+ }
2076
+ },
2077
+
2078
+ /**
2079
+ * Calculates and sets the total size of a title.
2080
+ *
2081
+ * @method _setTotalTitleSize
2082
+ * @param {Object} styles Properties for the title field.
2083
+ * @private
2084
+ */
2085
+ _setTotalTitleSize: function(styles)
2086
+ {
2087
+ var title = this._titleTextField,
2088
+ w = title.offsetWidth,
2089
+ h = title.offsetHeight,
2090
+ rot = this._titleRotationProps.rot,
2091
+ bounds,
2092
+ size,
2093
+ margin = styles.margin,
2094
+ position = this.get("position"),
2095
+ matrix = new Y.Matrix();
2096
+ matrix.rotate(rot);
2097
+ bounds = matrix.getContentRect(w, h);
2098
+ if(position === "left" || position === "right")
2099
+ {
2100
+ size = bounds.right - bounds.left;
2101
+ if(margin)
2102
+ {
2103
+ size += margin.left + margin.right;
2104
+ }
2105
+ }
2106
+ else
2107
+ {
2108
+ size = bounds.bottom - bounds.top;
2109
+ if(margin)
2110
+ {
2111
+ size += margin.top + margin.bottom;
2112
+ }
2113
+ }
2114
+ this._titleBounds = bounds;
2115
+ this._totalTitleSize = size;
2116
+ },
2117
+
2118
+ /**
2119
+ * Updates path.
2120
+ *
2121
+ * @method _updatePathElement
2122
+ * @private
2123
+ */
2124
+ _updatePathElement: function()
2125
+ {
2126
+ var path = this._path,
2127
+ tickPath = this._tickPath,
2128
+ redrawGraphic = false,
2129
+ graphic = this.get("graphic");
2130
+ if(path)
2131
+ {
2132
+ redrawGraphic = true;
2133
+ path.end();
2134
+ }
2135
+ if(tickPath)
2136
+ {
2137
+ redrawGraphic = true;
2138
+ tickPath.end();
2139
+ }
2140
+ if(redrawGraphic)
2141
+ {
2142
+ graphic._redraw();
2143
+ }
2144
+ },
2145
+
2146
+ /**
2147
+ * Updates the content and style properties for a title field.
2148
+ *
2149
+ * @method _updateTitle
2150
+ * @private
2151
+ */
2152
+ _setTitle: function()
2153
+ {
2154
+ var i,
2155
+ styles,
2156
+ customStyles,
2157
+ title = this.get("title"),
2158
+ titleTextField = this._titleTextField,
2159
+ parentNode;
2160
+ if(title !== null && title !== undefined)
2161
+ {
2162
+ customStyles = {
2163
+ rotation: "rotation",
2164
+ margin: "margin",
2165
+ alpha: "alpha"
2166
+ };
2167
+ styles = this.get("styles").title;
2168
+ if(!titleTextField)
2169
+ {
2170
+ titleTextField = DOCUMENT.createElement('span');
2171
+ titleTextField.style.display = "block";
2172
+ titleTextField.style.whiteSpace = "nowrap";
2173
+ titleTextField.setAttribute("class", "axisTitle");
2174
+ this.get("contentBox").append(titleTextField);
2175
+ }
2176
+ else if(!DOCUMENT.createElementNS)
2177
+ {
2178
+ if(titleTextField.style.filter)
2179
+ {
2180
+ titleTextField.style.filter = null;
2181
+ }
2182
+ }
2183
+ titleTextField.style.position = "absolute";
2184
+ for(i in styles)
2185
+ {
2186
+ if(styles.hasOwnProperty(i) && !customStyles.hasOwnProperty(i))
2187
+ {
2188
+ titleTextField.style[i] = styles[i];
2189
+ }
2190
+ }
2191
+ this.get("appendTitleFunction")(titleTextField, title);
2192
+ this._titleTextField = titleTextField;
2193
+ this._titleRotationProps = this._getTextRotationProps(styles);
2194
+ this._setTotalTitleSize(styles);
2195
+ }
2196
+ else if(titleTextField)
2197
+ {
2198
+ parentNode = titleTextField.parentNode;
2199
+ if(parentNode)
2200
+ {
2201
+ parentNode.removeChild(titleTextField);
2202
+ }
2203
+ this._titleTextField = null;
2204
+ this._totalTitleSize = 0;
2205
+ }
2206
+ },
2207
+
2208
+ /**
2209
+ * Creates or updates an axis label.
2210
+ *
2211
+ * @method getLabel
2212
+ * @param {Object} styles styles applied to label
2213
+ * @return HTMLElement
2214
+ * @private
2215
+ */
2216
+ getLabel: function(styles)
2217
+ {
2218
+ var i,
2219
+ label,
2220
+ labelCache = this._labelCache,
2221
+ customStyles = {
2222
+ rotation: "rotation",
2223
+ margin: "margin",
2224
+ alpha: "alpha"
2225
+ };
2226
+ if(labelCache && labelCache.length > 0)
2227
+ {
2228
+ label = labelCache.shift();
2229
+ }
2230
+ else
2231
+ {
2232
+ label = DOCUMENT.createElement("span");
2233
+ label.className = Y.Lang.trim([label.className, "axisLabel"].join(' '));
2234
+ this.get("contentBox").append(label);
2235
+ }
2236
+ if(!DOCUMENT.createElementNS)
2237
+ {
2238
+ if(label.style.filter)
2239
+ {
2240
+ label.style.filter = null;
2241
+ }
2242
+ }
2243
+ label.style.display = "block";
2244
+ label.style.whiteSpace = "nowrap";
2245
+ label.style.position = "absolute";
2246
+ for(i in styles)
2247
+ {
2248
+ if(styles.hasOwnProperty(i) && !customStyles.hasOwnProperty(i))
2249
+ {
2250
+ label.style[i] = styles[i];
2251
+ }
2252
+ }
2253
+ return label;
2254
+ },
2255
+
2256
+ /**
2257
+ * Creates a cache of labels that can be re-used when the axis redraws.
2258
+ *
2259
+ * @method _createLabelCache
2260
+ * @private
2261
+ */
2262
+ _createLabelCache: function()
2263
+ {
2264
+ if(this._labels)
2265
+ {
2266
+ while(this._labels.length > 0)
2267
+ {
2268
+ this._labelCache.push(this._labels.shift());
2269
+ }
2270
+ }
2271
+ else
2272
+ {
2273
+ this._clearLabelCache();
2274
+ }
2275
+ this._labels = [];
2276
+ },
2277
+
2278
+ /**
2279
+ * Removes axis labels from the dom and clears the label cache.
2280
+ *
2281
+ * @method _clearLabelCache
2282
+ * @private
2283
+ */
2284
+ _clearLabelCache: function()
2285
+ {
2286
+ if(this._labelCache)
2287
+ {
2288
+ var len = this._labelCache.length,
2289
+ i = 0,
2290
+ label;
2291
+ for(; i < len; ++i)
2292
+ {
2293
+ label = this._labelCache[i];
2294
+ this._removeChildren(label);
2295
+ Y.Event.purgeElement(label, true);
2296
+ label.parentNode.removeChild(label);
2297
+ }
2298
+ }
2299
+ this._labelCache = [];
2300
+ },
2301
+
2302
+ /**
2303
+ * Gets the end point of an axis.
2304
+ *
2305
+ * @method getLineEnd
2306
+ * @return Object
2307
+ * @private
2308
+ */
2309
+ getLineEnd: function(pt)
2310
+ {
2311
+ var w = this.get("width"),
2312
+ h = this.get("height"),
2313
+ pos = this.get("position");
2314
+ if(pos === "top" || pos === "bottom")
2315
+ {
2316
+ return {x:w, y:pt.y};
2317
+ }
2318
+ else
2319
+ {
2320
+ return {x:pt.x, y:h};
2321
+ }
2322
+ },
2323
+
2324
+ /**
2325
+ * Calcuates the width or height of an axis depending on its direction.
2326
+ *
2327
+ * @method getLength
2328
+ * @return Number
2329
+ * @private
2330
+ */
2331
+ getLength: function()
2332
+ {
2333
+ var l,
2334
+ style = this.get("styles"),
2335
+ padding = style.padding,
2336
+ w = this.get("width"),
2337
+ h = this.get("height"),
2338
+ pos = this.get("position");
2339
+ if(pos === "top" || pos === "bottom")
2340
+ {
2341
+ l = w - (padding.left + padding.right);
2342
+ }
2343
+ else
2344
+ {
2345
+ l = h - (padding.top + padding.bottom);
2346
+ }
2347
+ return l;
2348
+ },
2349
+
2350
+ /**
2351
+ * Gets the position of the first point on an axis.
2352
+ *
2353
+ * @method getFirstPoint
2354
+ * @param {Object} pt Object containing x and y coordinates.
2355
+ * @return Object
2356
+ * @private
2357
+ */
2358
+ getFirstPoint:function(pt)
2359
+ {
2360
+ var style = this.get("styles"),
2361
+ pos = this.get("position"),
2362
+ padding = style.padding,
2363
+ np = {x:pt.x, y:pt.y};
2364
+ if(pos === "top" || pos === "bottom")
2365
+ {
2366
+ np.x += padding.left + this.get("edgeOffset");
2367
+ }
2368
+ else
2369
+ {
2370
+ np.y += this.get("height") - (padding.top + this.get("edgeOffset"));
2371
+ }
2372
+ return np;
2373
+ },
2374
+
2375
+ /**
2376
+ * Rotates and positions a text field.
2377
+ *
2378
+ * @method _rotate
2379
+ * @param {HTMLElement} label text field to rotate and position
2380
+ * @param {Object} props properties to be applied to the text field.
2381
+ * @private
2382
+ */
2383
+ _rotate: function(label, props)
2384
+ {
2385
+ var rot = props.rot,
2386
+ x = props.x,
2387
+ y = props.y,
2388
+ filterString,
2389
+ textAlpha,
2390
+ matrix = new Y.Matrix(),
2391
+ transformOrigin = props.transformOrigin || [0, 0],
2392
+ offsetRect;
2393
+ if(DOCUMENT.createElementNS)
2394
+ {
2395
+ matrix.translate(x, y);
2396
+ matrix.rotate(rot);
2397
+ Y_DOM.setStyle(label, "transformOrigin", (transformOrigin[0] * 100) + "% " + (transformOrigin[1] * 100) + "%");
2398
+ Y_DOM.setStyle(label, "transform", matrix.toCSSText());
2399
+ }
2400
+ else
2401
+ {
2402
+ textAlpha = props.textAlpha;
2403
+ if(Y_Lang.isNumber(textAlpha) && textAlpha < 1 && textAlpha > -1 && !isNaN(textAlpha))
2404
+ {
2405
+ filterString = "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + Math.round(textAlpha * 100) + ")";
2406
+ }
2407
+ if(rot !== 0)
2408
+ {
2409
+ //ms filters kind of, sort of uses a transformOrigin of 0, 0.
2410
+ //we'll translate the difference to create a true 0, 0 origin.
2411
+ matrix.rotate(rot);
2412
+ offsetRect = matrix.getContentRect(props.labelWidth, props.labelHeight);
2413
+ matrix.init();
2414
+ matrix.translate(offsetRect.left, offsetRect.top);
2415
+ matrix.translate(x, y);
2416
+ this._simulateRotateWithTransformOrigin(matrix, rot, transformOrigin, props.labelWidth, props.labelHeight);
2417
+ if(filterString)
2418
+ {
2419
+ filterString += " ";
2420
+ }
2421
+ else
2422
+ {
2423
+ filterString = "";
2424
+ }
2425
+ filterString += matrix.toFilterText();
2426
+ label.style.left = matrix.dx + "px";
2427
+ label.style.top = matrix.dy + "px";
2428
+ }
2429
+ else
2430
+ {
2431
+ label.style.left = x + "px";
2432
+ label.style.top = y + "px";
2433
+ }
2434
+ if(filterString)
2435
+ {
2436
+ label.style.filter = filterString;
2437
+ }
2438
+ }
2439
+ },
2440
+
2441
+ /**
2442
+ * Simulates a rotation with a specified transformOrigin.
2443
+ *
2444
+ * @method _simulateTransformOrigin
2445
+ * @param {Matrix} matrix Reference to a `Matrix` instance.
2446
+ * @param {Number} rot The rotation (in degrees) that will be performed on a matrix.
2447
+ * @param {Array} transformOrigin An array represeniting the origin in which to perform the transform. The first
2448
+ * index represents the x origin and the second index represents the y origin.
2449
+ * @param {Number} w The width of the object that will be transformed.
2450
+ * @param {Number} h The height of the object that will be transformed.
2451
+ * @private
2452
+ */
2453
+ _simulateRotateWithTransformOrigin: function(matrix, rot, transformOrigin, w, h)
2454
+ {
2455
+ var transformX = transformOrigin[0] * w,
2456
+ transformY = transformOrigin[1] * h;
2457
+ transformX = !isNaN(transformX) ? transformX : 0;
2458
+ transformY = !isNaN(transformY) ? transformY : 0;
2459
+ matrix.translate(transformX, transformY);
2460
+ matrix.rotate(rot);
2461
+ matrix.translate(-transformX, -transformY);
2462
+ },
2463
+
2464
+ /**
2465
+ * Returns the coordinates (top, right, bottom, left) for the bounding box of the last label.
2466
+ *
2467
+ * @method getMaxLabelBounds
2468
+ * @return Object
2469
+ */
2470
+ getMaxLabelBounds: function()
2471
+ {
2472
+ return this._getLabelBounds(this.getMaximumValue());
2473
+ },
2474
+
2475
+ /**
2476
+ * Returns the coordinates (top, right, bottom, left) for the bounding box of the first label.
2477
+ *
2478
+ * @method getMinLabelBounds
2479
+ * @return Object
2480
+ */
2481
+ getMinLabelBounds: function()
2482
+ {
2483
+ return this._getLabelBounds(this.getMinimumValue());
2484
+ },
2485
+
2486
+ /**
2487
+ * Returns the coordinates (top, right, bottom, left) for the bounding box of a label.
2488
+ *
2489
+ * @method _getLabelBounds
2490
+ * @param {String} Value of the label
2491
+ * @return Object
2492
+ * @private
2493
+ */
2494
+ _getLabelBounds: function(val)
2495
+ {
2496
+ var layout = this._layout,
2497
+ labelStyles = this.get("styles").label,
2498
+ matrix = new Y.Matrix(),
2499
+ label,
2500
+ props = this._getTextRotationProps(labelStyles);
2501
+ props.transformOrigin = layout._getTransformOrigin(props.rot);
2502
+ label = this.getLabel(labelStyles);
2503
+ this.get("appendLabelFunction")(label, this.get("labelFunction").apply(this, [val, this.get("labelFormat")]));
2504
+ props.labelWidth = label.offsetWidth;
2505
+ props.labelHeight = label.offsetHeight;
2506
+ this._removeChildren(label);
2507
+ Y.Event.purgeElement(label, true);
2508
+ label.parentNode.removeChild(label);
2509
+ props.x = 0;
2510
+ props.y = 0;
2511
+ layout._setRotationCoords(props);
2512
+ matrix.translate(props.x, props.y);
2513
+ this._simulateRotateWithTransformOrigin(matrix, props.rot, props.transformOrigin, props.labelWidth, props.labelHeight);
2514
+ return matrix.getContentRect(props.labelWidth, props.labelHeight);
2515
+ },
2516
+
2517
+ /**
2518
+ * Removes all DOM elements from an HTML element. Used to clear out labels during detruction
2519
+ * phase.
2520
+ *
2521
+ * @method _removeChildren
2522
+ * @private
2523
+ */
2524
+ _removeChildren: function(node)
2525
+ {
2526
+ if(node.hasChildNodes())
2527
+ {
2528
+ var child;
2529
+ while(node.firstChild)
2530
+ {
2531
+ child = node.firstChild;
2532
+ this._removeChildren(child);
2533
+ node.removeChild(child);
2534
+ }
2535
+ }
2536
+ },
2537
+
2538
+ /**
2539
+ * Destructor implementation Axis class. Removes all labels and the Graphic instance from the widget.
2540
+ *
2541
+ * @method destructor
2542
+ * @protected
2543
+ */
2544
+ destructor: function()
2545
+ {
2546
+ var cb = this.get("contentBox").getDOMNode(),
2547
+ labels = this.get("labels"),
2548
+ graphic = this.get("graphic"),
2549
+ label,
2550
+ len = labels ? labels.length : 0;
2551
+ if(len > 0)
2552
+ {
2553
+ while(labels.length > 0)
2554
+ {
2555
+ label = labels.shift();
2556
+ this._removeChildren(label);
2557
+ cb.removeChild(label);
2558
+ label = null;
2559
+ }
2560
+ }
2561
+ if(graphic)
2562
+ {
2563
+ graphic.destroy();
2564
+ }
2565
+ },
2566
+
2567
+ /**
2568
+ * Length in pixels of largest text bounding box. Used to calculate the height of the axis.
2569
+ *
2570
+ * @property maxLabelSize
2571
+ * @type Number
2572
+ * @protected
2573
+ */
2574
+ _maxLabelSize: 0,
2575
+
2576
+ /**
2577
+ * Updates the content of text field. This method writes a value into a text field using
2578
+ * `appendChild`. If the value is a `String`, it is converted to a `TextNode` first.
2579
+ *
2580
+ * @method _setText
2581
+ * @param label {HTMLElement} label to be updated
2582
+ * @param val {String} value with which to update the label
2583
+ * @private
2584
+ */
2585
+ _setText: function(textField, val)
2586
+ {
2587
+ textField.innerHTML = "";
2588
+ if(Y_Lang.isNumber(val))
2589
+ {
2590
+ val = val + "";
2591
+ }
2592
+ else if(!val)
2593
+ {
2594
+ val = "";
2595
+ }
2596
+ if(IS_STRING(val))
2597
+ {
2598
+ val = DOCUMENT.createTextNode(val);
2599
+ }
2600
+ textField.appendChild(val);
2601
+ },
2602
+
2603
+ /**
2604
+ * Returns the total number of majorUnits that will appear on an axis.
2605
+ *
2606
+ * @method getTotalMajorUnits
2607
+ * @return Number
2608
+ */
2609
+ getTotalMajorUnits: function()
2610
+ {
2611
+ var units,
2612
+ majorUnit = this.get("styles").majorUnit,
2613
+ len;
2614
+ if(majorUnit.determinant === "count")
2615
+ {
2616
+ units = majorUnit.count;
2617
+ }
2618
+ else if(majorUnit.determinant === "distance")
2619
+ {
2620
+ len = this.getLength();
2621
+ units = (len/majorUnit.distance) + 1;
2622
+ }
2623
+ return units;
2624
+ },
2625
+
2626
+ /**
2627
+ * Returns the distance between major units on an axis.
2628
+ *
2629
+ * @method getMajorUnitDistance
2630
+ * @param {Number} len Number of ticks
2631
+ * @param {Number} uiLen Size of the axis.
2632
+ * @param {Object} majorUnit Hash of properties used to determine the majorUnit
2633
+ * @return Number
2634
+ */
2635
+ getMajorUnitDistance: function(len, uiLen, majorUnit)
2636
+ {
2637
+ var dist;
2638
+ if(majorUnit.determinant === "count")
2639
+ {
2640
+ if(!this.get("calculateEdgeOffset"))
2641
+ {
2642
+ len = len - 1;
2643
+ }
2644
+ dist = uiLen/len;
2645
+ }
2646
+ else if(majorUnit.determinant === "distance")
2647
+ {
2648
+ dist = majorUnit.distance;
2649
+ }
2650
+ return dist;
2651
+ },
2652
+
2653
+ /**
2654
+ * Checks to see if data extends beyond the range of the axis. If so,
2655
+ * that data will need to be hidden. This method is internal, temporary and subject
2656
+ * to removal in the future.
2657
+ *
2658
+ * @method _hasDataOverflow
2659
+ * @protected
2660
+ * @return Boolean
2661
+ */
2662
+ _hasDataOverflow: function()
2663
+ {
2664
+ if(this.get("setMin") || this.get("setMax"))
2665
+ {
2666
+ return true;
2667
+ }
2668
+ return false;
2669
+ },
2670
+
2671
+ /**
2672
+ * Returns a string corresponding to the first label on an
2673
+ * axis.
2674
+ *
2675
+ * @method getMinimumValue
2676
+ * @return String
2677
+ */
2678
+ getMinimumValue: function()
2679
+ {
2680
+ return this.get("minimum");
2681
+ },
2682
+
2683
+ /**
2684
+ * Returns a string corresponding to the last label on an
2685
+ * axis.
2686
+ *
2687
+ * @method getMaximumValue
2688
+ * @return String
2689
+ */
2690
+ getMaximumValue: function()
2691
+ {
2692
+ return this.get("maximum");
2693
+ }
2694
+ }, {
2695
+ ATTRS:
2696
+ {
2697
+ /**
2698
+ * When set, defines the width of a vertical axis instance. By default, vertical axes automatically size based
2699
+ * on their contents. When the width attribute is set, the axis will not calculate its width. When the width
2700
+ * attribute is explicitly set, axis labels will postion themselves off of the the inner edge of the axis and the
2701
+ * title, if present, will position itself off of the outer edge. If a specified width is less than the sum of
2702
+ * the axis' contents, excess content will overflow.
2703
+ *
2704
+ * @attribute width
2705
+ * @type Number
2706
+ */
2707
+ width: {
2708
+ lazyAdd: false,
2709
+
2710
+ getter: function()
2711
+ {
2712
+ if(this._explicitWidth)
2713
+ {
2714
+ return this._explicitWidth;
2715
+ }
2716
+ return this._calculatedWidth;
2717
+ },
2718
+
2719
+ setter: function(val)
2720
+ {
2721
+ this._explicitWidth = val;
2722
+ return val;
2723
+ }
2724
+ },
2725
+
2726
+ /**
2727
+ * When set, defines the height of a horizontal axis instance. By default, horizontal axes automatically size based
2728
+ * on their contents. When the height attribute is set, the axis will not calculate its height. When the height
2729
+ * attribute is explicitly set, axis labels will postion themselves off of the the inner edge of the axis and the
2730
+ * title, if present, will position itself off of the outer edge. If a specified height is less than the sum of
2731
+ * the axis' contents, excess content will overflow.
2732
+ *
2733
+ * @attribute height
2734
+ * @type Number
2735
+ */
2736
+ height: {
2737
+ lazyAdd: false,
2738
+
2739
+ getter: function()
2740
+ {
2741
+ if(this._explicitHeight)
2742
+ {
2743
+ return this._explicitHeight;
2744
+ }
2745
+ return this._calculatedHeight;
2746
+ },
2747
+
2748
+ setter: function(val)
2749
+ {
2750
+ this._explicitHeight = val;
2751
+ return val;
2752
+ }
2753
+ },
2754
+
2755
+ /**
2756
+ * Calculated value of an axis' width. By default, the value is used internally for vertical axes. If the `width`
2757
+ * attribute is explicitly set, this value will be ignored.
2758
+ *
2759
+ * @attribute calculatedWidth
2760
+ * @type Number
2761
+ * @private
2762
+ */
2763
+ calculatedWidth: {
2764
+ getter: function()
2765
+ {
2766
+ return this._calculatedWidth;
2767
+ },
2768
+
2769
+ setter: function(val)
2770
+ {
2771
+ this._calculatedWidth = val;
2772
+ return val;
2773
+ }
2774
+ },
2775
+
2776
+ /**
2777
+ * Calculated value of an axis' height. By default, the value is used internally for horizontal axes. If the `height`
2778
+ * attribute is explicitly set, this value will be ignored.
2779
+ *
2780
+ * @attribute calculatedHeight
2781
+ * @type Number
2782
+ * @private
2783
+ */
2784
+ calculatedHeight: {
2785
+ getter: function()
2786
+ {
2787
+ return this._calculatedHeight;
2788
+ },
2789
+
2790
+ setter: function(val)
2791
+ {
2792
+ this._calculatedHeight = val;
2793
+ return val;
2794
+ }
2795
+ },
2796
+
2797
+ /**
2798
+ * Difference between the first/last tick and edge of axis.
2799
+ *
2800
+ * @attribute edgeOffset
2801
+ * @type Number
2802
+ * @protected
2803
+ */
2804
+ edgeOffset:
2805
+ {
2806
+ value: 0
2807
+ },
2808
+
2809
+ /**
2810
+ * The graphic in which the axis line and ticks will be rendered.
2811
+ *
2812
+ * @attribute graphic
2813
+ * @type Graphic
2814
+ */
2815
+ graphic: {},
2816
+
2817
+ /**
2818
+ * @attribute path
2819
+ * @type Shape
2820
+ * @readOnly
2821
+ * @private
2822
+ */
2823
+ path: {
2824
+ readOnly: true,
2825
+
2826
+ getter: function()
2827
+ {
2828
+ if(!this._path)
2829
+ {
2830
+ var graphic = this.get("graphic");
2831
+ if(graphic)
2832
+ {
2833
+ this._path = graphic.addShape({type:"path"});
2834
+ }
2835
+ }
2836
+ return this._path;
2837
+ }
2838
+ },
2839
+
2840
+ /**
2841
+ * @attribute tickPath
2842
+ * @type Shape
2843
+ * @readOnly
2844
+ * @private
2845
+ */
2846
+ tickPath: {
2847
+ readOnly: true,
2848
+
2849
+ getter: function()
2850
+ {
2851
+ if(!this._tickPath)
2852
+ {
2853
+ var graphic = this.get("graphic");
2854
+ if(graphic)
2855
+ {
2856
+ this._tickPath = graphic.addShape({type:"path"});
2857
+ }
2858
+ }
2859
+ return this._tickPath;
2860
+ }
2861
+ },
2862
+
2863
+ /**
2864
+ * Contains the contents of the axis.
2865
+ *
2866
+ * @attribute node
2867
+ * @type HTMLElement
2868
+ */
2869
+ node: {},
2870
+
2871
+ /**
2872
+ * Direction of the axis.
2873
+ *
2874
+ * @attribute position
2875
+ * @type String
2876
+ */
2877
+ position: {
2878
+ lazyAdd: false,
2879
+
2880
+ setter: function(val)
2881
+ {
2882
+ var LayoutClass = this._layoutClasses[val];
2883
+ if(val && val !== "none")
2884
+ {
2885
+ this._layout = new LayoutClass();
2886
+ }
2887
+ return val;
2888
+ }
2889
+ },
2890
+
2891
+ /**
2892
+ * Distance determined by the tick styles used to calculate the distance between the axis
2893
+ * line in relation to the top of the axis.
2894
+ *
2895
+ * @attribute topTickOffset
2896
+ * @type Number
2897
+ */
2898
+ topTickOffset: {
2899
+ value: 0
2900
+ },
2901
+
2902
+ /**
2903
+ * Distance determined by the tick styles used to calculate the distance between the axis
2904
+ * line in relation to the bottom of the axis.
2905
+ *
2906
+ * @attribute bottomTickOffset
2907
+ * @type Number
2908
+ */
2909
+ bottomTickOffset: {
2910
+ value: 0
2911
+ },
2912
+
2913
+ /**
2914
+ * Distance determined by the tick styles used to calculate the distance between the axis
2915
+ * line in relation to the left of the axis.
2916
+ *
2917
+ * @attribute leftTickOffset
2918
+ * @type Number
2919
+ */
2920
+ leftTickOffset: {
2921
+ value: 0
2922
+ },
2923
+
2924
+ /**
2925
+ * Distance determined by the tick styles used to calculate the distance between the axis
2926
+ * line in relation to the right side of the axis.
2927
+ *
2928
+ * @attribute rightTickOffset
2929
+ * @type Number
2930
+ */
2931
+ rightTickOffset: {
2932
+ value: 0
2933
+ },
2934
+
2935
+ /**
2936
+ * Collection of labels used to render the axis.
2937
+ *
2938
+ * @attribute labels
2939
+ * @type Array
2940
+ */
2941
+ labels: {
2942
+ readOnly: true,
2943
+ getter: function()
2944
+ {
2945
+ return this._labels;
2946
+ }
2947
+ },
2948
+
2949
+ /**
2950
+ * Collection of points used for placement of labels and ticks along the axis.
2951
+ *
2952
+ * @attribute tickPoints
2953
+ * @type Array
2954
+ */
2955
+ tickPoints: {
2956
+ readOnly: true,
2957
+
2958
+ getter: function()
2959
+ {
2960
+ if(this.get("position") === "none")
2961
+ {
2962
+ return this.get("styles").majorUnit.count;
2963
+ }
2964
+ return this._tickPoints;
2965
+ }
2966
+ },
2967
+
2968
+ /**
2969
+ * Indicates whether the axis overlaps the graph. If an axis is the inner most axis on a given
2970
+ * position and the tick position is inside or cross, the axis will need to overlap the graph.
2971
+ *
2972
+ * @attribute overlapGraph
2973
+ * @type Boolean
2974
+ */
2975
+ overlapGraph: {
2976
+ value:true,
2977
+
2978
+ validator: function(val)
2979
+ {
2980
+ return Y_Lang.isBoolean(val);
2981
+ }
2982
+ },
2983
+
2984
+ /**
2985
+ * Length in pixels of largest text bounding box. Used to calculate the height of the axis.
2986
+ *
2987
+ * @attribute maxLabelSize
2988
+ * @type Number
2989
+ * @protected
2990
+ */
2991
+ maxLabelSize: {
2992
+ getter: function()
2993
+ {
2994
+ return this._maxLabelSize;
2995
+ },
2996
+
2997
+ setter: function(val)
2998
+ {
2999
+ this._maxLabelSize = val;
3000
+ return val;
3001
+ }
3002
+ },
3003
+
3004
+ /**
3005
+ * Title for the axis. When specified, the title will display. The position of the title is determined by the axis position.
3006
+ * <dl>
3007
+ * <dt>top</dt><dd>Appears above the axis and it labels. The default rotation is 0.</dd>
3008
+ * <dt>right</dt><dd>Appears to the right of the axis and its labels. The default rotation is 90.</dd>
3009
+ * <dt>bottom</dt><dd>Appears below the axis and its labels. The default rotation is 0.</dd>
3010
+ * <dt>left</dt><dd>Appears to the left of the axis and its labels. The default rotation is -90.</dd>
3011
+ * </dl>
3012
+ *
3013
+ * @attribute title
3014
+ * @type String
3015
+ */
3016
+ title: {
3017
+ value: null
3018
+ },
3019
+
3020
+ /**
3021
+ * Function used to append an axis value to an axis label. This function has the following signature:
3022
+ * <dl>
3023
+ * <dt>textField</dt><dd>The axis label to be appended. (`HTMLElement`)</dd>
3024
+ * <dt>val</dt><dd>The value to attach to the text field. This method will accept an `HTMLELement`
3025
+ * or a `String`. This method does not use (`HTMLElement` | `String`)</dd>
3026
+ * </dl>
3027
+ * The default method appends a value to the `HTMLElement` using the `appendChild` method. If the given
3028
+ * value is a `String`, the method will convert the the value to a `textNode` before appending to the
3029
+ * `HTMLElement`. This method will not convert an `HTMLString` to an `HTMLElement`.
3030
+ *
3031
+ * @attribute appendLabelFunction
3032
+ * @type Function
3033
+ */
3034
+ appendLabelFunction: {
3035
+ valueFn: function()
3036
+ {
3037
+ return this._setText;
3038
+ }
3039
+ },
3040
+
3041
+ /**
3042
+ * Function used to append a title value to the title object. This function has the following signature:
3043
+ * <dl>
3044
+ * <dt>textField</dt><dd>The title text field to be appended. (`HTMLElement`)</dd>
3045
+ * <dt>val</dt><dd>The value to attach to the text field. This method will accept an `HTMLELement`
3046
+ * or a `String`. This method does not use (`HTMLElement` | `String`)</dd>
3047
+ * </dl>
3048
+ * The default method appends a value to the `HTMLElement` using the `appendChild` method. If the given
3049
+ * value is a `String`, the method will convert the the value to a `textNode` before appending to the
3050
+ * `HTMLElement` element. This method will not convert an `HTMLString` to an `HTMLElement`.
3051
+ *
3052
+ * @attribute appendTitleFunction
3053
+ * @type Function
3054
+ */
3055
+ appendTitleFunction: {
3056
+ valueFn: function()
3057
+ {
3058
+ return this._setText;
3059
+ }
3060
+ },
3061
+
3062
+ /**
3063
+ * An array containing the unformatted values of the axis labels. By default, TimeAxis, NumericAxis and
3064
+ * StackedAxis labelValues are determined by the majorUnit style. By default, CategoryAxis labels are
3065
+ * determined by the values of the dataProvider.
3066
+ * <p>When the labelValues attribute is explicitly set, the labelValues are dictated by the set value and
3067
+ * the position of ticks and labels are determined by where those values would fall on the axis. </p>
3068
+ *
3069
+ * @attribute labelValues
3070
+ * @type Array
3071
+ */
3072
+ labelValues: {
3073
+ lazyAdd: false,
3074
+
3075
+ setter: function(val)
3076
+ {
3077
+ var opts = arguments[2];
3078
+ if(!val || (opts && opts.src && opts.src === "internal"))
3079
+ {
3080
+ this._labelValuesExplicitlySet = false;
3081
+ }
3082
+ else
3083
+ {
3084
+ this._labelValuesExplicitlySet = true;
3085
+ }
3086
+ return val;
3087
+ }
3088
+ },
3089
+
3090
+ /**
3091
+ * Suppresses the creation of the the first visible label and tick.
3092
+ *
3093
+ * @attribute hideFirstMajorUnit
3094
+ * @type Boolean
3095
+ */
3096
+ hideFirstMajorUnit: {
3097
+ value: false
3098
+ },
3099
+
3100
+ /**
3101
+ * Suppresses the creation of the the last visible label and tick.
3102
+ *
3103
+ * @attribute hideLastMajorUnit
3104
+ * @type Boolean
3105
+ */
3106
+ hideLastMajorUnit: {
3107
+ value: false
3108
+ }
3109
+
3110
+ /**
3111
+ * Style properties used for drawing an axis. This attribute is inherited from `Renderer`. Below are the default values:
3112
+ * <dl>
3113
+ * <dt>majorTicks</dt><dd>Properties used for drawing ticks.
3114
+ * <dl>
3115
+ * <dt>display</dt><dd>Position of the tick. Possible values are `inside`, `outside`, `cross` and `none`.
3116
+ * The default value is `inside`.</dd>
3117
+ * <dt>length</dt><dd>The length (in pixels) of the tick. The default value is 4.</dd>
3118
+ * <dt>color</dt><dd>The color of the tick. The default value is `#dad8c9`</dd>
3119
+ * <dt>weight</dt><dd>Number indicating the width of the tick. The default value is 1.</dd>
3120
+ * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the tick. The default value is 1.</dd>
3121
+ * </dl>
3122
+ * </dd>
3123
+ * <dt>line</dt><dd>Properties used for drawing the axis line.
3124
+ * <dl>
3125
+ * <dt>weight</dt><dd>Number indicating the width of the axis line. The default value is 1.</dd>
3126
+ * <dt>color</dt><dd>The color of the axis line. The default value is `#dad8c9`.</dd>
3127
+ * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the tick. The default value is 1.</dd>
3128
+ * </dl>
3129
+ * </dd>
3130
+ * <dt>majorUnit</dt><dd>Properties used to calculate the `majorUnit` for the axis.
3131
+ * <dl>
3132
+ * <dt>determinant</dt><dd>The algorithm used for calculating distance between ticks. The possible options are
3133
+ * `count` and `distance`. If the `determinant` is `count`, the axis ticks will spaced so that a specified number
3134
+ * of ticks appear on the axis. If the `determinant` is `distance`, the axis ticks will spaced out according to
3135
+ * the specified distance. The default value is `count`.</dd>
3136
+ * <dt>count</dt><dd>Number of ticks to appear on the axis when the `determinant` is `count`. The default value is 11.</dd>
3137
+ * <dt>distance</dt><dd>The distance (in pixels) between ticks when the `determinant` is `distance`. The default
3138
+ * value is 75.</dd>
3139
+ * </dl>
3140
+ * </dd>
3141
+ * <dt>label</dt><dd>Properties and styles applied to the axis labels.
3142
+ * <dl>
3143
+ * <dt>color</dt><dd>The color of the labels. The default value is `#808080`.</dd>
3144
+ * <dt>alpha</dt><dd>Number between 0 and 1 indicating the opacity of the labels. The default value is 1.</dd>
3145
+ * <dt>fontSize</dt><dd>The font-size of the labels. The default value is 85%</dd>
3146
+ * <dt>rotation</dt><dd>The rotation, in degrees (between -90 and 90) of the labels. The default value is 0.</dd>
3147
+ * <dt>offset</td><dd>A number between 0 and 1 indicating the relationship of the label to a tick. For a horizontal axis
3148
+ * label, a value of 0 will position the label's left side even to the the tick. A position of 1 would position the
3149
+ * right side of the label with the tick. A position of 0.5 would center the label horizontally with the tick. For a
3150
+ * vertical axis, a value of 0 would position the top of the label with the tick, a value of 1 would position the bottom
3151
+ * of the label with the tick and a value 0 would center the label vertically with the tick. The default value is 0.5.</dd>
3152
+ * <dt>margin</dt><dd>The distance between the label and the axis/tick. Depending on the position of the `Axis`,
3153
+ * only one of the properties used.
3154
+ * <dl>
3155
+ * <dt>top</dt><dd>Pixel value used for an axis with a `position` of `bottom`. The default value is 4.</dd>
3156
+ * <dt>right</dt><dd>Pixel value used for an axis with a `position` of `left`. The default value is 4.</dd>
3157
+ * <dt>bottom</dt><dd>Pixel value used for an axis with a `position` of `top`. The default value is 4.</dd>
3158
+ * <dt>left</dt><dd>Pixel value used for an axis with a `position` of `right`. The default value is 4.</dd>
3159
+ * </dl>
3160
+ * </dd>
3161
+ * </dl>
3162
+ * </dd>
3163
+ * </dl>
3164
+ *
3165
+ * @attribute styles
3166
+ * @type Object
3167
+ */
3168
+ }
3169
+ });
3170
+ Y.AxisType = Y.Base.create("baseAxis", Y.Axis, [], {});
3171
+
3172
+
3173
+ }, '@VERSION@', {"requires": ["dom", "widget", "widget-position", "widget-stack", "graphics", "axis-base"]});