@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,141 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2004-2017, The JS Foundation All Rights Reserved.
|
|
3
|
+
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
|
4
|
+
see: http://dojotoolkit.org/license for details
|
|
5
|
+
*/
|
|
6
|
+
//>>built
|
|
7
|
+
define("dojo/window",["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(_1,_2,_3,_4,_5,_6,_7){
|
|
8
|
+
_2.add("rtl-adjust-position-for-verticalScrollBar",function(_8,_9){
|
|
9
|
+
var _a=_3.body(_9),_b=_7.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_a,"last"),_c=_7.create("div",{style:{overflow:"hidden",direction:"ltr"}},_b,"last"),_d=_5.position(_c).x!=0;
|
|
10
|
+
_b.removeChild(_c);
|
|
11
|
+
_a.removeChild(_b);
|
|
12
|
+
return _d;
|
|
13
|
+
});
|
|
14
|
+
_2.add("position-fixed-support",function(_e,_f){
|
|
15
|
+
var _10=_3.body(_f),_11=_7.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_10,"last"),_12=_7.create("span",{style:{position:"fixed",left:"0",top:"0"}},_11,"last"),ret=_5.position(_12).x!=_5.position(_11).x;
|
|
16
|
+
_11.removeChild(_12);
|
|
17
|
+
_10.removeChild(_11);
|
|
18
|
+
return ret;
|
|
19
|
+
});
|
|
20
|
+
var _13={getBox:function(doc){
|
|
21
|
+
doc=doc||_3.doc;
|
|
22
|
+
var _14=(doc.compatMode=="BackCompat")?_3.body(doc):doc.documentElement,_15=_5.docScroll(doc),w,h;
|
|
23
|
+
if(_2("touch")){
|
|
24
|
+
var _16=_13.get(doc);
|
|
25
|
+
w=_16.innerWidth||_14.clientWidth;
|
|
26
|
+
h=_16.innerHeight||_14.clientHeight;
|
|
27
|
+
}else{
|
|
28
|
+
w=_14.clientWidth;
|
|
29
|
+
h=_14.clientHeight;
|
|
30
|
+
}
|
|
31
|
+
return {l:_15.x,t:_15.y,w:w,h:h};
|
|
32
|
+
},get:function(doc){
|
|
33
|
+
if(_2("ie")&&_13!==document.parentWindow){
|
|
34
|
+
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
|
|
35
|
+
var win=doc._parentWindow;
|
|
36
|
+
doc._parentWindow=null;
|
|
37
|
+
return win;
|
|
38
|
+
}
|
|
39
|
+
return doc.parentWindow||doc.defaultView;
|
|
40
|
+
},scrollIntoView:function(_17,pos){
|
|
41
|
+
try{
|
|
42
|
+
_17=_4.byId(_17);
|
|
43
|
+
var doc=_17.ownerDocument||_3.doc,_18=_3.body(doc),_19=doc.documentElement||_18.parentNode,_1a=_2("ie")||_2("trident"),_1b=_2("webkit");
|
|
44
|
+
if(_17==_18||_17==_19){
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if(!(_2("mozilla")||_1a||_1b||_2("opera")||_2("trident")||_2("edge"))&&("scrollIntoView" in _17)){
|
|
48
|
+
_17.scrollIntoView(false);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
var _1c=doc.compatMode=="BackCompat",_1d=Math.min(_18.clientWidth||_19.clientWidth,_19.clientWidth||_18.clientWidth),_1e=Math.min(_18.clientHeight||_19.clientHeight,_19.clientHeight||_18.clientHeight),_1f=(_1b||_1c)?_18:_19,_20=pos||_5.position(_17),el=_17.parentNode,_21=function(el){
|
|
52
|
+
return (_1a<=6||(_1a==7&&_1c))?false:(_2("position-fixed-support")&&(_6.get(el,"position").toLowerCase()=="fixed"));
|
|
53
|
+
},_22=this,_23=function(el,x,y){
|
|
54
|
+
if(el.tagName=="BODY"||el.tagName=="HTML"){
|
|
55
|
+
_22.get(el.ownerDocument).scrollBy(x,y);
|
|
56
|
+
}else{
|
|
57
|
+
x&&(el.scrollLeft+=x);
|
|
58
|
+
y&&(el.scrollTop+=y);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
if(_21(_17)){
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
while(el){
|
|
65
|
+
if(el==_18){
|
|
66
|
+
el=_1f;
|
|
67
|
+
}
|
|
68
|
+
var _24=_5.position(el),_25=_21(el),rtl=_6.getComputedStyle(el).direction.toLowerCase()=="rtl";
|
|
69
|
+
if(el==_1f){
|
|
70
|
+
_24.w=_1d;
|
|
71
|
+
_24.h=_1e;
|
|
72
|
+
if(_1f==_19&&(_1a||_2("trident"))&&rtl){
|
|
73
|
+
_24.x+=_1f.offsetWidth-_24.w;
|
|
74
|
+
}
|
|
75
|
+
_24.x=0;
|
|
76
|
+
_24.y=0;
|
|
77
|
+
}else{
|
|
78
|
+
var pb=_5.getPadBorderExtents(el);
|
|
79
|
+
_24.w-=pb.w;
|
|
80
|
+
_24.h-=pb.h;
|
|
81
|
+
_24.x+=pb.l;
|
|
82
|
+
_24.y+=pb.t;
|
|
83
|
+
var _26=el.clientWidth,_27=_24.w-_26;
|
|
84
|
+
if(_26>0&&_27>0){
|
|
85
|
+
if(rtl&&_2("rtl-adjust-position-for-verticalScrollBar")){
|
|
86
|
+
_24.x+=_27;
|
|
87
|
+
}
|
|
88
|
+
_24.w=_26;
|
|
89
|
+
}
|
|
90
|
+
_26=el.clientHeight;
|
|
91
|
+
_27=_24.h-_26;
|
|
92
|
+
if(_26>0&&_27>0){
|
|
93
|
+
_24.h=_26;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if(_25){
|
|
97
|
+
if(_24.y<0){
|
|
98
|
+
_24.h+=_24.y;
|
|
99
|
+
_24.y=0;
|
|
100
|
+
}
|
|
101
|
+
if(_24.x<0){
|
|
102
|
+
_24.w+=_24.x;
|
|
103
|
+
_24.x=0;
|
|
104
|
+
}
|
|
105
|
+
if(_24.y+_24.h>_1e){
|
|
106
|
+
_24.h=_1e-_24.y;
|
|
107
|
+
}
|
|
108
|
+
if(_24.x+_24.w>_1d){
|
|
109
|
+
_24.w=_1d-_24.x;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
var l=_20.x-_24.x,t=_20.y-_24.y,r=l+_20.w-_24.w,bot=t+_20.h-_24.h;
|
|
113
|
+
var s,old;
|
|
114
|
+
if(r*l>0&&(!!el.scrollLeft||el==_1f||el.scrollWidth>el.offsetHeight)){
|
|
115
|
+
s=Math[l<0?"max":"min"](l,r);
|
|
116
|
+
if(rtl&&((_1a==8&&!_1c)||_2("trident")>=5)){
|
|
117
|
+
s=-s;
|
|
118
|
+
}
|
|
119
|
+
old=el.scrollLeft;
|
|
120
|
+
_23(el,s,0);
|
|
121
|
+
s=el.scrollLeft-old;
|
|
122
|
+
_20.x-=s;
|
|
123
|
+
}
|
|
124
|
+
if(bot*t>0&&(!!el.scrollTop||el==_1f||el.scrollHeight>el.offsetHeight)){
|
|
125
|
+
s=Math.ceil(Math[t<0?"max":"min"](t,bot));
|
|
126
|
+
old=el.scrollTop;
|
|
127
|
+
_23(el,0,s);
|
|
128
|
+
s=el.scrollTop-old;
|
|
129
|
+
_20.y-=s;
|
|
130
|
+
}
|
|
131
|
+
el=(el!=_1f)&&!_25&&el.parentNode;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
catch(error){
|
|
135
|
+
console.error("scrollIntoView: "+error);
|
|
136
|
+
_17.scrollIntoView(false);
|
|
137
|
+
}
|
|
138
|
+
}};
|
|
139
|
+
1&&_1.setObject("dojo.window",_13);
|
|
140
|
+
return _13;
|
|
141
|
+
});
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
define("dojo/window", ["./_base/lang", "./sniff", "./_base/window", "./dom", "./dom-geometry", "./dom-style", "./dom-construct"],
|
|
2
|
+
function(lang, has, baseWindow, dom, geom, style, domConstruct){
|
|
3
|
+
|
|
4
|
+
// feature detection
|
|
5
|
+
/* not needed but included here for future reference
|
|
6
|
+
has.add("rtl-innerVerticalScrollBar-on-left", function(win, doc){
|
|
7
|
+
var body = baseWindow.body(doc),
|
|
8
|
+
scrollable = domConstruct.create('div', {
|
|
9
|
+
style: {overflow:'scroll', overflowX:'hidden', direction:'rtl', visibility:'hidden', position:'absolute', left:'0', width:'64px', height:'64px'}
|
|
10
|
+
}, body, "last"),
|
|
11
|
+
center = domConstruct.create('center', {
|
|
12
|
+
style: {overflow:'hidden', direction:'ltr'}
|
|
13
|
+
}, scrollable, "last"),
|
|
14
|
+
inner = domConstruct.create('div', {
|
|
15
|
+
style: {overflow:'visible', display:'inline' }
|
|
16
|
+
}, center, "last");
|
|
17
|
+
inner.innerHTML=" ";
|
|
18
|
+
var midPoint = Math.max(inner.offsetLeft, geom.position(inner).x);
|
|
19
|
+
var ret = midPoint >= 32;
|
|
20
|
+
center.removeChild(inner);
|
|
21
|
+
scrollable.removeChild(center);
|
|
22
|
+
body.removeChild(scrollable);
|
|
23
|
+
return ret;
|
|
24
|
+
});
|
|
25
|
+
*/
|
|
26
|
+
has.add("rtl-adjust-position-for-verticalScrollBar", function(win, doc){
|
|
27
|
+
var body = baseWindow.body(doc),
|
|
28
|
+
scrollable = domConstruct.create('div', {
|
|
29
|
+
style: {overflow:'scroll', overflowX:'visible', direction:'rtl', visibility:'hidden', position:'absolute', left:'0', top:'0', width:'64px', height:'64px'}
|
|
30
|
+
}, body, "last"),
|
|
31
|
+
div = domConstruct.create('div', {
|
|
32
|
+
style: {overflow:'hidden', direction:'ltr'}
|
|
33
|
+
}, scrollable, "last"),
|
|
34
|
+
ret = geom.position(div).x != 0;
|
|
35
|
+
scrollable.removeChild(div);
|
|
36
|
+
body.removeChild(scrollable);
|
|
37
|
+
return ret;
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
has.add("position-fixed-support", function(win, doc){
|
|
41
|
+
// IE6, IE7+quirks, and some older mobile browsers don't support position:fixed
|
|
42
|
+
var body = baseWindow.body(doc),
|
|
43
|
+
outer = domConstruct.create('span', {
|
|
44
|
+
style: {visibility:'hidden', position:'fixed', left:'1px', top:'1px'}
|
|
45
|
+
}, body, "last"),
|
|
46
|
+
inner = domConstruct.create('span', {
|
|
47
|
+
style: {position:'fixed', left:'0', top:'0'}
|
|
48
|
+
}, outer, "last"),
|
|
49
|
+
ret = geom.position(inner).x != geom.position(outer).x;
|
|
50
|
+
outer.removeChild(inner);
|
|
51
|
+
body.removeChild(outer);
|
|
52
|
+
return ret;
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// module:
|
|
56
|
+
// dojo/window
|
|
57
|
+
|
|
58
|
+
var window = {
|
|
59
|
+
// summary:
|
|
60
|
+
// TODOC
|
|
61
|
+
|
|
62
|
+
getBox: function(/*Document?*/ doc){
|
|
63
|
+
// summary:
|
|
64
|
+
// Returns the dimensions and scroll position of the viewable area of a browser window
|
|
65
|
+
|
|
66
|
+
doc = doc || baseWindow.doc;
|
|
67
|
+
|
|
68
|
+
var
|
|
69
|
+
scrollRoot = (doc.compatMode == 'BackCompat') ? baseWindow.body(doc) : doc.documentElement,
|
|
70
|
+
// get scroll position
|
|
71
|
+
scroll = geom.docScroll(doc), // scrollRoot.scrollTop/Left should work
|
|
72
|
+
w, h;
|
|
73
|
+
|
|
74
|
+
if(has("touch")){ // if(scrollbars not supported)
|
|
75
|
+
var uiWindow = window.get(doc); // use UI window, not dojo.global window
|
|
76
|
+
// on mobile, scrollRoot.clientHeight <= uiWindow.innerHeight <= scrollRoot.offsetHeight, return uiWindow.innerHeight
|
|
77
|
+
w = uiWindow.innerWidth || scrollRoot.clientWidth; // || scrollRoot.clientXXX probably never evaluated
|
|
78
|
+
h = uiWindow.innerHeight || scrollRoot.clientHeight;
|
|
79
|
+
}else{
|
|
80
|
+
// on desktops, scrollRoot.clientHeight <= scrollRoot.offsetHeight <= uiWindow.innerHeight, return scrollRoot.clientHeight
|
|
81
|
+
// uiWindow.innerWidth/Height includes the scrollbar and cannot be used
|
|
82
|
+
w = scrollRoot.clientWidth;
|
|
83
|
+
h = scrollRoot.clientHeight;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
l: scroll.x,
|
|
87
|
+
t: scroll.y,
|
|
88
|
+
w: w,
|
|
89
|
+
h: h
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
get: function(/*Document*/ doc){
|
|
94
|
+
// summary:
|
|
95
|
+
// Get window object associated with document doc.
|
|
96
|
+
// doc:
|
|
97
|
+
// The document to get the associated window for.
|
|
98
|
+
|
|
99
|
+
// In some IE versions (at least 6.0), document.parentWindow does not return a
|
|
100
|
+
// reference to the real window object (maybe a copy), so we must fix it as well
|
|
101
|
+
// We use IE specific execScript to attach the real window reference to
|
|
102
|
+
// document._parentWindow for later use
|
|
103
|
+
if(has("ie") && window !== document.parentWindow){
|
|
104
|
+
/*
|
|
105
|
+
In IE 6, only the variable "window" can be used to connect events (others
|
|
106
|
+
may be only copies).
|
|
107
|
+
*/
|
|
108
|
+
doc.parentWindow.execScript("document._parentWindow = window;", "Javascript");
|
|
109
|
+
//to prevent memory leak, unset it after use
|
|
110
|
+
//another possibility is to add an onUnload handler which seems overkill to me (liucougar)
|
|
111
|
+
var win = doc._parentWindow;
|
|
112
|
+
doc._parentWindow = null;
|
|
113
|
+
return win; // Window
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return doc.parentWindow || doc.defaultView; // Window
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
scrollIntoView: function(/*DomNode*/ node, /*Object?*/ pos){
|
|
120
|
+
// summary:
|
|
121
|
+
// Scroll the passed node into view using minimal movement, if it is not already.
|
|
122
|
+
|
|
123
|
+
// Don't rely on node.scrollIntoView working just because the function is there since
|
|
124
|
+
// it forces the node to the page's bottom or top (and left or right in IE) without consideration for the minimal movement.
|
|
125
|
+
// WebKit's node.scrollIntoViewIfNeeded doesn't work either for inner scrollbars in right-to-left mode
|
|
126
|
+
// and when there's a fixed position scrollable element
|
|
127
|
+
|
|
128
|
+
try{ // catch unexpected/unrecreatable errors (#7808) since we can recover using a semi-acceptable native method
|
|
129
|
+
node = dom.byId(node);
|
|
130
|
+
var doc = node.ownerDocument || baseWindow.doc, // TODO: why baseWindow.doc? Isn't node.ownerDocument always defined?
|
|
131
|
+
body = baseWindow.body(doc),
|
|
132
|
+
html = doc.documentElement || body.parentNode,
|
|
133
|
+
isIE = has("ie") || has("trident"),
|
|
134
|
+
isWK = has("webkit");
|
|
135
|
+
// if an untested browser, then use the native method
|
|
136
|
+
if(node == body || node == html){ return; }
|
|
137
|
+
if(!(has("mozilla") || isIE || isWK || has("opera") || has("trident") || has("edge"))
|
|
138
|
+
&& ("scrollIntoView" in node)){
|
|
139
|
+
node.scrollIntoView(false); // short-circuit to native if possible
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
var backCompat = doc.compatMode == 'BackCompat',
|
|
143
|
+
rootWidth = Math.min(body.clientWidth || html.clientWidth, html.clientWidth || body.clientWidth),
|
|
144
|
+
rootHeight = Math.min(body.clientHeight || html.clientHeight, html.clientHeight || body.clientHeight),
|
|
145
|
+
scrollRoot = (isWK || backCompat) ? body : html,
|
|
146
|
+
nodePos = pos || geom.position(node),
|
|
147
|
+
el = node.parentNode,
|
|
148
|
+
isFixed = function(el){
|
|
149
|
+
return (isIE <= 6 || (isIE == 7 && backCompat))
|
|
150
|
+
? false
|
|
151
|
+
: (has("position-fixed-support") && (style.get(el, 'position').toLowerCase() == "fixed"));
|
|
152
|
+
},
|
|
153
|
+
self = this,
|
|
154
|
+
scrollElementBy = function(el, x, y){
|
|
155
|
+
if(el.tagName == "BODY" || el.tagName == "HTML"){
|
|
156
|
+
self.get(el.ownerDocument).scrollBy(x, y);
|
|
157
|
+
}else{
|
|
158
|
+
x && (el.scrollLeft += x);
|
|
159
|
+
y && (el.scrollTop += y);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
if(isFixed(node)){ return; } // nothing to do
|
|
163
|
+
while(el){
|
|
164
|
+
if(el == body){ el = scrollRoot; }
|
|
165
|
+
var elPos = geom.position(el),
|
|
166
|
+
fixedPos = isFixed(el),
|
|
167
|
+
rtl = style.getComputedStyle(el).direction.toLowerCase() == "rtl";
|
|
168
|
+
|
|
169
|
+
if(el == scrollRoot){
|
|
170
|
+
elPos.w = rootWidth; elPos.h = rootHeight;
|
|
171
|
+
if(scrollRoot == html && (isIE || has("trident")) && rtl){
|
|
172
|
+
elPos.x += scrollRoot.offsetWidth-elPos.w;// IE workaround where scrollbar causes negative x
|
|
173
|
+
}
|
|
174
|
+
elPos.x = 0;
|
|
175
|
+
elPos.y = 0;
|
|
176
|
+
}else{
|
|
177
|
+
var pb = geom.getPadBorderExtents(el);
|
|
178
|
+
elPos.w -= pb.w; elPos.h -= pb.h; elPos.x += pb.l; elPos.y += pb.t;
|
|
179
|
+
var clientSize = el.clientWidth,
|
|
180
|
+
scrollBarSize = elPos.w - clientSize;
|
|
181
|
+
if(clientSize > 0 && scrollBarSize > 0){
|
|
182
|
+
if(rtl && has("rtl-adjust-position-for-verticalScrollBar")){
|
|
183
|
+
elPos.x += scrollBarSize;
|
|
184
|
+
}
|
|
185
|
+
elPos.w = clientSize;
|
|
186
|
+
}
|
|
187
|
+
clientSize = el.clientHeight;
|
|
188
|
+
scrollBarSize = elPos.h - clientSize;
|
|
189
|
+
if(clientSize > 0 && scrollBarSize > 0){
|
|
190
|
+
elPos.h = clientSize;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if(fixedPos){ // bounded by viewport, not parents
|
|
194
|
+
if(elPos.y < 0){
|
|
195
|
+
elPos.h += elPos.y; elPos.y = 0;
|
|
196
|
+
}
|
|
197
|
+
if(elPos.x < 0){
|
|
198
|
+
elPos.w += elPos.x; elPos.x = 0;
|
|
199
|
+
}
|
|
200
|
+
if(elPos.y + elPos.h > rootHeight){
|
|
201
|
+
elPos.h = rootHeight - elPos.y;
|
|
202
|
+
}
|
|
203
|
+
if(elPos.x + elPos.w > rootWidth){
|
|
204
|
+
elPos.w = rootWidth - elPos.x;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
// calculate overflow in all 4 directions
|
|
208
|
+
var l = nodePos.x - elPos.x, // beyond left: < 0
|
|
209
|
+
// t = nodePos.y - Math.max(elPos.y, 0), // beyond top: < 0
|
|
210
|
+
t = nodePos.y - elPos.y, // beyond top: < 0
|
|
211
|
+
r = l + nodePos.w - elPos.w, // beyond right: > 0
|
|
212
|
+
bot = t + nodePos.h - elPos.h; // beyond bottom: > 0
|
|
213
|
+
var s, old;
|
|
214
|
+
if(r * l > 0 && (!!el.scrollLeft || el == scrollRoot || el.scrollWidth > el.offsetHeight)){
|
|
215
|
+
s = Math[l < 0? "max" : "min"](l, r);
|
|
216
|
+
if(rtl && ((isIE == 8 && !backCompat) || has("trident") >= 5)){ s = -s; }
|
|
217
|
+
old = el.scrollLeft;
|
|
218
|
+
scrollElementBy(el, s, 0);
|
|
219
|
+
s = el.scrollLeft - old;
|
|
220
|
+
nodePos.x -= s;
|
|
221
|
+
}
|
|
222
|
+
if(bot * t > 0 && (!!el.scrollTop || el == scrollRoot || el.scrollHeight > el.offsetHeight)){
|
|
223
|
+
s = Math.ceil(Math[t < 0? "max" : "min"](t, bot));
|
|
224
|
+
old = el.scrollTop;
|
|
225
|
+
scrollElementBy(el, 0, s);
|
|
226
|
+
s = el.scrollTop - old;
|
|
227
|
+
nodePos.y -= s;
|
|
228
|
+
}
|
|
229
|
+
el = (el != scrollRoot) && !fixedPos && el.parentNode;
|
|
230
|
+
}
|
|
231
|
+
}catch(error){
|
|
232
|
+
console.error('scrollIntoView: ' + error);
|
|
233
|
+
node.scrollIntoView(false);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
1 && lang.setObject("dojo.window", window);
|
|
239
|
+
|
|
240
|
+
return window;
|
|
241
|
+
});
|