@datagrok/helm 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +4 -4
- package/src/cell-renderer.ts +5 -4
- package/src/helm-helper.ts +6 -6
- package/src/helm-monomer-placer.ts +1 -1
- package/src/helm-web-editor.ts +5 -5
- package/src/package-test.ts +0 -1
- package/src/package-utils.ts +228 -69
- package/src/package.ts +7 -69
- package/src/tests/findMonomers-tests.ts +2 -1
- package/src/tests/get-monomer-tests.ts +1 -49
- package/src/utils/get-monomer.ts +49 -1
- package/src/utils/helm-grid-cell-renderer.ts +8 -9
- package/src/utils/index.ts +2 -3
- package/src/widgets/helm-input.ts +4 -4
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js +63 -0
- package/vendor/dojo-1.10.10/dijit/BackgroundIframe.js.uncompressed.js +116 -0
- package/vendor/dojo-1.10.10/dijit/Destroyable.js +35 -0
- package/vendor/dojo-1.10.10/dijit/Destroyable.js.uncompressed.js +83 -0
- package/vendor/dojo-1.10.10/dijit/Tooltip.js +240 -0
- package/vendor/dojo-1.10.10/dijit/Tooltip.js.uncompressed.js +612 -0
- package/vendor/dojo-1.10.10/dijit/Viewport.js +44 -0
- package/vendor/dojo-1.10.10/dijit/Viewport.js.uncompressed.js +87 -0
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js +76 -0
- package/vendor/dojo-1.10.10/dijit/WidgetSet.js.uncompressed.js +247 -0
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js +94 -0
- package/vendor/dojo-1.10.10/dijit/_AttachMixin.js.uncompressed.js +238 -0
- package/vendor/dojo-1.10.10/dijit/_Contained.js +17 -0
- package/vendor/dojo-1.10.10/dijit/_Contained.js.uncompressed.js +56 -0
- package/vendor/dojo-1.10.10/dijit/_Container.js +47 -0
- package/vendor/dojo-1.10.10/dijit/_Container.js.uncompressed.js +108 -0
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js +198 -0
- package/vendor/dojo-1.10.10/dijit/_CssStateMixin.js.uncompressed.js +372 -0
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js +11 -0
- package/vendor/dojo-1.10.10/dijit/_FocusMixin.js.uncompressed.js +66 -0
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js +188 -0
- package/vendor/dojo-1.10.10/dijit/_HasDropDown.js.uncompressed.js +472 -0
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js +8 -0
- package/vendor/dojo-1.10.10/dijit/_OnDijitClickMixin.js.uncompressed.js +31 -0
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js +90 -0
- package/vendor/dojo-1.10.10/dijit/_TemplatedMixin.js.uncompressed.js +205 -0
- package/vendor/dojo-1.10.10/dijit/_Widget.js +66 -0
- package/vendor/dojo-1.10.10/dijit/_Widget.js.uncompressed.js +352 -0
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js +353 -0
- package/vendor/dojo-1.10.10/dijit/_WidgetBase.js.uncompressed.js +1200 -0
- package/vendor/dojo-1.10.10/dijit/_base/focus.js +68 -0
- package/vendor/dojo-1.10.10/dijit/_base/focus.js.uncompressed.js +207 -0
- package/vendor/dojo-1.10.10/dijit/_base/manager.js +10 -0
- package/vendor/dojo-1.10.10/dijit/_base/manager.js.uncompressed.js +35 -0
- package/vendor/dojo-1.10.10/dijit/_base/place.js +52 -0
- package/vendor/dojo-1.10.10/dijit/_base/place.js.uncompressed.js +131 -0
- package/vendor/dojo-1.10.10/dijit/_base/popup.js +23 -0
- package/vendor/dojo-1.10.10/dijit/_base/popup.js.uncompressed.js +58 -0
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js +6 -0
- package/vendor/dojo-1.10.10/dijit/_base/scroll.js.uncompressed.js +22 -0
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js +3 -0
- package/vendor/dojo-1.10.10/dijit/_base/sniff.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js +3 -0
- package/vendor/dojo-1.10.10/dijit/_base/typematic.js.uncompressed.js +10 -0
- package/vendor/dojo-1.10.10/dijit/_base/wai.js +32 -0
- package/vendor/dojo-1.10.10/dijit/_base/wai.js.uncompressed.js +109 -0
- package/vendor/dojo-1.10.10/dijit/_base/window.js +6 -0
- package/vendor/dojo-1.10.10/dijit/_base/window.js.uncompressed.js +18 -0
- package/vendor/dojo-1.10.10/dijit/_base.js +4 -0
- package/vendor/dojo-1.10.10/dijit/a11y.js +109 -0
- package/vendor/dojo-1.10.10/dijit/a11y.js.uncompressed.js +191 -0
- package/vendor/dojo-1.10.10/dijit/a11yclick.js +66 -0
- package/vendor/dojo-1.10.10/dijit/a11yclick.js.uncompressed.js +139 -0
- package/vendor/dojo-1.10.10/dijit/focus.js +188 -0
- package/vendor/dojo-1.10.10/dijit/focus.js.uncompressed.js +371 -0
- package/vendor/dojo-1.10.10/dijit/form/Button.js +49 -0
- package/vendor/dojo-1.10.10/dijit/form/Button.js.uncompressed.js +130 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js +4 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboBox.js.uncompressed.js +27 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js +21 -0
- package/vendor/dojo-1.10.10/dijit/form/ComboButton.js.uncompressed.js +86 -0
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js +38 -0
- package/vendor/dojo-1.10.10/dijit/form/DropDownButton.js.uncompressed.js +102 -0
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js +7 -0
- package/vendor/dojo-1.10.10/dijit/form/ToggleButton.js.uncompressed.js +26 -0
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js +50 -0
- package/vendor/dojo-1.10.10/dijit/form/_ButtonMixin.js.uncompressed.js +116 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js +26 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueMixin.js.uncompressed.js +81 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js +24 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormValueWidget.js.uncompressed.js +51 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js +22 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidget.js.uncompressed.js +67 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js +111 -0
- package/vendor/dojo-1.10.10/dijit/form/_FormWidgetMixin.js.uncompressed.js +254 -0
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js +32 -0
- package/vendor/dojo-1.10.10/dijit/form/_ToggleButtonMixin.js.uncompressed.js +69 -0
- package/vendor/dojo-1.10.10/dijit/hccss.js +9 -0
- package/vendor/dojo-1.10.10/dijit/hccss.js.uncompressed.js +21 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js +215 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionContainer.js.uncompressed.js +550 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js +7 -0
- package/vendor/dojo-1.10.10/dijit/layout/AccordionPane.js.uncompressed.js +25 -0
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js +235 -0
- package/vendor/dojo-1.10.10/dijit/layout/ContentPane.js.uncompressed.js +653 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js +171 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackContainer.js.uncompressed.js +411 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js +194 -0
- package/vendor/dojo-1.10.10/dijit/layout/StackController.js.uncompressed.js +410 -0
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js +99 -0
- package/vendor/dojo-1.10.10/dijit/layout/_ContentPaneResizeMixin.js.uncompressed.js +236 -0
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js +47 -0
- package/vendor/dojo-1.10.10/dijit/layout/_LayoutWidget.js.uncompressed.js +190 -0
- package/vendor/dojo-1.10.10/dijit/layout/utils.js +77 -0
- package/vendor/dojo-1.10.10/dijit/layout/utils.js.uncompressed.js +151 -0
- package/vendor/dojo-1.10.10/dijit/main.js +4 -0
- package/vendor/dojo-1.10.10/dijit/main.js.uncompressed.js +16 -0
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js +2 -0
- package/vendor/dojo-1.10.10/dijit/nls/dijit-all_en-us.js.uncompressed.js +21 -0
- package/vendor/dojo-1.10.10/dijit/nls/loading.js +2 -0
- package/vendor/dojo-1.10.10/dijit/nls/loading.js.uncompressed.js +47 -0
- package/vendor/dojo-1.10.10/dijit/place.js +142 -0
- package/vendor/dojo-1.10.10/dijit/place.js.uncompressed.js +407 -0
- package/vendor/dojo-1.10.10/dijit/popup.js +162 -0
- package/vendor/dojo-1.10.10/dijit/popup.js.uncompressed.js +441 -0
- package/vendor/dojo-1.10.10/dijit/registry.js +79 -0
- package/vendor/dojo-1.10.10/dijit/registry.js.uncompressed.js +159 -0
- package/vendor/dojo-1.10.10/dijit/selection.js +364 -0
- package/vendor/dojo-1.10.10/dijit/selection.js.uncompressed.js +525 -0
- package/vendor/dojo-1.10.10/dijit/typematic.js +96 -0
- package/vendor/dojo-1.10.10/dijit/typematic.js.uncompressed.js +211 -0
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js +195 -0
- package/vendor/dojo-1.10.10/dojo/NodeList-manipulate.js.uncompressed.js +761 -0
- package/vendor/dojo-1.10.10/dojo/Stateful.js +90 -0
- package/vendor/dojo-1.10.10/dojo/Stateful.js.uncompressed.js +218 -0
- package/vendor/dojo-1.10.10/dojo/_base/url.js +87 -0
- package/vendor/dojo-1.10.10/dojo/_base/url.js.uncompressed.js +109 -0
- package/vendor/dojo-1.10.10/dojo/cache.js +9 -0
- package/vendor/dojo-1.10.10/dojo/cache.js.uncompressed.js +7 -0
- package/vendor/dojo-1.10.10/dojo/colors.js +74 -0
- package/vendor/dojo-1.10.10/dojo/colors.js.uncompressed.js +232 -0
- package/vendor/dojo-1.10.10/dojo/cookie.js +48 -0
- package/vendor/dojo-1.10.10/dojo/cookie.js.uncompressed.js +98 -0
- package/vendor/dojo-1.10.10/dojo/date/stamp.js +82 -0
- package/vendor/dojo-1.10.10/dojo/date/stamp.js.uncompressed.js +144 -0
- package/vendor/dojo-1.10.10/dojo/dojo.js +7 -0
- package/vendor/dojo-1.10.10/dojo/dojo.js.uncompressed.js +18680 -0
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js +27 -0
- package/vendor/dojo-1.10.10/dojo/fx/Toggler.js.uncompressed.js +101 -0
- package/vendor/dojo-1.10.10/dojo/fx/easing.js +165 -0
- package/vendor/dojo-1.10.10/dojo/fx/easing.js.uncompressed.js +276 -0
- package/vendor/dojo-1.10.10/dojo/fx.js +271 -0
- package/vendor/dojo-1.10.10/dojo/fx.js.uncompressed.js +443 -0
- package/vendor/dojo-1.10.10/dojo/hccss.js +26 -0
- package/vendor/dojo-1.10.10/dojo/hccss.js.uncompressed.js +52 -0
- package/vendor/dojo-1.10.10/dojo/html.js +161 -0
- package/vendor/dojo-1.10.10/dojo/html.js.uncompressed.js +370 -0
- package/vendor/dojo-1.10.10/dojo/io/iframe.js +71 -0
- package/vendor/dojo-1.10.10/dojo/io/iframe.js.uncompressed.js +190 -0
- package/vendor/dojo-1.10.10/dojo/io/script.js +112 -0
- package/vendor/dojo-1.10.10/dojo/io/script.js.uncompressed.js +280 -0
- package/vendor/dojo-1.10.10/dojo/parser.js +437 -0
- package/vendor/dojo-1.10.10/dojo/parser.js.uncompressed.js +915 -0
- package/vendor/dojo-1.10.10/dojo/promise/all.js +59 -0
- package/vendor/dojo-1.10.10/dojo/promise/all.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojo/regexp.js +32 -0
- package/vendor/dojo-1.10.10/dojo/regexp.js.uncompressed.js +70 -0
- package/vendor/dojo-1.10.10/dojo/request/iframe.js +291 -0
- package/vendor/dojo-1.10.10/dojo/request/iframe.js.uncompressed.js +438 -0
- package/vendor/dojo-1.10.10/dojo/request/script.js +129 -0
- package/vendor/dojo-1.10.10/dojo/request/script.js.uncompressed.js +237 -0
- package/vendor/dojo-1.10.10/dojo/require.js +11 -0
- package/vendor/dojo-1.10.10/dojo/require.js.uncompressed.js +7 -0
- package/vendor/dojo-1.10.10/dojo/resources/blank.gif +0 -0
- package/vendor/dojo-1.10.10/dojo/string.js +67 -0
- package/vendor/dojo-1.10.10/dojo/string.js.uncompressed.js +181 -0
- package/vendor/dojo-1.10.10/dojo/touch.js +191 -0
- package/vendor/dojo-1.10.10/dojo/touch.js.uncompressed.js +468 -0
- package/vendor/dojo-1.10.10/dojo/uacss.js +36 -0
- package/vendor/dojo-1.10.10/dojo/uacss.js.uncompressed.js +85 -0
- package/vendor/dojo-1.10.10/dojo/window.js +141 -0
- package/vendor/dojo-1.10.10/dojo/window.js.uncompressed.js +241 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js +626 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart.js.uncompressed.js +1220 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js +5 -0
- package/vendor/dojo-1.10.10/dojox/charting/Chart2D.js.uncompressed.js +16 -0
- package/vendor/dojo-1.10.10/dojox/charting/Element.js +247 -0
- package/vendor/dojo-1.10.10/dojox/charting/Element.js.uncompressed.js +402 -0
- package/vendor/dojo-1.10.10/dojox/charting/Series.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/Series.js.uncompressed.js +58 -0
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js +191 -0
- package/vendor/dojo-1.10.10/dojox/charting/SimpleTheme.js.uncompressed.js +577 -0
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js +42 -0
- package/vendor/dojo-1.10.10/dojox/charting/Theme.js.uncompressed.js +120 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js +11 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Base.js.uncompressed.js +36 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js +77 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Highlight.js.uncompressed.js +144 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js +58 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Magnify.js.uncompressed.js +123 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js +54 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/MoveSlice.js.uncompressed.js +124 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js +28 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/PlotAction.js.uncompressed.js +74 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js +116 -0
- package/vendor/dojo-1.10.10/dojox/charting/action2d/Tooltip.js.uncompressed.js +178 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Base.js.uncompressed.js +83 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js +557 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Default.js.uncompressed.js +980 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js +65 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/Invisible.js.uncompressed.js +224 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js +91 -0
- package/vendor/dojo-1.10.10/dojox/charting/axis2d/common.js.uncompressed.js +164 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Areas.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js +168 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bars.js.uncompressed.js +311 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js +61 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Base.js.uncompressed.js +161 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js +141 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Bubble.js.uncompressed.js +242 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js +126 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Candlesticks.js.uncompressed.js +243 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js +108 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/CartesianBase.js.uncompressed.js +290 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredBars.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/ClusteredColumns.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js +153 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Columns.js.uncompressed.js +249 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js +253 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Default.js.uncompressed.js +472 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js +182 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Grid.js.uncompressed.js +356 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Lines.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Markers.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/MarkersOnly.js.uncompressed.js +13 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js +110 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/OHLC.js.uncompressed.js +208 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js +303 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Pie.js.uncompressed.js +547 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js +134 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Scatter.js.uncompressed.js +207 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js +299 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Spider.js.uncompressed.js +537 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js +24 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/Stacked.js.uncompressed.js +44 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js +7 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedAreas.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js +22 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedBars.js.uncompressed.js +33 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js +20 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedColumns.js.uncompressed.js +31 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js +6 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/StackedLines.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js +68 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/_PlotEvents.js.uncompressed.js +120 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js +209 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/common.js.uncompressed.js +214 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js +76 -0
- package/vendor/dojo-1.10.10/dojox/charting/plot2d/commonStacked.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js +59 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/common.js.uncompressed.js +70 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js +220 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/linear.js.uncompressed.js +262 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js +23 -0
- package/vendor/dojo-1.10.10/dojox/charting/scaler/primitive.js.uncompressed.js +36 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js +39 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Claro.js.uncompressed.js +106 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js +5 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/Wetland.js.uncompressed.js +12 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js +4 -0
- package/vendor/dojo-1.10.10/dojox/charting/themes/common.js.uncompressed.js +3 -0
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js +102 -0
- package/vendor/dojo-1.10.10/dojox/charting/widget/Legend.js.uncompressed.js +165 -0
- package/vendor/dojo-1.10.10/dojox/color/Palette.js +163 -0
- package/vendor/dojo-1.10.10/dojox/color/Palette.js.uncompressed.js +460 -0
- package/vendor/dojo-1.10.10/dojox/color/_base.js +174 -0
- package/vendor/dojo-1.10.10/dojox/color/_base.js.uncompressed.js +196 -0
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js +297 -0
- package/vendor/dojo-1.10.10/dojox/gfx/fx.js.uncompressed.js +350 -0
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js +63 -0
- package/vendor/dojo-1.10.10/dojox/gfx/gradutils.js.uncompressed.js +91 -0
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js +170 -0
- package/vendor/dojo-1.10.10/dojox/gfx/matrix.js.uncompressed.js +501 -0
- package/vendor/dojo-1.10.10/dojox/gfx/path.js +319 -0
- package/vendor/dojo-1.10.10/dojox/gfx/path.js.uncompressed.js +478 -0
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js +459 -0
- package/vendor/dojo-1.10.10/dojox/gfx/shape.js.uncompressed.js +1091 -0
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js +662 -0
- package/vendor/dojo-1.10.10/dojox/gfx/svg.js.uncompressed.js +1023 -0
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js +199 -0
- package/vendor/dojo-1.10.10/dojox/gfx/utils.js.uncompressed.js +322 -0
- package/vendor/dojo-1.10.10/dojox/gfx.js +2 -0
- package/vendor/dojo-1.10.10/dojox/gfx.js.uncompressed.js +1136 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js +151 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/array.js.uncompressed.js +169 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js +93 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/fold.js.uncompressed.js +125 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js +81 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/lambda.js.uncompressed.js +132 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js +54 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/object.js.uncompressed.js +78 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js +61 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/reversed.js.uncompressed.js +77 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js +87 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional/scan.js.uncompressed.js +107 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional.js +4 -0
- package/vendor/dojo-1.10.10/dojox/lang/functional.js.uncompressed.js +3 -0
- package/vendor/dojo-1.10.10/dojox/lang/utils.js +86 -0
- package/vendor/dojo-1.10.10/dojox/lang/utils.js.uncompressed.js +121 -0
- package/vendor/dojo-1.10.10/dojox/main.js +4 -0
- package/vendor/dojo-1.10.10/dojox/main.js.uncompressed.js +14 -0
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js +112 -0
- package/vendor/dojo-1.10.10/dojox/storage/LocalStorageProvider.js.uncompressed.js +208 -0
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js +62 -0
- package/vendor/dojo-1.10.10/dojox/storage/Provider.js.uncompressed.js +344 -0
- package/vendor/dojo-1.10.10/dojox/storage/manager.js +110 -0
- package/vendor/dojo-1.10.10/dojox/storage/manager.js.uncompressed.js +263 -0
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
define("dojox/charting/SimpleTheme", ["dojo/_base/lang", "dojo/_base/array","dojo/_base/declare","dojo/_base/Color", "dojox/lang/utils", "dojox/gfx/gradutils"],
|
|
2
|
+
function(lang, arr, declare, Color, dlu, dgg){
|
|
3
|
+
|
|
4
|
+
var SimpleTheme = declare("dojox.charting.SimpleTheme", null, {
|
|
5
|
+
// summary:
|
|
6
|
+
// A SimpleTheme or Theme is a pre-defined object, primarily JSON-based, that makes up the definitions to
|
|
7
|
+
// style a chart.
|
|
8
|
+
//
|
|
9
|
+
// description:
|
|
10
|
+
// While you can set up style definitions on a chart directly (usually through the various add methods
|
|
11
|
+
// on a dojox.charting.Chart object), a Theme simplifies this manual setup by allowing you to
|
|
12
|
+
// pre-define all of the various visual parameters of each element in a chart.
|
|
13
|
+
//
|
|
14
|
+
// Most of the properties of a Theme are straight-forward; if something is line-based (such as
|
|
15
|
+
// an axis or the ticks on an axis), they will be defined using basic stroke parameters. Likewise,
|
|
16
|
+
// if an element is primarily block-based (such as the background of a chart), it will be primarily
|
|
17
|
+
// fill-based.
|
|
18
|
+
//
|
|
19
|
+
// In addition (for convenience), a Theme definition does not have to contain the entire JSON-based
|
|
20
|
+
// structure. Each theme is built on top of a default theme (which serves as the basis for the theme
|
|
21
|
+
// "GreySkies"), and is mixed into the default theme object. This allows you to create a theme based,
|
|
22
|
+
// say, solely on colors for data series.
|
|
23
|
+
//
|
|
24
|
+
// Defining a new theme is relatively easy; see any of the themes in dojox.charting.themes for examples
|
|
25
|
+
// on how to define your own.
|
|
26
|
+
//
|
|
27
|
+
// When you set a theme on a chart, the theme itself is deep-cloned. This means that you cannot alter
|
|
28
|
+
// the theme itself after setting the theme value on a chart, and expect it to change your chart. If you
|
|
29
|
+
// are looking to make alterations to a theme for a chart, the suggestion would be to create your own
|
|
30
|
+
// theme, based on the one you want to use, that makes those alterations before it is applied to a chart.
|
|
31
|
+
//
|
|
32
|
+
// Finally, a Theme contains a number of functions to facilitate rendering operations on a chart--the main
|
|
33
|
+
// helper of which is the ~next~ method, in which a chart asks for the information for the next data series
|
|
34
|
+
// to be rendered.
|
|
35
|
+
//
|
|
36
|
+
// A note on colors:
|
|
37
|
+
// A theme palette is usually comprised of 5 different color definitions, and
|
|
38
|
+
// no more. If you have a need to render a chart with more than 5 data elements, you can simply "push"
|
|
39
|
+
// new color definitions into the theme's .color array. Make sure that you do that with the actual
|
|
40
|
+
// theme object from a Chart, and not in the theme itself (i.e. either do that before using .setTheme
|
|
41
|
+
// on a chart).
|
|
42
|
+
//
|
|
43
|
+
// example:
|
|
44
|
+
// The default theme (and structure) looks like so:
|
|
45
|
+
// | // all objects are structs used directly in dojox.gfx
|
|
46
|
+
// | chart:{
|
|
47
|
+
// | stroke: null,
|
|
48
|
+
// | fill: "white",
|
|
49
|
+
// | pageStyle: null // suggested page style as an object suitable for dojo.style()
|
|
50
|
+
// | },
|
|
51
|
+
// | plotarea:{
|
|
52
|
+
// | stroke: null,
|
|
53
|
+
// | fill: "white"
|
|
54
|
+
// | },
|
|
55
|
+
// | axis:{
|
|
56
|
+
// | stroke: { // the axis itself
|
|
57
|
+
// | color: "#333",
|
|
58
|
+
// | width: 1
|
|
59
|
+
// | },
|
|
60
|
+
// | tick: { // used as a foundation for all ticks
|
|
61
|
+
// | color: "#666",
|
|
62
|
+
// | position: "center",
|
|
63
|
+
// | font: "normal normal normal 7pt Tahoma", // labels on axis
|
|
64
|
+
// | fontColor: "#333" // color of labels
|
|
65
|
+
// | },
|
|
66
|
+
// | majorTick: { // major ticks on axis, and used for major gridlines
|
|
67
|
+
// | width: 1,
|
|
68
|
+
// | length: 6
|
|
69
|
+
// | },
|
|
70
|
+
// | minorTick: { // minor ticks on axis, and used for minor gridlines
|
|
71
|
+
// | width: 0.8,
|
|
72
|
+
// | length: 3
|
|
73
|
+
// | },
|
|
74
|
+
// | microTick: { // minor ticks on axis, and used for minor gridlines
|
|
75
|
+
// | width: 0.5,
|
|
76
|
+
// | length: 1
|
|
77
|
+
// | },
|
|
78
|
+
// | title: {
|
|
79
|
+
// | gap: 15,
|
|
80
|
+
// | font: "normal normal normal 11pt Tahoma", // title font
|
|
81
|
+
// | fontColor: "#333", // title font color
|
|
82
|
+
// | orientation: "axis" // "axis": facing the axis, "away": facing away
|
|
83
|
+
// | }
|
|
84
|
+
// | },
|
|
85
|
+
// | series: {
|
|
86
|
+
// | stroke: {width: 1.5, color: "#333"}, // line
|
|
87
|
+
// | outline: {width: 0.1, color: "#ccc"}, // outline
|
|
88
|
+
// | //shadow: {dx: 1, dy: 1, width: 2, color: [0, 0, 0, 0.3]},
|
|
89
|
+
// | shadow: null, // no shadow
|
|
90
|
+
// | //filter: dojox/gfx/filters.createFilter(),
|
|
91
|
+
// | filter: null, // no filter, to use a filter you must use gfx SVG render and require dojox/gfx/svgext
|
|
92
|
+
// | fill: "#ccc", // fill, if appropriate
|
|
93
|
+
// | font: "normal normal normal 8pt Tahoma", // if there's a label
|
|
94
|
+
// | fontColor: "#000" // color of labels
|
|
95
|
+
// | labelWiring: {width: 1, color: "#ccc"}, // connect marker and target data item(slice, column, bar...)
|
|
96
|
+
// | },
|
|
97
|
+
// | marker: { // any markers on a series
|
|
98
|
+
// | symbol: "m-3,3 l3,-6 3,6 z", // symbol
|
|
99
|
+
// | stroke: {width: 1.5, color: "#333"}, // stroke
|
|
100
|
+
// | outline: {width: 0.1, color: "#ccc"}, // outline
|
|
101
|
+
// | shadow: null, // no shadow
|
|
102
|
+
// | fill: "#ccc", // fill if needed
|
|
103
|
+
// | font: "normal normal normal 8pt Tahoma", // label
|
|
104
|
+
// | fontColor: "#000"
|
|
105
|
+
// | },
|
|
106
|
+
// | grid: { // grid, when not present axis tick strokes are used instead
|
|
107
|
+
// | majorLine: { // major grid line
|
|
108
|
+
// | color: "#666",
|
|
109
|
+
// | width: 1,
|
|
110
|
+
// | length: 6
|
|
111
|
+
// | },
|
|
112
|
+
// | minorLine: { // minor grid line
|
|
113
|
+
// | color: "#666",
|
|
114
|
+
// | width: 0.8,
|
|
115
|
+
// | length: 3
|
|
116
|
+
// | },
|
|
117
|
+
// | fill: "grey", // every other stripe
|
|
118
|
+
// | alternateFill: "grey" // alternate stripe
|
|
119
|
+
// | },
|
|
120
|
+
// | indicator: {
|
|
121
|
+
// | lineStroke: {width: 1.5, color: "#333"}, // line
|
|
122
|
+
// | lineOutline: {width: 0.1, color: "#ccc"}, // line outline
|
|
123
|
+
// | lineShadow: null, // no line shadow
|
|
124
|
+
// | lineFill: null, // fill between lines for dual indicators
|
|
125
|
+
// | stroke: {width: 1.5, color: "#333"}, // label background stroke
|
|
126
|
+
// | outline: {width: 0.1, color: "#ccc"}, // label background outline
|
|
127
|
+
// | shadow: null, // no label background shadow
|
|
128
|
+
// | fill: "#ccc", // label background fill
|
|
129
|
+
// | radius: 3, // radius of the label background
|
|
130
|
+
// | font: "normal normal normal 10pt Tahoma", // label font
|
|
131
|
+
// | fontColor: "#000" // label color
|
|
132
|
+
// | markerFill: "#ccc", // marker fill
|
|
133
|
+
// | markerSymbol: "m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0", // marker symbol
|
|
134
|
+
// | markerStroke: {width: 1.5, color: "#333"}, // marker stroke
|
|
135
|
+
// | markerOutline: {width: 0.1, color: "#ccc"}, // marker outline
|
|
136
|
+
// | markerShadow: null, // no marker shadow
|
|
137
|
+
// | }
|
|
138
|
+
//
|
|
139
|
+
// example:
|
|
140
|
+
// Defining a new theme is pretty simple:
|
|
141
|
+
// | var Grasslands = new SimpleTheme({
|
|
142
|
+
// | colors: [ "#70803a", "#dde574", "#788062", "#b1cc5d", "#eff2c2" ]
|
|
143
|
+
// | });
|
|
144
|
+
// |
|
|
145
|
+
// | myChart.setTheme(Grasslands);
|
|
146
|
+
|
|
147
|
+
shapeSpaces: {shape: 1, shapeX: 1, shapeY: 1},
|
|
148
|
+
|
|
149
|
+
constructor: function(kwArgs){
|
|
150
|
+
// summary:
|
|
151
|
+
// Initialize a theme using the keyword arguments. Note that the arguments
|
|
152
|
+
// look like the example (above), and may include a few more parameters.
|
|
153
|
+
kwArgs = kwArgs || {};
|
|
154
|
+
|
|
155
|
+
// populate theme with defaults updating them if needed
|
|
156
|
+
var def = SimpleTheme.defaultTheme;
|
|
157
|
+
arr.forEach(["chart", "plotarea", "axis", "grid", "series", "marker", "indicator"], function(name){
|
|
158
|
+
this[name] = lang.delegate(def[name], kwArgs[name]);
|
|
159
|
+
}, this);
|
|
160
|
+
|
|
161
|
+
// personalize theme
|
|
162
|
+
if(kwArgs.seriesThemes && kwArgs.seriesThemes.length){
|
|
163
|
+
this.colors = null;
|
|
164
|
+
this.seriesThemes = kwArgs.seriesThemes.slice(0);
|
|
165
|
+
}else{
|
|
166
|
+
this.seriesThemes = null;
|
|
167
|
+
this.colors = (kwArgs.colors || SimpleTheme.defaultColors).slice(0);
|
|
168
|
+
}
|
|
169
|
+
this.markerThemes = null;
|
|
170
|
+
if(kwArgs.markerThemes && kwArgs.markerThemes.length){
|
|
171
|
+
this.markerThemes = kwArgs.markerThemes.slice(0);
|
|
172
|
+
}
|
|
173
|
+
this.markers = kwArgs.markers ? lang.clone(kwArgs.markers) : lang.delegate(SimpleTheme.defaultMarkers);
|
|
174
|
+
|
|
175
|
+
// set flags
|
|
176
|
+
this.noGradConv = kwArgs.noGradConv;
|
|
177
|
+
this.noRadialConv = kwArgs.noRadialConv;
|
|
178
|
+
if(kwArgs.reverseFills){
|
|
179
|
+
this.reverseFills();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// private housekeeping
|
|
183
|
+
this._current = 0;
|
|
184
|
+
this._buildMarkerArray();
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
clone: function(){
|
|
188
|
+
// summary:
|
|
189
|
+
// Clone the current theme.
|
|
190
|
+
// returns: dojox.charting.SimpleTheme
|
|
191
|
+
// The cloned theme; any alterations made will not affect the original.
|
|
192
|
+
var theme = new this.constructor({
|
|
193
|
+
// theme components
|
|
194
|
+
chart: this.chart,
|
|
195
|
+
plotarea: this.plotarea,
|
|
196
|
+
axis: this.axis,
|
|
197
|
+
grid: this.grid,
|
|
198
|
+
series: this.series,
|
|
199
|
+
marker: this.marker,
|
|
200
|
+
// individual arrays
|
|
201
|
+
colors: this.colors,
|
|
202
|
+
markers: this.markers,
|
|
203
|
+
indicator: this.indicator,
|
|
204
|
+
seriesThemes: this.seriesThemes,
|
|
205
|
+
markerThemes: this.markerThemes,
|
|
206
|
+
// flags
|
|
207
|
+
noGradConv: this.noGradConv,
|
|
208
|
+
noRadialConv: this.noRadialConv
|
|
209
|
+
});
|
|
210
|
+
// copy custom methods
|
|
211
|
+
arr.forEach(
|
|
212
|
+
["clone", "clear", "next", "skip", "addMixin", "post", "getTick"],
|
|
213
|
+
function(name){
|
|
214
|
+
if(this.hasOwnProperty(name)){
|
|
215
|
+
theme[name] = this[name];
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
this
|
|
219
|
+
);
|
|
220
|
+
return theme; // dojox.charting.SimpleTheme
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
clear: function(){
|
|
224
|
+
// summary:
|
|
225
|
+
// Clear and reset the internal pointer to start fresh.
|
|
226
|
+
this._current = 0;
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
next: function(elementType, mixin, doPost){
|
|
230
|
+
// summary:
|
|
231
|
+
// Get the next color or series theme.
|
|
232
|
+
// elementType: String?
|
|
233
|
+
// An optional element type (for use with series themes)
|
|
234
|
+
// mixin: Object?
|
|
235
|
+
// An optional object to mix into the theme.
|
|
236
|
+
// doPost: Boolean?
|
|
237
|
+
// A flag to post-process the results.
|
|
238
|
+
// returns: Object
|
|
239
|
+
// An object of the structure { series, marker, symbol }
|
|
240
|
+
var merge = dlu.merge, series, marker;
|
|
241
|
+
if(this.colors){
|
|
242
|
+
series = lang.delegate(this.series);
|
|
243
|
+
marker = lang.delegate(this.marker);
|
|
244
|
+
var color = new Color(this.colors[this._current % this.colors.length]), old;
|
|
245
|
+
// modify the stroke
|
|
246
|
+
if(series.stroke && series.stroke.color){
|
|
247
|
+
series.stroke = lang.delegate(series.stroke);
|
|
248
|
+
old = new Color(series.stroke.color);
|
|
249
|
+
series.stroke.color = new Color(color);
|
|
250
|
+
series.stroke.color.a = old.a;
|
|
251
|
+
}else{
|
|
252
|
+
series.stroke = {color: color};
|
|
253
|
+
}
|
|
254
|
+
if(marker.stroke && marker.stroke.color){
|
|
255
|
+
marker.stroke = lang.delegate(marker.stroke);
|
|
256
|
+
old = new Color(marker.stroke.color);
|
|
257
|
+
marker.stroke.color = new Color(color);
|
|
258
|
+
marker.stroke.color.a = old.a;
|
|
259
|
+
}else{
|
|
260
|
+
marker.stroke = {color: color};
|
|
261
|
+
}
|
|
262
|
+
// modify the fill
|
|
263
|
+
if(!series.fill || series.fill.type){
|
|
264
|
+
series.fill = color;
|
|
265
|
+
}else{
|
|
266
|
+
old = new Color(series.fill);
|
|
267
|
+
series.fill = new Color(color);
|
|
268
|
+
series.fill.a = old.a;
|
|
269
|
+
}
|
|
270
|
+
if(!marker.fill || marker.fill.type){
|
|
271
|
+
marker.fill = color;
|
|
272
|
+
}else{
|
|
273
|
+
old = new Color(marker.fill);
|
|
274
|
+
marker.fill = new Color(color);
|
|
275
|
+
marker.fill.a = old.a;
|
|
276
|
+
}
|
|
277
|
+
}else{
|
|
278
|
+
series = this.seriesThemes ?
|
|
279
|
+
merge(this.series, this.seriesThemes[this._current % this.seriesThemes.length]) :
|
|
280
|
+
this.series;
|
|
281
|
+
marker = this.markerThemes ?
|
|
282
|
+
merge(this.marker, this.markerThemes[this._current % this.markerThemes.length]) :
|
|
283
|
+
series;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
var symbol = marker && marker.symbol || this._markers[this._current % this._markers.length];
|
|
287
|
+
|
|
288
|
+
var theme = {series: series, marker: marker, symbol: symbol};
|
|
289
|
+
|
|
290
|
+
// advance the counter
|
|
291
|
+
++this._current;
|
|
292
|
+
|
|
293
|
+
if(mixin){
|
|
294
|
+
theme = this.addMixin(theme, elementType, mixin);
|
|
295
|
+
}
|
|
296
|
+
if(doPost){
|
|
297
|
+
theme = this.post(theme, elementType);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
return theme; // Object
|
|
301
|
+
},
|
|
302
|
+
|
|
303
|
+
skip: function(){
|
|
304
|
+
// summary:
|
|
305
|
+
// Skip the next internal color.
|
|
306
|
+
++this._current;
|
|
307
|
+
},
|
|
308
|
+
|
|
309
|
+
addMixin: function(theme, elementType, mixin, doPost){
|
|
310
|
+
// summary:
|
|
311
|
+
// Add a mixin object to the passed theme and process.
|
|
312
|
+
// theme: dojox/charting/SimpleTheme
|
|
313
|
+
// The theme to mixin to.
|
|
314
|
+
// elementType: String
|
|
315
|
+
// The type of element in question. Can be "line", "bar" or "circle"
|
|
316
|
+
// mixin: Object|Array
|
|
317
|
+
// The object or objects to mix into the theme.
|
|
318
|
+
// doPost: Boolean
|
|
319
|
+
// If true, run the new theme through the post-processor.
|
|
320
|
+
// returns: dojox/charting/SimpleTheme
|
|
321
|
+
// The new theme.
|
|
322
|
+
if(lang.isArray(mixin)){
|
|
323
|
+
arr.forEach(mixin, function(m){
|
|
324
|
+
theme = this.addMixin(theme, elementType, m);
|
|
325
|
+
}, this);
|
|
326
|
+
}else{
|
|
327
|
+
var t = {};
|
|
328
|
+
if("color" in mixin){
|
|
329
|
+
if(elementType == "line" || elementType == "area"){
|
|
330
|
+
lang.setObject("series.stroke.color", mixin.color, t);
|
|
331
|
+
lang.setObject("marker.stroke.color", mixin.color, t);
|
|
332
|
+
}else{
|
|
333
|
+
lang.setObject("series.fill", mixin.color, t);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
arr.forEach(["stroke", "outline", "shadow", "fill", "filter", "font", "fontColor", "labelWiring"], function(name){
|
|
337
|
+
var markerName = "marker" + name.charAt(0).toUpperCase() + name.substr(1),
|
|
338
|
+
b = markerName in mixin;
|
|
339
|
+
if(name in mixin){
|
|
340
|
+
lang.setObject("series." + name, mixin[name], t);
|
|
341
|
+
if(!b){
|
|
342
|
+
lang.setObject("marker." + name, mixin[name], t);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
if(b){
|
|
346
|
+
lang.setObject("marker." + name, mixin[markerName], t);
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
if("marker" in mixin){
|
|
350
|
+
t.symbol = mixin.marker;
|
|
351
|
+
t.symbol = mixin.marker;
|
|
352
|
+
}
|
|
353
|
+
theme = dlu.merge(theme, t);
|
|
354
|
+
}
|
|
355
|
+
if(doPost){
|
|
356
|
+
theme = this.post(theme, elementType);
|
|
357
|
+
}
|
|
358
|
+
return theme; // dojox/charting/SimpleTheme
|
|
359
|
+
},
|
|
360
|
+
|
|
361
|
+
post: function(theme, elementType){
|
|
362
|
+
// summary:
|
|
363
|
+
// Process any post-shape fills.
|
|
364
|
+
// theme: dojox/charting/SimpleTheme
|
|
365
|
+
// The theme to post process with.
|
|
366
|
+
// elementType: String
|
|
367
|
+
// The type of element being filled. Can be "bar" or "circle".
|
|
368
|
+
// returns: dojox/charting/SimpleTheme
|
|
369
|
+
// The post-processed theme.
|
|
370
|
+
var fill = theme.series.fill, t;
|
|
371
|
+
if(!this.noGradConv && this.shapeSpaces[fill.space] && fill.type == "linear"){
|
|
372
|
+
if(elementType == "bar"){
|
|
373
|
+
// transpose start and end points
|
|
374
|
+
t = {
|
|
375
|
+
x1: fill.y1,
|
|
376
|
+
y1: fill.x1,
|
|
377
|
+
x2: fill.y2,
|
|
378
|
+
y2: fill.x2
|
|
379
|
+
};
|
|
380
|
+
}else if(!this.noRadialConv && fill.space == "shape" && (elementType == "slice" || elementType == "circle")){
|
|
381
|
+
// switch to radial
|
|
382
|
+
t = {
|
|
383
|
+
type: "radial",
|
|
384
|
+
cx: 0,
|
|
385
|
+
cy: 0,
|
|
386
|
+
r: 100
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
if(t){
|
|
390
|
+
return dlu.merge(theme, {series: {fill: t}});
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
return theme; // dojox/charting/SimpleTheme
|
|
394
|
+
},
|
|
395
|
+
|
|
396
|
+
getTick: function(name, mixin){
|
|
397
|
+
// summary:
|
|
398
|
+
// Calculates and merges tick parameters.
|
|
399
|
+
// name: String
|
|
400
|
+
// Tick name, can be "major", "minor", or "micro".
|
|
401
|
+
// mixin: Object?
|
|
402
|
+
// Optional object to mix in to the tick.
|
|
403
|
+
var tick = this.axis.tick, tickName = name + "Tick",
|
|
404
|
+
merge = dlu.merge;
|
|
405
|
+
if(tick){
|
|
406
|
+
if(this.axis[tickName]){
|
|
407
|
+
tick = merge(tick, this.axis[tickName]);
|
|
408
|
+
}
|
|
409
|
+
}else{
|
|
410
|
+
tick = this.axis[tickName];
|
|
411
|
+
}
|
|
412
|
+
if(mixin){
|
|
413
|
+
if(tick){
|
|
414
|
+
if(mixin[tickName]){
|
|
415
|
+
tick = merge(tick, mixin[tickName]);
|
|
416
|
+
}
|
|
417
|
+
}else{
|
|
418
|
+
tick = mixin[tickName];
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return tick; // Object
|
|
422
|
+
},
|
|
423
|
+
|
|
424
|
+
inspectObjects: function(f){
|
|
425
|
+
arr.forEach(["chart", "plotarea", "axis", "grid", "series", "marker", "indicator"], function(name){
|
|
426
|
+
f(this[name]);
|
|
427
|
+
}, this);
|
|
428
|
+
if(this.seriesThemes){
|
|
429
|
+
arr.forEach(this.seriesThemes, f);
|
|
430
|
+
}
|
|
431
|
+
if(this.markerThemes){
|
|
432
|
+
arr.forEach(this.markerThemes, f);
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
|
|
436
|
+
reverseFills: function(){
|
|
437
|
+
this.inspectObjects(function(o){
|
|
438
|
+
if(o && o.fill){
|
|
439
|
+
o.fill = dgg.reverse(o.fill);
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
},
|
|
443
|
+
|
|
444
|
+
addMarker:function(/*String*/ name, /*String*/ segment){
|
|
445
|
+
// summary:
|
|
446
|
+
// Add a custom marker to this theme.
|
|
447
|
+
// example:
|
|
448
|
+
// | myTheme.addMarker("Ellipse", foo);
|
|
449
|
+
this.markers[name] = segment;
|
|
450
|
+
this._buildMarkerArray();
|
|
451
|
+
},
|
|
452
|
+
|
|
453
|
+
setMarkers:function(/*Object*/ obj){
|
|
454
|
+
// summary:
|
|
455
|
+
// Set all the markers of this theme at once. obj should be a
|
|
456
|
+
// dictionary of keys and path segments.
|
|
457
|
+
//
|
|
458
|
+
// example:
|
|
459
|
+
// | myTheme.setMarkers({ "CIRCLE": foo });
|
|
460
|
+
this.markers = obj;
|
|
461
|
+
this._buildMarkerArray();
|
|
462
|
+
},
|
|
463
|
+
|
|
464
|
+
_buildMarkerArray: function(){
|
|
465
|
+
this._markers = [];
|
|
466
|
+
for(var p in this.markers){
|
|
467
|
+
this._markers.push(this.markers[p]);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
lang.mixin(SimpleTheme, {
|
|
473
|
+
defaultMarkers: {
|
|
474
|
+
CIRCLE: "m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",
|
|
475
|
+
SQUARE: "m-3,-3 l0,6 6,0 0,-6 z",
|
|
476
|
+
DIAMOND: "m0,-3 l3,3 -3,3 -3,-3 z",
|
|
477
|
+
CROSS: "m0,-3 l0,6 m-3,-3 l6,0",
|
|
478
|
+
X: "m-3,-3 l6,6 m0,-6 l-6,6",
|
|
479
|
+
TRIANGLE: "m-3,3 l3,-6 3,6 z",
|
|
480
|
+
TRIANGLE_INVERTED: "m-3,-3 l3,6 3,-6 z"
|
|
481
|
+
},
|
|
482
|
+
|
|
483
|
+
defaultColors:[
|
|
484
|
+
// gray skies
|
|
485
|
+
"#54544c", "#858e94", "#6e767a", "#948585", "#474747"
|
|
486
|
+
],
|
|
487
|
+
|
|
488
|
+
defaultTheme: {
|
|
489
|
+
// all objects are structs used directly in dojox.gfx
|
|
490
|
+
chart:{
|
|
491
|
+
stroke: null,
|
|
492
|
+
fill: "white",
|
|
493
|
+
pageStyle: null,
|
|
494
|
+
titleGap: 20,
|
|
495
|
+
titlePos: "top",
|
|
496
|
+
titleFont: "normal normal bold 14pt Tahoma", // chart title
|
|
497
|
+
titleFontColor: "#333"
|
|
498
|
+
},
|
|
499
|
+
plotarea:{
|
|
500
|
+
stroke: null,
|
|
501
|
+
fill: "white"
|
|
502
|
+
},
|
|
503
|
+
// TODO: label rotation on axis
|
|
504
|
+
axis:{
|
|
505
|
+
stroke: { // the axis itself
|
|
506
|
+
color: "#333",
|
|
507
|
+
width: 1
|
|
508
|
+
},
|
|
509
|
+
tick: { // used as a foundation for all ticks
|
|
510
|
+
color: "#666",
|
|
511
|
+
position: "center",
|
|
512
|
+
font: "normal normal normal 7pt Tahoma", // labels on axis
|
|
513
|
+
fontColor: "#333", // color of labels
|
|
514
|
+
labelGap: 4 // gap between a tick and its label in pixels
|
|
515
|
+
},
|
|
516
|
+
majorTick: { // major ticks on axis, and used for major gridlines
|
|
517
|
+
width: 1,
|
|
518
|
+
length: 6
|
|
519
|
+
},
|
|
520
|
+
minorTick: { // minor ticks on axis, and used for minor gridlines
|
|
521
|
+
width: 0.8,
|
|
522
|
+
length: 3
|
|
523
|
+
},
|
|
524
|
+
microTick: { // minor ticks on axis, and used for minor gridlines
|
|
525
|
+
width: 0.5,
|
|
526
|
+
length: 1
|
|
527
|
+
},
|
|
528
|
+
title: {
|
|
529
|
+
gap: 15,
|
|
530
|
+
font: "normal normal normal 11pt Tahoma", // title font
|
|
531
|
+
fontColor: "#333", // title font color
|
|
532
|
+
orientation: "axis" // "axis": facing the axis, "away": facing away
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
series: {
|
|
536
|
+
// used as a "main" theme for series, sThemes augment it
|
|
537
|
+
stroke: {width: 1.5, color: "#333"}, // line
|
|
538
|
+
outline: {width: 0.1, color: "#ccc"}, // outline
|
|
539
|
+
//shadow: {dx: 1, dy: 1, width: 2, color: [0, 0, 0, 0.3]},
|
|
540
|
+
shadow: null, // no shadow
|
|
541
|
+
fill: "#ccc", // fill, if appropriate
|
|
542
|
+
font: "normal normal normal 8pt Tahoma", // if there's a label
|
|
543
|
+
fontColor: "#000", // color of labels
|
|
544
|
+
labelWiring: {width: 1, color: "#ccc"} // connect marker and target data item(slice, column, bar...)
|
|
545
|
+
},
|
|
546
|
+
marker: { // any markers on a series
|
|
547
|
+
stroke: {width: 1.5, color: "#333"}, // stroke
|
|
548
|
+
outline: {width: 0.1, color: "#ccc"}, // outline
|
|
549
|
+
//shadow: {dx: 1, dy: 1, width: 2, color: [0, 0, 0, 0.3]},
|
|
550
|
+
shadow: null, // no shadow
|
|
551
|
+
fill: "#ccc", // fill if needed
|
|
552
|
+
font: "normal normal normal 8pt Tahoma", // label
|
|
553
|
+
fontColor: "#000"
|
|
554
|
+
},
|
|
555
|
+
indicator: {
|
|
556
|
+
lineStroke: {width: 1.5, color: "#333"},
|
|
557
|
+
lineOutline: {width: 0.1, color: "#ccc"},
|
|
558
|
+
lineShadow: null,
|
|
559
|
+
lineFill: null,
|
|
560
|
+
stroke: {width: 1.5, color: "#333"},
|
|
561
|
+
outline: {width: 0.1, color: "#ccc"},
|
|
562
|
+
shadow: null,
|
|
563
|
+
fill : "#ccc",
|
|
564
|
+
radius: 3,
|
|
565
|
+
font: "normal normal normal 10pt Tahoma",
|
|
566
|
+
fontColor: "#000",
|
|
567
|
+
markerFill: "#ccc",
|
|
568
|
+
markerSymbol: "m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",
|
|
569
|
+
markerStroke: {width: 1.5, color: "#333"},
|
|
570
|
+
markerOutline: {width: 0.1, color: "#ccc"},
|
|
571
|
+
markerShadow: null
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
|
|
576
|
+
return SimpleTheme;
|
|
577
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/charting/Theme",["dojo/_base/lang","dojo/_base/declare","dojo/_base/Color","./SimpleTheme","dojox/color/_base","dojox/color/Palette","dojox/gfx/gradutils"],function(_1,_2,_3,_4,_5,_6){
|
|
3
|
+
var _7=_2("dojox.charting.Theme",_4,{});
|
|
4
|
+
_1.mixin(_7,{defineColors:function(_8){
|
|
5
|
+
_8=_8||{};
|
|
6
|
+
var l,c=[],n=_8.num||5;
|
|
7
|
+
if(_8.colors){
|
|
8
|
+
l=_8.colors.length;
|
|
9
|
+
for(var i=0;i<n;i++){
|
|
10
|
+
c.push(_8.colors[i%l]);
|
|
11
|
+
}
|
|
12
|
+
return c;
|
|
13
|
+
}
|
|
14
|
+
if(_8.hue){
|
|
15
|
+
var s=_8.saturation||100,st=_8.low||30,_9=_8.high||90;
|
|
16
|
+
l=(_9+st)/2;
|
|
17
|
+
return _6.generate(_5.fromHsv(_8.hue,s,l),"monochromatic").colors;
|
|
18
|
+
}
|
|
19
|
+
if(_8.generator){
|
|
20
|
+
return _5.Palette.generate(_8.base,_8.generator).colors;
|
|
21
|
+
}
|
|
22
|
+
return c;
|
|
23
|
+
},generateGradient:function(_a,_b,_c){
|
|
24
|
+
var _d=_1.delegate(_a);
|
|
25
|
+
_d.colors=[{offset:0,color:_b},{offset:1,color:_c}];
|
|
26
|
+
return _d;
|
|
27
|
+
},generateHslColor:function(_e,_f){
|
|
28
|
+
_e=new _3(_e);
|
|
29
|
+
var hsl=_e.toHsl(),_10=_5.fromHsl(hsl.h,hsl.s,_f);
|
|
30
|
+
_10.a=_e.a;
|
|
31
|
+
return _10;
|
|
32
|
+
},generateHslGradient:function(_11,_12,_13,_14){
|
|
33
|
+
_11=new _3(_11);
|
|
34
|
+
var hsl=_11.toHsl(),_15=_5.fromHsl(hsl.h,hsl.s,_13),_16=_5.fromHsl(hsl.h,hsl.s,_14);
|
|
35
|
+
_15.a=_16.a=_11.a;
|
|
36
|
+
return _7.generateGradient(_12,_15,_16);
|
|
37
|
+
}});
|
|
38
|
+
_7.defaultMarkers=_4.defaultMarkers;
|
|
39
|
+
_7.defaultColors=_4.defaultColors;
|
|
40
|
+
_7.defaultTheme=_4.defaultTheme;
|
|
41
|
+
return _7;
|
|
42
|
+
});
|