@datagrok/helm 2.3.2 → 2.3.3

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 (323) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/package-test.js +1 -1
  3. package/dist/package-test.js.map +1 -1
  4. package/dist/package.js +1 -1
  5. package/dist/package.js.map +1 -1
  6. package/package.json +4 -4
  7. package/src/cell-renderer.ts +5 -4
  8. package/src/helm-helper.ts +6 -6
  9. package/src/helm-monomer-placer.ts +1 -1
  10. package/src/helm-web-editor.ts +5 -5
  11. package/src/package-test.ts +0 -1
  12. package/src/package-utils.ts +228 -69
  13. package/src/package.ts +7 -69
  14. package/src/tests/findMonomers-tests.ts +2 -1
  15. package/src/tests/get-monomer-tests.ts +1 -49
  16. package/src/utils/get-monomer.ts +49 -1
  17. package/src/utils/helm-grid-cell-renderer.ts +8 -9
  18. package/src/utils/index.ts +2 -3
  19. package/src/widgets/helm-input.ts +4 -4
  20. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
  21. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
  22. package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
  23. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
  24. package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
  25. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
  26. package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
  27. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
  28. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
  29. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
  30. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
  31. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
  32. package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
  33. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
  34. package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
  35. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
  36. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
  37. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
  38. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
  39. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
  40. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
  41. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
  42. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
  43. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
  44. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
  45. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
  46. package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
  47. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
  48. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
  49. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
  50. package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
  51. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
  52. package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
  53. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
  54. package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
  55. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
  56. package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
  57. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
  58. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
  59. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
  60. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
  61. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
  62. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
  63. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
  64. package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
  65. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
  66. package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
  67. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
  68. package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
  69. package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
  70. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
  71. package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
  72. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
  73. package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
  74. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
  75. package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
  76. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
  77. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
  78. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
  79. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
  80. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
  81. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
  82. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
  83. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
  84. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
  85. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
  86. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
  87. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
  88. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
  89. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
  90. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
  91. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
  92. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
  93. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
  94. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
  95. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
  96. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
  97. package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
  98. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
  99. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
  100. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
  101. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
  102. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
  103. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
  104. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
  105. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
  106. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
  107. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
  108. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
  109. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
  110. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
  111. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
  112. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
  113. package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
  114. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
  115. package/vendor/dojo-1.10.10/dijit/main.js +4 -0
  116. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
  117. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
  118. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
  119. package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
  120. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
  121. package/vendor/dojo-1.10.10/dijit/place.js +142 -0
  122. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
  123. package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
  124. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
  125. package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
  126. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
  127. package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
  128. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
  129. package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
  130. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
  131. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
  132. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
  133. package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
  134. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
  135. package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
  136. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
  137. package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
  138. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
  139. package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
  140. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
  141. package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
  142. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
  143. package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
  144. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
  145. package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
  146. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
  147. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
  148. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
  149. package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
  150. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
  151. package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
  152. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
  153. package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
  154. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
  155. package/vendor/dojo-1.10.10/dojo/html.js +161 -0
  156. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
  157. package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
  158. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
  159. package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
  160. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
  161. package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
  162. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
  163. package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
  164. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
  165. package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
  166. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
  167. package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
  168. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
  169. package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
  170. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
  171. package/vendor/dojo-1.10.10/dojo/require.js +11 -0
  172. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
  173. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  174. package/vendor/dojo-1.10.10/dojo/string.js +67 -0
  175. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
  176. package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
  177. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
  178. package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
  179. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
  180. package/vendor/dojo-1.10.10/dojo/window.js +141 -0
  181. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
  182. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
  183. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
  184. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
  185. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
  186. package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
  187. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
  188. package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
  189. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
  190. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
  191. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
  192. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
  193. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
  194. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
  195. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
  196. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
  197. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
  198. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
  199. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
  200. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
  201. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
  202. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
  203. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
  204. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
  205. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
  206. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
  207. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
  208. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
  209. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
  210. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
  211. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
  212. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
  213. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
  214. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
  215. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
  216. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
  217. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
  218. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
  219. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
  220. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
  221. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
  222. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
  223. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
  224. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
  225. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
  226. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
  227. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
  228. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
  229. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
  230. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
  231. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
  232. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
  233. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
  234. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
  235. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
  236. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
  237. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
  266. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
  267. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
  268. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
  269. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
  270. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
  271. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
  272. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
  273. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
  274. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
  275. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
  276. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
  277. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
  278. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
  279. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
  280. package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
  281. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
  282. package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
  283. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
  284. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
  285. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
  286. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
  287. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
  288. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
  289. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
  290. package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
  291. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
  292. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
  293. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
  294. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
  295. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
  296. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
  297. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
  298. package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
  299. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
  300. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
  301. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
  302. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
  303. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
  304. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
  305. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
  306. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
  307. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
  308. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
  309. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
  310. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
  311. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
  312. package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
  313. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
  314. package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
  315. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
  316. package/vendor/dojo-1.10.10/dojox/main.js +4 -0
  317. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
  318. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
  319. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
  320. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
  321. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
  322. package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
  323. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
@@ -0,0 +1,472 @@
1
+ define("dojox/charting/plot2d/Default", ["dojo/_base/lang", "dojo/_base/declare", "dojo/_base/array", "dojo/has",
2
+ "./CartesianBase", "./_PlotEvents", "./common", "dojox/lang/functional", "dojox/lang/functional/reversed", "dojox/lang/utils", "dojox/gfx/fx"],
3
+ function(lang, declare, arr, has, CartesianBase, _PlotEvents, dc, df, dfr, du, fx){
4
+
5
+ /*=====
6
+ declare("dojox.charting.plot2d.__DefaultCtorArgs", dojox.charting.plot2d.__CartesianCtorArgs, {
7
+ // summary:
8
+ // The arguments used for any/most plots.
9
+
10
+ // lines: Boolean?
11
+ // Whether or not to draw lines on this plot. Defaults to true.
12
+ lines: true,
13
+
14
+ // areas: Boolean?
15
+ // Whether or not to draw areas on this plot. Defaults to false.
16
+ areas: false,
17
+
18
+ // markers: Boolean?
19
+ // Whether or not to draw markers at data points on this plot. Default is false.
20
+ markers: false,
21
+
22
+ // tension: Number|String?
23
+ // Whether or not to apply 'tensioning' to the lines on this chart.
24
+ // Options include a number, "X", "x", or "S"; if a number is used, the
25
+ // simpler bezier curve calculations are used to draw the lines. If X, x or S
26
+ // is used, the more accurate smoothing algorithm is used.
27
+ tension: "",
28
+
29
+ // animate: Boolean?|Number?
30
+ // Whether or not to animate the chart to place. When a Number it specifies the duration of the animation.
31
+ // Default is false.
32
+ animate: false,
33
+
34
+ // stroke: dojox.gfx.Stroke?
35
+ // An optional stroke to use for any series on the plot.
36
+ stroke: {},
37
+
38
+ // outline: dojox.gfx.Stroke?
39
+ // An optional stroke used to outline any series on the plot.
40
+ outline: {},
41
+
42
+ // shadow: dojox.gfx.Stroke?
43
+ // An optional stroke to use to draw any shadows for a series on a plot.
44
+ shadow: {},
45
+
46
+ // fill: dojox.gfx.Fill?
47
+ // Any fill to be used for elements on the plot (such as areas).
48
+ fill: {},
49
+
50
+ // filter: dojox.gfx.Filter?
51
+ // An SVG filter to be used for elements on the plot. gfx SVG renderer must be used and dojox/gfx/svgext must
52
+ // be required for this to work.
53
+ filter: {},
54
+
55
+ // styleFunc: Function?
56
+ // A function that returns a styling object for the a given data item.
57
+ styleFunc: null,
58
+
59
+ // font: String?
60
+ // A font definition to be used for labels and other text-based elements on the plot.
61
+ font: "",
62
+
63
+ // fontColor: String|dojo.Color?
64
+ // The color to be used for any text-based elements on the plot.
65
+ fontColor: "",
66
+
67
+ // markerStroke: dojo.gfx.Stroke?
68
+ // An optional stroke to use for any markers on the plot.
69
+ markerStroke: {},
70
+
71
+ // markerOutline: dojo.gfx.Stroke?
72
+ // An optional outline to use for any markers on the plot.
73
+ markerOutline: {},
74
+
75
+ // markerShadow: dojo.gfx.Stroke?
76
+ // An optional shadow to use for any markers on the plot.
77
+ markerShadow: {},
78
+
79
+ // markerFill: dojo.gfx.Fill?
80
+ // An optional fill to use for any markers on the plot.
81
+ markerFill: {},
82
+
83
+ // markerFont: String?
84
+ // An optional font definition to use for any markers on the plot.
85
+ markerFont: "",
86
+
87
+ // markerFontColor: String|dojo.Color?
88
+ // An optional color to use for any marker text on the plot.
89
+ markerFontColor: "",
90
+
91
+ // enableCache: Boolean?
92
+ // Whether the markers are cached from one rendering to another. This improves the rendering performance of
93
+ // successive rendering but penalize the first rendering. Default false.
94
+ enableCache: false,
95
+
96
+ // interpolate: Boolean?
97
+ // Whether when there is a null data point in the data the plot interpolates it or if the lines is split at that
98
+ // point. Default false.
99
+ interpolate: false
100
+ });
101
+ =====*/
102
+
103
+ var purgeGroup = dfr.lambda("item.purgeGroup()");
104
+
105
+ var DEFAULT_ANIMATION_LENGTH = 1200; // in ms
106
+
107
+ return declare("dojox.charting.plot2d.Default", [CartesianBase, _PlotEvents], {
108
+
109
+ // defaultParams:
110
+ // The default parameters of this plot.
111
+ defaultParams: {
112
+ lines: true, // draw lines
113
+ areas: false, // draw areas
114
+ markers: false, // draw markers
115
+ tension: "", // draw curved lines (tension is "X", "x", or "S")
116
+ animate: false, // animate chart to place
117
+ enableCache: false,
118
+ interpolate: false
119
+ },
120
+
121
+ // optionalParams:
122
+ // The optional parameters of this plot.
123
+ optionalParams: {
124
+ // theme component
125
+ stroke: {},
126
+ outline: {},
127
+ shadow: {},
128
+ fill: {},
129
+ filter: {},
130
+ styleFunc: null,
131
+ font: "",
132
+ fontColor: "",
133
+ marker: "",
134
+ markerStroke: {},
135
+ markerOutline: {},
136
+ markerShadow: {},
137
+ markerFill: {},
138
+ markerFont: "",
139
+ markerFontColor: ""
140
+ },
141
+
142
+ constructor: function(chart, kwArgs){
143
+ // summary:
144
+ // Return a new plot.
145
+ // chart: dojox/charting/Chart
146
+ // The chart this plot belongs to.
147
+ // kwArgs: dojox.charting.plot2d.__DefaultCtorArgs?
148
+ // An optional arguments object to help define this plot.
149
+ this.opt = lang.clone(lang.mixin(this.opt, this.defaultParams));
150
+ du.updateWithObject(this.opt, kwArgs);
151
+ du.updateWithPattern(this.opt, kwArgs, this.optionalParams);
152
+ // animation properties
153
+ this.animate = this.opt.animate;
154
+ },
155
+
156
+ createPath: function(run, creator, params){
157
+ var path;
158
+ if(this.opt.enableCache && run._pathFreePool.length > 0){
159
+ path = run._pathFreePool.pop();
160
+ path.setShape(params);
161
+ // was cleared, add it back
162
+ creator.add(path);
163
+ }else{
164
+ path = creator.createPath(params);
165
+ }
166
+ if(this.opt.enableCache){
167
+ run._pathUsePool.push(path);
168
+ }
169
+ return path;
170
+ },
171
+
172
+ buildSegments: function(i, indexed){
173
+ var run = this.series[i],
174
+ min = indexed?Math.max(0, Math.floor(this._hScaler.bounds.from - 1)):0,
175
+ max = indexed?Math.min(run.data.length, Math.ceil(this._hScaler.bounds.to)):run.data.length,
176
+ rseg = null, segments = [];
177
+
178
+ // split the run data into dense segments (each containing no nulls)
179
+ // except if interpolates is false in which case ignore null between valid data
180
+ for(var j = min; j < max; j++){
181
+ if(run.data[j] != null && (indexed || run.data[j].y != null)){
182
+ if(!rseg){
183
+ rseg = [];
184
+ segments.push({index: j, rseg: rseg});
185
+ }
186
+ rseg.push((indexed && run.data[j].hasOwnProperty("y"))?run.data[j].y:run.data[j]);
187
+ }else{
188
+ if(!this.opt.interpolate || indexed){
189
+ // we break the line only if not interpolating or if we have indexed data
190
+ rseg = null;
191
+ }
192
+ }
193
+ }
194
+ return segments;
195
+ },
196
+
197
+ render: function(dim, offsets){
198
+ // summary:
199
+ // Render/draw everything on this plot.
200
+ // dim: Object
201
+ // An object of the form { width, height }
202
+ // offsets: Object
203
+ // An object of the form { l, r, t, b }
204
+ // returns: dojox/charting/plot2d/Default
205
+ // A reference to this plot for functional chaining.
206
+
207
+ // make sure all the series is not modified
208
+ if(this.zoom && !this.isDataDirty()){
209
+ return this.performZoom(dim, offsets);
210
+ }
211
+
212
+ this.resetEvents();
213
+ this.dirty = this.isDirty();
214
+ var s;
215
+ if(this.dirty){
216
+ arr.forEach(this.series, purgeGroup);
217
+ this._eventSeries = {};
218
+ this.cleanGroup();
219
+ this.getGroup().setTransform(null);
220
+ s = this.getGroup();
221
+ df.forEachRev(this.series, function(item){ item.cleanGroup(s); });
222
+ }
223
+ var t = this.chart.theme, stroke, outline, events = this.events();
224
+
225
+ for(var i = this.series.length - 1; i >= 0; --i){
226
+ var run = this.series[i];
227
+ if(!this.dirty && !run.dirty){
228
+ t.skip();
229
+ this._reconnectEvents(run.name);
230
+ continue;
231
+ }
232
+ run.cleanGroup();
233
+ if(this.opt.enableCache){
234
+ run._pathFreePool = (run._pathFreePool?run._pathFreePool:[]).concat(run._pathUsePool?run._pathUsePool:[]);
235
+ run._pathUsePool = [];
236
+ }
237
+ if(!run.data.length){
238
+ run.dirty = false;
239
+ t.skip();
240
+ continue;
241
+ }
242
+
243
+ var theme = t.next(this.opt.areas ? "area" : "line", [this.opt, run], true),
244
+ lpoly,
245
+ ht = this._hScaler.scaler.getTransformerFromModel(this._hScaler),
246
+ vt = this._vScaler.scaler.getTransformerFromModel(this._vScaler),
247
+ eventSeries = this._eventSeries[run.name] = new Array(run.data.length);
248
+
249
+ s = run.group;
250
+ if(run.hidden){
251
+ if(this.opt.lines){
252
+ run.dyn.stroke = theme.series.stroke;
253
+ }
254
+ if(this.opt.markers){
255
+ run.dyn.markerFill = theme.marker.fill;
256
+ run.dyn.markerStroke = theme.marker.stroke;
257
+ run.dyn.marker = theme.symbol;
258
+ }
259
+ if(this.opt.areas){
260
+ run.dyn.fill = theme.series.fill;
261
+ }
262
+ continue;
263
+ }
264
+ // optim works only for index based case
265
+ var indexed = arr.some(run.data, function(item){
266
+ return typeof item == "number" || (item && !item.hasOwnProperty("x"));
267
+ });
268
+
269
+ var rsegments = this.buildSegments(i, indexed);
270
+ for(var seg = 0; seg < rsegments.length; seg++){
271
+ var rsegment = rsegments[seg];
272
+ if(indexed){
273
+ lpoly = arr.map(rsegment.rseg, function(v, i){
274
+ return {
275
+ x: ht(i + rsegment.index + 1) + offsets.l,
276
+ y: dim.height - offsets.b - vt(v),
277
+ data: v
278
+ };
279
+ }, this);
280
+ }else{
281
+ lpoly = arr.map(rsegment.rseg, function(v){
282
+ return {
283
+ x: ht(v.x) + offsets.l,
284
+ y: dim.height - offsets.b - vt(v.y),
285
+ data: v
286
+ };
287
+ }, this);
288
+ }
289
+
290
+ // if we are indexed & we interpolate we need to put all the segments as a single one now
291
+ if(indexed && this.opt.interpolate){
292
+ while(seg < rsegments.length) {
293
+ seg++;
294
+ rsegment = rsegments[seg];
295
+ if(rsegment){
296
+ lpoly = lpoly.concat(arr.map(rsegment.rseg, function(v, i){
297
+ return {
298
+ x: ht(i + rsegment.index + 1) + offsets.l,
299
+ y: dim.height - offsets.b - vt(v),
300
+ data: v
301
+ };
302
+ }, this));
303
+ }
304
+ }
305
+ }
306
+
307
+ var lpath = this.opt.tension ? dc.curve(lpoly, this.opt.tension) : "";
308
+
309
+ if(this.opt.areas && lpoly.length > 1){
310
+ var fill = this._plotFill(theme.series.fill, dim, offsets), apoly = lang.clone(lpoly);
311
+ if(this.opt.tension){
312
+ var apath = "L" + apoly[apoly.length-1].x + "," + (dim.height - offsets.b) +
313
+ " L" + apoly[0].x + "," + (dim.height - offsets.b) +
314
+ " L" + apoly[0].x + "," + apoly[0].y;
315
+ run.dyn.fill = s.createPath(lpath + " " + apath).setFill(fill).getFill();
316
+ } else {
317
+ apoly.push({x: lpoly[lpoly.length - 1].x, y: dim.height - offsets.b});
318
+ apoly.push({x: lpoly[0].x, y: dim.height - offsets.b});
319
+ apoly.push(lpoly[0]);
320
+ run.dyn.fill = s.createPolyline(apoly).setFill(fill).getFill();
321
+ }
322
+ }
323
+ if(this.opt.lines || this.opt.markers){
324
+ // need a stroke
325
+ stroke = theme.series.stroke;
326
+ if(theme.series.outline){
327
+ outline = run.dyn.outline = dc.makeStroke(theme.series.outline);
328
+ outline.width = 2 * outline.width + stroke.width;
329
+ }
330
+ }
331
+ if(this.opt.markers){
332
+ run.dyn.marker = theme.symbol;
333
+ }
334
+ var frontMarkers = null, outlineMarkers = null, shadowMarkers = null;
335
+ if(stroke && theme.series.shadow && lpoly.length > 1){
336
+ var shadow = theme.series.shadow,
337
+ spoly = arr.map(lpoly, function(c){
338
+ return {x: c.x + shadow.dx, y: c.y + shadow.dy};
339
+ });
340
+ if(this.opt.lines){
341
+ if(this.opt.tension){
342
+ run.dyn.shadow = s.createPath(dc.curve(spoly, this.opt.tension)).setStroke(shadow).getStroke();
343
+ } else {
344
+ run.dyn.shadow = s.createPolyline(spoly).setStroke(shadow).getStroke();
345
+ }
346
+ }
347
+ if(this.opt.markers && theme.marker.shadow){
348
+ shadow = theme.marker.shadow;
349
+ shadowMarkers = arr.map(spoly, function(c){
350
+ return this.createPath(run, s, "M" + c.x + " " + c.y + " " + theme.symbol).
351
+ setStroke(shadow).setFill(shadow.color);
352
+ }, this);
353
+ }
354
+ }
355
+ if(this.opt.lines && lpoly.length > 1){
356
+ var shape;
357
+ if(outline){
358
+ if(this.opt.tension){
359
+ run.dyn.outline = s.createPath(lpath).setStroke(outline).getStroke();
360
+ } else {
361
+ run.dyn.outline = s.createPolyline(lpoly).setStroke(outline).getStroke();
362
+ }
363
+ }
364
+ if(this.opt.tension){
365
+ run.dyn.stroke = (shape = s.createPath(lpath)).setStroke(stroke).getStroke();
366
+ } else {
367
+ run.dyn.stroke = (shape = s.createPolyline(lpoly)).setStroke(stroke).getStroke();
368
+ }
369
+ if(shape.setFilter && theme.series.filter){
370
+ shape.setFilter(theme.series.filter);
371
+ }
372
+ }
373
+ var markerBox = null;
374
+ if(this.opt.markers){
375
+ var markerTheme = theme;
376
+ frontMarkers = new Array(lpoly.length);
377
+ outlineMarkers = new Array(lpoly.length);
378
+ outline = null;
379
+ if(markerTheme.marker.outline){
380
+ outline = dc.makeStroke(markerTheme.marker.outline);
381
+ outline.width = 2 * outline.width + (markerTheme.marker.stroke ? markerTheme.marker.stroke.width : 0);
382
+ }
383
+ arr.forEach(lpoly, function(c, i){
384
+ if(this.opt.styleFunc || typeof c.data != "number"){
385
+ var tMixin = typeof c.data != "number" ? [c.data] : [];
386
+ if(this.opt.styleFunc){
387
+ tMixin.push(this.opt.styleFunc(c.data));
388
+ }
389
+ markerTheme = t.addMixin(theme, "marker", tMixin, true);
390
+ }else{
391
+ markerTheme = t.post(theme, "marker");
392
+ }
393
+ var path = "M" + c.x + " " + c.y + " " + markerTheme.symbol;
394
+ if(outline){
395
+ outlineMarkers[i] = this.createPath(run, s, path).setStroke(outline);
396
+ }
397
+ frontMarkers[i] = this.createPath(run, s, path).setStroke(markerTheme.marker.stroke).setFill(markerTheme.marker.fill);
398
+ }, this);
399
+ run.dyn.markerFill = markerTheme.marker.fill;
400
+ run.dyn.markerStroke = markerTheme.marker.stroke;
401
+ if(!markerBox && this.opt.labels){
402
+ markerBox = frontMarkers[0].getBoundingBox();
403
+ }
404
+ if(events){
405
+ arr.forEach(frontMarkers, function(s, i){
406
+ var o = {
407
+ element: "marker",
408
+ index: i + rsegment.index,
409
+ run: run,
410
+ shape: s,
411
+ outline: outlineMarkers[i] || null,
412
+ shadow: shadowMarkers && shadowMarkers[i] || null,
413
+ cx: lpoly[i].x,
414
+ cy: lpoly[i].y
415
+ };
416
+ if(indexed){
417
+ o.x = i + rsegment.index + 1;
418
+ o.y = run.data[i + rsegment.index];
419
+ }else{
420
+ o.x = rsegment.rseg[i].x;
421
+ o.y = run.data[i + rsegment.index].y;
422
+ }
423
+ this._connectEvents(o);
424
+ eventSeries[i + rsegment.index] = o;
425
+ }, this);
426
+ }else{
427
+ delete this._eventSeries[run.name];
428
+ }
429
+ }
430
+ if(this.opt.labels){
431
+ var labelBoxW = markerBox?markerBox.width:2;
432
+ var labelBoxH = markerBox?markerBox.height:2;
433
+ arr.forEach(lpoly, function(c, i){
434
+ if(this.opt.styleFunc || typeof c.data != "number"){
435
+ var tMixin = typeof c.data != "number" ? [c.data] : [];
436
+ if(this.opt.styleFunc){
437
+ tMixin.push(this.opt.styleFunc(c.data));
438
+ }
439
+ markerTheme = t.addMixin(theme, "marker", tMixin, true);
440
+ }else{
441
+ markerTheme = t.post(theme, "marker");
442
+ }
443
+ this.createLabel(s, rsegment.rseg[i], { x: c.x - labelBoxW / 2, y: c.y - labelBoxH / 2,
444
+ width: labelBoxW , height: labelBoxH }, markerTheme);
445
+ }, this);
446
+ }
447
+ }
448
+ run.dirty = false;
449
+ }
450
+ // chart mirroring starts
451
+ if(has("dojo-bidi")){
452
+ this._checkOrientation(this.group, dim, offsets);
453
+ }
454
+ // chart mirroring ends
455
+ if(this.animate){
456
+ // grow from the bottom
457
+ var plotGroup = this.getGroup();
458
+ fx.animateTransform(lang.delegate({
459
+ shape: plotGroup,
460
+ duration: DEFAULT_ANIMATION_LENGTH,
461
+ transform:[
462
+ {name:"translate", start: [0, dim.height - offsets.b], end: [0, 0]},
463
+ {name:"scale", start: [1, 0], end:[1, 1]},
464
+ {name:"original"}
465
+ ]
466
+ }, this.animate)).play();
467
+ }
468
+ this.dirty = false;
469
+ return this; // dojox/charting/plot2d/Default
470
+ }
471
+ });
472
+ });
@@ -0,0 +1,182 @@
1
+ //>>built
2
+ define("dojox/charting/plot2d/Grid",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","dojo/sniff","./CartesianBase","./common","dojox/lang/utils","dojox/gfx/fx"],function(_1,_2,_3,_4,_5,dc,du,fx){
3
+ var _6=function(a,b){
4
+ return a.value-b.value;
5
+ };
6
+ return _2("dojox.charting.plot2d.Grid",_5,{defaultParams:{hMajorLines:true,hMinorLines:false,vMajorLines:true,vMinorLines:false,hStripes:false,vStripes:false,animate:null,enableCache:false,renderOnAxis:true},optionalParams:{majorHLine:{},minorHLine:{},majorVLine:{},minorVLine:{},hFill:{},vFill:{},hAlternateFill:{},vAlternateFill:{}},constructor:function(_7,_8){
7
+ this.opt=_1.clone(this.defaultParams);
8
+ du.updateWithObject(this.opt,_8);
9
+ du.updateWithPattern(this.opt,_8,this.optionalParams);
10
+ this.animate=this.opt.animate;
11
+ if(this.opt.enableCache){
12
+ this._lineFreePool=[];
13
+ this._lineUsePool=[];
14
+ this._rectFreePool=[];
15
+ this._rectUsePool=[];
16
+ }
17
+ },addSeries:function(_9){
18
+ return this;
19
+ },getSeriesStats:function(){
20
+ return _1.delegate(dc.defaultStats);
21
+ },cleanGroup:function(){
22
+ this.inherited(arguments);
23
+ if(this.opt.enableCache){
24
+ this._lineFreePool=this._lineFreePool.concat(this._lineUsePool);
25
+ this._lineUsePool=[];
26
+ this._rectFreePool=this._rectFreePool.concat(this._rectUsePool);
27
+ this._rectUsePool=[];
28
+ }
29
+ },createLine:function(_a,_b){
30
+ var _c;
31
+ if(this.opt.enableCache&&this._lineFreePool.length>0){
32
+ _c=this._lineFreePool.pop();
33
+ _c.setShape(_b);
34
+ _a.add(_c);
35
+ }else{
36
+ _c=_a.createLine(_b);
37
+ }
38
+ if(this.opt.enableCache){
39
+ this._lineUsePool.push(_c);
40
+ }
41
+ return _c;
42
+ },createRect:function(_d,_e){
43
+ var _f;
44
+ if(this.opt.enableCache&&this._rectFreePool.length>0){
45
+ _f=this._rectFreePool.pop();
46
+ _f.setShape(_e);
47
+ _d.add(_f);
48
+ }else{
49
+ _f=_d.createRect(_e);
50
+ }
51
+ if(this.opt.enableCache){
52
+ this._rectUsePool.push(_f);
53
+ }
54
+ return _f;
55
+ },render:function(dim,_10){
56
+ if(this.zoom){
57
+ return this.performZoom(dim,_10);
58
+ }
59
+ this.dirty=this.isDirty();
60
+ if(!this.dirty){
61
+ return this;
62
+ }
63
+ this.cleanGroup();
64
+ var s=this.getGroup(),ta=this.chart.theme,_11,_12;
65
+ if((_4("ios")&&_4("ios")<6)||_4("android")||(_4("safari")&&!_4("ios"))){
66
+ var w=Math.max(0,dim.width-_10.l-_10.r),h=Math.max(0,dim.height-_10.t-_10.b);
67
+ s.createRect({x:_10.l,y:_10.t,width:w,height:h});
68
+ }
69
+ if(this._vAxis){
70
+ _12=this._vAxis.getTicks();
71
+ var _13=this._vAxis.getScaler();
72
+ if(_12!=null&&_13!=null){
73
+ var vt=_13.scaler.getTransformerFromModel(_13);
74
+ if(this.opt.hStripes){
75
+ this._renderHRect(_12,ta.grid,dim,_10,_13,vt);
76
+ }
77
+ if(this.opt.hMinorLines){
78
+ _11=this.opt.minorHLine||(ta.grid&&ta.grid.minorLine)||ta.axis.minorTick;
79
+ this._renderHLines(_12.minor,_11,dim,_10,_13,vt);
80
+ }
81
+ if(this.opt.hMajorLines){
82
+ _11=this.opt.majorHLine||(ta.grid&&ta.grid.majorLine)||ta.axis.majorTick;
83
+ this._renderHLines(_12.major,_11,dim,_10,_13,vt);
84
+ }
85
+ }
86
+ }
87
+ if(this._hAxis){
88
+ _12=this._hAxis.getTicks();
89
+ var _14=this._hAxis.getScaler();
90
+ if(_12!=null&&_14!=null){
91
+ var ht=_14.scaler.getTransformerFromModel(_14);
92
+ if(this.opt.vStripes){
93
+ this._renderVRect(_12,ta.grid,dim,_10,_14,ht);
94
+ }
95
+ if(_12&&this.opt.vMinorLines){
96
+ _11=this.opt.minorVLine||(ta.grid&&ta.grid.minorLine)||ta.axis.minorTick;
97
+ this._renderVLines(_12.minor,_11,dim,_10,_14,ht);
98
+ }
99
+ if(_12&&this.opt.vMajorLines){
100
+ _11=this.opt.majorVLine||(ta.grid&&ta.grid.majorLine)||ta.axis.majorTick;
101
+ this._renderVLines(_12.major,_11,dim,_10,_14,ht);
102
+ }
103
+ }
104
+ }
105
+ this.dirty=false;
106
+ return this;
107
+ },_renderHLines:function(_15,_16,dim,_17,_18,vt){
108
+ var s=this.getGroup();
109
+ _3.forEach(_15,function(_19){
110
+ if(!this.opt.renderOnAxis&&_19.value==(this._vAxis.opt.leftBottom?_18.bounds.from:_18.bounds.to)){
111
+ return;
112
+ }
113
+ var y=dim.height-_17.b-vt(_19.value);
114
+ var _1a=this.createLine(s,{x1:_17.l,y1:y,x2:dim.width-_17.r,y2:y}).setStroke(_16);
115
+ if(this.animate){
116
+ this._animateGrid(_1a,"h",_17.l,_17.r+_17.l-dim.width);
117
+ }
118
+ },this);
119
+ },_renderVLines:function(_1b,_1c,dim,_1d,_1e,ht){
120
+ var s=this.getGroup();
121
+ _3.forEach(_1b,function(_1f){
122
+ if(!this.opt.renderOnAxis&&_1f.value==(this._hAxis.opt.leftBottom?_1e.bounds.from:_1e.bounds.to)){
123
+ return;
124
+ }
125
+ var x=_1d.l+ht(_1f.value);
126
+ var _20=this.createLine(s,{x1:x,y1:_1d.t,x2:x,y2:dim.height-_1d.b}).setStroke(_1c);
127
+ if(this.animate){
128
+ this._animateGrid(_20,"v",dim.height-_1d.b,dim.height-_1d.b-_1d.t);
129
+ }
130
+ },this);
131
+ },_renderHRect:function(_21,_22,dim,_23,_24,vt){
132
+ var _25,_26,y,y2,_27;
133
+ var _28=_21.major.concat(_21.minor);
134
+ _28.sort(_6);
135
+ if(_28[0].value>_24.bounds.from){
136
+ _28.splice(0,0,{value:_24.bounds.from});
137
+ }
138
+ if(_28[_28.length-1].value<_24.bounds.to){
139
+ _28.push({value:_24.bounds.to});
140
+ }
141
+ var s=this.getGroup();
142
+ for(var j=0;j<_28.length-1;j++){
143
+ _26=_28[j];
144
+ y=dim.height-_23.b-vt(_26.value);
145
+ y2=dim.height-_23.b-vt(_28[j+1].value);
146
+ _25=(j%2==0)?(this.opt.hAlternateFill||(_22&&_22.alternateFill)):(this.opt.hFill||(_22&&_22.fill));
147
+ if(_25){
148
+ _27=this.createRect(s,{x:_23.l,y:y,width:dim.width-_23.r,height:y-y2}).setFill(_25);
149
+ if(this.animate){
150
+ this._animateGrid(_27,"h",_23.l,_23.r+_23.l-dim.width);
151
+ }
152
+ }
153
+ }
154
+ },_renderVRect:function(_29,_2a,dim,_2b,_2c,ht){
155
+ var _2d,_2e,x,x2,_2f;
156
+ var _30=_29.major.concat(_29.minor);
157
+ _30.sort(_6);
158
+ if(_30[0].value>_2c.bounds.from){
159
+ _30.splice(0,0,{value:_2c.bounds.from});
160
+ }
161
+ if(_30[_30.length-1].value<_2c.bounds.to){
162
+ _30.push({value:_2c.bounds.to});
163
+ }
164
+ var s=this.getGroup();
165
+ for(var j=0;j<_30.length-1;j++){
166
+ _2e=_30[j];
167
+ x=_2b.l+ht(_2e.value);
168
+ x2=_2b.l+ht(_30[j+1].value);
169
+ _2d=(j%2==0)?(this.opt.vAlternateFill||(_2a&&_2a.alternateFill)):(this.opt.vFill||(_2a&&_2a.fill));
170
+ if(_2d){
171
+ _2f=this.createRect(s,{x:x,y:_2b.t,width:x2-x,height:dim.width-_2b.r}).setFill(_2d);
172
+ if(this.animate){
173
+ this._animateGrid(_2f,"v",dim.height-_2b.b,dim.height-_2b.b-_2b.t);
174
+ }
175
+ }
176
+ }
177
+ },_animateGrid:function(_31,_32,_33,_34){
178
+ var _35=_32=="h"?[_33,0]:[0,_33];
179
+ var _36=_32=="h"?[1/_34,1]:[1,1/_34];
180
+ fx.animateTransform(_1.delegate({shape:_31,duration:1200,transform:[{name:"translate",start:_35,end:[0,0]},{name:"scale",start:_36,end:[1,1]},{name:"original"}]},this.animate)).play();
181
+ }});
182
+ });