@datagrok/helm 2.3.2 → 2.3.4

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 (324) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/package-test.js +1 -1
  3. package/dist/package-test.js.map +1 -1
  4. package/dist/package.js +1 -1
  5. package/dist/package.js.map +1 -1
  6. package/package.json +4 -4
  7. package/src/cell-renderer.ts +5 -4
  8. package/src/helm-helper.ts +6 -6
  9. package/src/helm-monomer-placer.ts +1 -1
  10. package/src/helm-web-editor.ts +5 -5
  11. package/src/package-test.ts +0 -1
  12. package/src/package-utils.ts +211 -69
  13. package/src/package.ts +10 -71
  14. package/src/tests/findMonomers-tests.ts +2 -1
  15. package/src/tests/get-monomer-tests.ts +1 -49
  16. package/src/tests/helm-input-tests.ts +31 -20
  17. package/src/utils/get-monomer.ts +49 -1
  18. package/src/utils/helm-grid-cell-renderer.ts +8 -9
  19. package/src/utils/index.ts +2 -3
  20. package/src/widgets/helm-input.ts +4 -4
  21. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
  22. package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
  23. package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
  24. package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
  25. package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
  26. package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
  27. package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
  28. package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
  29. package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
  30. package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
  31. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
  32. package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
  33. package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
  34. package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
  35. package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
  36. package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
  37. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
  38. package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
  39. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
  40. package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
  41. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
  42. package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
  43. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
  44. package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
  45. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
  46. package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
  47. package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
  48. package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
  49. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
  50. package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
  51. package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
  52. package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
  53. package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
  54. package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
  55. package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
  56. package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
  57. package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
  58. package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
  59. package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
  60. package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
  61. package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
  62. package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
  63. package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
  64. package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
  65. package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
  66. package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
  67. package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
  68. package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
  69. package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
  70. package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
  71. package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
  72. package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
  73. package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
  74. package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
  75. package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
  76. package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
  77. package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
  78. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
  79. package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
  80. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
  81. package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
  82. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
  83. package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
  84. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
  85. package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
  86. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
  87. package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
  88. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
  89. package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
  90. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
  91. package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
  92. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
  93. package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
  94. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
  95. package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
  96. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
  97. package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
  98. package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
  99. package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
  100. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
  101. package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
  102. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
  103. package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
  104. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
  105. package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
  106. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
  107. package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
  108. package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
  109. package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
  110. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
  111. package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
  112. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
  113. package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
  114. package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
  115. package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
  116. package/vendor/dojo-1.10.10/dijit/main.js +4 -0
  117. package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
  118. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
  119. package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
  120. package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
  121. package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
  122. package/vendor/dojo-1.10.10/dijit/place.js +142 -0
  123. package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
  124. package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
  125. package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
  126. package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
  127. package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
  128. package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
  129. package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
  130. package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
  131. package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
  132. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
  133. package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
  134. package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
  135. package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
  136. package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
  137. package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
  138. package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
  139. package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
  140. package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
  141. package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
  142. package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
  143. package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
  144. package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
  145. package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
  146. package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
  147. package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
  148. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
  149. package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
  150. package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
  151. package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
  152. package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
  153. package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
  154. package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
  155. package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
  156. package/vendor/dojo-1.10.10/dojo/html.js +161 -0
  157. package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
  158. package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
  159. package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
  160. package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
  161. package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
  162. package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
  163. package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
  164. package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
  165. package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
  166. package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
  167. package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
  168. package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
  169. package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
  170. package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
  171. package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
  172. package/vendor/dojo-1.10.10/dojo/require.js +11 -0
  173. package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
  174. package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
  175. package/vendor/dojo-1.10.10/dojo/string.js +67 -0
  176. package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
  177. package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
  178. package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
  179. package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
  180. package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
  181. package/vendor/dojo-1.10.10/dojo/window.js +141 -0
  182. package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
  183. package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
  184. package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
  185. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
  186. package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
  187. package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
  188. package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
  189. package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
  190. package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
  191. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
  192. package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
  193. package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
  194. package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
  195. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
  196. package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
  197. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
  198. package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
  199. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
  200. package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
  201. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
  202. package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
  203. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
  204. package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
  205. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
  206. package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
  207. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
  208. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
  209. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
  210. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
  211. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
  212. package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
  213. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
  214. package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
  215. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
  216. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
  217. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
  218. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
  219. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
  220. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
  221. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
  222. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
  223. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
  224. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
  225. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
  226. package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
  227. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
  228. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
  229. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
  230. package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
  231. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
  232. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
  233. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
  234. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
  235. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
  236. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
  237. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
  238. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
  239. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
  240. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
  241. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
  242. package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
  243. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
  244. package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
  245. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
  246. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
  247. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
  248. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
  249. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
  250. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
  251. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
  252. package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
  253. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
  254. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
  255. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
  256. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
  257. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
  258. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
  259. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
  260. package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
  261. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
  262. package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
  263. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
  264. package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
  265. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
  266. package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
  267. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
  268. package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
  269. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
  270. package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
  271. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
  272. package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
  273. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
  274. package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
  275. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
  276. package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
  277. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
  278. package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
  279. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
  280. package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
  281. package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
  282. package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
  283. package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
  284. package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
  285. package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
  286. package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
  287. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
  288. package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
  289. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
  290. package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
  291. package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
  292. package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
  293. package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
  294. package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
  295. package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
  296. package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
  297. package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
  298. package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
  299. package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
  300. package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
  301. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
  302. package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
  303. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
  304. package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
  305. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
  306. package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
  307. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
  308. package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
  309. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
  310. package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
  311. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
  312. package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
  313. package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
  314. package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
  315. package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
  316. package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
  317. package/vendor/dojo-1.10.10/dojox/main.js +4 -0
  318. package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
  319. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
  320. package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
  321. package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
  322. package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
  323. package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
  324. package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
@@ -0,0 +1,662 @@
1
+ //>>built
2
+ define("dojox/gfx/svg",["dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/dom","dojo/_base/declare","dojo/_base/array","dojo/dom-geometry","dojo/dom-attr","dojo/_base/Color","./_base","./shape","./path"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,g,gs,_a){
3
+ var _b=g.svg={};
4
+ _b.useSvgWeb=(typeof window.svgweb!="undefined");
5
+ var _c=navigator.userAgent,_d=_2("ios"),_e=_2("android"),_f=_2("chrome")||(_e&&_e>=4)?"auto":"optimizeLegibility";
6
+ function _10(ns,_11){
7
+ if(_3.doc.createElementNS){
8
+ return _3.doc.createElementNS(ns,_11);
9
+ }else{
10
+ return _3.doc.createElement(_11);
11
+ }
12
+ };
13
+ function _12(_13,ns,_14,_15){
14
+ if(_13.setAttributeNS){
15
+ return _13.setAttributeNS(ns,_14,_15);
16
+ }else{
17
+ return _13.setAttribute(_14,_15);
18
+ }
19
+ };
20
+ function _16(_17){
21
+ if(_b.useSvgWeb){
22
+ return _3.doc.createTextNode(_17,true);
23
+ }else{
24
+ return _3.doc.createTextNode(_17);
25
+ }
26
+ };
27
+ function _18(){
28
+ if(_b.useSvgWeb){
29
+ return _3.doc.createDocumentFragment(true);
30
+ }else{
31
+ return _3.doc.createDocumentFragment();
32
+ }
33
+ };
34
+ _b.xmlns={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"};
35
+ _b.getRef=function(_19){
36
+ if(!_19||_19=="none"){
37
+ return null;
38
+ }
39
+ if(_19.match(/^url\(#.+\)$/)){
40
+ return _4.byId(_19.slice(5,-1));
41
+ }
42
+ if(_19.match(/^#dojoUnique\d+$/)){
43
+ return _4.byId(_19.slice(1));
44
+ }
45
+ return null;
46
+ };
47
+ _b.dasharray={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};
48
+ var _1a=0;
49
+ _b.Shape=_5("dojox.gfx.svg.Shape",gs.Shape,{destroy:function(){
50
+ if(this.fillStyle&&"type" in this.fillStyle){
51
+ var _1b=this.rawNode.getAttribute("fill"),ref=_b.getRef(_1b);
52
+ if(ref){
53
+ ref.parentNode.removeChild(ref);
54
+ }
55
+ }
56
+ if(this.clip){
57
+ var _1c=this.rawNode.getAttribute("clip-path");
58
+ if(_1c){
59
+ var _1d=_4.byId(_1c.match(/gfx_clip[\d]+/)[0]);
60
+ if(_1d){
61
+ _1d.parentNode.removeChild(_1d);
62
+ }
63
+ }
64
+ }
65
+ gs.Shape.prototype.destroy.apply(this,arguments);
66
+ },setFill:function(_1e){
67
+ if(!_1e){
68
+ this.fillStyle=null;
69
+ this.rawNode.setAttribute("fill","none");
70
+ this.rawNode.setAttribute("fill-opacity",0);
71
+ return this;
72
+ }
73
+ var f;
74
+ var _1f=function(x){
75
+ this.setAttribute(x,f[x].toFixed(8));
76
+ };
77
+ if(typeof (_1e)=="object"&&"type" in _1e){
78
+ switch(_1e.type){
79
+ case "linear":
80
+ f=g.makeParameters(g.defaultLinearGradient,_1e);
81
+ var _20=this._setFillObject(f,"linearGradient");
82
+ _6.forEach(["x1","y1","x2","y2"],_1f,_20);
83
+ break;
84
+ case "radial":
85
+ f=g.makeParameters(g.defaultRadialGradient,_1e);
86
+ var _21=this._setFillObject(f,"radialGradient");
87
+ _6.forEach(["cx","cy","r"],_1f,_21);
88
+ break;
89
+ case "pattern":
90
+ f=g.makeParameters(g.defaultPattern,_1e);
91
+ var _22=this._setFillObject(f,"pattern");
92
+ _6.forEach(["x","y","width","height"],_1f,_22);
93
+ break;
94
+ }
95
+ this.fillStyle=f;
96
+ return this;
97
+ }
98
+ f=g.normalizeColor(_1e);
99
+ this.fillStyle=f;
100
+ this.rawNode.setAttribute("fill",f.toCss());
101
+ this.rawNode.setAttribute("fill-opacity",f.a);
102
+ this.rawNode.setAttribute("fill-rule","evenodd");
103
+ return this;
104
+ },setStroke:function(_23){
105
+ var rn=this.rawNode;
106
+ if(!_23){
107
+ this.strokeStyle=null;
108
+ rn.setAttribute("stroke","none");
109
+ rn.setAttribute("stroke-opacity",0);
110
+ return this;
111
+ }
112
+ if(typeof _23=="string"||_1.isArray(_23)||_23 instanceof _9){
113
+ _23={color:_23};
114
+ }
115
+ var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_23);
116
+ s.color=g.normalizeColor(s.color);
117
+ if(s){
118
+ rn.setAttribute("stroke",s.color.toCss());
119
+ rn.setAttribute("stroke-opacity",s.color.a);
120
+ rn.setAttribute("stroke-width",s.width);
121
+ rn.setAttribute("stroke-linecap",s.cap);
122
+ if(typeof s.join=="number"){
123
+ rn.setAttribute("stroke-linejoin","miter");
124
+ rn.setAttribute("stroke-miterlimit",s.join);
125
+ }else{
126
+ rn.setAttribute("stroke-linejoin",s.join);
127
+ }
128
+ var da=s.style.toLowerCase();
129
+ if(da in _b.dasharray){
130
+ da=_b.dasharray[da];
131
+ }
132
+ if(da instanceof Array){
133
+ da=_1._toArray(da);
134
+ var i;
135
+ for(i=0;i<da.length;++i){
136
+ da[i]*=s.width;
137
+ }
138
+ if(s.cap!="butt"){
139
+ for(i=0;i<da.length;i+=2){
140
+ da[i]-=s.width;
141
+ if(da[i]<1){
142
+ da[i]=1;
143
+ }
144
+ }
145
+ for(i=1;i<da.length;i+=2){
146
+ da[i]+=s.width;
147
+ }
148
+ }
149
+ da=da.join(",");
150
+ }
151
+ rn.setAttribute("stroke-dasharray",da);
152
+ rn.setAttribute("dojoGfxStrokeStyle",s.style);
153
+ }
154
+ return this;
155
+ },_getParentSurface:function(){
156
+ var _24=this.parent;
157
+ for(;_24&&!(_24 instanceof g.Surface);_24=_24.parent){
158
+ }
159
+ return _24;
160
+ },_setFillObject:function(f,_25){
161
+ var _26=_b.xmlns.svg;
162
+ this.fillStyle=f;
163
+ var _27=this._getParentSurface(),_28=_27.defNode,_29=this.rawNode.getAttribute("fill"),ref=_b.getRef(_29);
164
+ if(ref){
165
+ _29=ref;
166
+ if(_29.tagName.toLowerCase()!=_25.toLowerCase()){
167
+ var id=_29.id;
168
+ _29.parentNode.removeChild(_29);
169
+ _29=_10(_26,_25);
170
+ _29.setAttribute("id",id);
171
+ _28.appendChild(_29);
172
+ }else{
173
+ while(_29.childNodes.length){
174
+ _29.removeChild(_29.lastChild);
175
+ }
176
+ }
177
+ }else{
178
+ _29=_10(_26,_25);
179
+ _29.setAttribute("id",g._base._getUniqueId());
180
+ _28.appendChild(_29);
181
+ }
182
+ if(_25=="pattern"){
183
+ _29.setAttribute("patternUnits","userSpaceOnUse");
184
+ var img=_10(_26,"image");
185
+ img.setAttribute("x",0);
186
+ img.setAttribute("y",0);
187
+ img.setAttribute("width",f.width.toFixed(8));
188
+ img.setAttribute("height",f.height.toFixed(8));
189
+ _12(img,_b.xmlns.xlink,"xlink:href",f.src);
190
+ _29.appendChild(img);
191
+ }else{
192
+ _29.setAttribute("gradientUnits","userSpaceOnUse");
193
+ for(var i=0;i<f.colors.length;++i){
194
+ var c=f.colors[i],t=_10(_26,"stop"),cc=c.color=g.normalizeColor(c.color);
195
+ t.setAttribute("offset",c.offset.toFixed(8));
196
+ t.setAttribute("stop-color",cc.toCss());
197
+ t.setAttribute("stop-opacity",cc.a);
198
+ _29.appendChild(t);
199
+ }
200
+ }
201
+ this.rawNode.setAttribute("fill","url(#"+_29.getAttribute("id")+")");
202
+ this.rawNode.removeAttribute("fill-opacity");
203
+ this.rawNode.setAttribute("fill-rule","evenodd");
204
+ return _29;
205
+ },_applyTransform:function(){
206
+ var _2a=this.matrix;
207
+ if(_2a){
208
+ var tm=this.matrix;
209
+ this.rawNode.setAttribute("transform","matrix("+tm.xx.toFixed(8)+","+tm.yx.toFixed(8)+","+tm.xy.toFixed(8)+","+tm.yy.toFixed(8)+","+tm.dx.toFixed(8)+","+tm.dy.toFixed(8)+")");
210
+ }else{
211
+ this.rawNode.removeAttribute("transform");
212
+ }
213
+ return this;
214
+ },setRawNode:function(_2b){
215
+ var r=this.rawNode=_2b;
216
+ if(this.shape.type!="image"){
217
+ r.setAttribute("fill","none");
218
+ }
219
+ r.setAttribute("fill-opacity",0);
220
+ r.setAttribute("stroke","none");
221
+ r.setAttribute("stroke-opacity",0);
222
+ r.setAttribute("stroke-width",1);
223
+ r.setAttribute("stroke-linecap","butt");
224
+ r.setAttribute("stroke-linejoin","miter");
225
+ r.setAttribute("stroke-miterlimit",4);
226
+ r.__gfxObject__=this;
227
+ },setShape:function(_2c){
228
+ this.shape=g.makeParameters(this.shape,_2c);
229
+ for(var i in this.shape){
230
+ if(i!="type"){
231
+ this.rawNode.setAttribute(i,this.shape[i]);
232
+ }
233
+ }
234
+ this.bbox=null;
235
+ return this;
236
+ },_moveToFront:function(){
237
+ this.rawNode.parentNode.appendChild(this.rawNode);
238
+ return this;
239
+ },_moveToBack:function(){
240
+ this.rawNode.parentNode.insertBefore(this.rawNode,this.rawNode.parentNode.firstChild);
241
+ return this;
242
+ },setClip:function(_2d){
243
+ this.inherited(arguments);
244
+ var _2e=_2d?"width" in _2d?"rect":"cx" in _2d?"ellipse":"points" in _2d?"polyline":"d" in _2d?"path":null:null;
245
+ if(_2d&&!_2e){
246
+ return this;
247
+ }
248
+ if(_2e==="polyline"){
249
+ _2d=_1.clone(_2d);
250
+ _2d.points=_2d.points.join(",");
251
+ }
252
+ var _2f,_30,_31=_8.get(this.rawNode,"clip-path");
253
+ if(_31){
254
+ _2f=_4.byId(_31.match(/gfx_clip[\d]+/)[0]);
255
+ if(_2f){
256
+ _2f.removeChild(_2f.childNodes[0]);
257
+ }
258
+ }
259
+ if(_2d){
260
+ if(_2f){
261
+ _30=_10(_b.xmlns.svg,_2e);
262
+ _2f.appendChild(_30);
263
+ }else{
264
+ var _32=++_1a;
265
+ var _33="gfx_clip"+_32;
266
+ var _34="url(#"+_33+")";
267
+ this.rawNode.setAttribute("clip-path",_34);
268
+ _2f=_10(_b.xmlns.svg,"clipPath");
269
+ _30=_10(_b.xmlns.svg,_2e);
270
+ _2f.appendChild(_30);
271
+ this.rawNode.parentNode.insertBefore(_2f,this.rawNode);
272
+ _8.set(_2f,"id",_33);
273
+ }
274
+ _8.set(_30,_2d);
275
+ }else{
276
+ this.rawNode.removeAttribute("clip-path");
277
+ if(_2f){
278
+ _2f.parentNode.removeChild(_2f);
279
+ }
280
+ }
281
+ return this;
282
+ },_removeClipNode:function(){
283
+ var _35,_36=_8.get(this.rawNode,"clip-path");
284
+ if(_36){
285
+ _35=_4.byId(_36.match(/gfx_clip[\d]+/)[0]);
286
+ if(_35){
287
+ _35.parentNode.removeChild(_35);
288
+ }
289
+ }
290
+ return _35;
291
+ }});
292
+ _b.Group=_5("dojox.gfx.svg.Group",_b.Shape,{constructor:function(){
293
+ gs.Container._init.call(this);
294
+ },setRawNode:function(_37){
295
+ this.rawNode=_37;
296
+ this.rawNode.__gfxObject__=this;
297
+ },destroy:function(){
298
+ this.clear(true);
299
+ _b.Shape.prototype.destroy.apply(this,arguments);
300
+ }});
301
+ _b.Group.nodeType="g";
302
+ _b.Rect=_5("dojox.gfx.svg.Rect",[_b.Shape,gs.Rect],{setShape:function(_38){
303
+ this.shape=g.makeParameters(this.shape,_38);
304
+ this.bbox=null;
305
+ for(var i in this.shape){
306
+ if(i!="type"&&i!="r"){
307
+ this.rawNode.setAttribute(i,this.shape[i]);
308
+ }
309
+ }
310
+ if(this.shape.r!=null){
311
+ this.rawNode.setAttribute("ry",this.shape.r);
312
+ this.rawNode.setAttribute("rx",this.shape.r);
313
+ }
314
+ return this;
315
+ }});
316
+ _b.Rect.nodeType="rect";
317
+ _b.Ellipse=_5("dojox.gfx.svg.Ellipse",[_b.Shape,gs.Ellipse],{});
318
+ _b.Ellipse.nodeType="ellipse";
319
+ _b.Circle=_5("dojox.gfx.svg.Circle",[_b.Shape,gs.Circle],{});
320
+ _b.Circle.nodeType="circle";
321
+ _b.Line=_5("dojox.gfx.svg.Line",[_b.Shape,gs.Line],{});
322
+ _b.Line.nodeType="line";
323
+ _b.Polyline=_5("dojox.gfx.svg.Polyline",[_b.Shape,gs.Polyline],{setShape:function(_39,_3a){
324
+ if(_39&&_39 instanceof Array){
325
+ this.shape=g.makeParameters(this.shape,{points:_39});
326
+ if(_3a&&this.shape.points.length){
327
+ this.shape.points.push(this.shape.points[0]);
328
+ }
329
+ }else{
330
+ this.shape=g.makeParameters(this.shape,_39);
331
+ }
332
+ this.bbox=null;
333
+ this._normalizePoints();
334
+ var _3b=[],p=this.shape.points;
335
+ for(var i=0;i<p.length;++i){
336
+ _3b.push(p[i].x.toFixed(8),p[i].y.toFixed(8));
337
+ }
338
+ this.rawNode.setAttribute("points",_3b.join(" "));
339
+ return this;
340
+ }});
341
+ _b.Polyline.nodeType="polyline";
342
+ _b.Image=_5("dojox.gfx.svg.Image",[_b.Shape,gs.Image],{setShape:function(_3c){
343
+ this.shape=g.makeParameters(this.shape,_3c);
344
+ this.bbox=null;
345
+ var _3d=this.rawNode;
346
+ for(var i in this.shape){
347
+ if(i!="type"&&i!="src"){
348
+ _3d.setAttribute(i,this.shape[i]);
349
+ }
350
+ }
351
+ _3d.setAttribute("preserveAspectRatio","none");
352
+ _12(_3d,_b.xmlns.xlink,"xlink:href",this.shape.src);
353
+ _3d.__gfxObject__=this;
354
+ return this;
355
+ }});
356
+ _b.Image.nodeType="image";
357
+ _b.Text=_5("dojox.gfx.svg.Text",[_b.Shape,gs.Text],{setShape:function(_3e){
358
+ this.shape=g.makeParameters(this.shape,_3e);
359
+ this.bbox=null;
360
+ var r=this.rawNode,s=this.shape;
361
+ r.setAttribute("x",s.x);
362
+ r.setAttribute("y",s.y);
363
+ r.setAttribute("text-anchor",s.align);
364
+ r.setAttribute("text-decoration",s.decoration);
365
+ r.setAttribute("rotate",s.rotated?90:0);
366
+ r.setAttribute("kerning",s.kerning?"auto":0);
367
+ r.setAttribute("text-rendering",_f);
368
+ if(r.firstChild){
369
+ r.firstChild.nodeValue=s.text;
370
+ }else{
371
+ r.appendChild(_16(s.text));
372
+ }
373
+ return this;
374
+ },getTextWidth:function(){
375
+ var _3f=this.rawNode,_40=_3f.parentNode,_41=_3f.cloneNode(true);
376
+ _41.style.visibility="hidden";
377
+ var _42=0,_43=_41.firstChild.nodeValue;
378
+ _40.appendChild(_41);
379
+ if(_43!=""){
380
+ while(!_42){
381
+ if(_41.getBBox){
382
+ _42=parseInt(_41.getBBox().width);
383
+ }else{
384
+ _42=68;
385
+ }
386
+ }
387
+ }
388
+ _40.removeChild(_41);
389
+ return _42;
390
+ },getBoundingBox:function(){
391
+ var s=this.getShape(),_44=null;
392
+ if(s.text){
393
+ try{
394
+ _44=this.rawNode.getBBox();
395
+ }
396
+ catch(e){
397
+ _44={x:0,y:0,width:0,height:0};
398
+ }
399
+ }
400
+ return _44;
401
+ }});
402
+ _b.Text.nodeType="text";
403
+ _b.Path=_5("dojox.gfx.svg.Path",[_b.Shape,_a.Path],{_updateWithSegment:function(_45){
404
+ this.inherited(arguments);
405
+ if(typeof (this.shape.path)=="string"){
406
+ this.rawNode.setAttribute("d",this.shape.path);
407
+ }
408
+ },setShape:function(_46){
409
+ this.inherited(arguments);
410
+ if(this.shape.path){
411
+ this.rawNode.setAttribute("d",this.shape.path);
412
+ }else{
413
+ this.rawNode.removeAttribute("d");
414
+ }
415
+ return this;
416
+ }});
417
+ _b.Path.nodeType="path";
418
+ _b.TextPath=_5("dojox.gfx.svg.TextPath",[_b.Shape,_a.TextPath],{_updateWithSegment:function(_47){
419
+ this.inherited(arguments);
420
+ this._setTextPath();
421
+ },setShape:function(_48){
422
+ this.inherited(arguments);
423
+ this._setTextPath();
424
+ return this;
425
+ },_setTextPath:function(){
426
+ if(typeof this.shape.path!="string"){
427
+ return;
428
+ }
429
+ var r=this.rawNode;
430
+ if(!r.firstChild){
431
+ var tp=_10(_b.xmlns.svg,"textPath"),tx=_16("");
432
+ tp.appendChild(tx);
433
+ r.appendChild(tp);
434
+ }
435
+ var ref=r.firstChild.getAttributeNS(_b.xmlns.xlink,"href"),_49=ref&&_b.getRef(ref);
436
+ if(!_49){
437
+ var _4a=this._getParentSurface();
438
+ if(_4a){
439
+ var _4b=_4a.defNode;
440
+ _49=_10(_b.xmlns.svg,"path");
441
+ var id=g._base._getUniqueId();
442
+ _49.setAttribute("id",id);
443
+ _4b.appendChild(_49);
444
+ _12(r.firstChild,_b.xmlns.xlink,"xlink:href","#"+id);
445
+ }
446
+ }
447
+ if(_49){
448
+ _49.setAttribute("d",this.shape.path);
449
+ }
450
+ },_setText:function(){
451
+ var r=this.rawNode;
452
+ if(!r.firstChild){
453
+ var tp=_10(_b.xmlns.svg,"textPath"),tx=_16("");
454
+ tp.appendChild(tx);
455
+ r.appendChild(tp);
456
+ }
457
+ r=r.firstChild;
458
+ var t=this.text;
459
+ r.setAttribute("alignment-baseline","middle");
460
+ switch(t.align){
461
+ case "middle":
462
+ r.setAttribute("text-anchor","middle");
463
+ r.setAttribute("startOffset","50%");
464
+ break;
465
+ case "end":
466
+ r.setAttribute("text-anchor","end");
467
+ r.setAttribute("startOffset","100%");
468
+ break;
469
+ default:
470
+ r.setAttribute("text-anchor","start");
471
+ r.setAttribute("startOffset","0%");
472
+ break;
473
+ }
474
+ r.setAttribute("baseline-shift","0.5ex");
475
+ r.setAttribute("text-decoration",t.decoration);
476
+ r.setAttribute("rotate",t.rotated?90:0);
477
+ r.setAttribute("kerning",t.kerning?"auto":0);
478
+ r.firstChild.data=t.text;
479
+ }});
480
+ _b.TextPath.nodeType="text";
481
+ var _4c=(function(){
482
+ var _4d=/WebKit\/(\d*)/.exec(_c);
483
+ return _4d?_4d[1]:0;
484
+ })()>534;
485
+ _b.Surface=_5("dojox.gfx.svg.Surface",gs.Surface,{constructor:function(){
486
+ gs.Container._init.call(this);
487
+ },destroy:function(){
488
+ gs.Container.clear.call(this,true);
489
+ this.defNode=null;
490
+ this.inherited(arguments);
491
+ },setDimensions:function(_4e,_4f){
492
+ if(!this.rawNode){
493
+ return this;
494
+ }
495
+ this.rawNode.setAttribute("width",_4e);
496
+ this.rawNode.setAttribute("height",_4f);
497
+ if(_4c){
498
+ this.rawNode.style.width=_4e;
499
+ this.rawNode.style.height=_4f;
500
+ }
501
+ return this;
502
+ },getDimensions:function(){
503
+ var t=this.rawNode?{width:g.normalizedLength(this.rawNode.getAttribute("width")),height:g.normalizedLength(this.rawNode.getAttribute("height"))}:null;
504
+ return t;
505
+ }});
506
+ _b.createSurface=function(_50,_51,_52){
507
+ var s=new _b.Surface();
508
+ s.rawNode=_10(_b.xmlns.svg,"svg");
509
+ s.rawNode.setAttribute("overflow","hidden");
510
+ if(_51){
511
+ s.rawNode.setAttribute("width",_51);
512
+ }
513
+ if(_52){
514
+ s.rawNode.setAttribute("height",_52);
515
+ }
516
+ var _53=_10(_b.xmlns.svg,"defs");
517
+ s.rawNode.appendChild(_53);
518
+ s.defNode=_53;
519
+ s._parent=_4.byId(_50);
520
+ s._parent.appendChild(s.rawNode);
521
+ g._base._fixMsTouchAction(s);
522
+ return s;
523
+ };
524
+ var _54={_setFont:function(){
525
+ var f=this.fontStyle;
526
+ this.rawNode.setAttribute("font-style",f.style);
527
+ this.rawNode.setAttribute("font-variant",f.variant);
528
+ this.rawNode.setAttribute("font-weight",f.weight);
529
+ this.rawNode.setAttribute("font-size",f.size);
530
+ this.rawNode.setAttribute("font-family",f.family);
531
+ }};
532
+ var C=gs.Container;
533
+ var _55=_b.Container={openBatch:function(){
534
+ if(!this._batch){
535
+ this.fragment=_18();
536
+ }
537
+ ++this._batch;
538
+ return this;
539
+ },closeBatch:function(){
540
+ this._batch=this._batch>0?--this._batch:0;
541
+ if(this.fragment&&!this._batch){
542
+ this.rawNode.appendChild(this.fragment);
543
+ delete this.fragment;
544
+ }
545
+ return this;
546
+ },add:function(_56){
547
+ if(this!=_56.getParent()){
548
+ if(this.fragment){
549
+ this.fragment.appendChild(_56.rawNode);
550
+ }else{
551
+ this.rawNode.appendChild(_56.rawNode);
552
+ }
553
+ C.add.apply(this,arguments);
554
+ _56.setClip(_56.clip);
555
+ }
556
+ return this;
557
+ },remove:function(_57,_58){
558
+ if(this==_57.getParent()){
559
+ if(this.rawNode==_57.rawNode.parentNode){
560
+ this.rawNode.removeChild(_57.rawNode);
561
+ }
562
+ if(this.fragment&&this.fragment==_57.rawNode.parentNode){
563
+ this.fragment.removeChild(_57.rawNode);
564
+ }
565
+ _57._removeClipNode();
566
+ C.remove.apply(this,arguments);
567
+ }
568
+ return this;
569
+ },clear:function(){
570
+ var r=this.rawNode;
571
+ while(r.lastChild){
572
+ r.removeChild(r.lastChild);
573
+ }
574
+ var _59=this.defNode;
575
+ if(_59){
576
+ while(_59.lastChild){
577
+ _59.removeChild(_59.lastChild);
578
+ }
579
+ r.appendChild(_59);
580
+ }
581
+ return C.clear.apply(this,arguments);
582
+ },getBoundingBox:C.getBoundingBox,_moveChildToFront:C._moveChildToFront,_moveChildToBack:C._moveChildToBack};
583
+ var _5a=_b.Creator={createObject:function(_5b,_5c){
584
+ if(!this.rawNode){
585
+ return null;
586
+ }
587
+ var _5d=new _5b(),_5e=_10(_b.xmlns.svg,_5b.nodeType);
588
+ _5d.setRawNode(_5e);
589
+ _5d.setShape(_5c);
590
+ this.add(_5d);
591
+ return _5d;
592
+ }};
593
+ _1.extend(_b.Text,_54);
594
+ _1.extend(_b.TextPath,_54);
595
+ _1.extend(_b.Group,_55);
596
+ _1.extend(_b.Group,gs.Creator);
597
+ _1.extend(_b.Group,_5a);
598
+ _1.extend(_b.Surface,_55);
599
+ _1.extend(_b.Surface,gs.Creator);
600
+ _1.extend(_b.Surface,_5a);
601
+ _b.fixTarget=function(_5f,_60){
602
+ if(!_5f.gfxTarget){
603
+ if(_d&&_5f.target.wholeText){
604
+ _5f.gfxTarget=_5f.target.parentElement.__gfxObject__;
605
+ }else{
606
+ _5f.gfxTarget=_5f.target.__gfxObject__;
607
+ }
608
+ }
609
+ return true;
610
+ };
611
+ if(_b.useSvgWeb){
612
+ _b.createSurface=function(_61,_62,_63){
613
+ var s=new _b.Surface();
614
+ if(!_62||!_63){
615
+ var pos=_7.position(_61);
616
+ _62=_62||pos.w;
617
+ _63=_63||pos.h;
618
+ }
619
+ _61=_4.byId(_61);
620
+ var id=_61.id?_61.id+"_svgweb":g._base._getUniqueId();
621
+ var _64=_10(_b.xmlns.svg,"svg");
622
+ _64.id=id;
623
+ _64.setAttribute("width",_62);
624
+ _64.setAttribute("height",_63);
625
+ svgweb.appendChild(_64,_61);
626
+ _64.addEventListener("SVGLoad",function(){
627
+ s.rawNode=this;
628
+ s.isLoaded=true;
629
+ var _65=_10(_b.xmlns.svg,"defs");
630
+ s.rawNode.appendChild(_65);
631
+ s.defNode=_65;
632
+ if(s.onLoad){
633
+ s.onLoad(s);
634
+ }
635
+ },false);
636
+ s.isLoaded=false;
637
+ return s;
638
+ };
639
+ _b.Surface.extend({destroy:function(){
640
+ var _66=this.rawNode;
641
+ svgweb.removeChild(_66,_66.parentNode);
642
+ }});
643
+ var _67={connect:function(_68,_69,_6a){
644
+ if(_68.substring(0,2)==="on"){
645
+ _68=_68.substring(2);
646
+ }
647
+ if(arguments.length==2){
648
+ _6a=_69;
649
+ }else{
650
+ _6a=_1.hitch(_69,_6a);
651
+ }
652
+ this.getEventSource().addEventListener(_68,_6a,false);
653
+ return [this,_68,_6a];
654
+ },disconnect:function(_6b){
655
+ this.getEventSource().removeEventListener(_6b[1],_6b[2],false);
656
+ delete _6b[0];
657
+ }};
658
+ _1.extend(_b.Shape,_67);
659
+ _1.extend(_b.Surface,_67);
660
+ }
661
+ return _b;
662
+ });