@datagrok/helm 2.13.8 → 3.0.1
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 +6 -0
- package/css/helm.css +40 -0
- package/dist/137.js +2 -0
- package/dist/137.js.map +1 -0
- package/dist/323.js +2 -0
- package/dist/323.js.map +1 -0
- package/dist/657.js +2 -0
- package/dist/657.js.map +1 -0
- package/dist/782.js +2 -0
- package/dist/782.js.map +1 -0
- package/dist/884.js +2 -0
- package/dist/884.js.map +1 -0
- package/dist/94.js +2 -0
- package/dist/94.js.map +1 -0
- package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js +16420 -0
- package/dist/libraries_bio_src_monomer-works_seq-to-molfile-worker_ts.js.map +1 -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/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js +1560 -0
- package/dist/vendors-HELM_node_modules_lru-cache_dist_esm_index_js.js.map +1 -0
- package/files/samples/helm-showcase.csv +56 -0
- package/package.json +8 -12
- package/src/helm-helper.ts +134 -410
- package/src/package-api.ts +14 -11
- package/src/package-test.ts +0 -2
- package/src/package-utils.ts +8 -298
- package/src/package.g.ts +2 -8
- package/src/package.ts +11 -31
- package/src/tests/helm-activity-cliffs.ts +2 -2
- package/src/tests/helm-input-tests.ts +83 -0
- package/src/tests/parse-helm-tests.ts +7 -57
- package/src/tests/properties-widget-tests.ts +21 -11
- package/src/utils/helm-grid-cell-renderer.ts +141 -151
- package/src/utils/index.ts +3 -7
- package/src/widgets/helm-input.ts +42 -12
- package/src/widgets/properties-widget.ts +18 -11
- package/webpack.config.js +1 -12
- package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
- package/helm/JSDraw/ReadMe.txt +0 -8
- package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
- package/helm/dojo/package.ts +0 -41
- package/helm/dojo/types.ts +0 -12
- package/src/helm-web-editor.ts +0 -68
- package/src/tests/get-monomer-tests.ts +0 -214
- package/src/tests/helm-service-tests.ts +0 -98
- package/src/types/dojo.ts +0 -3
- package/src/types/index.ts +0 -5
- package/src/utils/get-monomer.ts +0 -90
- package/src/utils/helm-service.ts +0 -166
- package/test-console-output-1.log +0 -919
- package/test-record-1.mp4 +0 -0
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +0 -63
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +0 -116
- package/vendor/dojo-1.10.10/dijit/Destroyable.js +0 -35
- package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +0 -83
- package/vendor/dojo-1.10.10/dijit/Tooltip.js +0 -240
- package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +0 -612
- package/vendor/dojo-1.10.10/dijit/Viewport.js +0 -44
- package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +0 -87
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js +0 -76
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +0 -247
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +0 -94
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +0 -238
- package/vendor/dojo-1.10.10/dijit/_Contained.js +0 -17
- package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +0 -56
- package/vendor/dojo-1.10.10/dijit/_Container.js +0 -47
- package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +0 -108
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +0 -198
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +0 -372
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +0 -11
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +0 -66
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +0 -188
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +0 -472
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +0 -8
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +0 -31
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +0 -90
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +0 -205
- package/vendor/dojo-1.10.10/dijit/_Widget.js +0 -66
- package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +0 -352
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +0 -353
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +0 -1200
- package/vendor/dojo-1.10.10/dijit/_base/focus.js +0 -68
- package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +0 -207
- package/vendor/dojo-1.10.10/dijit/_base/manager.js +0 -10
- package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +0 -35
- package/vendor/dojo-1.10.10/dijit/_base/place.js +0 -52
- package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +0 -131
- package/vendor/dojo-1.10.10/dijit/_base/popup.js +0 -23
- package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +0 -58
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js +0 -6
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +0 -22
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js +0 -3
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js +0 -3
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +0 -10
- package/vendor/dojo-1.10.10/dijit/_base/wai.js +0 -32
- package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +0 -109
- package/vendor/dojo-1.10.10/dijit/_base/window.js +0 -6
- package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +0 -18
- package/vendor/dojo-1.10.10/dijit/_base.js +0 -4
- package/vendor/dojo-1.10.10/dijit/_base.js.uncompressed.js +0 -27
- package/vendor/dojo-1.10.10/dijit/a11y.js +0 -109
- package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +0 -191
- package/vendor/dojo-1.10.10/dijit/a11yclick.js +0 -66
- package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +0 -139
- package/vendor/dojo-1.10.10/dijit/focus.js +0 -188
- package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +0 -371
- package/vendor/dojo-1.10.10/dijit/form/Button.js +0 -49
- package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +0 -130
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +0 -4
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +0 -27
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +0 -21
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +0 -86
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +0 -38
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +0 -102
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +0 -7
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +0 -26
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +0 -50
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +0 -116
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +0 -26
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +0 -81
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +0 -24
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +0 -51
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +0 -22
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +0 -67
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +0 -111
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +0 -254
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +0 -32
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +0 -69
- package/vendor/dojo-1.10.10/dijit/hccss.js +0 -9
- package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +0 -21
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +0 -215
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +0 -550
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +0 -7
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +0 -25
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +0 -235
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +0 -653
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +0 -171
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +0 -411
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js +0 -194
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +0 -410
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +0 -99
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +0 -236
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +0 -47
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +0 -190
- package/vendor/dojo-1.10.10/dijit/layout/utils.js +0 -77
- package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +0 -151
- package/vendor/dojo-1.10.10/dijit/main.js +0 -4
- package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +0 -16
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +0 -2
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +0 -21
- package/vendor/dojo-1.10.10/dijit/nls/loading.js +0 -2
- package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +0 -47
- package/vendor/dojo-1.10.10/dijit/place.js +0 -142
- package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +0 -407
- package/vendor/dojo-1.10.10/dijit/popup.js +0 -162
- package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +0 -441
- package/vendor/dojo-1.10.10/dijit/registry.js +0 -79
- package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +0 -159
- package/vendor/dojo-1.10.10/dijit/selection.js +0 -364
- package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +0 -525
- package/vendor/dojo-1.10.10/dijit/typematic.js +0 -96
- package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +0 -211
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +0 -195
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +0 -761
- package/vendor/dojo-1.10.10/dojo/Stateful.js +0 -90
- package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +0 -218
- package/vendor/dojo-1.10.10/dojo/_base/url.js +0 -87
- package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +0 -109
- package/vendor/dojo-1.10.10/dojo/cache.js +0 -9
- package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +0 -7
- package/vendor/dojo-1.10.10/dojo/colors.js +0 -74
- package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +0 -232
- package/vendor/dojo-1.10.10/dojo/cookie.js +0 -48
- package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +0 -98
- package/vendor/dojo-1.10.10/dojo/date/stamp.js +0 -82
- package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +0 -144
- package/vendor/dojo-1.10.10/dojo/dojo.js +0 -7
- package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +0 -18680
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +0 -27
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +0 -101
- package/vendor/dojo-1.10.10/dojo/fx/easing.js +0 -165
- package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +0 -276
- package/vendor/dojo-1.10.10/dojo/fx.js +0 -271
- package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +0 -443
- package/vendor/dojo-1.10.10/dojo/hccss.js +0 -26
- package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +0 -52
- package/vendor/dojo-1.10.10/dojo/html.js +0 -161
- package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +0 -370
- package/vendor/dojo-1.10.10/dojo/io/iframe.js +0 -71
- package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +0 -190
- package/vendor/dojo-1.10.10/dojo/io/script.js +0 -112
- package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +0 -280
- package/vendor/dojo-1.10.10/dojo/parser.js +0 -437
- package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +0 -915
- package/vendor/dojo-1.10.10/dojo/promise/all.js +0 -59
- package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojo/regexp.js +0 -32
- package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +0 -70
- package/vendor/dojo-1.10.10/dojo/request/iframe.js +0 -291
- package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +0 -438
- package/vendor/dojo-1.10.10/dojo/request/script.js +0 -129
- package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +0 -237
- package/vendor/dojo-1.10.10/dojo/require.js +0 -11
- package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +0 -7
- package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
- package/vendor/dojo-1.10.10/dojo/string.js +0 -67
- package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +0 -181
- package/vendor/dojo-1.10.10/dojo/touch.js +0 -191
- package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +0 -468
- package/vendor/dojo-1.10.10/dojo/uacss.js +0 -36
- package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +0 -85
- package/vendor/dojo-1.10.10/dojo/window.js +0 -141
- package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +0 -241
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js +0 -626
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +0 -1220
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +0 -5
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +0 -16
- package/vendor/dojo-1.10.10/dojox/charting/Element.js +0 -247
- package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +0 -402
- package/vendor/dojo-1.10.10/dojox/charting/Series.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +0 -58
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +0 -191
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +0 -577
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js +0 -42
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +0 -120
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +0 -11
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +0 -36
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +0 -77
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +0 -144
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +0 -58
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +0 -123
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +0 -54
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +0 -124
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +0 -28
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +0 -74
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +0 -116
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +0 -178
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +0 -83
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +0 -557
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +0 -980
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +0 -65
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +0 -224
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +0 -91
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +0 -164
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +0 -168
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +0 -311
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +0 -61
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +0 -161
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +0 -141
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +0 -242
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +0 -126
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +0 -243
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +0 -108
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +0 -290
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +0 -153
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +0 -249
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +0 -253
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +0 -472
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +0 -182
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +0 -356
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +0 -13
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +0 -110
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +0 -208
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +0 -303
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +0 -547
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +0 -134
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +0 -207
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +0 -299
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +0 -537
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +0 -24
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +0 -44
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +0 -7
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +0 -22
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +0 -33
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +0 -20
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +0 -31
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +0 -6
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +0 -68
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +0 -120
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +0 -209
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +0 -214
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +0 -76
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +0 -59
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +0 -70
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +0 -220
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +0 -262
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +0 -23
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +0 -36
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +0 -39
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +0 -106
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +0 -5
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +0 -12
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +0 -4
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +0 -3
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +0 -102
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +0 -165
- package/vendor/dojo-1.10.10/dojox/color/Palette.js +0 -163
- package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +0 -460
- package/vendor/dojo-1.10.10/dojox/color/_base.js +0 -174
- package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +0 -196
- package/vendor/dojo-1.10.10/dojox/gfx/_base.js +0 -253
- package/vendor/dojo-1.10.10/dojox/gfx/_base.js.uncompressed.js +0 -1024
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js +0 -297
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +0 -350
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +0 -63
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +0 -91
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +0 -170
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +0 -501
- package/vendor/dojo-1.10.10/dojox/gfx/path.js +0 -319
- package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +0 -478
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js +0 -459
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +0 -1091
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js +0 -662
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +0 -1023
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js +0 -199
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +0 -322
- package/vendor/dojo-1.10.10/dojox/gfx.js +0 -2
- package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +0 -1136
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +0 -151
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +0 -169
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +0 -93
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +0 -125
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +0 -81
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +0 -132
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +0 -54
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +0 -78
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +0 -61
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +0 -77
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +0 -87
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +0 -107
- package/vendor/dojo-1.10.10/dojox/lang/functional.js +0 -4
- package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +0 -3
- package/vendor/dojo-1.10.10/dojox/lang/utils.js +0 -86
- package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +0 -121
- package/vendor/dojo-1.10.10/dojox/main.js +0 -4
- package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +0 -14
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +0 -112
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +0 -208
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js +0 -62
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +0 -344
- package/vendor/dojo-1.10.10/dojox/storage/manager.js +0 -110
- package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +0 -263
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
define("dojox/charting/scaler/linear", ["dojo/_base/lang", "./common"],
|
|
2
|
-
function(lang, common){
|
|
3
|
-
var linear = lang.getObject("dojox.charting.scaler.linear", true);
|
|
4
|
-
|
|
5
|
-
var deltaLimit = 3, // pixels
|
|
6
|
-
getLabel = common.getNumericLabel;
|
|
7
|
-
|
|
8
|
-
function findString(/*String*/ val, /*Array*/ text){
|
|
9
|
-
val = val.toLowerCase();
|
|
10
|
-
for(var i = text.length - 1; i >= 0; --i){
|
|
11
|
-
if(val === text[i]){
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var calcTicks = function(min, max, kwArgs, majorTick, minorTick, microTick, span){
|
|
19
|
-
kwArgs = lang.delegate(kwArgs);
|
|
20
|
-
if(!majorTick){
|
|
21
|
-
if(kwArgs.fixUpper == "major"){ kwArgs.fixUpper = "minor"; }
|
|
22
|
-
if(kwArgs.fixLower == "major"){ kwArgs.fixLower = "minor"; }
|
|
23
|
-
}
|
|
24
|
-
if(!minorTick){
|
|
25
|
-
if(kwArgs.fixUpper == "minor"){ kwArgs.fixUpper = "micro"; }
|
|
26
|
-
if(kwArgs.fixLower == "minor"){ kwArgs.fixLower = "micro"; }
|
|
27
|
-
}
|
|
28
|
-
if(!microTick){
|
|
29
|
-
if(kwArgs.fixUpper == "micro"){ kwArgs.fixUpper = "none"; }
|
|
30
|
-
if(kwArgs.fixLower == "micro"){ kwArgs.fixLower = "none"; }
|
|
31
|
-
}
|
|
32
|
-
var lowerBound = findString(kwArgs.fixLower, ["major"]) ?
|
|
33
|
-
Math.floor(kwArgs.min / majorTick) * majorTick :
|
|
34
|
-
findString(kwArgs.fixLower, ["minor"]) ?
|
|
35
|
-
Math.floor(kwArgs.min / minorTick) * minorTick :
|
|
36
|
-
findString(kwArgs.fixLower, ["micro"]) ?
|
|
37
|
-
Math.floor(kwArgs.min / microTick) * microTick : kwArgs.min,
|
|
38
|
-
upperBound = findString(kwArgs.fixUpper, ["major"]) ?
|
|
39
|
-
Math.ceil(kwArgs.max / majorTick) * majorTick :
|
|
40
|
-
findString(kwArgs.fixUpper, ["minor"]) ?
|
|
41
|
-
Math.ceil(kwArgs.max / minorTick) * minorTick :
|
|
42
|
-
findString(kwArgs.fixUpper, ["micro"]) ?
|
|
43
|
-
Math.ceil(kwArgs.max / microTick) * microTick : kwArgs.max;
|
|
44
|
-
|
|
45
|
-
if(kwArgs.useMin){ min = lowerBound; }
|
|
46
|
-
if(kwArgs.useMax){ max = upperBound; }
|
|
47
|
-
|
|
48
|
-
var majorStart = (!majorTick || kwArgs.useMin && findString(kwArgs.fixLower, ["major"])) ?
|
|
49
|
-
min : Math.ceil(min / majorTick) * majorTick,
|
|
50
|
-
minorStart = (!minorTick || kwArgs.useMin && findString(kwArgs.fixLower, ["major", "minor"])) ?
|
|
51
|
-
min : Math.ceil(min / minorTick) * minorTick,
|
|
52
|
-
microStart = (! microTick || kwArgs.useMin && findString(kwArgs.fixLower, ["major", "minor", "micro"])) ?
|
|
53
|
-
min : Math.ceil(min / microTick) * microTick,
|
|
54
|
-
majorCount = !majorTick ? 0 : (kwArgs.useMax && findString(kwArgs.fixUpper, ["major"]) ?
|
|
55
|
-
Math.round((max - majorStart) / majorTick) :
|
|
56
|
-
Math.floor((max - majorStart) / majorTick)) + 1,
|
|
57
|
-
minorCount = !minorTick ? 0 : (kwArgs.useMax && findString(kwArgs.fixUpper, ["major", "minor"]) ?
|
|
58
|
-
Math.round((max - minorStart) / minorTick) :
|
|
59
|
-
Math.floor((max - minorStart) / minorTick)) + 1,
|
|
60
|
-
microCount = !microTick ? 0 : (kwArgs.useMax && findString(kwArgs.fixUpper, ["major", "minor", "micro"]) ?
|
|
61
|
-
Math.round((max - microStart) / microTick) :
|
|
62
|
-
Math.floor((max - microStart) / microTick)) + 1,
|
|
63
|
-
minorPerMajor = minorTick ? Math.round(majorTick / minorTick) : 0,
|
|
64
|
-
microPerMinor = microTick ? Math.round(minorTick / microTick) : 0,
|
|
65
|
-
majorPrecision = majorTick ? Math.floor(Math.log(majorTick) / Math.LN10) : 0,
|
|
66
|
-
minorPrecision = minorTick ? Math.floor(Math.log(minorTick) / Math.LN10) : 0,
|
|
67
|
-
scale = span / (max - min);
|
|
68
|
-
if(!isFinite(scale)){ scale = 1; }
|
|
69
|
-
|
|
70
|
-
return {
|
|
71
|
-
bounds: {
|
|
72
|
-
lower: lowerBound,
|
|
73
|
-
upper: upperBound,
|
|
74
|
-
from: min,
|
|
75
|
-
to: max,
|
|
76
|
-
scale: scale,
|
|
77
|
-
span: span
|
|
78
|
-
},
|
|
79
|
-
major: {
|
|
80
|
-
tick: majorTick,
|
|
81
|
-
start: majorStart,
|
|
82
|
-
count: majorCount,
|
|
83
|
-
prec: majorPrecision
|
|
84
|
-
},
|
|
85
|
-
minor: {
|
|
86
|
-
tick: minorTick,
|
|
87
|
-
start: minorStart,
|
|
88
|
-
count: minorCount,
|
|
89
|
-
prec: minorPrecision
|
|
90
|
-
},
|
|
91
|
-
micro: {
|
|
92
|
-
tick: microTick,
|
|
93
|
-
start: microStart,
|
|
94
|
-
count: microCount,
|
|
95
|
-
prec: 0
|
|
96
|
-
},
|
|
97
|
-
minorPerMajor: minorPerMajor,
|
|
98
|
-
microPerMinor: microPerMinor,
|
|
99
|
-
scaler: linear
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
return lang.mixin(linear, {
|
|
104
|
-
buildScaler: function(/*Number*/ min, /*Number*/ max, /*Number*/ span, /*Object*/ kwArgs, /*Number?*/ delta, /*Number?*/ minorDelta){
|
|
105
|
-
var h = {fixUpper: "none", fixLower: "none", natural: false};
|
|
106
|
-
if(kwArgs){
|
|
107
|
-
if("fixUpper" in kwArgs){ h.fixUpper = String(kwArgs.fixUpper); }
|
|
108
|
-
if("fixLower" in kwArgs){ h.fixLower = String(kwArgs.fixLower); }
|
|
109
|
-
if("natural" in kwArgs){ h.natural = Boolean(kwArgs.natural); }
|
|
110
|
-
}
|
|
111
|
-
minorDelta = !minorDelta || minorDelta < deltaLimit ? deltaLimit : minorDelta;
|
|
112
|
-
|
|
113
|
-
// update bounds
|
|
114
|
-
if("min" in kwArgs){ min = kwArgs.min; }
|
|
115
|
-
if("max" in kwArgs){ max = kwArgs.max; }
|
|
116
|
-
if(kwArgs.includeZero){
|
|
117
|
-
if(min > 0){ min = 0; }
|
|
118
|
-
if(max < 0){ max = 0; }
|
|
119
|
-
}
|
|
120
|
-
h.min = min;
|
|
121
|
-
h.useMin = true;
|
|
122
|
-
h.max = max;
|
|
123
|
-
h.useMax = true;
|
|
124
|
-
|
|
125
|
-
if("from" in kwArgs){
|
|
126
|
-
min = kwArgs.from;
|
|
127
|
-
h.useMin = false;
|
|
128
|
-
}
|
|
129
|
-
if("to" in kwArgs){
|
|
130
|
-
max = kwArgs.to;
|
|
131
|
-
h.useMax = false;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// check for erroneous condition
|
|
135
|
-
if(max <= min){
|
|
136
|
-
return calcTicks(min, max, h, 0, 0, 0, span); // Object
|
|
137
|
-
}
|
|
138
|
-
if(!delta){
|
|
139
|
-
delta = max - min;
|
|
140
|
-
}
|
|
141
|
-
var mag = Math.floor(Math.log(delta) / Math.LN10),
|
|
142
|
-
major = kwArgs && ("majorTickStep" in kwArgs) ? kwArgs.majorTickStep : Math.pow(10, mag),
|
|
143
|
-
minor = 0, micro = 0, ticks;
|
|
144
|
-
|
|
145
|
-
// calculate minor ticks
|
|
146
|
-
if(kwArgs && ("minorTickStep" in kwArgs)){
|
|
147
|
-
minor = kwArgs.minorTickStep;
|
|
148
|
-
}else{
|
|
149
|
-
do{
|
|
150
|
-
minor = major / 10;
|
|
151
|
-
if(!h.natural || minor > 0.9){
|
|
152
|
-
ticks = calcTicks(min, max, h, major, minor, 0, span);
|
|
153
|
-
if(ticks.bounds.scale * ticks.minor.tick > minorDelta){ break; }
|
|
154
|
-
}
|
|
155
|
-
minor = major / 5;
|
|
156
|
-
if(!h.natural || minor > 0.9){
|
|
157
|
-
ticks = calcTicks(min, max, h, major, minor, 0, span);
|
|
158
|
-
if(ticks.bounds.scale * ticks.minor.tick > minorDelta){ break; }
|
|
159
|
-
}
|
|
160
|
-
minor = major / 2;
|
|
161
|
-
if(!h.natural || minor > 0.9){
|
|
162
|
-
ticks = calcTicks(min, max, h, major, minor, 0, span);
|
|
163
|
-
if(ticks.bounds.scale * ticks.minor.tick > minorDelta){ break; }
|
|
164
|
-
}
|
|
165
|
-
return calcTicks(min, max, h, major, 0, 0, span); // Object
|
|
166
|
-
}while(false);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// calculate micro ticks
|
|
170
|
-
if(kwArgs && ("microTickStep" in kwArgs)){
|
|
171
|
-
micro = kwArgs.microTickStep;
|
|
172
|
-
ticks = calcTicks(min, max, h, major, minor, micro, span);
|
|
173
|
-
}else{
|
|
174
|
-
do{
|
|
175
|
-
micro = minor / 10;
|
|
176
|
-
if(!h.natural || micro > 0.9){
|
|
177
|
-
ticks = calcTicks(min, max, h, major, minor, micro, span);
|
|
178
|
-
if(ticks.bounds.scale * ticks.micro.tick > deltaLimit){ break; }
|
|
179
|
-
}
|
|
180
|
-
micro = minor / 5;
|
|
181
|
-
if(!h.natural || micro > 0.9){
|
|
182
|
-
ticks = calcTicks(min, max, h, major, minor, micro, span);
|
|
183
|
-
if(ticks.bounds.scale * ticks.micro.tick > deltaLimit){ break; }
|
|
184
|
-
}
|
|
185
|
-
micro = minor / 2;
|
|
186
|
-
if(!h.natural || micro > 0.9){
|
|
187
|
-
ticks = calcTicks(min, max, h, major, minor, micro, span);
|
|
188
|
-
if(ticks.bounds.scale * ticks.micro.tick > deltaLimit){ break; }
|
|
189
|
-
}
|
|
190
|
-
micro = 0;
|
|
191
|
-
}while(false);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
return micro ? ticks : calcTicks(min, max, h, major, minor, 0, span); // Object
|
|
195
|
-
},
|
|
196
|
-
buildTicks: function(/*Object*/ scaler, /*Object*/ kwArgs){
|
|
197
|
-
var step, next, tick,
|
|
198
|
-
nextMajor = scaler.major.start,
|
|
199
|
-
nextMinor = scaler.minor.start,
|
|
200
|
-
nextMicro = scaler.micro.start;
|
|
201
|
-
if(kwArgs.microTicks && scaler.micro.tick){
|
|
202
|
-
step = scaler.micro.tick, next = nextMicro;
|
|
203
|
-
}else if(kwArgs.minorTicks && scaler.minor.tick){
|
|
204
|
-
step = scaler.minor.tick, next = nextMinor;
|
|
205
|
-
}else if(scaler.major.tick){
|
|
206
|
-
step = scaler.major.tick, next = nextMajor;
|
|
207
|
-
}else{
|
|
208
|
-
// no ticks
|
|
209
|
-
return null;
|
|
210
|
-
}
|
|
211
|
-
// make sure that we have finite bounds
|
|
212
|
-
var revScale = 1 / scaler.bounds.scale;
|
|
213
|
-
if(scaler.bounds.to <= scaler.bounds.from || isNaN(revScale) || !isFinite(revScale) ||
|
|
214
|
-
step <= 0 || isNaN(step) || !isFinite(step)){
|
|
215
|
-
// no ticks
|
|
216
|
-
return null;
|
|
217
|
-
}
|
|
218
|
-
// loop over all ticks
|
|
219
|
-
var majorTicks = [], minorTicks = [], microTicks = [];
|
|
220
|
-
while(next <= scaler.bounds.to + revScale){
|
|
221
|
-
if(Math.abs(nextMajor - next) < step / 2){
|
|
222
|
-
// major tick
|
|
223
|
-
tick = {value: nextMajor};
|
|
224
|
-
if(kwArgs.majorLabels){
|
|
225
|
-
tick.label = getLabel(nextMajor, scaler.major.prec, kwArgs);
|
|
226
|
-
}
|
|
227
|
-
majorTicks.push(tick);
|
|
228
|
-
nextMajor += scaler.major.tick;
|
|
229
|
-
nextMinor += scaler.minor.tick;
|
|
230
|
-
nextMicro += scaler.micro.tick;
|
|
231
|
-
}else if(Math.abs(nextMinor - next) < step / 2){
|
|
232
|
-
// minor tick
|
|
233
|
-
if(kwArgs.minorTicks){
|
|
234
|
-
tick = {value: nextMinor};
|
|
235
|
-
if(kwArgs.minorLabels && (scaler.minMinorStep <= scaler.minor.tick * scaler.bounds.scale)){
|
|
236
|
-
tick.label = getLabel(nextMinor, scaler.minor.prec, kwArgs);
|
|
237
|
-
}
|
|
238
|
-
minorTicks.push(tick);
|
|
239
|
-
}
|
|
240
|
-
nextMinor += scaler.minor.tick;
|
|
241
|
-
nextMicro += scaler.micro.tick;
|
|
242
|
-
}else{
|
|
243
|
-
// micro tick
|
|
244
|
-
if(kwArgs.microTicks){
|
|
245
|
-
microTicks.push({value: nextMicro});
|
|
246
|
-
}
|
|
247
|
-
nextMicro += scaler.micro.tick;
|
|
248
|
-
}
|
|
249
|
-
next += step;
|
|
250
|
-
}
|
|
251
|
-
return {major: majorTicks, minor: minorTicks, micro: microTicks}; // Object
|
|
252
|
-
},
|
|
253
|
-
getTransformerFromModel: function(/*Object*/ scaler){
|
|
254
|
-
var offset = scaler.bounds.from, scale = scaler.bounds.scale;
|
|
255
|
-
return function(x){ return (x - offset) * scale; }; // Function
|
|
256
|
-
},
|
|
257
|
-
getTransformerFromPlot: function(/*Object*/ scaler){
|
|
258
|
-
var offset = scaler.bounds.from, scale = scaler.bounds.scale;
|
|
259
|
-
return function(x){ return x / scale + offset; }; // Function
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/charting/scaler/primitive",["dojo/_base/lang"],function(_1){
|
|
3
|
-
var _2=_1.getObject("dojox.charting.scaler.primitive",true);
|
|
4
|
-
return _1.mixin(_2,{buildScaler:function(_3,_4,_5,_6){
|
|
5
|
-
if(_3==_4){
|
|
6
|
-
_3-=0.5;
|
|
7
|
-
_4+=0.5;
|
|
8
|
-
}
|
|
9
|
-
return {bounds:{lower:_3,upper:_4,from:_3,to:_4,scale:_5/(_4-_3),span:_5},scaler:_2};
|
|
10
|
-
},buildTicks:function(_7,_8){
|
|
11
|
-
return {major:[],minor:[],micro:[]};
|
|
12
|
-
},getTransformerFromModel:function(_9){
|
|
13
|
-
var _a=_9.bounds.from,_b=_9.bounds.scale;
|
|
14
|
-
return function(x){
|
|
15
|
-
return (x-_a)*_b;
|
|
16
|
-
};
|
|
17
|
-
},getTransformerFromPlot:function(_c){
|
|
18
|
-
var _d=_c.bounds.from,_e=_c.bounds.scale;
|
|
19
|
-
return function(x){
|
|
20
|
-
return x/_e+_d;
|
|
21
|
-
};
|
|
22
|
-
}});
|
|
23
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
define("dojox/charting/scaler/primitive", ["dojo/_base/lang"],
|
|
2
|
-
function(lang){
|
|
3
|
-
var primitive = lang.getObject("dojox.charting.scaler.primitive", true);
|
|
4
|
-
return lang.mixin(primitive, {
|
|
5
|
-
buildScaler: function(/*Number*/ min, /*Number*/ max, /*Number*/ span, /*Object*/ kwArgs){
|
|
6
|
-
if(min == max){
|
|
7
|
-
// artificially extend bounds
|
|
8
|
-
min -= 0.5;
|
|
9
|
-
max += 0.5;
|
|
10
|
-
// now the line will be centered
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
bounds: {
|
|
14
|
-
lower: min,
|
|
15
|
-
upper: max,
|
|
16
|
-
from: min,
|
|
17
|
-
to: max,
|
|
18
|
-
scale: span / (max - min),
|
|
19
|
-
span: span
|
|
20
|
-
},
|
|
21
|
-
scaler: primitive
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
buildTicks: function(/*Object*/ scaler, /*Object*/ kwArgs){
|
|
25
|
-
return {major: [], minor: [], micro: []}; // Object
|
|
26
|
-
},
|
|
27
|
-
getTransformerFromModel: function(/*Object*/ scaler){
|
|
28
|
-
var offset = scaler.bounds.from, scale = scaler.bounds.scale;
|
|
29
|
-
return function(x){ return (x - offset) * scale; }; // Function
|
|
30
|
-
},
|
|
31
|
-
getTransformerFromPlot: function(/*Object*/ scaler){
|
|
32
|
-
var offset = scaler.bounds.from, scale = scaler.bounds.scale;
|
|
33
|
-
return function(x){ return x / scale + offset; }; // Function
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/charting/themes/Claro",["../Theme","dojox/gfx/gradutils","./common"],function(_1,_2,_3){
|
|
3
|
-
var g=_1.generateGradient,_4={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:100};
|
|
4
|
-
_3.Claro=new _1({chart:{fill:{type:"linear",x1:0,x2:0,y1:0,y2:100,colors:[{offset:0,color:"#dbdbdb"},{offset:1,color:"#efefef"}]},stroke:{color:"#b5bcc7"}},plotarea:{fill:{type:"linear",x1:0,x2:0,y1:0,y2:100,colors:[{offset:0,color:"#dbdbdb"},{offset:1,color:"#efefef"}]}},axis:{stroke:{color:"#888c76",width:1},tick:{color:"#888c76",position:"center",font:"normal normal normal 7pt Verdana, Arial, sans-serif",fontColor:"#888c76"}},series:{stroke:{width:2.5,color:"#fff"},outline:null,font:"normal normal normal 7pt Verdana, Arial, sans-serif",fontColor:"#131313"},marker:{stroke:{width:1.25,color:"#131313"},outline:{width:1.25,color:"#131313"},font:"normal normal normal 8pt Verdana, Arial, sans-serif",fontColor:"#131313"},seriesThemes:[{fill:g(_4,"#2a6ead","#3a99f2")},{fill:g(_4,"#613e04","#996106")},{fill:g(_4,"#0e3961","#155896")},{fill:g(_4,"#55aafa","#3f7fba")},{fill:g(_4,"#ad7b2a","#db9b35")}],markerThemes:[{fill:"#2a6ead",stroke:{color:"#fff"}},{fill:"#613e04",stroke:{color:"#fff"}},{fill:"#0e3961",stroke:{color:"#fff"}},{fill:"#55aafa",stroke:{color:"#fff"}},{fill:"#ad7b2a",stroke:{color:"#fff"}}]});
|
|
5
|
-
_3.Claro.next=function(_5,_6,_7){
|
|
6
|
-
var _8=_5=="line",s,_9;
|
|
7
|
-
if(_8||_5=="area"){
|
|
8
|
-
s=this.seriesThemes[this._current%this.seriesThemes.length];
|
|
9
|
-
var m=this.markerThemes[this._current%this.markerThemes.length];
|
|
10
|
-
s.fill.space="plot";
|
|
11
|
-
if(_8){
|
|
12
|
-
s.stroke={width:4,color:s.fill.colors[0].color};
|
|
13
|
-
}
|
|
14
|
-
m.outline={width:1.25,color:m.fill};
|
|
15
|
-
_9=_1.prototype.next.apply(this,arguments);
|
|
16
|
-
delete s.outline;
|
|
17
|
-
delete s.stroke;
|
|
18
|
-
s.fill.space="shape";
|
|
19
|
-
return _9;
|
|
20
|
-
}else{
|
|
21
|
-
if(_5=="candlestick"){
|
|
22
|
-
s=this.seriesThemes[this._current%this.seriesThemes.length];
|
|
23
|
-
s.fill.space="plot";
|
|
24
|
-
s.stroke={width:1,color:s.fill.colors[0].color};
|
|
25
|
-
_9=_1.prototype.next.apply(this,arguments);
|
|
26
|
-
return _9;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return _1.prototype.next.apply(this,arguments);
|
|
30
|
-
};
|
|
31
|
-
_3.Claro.post=function(_a,_b){
|
|
32
|
-
_a=_1.prototype.post.apply(this,arguments);
|
|
33
|
-
if((_b=="slice"||_b=="circle")&&_a.series.fill&&_a.series.fill.type=="radial"){
|
|
34
|
-
_a.series.fill=_2.reverse(_a.series.fill);
|
|
35
|
-
}
|
|
36
|
-
return _a;
|
|
37
|
-
};
|
|
38
|
-
return _3.Claro;
|
|
39
|
-
});
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
define("dojox/charting/themes/Claro", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){
|
|
2
|
-
// created by Tom Trenka
|
|
3
|
-
|
|
4
|
-
var g = Theme.generateGradient,
|
|
5
|
-
defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
|
|
6
|
-
|
|
7
|
-
themes.Claro = new Theme({
|
|
8
|
-
chart: {
|
|
9
|
-
fill: {
|
|
10
|
-
type: "linear",
|
|
11
|
-
x1: 0, x2: 0, y1: 0, y2: 100,
|
|
12
|
-
colors: [
|
|
13
|
-
{ offset: 0, color: "#dbdbdb" },
|
|
14
|
-
{ offset: 1, color: "#efefef" }
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
stroke: {color: "#b5bcc7"}
|
|
18
|
-
},
|
|
19
|
-
plotarea: {
|
|
20
|
-
fill: {
|
|
21
|
-
type: "linear",
|
|
22
|
-
x1: 0, x2: 0, y1: 0, y2: 100,
|
|
23
|
-
colors: [
|
|
24
|
-
{ offset: 0, color: "#dbdbdb" },
|
|
25
|
-
{ offset: 1, color: "#efefef" }
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
axis:{
|
|
30
|
-
stroke: { // the axis itself
|
|
31
|
-
color: "#888c76",
|
|
32
|
-
width: 1
|
|
33
|
-
},
|
|
34
|
-
tick: { // used as a foundation for all ticks
|
|
35
|
-
color: "#888c76",
|
|
36
|
-
position: "center",
|
|
37
|
-
font: "normal normal normal 7pt Verdana, Arial, sans-serif", // labels on axis
|
|
38
|
-
fontColor: "#888c76" // color of labels
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
series: {
|
|
42
|
-
stroke: {width: 2.5, color: "#fff"},
|
|
43
|
-
outline: null,
|
|
44
|
-
font: "normal normal normal 7pt Verdana, Arial, sans-serif",
|
|
45
|
-
fontColor: "#131313"
|
|
46
|
-
},
|
|
47
|
-
marker: {
|
|
48
|
-
stroke: {width: 1.25, color: "#131313"},
|
|
49
|
-
outline: {width: 1.25, color: "#131313"},
|
|
50
|
-
font: "normal normal normal 8pt Verdana, Arial, sans-serif",
|
|
51
|
-
fontColor: "#131313"
|
|
52
|
-
},
|
|
53
|
-
seriesThemes: [
|
|
54
|
-
{fill: g(defaultFill, "#2a6ead", "#3a99f2")},
|
|
55
|
-
{fill: g(defaultFill, "#613e04", "#996106")},
|
|
56
|
-
{fill: g(defaultFill, "#0e3961", "#155896")},
|
|
57
|
-
{fill: g(defaultFill, "#55aafa", "#3f7fba")},
|
|
58
|
-
{fill: g(defaultFill, "#ad7b2a", "#db9b35")}
|
|
59
|
-
],
|
|
60
|
-
markerThemes: [
|
|
61
|
-
{fill: "#2a6ead", stroke: {color: "#fff"}},
|
|
62
|
-
{fill: "#613e04", stroke: {color: "#fff"}},
|
|
63
|
-
{fill: "#0e3961", stroke: {color: "#fff"}},
|
|
64
|
-
{fill: "#55aafa", stroke: {color: "#fff"}},
|
|
65
|
-
{fill: "#ad7b2a", stroke: {color: "#fff"}}
|
|
66
|
-
]
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
themes.Claro.next = function(elementType, mixin, doPost){
|
|
70
|
-
var isLine = elementType == "line",
|
|
71
|
-
s, theme;
|
|
72
|
-
if(isLine || elementType == "area"){
|
|
73
|
-
// custom processing for lines: substitute colors
|
|
74
|
-
s = this.seriesThemes[this._current % this.seriesThemes.length];
|
|
75
|
-
var m = this.markerThemes[this._current % this.markerThemes.length];
|
|
76
|
-
s.fill.space = "plot";
|
|
77
|
-
if(isLine){
|
|
78
|
-
s.stroke = { width: 4, color: s.fill.colors[0].color};
|
|
79
|
-
}
|
|
80
|
-
m.outline = { width: 1.25, color: m.fill };
|
|
81
|
-
theme = Theme.prototype.next.apply(this, arguments);
|
|
82
|
-
// cleanup
|
|
83
|
-
delete s.outline;
|
|
84
|
-
delete s.stroke;
|
|
85
|
-
s.fill.space = "shape";
|
|
86
|
-
return theme;
|
|
87
|
-
}else if(elementType == "candlestick"){
|
|
88
|
-
s = this.seriesThemes[this._current % this.seriesThemes.length];
|
|
89
|
-
s.fill.space = "plot";
|
|
90
|
-
s.stroke = { width: 1, color: s.fill.colors[0].color};
|
|
91
|
-
theme = Theme.prototype.next.apply(this, arguments);
|
|
92
|
-
return theme;
|
|
93
|
-
}
|
|
94
|
-
return Theme.prototype.next.apply(this, arguments);
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
themes.Claro.post = function(theme, elementType){
|
|
98
|
-
theme = Theme.prototype.post.apply(this, arguments);
|
|
99
|
-
if((elementType == "slice" || elementType == "circle") && theme.series.fill && theme.series.fill.type == "radial"){
|
|
100
|
-
theme.series.fill = gradutils.reverse(theme.series.fill);
|
|
101
|
-
}
|
|
102
|
-
return theme;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
return themes.Claro;
|
|
106
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
define("dojox/charting/themes/Wetland", ["../SimpleTheme", "./common"], function(SimpleTheme, themes){
|
|
2
|
-
themes.Wetland = new SimpleTheme({
|
|
3
|
-
colors: [
|
|
4
|
-
"#bfbc64",
|
|
5
|
-
"#737130",
|
|
6
|
-
"#73373b",
|
|
7
|
-
"#7dafca",
|
|
8
|
-
"#8d3c42"
|
|
9
|
-
]
|
|
10
|
-
});
|
|
11
|
-
return themes.Wetland;
|
|
12
|
-
});
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/charting/widget/Legend",["dojo/_base/declare","dijit/_WidgetBase","dojox/gfx","dojo/_base/array","dojo/has","dojo/has!dojo-bidi?../bidi/widget/Legend","dojox/lang/functional","dojo/dom","dojo/dom-construct","dojo/dom-class","dijit/registry"],function(_1,_2,_3,_4,_5,_6,df,_7,_8,_9,_a){
|
|
3
|
-
var _b=_1(_5("dojo-bidi")?"dojox.charting.widget.NonBidiLegend":"dojox.charting.widget.Legend",_2,{chartRef:"",horizontal:true,swatchSize:18,legendBody:null,postCreate:function(){
|
|
4
|
-
if(!this.chart&&this.chartRef){
|
|
5
|
-
this.chart=_a.byId(this.chartRef)||_a.byNode(_7.byId(this.chartRef));
|
|
6
|
-
if(!this.chart){
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
this.chart=this.chart.chart||this.chart;
|
|
10
|
-
this.refresh();
|
|
11
|
-
},buildRendering:function(){
|
|
12
|
-
this.domNode=_8.create("table",{role:"group","aria-label":"chart legend","class":"dojoxLegendNode"});
|
|
13
|
-
this.legendBody=_8.create("tbody",null,this.domNode);
|
|
14
|
-
this.inherited(arguments);
|
|
15
|
-
},destroy:function(){
|
|
16
|
-
if(this._surfaces){
|
|
17
|
-
_4.forEach(this._surfaces,function(_c){
|
|
18
|
-
_c.destroy();
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
this.inherited(arguments);
|
|
22
|
-
},refresh:function(){
|
|
23
|
-
if(this._surfaces){
|
|
24
|
-
_4.forEach(this._surfaces,function(_d){
|
|
25
|
-
_d.destroy();
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
this._surfaces=[];
|
|
29
|
-
while(this.legendBody.lastChild){
|
|
30
|
-
_8.destroy(this.legendBody.lastChild);
|
|
31
|
-
}
|
|
32
|
-
if(this.horizontal){
|
|
33
|
-
_9.add(this.domNode,"dojoxLegendHorizontal");
|
|
34
|
-
this._tr=_8.create("tr",null,this.legendBody);
|
|
35
|
-
this._inrow=0;
|
|
36
|
-
}
|
|
37
|
-
var s=this.series||this.chart.series;
|
|
38
|
-
if(s.length==0){
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if(s[0].chart.stack[0].declaredClass=="dojox.charting.plot2d.Pie"){
|
|
42
|
-
var t=s[0].chart.stack[0];
|
|
43
|
-
if(typeof t.run.data[0]=="number"){
|
|
44
|
-
var _e=df.map(t.run.data,"Math.max(x, 0)");
|
|
45
|
-
var _f=df.map(_e,"/this",df.foldl(_e,"+",0));
|
|
46
|
-
_4.forEach(_f,function(x,i){
|
|
47
|
-
this._addLabel(t.dyn[i],t._getLabel(x*100)+"%");
|
|
48
|
-
},this);
|
|
49
|
-
}else{
|
|
50
|
-
_4.forEach(t.run.data,function(x,i){
|
|
51
|
-
this._addLabel(t.dyn[i],x.legend||x.text||x.y);
|
|
52
|
-
},this);
|
|
53
|
-
}
|
|
54
|
-
}else{
|
|
55
|
-
_4.forEach(s,function(x){
|
|
56
|
-
this._addLabel(x.dyn,x.legend||x.name);
|
|
57
|
-
},this);
|
|
58
|
-
}
|
|
59
|
-
},_addLabel:function(dyn,_10){
|
|
60
|
-
var _11=_8.create("td"),_12=_8.create("div",null,_11),_13=_8.create("label",null,_11),div=_8.create("div",{style:{"width":this.swatchSize+"px","height":this.swatchSize+"px","float":"left"}},_12);
|
|
61
|
-
_9.add(_12,"dojoxLegendIcon dijitInline");
|
|
62
|
-
_9.add(_13,"dojoxLegendText");
|
|
63
|
-
if(this._tr){
|
|
64
|
-
this._tr.appendChild(_11);
|
|
65
|
-
if(++this._inrow===this.horizontal){
|
|
66
|
-
this._tr=_8.create("tr",null,this.legendBody);
|
|
67
|
-
this._inrow=0;
|
|
68
|
-
}
|
|
69
|
-
}else{
|
|
70
|
-
var tr=_8.create("tr",null,this.legendBody);
|
|
71
|
-
tr.appendChild(_11);
|
|
72
|
-
}
|
|
73
|
-
this._makeIcon(div,dyn);
|
|
74
|
-
_13.innerHTML=String(_10);
|
|
75
|
-
if(_5("dojo-bidi")){
|
|
76
|
-
_13.dir=this.getTextDir(_10,_13.dir);
|
|
77
|
-
}
|
|
78
|
-
},_makeIcon:function(div,dyn){
|
|
79
|
-
var mb={h:this.swatchSize,w:this.swatchSize};
|
|
80
|
-
var _14=_3.createSurface(div,mb.w,mb.h);
|
|
81
|
-
this._surfaces.push(_14);
|
|
82
|
-
if(dyn.fill){
|
|
83
|
-
_14.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setFill(dyn.fill).setStroke(dyn.stroke);
|
|
84
|
-
}else{
|
|
85
|
-
if(dyn.stroke||dyn.marker){
|
|
86
|
-
var _15={x1:0,y1:mb.h/2,x2:mb.w,y2:mb.h/2};
|
|
87
|
-
if(dyn.stroke){
|
|
88
|
-
_14.createLine(_15).setStroke(dyn.stroke);
|
|
89
|
-
}
|
|
90
|
-
if(dyn.marker){
|
|
91
|
-
var c={x:mb.w/2,y:mb.h/2};
|
|
92
|
-
_14.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.markerFill).setStroke(dyn.markerStroke);
|
|
93
|
-
}
|
|
94
|
-
}else{
|
|
95
|
-
_14.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setStroke("black");
|
|
96
|
-
_14.createLine({x1:2,y1:2,x2:mb.w-2,y2:mb.h-2}).setStroke("black");
|
|
97
|
-
_14.createLine({x1:2,y1:mb.h-2,x2:mb.w-2,y2:2}).setStroke("black");
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}});
|
|
101
|
-
return _5("dojo-bidi")?_1("dojox.charting.widget.Legend",[_b,_6]):_b;
|
|
102
|
-
});
|