@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,459 @@
|
|
|
1
|
+
//>>built
|
|
2
|
+
define("dojox/gfx/shape",["./_base","dojo/_base/lang","dojo/_base/declare","dojo/_base/kernel","dojo/_base/sniff","dojo/on","dojo/_base/array","dojo/dom-construct","dojo/_base/Color","./matrix"],function(g,_1,_2,_3,_4,on,_5,_6,_7,_8){
|
|
3
|
+
function _9(a,_a){
|
|
4
|
+
var _b=(a.length-1);
|
|
5
|
+
while(_a<_b){
|
|
6
|
+
a[_a]=a[++_a];
|
|
7
|
+
}
|
|
8
|
+
a.length=_b;
|
|
9
|
+
};
|
|
10
|
+
var _c=g.shape={};
|
|
11
|
+
_c.Shape=_2("dojox.gfx.shape.Shape",null,{constructor:function(){
|
|
12
|
+
this.rawNode=null;
|
|
13
|
+
this.shape=null;
|
|
14
|
+
this.matrix=null;
|
|
15
|
+
this.fillStyle=null;
|
|
16
|
+
this.strokeStyle=null;
|
|
17
|
+
this.bbox=null;
|
|
18
|
+
this.parent=null;
|
|
19
|
+
this.parentMatrix=null;
|
|
20
|
+
if(_4("gfxRegistry")){
|
|
21
|
+
var _d=_c.register(this);
|
|
22
|
+
this.getUID=function(){
|
|
23
|
+
return _d;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
},destroy:function(){
|
|
27
|
+
if(_4("gfxRegistry")){
|
|
28
|
+
_c.dispose(this);
|
|
29
|
+
}
|
|
30
|
+
if(this.rawNode&&"__gfxObject__" in this.rawNode){
|
|
31
|
+
this.rawNode.__gfxObject__=null;
|
|
32
|
+
}
|
|
33
|
+
this.rawNode=null;
|
|
34
|
+
},getNode:function(){
|
|
35
|
+
return this.rawNode;
|
|
36
|
+
},getShape:function(){
|
|
37
|
+
return this.shape;
|
|
38
|
+
},getTransform:function(){
|
|
39
|
+
return this.matrix;
|
|
40
|
+
},getFill:function(){
|
|
41
|
+
return this.fillStyle;
|
|
42
|
+
},getStroke:function(){
|
|
43
|
+
return this.strokeStyle;
|
|
44
|
+
},getParent:function(){
|
|
45
|
+
return this.parent;
|
|
46
|
+
},getBoundingBox:function(){
|
|
47
|
+
return this.bbox;
|
|
48
|
+
},getTransformedBoundingBox:function(){
|
|
49
|
+
var b=this.getBoundingBox();
|
|
50
|
+
if(!b){
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
var m=this._getRealMatrix(),gm=_8;
|
|
54
|
+
return [gm.multiplyPoint(m,b.x,b.y),gm.multiplyPoint(m,b.x+b.width,b.y),gm.multiplyPoint(m,b.x+b.width,b.y+b.height),gm.multiplyPoint(m,b.x,b.y+b.height)];
|
|
55
|
+
},getEventSource:function(){
|
|
56
|
+
return this.rawNode;
|
|
57
|
+
},setClip:function(_e){
|
|
58
|
+
this.clip=_e;
|
|
59
|
+
},getClip:function(){
|
|
60
|
+
return this.clip;
|
|
61
|
+
},setShape:function(_f){
|
|
62
|
+
this.shape=g.makeParameters(this.shape,_f);
|
|
63
|
+
this.bbox=null;
|
|
64
|
+
return this;
|
|
65
|
+
},setFill:function(_10){
|
|
66
|
+
if(!_10){
|
|
67
|
+
this.fillStyle=null;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
var f=null;
|
|
71
|
+
if(typeof (_10)=="object"&&"type" in _10){
|
|
72
|
+
switch(_10.type){
|
|
73
|
+
case "linear":
|
|
74
|
+
f=g.makeParameters(g.defaultLinearGradient,_10);
|
|
75
|
+
break;
|
|
76
|
+
case "radial":
|
|
77
|
+
f=g.makeParameters(g.defaultRadialGradient,_10);
|
|
78
|
+
break;
|
|
79
|
+
case "pattern":
|
|
80
|
+
f=g.makeParameters(g.defaultPattern,_10);
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
}else{
|
|
84
|
+
f=g.normalizeColor(_10);
|
|
85
|
+
}
|
|
86
|
+
this.fillStyle=f;
|
|
87
|
+
return this;
|
|
88
|
+
},setStroke:function(_11){
|
|
89
|
+
if(!_11){
|
|
90
|
+
this.strokeStyle=null;
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
if(typeof _11=="string"||_1.isArray(_11)||_11 instanceof _7){
|
|
94
|
+
_11={color:_11};
|
|
95
|
+
}
|
|
96
|
+
var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_11);
|
|
97
|
+
s.color=g.normalizeColor(s.color);
|
|
98
|
+
return this;
|
|
99
|
+
},setTransform:function(_12){
|
|
100
|
+
this.matrix=_8.clone(_12?_8.normalize(_12):_8.identity);
|
|
101
|
+
return this._applyTransform();
|
|
102
|
+
},_applyTransform:function(){
|
|
103
|
+
return this;
|
|
104
|
+
},moveToFront:function(){
|
|
105
|
+
var p=this.getParent();
|
|
106
|
+
if(p){
|
|
107
|
+
p._moveChildToFront(this);
|
|
108
|
+
this._moveToFront();
|
|
109
|
+
}
|
|
110
|
+
return this;
|
|
111
|
+
},moveToBack:function(){
|
|
112
|
+
var p=this.getParent();
|
|
113
|
+
if(p){
|
|
114
|
+
p._moveChildToBack(this);
|
|
115
|
+
this._moveToBack();
|
|
116
|
+
}
|
|
117
|
+
return this;
|
|
118
|
+
},_moveToFront:function(){
|
|
119
|
+
},_moveToBack:function(){
|
|
120
|
+
},applyRightTransform:function(_13){
|
|
121
|
+
return _13?this.setTransform([this.matrix,_13]):this;
|
|
122
|
+
},applyLeftTransform:function(_14){
|
|
123
|
+
return _14?this.setTransform([_14,this.matrix]):this;
|
|
124
|
+
},applyTransform:function(_15){
|
|
125
|
+
return _15?this.setTransform([this.matrix,_15]):this;
|
|
126
|
+
},removeShape:function(_16){
|
|
127
|
+
if(this.parent){
|
|
128
|
+
this.parent.remove(this,_16);
|
|
129
|
+
}
|
|
130
|
+
return this;
|
|
131
|
+
},_setParent:function(_17,_18){
|
|
132
|
+
this.parent=_17;
|
|
133
|
+
return this._updateParentMatrix(_18);
|
|
134
|
+
},_updateParentMatrix:function(_19){
|
|
135
|
+
this.parentMatrix=_19?_8.clone(_19):null;
|
|
136
|
+
return this._applyTransform();
|
|
137
|
+
},_getRealMatrix:function(){
|
|
138
|
+
var m=this.matrix;
|
|
139
|
+
var p=this.parent;
|
|
140
|
+
while(p){
|
|
141
|
+
if(p.matrix){
|
|
142
|
+
m=_8.multiply(p.matrix,m);
|
|
143
|
+
}
|
|
144
|
+
p=p.parent;
|
|
145
|
+
}
|
|
146
|
+
return m;
|
|
147
|
+
}});
|
|
148
|
+
_c._eventsProcessing={on:function(_1a,_1b){
|
|
149
|
+
return on(this.getEventSource(),_1a,_c.fixCallback(this,g.fixTarget,_1b));
|
|
150
|
+
},connect:function(_1c,_1d,_1e){
|
|
151
|
+
if(_1c.substring(0,2)=="on"){
|
|
152
|
+
_1c=_1c.substring(2);
|
|
153
|
+
}
|
|
154
|
+
return this.on(_1c,_1e?_1.hitch(_1d,_1e):_1d);
|
|
155
|
+
},disconnect:function(_1f){
|
|
156
|
+
return _1f.remove();
|
|
157
|
+
}};
|
|
158
|
+
_c.fixCallback=function(_20,_21,_22,_23){
|
|
159
|
+
if(!_23){
|
|
160
|
+
_23=_22;
|
|
161
|
+
_22=null;
|
|
162
|
+
}
|
|
163
|
+
if(_1.isString(_23)){
|
|
164
|
+
_22=_22||_3.global;
|
|
165
|
+
if(!_22[_23]){
|
|
166
|
+
throw (["dojox.gfx.shape.fixCallback: scope[\"",_23,"\"] is null (scope=\"",_22,"\")"].join(""));
|
|
167
|
+
}
|
|
168
|
+
return function(e){
|
|
169
|
+
return _21(e,_20)?_22[_23].apply(_22,arguments||[]):undefined;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
return !_22?function(e){
|
|
173
|
+
return _21(e,_20)?_23.apply(_22,arguments):undefined;
|
|
174
|
+
}:function(e){
|
|
175
|
+
return _21(e,_20)?_23.apply(_22,arguments||[]):undefined;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
_1.extend(_c.Shape,_c._eventsProcessing);
|
|
179
|
+
_c.Container={_init:function(){
|
|
180
|
+
this.children=[];
|
|
181
|
+
this._batch=0;
|
|
182
|
+
},openBatch:function(){
|
|
183
|
+
return this;
|
|
184
|
+
},closeBatch:function(){
|
|
185
|
+
return this;
|
|
186
|
+
},add:function(_24){
|
|
187
|
+
var _25=_24.getParent();
|
|
188
|
+
if(_25){
|
|
189
|
+
_25.remove(_24,true);
|
|
190
|
+
}
|
|
191
|
+
this.children.push(_24);
|
|
192
|
+
return _24._setParent(this,this._getRealMatrix());
|
|
193
|
+
},remove:function(_26,_27){
|
|
194
|
+
for(var i=0;i<this.children.length;++i){
|
|
195
|
+
if(this.children[i]==_26){
|
|
196
|
+
if(_27){
|
|
197
|
+
}else{
|
|
198
|
+
_26.parent=null;
|
|
199
|
+
_26.parentMatrix=null;
|
|
200
|
+
}
|
|
201
|
+
_9(this.children,i);
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return this;
|
|
206
|
+
},clear:function(_28){
|
|
207
|
+
var _29;
|
|
208
|
+
for(var i=0;i<this.children.length;++i){
|
|
209
|
+
_29=this.children[i];
|
|
210
|
+
_29.parent=null;
|
|
211
|
+
_29.parentMatrix=null;
|
|
212
|
+
if(_28){
|
|
213
|
+
_29.destroy();
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
this.children=[];
|
|
217
|
+
return this;
|
|
218
|
+
},getBoundingBox:function(){
|
|
219
|
+
if(this.children){
|
|
220
|
+
var _2a=null;
|
|
221
|
+
_5.forEach(this.children,function(_2b){
|
|
222
|
+
var bb=_2b.getBoundingBox();
|
|
223
|
+
if(bb){
|
|
224
|
+
var ct=_2b.getTransform();
|
|
225
|
+
if(ct){
|
|
226
|
+
bb=_8.multiplyRectangle(ct,bb);
|
|
227
|
+
}
|
|
228
|
+
if(_2a){
|
|
229
|
+
_2a.x=Math.min(_2a.x,bb.x);
|
|
230
|
+
_2a.y=Math.min(_2a.y,bb.y);
|
|
231
|
+
_2a.endX=Math.max(_2a.endX,bb.x+bb.width);
|
|
232
|
+
_2a.endY=Math.max(_2a.endY,bb.y+bb.height);
|
|
233
|
+
}else{
|
|
234
|
+
_2a={x:bb.x,y:bb.y,endX:bb.x+bb.width,endY:bb.y+bb.height};
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
if(_2a){
|
|
239
|
+
_2a.width=_2a.endX-_2a.x;
|
|
240
|
+
_2a.height=_2a.endY-_2a.y;
|
|
241
|
+
}
|
|
242
|
+
return _2a;
|
|
243
|
+
}
|
|
244
|
+
return null;
|
|
245
|
+
},_moveChildToFront:function(_2c){
|
|
246
|
+
for(var i=0;i<this.children.length;++i){
|
|
247
|
+
if(this.children[i]==_2c){
|
|
248
|
+
_9(this.children,i);
|
|
249
|
+
this.children.push(_2c);
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return this;
|
|
254
|
+
},_moveChildToBack:function(_2d){
|
|
255
|
+
for(var i=0;i<this.children.length;++i){
|
|
256
|
+
if(this.children[i]==_2d){
|
|
257
|
+
_9(this.children,i);
|
|
258
|
+
this.children.unshift(_2d);
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return this;
|
|
263
|
+
}};
|
|
264
|
+
_c.Surface=_2("dojox.gfx.shape.Surface",null,{constructor:function(){
|
|
265
|
+
this.rawNode=null;
|
|
266
|
+
this._parent=null;
|
|
267
|
+
this._nodes=[];
|
|
268
|
+
this._events=[];
|
|
269
|
+
},destroy:function(){
|
|
270
|
+
_5.forEach(this._nodes,_6.destroy);
|
|
271
|
+
this._nodes=[];
|
|
272
|
+
_5.forEach(this._events,function(h){
|
|
273
|
+
if(h){
|
|
274
|
+
h.remove();
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
this._events=[];
|
|
278
|
+
this.rawNode=null;
|
|
279
|
+
if(_4("ie")){
|
|
280
|
+
while(this._parent.lastChild){
|
|
281
|
+
_6.destroy(this._parent.lastChild);
|
|
282
|
+
}
|
|
283
|
+
}else{
|
|
284
|
+
this._parent.innerHTML="";
|
|
285
|
+
}
|
|
286
|
+
this._parent=null;
|
|
287
|
+
},getEventSource:function(){
|
|
288
|
+
return this.rawNode;
|
|
289
|
+
},_getRealMatrix:function(){
|
|
290
|
+
return null;
|
|
291
|
+
},isLoaded:true,onLoad:function(_2e){
|
|
292
|
+
},whenLoaded:function(_2f,_30){
|
|
293
|
+
var f=_1.hitch(_2f,_30);
|
|
294
|
+
if(this.isLoaded){
|
|
295
|
+
f(this);
|
|
296
|
+
}else{
|
|
297
|
+
on.once(this,"load",function(_31){
|
|
298
|
+
f(_31);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
}});
|
|
302
|
+
_1.extend(_c.Surface,_c._eventsProcessing);
|
|
303
|
+
_c.Rect=_2("dojox.gfx.shape.Rect",_c.Shape,{constructor:function(_32){
|
|
304
|
+
this.shape=g.getDefault("Rect");
|
|
305
|
+
this.rawNode=_32;
|
|
306
|
+
},getBoundingBox:function(){
|
|
307
|
+
return this.shape;
|
|
308
|
+
}});
|
|
309
|
+
_c.Ellipse=_2("dojox.gfx.shape.Ellipse",_c.Shape,{constructor:function(_33){
|
|
310
|
+
this.shape=g.getDefault("Ellipse");
|
|
311
|
+
this.rawNode=_33;
|
|
312
|
+
},getBoundingBox:function(){
|
|
313
|
+
if(!this.bbox){
|
|
314
|
+
var _34=this.shape;
|
|
315
|
+
this.bbox={x:_34.cx-_34.rx,y:_34.cy-_34.ry,width:2*_34.rx,height:2*_34.ry};
|
|
316
|
+
}
|
|
317
|
+
return this.bbox;
|
|
318
|
+
}});
|
|
319
|
+
_c.Circle=_2("dojox.gfx.shape.Circle",_c.Shape,{constructor:function(_35){
|
|
320
|
+
this.shape=g.getDefault("Circle");
|
|
321
|
+
this.rawNode=_35;
|
|
322
|
+
},getBoundingBox:function(){
|
|
323
|
+
if(!this.bbox){
|
|
324
|
+
var _36=this.shape;
|
|
325
|
+
this.bbox={x:_36.cx-_36.r,y:_36.cy-_36.r,width:2*_36.r,height:2*_36.r};
|
|
326
|
+
}
|
|
327
|
+
return this.bbox;
|
|
328
|
+
}});
|
|
329
|
+
_c.Line=_2("dojox.gfx.shape.Line",_c.Shape,{constructor:function(_37){
|
|
330
|
+
this.shape=g.getDefault("Line");
|
|
331
|
+
this.rawNode=_37;
|
|
332
|
+
},getBoundingBox:function(){
|
|
333
|
+
if(!this.bbox){
|
|
334
|
+
var _38=this.shape;
|
|
335
|
+
this.bbox={x:Math.min(_38.x1,_38.x2),y:Math.min(_38.y1,_38.y2),width:Math.abs(_38.x2-_38.x1),height:Math.abs(_38.y2-_38.y1)};
|
|
336
|
+
}
|
|
337
|
+
return this.bbox;
|
|
338
|
+
}});
|
|
339
|
+
_c.Polyline=_2("dojox.gfx.shape.Polyline",_c.Shape,{constructor:function(_39){
|
|
340
|
+
this.shape=g.getDefault("Polyline");
|
|
341
|
+
this.rawNode=_39;
|
|
342
|
+
},setShape:function(_3a,_3b){
|
|
343
|
+
if(_3a&&_3a instanceof Array){
|
|
344
|
+
this.inherited(arguments,[{points:_3a}]);
|
|
345
|
+
if(_3b&&this.shape.points.length){
|
|
346
|
+
this.shape.points.push(this.shape.points[0]);
|
|
347
|
+
}
|
|
348
|
+
}else{
|
|
349
|
+
this.inherited(arguments,[_3a]);
|
|
350
|
+
}
|
|
351
|
+
return this;
|
|
352
|
+
},_normalizePoints:function(){
|
|
353
|
+
var p=this.shape.points,l=p&&p.length;
|
|
354
|
+
if(l&&typeof p[0]=="number"){
|
|
355
|
+
var _3c=[];
|
|
356
|
+
for(var i=0;i<l;i+=2){
|
|
357
|
+
_3c.push({x:p[i],y:p[i+1]});
|
|
358
|
+
}
|
|
359
|
+
this.shape.points=_3c;
|
|
360
|
+
}
|
|
361
|
+
},getBoundingBox:function(){
|
|
362
|
+
if(!this.bbox&&this.shape.points.length){
|
|
363
|
+
var p=this.shape.points;
|
|
364
|
+
var l=p.length;
|
|
365
|
+
var t=p[0];
|
|
366
|
+
var _3d={l:t.x,t:t.y,r:t.x,b:t.y};
|
|
367
|
+
for(var i=1;i<l;++i){
|
|
368
|
+
t=p[i];
|
|
369
|
+
if(_3d.l>t.x){
|
|
370
|
+
_3d.l=t.x;
|
|
371
|
+
}
|
|
372
|
+
if(_3d.r<t.x){
|
|
373
|
+
_3d.r=t.x;
|
|
374
|
+
}
|
|
375
|
+
if(_3d.t>t.y){
|
|
376
|
+
_3d.t=t.y;
|
|
377
|
+
}
|
|
378
|
+
if(_3d.b<t.y){
|
|
379
|
+
_3d.b=t.y;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
this.bbox={x:_3d.l,y:_3d.t,width:_3d.r-_3d.l,height:_3d.b-_3d.t};
|
|
383
|
+
}
|
|
384
|
+
return this.bbox;
|
|
385
|
+
}});
|
|
386
|
+
_c.Image=_2("dojox.gfx.shape.Image",_c.Shape,{constructor:function(_3e){
|
|
387
|
+
this.shape=g.getDefault("Image");
|
|
388
|
+
this.rawNode=_3e;
|
|
389
|
+
},getBoundingBox:function(){
|
|
390
|
+
return this.shape;
|
|
391
|
+
},setStroke:function(){
|
|
392
|
+
return this;
|
|
393
|
+
},setFill:function(){
|
|
394
|
+
return this;
|
|
395
|
+
}});
|
|
396
|
+
_c.Text=_2(_c.Shape,{constructor:function(_3f){
|
|
397
|
+
this.fontStyle=null;
|
|
398
|
+
this.shape=g.getDefault("Text");
|
|
399
|
+
this.rawNode=_3f;
|
|
400
|
+
},getFont:function(){
|
|
401
|
+
return this.fontStyle;
|
|
402
|
+
},setFont:function(_40){
|
|
403
|
+
this.fontStyle=typeof _40=="string"?g.splitFontString(_40):g.makeParameters(g.defaultFont,_40);
|
|
404
|
+
this._setFont();
|
|
405
|
+
return this;
|
|
406
|
+
},getBoundingBox:function(){
|
|
407
|
+
var _41=null,s=this.getShape();
|
|
408
|
+
if(s.text){
|
|
409
|
+
_41=g._base._computeTextBoundingBox(this);
|
|
410
|
+
}
|
|
411
|
+
return _41;
|
|
412
|
+
}});
|
|
413
|
+
_c.Creator={createShape:function(_42){
|
|
414
|
+
switch(_42.type){
|
|
415
|
+
case g.defaultPath.type:
|
|
416
|
+
return this.createPath(_42);
|
|
417
|
+
case g.defaultRect.type:
|
|
418
|
+
return this.createRect(_42);
|
|
419
|
+
case g.defaultCircle.type:
|
|
420
|
+
return this.createCircle(_42);
|
|
421
|
+
case g.defaultEllipse.type:
|
|
422
|
+
return this.createEllipse(_42);
|
|
423
|
+
case g.defaultLine.type:
|
|
424
|
+
return this.createLine(_42);
|
|
425
|
+
case g.defaultPolyline.type:
|
|
426
|
+
return this.createPolyline(_42);
|
|
427
|
+
case g.defaultImage.type:
|
|
428
|
+
return this.createImage(_42);
|
|
429
|
+
case g.defaultText.type:
|
|
430
|
+
return this.createText(_42);
|
|
431
|
+
case g.defaultTextPath.type:
|
|
432
|
+
return this.createTextPath(_42);
|
|
433
|
+
}
|
|
434
|
+
return null;
|
|
435
|
+
},createGroup:function(){
|
|
436
|
+
return this.createObject(g.Group);
|
|
437
|
+
},createRect:function(_43){
|
|
438
|
+
return this.createObject(g.Rect,_43);
|
|
439
|
+
},createEllipse:function(_44){
|
|
440
|
+
return this.createObject(g.Ellipse,_44);
|
|
441
|
+
},createCircle:function(_45){
|
|
442
|
+
return this.createObject(g.Circle,_45);
|
|
443
|
+
},createLine:function(_46){
|
|
444
|
+
return this.createObject(g.Line,_46);
|
|
445
|
+
},createPolyline:function(_47){
|
|
446
|
+
return this.createObject(g.Polyline,_47);
|
|
447
|
+
},createImage:function(_48){
|
|
448
|
+
return this.createObject(g.Image,_48);
|
|
449
|
+
},createText:function(_49){
|
|
450
|
+
return this.createObject(g.Text,_49);
|
|
451
|
+
},createPath:function(_4a){
|
|
452
|
+
return this.createObject(g.Path,_4a);
|
|
453
|
+
},createTextPath:function(_4b){
|
|
454
|
+
return this.createObject(g.TextPath,{}).setText(_4b);
|
|
455
|
+
},createObject:function(_4c,_4d){
|
|
456
|
+
return null;
|
|
457
|
+
}};
|
|
458
|
+
return _c;
|
|
459
|
+
});
|