@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.
- package/CHANGELOG.md +20 -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 +211 -69
- package/src/package.ts +10 -71
- package/src/tests/findMonomers-tests.ts +2 -1
- package/src/tests/get-monomer-tests.ts +1 -49
- package/src/tests/helm-input-tests.ts +31 -20
- 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,557 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/axis2d/Default",["dojo/_base/lang","dojo/_base/array","dojo/sniff","dojo/_base/declare","dojo/_base/connect","dojo/dom-geometry","./Invisible","../scaler/linear","./common","dojox/gfx","dojox/lang/utils","dojox/lang/functional","dojo/has!dojo-bidi?../bidi/axis2d/Default"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,g,du,df,_a){
|
|
3
|
+
var _b=45;
|
|
4
|
+
var _c=_4(_3("dojo-bidi")?"dojox.charting.axis2d.NonBidiDefault":"dojox.charting.axis2d.Default",_7,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0,htmlLabels:true,enableCache:false,dropLabels:true,labelSizeChange:false,position:"leftOrBottom"},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null,stroke:{},majorTick:{},minorTick:{},microTick:{},tick:{},font:"",fontColor:"",title:"",titleGap:0,titleFont:"",titleFontColor:"",titleOrientation:""},constructor:function(_d,_e){
|
|
5
|
+
this.opt=_1.clone(this.defaultParams);
|
|
6
|
+
du.updateWithObject(this.opt,_e);
|
|
7
|
+
du.updateWithPattern(this.opt,_e,this.optionalParams);
|
|
8
|
+
if(this.opt.enableCache){
|
|
9
|
+
this._textFreePool=[];
|
|
10
|
+
this._lineFreePool=[];
|
|
11
|
+
this._textUsePool=[];
|
|
12
|
+
this._lineUsePool=[];
|
|
13
|
+
}
|
|
14
|
+
this._invalidMaxLabelSize=true;
|
|
15
|
+
if(!(_e&&("position" in _e))){
|
|
16
|
+
this.opt.position=this.opt.leftBottom?"leftOrBottom":"rightOrTop";
|
|
17
|
+
}
|
|
18
|
+
this.renderingOptions={"shape-rendering":"crispEdges"};
|
|
19
|
+
},setWindow:function(_f,_10){
|
|
20
|
+
if(_f!=this.scale){
|
|
21
|
+
this._invalidMaxLabelSize=true;
|
|
22
|
+
}
|
|
23
|
+
return this.inherited(arguments);
|
|
24
|
+
},_groupLabelWidth:function(_11,_12,_13){
|
|
25
|
+
if(!_11.length){
|
|
26
|
+
return 0;
|
|
27
|
+
}
|
|
28
|
+
if(_11.length>50){
|
|
29
|
+
_11.length=50;
|
|
30
|
+
}
|
|
31
|
+
if(_1.isObject(_11[0])){
|
|
32
|
+
_11=df.map(_11,function(_14){
|
|
33
|
+
return _14.text;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if(_13){
|
|
37
|
+
_11=df.map(_11,function(_15){
|
|
38
|
+
return _1.trim(_15).length==0?"":_15.substring(0,_13)+this.trailingSymbol;
|
|
39
|
+
},this);
|
|
40
|
+
}
|
|
41
|
+
var s=_11.join("<br>");
|
|
42
|
+
return g._base._getTextBox(s,{font:_12}).w||0;
|
|
43
|
+
},_getMaxLabelSize:function(min,max,_16,_17,_18,_19){
|
|
44
|
+
if(this._maxLabelSize==null&&arguments.length==6){
|
|
45
|
+
var o=this.opt;
|
|
46
|
+
this.scaler.minMinorStep=this._prevMinMinorStep=0;
|
|
47
|
+
var ob=_1.clone(o);
|
|
48
|
+
delete ob.to;
|
|
49
|
+
delete ob.from;
|
|
50
|
+
var sb=_8.buildScaler(min,max,_16,ob,o.to-o.from);
|
|
51
|
+
sb.minMinorStep=0;
|
|
52
|
+
this._majorStart=sb.major.start;
|
|
53
|
+
var tb=_8.buildTicks(sb,o);
|
|
54
|
+
if(_19&&tb){
|
|
55
|
+
var _1a=0,_1b=0;
|
|
56
|
+
var _1c=function(_1d){
|
|
57
|
+
if(_1d.label){
|
|
58
|
+
this.push(_1d.label);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var _1e=[];
|
|
62
|
+
if(this.opt.majorLabels){
|
|
63
|
+
_2.forEach(tb.major,_1c,_1e);
|
|
64
|
+
_1a=this._groupLabelWidth(_1e,_18,ob.maxLabelCharCount);
|
|
65
|
+
if(ob.maxLabelSize){
|
|
66
|
+
_1a=Math.min(ob.maxLabelSize,_1a);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
_1e=[];
|
|
70
|
+
if(this.opt.dropLabels&&this.opt.minorLabels){
|
|
71
|
+
_2.forEach(tb.minor,_1c,_1e);
|
|
72
|
+
_1b=this._groupLabelWidth(_1e,_18,ob.maxLabelCharCount);
|
|
73
|
+
if(ob.maxLabelSize){
|
|
74
|
+
_1b=Math.min(ob.maxLabelSize,_1b);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
this._maxLabelSize={majLabelW:_1a,minLabelW:_1b,majLabelH:_19,minLabelH:_19};
|
|
78
|
+
}else{
|
|
79
|
+
this._maxLabelSize=null;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return this._maxLabelSize;
|
|
83
|
+
},calculate:function(min,max,_1f){
|
|
84
|
+
this.inherited(arguments);
|
|
85
|
+
this.scaler.minMinorStep=this._prevMinMinorStep;
|
|
86
|
+
if((this._invalidMaxLabelSize||_1f!=this._oldSpan)&&(min!=Infinity&&max!=-Infinity)){
|
|
87
|
+
this._invalidMaxLabelSize=false;
|
|
88
|
+
if(this.opt.labelSizeChange){
|
|
89
|
+
this._maxLabelSize=null;
|
|
90
|
+
}
|
|
91
|
+
this._oldSpan=_1f;
|
|
92
|
+
var o=this.opt;
|
|
93
|
+
var ta=this.chart.theme.axis,_20=o.rotation%360,_21=this.chart.theme.axis.tick.labelGap,_22=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_23=_22?g.normalizedLength(g.splitFontString(_22).size):0,_24=this._getMaxLabelSize(min,max,_1f,_20,_22,_23);
|
|
94
|
+
if(typeof _21!="number"){
|
|
95
|
+
_21=4;
|
|
96
|
+
}
|
|
97
|
+
if(_24&&o.dropLabels){
|
|
98
|
+
var _25=Math.abs(Math.cos(_20*Math.PI/180)),_26=Math.abs(Math.sin(_20*Math.PI/180));
|
|
99
|
+
var _27,_28;
|
|
100
|
+
if(_20<0){
|
|
101
|
+
_20+=360;
|
|
102
|
+
}
|
|
103
|
+
switch(_20){
|
|
104
|
+
case 0:
|
|
105
|
+
case 180:
|
|
106
|
+
if(this.vertical){
|
|
107
|
+
_27=_28=_23;
|
|
108
|
+
}else{
|
|
109
|
+
_27=_24.majLabelW;
|
|
110
|
+
_28=_24.minLabelW;
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
case 90:
|
|
114
|
+
case 270:
|
|
115
|
+
if(this.vertical){
|
|
116
|
+
_27=_24.majLabelW;
|
|
117
|
+
_28=_24.minLabelW;
|
|
118
|
+
}else{
|
|
119
|
+
_27=_28=_23;
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
122
|
+
default:
|
|
123
|
+
_27=this.vertical?Math.min(_24.majLabelW,_23/_25):Math.min(_24.majLabelW,_23/_26);
|
|
124
|
+
var _29=Math.sqrt(_24.minLabelW*_24.minLabelW+_23*_23),_2a=this.vertical?_23*_25+_24.minLabelW*_26:_24.minLabelW*_25+_23*_26;
|
|
125
|
+
_28=Math.min(_29,_2a);
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
this.scaler.minMinorStep=this._prevMinMinorStep=Math.max(_27,_28)+_21;
|
|
129
|
+
var _2b=this.scaler.minMinorStep<=this.scaler.minor.tick*this.scaler.bounds.scale;
|
|
130
|
+
if(!_2b){
|
|
131
|
+
this._skipInterval=Math.floor((_27+_21)/(this.scaler.major.tick*this.scaler.bounds.scale));
|
|
132
|
+
}else{
|
|
133
|
+
this._skipInterval=0;
|
|
134
|
+
}
|
|
135
|
+
}else{
|
|
136
|
+
this._skipInterval=0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
this.ticks=_8.buildTicks(this.scaler,this.opt);
|
|
140
|
+
return this;
|
|
141
|
+
},getOffsets:function(){
|
|
142
|
+
var s=this.scaler,_2c={l:0,r:0,t:0,b:0};
|
|
143
|
+
if(!s){
|
|
144
|
+
return _2c;
|
|
145
|
+
}
|
|
146
|
+
var o=this.opt,ta=this.chart.theme.axis,_2d=this.chart.theme.axis.tick.labelGap,_2e=o.titleFont||(ta.title&&ta.title.font),_2f=(o.titleGap==0)?0:o.titleGap||(ta.title&&ta.title.gap),_30=this.chart.theme.getTick("major",o),_31=this.chart.theme.getTick("minor",o),_32=_2e?g.normalizedLength(g.splitFontString(_2e).size):0,_33=o.rotation%360,_34=o.position,_35=_34!=="rightOrTop",_36=Math.abs(Math.cos(_33*Math.PI/180)),_37=Math.abs(Math.sin(_33*Math.PI/180));
|
|
147
|
+
this.trailingSymbol=(o.trailingSymbol===undefined||o.trailingSymbol===null)?this.trailingSymbol:o.trailingSymbol;
|
|
148
|
+
if(typeof _2d!="number"){
|
|
149
|
+
_2d=4;
|
|
150
|
+
}
|
|
151
|
+
if(_33<0){
|
|
152
|
+
_33+=360;
|
|
153
|
+
}
|
|
154
|
+
var _38=this._getMaxLabelSize();
|
|
155
|
+
if(_38){
|
|
156
|
+
var _39;
|
|
157
|
+
var _3a=Math.ceil(Math.max(_38.majLabelW,_38.minLabelW))+1,_3b=Math.ceil(Math.max(_38.majLabelH,_38.minLabelH))+1;
|
|
158
|
+
if(this.vertical){
|
|
159
|
+
_39=_35?"l":"r";
|
|
160
|
+
switch(_33){
|
|
161
|
+
case 0:
|
|
162
|
+
case 180:
|
|
163
|
+
_2c[_39]=_34==="center"?0:_3a;
|
|
164
|
+
_2c.t=_2c.b=_3b/2;
|
|
165
|
+
break;
|
|
166
|
+
case 90:
|
|
167
|
+
case 270:
|
|
168
|
+
_2c[_39]=_3b;
|
|
169
|
+
_2c.t=_2c.b=_3a/2;
|
|
170
|
+
break;
|
|
171
|
+
default:
|
|
172
|
+
if(_33<=_b||(180<_33&&_33<=(180+_b))){
|
|
173
|
+
_2c[_39]=_3b*_37/2+_3a*_36;
|
|
174
|
+
_2c[_35?"t":"b"]=_3b*_36/2+_3a*_37;
|
|
175
|
+
_2c[_35?"b":"t"]=_3b*_36/2;
|
|
176
|
+
}else{
|
|
177
|
+
if(_33>(360-_b)||(180>_33&&_33>(180-_b))){
|
|
178
|
+
_2c[_39]=_3b*_37/2+_3a*_36;
|
|
179
|
+
_2c[_35?"b":"t"]=_3b*_36/2+_3a*_37;
|
|
180
|
+
_2c[_35?"t":"b"]=_3b*_36/2;
|
|
181
|
+
}else{
|
|
182
|
+
if(_33<90||(180<_33&&_33<270)){
|
|
183
|
+
_2c[_39]=_3b*_37+_3a*_36;
|
|
184
|
+
_2c[_35?"t":"b"]=_3b*_36+_3a*_37;
|
|
185
|
+
}else{
|
|
186
|
+
_2c[_39]=_3b*_37+_3a*_36;
|
|
187
|
+
_2c[_35?"b":"t"]=_3b*_36+_3a*_37;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
if(_34==="center"){
|
|
194
|
+
_2c[_39]=0;
|
|
195
|
+
}else{
|
|
196
|
+
_2c[_39]+=_2d+Math.max(_30.length>0?_30.length:0,_31.length>0?_31.length:0)+(o.title?(_32+_2f):0);
|
|
197
|
+
}
|
|
198
|
+
}else{
|
|
199
|
+
_39=_35?"b":"t";
|
|
200
|
+
switch(_33){
|
|
201
|
+
case 0:
|
|
202
|
+
case 180:
|
|
203
|
+
_2c[_39]=_34==="center"?0:_3b;
|
|
204
|
+
_2c.l=_2c.r=_3a/2;
|
|
205
|
+
break;
|
|
206
|
+
case 90:
|
|
207
|
+
case 270:
|
|
208
|
+
_2c[_39]=_3a;
|
|
209
|
+
_2c.l=_2c.r=_3b/2;
|
|
210
|
+
break;
|
|
211
|
+
default:
|
|
212
|
+
if((90-_b)<=_33&&_33<=90||(270-_b)<=_33&&_33<=270){
|
|
213
|
+
_2c[_39]=_3b*_36/2+_3a*_37;
|
|
214
|
+
_2c[_35?"r":"l"]=_3b*_37/2+_3a*_36;
|
|
215
|
+
_2c[_35?"l":"r"]=_3b*_37/2;
|
|
216
|
+
}else{
|
|
217
|
+
if(90<=_33&&_33<=(90+_b)||270<=_33&&_33<=(270+_b)){
|
|
218
|
+
_2c[_39]=_3b*_36/2+_3a*_37;
|
|
219
|
+
_2c[_35?"l":"r"]=_3b*_37/2+_3a*_36;
|
|
220
|
+
_2c[_35?"r":"l"]=_3b*_37/2;
|
|
221
|
+
}else{
|
|
222
|
+
if(_33<_b||(180<_33&&_33<(180+_b))){
|
|
223
|
+
_2c[_39]=_3b*_36+_3a*_37;
|
|
224
|
+
_2c[_35?"r":"l"]=_3b*_37+_3a*_36;
|
|
225
|
+
}else{
|
|
226
|
+
_2c[_39]=_3b*_36+_3a*_37;
|
|
227
|
+
_2c[_35?"l":"r"]=_3b*_37+_3a*_36;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
if(_34==="center"){
|
|
234
|
+
_2c[_39]=0;
|
|
235
|
+
}else{
|
|
236
|
+
_2c[_39]+=_2d+Math.max(_30.length>0?_30.length:0,_31.length>0?_31.length:0)+(o.title?(_32+_2f):0);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return _2c;
|
|
241
|
+
},cleanGroup:function(_3c){
|
|
242
|
+
if(this.opt.enableCache&&this.group){
|
|
243
|
+
this._lineFreePool=this._lineFreePool.concat(this._lineUsePool);
|
|
244
|
+
this._lineUsePool=[];
|
|
245
|
+
this._textFreePool=this._textFreePool.concat(this._textUsePool);
|
|
246
|
+
this._textUsePool=[];
|
|
247
|
+
}
|
|
248
|
+
this.inherited(arguments);
|
|
249
|
+
},createText:function(_3d,_3e,x,y,_3f,_40,_41,_42,_43){
|
|
250
|
+
if(!this.opt.enableCache||_3d=="html"){
|
|
251
|
+
return _9.createText[_3d](this.chart,_3e,x,y,_3f,_40,_41,_42,_43);
|
|
252
|
+
}
|
|
253
|
+
var _44;
|
|
254
|
+
if(this._textFreePool.length>0){
|
|
255
|
+
_44=this._textFreePool.pop();
|
|
256
|
+
_44.setShape({x:x,y:y,text:_40,align:_3f});
|
|
257
|
+
_3e.add(_44);
|
|
258
|
+
}else{
|
|
259
|
+
_44=_9.createText[_3d](this.chart,_3e,x,y,_3f,_40,_41,_42);
|
|
260
|
+
}
|
|
261
|
+
this._textUsePool.push(_44);
|
|
262
|
+
return _44;
|
|
263
|
+
},createLine:function(_45,_46){
|
|
264
|
+
var _47;
|
|
265
|
+
if(this.opt.enableCache&&this._lineFreePool.length>0){
|
|
266
|
+
_47=this._lineFreePool.pop();
|
|
267
|
+
_47.setShape(_46);
|
|
268
|
+
_45.add(_47);
|
|
269
|
+
}else{
|
|
270
|
+
_47=_45.createLine(_46);
|
|
271
|
+
}
|
|
272
|
+
if(this.opt.enableCache){
|
|
273
|
+
this._lineUsePool.push(_47);
|
|
274
|
+
}
|
|
275
|
+
return _47;
|
|
276
|
+
},render:function(dim,_48){
|
|
277
|
+
var _49=this._isRtl();
|
|
278
|
+
if(!this.dirty||!this.scaler){
|
|
279
|
+
return this;
|
|
280
|
+
}
|
|
281
|
+
var o=this.opt,ta=this.chart.theme.axis,_4a=o.position,_4b=_4a!=="rightOrTop",_4c=o.rotation%360,_4d,_4e,_4f,_50=0,_51,_52,_53,_54,_55,_56,_57=this.chart.theme.axis.tick.labelGap,_58=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_59=o.titleFont||(ta.title&&ta.title.font),_5a=o.fontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"black",_5b=o.titleFontColor||(ta.title&&ta.title.fontColor)||"black",_5c=(o.titleGap==0)?0:o.titleGap||(ta.title&&ta.title.gap)||15,_5d=o.titleOrientation||(ta.title&&ta.title.orientation)||"axis",_5e=this.chart.theme.getTick("major",o),_5f=this.chart.theme.getTick("minor",o),_60=this.chart.theme.getTick("micro",o),_61="stroke" in o?o.stroke:ta.stroke,_62=_58?g.normalizedLength(g.splitFontString(_58).size):0,_63=Math.abs(Math.cos(_4c*Math.PI/180)),_64=Math.abs(Math.sin(_4c*Math.PI/180)),_65=_59?g.normalizedLength(g.splitFontString(_59).size):0;
|
|
282
|
+
if(typeof _57!="number"){
|
|
283
|
+
_57=4;
|
|
284
|
+
}
|
|
285
|
+
if(_4c<0){
|
|
286
|
+
_4c+=360;
|
|
287
|
+
}
|
|
288
|
+
var _66=this._getMaxLabelSize();
|
|
289
|
+
_66=_66&&_66.majLabelW;
|
|
290
|
+
if(this.vertical){
|
|
291
|
+
_4d={y:dim.height-_48.b};
|
|
292
|
+
_4e={y:_48.t};
|
|
293
|
+
_4f={y:(dim.height-_48.b+_48.t)/2};
|
|
294
|
+
_51=_62*_64+(_66||0)*_63+_57+Math.max(_5e.length>0?_5e.length:0,_5f.length>0?_5f.length:0)+_65+_5c;
|
|
295
|
+
_52={x:0,y:-1};
|
|
296
|
+
_55={x:0,y:0};
|
|
297
|
+
_53={x:1,y:0};
|
|
298
|
+
_54={x:_57,y:0};
|
|
299
|
+
switch(_4c){
|
|
300
|
+
case 0:
|
|
301
|
+
_56="end";
|
|
302
|
+
_55.y=_62*0.4;
|
|
303
|
+
break;
|
|
304
|
+
case 90:
|
|
305
|
+
_56="middle";
|
|
306
|
+
_55.x=-_62;
|
|
307
|
+
break;
|
|
308
|
+
case 180:
|
|
309
|
+
_56="start";
|
|
310
|
+
_55.y=-_62*0.4;
|
|
311
|
+
break;
|
|
312
|
+
case 270:
|
|
313
|
+
_56="middle";
|
|
314
|
+
break;
|
|
315
|
+
default:
|
|
316
|
+
if(_4c<_b){
|
|
317
|
+
_56="end";
|
|
318
|
+
_55.y=_62*0.4;
|
|
319
|
+
}else{
|
|
320
|
+
if(_4c<90){
|
|
321
|
+
_56="end";
|
|
322
|
+
_55.y=_62*0.4;
|
|
323
|
+
}else{
|
|
324
|
+
if(_4c<(180-_b)){
|
|
325
|
+
_56="start";
|
|
326
|
+
}else{
|
|
327
|
+
if(_4c<(180+_b)){
|
|
328
|
+
_56="start";
|
|
329
|
+
_55.y=-_62*0.4;
|
|
330
|
+
}else{
|
|
331
|
+
if(_4c<270){
|
|
332
|
+
_56="start";
|
|
333
|
+
_55.x=_4b?0:_62*0.4;
|
|
334
|
+
}else{
|
|
335
|
+
if(_4c<(360-_b)){
|
|
336
|
+
_56="end";
|
|
337
|
+
_55.x=_4b?0:_62*0.4;
|
|
338
|
+
}else{
|
|
339
|
+
_56="end";
|
|
340
|
+
_55.y=_62*0.4;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if(_4b){
|
|
349
|
+
_4d.x=_4e.x=_4a==="center"?dim.width/2:_48.l;
|
|
350
|
+
_50=(_5d&&_5d=="away")?90:270;
|
|
351
|
+
_4f.x=_48.l-_51+(_50==270?_65:0);
|
|
352
|
+
_53.x=-1;
|
|
353
|
+
_54.x=-_54.x;
|
|
354
|
+
}else{
|
|
355
|
+
_4d.x=_4e.x=dim.width-_48.r;
|
|
356
|
+
_50=(_5d&&_5d=="axis")?90:270;
|
|
357
|
+
_4f.x=dim.width-_48.r+_51-(_50==270?0:_65);
|
|
358
|
+
switch(_56){
|
|
359
|
+
case "start":
|
|
360
|
+
_56="end";
|
|
361
|
+
break;
|
|
362
|
+
case "end":
|
|
363
|
+
_56="start";
|
|
364
|
+
break;
|
|
365
|
+
case "middle":
|
|
366
|
+
_55.x+=_62;
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}else{
|
|
371
|
+
_4d={x:_48.l};
|
|
372
|
+
_4e={x:dim.width-_48.r};
|
|
373
|
+
_4f={x:(dim.width-_48.r+_48.l)/2};
|
|
374
|
+
_51=_62*_63+(_66||0)*_64+_57+Math.max(_5e.length>0?_5e.length:0,_5f.length>0?_5f.length:0)+_65+_5c;
|
|
375
|
+
_52={x:_49?-1:1,y:0};
|
|
376
|
+
_55={x:0,y:0};
|
|
377
|
+
_53={x:0,y:1};
|
|
378
|
+
_54={x:0,y:_57};
|
|
379
|
+
switch(_4c){
|
|
380
|
+
case 0:
|
|
381
|
+
_56="middle";
|
|
382
|
+
_55.y=_62;
|
|
383
|
+
break;
|
|
384
|
+
case 90:
|
|
385
|
+
_56="start";
|
|
386
|
+
_55.x=-_62*0.4;
|
|
387
|
+
break;
|
|
388
|
+
case 180:
|
|
389
|
+
_56="middle";
|
|
390
|
+
break;
|
|
391
|
+
case 270:
|
|
392
|
+
_56="end";
|
|
393
|
+
_55.x=_62*0.4;
|
|
394
|
+
break;
|
|
395
|
+
default:
|
|
396
|
+
if(_4c<(90-_b)){
|
|
397
|
+
_56="start";
|
|
398
|
+
_55.y=_4b?_62:0;
|
|
399
|
+
}else{
|
|
400
|
+
if(_4c<(90+_b)){
|
|
401
|
+
_56="start";
|
|
402
|
+
_55.x=-_62*0.4;
|
|
403
|
+
}else{
|
|
404
|
+
if(_4c<180){
|
|
405
|
+
_56="start";
|
|
406
|
+
_55.y=_4b?0:-_62;
|
|
407
|
+
}else{
|
|
408
|
+
if(_4c<(270-_b)){
|
|
409
|
+
_56="end";
|
|
410
|
+
_55.y=_4b?0:-_62;
|
|
411
|
+
}else{
|
|
412
|
+
if(_4c<(270+_b)){
|
|
413
|
+
_56="end";
|
|
414
|
+
_55.y=_4b?_62*0.4:0;
|
|
415
|
+
}else{
|
|
416
|
+
_56="end";
|
|
417
|
+
_55.y=_4b?_62:0;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
if(_4b){
|
|
425
|
+
_4d.y=_4e.y=_4a==="center"?dim.height/2:dim.height-_48.b;
|
|
426
|
+
_50=(_5d&&_5d=="axis")?180:0;
|
|
427
|
+
_4f.y=dim.height-_48.b+_51-(_50?_65:0);
|
|
428
|
+
}else{
|
|
429
|
+
_4d.y=_4e.y=_48.t;
|
|
430
|
+
_50=(_5d&&_5d=="away")?180:0;
|
|
431
|
+
_4f.y=_48.t-_51+(_50?0:_65);
|
|
432
|
+
_53.y=-1;
|
|
433
|
+
_54.y=-_54.y;
|
|
434
|
+
switch(_56){
|
|
435
|
+
case "start":
|
|
436
|
+
_56="end";
|
|
437
|
+
break;
|
|
438
|
+
case "end":
|
|
439
|
+
_56="start";
|
|
440
|
+
break;
|
|
441
|
+
case "middle":
|
|
442
|
+
_55.y-=_62;
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
this.cleanGroup();
|
|
448
|
+
var s=this.group,c=this.scaler,t=this.ticks,f=_8.getTransformerFromModel(this.scaler),_67=(!o.title||!_50)&&!_4c&&this.opt.htmlLabels&&!_3("ie")&&!_3("opera")?"html":"gfx",dx=_53.x*_5e.length,dy=_53.y*_5e.length,_68=this._skipInterval;
|
|
449
|
+
s.createLine({x1:_4d.x,y1:_4d.y,x2:_4e.x,y2:_4e.y}).setStroke(_61);
|
|
450
|
+
if(o.title){
|
|
451
|
+
var _69=_9.createText[_67](this.chart,s,_4f.x,_4f.y,"middle",o.title,_59,_5b);
|
|
452
|
+
if(_67=="html"){
|
|
453
|
+
this.htmlElements.push(_69);
|
|
454
|
+
}else{
|
|
455
|
+
_69.setTransform(g.matrix.rotategAt(_50,_4f.x,_4f.y));
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if(t==null){
|
|
459
|
+
this.dirty=false;
|
|
460
|
+
return this;
|
|
461
|
+
}
|
|
462
|
+
var rel=(t.major.length>0)?(t.major[0].value-this._majorStart)/c.major.tick:0;
|
|
463
|
+
var _6a=this.opt.majorLabels;
|
|
464
|
+
_2.forEach(t.major,function(_6b,i){
|
|
465
|
+
var _6c=f(_6b.value),_6d,x=(_49?_4e.x:_4d.x)+_52.x*_6c,y=_4d.y+_52.y*_6c;
|
|
466
|
+
i+=rel;
|
|
467
|
+
this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_5e);
|
|
468
|
+
if(_6b.label&&(!_68||(i-(1+_68))%(1+_68)==0)){
|
|
469
|
+
var _6e=o.maxLabelCharCount?this.getTextWithLimitCharCount(_6b.label,_58,o.maxLabelCharCount):{text:_6b.label,truncated:false};
|
|
470
|
+
_6e=o.maxLabelSize?this.getTextWithLimitLength(_6e.text,_58,o.maxLabelSize,_6e.truncated):_6e;
|
|
471
|
+
_6d=this.createText(_67,s,x+(_5e.length>0?dx:0)+_54.x+(_4c?0:_55.x),y+(_5e.length>0?dy:0)+_54.y+(_4c?0:_55.y),_56,_6e.text,_58,_5a);
|
|
472
|
+
if(_6e.truncated){
|
|
473
|
+
this.chart.formatTruncatedLabel(_6d,_6b.label,_67);
|
|
474
|
+
}
|
|
475
|
+
_6e.truncated&&this.labelTooltip(_6d,this.chart,_6b.label,_6e.text,_58,_67);
|
|
476
|
+
if(_67=="html"){
|
|
477
|
+
this.htmlElements.push(_6d);
|
|
478
|
+
}else{
|
|
479
|
+
if(_4c){
|
|
480
|
+
_6d.setTransform([{dx:_55.x,dy:_55.y},g.matrix.rotategAt(_4c,x+(_5e.length>0?dx:0)+_54.x,y+(_5e.length>0?dy:0)+_54.y)]);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},this);
|
|
485
|
+
dx=_53.x*_5f.length;
|
|
486
|
+
dy=_53.y*_5f.length;
|
|
487
|
+
_6a=this.opt.minorLabels&&c.minMinorStep<=c.minor.tick*c.bounds.scale;
|
|
488
|
+
_2.forEach(t.minor,function(_6f){
|
|
489
|
+
var _70=f(_6f.value),_71,x=(_49?_4e.x:_4d.x)+_52.x*_70,y=_4d.y+_52.y*_70;
|
|
490
|
+
this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_5f);
|
|
491
|
+
if(_6a&&_6f.label){
|
|
492
|
+
var _72=o.maxLabelCharCount?this.getTextWithLimitCharCount(_6f.label,_58,o.maxLabelCharCount):{text:_6f.label,truncated:false};
|
|
493
|
+
_72=o.maxLabelSize?this.getTextWithLimitLength(_72.text,_58,o.maxLabelSize,_72.truncated):_72;
|
|
494
|
+
_71=this.createText(_67,s,x+(_5f.length>0?dx:0)+_54.x+(_4c?0:_55.x),y+(_5f.length>0?dy:0)+_54.y+(_4c?0:_55.y),_56,_72.text,_58,_5a);
|
|
495
|
+
if(_72.truncated){
|
|
496
|
+
this.chart.formatTruncatedLabel(_71,_6f.label,_67);
|
|
497
|
+
}
|
|
498
|
+
_72.truncated&&this.labelTooltip(_71,this.chart,_6f.label,_72.text,_58,_67);
|
|
499
|
+
if(_67=="html"){
|
|
500
|
+
this.htmlElements.push(_71);
|
|
501
|
+
}else{
|
|
502
|
+
if(_4c){
|
|
503
|
+
_71.setTransform([{dx:_55.x,dy:_55.y},g.matrix.rotategAt(_4c,x+(_5f.length>0?dx:0)+_54.x,y+(_5f.length>0?dy:0)+_54.y)]);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
},this);
|
|
508
|
+
dx=_53.x*_60.length;
|
|
509
|
+
dy=_53.y*_60.length;
|
|
510
|
+
_2.forEach(t.micro,function(_73){
|
|
511
|
+
var _74=f(_73.value),x=_4d.x+_52.x*_74,y=_4d.y+_52.y*_74;
|
|
512
|
+
this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_60);
|
|
513
|
+
},this);
|
|
514
|
+
this.dirty=false;
|
|
515
|
+
return this;
|
|
516
|
+
},labelTooltip:function(_75,_76,_77,_78,_79,_7a){
|
|
517
|
+
var _7b=["dijit/Tooltip"];
|
|
518
|
+
var _7c={type:"rect"},_7d=["above","below"],_7e=g._base._getTextBox(_78,{font:_79}).w||0,_7f=_79?g.normalizedLength(g.splitFontString(_79).size):0;
|
|
519
|
+
if(_7a=="html"){
|
|
520
|
+
_1.mixin(_7c,_6.position(_75.firstChild,true));
|
|
521
|
+
_7c.width=Math.ceil(_7e);
|
|
522
|
+
_7c.height=Math.ceil(_7f);
|
|
523
|
+
this._events.push({shape:dojo,handle:_5.connect(_75.firstChild,"onmouseover",this,function(e){
|
|
524
|
+
require(_7b,function(_80){
|
|
525
|
+
_80.show(_77,_7c,_7d);
|
|
526
|
+
});
|
|
527
|
+
})});
|
|
528
|
+
this._events.push({shape:dojo,handle:_5.connect(_75.firstChild,"onmouseout",this,function(e){
|
|
529
|
+
require(_7b,function(_81){
|
|
530
|
+
_81.hide(_7c);
|
|
531
|
+
});
|
|
532
|
+
})});
|
|
533
|
+
}else{
|
|
534
|
+
var shp=_75.getShape(),lt=_76.getCoords();
|
|
535
|
+
_7c=_1.mixin(_7c,{x:shp.x-_7e/2,y:shp.y});
|
|
536
|
+
_7c.x+=lt.x;
|
|
537
|
+
_7c.y+=lt.y;
|
|
538
|
+
_7c.x=Math.round(_7c.x);
|
|
539
|
+
_7c.y=Math.round(_7c.y);
|
|
540
|
+
_7c.width=Math.ceil(_7e);
|
|
541
|
+
_7c.height=Math.ceil(_7f);
|
|
542
|
+
this._events.push({shape:_75,handle:_75.connect("onmouseenter",this,function(e){
|
|
543
|
+
require(_7b,function(_82){
|
|
544
|
+
_82.show(_77,_7c,_7d);
|
|
545
|
+
});
|
|
546
|
+
})});
|
|
547
|
+
this._events.push({shape:_75,handle:_75.connect("onmouseleave",this,function(e){
|
|
548
|
+
require(_7b,function(_83){
|
|
549
|
+
_83.hide(_7c);
|
|
550
|
+
});
|
|
551
|
+
})});
|
|
552
|
+
}
|
|
553
|
+
},_isRtl:function(){
|
|
554
|
+
return false;
|
|
555
|
+
}});
|
|
556
|
+
return _3("dojo-bidi")?_4("dojox.charting.axis2d.Default",[_c,_a]):_c;
|
|
557
|
+
});
|