@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,207 +0,0 @@
|
|
|
1
|
-
define("dojox/charting/plot2d/Scatter", ["dojo/_base/lang", "dojo/_base/array", "dojo/_base/declare", "dojo/has", "./CartesianBase", "./_PlotEvents", "./common",
|
|
2
|
-
"dojox/lang/functional", "dojox/lang/functional/reversed", "dojox/lang/utils", "dojox/gfx/fx", "dojox/gfx/gradutils"],
|
|
3
|
-
function(lang, arr, declare, has, CartesianBase, _PlotEvents, dc, df, dfr, du, fx, gradutils){
|
|
4
|
-
|
|
5
|
-
var purgeGroup = dfr.lambda("item.purgeGroup()");
|
|
6
|
-
|
|
7
|
-
return declare("dojox.charting.plot2d.Scatter", [CartesianBase, _PlotEvents], {
|
|
8
|
-
// summary:
|
|
9
|
-
// A plot object representing a typical scatter chart.
|
|
10
|
-
defaultParams: {
|
|
11
|
-
shadows: null, // draw shadows
|
|
12
|
-
animate: null // animate chart to place
|
|
13
|
-
},
|
|
14
|
-
optionalParams: {
|
|
15
|
-
// theme component
|
|
16
|
-
markerStroke: {},
|
|
17
|
-
markerOutline: {},
|
|
18
|
-
markerShadow: {},
|
|
19
|
-
markerFill: {},
|
|
20
|
-
markerFont: "",
|
|
21
|
-
markerFontColor: "",
|
|
22
|
-
styleFunc: null
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
constructor: function(chart, kwArgs){
|
|
26
|
-
// summary:
|
|
27
|
-
// Create the scatter plot.
|
|
28
|
-
// chart: dojox/charting/Chart
|
|
29
|
-
// The chart this plot belongs to.
|
|
30
|
-
// kwArgs: dojox.charting.plot2d.__DefaultCtorArgs?
|
|
31
|
-
// An optional keyword arguments object to help define this plot's parameters.
|
|
32
|
-
this.opt = lang.clone(lang.mixin(this.opt, this.defaultParams));
|
|
33
|
-
du.updateWithObject(this.opt, kwArgs);
|
|
34
|
-
du.updateWithPattern(this.opt, kwArgs, this.optionalParams);
|
|
35
|
-
this.animate = this.opt.animate;
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
render: function(dim, offsets){
|
|
39
|
-
// summary:
|
|
40
|
-
// Run the calculations for any axes for this plot.
|
|
41
|
-
// dim: Object
|
|
42
|
-
// An object in the form of { width, height }
|
|
43
|
-
// offsets: Object
|
|
44
|
-
// An object of the form { l, r, t, b}.
|
|
45
|
-
// returns: dojox/charting/plot2d/Scatter
|
|
46
|
-
// A reference to this plot for functional chaining.
|
|
47
|
-
if(this.zoom && !this.isDataDirty()){
|
|
48
|
-
return this.performZoom(dim, offsets);
|
|
49
|
-
}
|
|
50
|
-
this.resetEvents();
|
|
51
|
-
this.dirty = this.isDirty();
|
|
52
|
-
var s;
|
|
53
|
-
if(this.dirty){
|
|
54
|
-
arr.forEach(this.series, purgeGroup);
|
|
55
|
-
this._eventSeries = {};
|
|
56
|
-
this.cleanGroup();
|
|
57
|
-
s = this.getGroup();
|
|
58
|
-
df.forEachRev(this.series, function(item){ item.cleanGroup(s); });
|
|
59
|
-
}
|
|
60
|
-
var t = this.chart.theme, events = this.events();
|
|
61
|
-
for(var i = this.series.length - 1; i >= 0; --i){
|
|
62
|
-
var run = this.series[i];
|
|
63
|
-
if(!this.dirty && !run.dirty){
|
|
64
|
-
t.skip();
|
|
65
|
-
this._reconnectEvents(run.name);
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
run.cleanGroup();
|
|
69
|
-
if(!run.data.length){
|
|
70
|
-
run.dirty = false;
|
|
71
|
-
t.skip();
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
var theme = t.next("marker", [this.opt, run]), lpoly,
|
|
76
|
-
ht = this._hScaler.scaler.getTransformerFromModel(this._hScaler),
|
|
77
|
-
vt = this._vScaler.scaler.getTransformerFromModel(this._vScaler);
|
|
78
|
-
if(run.hidden){
|
|
79
|
-
run.dyn.marker = theme.symbol;
|
|
80
|
-
run.dyn.markerFill = theme.marker.fill;
|
|
81
|
-
run.dyn.markerStroke = theme.marker.stroke;
|
|
82
|
-
continue;
|
|
83
|
-
}
|
|
84
|
-
s = run.group;
|
|
85
|
-
if(typeof run.data[0] == "number"){
|
|
86
|
-
lpoly = arr.map(run.data, function(v, i){
|
|
87
|
-
return {
|
|
88
|
-
x: ht(i + 1) + offsets.l,
|
|
89
|
-
y: dim.height - offsets.b - vt(v)
|
|
90
|
-
};
|
|
91
|
-
}, this);
|
|
92
|
-
}else{
|
|
93
|
-
lpoly = arr.map(run.data, function(v, i){
|
|
94
|
-
return {
|
|
95
|
-
x: ht(v.x) + offsets.l,
|
|
96
|
-
y: dim.height - offsets.b - vt(v.y)
|
|
97
|
-
};
|
|
98
|
-
}, this);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
var shadowMarkers = new Array(lpoly.length),
|
|
102
|
-
frontMarkers = new Array(lpoly.length),
|
|
103
|
-
outlineMarkers = new Array(lpoly.length);
|
|
104
|
-
|
|
105
|
-
arr.forEach(lpoly, function(c, i){
|
|
106
|
-
var value = run.data[i], finalTheme;
|
|
107
|
-
if(this.opt.styleFunc || typeof value != "number"){
|
|
108
|
-
var tMixin = typeof value != "number" ? [value] : [];
|
|
109
|
-
if(this.opt.styleFunc){
|
|
110
|
-
tMixin.push(this.opt.styleFunc(value));
|
|
111
|
-
}
|
|
112
|
-
finalTheme = t.addMixin(theme, "marker", tMixin, true);
|
|
113
|
-
}else{
|
|
114
|
-
finalTheme = t.post(theme, "marker");
|
|
115
|
-
}
|
|
116
|
-
var path = "M" + c.x + " " + c.y + " " + finalTheme.symbol;
|
|
117
|
-
if(finalTheme.marker.shadow){
|
|
118
|
-
shadowMarkers[i] = s.createPath("M" + (c.x + finalTheme.marker.shadow.dx) + " " +
|
|
119
|
-
(c.y + finalTheme.marker.shadow.dy) + " " + finalTheme.symbol).
|
|
120
|
-
setStroke(finalTheme.marker.shadow).setFill(finalTheme.marker.shadow.color);
|
|
121
|
-
if(this.animate){
|
|
122
|
-
this._animateScatter(shadowMarkers[i], dim.height - offsets.b);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if(finalTheme.marker.outline){
|
|
126
|
-
var outline = dc.makeStroke(finalTheme.marker.outline);
|
|
127
|
-
outline.width = 2 * outline.width + finalTheme.marker.stroke.width;
|
|
128
|
-
outlineMarkers[i] = s.createPath(path).setStroke(outline);
|
|
129
|
-
if(this.animate){
|
|
130
|
-
this._animateScatter(outlineMarkers[i], dim.height - offsets.b);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
var stroke = dc.makeStroke(finalTheme.marker.stroke),
|
|
134
|
-
fill = this._plotFill(finalTheme.marker.fill, dim, offsets);
|
|
135
|
-
if(fill && (fill.type === "linear" || fill.type == "radial")){
|
|
136
|
-
var color = gradutils.getColor(fill, {x: c.x, y: c.y});
|
|
137
|
-
if(stroke){
|
|
138
|
-
stroke.color = color;
|
|
139
|
-
}
|
|
140
|
-
frontMarkers[i] = s.createPath(path).setStroke(stroke).setFill(color);
|
|
141
|
-
}else{
|
|
142
|
-
frontMarkers[i] = s.createPath(path).setStroke(stroke).setFill(fill);
|
|
143
|
-
}
|
|
144
|
-
if(this.opt.labels){
|
|
145
|
-
var markerBox = frontMarkers[i].getBoundingBox();
|
|
146
|
-
this.createLabel(s, value, markerBox, finalTheme);
|
|
147
|
-
}
|
|
148
|
-
if(this.animate){
|
|
149
|
-
this._animateScatter(frontMarkers[i], dim.height - offsets.b);
|
|
150
|
-
}
|
|
151
|
-
}, this);
|
|
152
|
-
if(frontMarkers.length){
|
|
153
|
-
run.dyn.marker = theme.symbol;
|
|
154
|
-
run.dyn.markerStroke = frontMarkers[frontMarkers.length - 1].getStroke();
|
|
155
|
-
run.dyn.markerFill = frontMarkers[frontMarkers.length - 1].getFill();
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
if(events){
|
|
159
|
-
var eventSeries = new Array(frontMarkers.length);
|
|
160
|
-
arr.forEach(frontMarkers, function(s, i){
|
|
161
|
-
var o = {
|
|
162
|
-
element: "marker",
|
|
163
|
-
index: i,
|
|
164
|
-
run: run,
|
|
165
|
-
shape: s,
|
|
166
|
-
outline: outlineMarkers && outlineMarkers[i] || null,
|
|
167
|
-
shadow: shadowMarkers && shadowMarkers[i] || null,
|
|
168
|
-
cx: lpoly[i].x,
|
|
169
|
-
cy: lpoly[i].y
|
|
170
|
-
};
|
|
171
|
-
if(typeof run.data[0] == "number"){
|
|
172
|
-
o.x = i + 1;
|
|
173
|
-
o.y = run.data[i];
|
|
174
|
-
}else{
|
|
175
|
-
o.x = run.data[i].x;
|
|
176
|
-
o.y = run.data[i].y;
|
|
177
|
-
}
|
|
178
|
-
this._connectEvents(o);
|
|
179
|
-
eventSeries[i] = o;
|
|
180
|
-
}, this);
|
|
181
|
-
this._eventSeries[run.name] = eventSeries;
|
|
182
|
-
}else{
|
|
183
|
-
delete this._eventSeries[run.name];
|
|
184
|
-
}
|
|
185
|
-
run.dirty = false;
|
|
186
|
-
}
|
|
187
|
-
this.dirty = false;
|
|
188
|
-
// chart mirroring starts
|
|
189
|
-
if(has("dojo-bidi")){
|
|
190
|
-
this._checkOrientation(this.group, dim, offsets);
|
|
191
|
-
}
|
|
192
|
-
// chart mirroring ends
|
|
193
|
-
return this; // dojox/charting/plot2d/Scatter
|
|
194
|
-
},
|
|
195
|
-
_animateScatter: function(shape, offset){
|
|
196
|
-
fx.animateTransform(lang.delegate({
|
|
197
|
-
shape: shape,
|
|
198
|
-
duration: 1200,
|
|
199
|
-
transform: [
|
|
200
|
-
{name: "translate", start: [0, offset], end: [0, 0]},
|
|
201
|
-
{name: "scale", start: [0, 0], end: [1, 1]},
|
|
202
|
-
{name: "original"}
|
|
203
|
-
]
|
|
204
|
-
}, this.animate)).play();
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
});
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/charting/plot2d/Spider",["dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/_base/array","dojo/dom-geometry","dojo/_base/fx","dojo/fx","dojo/sniff","./Base","./_PlotEvents","./common","../axis2d/common","dojox/gfx","dojox/gfx/matrix","dojox/gfx/fx","dojox/lang/functional","dojox/lang/utils","dojo/fx/easing"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,dc,da,g,m,_b,df,du,_c){
|
|
3
|
-
var _d=0.2;
|
|
4
|
-
var _e=_2("dojox.charting.plot2d.Spider",[_9,_a],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:-10,labelStyle:"default",htmlLabels:true,startAngle:-90,divisions:3,axisColor:"",axisWidth:0,spiderColor:"",spiderWidth:0,seriesWidth:0,seriesFillAlpha:0.2,spiderOrigin:0.16,markerSize:3,spiderType:"polygon",animationType:_c.backOut,animate:null,axisTickFont:"",axisTickFontColor:"",axisFont:"",axisFontColor:""},optionalParams:{radius:0,font:"",fontColor:""},constructor:function(_f,_10){
|
|
5
|
-
this.opt=_1.clone(this.defaultParams);
|
|
6
|
-
du.updateWithObject(this.opt,_10);
|
|
7
|
-
du.updateWithPattern(this.opt,_10,this.optionalParams);
|
|
8
|
-
this.dyn=[];
|
|
9
|
-
this.datas={};
|
|
10
|
-
this.labelKey=[];
|
|
11
|
-
this.oldSeriePoints={};
|
|
12
|
-
this.animate=this.opt.animate===null?{}:this.opt.animate;
|
|
13
|
-
this.animations={};
|
|
14
|
-
},clear:function(){
|
|
15
|
-
this.inherited(arguments);
|
|
16
|
-
this.dyn=[];
|
|
17
|
-
this.axes=[];
|
|
18
|
-
this.datas={};
|
|
19
|
-
this.labelKey=[];
|
|
20
|
-
this.oldSeriePoints={};
|
|
21
|
-
this.animations={};
|
|
22
|
-
return this;
|
|
23
|
-
},setAxis:function(_11){
|
|
24
|
-
if(_11){
|
|
25
|
-
if(_11.opt.min!=undefined){
|
|
26
|
-
this.datas[_11.name].min=_11.opt.min;
|
|
27
|
-
}
|
|
28
|
-
if(_11.opt.max!=undefined){
|
|
29
|
-
this.datas[_11.name].max=_11.opt.max;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return this;
|
|
33
|
-
},addSeries:function(run){
|
|
34
|
-
this.series.push(run);
|
|
35
|
-
var key;
|
|
36
|
-
for(key in run.data){
|
|
37
|
-
var val=run.data[key],_12=this.datas[key];
|
|
38
|
-
if(_12){
|
|
39
|
-
_12.vlist.push(val);
|
|
40
|
-
_12.min=Math.min(_12.min,val);
|
|
41
|
-
_12.max=Math.max(_12.max,val);
|
|
42
|
-
}else{
|
|
43
|
-
var _13="__"+key;
|
|
44
|
-
this.axes.push(_13);
|
|
45
|
-
this[_13]=key;
|
|
46
|
-
this.datas[key]={min:val,max:val,vlist:[val]};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if(this.labelKey.length<=0){
|
|
50
|
-
for(key in run.data){
|
|
51
|
-
this.labelKey.push(key);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return this;
|
|
55
|
-
},getSeriesStats:function(){
|
|
56
|
-
return dc.collectSimpleStats(this.series);
|
|
57
|
-
},render:function(dim,_14){
|
|
58
|
-
if(!this.dirty){
|
|
59
|
-
return this;
|
|
60
|
-
}
|
|
61
|
-
this.dirty=false;
|
|
62
|
-
this.cleanGroup();
|
|
63
|
-
var s=this.group,t=this.chart.theme;
|
|
64
|
-
this.resetEvents();
|
|
65
|
-
if(!this.series||!this.series.length){
|
|
66
|
-
return this;
|
|
67
|
-
}
|
|
68
|
-
var o=this.opt,ta=t.axis,rx=(dim.width-_14.l-_14.r)/2,ry=(dim.height-_14.t-_14.b)/2,r=Math.min(rx,ry),_15=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font)||"normal normal normal 7pt Tahoma",_16=o.axisFont||(ta.tick&&ta.tick.titleFont)||"normal normal normal 11pt Tahoma",_17=o.axisTickFontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"silver",_18=o.axisFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_19=o.axisColor||(ta.tick&&ta.tick.axisColor)||"silver",_1a=o.spiderColor||(ta.tick&&ta.tick.spiderColor)||"silver",_1b=o.axisWidth||(ta.stroke&&ta.stroke.width)||2,_1c=o.spiderWidth||(ta.stroke&&ta.stroke.width)||2,_1d=o.seriesWidth||(ta.stroke&&ta.stroke.width)||2,_1e=g.normalizedLength(g.splitFontString(_16).size),_1f=m._degToRad(o.startAngle),_20=_1f,_21,_22,_23,_24,_25,_26,_27,_28,ro=o.spiderOrigin,dv=o.divisions>=3?o.divisions:3,ms=o.markerSize,spt=o.spiderType,at=o.animationType,_29=o.labelOffset<-10?o.labelOffset:-10,_2a=0.2,i,j,_2b,len,_2c,_2d,_2e,run,_2f,min,max,_30;
|
|
69
|
-
if(o.labels){
|
|
70
|
-
_21=_4.map(this.series,function(s){
|
|
71
|
-
return s.name;
|
|
72
|
-
},this);
|
|
73
|
-
_22=df.foldl1(df.map(_21,function(_31){
|
|
74
|
-
var _32=t.series.font;
|
|
75
|
-
return g._base._getTextBox(_31,{font:_32}).w;
|
|
76
|
-
},this),"Math.max(a, b)")/2;
|
|
77
|
-
r=Math.min(rx-2*_22,ry-_1e)+_29;
|
|
78
|
-
_23=r-_29;
|
|
79
|
-
}
|
|
80
|
-
if("radius" in o){
|
|
81
|
-
r=o.radius;
|
|
82
|
-
_23=r-_29;
|
|
83
|
-
}
|
|
84
|
-
r/=(1+_2a);
|
|
85
|
-
var _33={cx:_14.l+rx,cy:_14.t+ry,r:r};
|
|
86
|
-
for(i=this.series.length-1;i>=0;i--){
|
|
87
|
-
_2e=this.series[i];
|
|
88
|
-
if(!this.dirty&&!_2e.dirty){
|
|
89
|
-
t.skip();
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
_2e.cleanGroup();
|
|
93
|
-
run=_2e.data;
|
|
94
|
-
if(run!==null){
|
|
95
|
-
len=this._getObjectLength(run);
|
|
96
|
-
if(!_24||_24.length<=0){
|
|
97
|
-
_24=[],_25=[],_28=[];
|
|
98
|
-
this._buildPoints(_24,len,_33,r,_20,true,dim);
|
|
99
|
-
this._buildPoints(_25,len,_33,r*ro,_20,true,dim);
|
|
100
|
-
this._buildPoints(_28,len,_33,_23,_20,false,dim);
|
|
101
|
-
if(dv>2){
|
|
102
|
-
_26=[],_27=[];
|
|
103
|
-
for(j=0;j<dv-2;j++){
|
|
104
|
-
_26[j]=[];
|
|
105
|
-
this._buildPoints(_26[j],len,_33,r*(ro+(1-ro)*(j+1)/(dv-1)),_20,true,dim);
|
|
106
|
-
_27[j]=r*(ro+(1-ro)*(j+1)/(dv-1));
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
var _34=s.createGroup(),_35={color:_19,width:_1b},_36={color:_1a,width:_1c};
|
|
113
|
-
for(j=_24.length-1;j>=0;--j){
|
|
114
|
-
_2b=_24[j];
|
|
115
|
-
var st={x:_2b.x+(_2b.x-_33.cx)*_2a,y:_2b.y+(_2b.y-_33.cy)*_2a},nd={x:_2b.x+(_2b.x-_33.cx)*_2a/2,y:_2b.y+(_2b.y-_33.cy)*_2a/2};
|
|
116
|
-
_34.createLine({x1:_33.cx,y1:_33.cy,x2:st.x,y2:st.y}).setStroke(_35);
|
|
117
|
-
this._drawArrow(_34,st,nd,_35);
|
|
118
|
-
}
|
|
119
|
-
var _37=s.createGroup();
|
|
120
|
-
for(j=_28.length-1;j>=0;--j){
|
|
121
|
-
_2b=_28[j];
|
|
122
|
-
_2c=g._base._getTextBox(this.labelKey[j],{font:_16}).w||0;
|
|
123
|
-
_2d=this.opt.htmlLabels&&g.renderer!="vml"?"html":"gfx";
|
|
124
|
-
var _38=da.createText[_2d](this.chart,_37,(!_5.isBodyLtr()&&_2d=="html")?(_2b.x+_2c-dim.width):_2b.x,_2b.y,"middle",this.labelKey[j],_16,_18);
|
|
125
|
-
if(this.opt.htmlLabels){
|
|
126
|
-
this.htmlElements.push(_38);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
var _39=s.createGroup();
|
|
130
|
-
if(spt=="polygon"){
|
|
131
|
-
_39.createPolyline(_24).setStroke(_36);
|
|
132
|
-
_39.createPolyline(_25).setStroke(_36);
|
|
133
|
-
if(_26.length>0){
|
|
134
|
-
for(j=_26.length-1;j>=0;--j){
|
|
135
|
-
_39.createPolyline(_26[j]).setStroke(_36);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}else{
|
|
139
|
-
_39.createCircle({cx:_33.cx,cy:_33.cy,r:r}).setStroke(_36);
|
|
140
|
-
_39.createCircle({cx:_33.cx,cy:_33.cy,r:r*ro}).setStroke(_36);
|
|
141
|
-
if(_27.length>0){
|
|
142
|
-
for(j=_27.length-1;j>=0;--j){
|
|
143
|
-
_39.createCircle({cx:_33.cx,cy:_33.cy,r:_27[j]}).setStroke(_36);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
len=this._getObjectLength(this.datas);
|
|
148
|
-
var _3a=s.createGroup(),k=0;
|
|
149
|
-
for(var key in this.datas){
|
|
150
|
-
_2f=this.datas[key];
|
|
151
|
-
min=_2f.min;
|
|
152
|
-
max=_2f.max;
|
|
153
|
-
_30=max-min;
|
|
154
|
-
end=_20+2*Math.PI*k/len;
|
|
155
|
-
for(i=0;i<dv;i++){
|
|
156
|
-
var _3b=min+_30*i/(dv-1);
|
|
157
|
-
_2b=this._getCoordinate(_33,r*(ro+(1-ro)*i/(dv-1)),end,dim);
|
|
158
|
-
_3b=this._getLabel(_3b);
|
|
159
|
-
_2c=g._base._getTextBox(_3b,{font:_15}).w||0;
|
|
160
|
-
_2d=this.opt.htmlLabels&&g.renderer!="vml"?"html":"gfx";
|
|
161
|
-
if(this.opt.htmlLabels){
|
|
162
|
-
this.htmlElements.push(da.createText[_2d](this.chart,_3a,(!_5.isBodyLtr()&&_2d=="html")?(_2b.x+_2c-dim.width):_2b.x,_2b.y,"start",_3b,_15,_17));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
k++;
|
|
166
|
-
}
|
|
167
|
-
this.chart.seriesShapes={};
|
|
168
|
-
for(i=this.series.length-1;i>=0;i--){
|
|
169
|
-
_2e=this.series[i];
|
|
170
|
-
run=_2e.data;
|
|
171
|
-
if(run!==null){
|
|
172
|
-
var _3c=t.next("spider",[o,_2e]),f=g.normalizeColor(_3c.series.fill),sk={color:_3c.series.fill,width:_1d};
|
|
173
|
-
f.a=o.seriesFillAlpha;
|
|
174
|
-
_2e.dyn={fill:f,stroke:sk};
|
|
175
|
-
if(_2e.hidden){
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
178
|
-
var _3d=[],_3e=[];
|
|
179
|
-
k=0;
|
|
180
|
-
for(key in run){
|
|
181
|
-
_2f=this.datas[key];
|
|
182
|
-
min=_2f.min;
|
|
183
|
-
max=_2f.max;
|
|
184
|
-
_30=max-min;
|
|
185
|
-
var _3f=run[key],end=_20+2*Math.PI*k/len;
|
|
186
|
-
_2b=this._getCoordinate(_33,r*(ro+(1-ro)*(_3f-min)/_30),end,dim);
|
|
187
|
-
_3d.push(_2b);
|
|
188
|
-
_3e.push({sname:_2e.name,key:key,data:_3f});
|
|
189
|
-
k++;
|
|
190
|
-
}
|
|
191
|
-
_3d[_3d.length]=_3d[0];
|
|
192
|
-
_3e[_3e.length]=_3e[0];
|
|
193
|
-
var _40=this._getBoundary(_3d),ts=_2e.group;
|
|
194
|
-
var _41=this.oldSeriePoints[_2e.name];
|
|
195
|
-
var cs=this._createSeriesEntry(ts,(_41||_25),_3d,f,sk,r,ro,ms,at);
|
|
196
|
-
this.chart.seriesShapes[_2e.name]=cs;
|
|
197
|
-
this.oldSeriePoints[_2e.name]=_3d;
|
|
198
|
-
var po={element:"spider_poly",index:i,id:"spider_poly_"+_2e.name,run:_2e,plot:this,shape:cs.poly,parent:ts,brect:_40,cx:_33.cx,cy:_33.cy,cr:r,f:f,s:s};
|
|
199
|
-
this._connectEvents(po);
|
|
200
|
-
var so={element:"spider_plot",index:i,id:"spider_plot_"+_2e.name,run:_2e,plot:this,shape:_2e.group};
|
|
201
|
-
this._connectEvents(so);
|
|
202
|
-
_4.forEach(cs.circles,function(c,i){
|
|
203
|
-
var co={element:"spider_circle",index:i,id:"spider_circle_"+_2e.name+i,run:_2e,plot:this,shape:c,parent:ts,tdata:_3e[i],cx:_3d[i].x,cy:_3d[i].y,f:f,s:s};
|
|
204
|
-
this._connectEvents(co);
|
|
205
|
-
},this);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return this;
|
|
209
|
-
},_createSeriesEntry:function(ts,_42,sps,f,sk,r,ro,ms,at){
|
|
210
|
-
var _43=this.animate?_42:sps;
|
|
211
|
-
var _44=ts.createPolyline(_43).setFill(f).setStroke(sk),_45=[];
|
|
212
|
-
for(var j=0;j<_43.length;j++){
|
|
213
|
-
var _46=_43[j],cr=ms;
|
|
214
|
-
var _47=ts.createCircle({cx:_46.x,cy:_46.y,r:cr}).setFill(f).setStroke(sk);
|
|
215
|
-
_45.push(_47);
|
|
216
|
-
}
|
|
217
|
-
if(this.animate){
|
|
218
|
-
var _48=_4.map(sps,function(np,j){
|
|
219
|
-
var sp=_42[j],_49=new _6.Animation(_1.delegate({duration:1000,easing:at,curve:[sp.y,np.y]},this.animate));
|
|
220
|
-
var spl=_44,sc=_45[j];
|
|
221
|
-
_3.connect(_49,"onAnimate",function(y){
|
|
222
|
-
var _4a=spl.getShape();
|
|
223
|
-
_4a.points[j].y=y;
|
|
224
|
-
spl.setShape(_4a);
|
|
225
|
-
var _4b=sc.getShape();
|
|
226
|
-
_4b.cy=y;
|
|
227
|
-
sc.setShape(_4b);
|
|
228
|
-
});
|
|
229
|
-
return _49;
|
|
230
|
-
},this);
|
|
231
|
-
var _4c=_4.map(sps,function(np,j){
|
|
232
|
-
var sp=_42[j],_4d=new _6.Animation(_1.delegate({duration:1000,easing:at,curve:[sp.x,np.x]},this.animate));
|
|
233
|
-
var spl=_44,sc=_45[j];
|
|
234
|
-
_3.connect(_4d,"onAnimate",function(x){
|
|
235
|
-
var _4e=spl.getShape();
|
|
236
|
-
_4e.points[j].x=x;
|
|
237
|
-
spl.setShape(_4e);
|
|
238
|
-
var _4f=sc.getShape();
|
|
239
|
-
_4f.cx=x;
|
|
240
|
-
sc.setShape(_4f);
|
|
241
|
-
});
|
|
242
|
-
return _4d;
|
|
243
|
-
},this);
|
|
244
|
-
var _50=_7.combine(_48.concat(_4c));
|
|
245
|
-
_50.play();
|
|
246
|
-
}
|
|
247
|
-
return {group:ts,poly:_44,circles:_45};
|
|
248
|
-
},plotEvent:function(o){
|
|
249
|
-
if(o.element=="spider_plot"){
|
|
250
|
-
if(o.type=="onmouseover"&&!_8("ie")){
|
|
251
|
-
o.shape.moveToFront();
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
},tooltipFunc:function(o){
|
|
255
|
-
if(o.element=="spider_circle"){
|
|
256
|
-
return o.tdata.sname+"<br/>"+o.tdata.key+"<br/>"+o.tdata.data;
|
|
257
|
-
}else{
|
|
258
|
-
return null;
|
|
259
|
-
}
|
|
260
|
-
},_getBoundary:function(_51){
|
|
261
|
-
var _52=_51[0].x,_53=_51[0].x,_54=_51[0].y,_55=_51[0].y;
|
|
262
|
-
for(var i=0;i<_51.length;i++){
|
|
263
|
-
var _56=_51[i];
|
|
264
|
-
_52=Math.max(_56.x,_52);
|
|
265
|
-
_54=Math.max(_56.y,_54);
|
|
266
|
-
_53=Math.min(_56.x,_53);
|
|
267
|
-
_55=Math.min(_56.y,_55);
|
|
268
|
-
}
|
|
269
|
-
return {x:_53,y:_55,width:_52-_53,height:_54-_55};
|
|
270
|
-
},_drawArrow:function(s,_57,end,_58){
|
|
271
|
-
var len=Math.sqrt(Math.pow(end.x-_57.x,2)+Math.pow(end.y-_57.y,2)),sin=(end.y-_57.y)/len,cos=(end.x-_57.x)/len,_59={x:end.x+(len/3)*(-sin),y:end.y+(len/3)*cos},_5a={x:end.x+(len/3)*sin,y:end.y+(len/3)*(-cos)};
|
|
272
|
-
s.createPolyline([_57,_59,_5a]).setFill(_58.color).setStroke(_58);
|
|
273
|
-
},_buildPoints:function(_5b,_5c,_5d,_5e,_5f,_60,dim){
|
|
274
|
-
for(var i=0;i<_5c;i++){
|
|
275
|
-
var end=_5f+2*Math.PI*i/_5c;
|
|
276
|
-
_5b.push(this._getCoordinate(_5d,_5e,end,dim));
|
|
277
|
-
}
|
|
278
|
-
if(_60){
|
|
279
|
-
_5b.push(this._getCoordinate(_5d,_5e,_5f+2*Math.PI,dim));
|
|
280
|
-
}
|
|
281
|
-
},_getCoordinate:function(_61,_62,_63,dim){
|
|
282
|
-
var x=_61.cx+_62*Math.cos(_63);
|
|
283
|
-
if(_8("dojo-bidi")&&this.chart.isRightToLeft()&&dim){
|
|
284
|
-
x=dim.width-x;
|
|
285
|
-
}
|
|
286
|
-
return {x:x,y:_61.cy+_62*Math.sin(_63)};
|
|
287
|
-
},_getObjectLength:function(obj){
|
|
288
|
-
var _64=0;
|
|
289
|
-
if(_1.isObject(obj)){
|
|
290
|
-
for(var key in obj){
|
|
291
|
-
_64++;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
return _64;
|
|
295
|
-
},_getLabel:function(_65){
|
|
296
|
-
return dc.getLabel(_65,this.opt.fixed,this.opt.precision);
|
|
297
|
-
}});
|
|
298
|
-
return _e;
|
|
299
|
-
});
|