@datagrok/helm 2.13.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/dist/489.js +2 -0
  2. package/dist/489.js.map +1 -0
  3. package/dist/package-test.js +1 -1
  4. package/dist/package-test.js.map +1 -1
  5. package/dist/package.js +1 -1
  6. package/dist/package.js.map +1 -1
  7. package/files/samples/helm-showcase.csv +56 -0
  8. package/package.json +6 -10
  9. package/src/helm-helper.ts +61 -413
  10. package/src/package-api.ts +14 -11
  11. package/src/package-test.ts +0 -2
  12. package/src/package-utils.ts +8 -298
  13. package/src/package.g.ts +2 -8
  14. package/src/package.ts +11 -31
  15. package/src/tests/helm-activity-cliffs.ts +2 -2
  16. package/src/tests/helm-input-tests.ts +83 -0
  17. package/src/tests/parse-helm-tests.ts +7 -57
  18. package/src/tests/properties-widget-tests.ts +21 -11
  19. package/src/utils/helm-grid-cell-renderer.ts +141 -151
  20. package/src/utils/index.ts +3 -7
  21. package/src/widgets/helm-input.ts +42 -12
  22. package/src/widgets/properties-widget.ts +18 -11
  23. package/test-console-output-1.log +105 -714
  24. package/test-record-1.mp4 +0 -0
  25. package/webpack.config.js +1 -12
  26. package/dist/455.js +0 -2
  27. package/dist/455.js.map +0 -1
  28. package/dist/package-dojo.js +0 -2
  29. package/dist/package-dojo.js.map +0 -1
  30. package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
  31. package/helm/JSDraw/ReadMe.txt +0 -8
  32. package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
  33. package/helm/dojo/package.ts +0 -41
  34. package/helm/dojo/types.ts +0 -12
  35. package/src/helm-web-editor.ts +0 -68
  36. package/src/tests/get-monomer-tests.ts +0 -214
  37. package/src/tests/helm-service-tests.ts +0 -98
  38. package/src/types/dojo.ts +0 -3
  39. package/src/types/index.ts +0 -5
  40. package/src/utils/get-monomer.ts +0 -90
  41. package/src/utils/helm-service.ts +0 -166
  42. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
  43. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
  44. package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
  45. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
  46. package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
  47. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
  48. package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
  49. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
  50. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
  51. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
  52. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
  53. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
  54. package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
  55. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
  56. package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
  57. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
  58. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
  59. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
  60. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
  61. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
  62. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
  63. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
  64. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
  65. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
  66. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
  67. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
  68. package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
  69. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
  70. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
  71. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
  72. package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
  73. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
  74. package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
  75. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
  76. package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
  77. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
  78. package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
  79. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
  80. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
  81. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
  82. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
  83. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
  84. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
  85. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
  86. package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
  87. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
  88. package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
  89. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
  90. package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
  91. package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
  92. package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
  93. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
  94. package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
  95. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
  96. package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
  97. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
  98. package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
  99. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
  100. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
  101. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
  102. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
  103. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
  104. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
  105. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
  106. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
  107. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
  108. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
  109. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
  110. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
  111. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
  112. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
  113. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
  114. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
  115. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
  116. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
  117. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
  118. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
  119. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
  120. package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
  121. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
  122. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
  123. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
  124. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
  125. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
  126. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
  127. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
  128. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
  129. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
  130. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
  131. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
  132. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
  133. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
  134. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
  135. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
  136. package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
  137. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
  138. package/vendor/dojo-1.10.10/dijit/main.js +0 -4
  139. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
  140. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
  141. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
  142. package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
  143. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
  144. package/vendor/dojo-1.10.10/dijit/place.js +0 -142
  145. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
  146. package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
  147. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
  148. package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
  149. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
  150. package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
  151. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
  152. package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
  153. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
  154. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
  155. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
  156. package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
  157. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
  158. package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
  159. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
  160. package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
  161. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
  162. package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
  163. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
  164. package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
  165. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
  166. package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
  167. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
  168. package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
  169. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
  170. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
  171. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
  172. package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
  173. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
  174. package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
  175. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
  176. package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
  177. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
  178. package/vendor/dojo-1.10.10/dojo/html.js +0 -161
  179. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
  180. package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
  181. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
  182. package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
  183. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
  184. package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
  185. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
  186. package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
  187. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
  188. package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
  189. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
  190. package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
  191. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
  192. package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
  193. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
  194. package/vendor/dojo-1.10.10/dojo/require.js +0 -11
  195. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
  196. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  197. package/vendor/dojo-1.10.10/dojo/string.js +0 -67
  198. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
  199. package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
  200. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
  201. package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
  202. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
  203. package/vendor/dojo-1.10.10/dojo/window.js +0 -141
  204. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
  205. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
  206. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
  207. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
  208. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
  209. package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
  210. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
  211. package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
  212. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
  213. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
  214. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
  215. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
  216. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
  217. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
  218. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
  219. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
  220. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
  221. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
  222. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
  223. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
  224. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
  225. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
  226. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
  227. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
  228. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
  229. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
  230. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
  231. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
  232. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
  233. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
  234. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
  235. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
  236. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
  237. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
  267. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
  268. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
  269. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
  270. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
  271. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
  272. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
  273. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
  274. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
  275. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
  276. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
  277. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
  278. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
  279. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
  280. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
  281. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
  282. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
  283. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
  284. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
  285. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
  286. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
  287. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
  288. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
  289. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
  290. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
  291. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
  292. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
  293. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
  294. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
  295. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
  296. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
  297. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
  298. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
  299. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
  300. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
  301. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
  302. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
  303. package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
  304. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
  305. package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
  306. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
  307. package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
  308. package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
  309. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
  310. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
  311. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
  312. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
  313. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
  314. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
  315. package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
  316. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
  317. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
  318. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
  319. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
  320. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
  321. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
  322. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
  323. package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
  324. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
  325. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
  326. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
  327. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
  328. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
  329. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
  330. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
  331. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
  332. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
  333. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
  334. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
  335. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
  336. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
  337. package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
  338. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
  339. package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
  340. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
  341. package/vendor/dojo-1.10.10/dojox/main.js +0 -4
  342. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
  343. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
  344. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
  345. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
  346. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
  347. package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
  348. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
@@ -1,168 +0,0 @@
1
- //>>built
2
- define("dojox/charting/plot2d/Bars",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/has","./CartesianBase","./_PlotEvents","./common","dojox/gfx/fx","dojox/lang/utils","dojox/lang/functional","dojox/lang/functional/reversed"],function(_1,_2,_3,_4,_5,_6,dc,fx,du,df,_7){
3
- var _8=_7.lambda("item.purgeGroup()");
4
- return _3("dojox.charting.plot2d.Bars",[_5,_6],{defaultParams:{gap:0,animate:null,enableCache:false},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},filter:{},styleFunc:null,font:"",fontColor:""},constructor:function(_9,_a){
5
- this.opt=_1.clone(_1.mixin(this.opt,this.defaultParams));
6
- du.updateWithObject(this.opt,_a);
7
- du.updateWithPattern(this.opt,_a,this.optionalParams);
8
- this.animate=this.opt.animate;
9
- this.renderingOptions={"shape-rendering":"crispEdges"};
10
- },getSeriesStats:function(){
11
- var _b=dc.collectSimpleStats(this.series),t;
12
- _b.hmin-=0.5;
13
- _b.hmax+=0.5;
14
- t=_b.hmin,_b.hmin=_b.vmin,_b.vmin=t;
15
- t=_b.hmax,_b.hmax=_b.vmax,_b.vmax=t;
16
- return _b;
17
- },createRect:function(_c,_d,_e){
18
- var _f;
19
- if(this.opt.enableCache&&_c._rectFreePool.length>0){
20
- _f=_c._rectFreePool.pop();
21
- _f.setShape(_e);
22
- _d.add(_f);
23
- }else{
24
- _f=_d.createRect(_e);
25
- }
26
- if(this.opt.enableCache){
27
- _c._rectUsePool.push(_f);
28
- }
29
- return _f;
30
- },createLabel:function(_10,_11,_12,_13){
31
- if(this.opt.labels&&this.opt.labelStyle=="outside"){
32
- var y=_12.y+_12.height/2;
33
- var x=_12.x+_12.width+this.opt.labelOffset;
34
- this.renderLabel(_10,x,y,this._getLabel(isNaN(_11.y)?_11:_11.y),_13,"start");
35
- }else{
36
- this.inherited(arguments);
37
- }
38
- },render:function(dim,_14){
39
- if(this.zoom&&!this.isDataDirty()){
40
- return this.performZoom(dim,_14);
41
- }
42
- this.dirty=this.isDirty();
43
- this.resetEvents();
44
- var s;
45
- if(this.dirty){
46
- _2.forEach(this.series,_8);
47
- this._eventSeries={};
48
- this.cleanGroup();
49
- s=this.getGroup();
50
- df.forEachRev(this.series,function(_15){
51
- _15.cleanGroup(s);
52
- });
53
- }
54
- var t=this.chart.theme,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_16=Math.max(0,this._hScaler.bounds.lower),_17=ht(_16),_18=this.events();
55
- var bar=this.getBarProperties();
56
- var _19=this.series.length;
57
- _2.forEach(this.series,function(_1a){
58
- if(_1a.hidden){
59
- _19--;
60
- }
61
- });
62
- var z=_19;
63
- for(var i=this.series.length-1;i>=0;--i){
64
- var run=this.series[i];
65
- if(!this.dirty&&!run.dirty){
66
- t.skip();
67
- this._reconnectEvents(run.name);
68
- continue;
69
- }
70
- run.cleanGroup();
71
- if(this.opt.enableCache){
72
- run._rectFreePool=(run._rectFreePool?run._rectFreePool:[]).concat(run._rectUsePool?run._rectUsePool:[]);
73
- run._rectUsePool=[];
74
- }
75
- var _1b=t.next("bar",[this.opt,run]);
76
- if(run.hidden){
77
- run.dyn.fill=_1b.series.fill;
78
- run.dyn.stroke=_1b.series.stroke;
79
- continue;
80
- }
81
- z--;
82
- var _1c=new Array(run.data.length);
83
- s=run.group;
84
- var _1d=_2.some(run.data,function(_1e){
85
- return typeof _1e=="number"||(_1e&&!_1e.hasOwnProperty("x"));
86
- });
87
- var min=_1d?Math.max(0,Math.floor(this._vScaler.bounds.from-1)):0;
88
- var max=_1d?Math.min(run.data.length,Math.ceil(this._vScaler.bounds.to)):run.data.length;
89
- for(var j=min;j<max;++j){
90
- var _1f=run.data[j];
91
- if(_1f!=null){
92
- var val=this.getValue(_1f,j,i,_1d),hv=ht(val.y),w=Math.abs(hv-_17),_20,_21;
93
- if(this.opt.styleFunc||typeof _1f!="number"){
94
- var _22=typeof _1f!="number"?[_1f]:[];
95
- if(this.opt.styleFunc){
96
- _22.push(this.opt.styleFunc(_1f));
97
- }
98
- _20=t.addMixin(_1b,"bar",_22,true);
99
- }else{
100
- _20=t.post(_1b,"bar");
101
- }
102
- if(w>=0&&bar.height>=1){
103
- var _23={x:_14.l+(val.y<_16?hv:_17),y:dim.height-_14.b-vt(val.x+1.5)+bar.gap+bar.thickness*(_19-z-1),width:w,height:bar.height};
104
- if(_20.series.shadow){
105
- var _24=_1.clone(_23);
106
- _24.x+=_20.series.shadow.dx;
107
- _24.y+=_20.series.shadow.dy;
108
- _21=this.createRect(run,s,_24).setFill(_20.series.shadow.color).setStroke(_20.series.shadow);
109
- if(this.animate){
110
- this._animateBar(_21,_14.l+_17,-w);
111
- }
112
- }
113
- var _25=this._plotFill(_20.series.fill,dim,_14);
114
- _25=this._shapeFill(_25,_23);
115
- var _26=this.createRect(run,s,_23).setFill(_25).setStroke(_20.series.stroke);
116
- if(_26.setFilter&&_20.series.filter){
117
- _26.setFilter(_20.series.filter);
118
- }
119
- run.dyn.fill=_26.getFill();
120
- run.dyn.stroke=_26.getStroke();
121
- if(_18){
122
- var o={element:"bar",index:j,run:run,shape:_26,shadow:_21,cx:val.y,cy:val.x+1.5,x:_1d?j:run.data[j].x,y:_1d?run.data[j]:run.data[j].y};
123
- this._connectEvents(o);
124
- _1c[j]=o;
125
- }
126
- if(!isNaN(val.py)&&val.py>_16){
127
- _23.x+=ht(val.py);
128
- _23.width-=ht(val.py);
129
- }
130
- this.createLabel(s,_1f,_23,_20);
131
- if(this.animate){
132
- this._animateBar(_26,_14.l+_17,-w);
133
- }
134
- }
135
- }
136
- }
137
- this._eventSeries[run.name]=_1c;
138
- run.dirty=false;
139
- }
140
- this.dirty=false;
141
- if(_4("dojo-bidi")){
142
- this._checkOrientation(this.group,dim,_14);
143
- }
144
- return this;
145
- },getValue:function(_27,j,_28,_29){
146
- var y,x;
147
- if(_29){
148
- if(typeof _27=="number"){
149
- y=_27;
150
- }else{
151
- y=_27.y;
152
- }
153
- x=j;
154
- }else{
155
- y=_27.y;
156
- x=_27.x-1;
157
- }
158
- return {y:y,x:x};
159
- },getBarProperties:function(){
160
- var f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);
161
- return {gap:f.gap,height:f.size,thickness:0};
162
- },_animateBar:function(_2a,_2b,_2c){
163
- if(_2c==0){
164
- _2c=1;
165
- }
166
- fx.animateTransform(_1.delegate({shape:_2a,duration:1200,transform:[{name:"translate",start:[_2b-(_2b/_2c),0],end:[0,0]},{name:"scale",start:[1/_2c,1],end:[1,1]},{name:"original"}]},this.animate)).play();
167
- }});
168
- });
@@ -1,311 +0,0 @@
1
- define("dojox/charting/plot2d/Bars", ["dojo/_base/lang", "dojo/_base/array", "dojo/_base/declare", "dojo/has", "./CartesianBase", "./_PlotEvents", "./common",
2
- "dojox/gfx/fx", "dojox/lang/utils", "dojox/lang/functional", "dojox/lang/functional/reversed"],
3
- function(lang, arr, declare, has, CartesianBase, _PlotEvents, dc, fx, du, df, dfr){
4
-
5
- /*=====
6
- declare("dojox.charting.plot2d.__BarCtorArgs", dojox.charting.plot2d.__DefaultCtorArgs, {
7
- // summary:
8
- // Additional keyword arguments for bar charts.
9
-
10
- // minBarSize: Number?
11
- // The minimum size for a bar in pixels. Default is 1.
12
- minBarSize: 1,
13
-
14
- // maxBarSize: Number?
15
- // The maximum size for a bar in pixels. Default is 1.
16
- maxBarSize: 1,
17
-
18
- // stroke: dojox.gfx.Stroke?
19
- // An optional stroke to use for any series on the plot.
20
- stroke: {},
21
-
22
- // outline: dojox.gfx.Stroke?
23
- // An optional stroke used to outline any series on the plot.
24
- outline: {},
25
-
26
- // shadow: dojox.gfx.Stroke?
27
- // An optional stroke to use to draw any shadows for a series on a plot.
28
- shadow: {},
29
-
30
- // fill: dojox.gfx.Fill?
31
- // Any fill to be used for elements on the plot.
32
- fill: {},
33
-
34
- // filter: dojox.gfx.Filter?
35
- // An SVG filter to be used for elements on the plot. gfx SVG renderer must be used and dojox/gfx/svgext must
36
- // be required for this to work.
37
- filter: {},
38
-
39
- // styleFunc: Function?
40
- // A function that returns a styling object for the a given data item.
41
- styleFunc: null,
42
-
43
- // font: String?
44
- // A font definition to be used for labels and other text-based elements on the plot.
45
- font: "",
46
-
47
- // fontColor: String|dojo.Color?
48
- // The color to be used for any text-based elements on the plot.
49
- fontColor: "",
50
-
51
- // enableCache: Boolean?
52
- // Whether the bars rect are cached from one rendering to another. This improves the rendering performance of
53
- // successive rendering but penalize the first rendering. Default false.
54
- enableCache: false
55
- });
56
- =====*/
57
- var purgeGroup = dfr.lambda("item.purgeGroup()");
58
-
59
- return declare("dojox.charting.plot2d.Bars", [CartesianBase, _PlotEvents], {
60
- // summary:
61
- // The plot object representing a bar chart (horizontal bars).
62
- defaultParams: {
63
- gap: 0, // gap between columns in pixels
64
- animate: null, // animate bars into place
65
- enableCache: false
66
- },
67
- optionalParams: {
68
- minBarSize: 1, // minimal bar width in pixels
69
- maxBarSize: 1, // maximal bar width in pixels
70
- // theme component
71
- stroke: {},
72
- outline: {},
73
- shadow: {},
74
- fill: {},
75
- filter: {},
76
- styleFunc: null,
77
- font: "",
78
- fontColor: ""
79
- },
80
-
81
- constructor: function(chart, kwArgs){
82
- // summary:
83
- // The constructor for a bar chart.
84
- // chart: dojox/charting/Chart
85
- // The chart this plot belongs to.
86
- // kwArgs: dojox.charting.plot2d.__BarCtorArgs?
87
- // An optional keyword arguments object to help define the plot.
88
- this.opt = lang.clone(lang.mixin(this.opt, this.defaultParams));
89
- du.updateWithObject(this.opt, kwArgs);
90
- du.updateWithPattern(this.opt, kwArgs, this.optionalParams);
91
- this.animate = this.opt.animate;
92
- this.renderingOptions = { "shape-rendering": "crispEdges" };
93
- },
94
-
95
- getSeriesStats: function(){
96
- // summary:
97
- // Calculate the min/max on all attached series in both directions.
98
- // returns: Object
99
- // {hmin, hmax, vmin, vmax} min/max in both directions.
100
- var stats = dc.collectSimpleStats(this.series), t;
101
- stats.hmin -= 0.5;
102
- stats.hmax += 0.5;
103
- t = stats.hmin, stats.hmin = stats.vmin, stats.vmin = t;
104
- t = stats.hmax, stats.hmax = stats.vmax, stats.vmax = t;
105
- return stats; // Object
106
- },
107
-
108
- createRect: function(run, creator, params){
109
- var rect;
110
- if(this.opt.enableCache && run._rectFreePool.length > 0){
111
- rect = run._rectFreePool.pop();
112
- rect.setShape(params);
113
- // was cleared, add it back
114
- creator.add(rect);
115
- }else{
116
- rect = creator.createRect(params);
117
- }
118
- if(this.opt.enableCache){
119
- run._rectUsePool.push(rect);
120
- }
121
- return rect;
122
- },
123
-
124
- createLabel: function(group, value, bbox, theme){
125
- if(this.opt.labels && this.opt.labelStyle == "outside"){
126
- var y = bbox.y + bbox.height / 2;
127
- var x = bbox.x + bbox.width + this.opt.labelOffset;
128
- this.renderLabel(group, x, y, this._getLabel(isNaN(value.y)?value:value.y), theme, "start");
129
- }else{
130
- this.inherited(arguments);
131
- }
132
- },
133
-
134
- render: function(dim, offsets){
135
- // summary:
136
- // Run the calculations for any axes for this plot.
137
- // dim: Object
138
- // An object in the form of { width, height }
139
- // offsets: Object
140
- // An object of the form { l, r, t, b}.
141
- // returns: dojox/charting/plot2d/Bars
142
- // A reference to this plot for functional chaining.
143
- if(this.zoom && !this.isDataDirty()){
144
- return this.performZoom(dim, offsets); // dojox/charting/plot2d/Bars
145
- }
146
- this.dirty = this.isDirty();
147
- this.resetEvents();
148
- var s;
149
- if(this.dirty){
150
- arr.forEach(this.series, purgeGroup);
151
- this._eventSeries = {};
152
- this.cleanGroup();
153
- s = this.getGroup();
154
- df.forEachRev(this.series, function(item){ item.cleanGroup(s); });
155
- }
156
- var t = this.chart.theme,
157
- ht = this._hScaler.scaler.getTransformerFromModel(this._hScaler),
158
- vt = this._vScaler.scaler.getTransformerFromModel(this._vScaler),
159
- baseline = Math.max(0, this._hScaler.bounds.lower),
160
- baselineWidth = ht(baseline),
161
- events = this.events();
162
- var bar = this.getBarProperties();
163
-
164
- var actualLength = this.series.length;
165
- arr.forEach(this.series, function(serie){if(serie.hidden){actualLength--;}});
166
- var z = actualLength;
167
- for(var i = this.series.length - 1; i >= 0; --i){
168
- var run = this.series[i];
169
- if(!this.dirty && !run.dirty){
170
- t.skip();
171
- this._reconnectEvents(run.name);
172
- continue;
173
- }
174
- run.cleanGroup();
175
- if(this.opt.enableCache){
176
- run._rectFreePool = (run._rectFreePool?run._rectFreePool:[]).concat(run._rectUsePool?run._rectUsePool:[]);
177
- run._rectUsePool = [];
178
- }
179
- var theme = t.next("bar", [this.opt, run]);
180
- if(run.hidden){
181
- run.dyn.fill = theme.series.fill;
182
- run.dyn.stroke = theme.series.stroke;
183
- continue;
184
- }
185
- z--;
186
-
187
- var eventSeries = new Array(run.data.length);
188
- s = run.group;
189
- var indexed = arr.some(run.data, function(item){
190
- return typeof item == "number" || (item && !item.hasOwnProperty("x"));
191
- });
192
- // on indexed charts we can easily just interate from the first visible to the last visible
193
- // data point to save time
194
- var min = indexed?Math.max(0, Math.floor(this._vScaler.bounds.from - 1)):0;
195
- var max = indexed?Math.min(run.data.length, Math.ceil(this._vScaler.bounds.to)):run.data.length;
196
- for(var j = min; j < max; ++j){
197
- var value = run.data[j];
198
- if(value != null){
199
- var val = this.getValue(value, j, i, indexed),
200
- hv = ht(val.y),
201
- w = Math.abs(hv - baselineWidth),
202
- finalTheme,
203
- sshape;
204
- if(this.opt.styleFunc || typeof value != "number"){
205
- var tMixin = typeof value != "number" ? [value] : [];
206
- if(this.opt.styleFunc){
207
- tMixin.push(this.opt.styleFunc(value));
208
- }
209
- finalTheme = t.addMixin(theme, "bar", tMixin, true);
210
- }else{
211
- finalTheme = t.post(theme, "bar");
212
- }
213
- if(w >= 0 && bar.height >= 1){
214
- var rect = {
215
- x: offsets.l + (val.y < baseline ? hv : baselineWidth),
216
- y: dim.height - offsets.b - vt(val.x + 1.5) + bar.gap + bar.thickness * (actualLength - z - 1),
217
- // y: dim.height - offsets.b - vt(val.x + 1.5) + bar.gap + bar.thickness * z,
218
- width: w,
219
- height: bar.height
220
- };
221
- if(finalTheme.series.shadow){
222
- var srect = lang.clone(rect);
223
- srect.x += finalTheme.series.shadow.dx;
224
- srect.y += finalTheme.series.shadow.dy;
225
- sshape = this.createRect(run, s, srect).setFill(finalTheme.series.shadow.color).setStroke(finalTheme.series.shadow);
226
- if(this.animate){
227
- this._animateBar(sshape, offsets.l + baselineWidth, -w);
228
- }
229
- }
230
- var specialFill = this._plotFill(finalTheme.series.fill, dim, offsets);
231
- specialFill = this._shapeFill(specialFill, rect);
232
- var shape = this.createRect(run, s, rect).setFill(specialFill).setStroke(finalTheme.series.stroke);
233
- if(shape.setFilter && finalTheme.series.filter){
234
- shape.setFilter(finalTheme.series.filter);
235
- }
236
- run.dyn.fill = shape.getFill();
237
- run.dyn.stroke = shape.getStroke();
238
- if(events){
239
- var o = {
240
- element: "bar",
241
- index: j,
242
- run: run,
243
- shape: shape,
244
- shadow: sshape,
245
- cx: val.y,
246
- cy: val.x + 1.5,
247
- x: indexed?j:run.data[j].x,
248
- y: indexed?run.data[j]:run.data[j].y
249
- };
250
- this._connectEvents(o);
251
- eventSeries[j] = o;
252
- }
253
- // if val.py is here, this means we are stacking and we need to subtract previous
254
- // value to get the high in which we will lay out the label
255
- if(!isNaN(val.py) && val.py > baseline){
256
- rect.x += ht(val.py);
257
- rect.width -= ht(val.py);
258
- }
259
- this.createLabel(s, value, rect, finalTheme);
260
- if(this.animate){
261
- this._animateBar(shape, offsets.l + baselineWidth, -w);
262
- }
263
- }
264
- }
265
- }
266
- this._eventSeries[run.name] = eventSeries;
267
- run.dirty = false;
268
- }
269
- this.dirty = false;
270
- // chart mirroring starts
271
- if(has("dojo-bidi")){
272
- this._checkOrientation(this.group, dim, offsets);
273
- }
274
- // chart mirroring ends
275
- return this; // dojox/charting/plot2d/Bars
276
- },
277
- getValue: function(value, j, seriesIndex, indexed){
278
- var y, x;
279
- if(indexed){
280
- if(typeof value == "number"){
281
- y = value;
282
- }else{
283
- y = value.y;
284
- }
285
- x = j;
286
- }else{
287
- y = value.y;
288
- x = value.x -1;
289
- }
290
- return {y:y, x:x};
291
- },
292
- getBarProperties: function(){
293
- var f = dc.calculateBarSize(this._vScaler.bounds.scale, this.opt);
294
- return {gap: f.gap, height: f.size, thickness: 0};
295
- },
296
- _animateBar: function(shape, hoffset, hsize){
297
- if(hsize==0){
298
- hsize = 1;
299
- }
300
- fx.animateTransform(lang.delegate({
301
- shape: shape,
302
- duration: 1200,
303
- transform: [
304
- {name: "translate", start: [hoffset - (hoffset/hsize), 0], end: [0, 0]},
305
- {name: "scale", start: [1/hsize, 1], end: [1, 1]},
306
- {name: "original"}
307
- ]
308
- }, this.animate)).play();
309
- }
310
- });
311
- });
@@ -1,61 +0,0 @@
1
- //>>built
2
- define("dojox/charting/plot2d/Base",["dojo/_base/declare","dojo/_base/array","dojox/gfx","../Element","./common","../axis2d/common","dojo/has"],function(_1,_2,_3,_4,_5,ac,_6){
3
- var _7=_1("dojox.charting.plot2d.Base",_4,{constructor:function(_8,_9){
4
- if(_9&&_9.tooltipFunc){
5
- this.tooltipFunc=_9.tooltipFunc;
6
- }
7
- },clear:function(){
8
- this.series=[];
9
- this.dirty=true;
10
- return this;
11
- },setAxis:function(_a){
12
- return this;
13
- },assignAxes:function(_b){
14
- _2.forEach(this.axes,function(_c){
15
- if(this[_c]){
16
- this.setAxis(_b[this[_c]]);
17
- }
18
- },this);
19
- },addSeries:function(_d){
20
- this.series.push(_d);
21
- return this;
22
- },getSeriesStats:function(){
23
- return _5.collectSimpleStats(this.series);
24
- },calculateAxes:function(_e){
25
- this.initializeScalers(_e,this.getSeriesStats());
26
- return this;
27
- },initializeScalers:function(){
28
- return this;
29
- },isDataDirty:function(){
30
- return _2.some(this.series,function(_f){
31
- return _f.dirty;
32
- });
33
- },render:function(dim,_10){
34
- return this;
35
- },renderLabel:function(_11,x,y,_12,_13,_14,_15){
36
- var _16=ac.createText[this.opt.htmlLabels&&_3.renderer!="vml"?"html":"gfx"](this.chart,_11,x,y,_15?_15:"middle",_12,_13.series.font,_13.series.fontColor);
37
- if(_14){
38
- if(this.opt.htmlLabels&&_3.renderer!="vml"){
39
- _16.style.pointerEvents="none";
40
- }else{
41
- if(_16.rawNode){
42
- _16.rawNode.style.pointerEvents="none";
43
- }
44
- }
45
- }
46
- if(this.opt.htmlLabels&&_3.renderer!="vml"){
47
- this.htmlElements.push(_16);
48
- }
49
- return _16;
50
- },getRequiredColors:function(){
51
- return this.series.length;
52
- },_getLabel:function(_17){
53
- return _5.getLabel(_17,this.opt.fixed,this.opt.precision);
54
- }});
55
- if(_6("dojo-bidi")){
56
- _7.extend({_checkOrientation:function(_18,dim,_19){
57
- this.chart.applyMirroring(this.group,dim,_19);
58
- }});
59
- }
60
- return _7;
61
- });
@@ -1,161 +0,0 @@
1
- define("dojox/charting/plot2d/Base", ["dojo/_base/declare", "dojo/_base/array", "dojox/gfx",
2
- "../Element", "./common", "../axis2d/common", "dojo/has"],
3
- function(declare, arr, gfx, Element, common, ac, has){
4
- /*=====
5
- dojox.charting.plot2d.__PlotCtorArgs = {
6
- // summary:
7
- // The base keyword arguments object for plot constructors.
8
- // Note that the parameters for this may change based on the
9
- // specific plot type (see the corresponding plot type for
10
- // details).
11
-
12
- // tooltipFunc: Function?
13
- // An optional function used to compute tooltip text for this plot. It takes precedence over
14
- // the default function when available.
15
- // | function tooltipFunc(o) { return "text"; }
16
- // `o`is the event object that triggered the tooltip.
17
- tooltipFunc: null
18
- };
19
- =====*/
20
- var Base = declare("dojox.charting.plot2d.Base", Element, {
21
- // summary:
22
- // Base class for all plot types.
23
- constructor: function(chart, kwArgs){
24
- // summary:
25
- // Create a base plot for charting.
26
- // chart: dojox/chart/Chart
27
- // The chart this plot belongs to.
28
- // kwArgs: dojox.charting.plot2d.__PlotCtorArgs?
29
- // An optional arguments object to help define the plot.
30
-
31
- // TODO does not work in markup
32
- if(kwArgs && kwArgs.tooltipFunc){
33
- this.tooltipFunc = kwArgs.tooltipFunc;
34
- }
35
- },
36
- clear: function(){
37
- // summary:
38
- // Clear out all of the information tied to this plot.
39
- // returns: dojox.charting.plot2d.Base
40
- // A reference to this plot for functional chaining.
41
- this.series = [];
42
- this.dirty = true;
43
- return this; // dojox/charting/plot2d/Base
44
- },
45
- setAxis: function(axis){
46
- // summary:
47
- // Set an axis for this plot.
48
- // axis: dojox.charting.axis2d.Base
49
- // The axis to set.
50
- // returns: dojox/charting/plot2d/Base
51
- // A reference to this plot for functional chaining.
52
- return this; // dojox/charting/plot2d/Base
53
- },
54
- assignAxes: function(axes){
55
- // summary:
56
- // From an array of axes pick the ones that correspond to this plot and
57
- // assign them to the plot using setAxis method.
58
- // axes: Array
59
- // An array of dojox/charting/axis2d/Base
60
- // tags:
61
- // protected
62
- arr.forEach(this.axes, function(axis){
63
- if(this[axis]){
64
- this.setAxis(axes[this[axis]]);
65
- }
66
- }, this);
67
- },
68
- addSeries: function(run){
69
- // summary:
70
- // Add a data series to this plot.
71
- // run: dojox.charting.Series
72
- // The series to be added.
73
- // returns: dojox/charting/plot2d/Base
74
- // A reference to this plot for functional chaining.
75
- this.series.push(run);
76
- return this; // dojox/charting/plot2d/Base
77
- },
78
- getSeriesStats: function(){
79
- // summary:
80
- // Calculate the min/max on all attached series in both directions.
81
- // returns: Object
82
- // {hmin, hmax, vmin, vmax} min/max in both directions.
83
- return common.collectSimpleStats(this.series);
84
- },
85
- calculateAxes: function(dim){
86
- // summary:
87
- // Stub function for running the axis calculations (deprecated).
88
- // dim: Object
89
- // An object of the form { width, height }
90
- // returns: dojox/charting/plot2d/Base
91
- // A reference to this plot for functional chaining.
92
- this.initializeScalers(dim, this.getSeriesStats());
93
- return this; // dojox/charting/plot2d/Base
94
- },
95
- initializeScalers: function(){
96
- // summary:
97
- // Does nothing.
98
- return this;
99
- },
100
- isDataDirty: function(){
101
- // summary:
102
- // Returns whether or not any of this plot's data series need to be rendered.
103
- // returns: Boolean
104
- // Flag indicating if any of this plot's series are invalid and need rendering.
105
- return arr.some(this.series, function(item){ return item.dirty; }); // Boolean
106
- },
107
- render: function(dim, offsets){
108
- // summary:
109
- // Render the plot on the chart.
110
- // dim: Object
111
- // An object of the form { width, height }.
112
- // offsets: Object
113
- // An object of the form { l, r, t, b }.
114
- // returns: dojox/charting/plot2d/Base
115
- // A reference to this plot for functional chaining.
116
- return this; // dojox/charting/plot2d/Base
117
- },
118
- renderLabel: function(group, x, y, label, theme, block, align){
119
- var elem = ac.createText[this.opt.htmlLabels && gfx.renderer != "vml" ? "html" : "gfx"]
120
- (this.chart, group, x, y, align?align:"middle", label, theme.series.font, theme.series.fontColor);
121
- // if the label is inside we need to avoid catching events on it this would prevent action on
122
- // chart elements
123
- if(block){
124
- // TODO this won't work in IE neither in VML nor in HTML
125
- // a solution would be to catch the event on the label and refire it to the element
126
- // possibly using elementFromPoint or having it already available
127
- if(this.opt.htmlLabels && gfx.renderer != "vml"){
128
- // we have HTML labels, let's use pointEvents on the HTML node
129
- elem.style.pointerEvents = "none";
130
- }else if(elem.rawNode){
131
- // we have SVG labels, let's use pointerEvents on the SVG or VML node
132
- elem.rawNode.style.pointerEvents = "none";
133
- }
134
- // else we have Canvas, we need do nothing, as Canvas text won't catch events
135
- }
136
- if(this.opt.htmlLabels && gfx.renderer != "vml"){
137
- this.htmlElements.push(elem);
138
- }
139
-
140
- return elem;
141
- },
142
- getRequiredColors: function(){
143
- // summary:
144
- // Get how many data series we have, so we know how many colors to use.
145
- // returns: Number
146
- // The number of colors needed.
147
- return this.series.length; // Number
148
- },
149
- _getLabel: function(number){
150
- return common.getLabel(number, this.opt.fixed, this.opt.precision);
151
- }
152
- });
153
- if(has("dojo-bidi")){
154
- Base.extend({
155
- _checkOrientation: function(group, dim, offsets){
156
- this.chart.applyMirroring(this.group, dim, offsets);
157
- }
158
- });
159
- }
160
- return Base;
161
- });