@datagrok/helm 2.13.8 → 3.0.1

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 (360) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/css/helm.css +40 -0
  3. package/dist/137.js +2 -0
  4. package/dist/137.js.map +1 -0
  5. package/dist/323.js +2 -0
  6. package/dist/323.js.map +1 -0
  7. package/dist/657.js +2 -0
  8. package/dist/657.js.map +1 -0
  9. package/dist/782.js +2 -0
  10. package/dist/782.js.map +1 -0
  11. package/dist/884.js +2 -0
  12. package/dist/884.js.map +1 -0
  13. package/dist/94.js +2 -0
  14. package/dist/94.js.map +1 -0
  15. package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js +16420 -0
  16. package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js.map +1 -0
  17. package/dist/package-test.js +1 -1
  18. package/dist/package-test.js.map +1 -1
  19. package/dist/package.js +1 -1
  20. package/dist/package.js.map +1 -1
  21. package/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js +1560 -0
  22. package/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js.map +1 -0
  23. package/files/samples/helm-showcase.csv +56 -0
  24. package/package.json +8 -12
  25. package/src/helm-helper.ts +134 -410
  26. package/src/package-api.ts +14 -11
  27. package/src/package-test.ts +0 -2
  28. package/src/package-utils.ts +8 -298
  29. package/src/package.g.ts +2 -8
  30. package/src/package.ts +11 -31
  31. package/src/tests/helm-activity-cliffs.ts +2 -2
  32. package/src/tests/helm-input-tests.ts +83 -0
  33. package/src/tests/parse-helm-tests.ts +7 -57
  34. package/src/tests/properties-widget-tests.ts +21 -11
  35. package/src/utils/helm-grid-cell-renderer.ts +141 -151
  36. package/src/utils/index.ts +3 -7
  37. package/src/widgets/helm-input.ts +42 -12
  38. package/src/widgets/properties-widget.ts +18 -11
  39. package/webpack.config.js +1 -12
  40. package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
  41. package/helm/JSDraw/ReadMe.txt +0 -8
  42. package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
  43. package/helm/dojo/package.ts +0 -41
  44. package/helm/dojo/types.ts +0 -12
  45. package/src/helm-web-editor.ts +0 -68
  46. package/src/tests/get-monomer-tests.ts +0 -214
  47. package/src/tests/helm-service-tests.ts +0 -98
  48. package/src/types/dojo.ts +0 -3
  49. package/src/types/index.ts +0 -5
  50. package/src/utils/get-monomer.ts +0 -90
  51. package/src/utils/helm-service.ts +0 -166
  52. package/test-console-output-1.log +0 -919
  53. package/test-record-1.mp4 +0 -0
  54. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
  55. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
  56. package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
  57. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
  58. package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
  59. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
  60. package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
  61. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
  62. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
  63. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
  64. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
  65. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
  66. package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
  67. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
  68. package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
  69. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
  70. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
  71. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
  72. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
  73. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
  74. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
  75. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
  76. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
  77. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
  78. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
  79. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
  80. package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
  81. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
  82. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
  83. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
  84. package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
  85. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
  86. package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
  87. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
  88. package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
  89. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
  90. package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
  91. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
  92. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
  93. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
  94. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
  95. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
  96. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
  97. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
  98. package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
  99. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
  100. package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
  101. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
  102. package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
  103. package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
  104. package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
  105. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
  106. package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
  107. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
  108. package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
  109. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
  110. package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
  111. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
  112. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
  113. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
  114. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
  115. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
  116. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
  117. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
  118. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
  119. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
  120. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
  121. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
  122. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
  123. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
  124. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
  125. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
  126. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
  127. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
  128. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
  129. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
  130. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
  131. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
  132. package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
  133. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
  134. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
  135. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
  136. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
  137. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
  138. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
  139. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
  140. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
  141. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
  142. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
  143. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
  144. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
  145. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
  146. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
  147. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
  148. package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
  149. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
  150. package/vendor/dojo-1.10.10/dijit/main.js +0 -4
  151. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
  152. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
  153. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
  154. package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
  155. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
  156. package/vendor/dojo-1.10.10/dijit/place.js +0 -142
  157. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
  158. package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
  159. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
  160. package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
  161. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
  162. package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
  163. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
  164. package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
  165. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
  166. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
  167. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
  168. package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
  169. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
  170. package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
  171. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
  172. package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
  173. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
  174. package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
  175. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
  176. package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
  177. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
  178. package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
  179. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
  180. package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
  181. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
  182. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
  183. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
  184. package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
  185. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
  186. package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
  187. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
  188. package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
  189. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
  190. package/vendor/dojo-1.10.10/dojo/html.js +0 -161
  191. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
  192. package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
  193. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
  194. package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
  195. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
  196. package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
  197. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
  198. package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
  199. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
  200. package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
  201. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
  202. package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
  203. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
  204. package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
  205. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
  206. package/vendor/dojo-1.10.10/dojo/require.js +0 -11
  207. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
  208. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  209. package/vendor/dojo-1.10.10/dojo/string.js +0 -67
  210. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
  211. package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
  212. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
  213. package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
  214. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
  215. package/vendor/dojo-1.10.10/dojo/window.js +0 -141
  216. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
  217. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
  218. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
  219. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
  220. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
  221. package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
  222. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
  223. package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
  224. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
  225. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
  226. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
  227. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
  228. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
  229. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
  230. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
  231. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
  232. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
  233. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
  234. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
  235. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
  236. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
  237. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
  238. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
  239. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
  240. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
  241. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
  242. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
  243. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
  244. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
  245. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
  246. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
  247. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
  248. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
  267. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
  268. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
  269. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
  270. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
  271. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
  272. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
  273. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
  274. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
  275. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
  276. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
  277. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
  278. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
  279. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
  280. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
  281. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
  282. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
  283. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
  284. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
  285. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
  286. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
  287. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
  288. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
  289. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
  290. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
  291. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
  292. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
  293. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
  294. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
  295. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
  296. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
  297. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
  298. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
  299. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
  300. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
  301. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
  302. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
  303. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
  304. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
  305. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
  306. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
  307. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
  308. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
  309. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
  310. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
  311. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
  312. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
  313. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
  314. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
  315. package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
  316. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
  317. package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
  318. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
  319. package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
  320. package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
  321. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
  322. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
  323. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
  324. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
  325. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
  326. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
  327. package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
  328. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
  329. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
  330. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
  331. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
  332. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
  333. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
  334. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
  335. package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
  336. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
  337. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
  338. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
  339. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
  340. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
  341. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
  342. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
  343. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
  344. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
  345. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
  346. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
  347. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
  348. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
  349. package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
  350. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
  351. package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
  352. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
  353. package/vendor/dojo-1.10.10/dojox/main.js +0 -4
  354. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
  355. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
  356. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
  357. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
  358. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
  359. package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
  360. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
@@ -1,472 +0,0 @@
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
- });
@@ -1,182 +0,0 @@
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
- });