@datagrok/helm 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +4 -4
- package/src/cell-renderer.ts +5 -4
- package/src/helm-helper.ts +6 -6
- package/src/helm-monomer-placer.ts +1 -1
- package/src/helm-web-editor.ts +5 -5
- package/src/package-test.ts +0 -1
- package/src/package-utils.ts +228 -69
- package/src/package.ts +7 -69
- package/src/tests/findMonomers-tests.ts +2 -1
- package/src/tests/get-monomer-tests.ts +1 -49
- package/src/utils/get-monomer.ts +49 -1
- package/src/utils/helm-grid-cell-renderer.ts +8 -9
- package/src/utils/index.ts +2 -3
- package/src/widgets/helm-input.ts +4 -4
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
- package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
- package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
- package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
- package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
- package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
- package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
- package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
- package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
- package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
- package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
- package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
- package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
- package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
- package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
- package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
- package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
- package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
- package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
- package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
- package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
- package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
- package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
- package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
- package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
- package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
- package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
- package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
- package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
- package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
- package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
- package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
- package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
- package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
- package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
- package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
- package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
- package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
- package/vendor/dojo-1.10.10/dijit/main.js +4 -0
- package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
- package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
- package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
- package/vendor/dojo-1.10.10/dijit/place.js +142 -0
- package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
- package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
- package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
- package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
- package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
- package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
- package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
- package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
- package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
- package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
- package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
- package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
- package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
- package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
- package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
- package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
- package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
- package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
- package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
- package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
- package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
- package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
- package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
- package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
- package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
- package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
- package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
- package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
- package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
- package/vendor/dojo-1.10.10/dojo/html.js +161 -0
- package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
- package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
- package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
- package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
- package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
- package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
- package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
- package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
- package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
- package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
- package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
- package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
- package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
- package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
- package/vendor/dojo-1.10.10/dojo/require.js +11 -0
- package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
- package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
- package/vendor/dojo-1.10.10/dojo/string.js +67 -0
- package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
- package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
- package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
- package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
- package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
- package/vendor/dojo-1.10.10/dojo/window.js +141 -0
- package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
- package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
- package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
- package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
- package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
- package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
- package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
- package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
- package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
- package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
- package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
- package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
- package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
- package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
- package/vendor/dojo-1.10.10/dojox/main.js +4 -0
- package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
- package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
- package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
|
@@ -0,0 +1,208 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,303 @@
|
|
|
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
|
+
});
|