@datagrok/helm 2.13.7 → 3.0.0
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/CREDITS.md +164 -0
- package/dist/489.js +2 -0
- package/dist/489.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/files/samples/helm-showcase.csv +56 -0
- package/package.json +6 -10
- package/src/helm-helper.ts +61 -413
- 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/test-console-output-1.log +103 -706
- package/test-record-1.mp4 +0 -0
- package/webpack.config.js +1 -12
- package/dist/455.js +0 -2
- package/dist/455.js.map +0 -1
- package/dist/package-dojo.js +0 -2
- package/dist/package-dojo.js.map +0 -1
- 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/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,297 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/gfx/fx",["dojo/_base/lang","./_base","./matrix","dojo/_base/Color","dojo/_base/array","dojo/_base/fx","dojo/_base/connect","dojo/sniff"],function(_1,g,m,_2,_3,fx,_4,_5){
|
|
3
|
-
var _6=g.fx={};
|
|
4
|
-
function _7(_8,_9){
|
|
5
|
-
this.start=_8,this.end=_9;
|
|
6
|
-
};
|
|
7
|
-
_7.prototype.getValue=function(r){
|
|
8
|
-
return (this.end-this.start)*r+this.start;
|
|
9
|
-
};
|
|
10
|
-
function _a(_b,_c,_d){
|
|
11
|
-
this.start=_b,this.end=_c;
|
|
12
|
-
this.units=_d;
|
|
13
|
-
};
|
|
14
|
-
_a.prototype.getValue=function(r){
|
|
15
|
-
return (this.end-this.start)*r+this.start+this.units;
|
|
16
|
-
};
|
|
17
|
-
function _e(_f,end){
|
|
18
|
-
this.start=_f,this.end=end;
|
|
19
|
-
this.temp=new _2();
|
|
20
|
-
};
|
|
21
|
-
_e.prototype.getValue=function(r){
|
|
22
|
-
return _2.blendColors(this.start,this.end,r,this.temp);
|
|
23
|
-
};
|
|
24
|
-
function _10(_11){
|
|
25
|
-
this.values=_11;
|
|
26
|
-
this.length=_11.length;
|
|
27
|
-
};
|
|
28
|
-
_10.prototype.getValue=function(r){
|
|
29
|
-
return this.values[Math.min(Math.floor(r*this.length),this.length-1)];
|
|
30
|
-
};
|
|
31
|
-
function _12(_13,def){
|
|
32
|
-
this.values=_13;
|
|
33
|
-
this.def=def?def:{};
|
|
34
|
-
};
|
|
35
|
-
_12.prototype.getValue=function(r){
|
|
36
|
-
var ret=_1.clone(this.def);
|
|
37
|
-
for(var i in this.values){
|
|
38
|
-
ret[i]=this.values[i].getValue(r);
|
|
39
|
-
}
|
|
40
|
-
return ret;
|
|
41
|
-
};
|
|
42
|
-
function _14(_15,_16){
|
|
43
|
-
this.stack=_15;
|
|
44
|
-
this.original=_16;
|
|
45
|
-
};
|
|
46
|
-
_14.prototype.getValue=function(r){
|
|
47
|
-
var ret=[];
|
|
48
|
-
_3.forEach(this.stack,function(t){
|
|
49
|
-
if(t instanceof m.Matrix2D){
|
|
50
|
-
ret.push(t);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
if(t.name=="original"&&this.original){
|
|
54
|
-
ret.push(this.original);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
if(t.name=="matrix"){
|
|
58
|
-
if((t.start instanceof m.Matrix2D)&&(t.end instanceof m.Matrix2D)){
|
|
59
|
-
var _17=new m.Matrix2D();
|
|
60
|
-
for(var p in t.start){
|
|
61
|
-
_17[p]=(t.end[p]-t.start[p])*r+t.start[p];
|
|
62
|
-
}
|
|
63
|
-
ret.push(_17);
|
|
64
|
-
}
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if(!(t.name in m)){
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
var f=m[t.name];
|
|
71
|
-
if(typeof f!="function"){
|
|
72
|
-
ret.push(f);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
var val=_3.map(t.start,function(v,i){
|
|
76
|
-
return (t.end[i]-v)*r+v;
|
|
77
|
-
}),_18=f.apply(m,val);
|
|
78
|
-
if(_18 instanceof m.Matrix2D){
|
|
79
|
-
ret.push(_18);
|
|
80
|
-
}
|
|
81
|
-
},this);
|
|
82
|
-
return ret;
|
|
83
|
-
};
|
|
84
|
-
var _19=new _2(0,0,0,0);
|
|
85
|
-
function _1a(_1b,obj,_1c,def){
|
|
86
|
-
if(_1b.values){
|
|
87
|
-
return new _10(_1b.values);
|
|
88
|
-
}
|
|
89
|
-
var _1d,_1e,end;
|
|
90
|
-
if(_1b.start){
|
|
91
|
-
_1e=g.normalizeColor(_1b.start);
|
|
92
|
-
}else{
|
|
93
|
-
_1e=_1d=obj?(_1c?obj[_1c]:obj):def;
|
|
94
|
-
}
|
|
95
|
-
if(_1b.end){
|
|
96
|
-
end=g.normalizeColor(_1b.end);
|
|
97
|
-
}else{
|
|
98
|
-
if(!_1d){
|
|
99
|
-
_1d=obj?(_1c?obj[_1c]:obj):def;
|
|
100
|
-
}
|
|
101
|
-
end=_1d;
|
|
102
|
-
}
|
|
103
|
-
return new _e(_1e,end);
|
|
104
|
-
};
|
|
105
|
-
function _1f(_20,obj,_21,def){
|
|
106
|
-
if(_20.values){
|
|
107
|
-
return new _10(_20.values);
|
|
108
|
-
}
|
|
109
|
-
var _22,_23,end;
|
|
110
|
-
if(_20.start){
|
|
111
|
-
_23=_20.start;
|
|
112
|
-
}else{
|
|
113
|
-
_23=_22=obj?obj[_21]:def;
|
|
114
|
-
}
|
|
115
|
-
if(_20.end){
|
|
116
|
-
end=_20.end;
|
|
117
|
-
}else{
|
|
118
|
-
if(typeof _22!="number"){
|
|
119
|
-
_22=obj?obj[_21]:def;
|
|
120
|
-
}
|
|
121
|
-
end=_22;
|
|
122
|
-
}
|
|
123
|
-
return new _7(_23,end);
|
|
124
|
-
};
|
|
125
|
-
_6.animateStroke=function(_24){
|
|
126
|
-
if(!_24.easing){
|
|
127
|
-
_24.easing=fx._defaultEasing;
|
|
128
|
-
}
|
|
129
|
-
var _25=new fx.Animation(_24),_26=_24.shape,_27;
|
|
130
|
-
_4.connect(_25,"beforeBegin",_25,function(){
|
|
131
|
-
_27=_26.getStroke();
|
|
132
|
-
var _28=_24.color,_29={},_2a,_2b,end;
|
|
133
|
-
if(_28){
|
|
134
|
-
_29.color=_1a(_28,_27,"color",_19);
|
|
135
|
-
}
|
|
136
|
-
_28=_24.style;
|
|
137
|
-
if(_28&&_28.values){
|
|
138
|
-
_29.style=new _10(_28.values);
|
|
139
|
-
}
|
|
140
|
-
_28=_24.width;
|
|
141
|
-
if(_28){
|
|
142
|
-
_29.width=_1f(_28,_27,"width",1);
|
|
143
|
-
}
|
|
144
|
-
_28=_24.cap;
|
|
145
|
-
if(_28&&_28.values){
|
|
146
|
-
_29.cap=new _10(_28.values);
|
|
147
|
-
}
|
|
148
|
-
_28=_24.join;
|
|
149
|
-
if(_28){
|
|
150
|
-
if(_28.values){
|
|
151
|
-
_29.join=new _10(_28.values);
|
|
152
|
-
}else{
|
|
153
|
-
_2b=_28.start?_28.start:(_27&&_27.join||0);
|
|
154
|
-
end=_28.end?_28.end:(_27&&_27.join||0);
|
|
155
|
-
if(typeof _2b=="number"&&typeof end=="number"){
|
|
156
|
-
_29.join=new _7(_2b,end);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
this.curve=new _12(_29,_27);
|
|
161
|
-
});
|
|
162
|
-
_4.connect(_25,"onAnimate",_26,"setStroke");
|
|
163
|
-
return _25;
|
|
164
|
-
};
|
|
165
|
-
_6.animateFill=function(_2c){
|
|
166
|
-
if(!_2c.easing){
|
|
167
|
-
_2c.easing=fx._defaultEasing;
|
|
168
|
-
}
|
|
169
|
-
var _2d=new fx.Animation(_2c),_2e=_2c.shape,_2f;
|
|
170
|
-
_4.connect(_2d,"beforeBegin",_2d,function(){
|
|
171
|
-
_2f=_2e.getFill();
|
|
172
|
-
var _30=_2c.color,_31={};
|
|
173
|
-
if(_30){
|
|
174
|
-
this.curve=_1a(_30,_2f,"",_19);
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
_4.connect(_2d,"onAnimate",_2e,"setFill");
|
|
178
|
-
return _2d;
|
|
179
|
-
};
|
|
180
|
-
_6.animateFont=function(_32){
|
|
181
|
-
if(!_32.easing){
|
|
182
|
-
_32.easing=fx._defaultEasing;
|
|
183
|
-
}
|
|
184
|
-
var _33=new fx.Animation(_32),_34=_32.shape,_35;
|
|
185
|
-
_4.connect(_33,"beforeBegin",_33,function(){
|
|
186
|
-
_35=_34.getFont();
|
|
187
|
-
var _36=_32.style,_37={},_38,_39,end;
|
|
188
|
-
if(_36&&_36.values){
|
|
189
|
-
_37.style=new _10(_36.values);
|
|
190
|
-
}
|
|
191
|
-
_36=_32.variant;
|
|
192
|
-
if(_36&&_36.values){
|
|
193
|
-
_37.variant=new _10(_36.values);
|
|
194
|
-
}
|
|
195
|
-
_36=_32.weight;
|
|
196
|
-
if(_36&&_36.values){
|
|
197
|
-
_37.weight=new _10(_36.values);
|
|
198
|
-
}
|
|
199
|
-
_36=_32.family;
|
|
200
|
-
if(_36&&_36.values){
|
|
201
|
-
_37.family=new _10(_36.values);
|
|
202
|
-
}
|
|
203
|
-
_36=_32.size;
|
|
204
|
-
if(_36&&_36.units){
|
|
205
|
-
_39=parseFloat(_36.start?_36.start:(_34.font&&_34.font.size||"0"));
|
|
206
|
-
end=parseFloat(_36.end?_36.end:(_34.font&&_34.font.size||"0"));
|
|
207
|
-
_37.size=new _a(_39,end,_36.units);
|
|
208
|
-
}
|
|
209
|
-
this.curve=new _12(_37,_35);
|
|
210
|
-
});
|
|
211
|
-
_4.connect(_33,"onAnimate",_34,"setFont");
|
|
212
|
-
return _33;
|
|
213
|
-
};
|
|
214
|
-
_6.animateTransform=function(_3a){
|
|
215
|
-
if(!_3a.easing){
|
|
216
|
-
_3a.easing=fx._defaultEasing;
|
|
217
|
-
}
|
|
218
|
-
var _3b=new fx.Animation(_3a),_3c=_3a.shape,_3d;
|
|
219
|
-
_4.connect(_3b,"beforeBegin",_3b,function(){
|
|
220
|
-
_3d=_3c.getTransform();
|
|
221
|
-
this.curve=new _14(_3a.transform,_3d);
|
|
222
|
-
});
|
|
223
|
-
_4.connect(_3b,"onAnimate",_3c,"setTransform");
|
|
224
|
-
if(g.renderer==="svg"&&(_5("ie")>=9||_5("ff"))){
|
|
225
|
-
var _3e=[_4.connect(_3b,"onBegin",_3b,function(){
|
|
226
|
-
var _3f=_3c.getParent();
|
|
227
|
-
while(_3f&&_3f.getParent){
|
|
228
|
-
_3f=_3f.getParent();
|
|
229
|
-
}
|
|
230
|
-
if(_3f){
|
|
231
|
-
_3c.__svgContainer=_3f.rawNode.parentNode;
|
|
232
|
-
_3c.__svgRoot=_3f.rawNode;
|
|
233
|
-
if(_3c.__svgRoot&&_3c.__svgRoot.getAttribute){
|
|
234
|
-
_3c.__svgWidth=parseInt(_3c.__svgRoot.getAttribute("width"),10);
|
|
235
|
-
if(isNaN(_3c.__svgWidth)){
|
|
236
|
-
delete _3c.__svgWidth;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}),_4.connect(_3b,"onAnimate",_3b,function(){
|
|
241
|
-
try{
|
|
242
|
-
if(_3c.__svgContainer){
|
|
243
|
-
var ov=_3c.__svgContainer.style.visibility;
|
|
244
|
-
_3c.__svgContainer.style.visibility="visible";
|
|
245
|
-
var _40=_3c.__svgContainer.offsetHeight;
|
|
246
|
-
_3c.__svgContainer.style.visibility=ov;
|
|
247
|
-
var _41=_3c.__svgWidth;
|
|
248
|
-
if(!isNaN(_41)){
|
|
249
|
-
try{
|
|
250
|
-
_3c.__svgRoot.setAttribute("width",_41-0.000005);
|
|
251
|
-
_3c.__svgRoot.setAttribute("width",_41);
|
|
252
|
-
}
|
|
253
|
-
catch(ignore){
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
catch(e){
|
|
259
|
-
}
|
|
260
|
-
}),_4.connect(_3b,"onEnd",_3b,function(){
|
|
261
|
-
_3.forEach(_3e,_4.disconnect);
|
|
262
|
-
if(_3c.__svgContainer){
|
|
263
|
-
var sn=_3c.__svgContainer;
|
|
264
|
-
if(sn.getAttribute("__gotVis")==null){
|
|
265
|
-
sn.setAttribute("__gotVis",true);
|
|
266
|
-
var ov=_3c.__svgContainer.style.visibility;
|
|
267
|
-
var _42=_3c.__svgRoot;
|
|
268
|
-
var _43=_3c.__svgWidth;
|
|
269
|
-
sn.style.visibility="visible";
|
|
270
|
-
setTimeout(function(){
|
|
271
|
-
try{
|
|
272
|
-
sn.style.visibility=ov;
|
|
273
|
-
sn.removeAttribute("__gotVis");
|
|
274
|
-
sn=null;
|
|
275
|
-
try{
|
|
276
|
-
if(!isNaN(_43)){
|
|
277
|
-
_42.setAttribute("width",_43-0.000005);
|
|
278
|
-
_42.setAttribute("width",_43);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
catch(ignore){
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
catch(e){
|
|
285
|
-
}
|
|
286
|
-
},100);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
delete _3c.__svgContainer;
|
|
290
|
-
delete _3c.__svgRoot;
|
|
291
|
-
delete _3c.__svgWidth;
|
|
292
|
-
})];
|
|
293
|
-
}
|
|
294
|
-
return _3b;
|
|
295
|
-
};
|
|
296
|
-
return _6;
|
|
297
|
-
});
|
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
define("dojox/gfx/fx", ["dojo/_base/lang", "./_base", "./matrix", "dojo/_base/Color", "dojo/_base/array", "dojo/_base/fx", "dojo/_base/connect", "dojo/sniff"],
|
|
2
|
-
function(lang, g, m, Color, arr, fx, Hub, has){
|
|
3
|
-
var fxg = g.fx = {};
|
|
4
|
-
|
|
5
|
-
// Generic interpolators. Should they be moved to dojox.fx?
|
|
6
|
-
|
|
7
|
-
function InterpolNumber(start, end){
|
|
8
|
-
this.start = start, this.end = end;
|
|
9
|
-
}
|
|
10
|
-
InterpolNumber.prototype.getValue = function(r){
|
|
11
|
-
return (this.end - this.start) * r + this.start;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
function InterpolUnit(start, end, units){
|
|
15
|
-
this.start = start, this.end = end;
|
|
16
|
-
this.units = units;
|
|
17
|
-
}
|
|
18
|
-
InterpolUnit.prototype.getValue = function(r){
|
|
19
|
-
return (this.end - this.start) * r + this.start + this.units;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
function InterpolColor(start, end){
|
|
23
|
-
this.start = start, this.end = end;
|
|
24
|
-
this.temp = new Color();
|
|
25
|
-
}
|
|
26
|
-
InterpolColor.prototype.getValue = function(r){
|
|
27
|
-
return Color.blendColors(this.start, this.end, r, this.temp);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function InterpolValues(values){
|
|
31
|
-
this.values = values;
|
|
32
|
-
this.length = values.length;
|
|
33
|
-
}
|
|
34
|
-
InterpolValues.prototype.getValue = function(r){
|
|
35
|
-
return this.values[Math.min(Math.floor(r * this.length), this.length - 1)];
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
function InterpolObject(values, def){
|
|
39
|
-
this.values = values;
|
|
40
|
-
this.def = def ? def : {};
|
|
41
|
-
}
|
|
42
|
-
InterpolObject.prototype.getValue = function(r){
|
|
43
|
-
var ret = lang.clone(this.def);
|
|
44
|
-
for(var i in this.values){
|
|
45
|
-
ret[i] = this.values[i].getValue(r);
|
|
46
|
-
}
|
|
47
|
-
return ret;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
function InterpolTransform(stack, original){
|
|
51
|
-
this.stack = stack;
|
|
52
|
-
this.original = original;
|
|
53
|
-
}
|
|
54
|
-
InterpolTransform.prototype.getValue = function(r){
|
|
55
|
-
var ret = [];
|
|
56
|
-
arr.forEach(this.stack, function(t){
|
|
57
|
-
if(t instanceof m.Matrix2D){
|
|
58
|
-
ret.push(t);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if(t.name == "original" && this.original){
|
|
62
|
-
ret.push(this.original);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
// Adding support for custom matrices
|
|
66
|
-
if(t.name == "matrix"){
|
|
67
|
-
if((t.start instanceof m.Matrix2D) && (t.end instanceof m.Matrix2D)){
|
|
68
|
-
var transfMatrix = new m.Matrix2D();
|
|
69
|
-
for(var p in t.start) {
|
|
70
|
-
transfMatrix[p] = (t.end[p] - t.start[p])*r + t.start[p];
|
|
71
|
-
}
|
|
72
|
-
ret.push(transfMatrix);
|
|
73
|
-
}
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
if(!(t.name in m)){ return; }
|
|
77
|
-
var f = m[t.name];
|
|
78
|
-
if(typeof f != "function"){
|
|
79
|
-
// constant
|
|
80
|
-
ret.push(f);
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
var val = arr.map(t.start, function(v, i){
|
|
84
|
-
return (t.end[i] - v) * r + v;
|
|
85
|
-
}),
|
|
86
|
-
matrix = f.apply(m, val);
|
|
87
|
-
if(matrix instanceof m.Matrix2D){
|
|
88
|
-
ret.push(matrix);
|
|
89
|
-
}
|
|
90
|
-
}, this);
|
|
91
|
-
return ret;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
var transparent = new Color(0, 0, 0, 0);
|
|
95
|
-
|
|
96
|
-
function getColorInterpol(prop, obj, name, def){
|
|
97
|
-
if(prop.values){
|
|
98
|
-
return new InterpolValues(prop.values);
|
|
99
|
-
}
|
|
100
|
-
var value, start, end;
|
|
101
|
-
if(prop.start){
|
|
102
|
-
start = g.normalizeColor(prop.start);
|
|
103
|
-
}else{
|
|
104
|
-
start = value = obj ? (name ? obj[name] : obj) : def;
|
|
105
|
-
}
|
|
106
|
-
if(prop.end){
|
|
107
|
-
end = g.normalizeColor(prop.end);
|
|
108
|
-
}else{
|
|
109
|
-
if(!value){
|
|
110
|
-
value = obj ? (name ? obj[name] : obj) : def;
|
|
111
|
-
}
|
|
112
|
-
end = value;
|
|
113
|
-
}
|
|
114
|
-
return new InterpolColor(start, end);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function getNumberInterpol(prop, obj, name, def){
|
|
118
|
-
if(prop.values){
|
|
119
|
-
return new InterpolValues(prop.values);
|
|
120
|
-
}
|
|
121
|
-
var value, start, end;
|
|
122
|
-
if(prop.start){
|
|
123
|
-
start = prop.start;
|
|
124
|
-
}else{
|
|
125
|
-
start = value = obj ? obj[name] : def;
|
|
126
|
-
}
|
|
127
|
-
if(prop.end){
|
|
128
|
-
end = prop.end;
|
|
129
|
-
}else{
|
|
130
|
-
if(typeof value != "number"){
|
|
131
|
-
value = obj ? obj[name] : def;
|
|
132
|
-
}
|
|
133
|
-
end = value;
|
|
134
|
-
}
|
|
135
|
-
return new InterpolNumber(start, end);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
fxg.animateStroke = function(/*Object*/ args){
|
|
139
|
-
// summary:
|
|
140
|
-
// Returns an animation which will change stroke properties over time.
|
|
141
|
-
// args:
|
|
142
|
-
// an object defining the animation setting.
|
|
143
|
-
// example:
|
|
144
|
-
// | fxg.animateStroke{{
|
|
145
|
-
// | shape: shape,
|
|
146
|
-
// | duration: 500,
|
|
147
|
-
// | color: {start: "red", end: "green"},
|
|
148
|
-
// | width: {end: 15},
|
|
149
|
-
// | join: {values: ["miter", "bevel", "round"]}
|
|
150
|
-
// | }).play();
|
|
151
|
-
if(!args.easing){ args.easing = fx._defaultEasing; }
|
|
152
|
-
var anim = new fx.Animation(args), shape = args.shape, stroke;
|
|
153
|
-
Hub.connect(anim, "beforeBegin", anim, function(){
|
|
154
|
-
stroke = shape.getStroke();
|
|
155
|
-
var prop = args.color, values = {}, value, start, end;
|
|
156
|
-
if(prop){
|
|
157
|
-
values.color = getColorInterpol(prop, stroke, "color", transparent);
|
|
158
|
-
}
|
|
159
|
-
prop = args.style;
|
|
160
|
-
if(prop && prop.values){
|
|
161
|
-
values.style = new InterpolValues(prop.values);
|
|
162
|
-
}
|
|
163
|
-
prop = args.width;
|
|
164
|
-
if(prop){
|
|
165
|
-
values.width = getNumberInterpol(prop, stroke, "width", 1);
|
|
166
|
-
}
|
|
167
|
-
prop = args.cap;
|
|
168
|
-
if(prop && prop.values){
|
|
169
|
-
values.cap = new InterpolValues(prop.values);
|
|
170
|
-
}
|
|
171
|
-
prop = args.join;
|
|
172
|
-
if(prop){
|
|
173
|
-
if(prop.values){
|
|
174
|
-
values.join = new InterpolValues(prop.values);
|
|
175
|
-
}else{
|
|
176
|
-
start = prop.start ? prop.start : (stroke && stroke.join || 0);
|
|
177
|
-
end = prop.end ? prop.end : (stroke && stroke.join || 0);
|
|
178
|
-
if(typeof start == "number" && typeof end == "number"){
|
|
179
|
-
values.join = new InterpolNumber(start, end);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
this.curve = new InterpolObject(values, stroke);
|
|
184
|
-
});
|
|
185
|
-
Hub.connect(anim, "onAnimate", shape, "setStroke");
|
|
186
|
-
return anim; // dojo.Animation
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
fxg.animateFill = function(/*Object*/ args){
|
|
190
|
-
// summary:
|
|
191
|
-
// Returns an animation which will change fill color over time.
|
|
192
|
-
// Only solid fill color is supported at the moment
|
|
193
|
-
// args:
|
|
194
|
-
// an object defining the animation setting.
|
|
195
|
-
// example:
|
|
196
|
-
// | gfx.animateFill{{
|
|
197
|
-
// | shape: shape,
|
|
198
|
-
// | duration: 500,
|
|
199
|
-
// | color: {start: "red", end: "green"}
|
|
200
|
-
// | }).play();
|
|
201
|
-
if(!args.easing){ args.easing = fx._defaultEasing; }
|
|
202
|
-
var anim = new fx.Animation(args), shape = args.shape, fill;
|
|
203
|
-
Hub.connect(anim, "beforeBegin", anim, function(){
|
|
204
|
-
fill = shape.getFill();
|
|
205
|
-
var prop = args.color, values = {};
|
|
206
|
-
if(prop){
|
|
207
|
-
this.curve = getColorInterpol(prop, fill, "", transparent);
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
Hub.connect(anim, "onAnimate", shape, "setFill");
|
|
211
|
-
return anim; // dojo.Animation
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
fxg.animateFont = function(/*Object*/ args){
|
|
215
|
-
// summary:
|
|
216
|
-
// Returns an animation which will change font properties over time.
|
|
217
|
-
// args:
|
|
218
|
-
// an object defining the animation setting.
|
|
219
|
-
// example:
|
|
220
|
-
// | gfx.animateFont{{
|
|
221
|
-
// | shape: shape,
|
|
222
|
-
// | duration: 500,
|
|
223
|
-
// | variant: {values: ["normal", "small-caps"]},
|
|
224
|
-
// | size: {end: 10, units: "pt"}
|
|
225
|
-
// | }).play();
|
|
226
|
-
if(!args.easing){ args.easing = fx._defaultEasing; }
|
|
227
|
-
var anim = new fx.Animation(args), shape = args.shape, font;
|
|
228
|
-
Hub.connect(anim, "beforeBegin", anim, function(){
|
|
229
|
-
font = shape.getFont();
|
|
230
|
-
var prop = args.style, values = {}, value, start, end;
|
|
231
|
-
if(prop && prop.values){
|
|
232
|
-
values.style = new InterpolValues(prop.values);
|
|
233
|
-
}
|
|
234
|
-
prop = args.variant;
|
|
235
|
-
if(prop && prop.values){
|
|
236
|
-
values.variant = new InterpolValues(prop.values);
|
|
237
|
-
}
|
|
238
|
-
prop = args.weight;
|
|
239
|
-
if(prop && prop.values){
|
|
240
|
-
values.weight = new InterpolValues(prop.values);
|
|
241
|
-
}
|
|
242
|
-
prop = args.family;
|
|
243
|
-
if(prop && prop.values){
|
|
244
|
-
values.family = new InterpolValues(prop.values);
|
|
245
|
-
}
|
|
246
|
-
prop = args.size;
|
|
247
|
-
if(prop && prop.units){
|
|
248
|
-
start = parseFloat(prop.start ? prop.start : (shape.font && shape.font.size || "0"));
|
|
249
|
-
end = parseFloat(prop.end ? prop.end : (shape.font && shape.font.size || "0"));
|
|
250
|
-
values.size = new InterpolUnit(start, end, prop.units);
|
|
251
|
-
}
|
|
252
|
-
this.curve = new InterpolObject(values, font);
|
|
253
|
-
});
|
|
254
|
-
Hub.connect(anim, "onAnimate", shape, "setFont");
|
|
255
|
-
return anim; // dojo.Animation
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
fxg.animateTransform = function(/*Object*/ args){
|
|
259
|
-
// summary:
|
|
260
|
-
// Returns an animation which will change transformation over time.
|
|
261
|
-
// args:
|
|
262
|
-
// an object defining the animation setting.
|
|
263
|
-
// example:
|
|
264
|
-
// | gfx.animateTransform{{
|
|
265
|
-
// | shape: shape,
|
|
266
|
-
// | duration: 500,
|
|
267
|
-
// | transform: [
|
|
268
|
-
// | {name: "translate", start: [0, 0], end: [200, 200]},
|
|
269
|
-
// | {name: "original"}
|
|
270
|
-
// | ]
|
|
271
|
-
// | }).play();
|
|
272
|
-
if(!args.easing){ args.easing = fx._defaultEasing; }
|
|
273
|
-
var anim = new fx.Animation(args), shape = args.shape, original;
|
|
274
|
-
Hub.connect(anim, "beforeBegin", anim, function(){
|
|
275
|
-
original = shape.getTransform();
|
|
276
|
-
this.curve = new InterpolTransform(args.transform, original);
|
|
277
|
-
});
|
|
278
|
-
Hub.connect(anim, "onAnimate", shape, "setTransform");
|
|
279
|
-
if(g.renderer === "svg" && (has("ie") >= 9 || has("ff"))){
|
|
280
|
-
// fix http://bugs.dojotoolkit.org/ticket/16879
|
|
281
|
-
var handlers = [
|
|
282
|
-
Hub.connect(anim, "onBegin", anim, function(){
|
|
283
|
-
var parent = shape.getParent();
|
|
284
|
-
while(parent && parent.getParent){
|
|
285
|
-
parent = parent.getParent();
|
|
286
|
-
}
|
|
287
|
-
if(parent){
|
|
288
|
-
shape.__svgContainer = parent.rawNode.parentNode;
|
|
289
|
-
shape.__svgRoot = parent.rawNode;
|
|
290
|
-
if(shape.__svgRoot && shape.__svgRoot.getAttribute){
|
|
291
|
-
shape.__svgWidth = parseInt(shape.__svgRoot.getAttribute("width"), 10);
|
|
292
|
-
if(isNaN(shape.__svgWidth)){
|
|
293
|
-
delete shape.__svgWidth;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}),
|
|
298
|
-
Hub.connect(anim, "onAnimate", anim, function(){
|
|
299
|
-
try{
|
|
300
|
-
if(shape.__svgContainer){
|
|
301
|
-
var ov = shape.__svgContainer.style.visibility;
|
|
302
|
-
shape.__svgContainer.style.visibility = "visible";
|
|
303
|
-
var pokeNode = shape.__svgContainer.offsetHeight;
|
|
304
|
-
shape.__svgContainer.style.visibility = ov;
|
|
305
|
-
var width = shape.__svgWidth;
|
|
306
|
-
if(!isNaN(width)){
|
|
307
|
-
try{
|
|
308
|
-
shape.__svgRoot.setAttribute("width", width - 0.000005);
|
|
309
|
-
shape.__svgRoot.setAttribute("width", width);
|
|
310
|
-
}catch(ignore){}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}catch(e){}
|
|
314
|
-
}),
|
|
315
|
-
Hub.connect(anim, "onEnd", anim, function(){
|
|
316
|
-
arr.forEach(handlers, Hub.disconnect);
|
|
317
|
-
if(shape.__svgContainer){
|
|
318
|
-
var sn = shape.__svgContainer;
|
|
319
|
-
if(sn.getAttribute("__gotVis") == null){
|
|
320
|
-
sn.setAttribute("__gotVis", true);
|
|
321
|
-
var ov = shape.__svgContainer.style.visibility;
|
|
322
|
-
var root = shape.__svgRoot;
|
|
323
|
-
var width = shape.__svgWidth;
|
|
324
|
-
sn.style.visibility = "visible";
|
|
325
|
-
setTimeout(function(){
|
|
326
|
-
try{
|
|
327
|
-
sn.style.visibility = ov;
|
|
328
|
-
sn.removeAttribute("__gotVis");
|
|
329
|
-
sn = null;
|
|
330
|
-
try{
|
|
331
|
-
if(!isNaN(width)){
|
|
332
|
-
root.setAttribute("width", width - 0.000005);
|
|
333
|
-
root.setAttribute("width", width);
|
|
334
|
-
}
|
|
335
|
-
}catch(ignore){}
|
|
336
|
-
}catch(e){}
|
|
337
|
-
},100);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
delete shape.__svgContainer;
|
|
341
|
-
delete shape.__svgRoot;
|
|
342
|
-
delete shape.__svgWidth;
|
|
343
|
-
})
|
|
344
|
-
];
|
|
345
|
-
}
|
|
346
|
-
return anim; // dojo.Animation
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
return fxg;
|
|
350
|
-
});
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
//>>built
|
|
2
|
-
define("dojox/gfx/gradutils",["./_base","dojo/_base/lang","./matrix","dojo/_base/Color"],function(g,_1,m,_2){
|
|
3
|
-
var _3=g.gradutils={};
|
|
4
|
-
function _4(o,c){
|
|
5
|
-
if(o<=0){
|
|
6
|
-
return c[0].color;
|
|
7
|
-
}
|
|
8
|
-
var _5=c.length;
|
|
9
|
-
if(o>=1){
|
|
10
|
-
return c[_5-1].color;
|
|
11
|
-
}
|
|
12
|
-
for(var i=0;i<_5;++i){
|
|
13
|
-
var _6=c[i];
|
|
14
|
-
if(_6.offset>=o){
|
|
15
|
-
if(i){
|
|
16
|
-
var _7=c[i-1];
|
|
17
|
-
return _2.blendColors(new _2(_7.color),new _2(_6.color),(o-_7.offset)/(_6.offset-_7.offset));
|
|
18
|
-
}
|
|
19
|
-
return _6.color;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return c[_5-1].color;
|
|
23
|
-
};
|
|
24
|
-
_3.getColor=function(_8,pt){
|
|
25
|
-
var o;
|
|
26
|
-
if(_8){
|
|
27
|
-
switch(_8.type){
|
|
28
|
-
case "linear":
|
|
29
|
-
var _9=Math.atan2(_8.y2-_8.y1,_8.x2-_8.x1),_a=m.rotate(-_9),_b=m.project(_8.x2-_8.x1,_8.y2-_8.y1),p=m.multiplyPoint(_b,pt),_c=m.multiplyPoint(_b,_8.x1,_8.y1),_d=m.multiplyPoint(_b,_8.x2,_8.y2),_e=m.multiplyPoint(_a,_d.x-_c.x,_d.y-_c.y).x;
|
|
30
|
-
o=m.multiplyPoint(_a,p.x-_c.x,p.y-_c.y).x/_e;
|
|
31
|
-
break;
|
|
32
|
-
case "radial":
|
|
33
|
-
var dx=pt.x-_8.cx,dy=pt.y-_8.cy;
|
|
34
|
-
o=Math.sqrt(dx*dx+dy*dy)/_8.r;
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
return _4(o,_8.colors);
|
|
38
|
-
}
|
|
39
|
-
return new _2(_8||[0,0,0,0]);
|
|
40
|
-
};
|
|
41
|
-
_3.reverse=function(_f){
|
|
42
|
-
if(_f){
|
|
43
|
-
switch(_f.type){
|
|
44
|
-
case "linear":
|
|
45
|
-
case "radial":
|
|
46
|
-
_f=_1.delegate(_f);
|
|
47
|
-
if(_f.colors){
|
|
48
|
-
var c=_f.colors,l=c.length,i=0,_10,n=_f.colors=new Array(c.length);
|
|
49
|
-
for(;i<l;++i){
|
|
50
|
-
_10=c[i];
|
|
51
|
-
n[i]={offset:1-_10.offset,color:_10.color};
|
|
52
|
-
}
|
|
53
|
-
n.sort(function(a,b){
|
|
54
|
-
return a.offset-b.offset;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return _f;
|
|
61
|
-
};
|
|
62
|
-
return _3;
|
|
63
|
-
});
|