@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,626 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/Chart",["../main","dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/dom-style","dojo/dom","dojo/dom-geometry","dojo/dom-construct","dojo/_base/Color","dojo/sniff","./Element","./SimpleTheme","./Series","./axis2d/common","dojox/gfx/shape","dojox/gfx","dojo/has!dojo-bidi?./bidi/Chart","dojox/lang/functional","dojox/lang/functional/fold","dojox/lang/functional/reversed"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,g,_10,_11){
|
|
3
|
+
var dc=_2.getObject("charting",true,_1),_12=_11.lambda("item.clear()"),_13=_11.lambda("item.purgeGroup()"),_14=_11.lambda("item.destroy()"),_15=_11.lambda("item.dirty = false"),_16=_11.lambda("item.dirty = true"),_17=_11.lambda("item.name");
|
|
4
|
+
var _18=_4(_a("dojo-bidi")?"dojox.charting.NonBidiChart":"dojox.charting.Chart",null,{constructor:function(_19,_1a){
|
|
5
|
+
if(!_1a){
|
|
6
|
+
_1a={};
|
|
7
|
+
}
|
|
8
|
+
this.margins=_1a.margins?_1a.margins:{l:10,t:10,r:10,b:10};
|
|
9
|
+
this.stroke=_1a.stroke;
|
|
10
|
+
this.fill=_1a.fill;
|
|
11
|
+
this.delayInMs=_1a.delayInMs||200;
|
|
12
|
+
this.title=_1a.title;
|
|
13
|
+
this.titleGap=_1a.titleGap;
|
|
14
|
+
this.titlePos=_1a.titlePos;
|
|
15
|
+
this.titleFont=_1a.titleFont;
|
|
16
|
+
this.titleFontColor=_1a.titleFontColor;
|
|
17
|
+
this.chartTitle=null;
|
|
18
|
+
this.htmlLabels=true;
|
|
19
|
+
if("htmlLabels" in _1a){
|
|
20
|
+
this.htmlLabels=_1a.htmlLabels;
|
|
21
|
+
}
|
|
22
|
+
this.theme=null;
|
|
23
|
+
this.axes={};
|
|
24
|
+
this.stack=[];
|
|
25
|
+
this.plots={};
|
|
26
|
+
this.series=[];
|
|
27
|
+
this.runs={};
|
|
28
|
+
this.dirty=true;
|
|
29
|
+
this.node=_6.byId(_19);
|
|
30
|
+
var box=_7.getMarginBox(_19);
|
|
31
|
+
this.surface=g.createSurface(this.node,box.w||400,box.h||300);
|
|
32
|
+
if(this.surface.declaredClass.indexOf("vml")==-1){
|
|
33
|
+
this._nativeClip=true;
|
|
34
|
+
}
|
|
35
|
+
},destroy:function(){
|
|
36
|
+
_3.forEach(this.series,_14);
|
|
37
|
+
_3.forEach(this.stack,_14);
|
|
38
|
+
_11.forIn(this.axes,_14);
|
|
39
|
+
this.surface.destroy();
|
|
40
|
+
if(this.chartTitle&&this.chartTitle.tagName){
|
|
41
|
+
_8.destroy(this.chartTitle);
|
|
42
|
+
}
|
|
43
|
+
},getCoords:function(){
|
|
44
|
+
var _1b=this.node;
|
|
45
|
+
var s=_5.getComputedStyle(_1b),_1c=_7.getMarginBox(_1b,s);
|
|
46
|
+
var abs=_7.position(_1b,true);
|
|
47
|
+
_1c.x=abs.x;
|
|
48
|
+
_1c.y=abs.y;
|
|
49
|
+
return _1c;
|
|
50
|
+
},setTheme:function(_1d){
|
|
51
|
+
this.theme=_1d.clone();
|
|
52
|
+
this.dirty=true;
|
|
53
|
+
return this;
|
|
54
|
+
},addAxis:function(_1e,_1f){
|
|
55
|
+
var _20,_21=_1f&&_1f.type||"Default";
|
|
56
|
+
if(typeof _21=="string"){
|
|
57
|
+
if(!dc.axis2d||!dc.axis2d[_21]){
|
|
58
|
+
throw Error("Can't find axis: "+_21+" - Check "+"require() dependencies.");
|
|
59
|
+
}
|
|
60
|
+
_20=new dc.axis2d[_21](this,_1f);
|
|
61
|
+
}else{
|
|
62
|
+
_20=new _21(this,_1f);
|
|
63
|
+
}
|
|
64
|
+
_20.name=_1e;
|
|
65
|
+
_20.dirty=true;
|
|
66
|
+
if(_1e in this.axes){
|
|
67
|
+
this.axes[_1e].destroy();
|
|
68
|
+
}
|
|
69
|
+
this.axes[_1e]=_20;
|
|
70
|
+
this.dirty=true;
|
|
71
|
+
return this;
|
|
72
|
+
},getAxis:function(_22){
|
|
73
|
+
return this.axes[_22];
|
|
74
|
+
},removeAxis:function(_23){
|
|
75
|
+
if(_23 in this.axes){
|
|
76
|
+
this.axes[_23].destroy();
|
|
77
|
+
delete this.axes[_23];
|
|
78
|
+
this.dirty=true;
|
|
79
|
+
}
|
|
80
|
+
return this;
|
|
81
|
+
},addPlot:function(_24,_25){
|
|
82
|
+
var _26,_27=_25&&_25.type||"Default";
|
|
83
|
+
if(typeof _27=="string"){
|
|
84
|
+
if(!dc.plot2d||!dc.plot2d[_27]){
|
|
85
|
+
throw Error("Can't find plot: "+_27+" - didn't you forget to dojo"+".require() it?");
|
|
86
|
+
}
|
|
87
|
+
_26=new dc.plot2d[_27](this,_25);
|
|
88
|
+
}else{
|
|
89
|
+
_26=new _27(this,_25);
|
|
90
|
+
}
|
|
91
|
+
_26.name=_24;
|
|
92
|
+
_26.dirty=true;
|
|
93
|
+
if(_24 in this.plots){
|
|
94
|
+
this.stack[this.plots[_24]].destroy();
|
|
95
|
+
this.stack[this.plots[_24]]=_26;
|
|
96
|
+
}else{
|
|
97
|
+
this.plots[_24]=this.stack.length;
|
|
98
|
+
this.stack.push(_26);
|
|
99
|
+
}
|
|
100
|
+
this.dirty=true;
|
|
101
|
+
return this;
|
|
102
|
+
},getPlot:function(_28){
|
|
103
|
+
return this.stack[this.plots[_28]];
|
|
104
|
+
},removePlot:function(_29){
|
|
105
|
+
if(_29 in this.plots){
|
|
106
|
+
var _2a=this.plots[_29];
|
|
107
|
+
delete this.plots[_29];
|
|
108
|
+
this.stack[_2a].destroy();
|
|
109
|
+
this.stack.splice(_2a,1);
|
|
110
|
+
_11.forIn(this.plots,function(idx,_2b,_2c){
|
|
111
|
+
if(idx>_2a){
|
|
112
|
+
_2c[_2b]=idx-1;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
var ns=_3.filter(this.series,function(run){
|
|
116
|
+
return run.plot!=_29;
|
|
117
|
+
});
|
|
118
|
+
if(ns.length<this.series.length){
|
|
119
|
+
_3.forEach(this.series,function(run){
|
|
120
|
+
if(run.plot==_29){
|
|
121
|
+
run.destroy();
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
this.runs={};
|
|
125
|
+
_3.forEach(ns,function(run,_2d){
|
|
126
|
+
this.runs[run.plot]=_2d;
|
|
127
|
+
},this);
|
|
128
|
+
this.series=ns;
|
|
129
|
+
}
|
|
130
|
+
this.dirty=true;
|
|
131
|
+
}
|
|
132
|
+
return this;
|
|
133
|
+
},getPlotOrder:function(){
|
|
134
|
+
return _11.map(this.stack,_17);
|
|
135
|
+
},setPlotOrder:function(_2e){
|
|
136
|
+
var _2f={},_30=_11.filter(_2e,function(_31){
|
|
137
|
+
if(!(_31 in this.plots)||(_31 in _2f)){
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
_2f[_31]=1;
|
|
141
|
+
return true;
|
|
142
|
+
},this);
|
|
143
|
+
if(_30.length<this.stack.length){
|
|
144
|
+
_11.forEach(this.stack,function(_32){
|
|
145
|
+
var _33=_32.name;
|
|
146
|
+
if(!(_33 in _2f)){
|
|
147
|
+
_30.push(_33);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
var _34=_11.map(_30,function(_35){
|
|
152
|
+
return this.stack[this.plots[_35]];
|
|
153
|
+
},this);
|
|
154
|
+
_11.forEach(_34,function(_36,i){
|
|
155
|
+
this.plots[_36.name]=i;
|
|
156
|
+
},this);
|
|
157
|
+
this.stack=_34;
|
|
158
|
+
this.dirty=true;
|
|
159
|
+
return this;
|
|
160
|
+
},movePlotToFront:function(_37){
|
|
161
|
+
if(_37 in this.plots){
|
|
162
|
+
var _38=this.plots[_37];
|
|
163
|
+
if(_38){
|
|
164
|
+
var _39=this.getPlotOrder();
|
|
165
|
+
_39.splice(_38,1);
|
|
166
|
+
_39.unshift(_37);
|
|
167
|
+
return this.setPlotOrder(_39);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return this;
|
|
171
|
+
},movePlotToBack:function(_3a){
|
|
172
|
+
if(_3a in this.plots){
|
|
173
|
+
var _3b=this.plots[_3a];
|
|
174
|
+
if(_3b<this.stack.length-1){
|
|
175
|
+
var _3c=this.getPlotOrder();
|
|
176
|
+
_3c.splice(_3b,1);
|
|
177
|
+
_3c.push(_3a);
|
|
178
|
+
return this.setPlotOrder(_3c);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return this;
|
|
182
|
+
},addSeries:function(_3d,_3e,_3f){
|
|
183
|
+
var run=new _d(this,_3e,_3f);
|
|
184
|
+
run.name=_3d;
|
|
185
|
+
if(_3d in this.runs){
|
|
186
|
+
this.series[this.runs[_3d]].destroy();
|
|
187
|
+
this.series[this.runs[_3d]]=run;
|
|
188
|
+
}else{
|
|
189
|
+
this.runs[_3d]=this.series.length;
|
|
190
|
+
this.series.push(run);
|
|
191
|
+
}
|
|
192
|
+
this.dirty=true;
|
|
193
|
+
if(!("ymin" in run)&&"min" in run){
|
|
194
|
+
run.ymin=run.min;
|
|
195
|
+
}
|
|
196
|
+
if(!("ymax" in run)&&"max" in run){
|
|
197
|
+
run.ymax=run.max;
|
|
198
|
+
}
|
|
199
|
+
return this;
|
|
200
|
+
},getSeries:function(_40){
|
|
201
|
+
return this.series[this.runs[_40]];
|
|
202
|
+
},removeSeries:function(_41){
|
|
203
|
+
if(_41 in this.runs){
|
|
204
|
+
var _42=this.runs[_41];
|
|
205
|
+
delete this.runs[_41];
|
|
206
|
+
this.series[_42].destroy();
|
|
207
|
+
this.series.splice(_42,1);
|
|
208
|
+
_11.forIn(this.runs,function(idx,_43,_44){
|
|
209
|
+
if(idx>_42){
|
|
210
|
+
_44[_43]=idx-1;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
this.dirty=true;
|
|
214
|
+
}
|
|
215
|
+
return this;
|
|
216
|
+
},updateSeries:function(_45,_46,_47){
|
|
217
|
+
if(_45 in this.runs){
|
|
218
|
+
var run=this.series[this.runs[_45]];
|
|
219
|
+
run.update(_46);
|
|
220
|
+
if(_47){
|
|
221
|
+
this.dirty=true;
|
|
222
|
+
}else{
|
|
223
|
+
this._invalidateDependentPlots(run.plot,false);
|
|
224
|
+
this._invalidateDependentPlots(run.plot,true);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return this;
|
|
228
|
+
},getSeriesOrder:function(_48){
|
|
229
|
+
return _11.map(_11.filter(this.series,function(run){
|
|
230
|
+
return run.plot==_48;
|
|
231
|
+
}),_17);
|
|
232
|
+
},setSeriesOrder:function(_49){
|
|
233
|
+
var _4a,_4b={},_4c=_11.filter(_49,function(_4d){
|
|
234
|
+
if(!(_4d in this.runs)||(_4d in _4b)){
|
|
235
|
+
return false;
|
|
236
|
+
}
|
|
237
|
+
var run=this.series[this.runs[_4d]];
|
|
238
|
+
if(_4a){
|
|
239
|
+
if(run.plot!=_4a){
|
|
240
|
+
return false;
|
|
241
|
+
}
|
|
242
|
+
}else{
|
|
243
|
+
_4a=run.plot;
|
|
244
|
+
}
|
|
245
|
+
_4b[_4d]=1;
|
|
246
|
+
return true;
|
|
247
|
+
},this);
|
|
248
|
+
_11.forEach(this.series,function(run){
|
|
249
|
+
var _4e=run.name;
|
|
250
|
+
if(!(_4e in _4b)&&run.plot==_4a){
|
|
251
|
+
_4c.push(_4e);
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
var _4f=_11.map(_4c,function(_50){
|
|
255
|
+
return this.series[this.runs[_50]];
|
|
256
|
+
},this);
|
|
257
|
+
this.series=_4f.concat(_11.filter(this.series,function(run){
|
|
258
|
+
return run.plot!=_4a;
|
|
259
|
+
}));
|
|
260
|
+
_11.forEach(this.series,function(run,i){
|
|
261
|
+
this.runs[run.name]=i;
|
|
262
|
+
},this);
|
|
263
|
+
this.dirty=true;
|
|
264
|
+
return this;
|
|
265
|
+
},moveSeriesToFront:function(_51){
|
|
266
|
+
if(_51 in this.runs){
|
|
267
|
+
var _52=this.runs[_51],_53=this.getSeriesOrder(this.series[_52].plot);
|
|
268
|
+
if(_51!=_53[0]){
|
|
269
|
+
_53.splice(_52,1);
|
|
270
|
+
_53.unshift(_51);
|
|
271
|
+
return this.setSeriesOrder(_53);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return this;
|
|
275
|
+
},moveSeriesToBack:function(_54){
|
|
276
|
+
if(_54 in this.runs){
|
|
277
|
+
var _55=this.runs[_54],_56=this.getSeriesOrder(this.series[_55].plot);
|
|
278
|
+
if(_54!=_56[_56.length-1]){
|
|
279
|
+
_56.splice(_55,1);
|
|
280
|
+
_56.push(_54);
|
|
281
|
+
return this.setSeriesOrder(_56);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return this;
|
|
285
|
+
},resize:function(_57,_58){
|
|
286
|
+
switch(arguments.length){
|
|
287
|
+
case 1:
|
|
288
|
+
_7.setMarginBox(this.node,_57);
|
|
289
|
+
break;
|
|
290
|
+
case 2:
|
|
291
|
+
_7.setMarginBox(this.node,{w:_57,h:_58});
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
var box=_7.getMarginBox(this.node);
|
|
295
|
+
var d=this.surface.getDimensions();
|
|
296
|
+
if(d.width!=box.w||d.height!=box.h){
|
|
297
|
+
this.surface.setDimensions(box.w,box.h);
|
|
298
|
+
this.dirty=true;
|
|
299
|
+
return this.render();
|
|
300
|
+
}else{
|
|
301
|
+
return this;
|
|
302
|
+
}
|
|
303
|
+
},getGeometry:function(){
|
|
304
|
+
var ret={};
|
|
305
|
+
_11.forIn(this.axes,function(_59){
|
|
306
|
+
if(_59.initialized()){
|
|
307
|
+
ret[_59.name]={name:_59.name,vertical:_59.vertical,scaler:_59.scaler,ticks:_59.ticks};
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
return ret;
|
|
311
|
+
},setAxisWindow:function(_5a,_5b,_5c,_5d){
|
|
312
|
+
var _5e=this.axes[_5a];
|
|
313
|
+
if(_5e){
|
|
314
|
+
_5e.setWindow(_5b,_5c);
|
|
315
|
+
_3.forEach(this.stack,function(_5f){
|
|
316
|
+
if(_5f.hAxis==_5a||_5f.vAxis==_5a){
|
|
317
|
+
_5f.zoom=_5d;
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
return this;
|
|
322
|
+
},setWindow:function(sx,sy,dx,dy,_60){
|
|
323
|
+
if(!("plotArea" in this)){
|
|
324
|
+
this.calculateGeometry();
|
|
325
|
+
}
|
|
326
|
+
_11.forIn(this.axes,function(_61){
|
|
327
|
+
var _62,_63,_64=_61.getScaler().bounds,s=_64.span/(_64.upper-_64.lower);
|
|
328
|
+
if(_61.vertical){
|
|
329
|
+
_62=sy;
|
|
330
|
+
_63=dy/s/_62;
|
|
331
|
+
}else{
|
|
332
|
+
_62=sx;
|
|
333
|
+
_63=dx/s/_62;
|
|
334
|
+
}
|
|
335
|
+
_61.setWindow(_62,_63);
|
|
336
|
+
});
|
|
337
|
+
_3.forEach(this.stack,function(_65){
|
|
338
|
+
_65.zoom=_60;
|
|
339
|
+
});
|
|
340
|
+
return this;
|
|
341
|
+
},zoomIn:function(_66,_67,_68){
|
|
342
|
+
var _69=this.axes[_66];
|
|
343
|
+
if(_69){
|
|
344
|
+
var _6a,_6b,_6c=_69.getScaler().bounds;
|
|
345
|
+
var _6d=Math.min(_67[0],_67[1]);
|
|
346
|
+
var _6e=Math.max(_67[0],_67[1]);
|
|
347
|
+
_6d=_67[0]<_6c.lower?_6c.lower:_6d;
|
|
348
|
+
_6e=_67[1]>_6c.upper?_6c.upper:_6e;
|
|
349
|
+
_6a=(_6c.upper-_6c.lower)/(_6e-_6d);
|
|
350
|
+
_6b=_6d-_6c.lower;
|
|
351
|
+
this.setAxisWindow(_66,_6a,_6b);
|
|
352
|
+
if(_68){
|
|
353
|
+
this.delayedRender();
|
|
354
|
+
}else{
|
|
355
|
+
this.render();
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},calculateGeometry:function(){
|
|
359
|
+
if(this.dirty){
|
|
360
|
+
return this.fullGeometry();
|
|
361
|
+
}
|
|
362
|
+
var _6f=_3.filter(this.stack,function(_70){
|
|
363
|
+
return _70.dirty||(_70.hAxis&&this.axes[_70.hAxis].dirty)||(_70.vAxis&&this.axes[_70.vAxis].dirty);
|
|
364
|
+
},this);
|
|
365
|
+
_71(_6f,this.plotArea);
|
|
366
|
+
return this;
|
|
367
|
+
},fullGeometry:function(){
|
|
368
|
+
this._makeDirty();
|
|
369
|
+
_3.forEach(this.stack,_12);
|
|
370
|
+
if(!this.theme){
|
|
371
|
+
this.setTheme(new _c());
|
|
372
|
+
}
|
|
373
|
+
_3.forEach(this.series,function(run){
|
|
374
|
+
if(!(run.plot in this.plots)){
|
|
375
|
+
if(!dc.plot2d||!dc.plot2d.Default){
|
|
376
|
+
throw Error("Can't find plot: Default - didn't you forget to dojo"+".require() it?");
|
|
377
|
+
}
|
|
378
|
+
var _72=new dc.plot2d.Default(this,{});
|
|
379
|
+
_72.name=run.plot;
|
|
380
|
+
this.plots[run.plot]=this.stack.length;
|
|
381
|
+
this.stack.push(_72);
|
|
382
|
+
}
|
|
383
|
+
this.stack[this.plots[run.plot]].addSeries(run);
|
|
384
|
+
},this);
|
|
385
|
+
_3.forEach(this.stack,function(_73){
|
|
386
|
+
if(_73.assignAxes){
|
|
387
|
+
_73.assignAxes(this.axes);
|
|
388
|
+
}
|
|
389
|
+
},this);
|
|
390
|
+
var dim=this.dim=this.surface.getDimensions();
|
|
391
|
+
dim.width=g.normalizedLength(dim.width);
|
|
392
|
+
dim.height=g.normalizedLength(dim.height);
|
|
393
|
+
_11.forIn(this.axes,_12);
|
|
394
|
+
_71(this.stack,dim);
|
|
395
|
+
var _74=this.offsets={l:0,r:0,t:0,b:0};
|
|
396
|
+
var _75=this;
|
|
397
|
+
_11.forIn(this.axes,function(_76){
|
|
398
|
+
if(_a("dojo-bidi")){
|
|
399
|
+
_75._resetLeftBottom(_76);
|
|
400
|
+
}
|
|
401
|
+
_11.forIn(_76.getOffsets(),function(o,i){
|
|
402
|
+
_74[i]=Math.max(o,_74[i]);
|
|
403
|
+
});
|
|
404
|
+
});
|
|
405
|
+
if(this.title){
|
|
406
|
+
this.titleGap=(this.titleGap==0)?0:this.titleGap||this.theme.chart.titleGap||20;
|
|
407
|
+
this.titlePos=this.titlePos||this.theme.chart.titlePos||"top";
|
|
408
|
+
this.titleFont=this.titleFont||this.theme.chart.titleFont;
|
|
409
|
+
this.titleFontColor=this.titleFontColor||this.theme.chart.titleFontColor||"black";
|
|
410
|
+
var _77=g.normalizedLength(g.splitFontString(this.titleFont).size);
|
|
411
|
+
_74[this.titlePos=="top"?"t":"b"]+=(_77+this.titleGap);
|
|
412
|
+
}
|
|
413
|
+
_11.forIn(this.margins,function(o,i){
|
|
414
|
+
_74[i]+=o;
|
|
415
|
+
});
|
|
416
|
+
this.plotArea={width:dim.width-_74.l-_74.r,height:dim.height-_74.t-_74.b};
|
|
417
|
+
_11.forIn(this.axes,_12);
|
|
418
|
+
_71(this.stack,this.plotArea);
|
|
419
|
+
return this;
|
|
420
|
+
},render:function(){
|
|
421
|
+
if(this._delayedRenderHandle){
|
|
422
|
+
clearTimeout(this._delayedRenderHandle);
|
|
423
|
+
this._delayedRenderHandle=null;
|
|
424
|
+
}
|
|
425
|
+
if(this.theme){
|
|
426
|
+
this.theme.clear();
|
|
427
|
+
}
|
|
428
|
+
if(this.dirty){
|
|
429
|
+
return this.fullRender();
|
|
430
|
+
}
|
|
431
|
+
this.calculateGeometry();
|
|
432
|
+
_11.forEachRev(this.stack,function(_78){
|
|
433
|
+
_78.render(this.dim,this.offsets);
|
|
434
|
+
},this);
|
|
435
|
+
_11.forIn(this.axes,function(_79){
|
|
436
|
+
_79.render(this.dim,this.offsets);
|
|
437
|
+
},this);
|
|
438
|
+
this._makeClean();
|
|
439
|
+
return this;
|
|
440
|
+
},fullRender:function(){
|
|
441
|
+
this.fullGeometry();
|
|
442
|
+
var _7a=this.offsets,dim=this.dim;
|
|
443
|
+
var w=Math.max(0,dim.width-_7a.l-_7a.r),h=Math.max(0,dim.height-_7a.t-_7a.b);
|
|
444
|
+
_3.forEach(this.series,_13);
|
|
445
|
+
_11.forIn(this.axes,_13);
|
|
446
|
+
_3.forEach(this.stack,_13);
|
|
447
|
+
var _7b=this.surface.children;
|
|
448
|
+
if(_f.dispose){
|
|
449
|
+
for(var i=0;i<_7b.length;++i){
|
|
450
|
+
_f.dispose(_7b[i]);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
if(this.chartTitle&&this.chartTitle.tagName){
|
|
454
|
+
_8.destroy(this.chartTitle);
|
|
455
|
+
}
|
|
456
|
+
this.surface.clear();
|
|
457
|
+
this.chartTitle=null;
|
|
458
|
+
this._renderChartBackground(dim,_7a);
|
|
459
|
+
if(this._nativeClip){
|
|
460
|
+
this._renderPlotBackground(dim,_7a,w,h);
|
|
461
|
+
}else{
|
|
462
|
+
this._renderPlotBackground(dim,_7a,w,h);
|
|
463
|
+
}
|
|
464
|
+
_11.foldr(this.stack,function(z,_7c){
|
|
465
|
+
return _7c.render(dim,_7a),0;
|
|
466
|
+
},0);
|
|
467
|
+
if(!this._nativeClip){
|
|
468
|
+
this._renderChartBackground(dim,_7a);
|
|
469
|
+
}
|
|
470
|
+
if(this.title){
|
|
471
|
+
var _7d=(g.renderer=="canvas")&&this.htmlLabels,_7e=_7d||!_a("ie")&&!_a("opera")&&this.htmlLabels?"html":"gfx",_7f=g.normalizedLength(g.splitFontString(this.titleFont).size);
|
|
472
|
+
this.chartTitle=_e.createText[_7e](this,this.surface,dim.width/2,this.titlePos=="top"?_7f+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);
|
|
473
|
+
}
|
|
474
|
+
_11.forIn(this.axes,function(_80){
|
|
475
|
+
_80.render(dim,_7a);
|
|
476
|
+
});
|
|
477
|
+
this._makeClean();
|
|
478
|
+
return this;
|
|
479
|
+
},_renderChartBackground:function(dim,_81){
|
|
480
|
+
var t=this.theme,_82;
|
|
481
|
+
var _83=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);
|
|
482
|
+
var _84=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);
|
|
483
|
+
if(_83=="inherit"){
|
|
484
|
+
var _85=this.node;
|
|
485
|
+
_83=new _9(_5.get(_85,"backgroundColor"));
|
|
486
|
+
while(_83.a==0&&_85!=document.documentElement){
|
|
487
|
+
_83=new _9(_5.get(_85,"backgroundColor"));
|
|
488
|
+
_85=_85.parentNode;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
if(_83){
|
|
492
|
+
if(this._nativeClip){
|
|
493
|
+
_83=_b.prototype._shapeFill(_b.prototype._plotFill(_83,dim),{x:0,y:0,width:dim.width+1,height:dim.height+1});
|
|
494
|
+
this.surface.createRect({width:dim.width+1,height:dim.height+1}).setFill(_83);
|
|
495
|
+
}else{
|
|
496
|
+
_83=_b.prototype._plotFill(_83,dim,_81);
|
|
497
|
+
if(_81.l){
|
|
498
|
+
_82={x:0,y:0,width:_81.l,height:dim.height+1};
|
|
499
|
+
this.surface.createRect(_82).setFill(_b.prototype._shapeFill(_83,_82));
|
|
500
|
+
}
|
|
501
|
+
if(_81.r){
|
|
502
|
+
_82={x:dim.width-_81.r,y:0,width:_81.r+1,height:dim.height+2};
|
|
503
|
+
this.surface.createRect(_82).setFill(_b.prototype._shapeFill(_83,_82));
|
|
504
|
+
}
|
|
505
|
+
if(_81.t){
|
|
506
|
+
_82={x:0,y:0,width:dim.width+1,height:_81.t};
|
|
507
|
+
this.surface.createRect(_82).setFill(_b.prototype._shapeFill(_83,_82));
|
|
508
|
+
}
|
|
509
|
+
if(_81.b){
|
|
510
|
+
_82={x:0,y:dim.height-_81.b,width:dim.width+1,height:_81.b+2};
|
|
511
|
+
this.surface.createRect(_82).setFill(_b.prototype._shapeFill(_83,_82));
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
if(_84){
|
|
516
|
+
this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_84);
|
|
517
|
+
}
|
|
518
|
+
},_renderPlotBackground:function(dim,_86,w,h){
|
|
519
|
+
var t=this.theme;
|
|
520
|
+
var _87=t.plotarea&&t.plotarea.fill;
|
|
521
|
+
var _88=t.plotarea&&t.plotarea.stroke;
|
|
522
|
+
var _89={x:_86.l-1,y:_86.t-1,width:w+2,height:h+2};
|
|
523
|
+
if(_87){
|
|
524
|
+
_87=_b.prototype._shapeFill(_b.prototype._plotFill(_87,dim,_86),_89);
|
|
525
|
+
this.surface.createRect(_89).setFill(_87);
|
|
526
|
+
}
|
|
527
|
+
if(_88){
|
|
528
|
+
this.surface.createRect({x:_86.l,y:_86.t,width:w+1,height:h+1}).setStroke(_88);
|
|
529
|
+
}
|
|
530
|
+
},delayedRender:function(){
|
|
531
|
+
if(!this._delayedRenderHandle){
|
|
532
|
+
this._delayedRenderHandle=setTimeout(_2.hitch(this,function(){
|
|
533
|
+
this.render();
|
|
534
|
+
}),this.delayInMs);
|
|
535
|
+
}
|
|
536
|
+
return this;
|
|
537
|
+
},connectToPlot:function(_8a,_8b,_8c){
|
|
538
|
+
return _8a in this.plots?this.stack[this.plots[_8a]].connect(_8b,_8c):null;
|
|
539
|
+
},fireEvent:function(_8d,_8e,_8f){
|
|
540
|
+
if(_8d in this.runs){
|
|
541
|
+
var _90=this.series[this.runs[_8d]].plot;
|
|
542
|
+
if(_90 in this.plots){
|
|
543
|
+
var _91=this.stack[this.plots[_90]];
|
|
544
|
+
if(_91){
|
|
545
|
+
_91.fireEvent(_8d,_8e,_8f);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
return this;
|
|
550
|
+
},_makeClean:function(){
|
|
551
|
+
_3.forEach(this.axes,_15);
|
|
552
|
+
_3.forEach(this.stack,_15);
|
|
553
|
+
_3.forEach(this.series,_15);
|
|
554
|
+
this.dirty=false;
|
|
555
|
+
},_makeDirty:function(){
|
|
556
|
+
_3.forEach(this.axes,_16);
|
|
557
|
+
_3.forEach(this.stack,_16);
|
|
558
|
+
_3.forEach(this.series,_16);
|
|
559
|
+
this.dirty=true;
|
|
560
|
+
},_invalidateDependentPlots:function(_92,_93){
|
|
561
|
+
if(_92 in this.plots){
|
|
562
|
+
var _94=this.stack[this.plots[_92]],_95,_96=_93?"vAxis":"hAxis";
|
|
563
|
+
if(_94[_96]){
|
|
564
|
+
_95=this.axes[_94[_96]];
|
|
565
|
+
if(_95&&_95.dependOnData()){
|
|
566
|
+
_95.dirty=true;
|
|
567
|
+
_3.forEach(this.stack,function(p){
|
|
568
|
+
if(p[_96]&&p[_96]==_94[_96]){
|
|
569
|
+
p.dirty=true;
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
}else{
|
|
574
|
+
_94.dirty=true;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
},setDir:function(dir){
|
|
578
|
+
return this;
|
|
579
|
+
},_resetLeftBottom:function(_97){
|
|
580
|
+
},formatTruncatedLabel:function(_98,_99,_9a){
|
|
581
|
+
}});
|
|
582
|
+
function _9b(_9c){
|
|
583
|
+
return {min:_9c.hmin,max:_9c.hmax};
|
|
584
|
+
};
|
|
585
|
+
function _9d(_9e){
|
|
586
|
+
return {min:_9e.vmin,max:_9e.vmax};
|
|
587
|
+
};
|
|
588
|
+
function _9f(_a0,h){
|
|
589
|
+
_a0.hmin=h.min;
|
|
590
|
+
_a0.hmax=h.max;
|
|
591
|
+
};
|
|
592
|
+
function _a1(_a2,v){
|
|
593
|
+
_a2.vmin=v.min;
|
|
594
|
+
_a2.vmax=v.max;
|
|
595
|
+
};
|
|
596
|
+
function _a3(_a4,_a5){
|
|
597
|
+
if(_a4&&_a5){
|
|
598
|
+
_a4.min=Math.min(_a4.min,_a5.min);
|
|
599
|
+
_a4.max=Math.max(_a4.max,_a5.max);
|
|
600
|
+
}
|
|
601
|
+
return _a4||_a5;
|
|
602
|
+
};
|
|
603
|
+
function _71(_a6,_a7){
|
|
604
|
+
var _a8={},_a9={};
|
|
605
|
+
_3.forEach(_a6,function(_aa){
|
|
606
|
+
var _ab=_a8[_aa.name]=_aa.getSeriesStats();
|
|
607
|
+
if(_aa.hAxis){
|
|
608
|
+
_a9[_aa.hAxis]=_a3(_a9[_aa.hAxis],_9b(_ab));
|
|
609
|
+
}
|
|
610
|
+
if(_aa.vAxis){
|
|
611
|
+
_a9[_aa.vAxis]=_a3(_a9[_aa.vAxis],_9d(_ab));
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
_3.forEach(_a6,function(_ac){
|
|
615
|
+
var _ad=_a8[_ac.name];
|
|
616
|
+
if(_ac.hAxis){
|
|
617
|
+
_9f(_ad,_a9[_ac.hAxis]);
|
|
618
|
+
}
|
|
619
|
+
if(_ac.vAxis){
|
|
620
|
+
_a1(_ad,_a9[_ac.vAxis]);
|
|
621
|
+
}
|
|
622
|
+
_ac.initializeScalers(_a7,_ad);
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
return _a("dojo-bidi")?_4("dojox.charting.Chart",[_18,_10]):_18;
|
|
626
|
+
});
|