@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,208 +0,0 @@
1
- define("dojox/charting/plot2d/OHLC", ["dojo/_base/lang", "dojo/_base/array", "dojo/_base/declare", "dojo/has", "./CartesianBase", "./_PlotEvents", "./common",
2
- "dojox/lang/functional", "dojox/lang/functional/reversed", "dojox/lang/utils", "dojox/gfx/fx"],
3
- function(lang, arr, declare, has, CartesianBase, _PlotEvents, dc, df, dfr, du, fx){
4
-
5
- var purgeGroup = dfr.lambda("item.purgeGroup()");
6
-
7
- // Candlesticks are based on the Bars plot type; we expect the following passed
8
- // as values in a series:
9
- // { x?, open, close, high, low }
10
- // if x is not provided, the array index is used.
11
- // failing to provide the OHLC values will throw an error.
12
- return declare("dojox.charting.plot2d.OHLC", [CartesianBase, _PlotEvents], {
13
- // summary:
14
- // A plot that represents typical open/high/low/close (financial reporting, primarily).
15
- // Unlike most charts, the Candlestick expects data points to be represented by
16
- // an object of the form { x?, open, close, high, low, mid? }, where both
17
- // x and mid are optional parameters. If x is not provided, the index of the
18
- // data array is used.
19
- defaultParams: {
20
- gap: 2, // gap between columns in pixels
21
- animate: null // animate chart to place
22
- },
23
- optionalParams: {
24
- minBarSize: 1, // minimal bar size in pixels
25
- maxBarSize: 1, // maximal bar size in pixels
26
- // theme component
27
- stroke: {},
28
- outline: {},
29
- shadow: {},
30
- fill: {},
31
- font: "",
32
- fontColor: ""
33
- },
34
-
35
- constructor: function(chart, kwArgs){
36
- // summary:
37
- // The constructor for a candlestick chart.
38
- // chart: dojox/charting/Chart
39
- // The chart this plot belongs to.
40
- // kwArgs: dojox.charting.plot2d.__BarCtorArgs?
41
- // An optional keyword arguments object to help define the plot.
42
- this.opt = lang.clone(this.defaultParams);
43
- du.updateWithObject(this.opt, kwArgs);
44
- du.updateWithPattern(this.opt, kwArgs, this.optionalParams);
45
- this.animate = this.opt.animate;
46
- },
47
-
48
- collectStats: function(series){
49
- // summary:
50
- // Collect all statistics for drawing this chart. Since the common
51
- // functionality only assumes x and y, OHLC must create it's own
52
- // stats (since data has no y value, but open/close/high/low instead).
53
- // series: dojox/charting/Series[]
54
- // The data series array to be drawn on this plot.
55
- // returns: Object
56
- // Returns an object in the form of { hmin, hmax, vmin, vmax }.
57
-
58
- // we have to roll our own, since we need to use all four passed
59
- // values to figure out our stats, and common only assumes x and y.
60
- var stats = lang.delegate(dc.defaultStats);
61
- for(var i=0; i<series.length; i++){
62
- var run = series[i];
63
- if(!run.data.length){ continue; }
64
- var old_vmin = stats.vmin, old_vmax = stats.vmax;
65
- if(!("ymin" in run) || !("ymax" in run)){
66
- arr.forEach(run.data, function(val, idx){
67
- if(val !== null){
68
- var x = val.x || idx + 1;
69
- stats.hmin = Math.min(stats.hmin, x);
70
- stats.hmax = Math.max(stats.hmax, x);
71
- stats.vmin = Math.min(stats.vmin, val.open, val.close, val.high, val.low);
72
- stats.vmax = Math.max(stats.vmax, val.open, val.close, val.high, val.low);
73
- }
74
- });
75
- }
76
- if("ymin" in run){ stats.vmin = Math.min(old_vmin, run.ymin); }
77
- if("ymax" in run){ stats.vmax = Math.max(old_vmax, run.ymax); }
78
- }
79
- return stats; // Object
80
- },
81
-
82
- getSeriesStats: function(){
83
- // summary:
84
- // Calculate the min/max on all attached series in both directions.
85
- // returns: Object
86
- // {hmin, hmax, vmin, vmax} min/max in both directions.
87
- var stats = this.collectStats(this.series);
88
- stats.hmin -= 0.5;
89
- stats.hmax += 0.5;
90
- return stats; // Object
91
- },
92
-
93
- render: function(dim, offsets){
94
- // summary:
95
- // Run the calculations for any axes for this plot.
96
- // dim: Object
97
- // An object in the form of { width, height }
98
- // offsets: Object
99
- // An object of the form { l, r, t, b}.
100
- // returns: dojox/charting/plot2d/OHLC
101
- // A reference to this plot for functional chaining.
102
- if(this.zoom && !this.isDataDirty()){
103
- return this.performZoom(dim, offsets);
104
- }
105
- this.resetEvents();
106
- this.dirty = this.isDirty();
107
- if(this.dirty){
108
- arr.forEach(this.series, purgeGroup);
109
- this._eventSeries = {};
110
- this.cleanGroup();
111
- var s = this.getGroup();
112
- df.forEachRev(this.series, function(item){ item.cleanGroup(s); });
113
- }
114
- var t = this.chart.theme, f, gap, width,
115
- ht = this._hScaler.scaler.getTransformerFromModel(this._hScaler),
116
- vt = this._vScaler.scaler.getTransformerFromModel(this._vScaler),
117
- events = this.events();
118
- f = dc.calculateBarSize(this._hScaler.bounds.scale, this.opt);
119
- gap = f.gap;
120
- width = f.size;
121
- for(var i = this.series.length - 1; i >= 0; --i){
122
- var run = this.series[i];
123
- if(!this.dirty && !run.dirty){
124
- t.skip();
125
- this._reconnectEvents(run.name);
126
- continue;
127
- }
128
- run.cleanGroup();
129
- var theme = t.next("candlestick", [this.opt, run]), s = run.group,
130
- eventSeries = new Array(run.data.length);
131
- for(var j = 0; j < run.data.length; ++j){
132
- var v = run.data[j];
133
- if(v !== null){
134
- var finalTheme = t.addMixin(theme, "candlestick", v, true);
135
-
136
- // calculate the points we need for OHLC
137
- var x = ht(v.x || (j+0.5)) + offsets.l + gap,
138
- y = dim.height - offsets.b,
139
- open = vt(v.open),
140
- close = vt(v.close),
141
- high = vt(v.high),
142
- low = vt(v.low);
143
- if(low > high){
144
- var tmp = high;
145
- high = low;
146
- low = tmp;
147
- }
148
-
149
- if(width >= 1){
150
- var hl = {x1: width/2, x2: width/2, y1: y - high, y2: y - low},
151
- op = {x1: 0, x2: ((width/2) + ((finalTheme.series.stroke.width||1)/2)), y1: y-open, y2: y-open},
152
- cl = {x1: ((width/2) - ((finalTheme.series.stroke.width||1)/2)), x2: width, y1: y-close, y2: y-close};
153
- var shape = s.createGroup();
154
- shape.setTransform({dx: x, dy: 0});
155
- var inner = shape.createGroup();
156
- inner.createLine(hl).setStroke(finalTheme.series.stroke);
157
- inner.createLine(op).setStroke(finalTheme.series.stroke);
158
- inner.createLine(cl).setStroke(finalTheme.series.stroke);
159
-
160
- // TODO: double check this.
161
- run.dyn.stroke = finalTheme.series.stroke;
162
- if(events){
163
- var o = {
164
- element: "candlestick",
165
- index: j,
166
- run: run,
167
- shape: inner,
168
- x: x,
169
- y: y-Math.max(open, close),
170
- cx: width/2,
171
- cy: (y-Math.max(open, close)) + (Math.max(open > close ? open-close : close-open, 1)/2),
172
- width: width,
173
- height: Math.max(open > close ? open-close : close-open, 1),
174
- data: v
175
- };
176
- this._connectEvents(o);
177
- eventSeries[j] = o;
178
- }
179
- }
180
- if(this.animate){
181
- this._animateOHLC(shape, y - low, high - low);
182
- }
183
- }
184
- }
185
- this._eventSeries[run.name] = eventSeries;
186
- run.dirty = false;
187
- }
188
- this.dirty = false;
189
- // chart mirroring starts
190
- if(has("dojo-bidi")){
191
- this._checkOrientation(this.group, dim, offsets);
192
- }
193
- // chart mirroring ends
194
- return this; // dojox/charting/plot2d/OHLC
195
- },
196
- _animateOHLC: function(shape, voffset, vsize){
197
- fx.animateTransform(lang.delegate({
198
- shape: shape,
199
- duration: 1200,
200
- transform: [
201
- {name: "translate", start: [0, voffset - (voffset/vsize)], end: [0, 0]},
202
- {name: "scale", start: [1, 1/vsize], end: [1, 1]},
203
- {name: "original"}
204
- ]
205
- }, this.animate)).play();
206
- }
207
- });
208
- });
@@ -1,303 +0,0 @@
1
- //>>built
2
- define("dojox/charting/plot2d/Pie",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./Base","./_PlotEvents","./common","dojox/gfx","dojox/gfx/matrix","dojox/lang/functional","dojox/lang/utils","dojo/has"],function(_1,_2,_3,_4,_5,dc,g,m,df,du,_6){
3
- var _7=0.2;
4
- return _3("dojox.charting.plot2d.Pie",[_4,_5],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:20,labelStyle:"default",htmlLabels:true,radGrad:"native",fanSize:5,startAngle:0},optionalParams:{radius:0,omitLabels:false,stroke:{},outline:{},shadow:{},fill:{},filter:{},styleFunc:null,font:"",fontColor:"",labelWiring:{}},constructor:function(_8,_9){
5
- this.opt=_1.clone(this.defaultParams);
6
- du.updateWithObject(this.opt,_9);
7
- du.updateWithPattern(this.opt,_9,this.optionalParams);
8
- this.axes=[];
9
- this.run=null;
10
- this.dyn=[];
11
- this.runFilter=[];
12
- },clear:function(){
13
- this.inherited(arguments);
14
- this.dyn=[];
15
- this.run=null;
16
- return this;
17
- },setAxis:function(_a){
18
- return this;
19
- },addSeries:function(_b){
20
- this.run=_b;
21
- return this;
22
- },getSeriesStats:function(){
23
- return _1.delegate(dc.defaultStats);
24
- },getRequiredColors:function(){
25
- return this.run?this.run.data.length:0;
26
- },render:function(_c,_d){
27
- if(!this.dirty){
28
- return this;
29
- }
30
- this.resetEvents();
31
- this.dirty=false;
32
- this._eventSeries={};
33
- this.cleanGroup();
34
- var s=this.group,t=this.chart.theme;
35
- if(!this.run||!this.run.data.length){
36
- return this;
37
- }
38
- var rx=(_c.width-_d.l-_d.r)/2,ry=(_c.height-_d.t-_d.b)/2,r=Math.min(rx,ry),_e="font" in this.opt?this.opt.font:t.series.font,_f,_10=m._degToRad(this.opt.startAngle),_11=_10,_12,_13,_14,_15,_16,_17=this.events();
39
- var run=_2.map(this.run.data,function(_18,i){
40
- if(typeof _18!="number"&&_18.hidden){
41
- this.runFilter.push(i);
42
- _18.hidden=false;
43
- }
44
- if(_2.some(this.runFilter,function(_19){
45
- return _19==i;
46
- })){
47
- if(typeof _18=="number"){
48
- return 0;
49
- }else{
50
- return {y:0,text:_18.text};
51
- }
52
- }else{
53
- return _18;
54
- }
55
- },this);
56
- this.dyn=[];
57
- if("radius" in this.opt){
58
- r=this.opt.radius;
59
- _16=r-this.opt.labelOffset;
60
- }
61
- var _1a={cx:_d.l+rx,cy:_d.t+ry,r:r};
62
- if(this.opt.shadow||t.shadow){
63
- var _1b=this.opt.shadow||t.shadow;
64
- var _1c=_1.clone(_1a);
65
- _1c.cx+=_1b.dx;
66
- _1c.cy+=_1b.dy;
67
- s.createCircle(_1c).setFill(_1b.color).setStroke(_1b);
68
- }
69
- if(s.setFilter&&(this.opt.filter||t.filter)){
70
- s.createCircle(_1a).setFill(t.series.stroke).setFilter(this.opt.filter||t.filter);
71
- }
72
- if(typeof run[0]=="number"){
73
- _12=df.map(run,"x ? Math.max(x, 0) : 0");
74
- if(df.every(_12,"<= 0")){
75
- s.createCircle(_1a).setStroke(t.series.stroke);
76
- this.dyn=_2.map(_12,function(){
77
- return {};
78
- });
79
- return this;
80
- }else{
81
- _13=df.map(_12,"/this",df.foldl(_12,"+",0));
82
- if(this.opt.labels){
83
- _14=_2.map(_13,function(x){
84
- return x>0?this._getLabel(x*100)+"%":"";
85
- },this);
86
- }
87
- }
88
- }else{
89
- _12=df.map(run,"x ? Math.max(x.y, 0) : 0");
90
- if(df.every(_12,"<= 0")){
91
- s.createCircle(_1a).setStroke(t.series.stroke);
92
- this.dyn=_2.map(_12,function(){
93
- return {};
94
- });
95
- return this;
96
- }else{
97
- _13=df.map(_12,"/this",df.foldl(_12,"+",0));
98
- if(this.opt.labels){
99
- _14=_2.map(_13,function(x,i){
100
- if(x<0){
101
- return "";
102
- }
103
- var v=run[i];
104
- return "text" in v?v.text:this._getLabel(x*100)+"%";
105
- },this);
106
- }
107
- }
108
- }
109
- var _1d=df.map(run,function(v,i){
110
- var _1e=[this.opt,this.run];
111
- if(v!==null&&typeof v!="number"){
112
- _1e.push(v);
113
- }
114
- if(this.opt.styleFunc){
115
- _1e.push(this.opt.styleFunc(v));
116
- }
117
- return t.next("slice",_1e,true);
118
- },this);
119
- if(this.opt.labels){
120
- _f=_e?g.normalizedLength(g.splitFontString(_e).size):0;
121
- _15=df.foldl1(df.map(_14,function(_1f,i){
122
- var _20=_1d[i].series.font;
123
- return g._base._getTextBox(_1f,{font:_20}).w;
124
- },this),"Math.max(a, b)")/2;
125
- if(this.opt.labelOffset<0){
126
- r=Math.min(rx-2*_15,ry-_f)+this.opt.labelOffset;
127
- }
128
- _16=r-this.opt.labelOffset;
129
- }
130
- var _21=new Array(_13.length);
131
- _2.some(_13,function(_22,i){
132
- if(_22<0){
133
- return false;
134
- }
135
- var v=run[i],_23=_1d[i],_24,o;
136
- if(_22==0){
137
- this.dyn.push({fill:_23.series.fill,stroke:_23.series.stroke});
138
- return false;
139
- }
140
- if(_22>=1){
141
- _24=this._plotFill(_23.series.fill,_c,_d);
142
- _24=this._shapeFill(_24,{x:_1a.cx-_1a.r,y:_1a.cy-_1a.r,width:2*_1a.r,height:2*_1a.r});
143
- _24=this._pseudoRadialFill(_24,{x:_1a.cx,y:_1a.cy},_1a.r);
144
- var _25=s.createCircle(_1a).setFill(_24).setStroke(_23.series.stroke);
145
- this.dyn.push({fill:_24,stroke:_23.series.stroke});
146
- if(_17){
147
- o={element:"slice",index:i,run:this.run,shape:_25,x:i,y:typeof v=="number"?v:v.y,cx:_1a.cx,cy:_1a.cy,cr:r};
148
- this._connectEvents(o);
149
- _21[i]=o;
150
- }
151
- return false;
152
- }
153
- var end=_11+_22*2*Math.PI;
154
- if(i+1==_13.length){
155
- end=_10+2*Math.PI;
156
- }
157
- var _26=end-_11,x1=_1a.cx+r*Math.cos(_11),y1=_1a.cy+r*Math.sin(_11),x2=_1a.cx+r*Math.cos(end),y2=_1a.cy+r*Math.sin(end);
158
- var _27=m._degToRad(this.opt.fanSize);
159
- if(_23.series.fill&&_23.series.fill.type==="radial"&&this.opt.radGrad==="fan"&&_26>_27){
160
- var _28=s.createGroup(),_29=Math.ceil(_26/_27),_2a=_26/_29;
161
- _24=this._shapeFill(_23.series.fill,{x:_1a.cx-_1a.r,y:_1a.cy-_1a.r,width:2*_1a.r,height:2*_1a.r});
162
- for(var j=0;j<_29;++j){
163
- var _2b=j==0?x1:_1a.cx+r*Math.cos(_11+(j-_7)*_2a),_2c=j==0?y1:_1a.cy+r*Math.sin(_11+(j-_7)*_2a),_2d=j==_29-1?x2:_1a.cx+r*Math.cos(_11+(j+1+_7)*_2a),_2e=j==_29-1?y2:_1a.cy+r*Math.sin(_11+(j+1+_7)*_2a);
164
- _28.createPath().moveTo(_1a.cx,_1a.cy).lineTo(_2b,_2c).arcTo(r,r,0,_2a>Math.PI,true,_2d,_2e).lineTo(_1a.cx,_1a.cy).closePath().setFill(this._pseudoRadialFill(_24,{x:_1a.cx,y:_1a.cy},r,_11+(j+0.5)*_2a,_11+(j+0.5)*_2a));
165
- }
166
- _28.createPath().moveTo(_1a.cx,_1a.cy).lineTo(x1,y1).arcTo(r,r,0,_26>Math.PI,true,x2,y2).lineTo(_1a.cx,_1a.cy).closePath().setStroke(_23.series.stroke);
167
- _25=_28;
168
- }else{
169
- _25=s.createPath().moveTo(_1a.cx,_1a.cy).lineTo(x1,y1).arcTo(r,r,0,_26>Math.PI,true,x2,y2).lineTo(_1a.cx,_1a.cy).closePath().setStroke(_23.series.stroke);
170
- _24=_23.series.fill;
171
- if(_24&&_24.type==="radial"){
172
- _24=this._shapeFill(_24,{x:_1a.cx-_1a.r,y:_1a.cy-_1a.r,width:2*_1a.r,height:2*_1a.r});
173
- if(this.opt.radGrad==="linear"){
174
- _24=this._pseudoRadialFill(_24,{x:_1a.cx,y:_1a.cy},r,_11,end);
175
- }
176
- }else{
177
- if(_24&&_24.type==="linear"){
178
- _24=this._plotFill(_24,_c,_d);
179
- _24=this._shapeFill(_24,_25.getBoundingBox());
180
- }
181
- }
182
- _25.setFill(_24);
183
- }
184
- this.dyn.push({fill:_24,stroke:_23.series.stroke});
185
- if(_17){
186
- o={element:"slice",index:i,run:this.run,shape:_25,x:i,y:typeof v=="number"?v:v.y,cx:_1a.cx,cy:_1a.cy,cr:r};
187
- this._connectEvents(o);
188
- _21[i]=o;
189
- }
190
- _11=end;
191
- return false;
192
- },this);
193
- if(this.opt.labels){
194
- var _2f=_6("dojo-bidi")&&this.chart.isRightToLeft();
195
- if(this.opt.labelStyle=="default"){
196
- _11=_10;
197
- _2.some(_13,function(_30,i){
198
- if(_30<=0){
199
- return false;
200
- }
201
- var _31=_1d[i];
202
- if(_30>=1){
203
- this.renderLabel(s,_1a.cx,_1a.cy+_f/2,_14[i],_31,this.opt.labelOffset>0);
204
- return true;
205
- }
206
- var end=_11+_30*2*Math.PI;
207
- if(i+1==_13.length){
208
- end=_10+2*Math.PI;
209
- }
210
- if(this.opt.omitLabels&&end-_11<0.001){
211
- return false;
212
- }
213
- var _32=(_11+end)/2,x=_1a.cx+_16*Math.cos(_32),y=_1a.cy+_16*Math.sin(_32)+_f/2;
214
- this.renderLabel(s,_2f?_c.width-x:x,y,_14[i],_31,this.opt.labelOffset>0);
215
- _11=end;
216
- return false;
217
- },this);
218
- }else{
219
- if(this.opt.labelStyle=="columns"){
220
- _11=_10;
221
- var _33=this.opt.omitLabels;
222
- var _34=[];
223
- _2.forEach(_13,function(_35,i){
224
- var end=_11+_35*2*Math.PI;
225
- if(i+1==_13.length){
226
- end=_10+2*Math.PI;
227
- }
228
- var _36=(_11+end)/2;
229
- _34.push({angle:_36,left:Math.cos(_36)<0,theme:_1d[i],index:i,omit:_33?end-_11<0.001:false});
230
- _11=end;
231
- });
232
- var _37=g._base._getTextBox("a",{font:_e}).h;
233
- this._getProperLabelRadius(_34,_37,_1a.r*1.1);
234
- _2.forEach(_34,function(_38,i){
235
- if(!_38.omit){
236
- var _39=_1a.cx-_1a.r*2,_3a=_1a.cx+_1a.r*2,_3b=g._base._getTextBox(_14[i],{font:_38.theme.series.font}).w,x=_1a.cx+_38.labelR*Math.cos(_38.angle),y=_1a.cy+_38.labelR*Math.sin(_38.angle),_3c=(_38.left)?(_39+_3b):(_3a-_3b),_3d=(_38.left)?_39:_3c;
237
- var _3e=s.createPath().moveTo(_1a.cx+_1a.r*Math.cos(_38.angle),_1a.cy+_1a.r*Math.sin(_38.angle));
238
- if(Math.abs(_38.labelR*Math.cos(_38.angle))<_1a.r*2-_3b){
239
- _3e.lineTo(x,y);
240
- }
241
- _3e.lineTo(_3c,y).setStroke(_38.theme.series.labelWiring);
242
- this.renderLabel(s,_2f?_c.width-_3b-_3d:_3d,y,_14[i],_38.theme,false,"left");
243
- }
244
- },this);
245
- }
246
- }
247
- }
248
- var esi=0;
249
- this._eventSeries[this.run.name]=df.map(run,function(v){
250
- return v<=0?null:_21[esi++];
251
- });
252
- if(_6("dojo-bidi")){
253
- this._checkOrientation(this.group,_c,_d);
254
- }
255
- return this;
256
- },_getProperLabelRadius:function(_3f,_40,_41){
257
- var _42,_43,_44=1,_45=1;
258
- if(_3f.length==1){
259
- _3f[0].labelR=_41;
260
- return;
261
- }
262
- for(var i=0;i<_3f.length;i++){
263
- var _46=Math.abs(Math.sin(_3f[i].angle));
264
- if(_3f[i].left){
265
- if(_44>=_46){
266
- _44=_46;
267
- _42=_3f[i];
268
- }
269
- }else{
270
- if(_45>=_46){
271
- _45=_46;
272
- _43=_3f[i];
273
- }
274
- }
275
- }
276
- _42.labelR=_43.labelR=_41;
277
- this._calculateLabelR(_42,_3f,_40);
278
- this._calculateLabelR(_43,_3f,_40);
279
- },_calculateLabelR:function(_47,_48,_49){
280
- var i=_47.index,_4a=_48.length,_4b=_47.labelR,_4c;
281
- while(!(_48[i%_4a].left^_48[(i+1)%_4a].left)){
282
- if(!_48[(i+1)%_4a].omit){
283
- _4c=(Math.sin(_48[i%_4a].angle)*_4b+((_48[i%_4a].left)?(-_49):_49))/Math.sin(_48[(i+1)%_4a].angle);
284
- _4b=(_4c<_47.labelR)?_47.labelR:_4c;
285
- _48[(i+1)%_4a].labelR=_4b;
286
- }
287
- i++;
288
- }
289
- i=_47.index;
290
- var j=(i==0)?_4a-1:i-1;
291
- while(!(_48[i].left^_48[j].left)){
292
- if(!_48[j].omit){
293
- _4c=(Math.sin(_48[i].angle)*_4b+((_48[i].left)?_49:(-_49)))/Math.sin(_48[j].angle);
294
- _4b=(_4c<_47.labelR)?_47.labelR:_4c;
295
- _48[j].labelR=_4b;
296
- }
297
- i--;
298
- j--;
299
- i=(i<0)?i+_48.length:i;
300
- j=(j<0)?j+_48.length:j;
301
- }
302
- }});
303
- });