aw-highstock_rails 7.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +22 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +10 -0
- data/aw-highstock_rails.gemspec +28 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/aw/highstock_rails.rb +9 -0
- data/lib/aw/highstock_rails/version.rb +5 -0
- data/vendor/assets/javascripts/highstock/css/annotations/popup.css +229 -0
- data/vendor/assets/javascripts/highstock/css/annotations/popup.scss +235 -0
- data/vendor/assets/javascripts/highstock/css/highcharts.css +890 -0
- data/vendor/assets/javascripts/highstock/css/highcharts.scss +788 -0
- data/vendor/assets/javascripts/highstock/css/stocktools/gui.css +268 -0
- data/vendor/assets/javascripts/highstock/css/stocktools/gui.scss +270 -0
- data/vendor/assets/javascripts/highstock/css/themes/dark-unica.css +951 -0
- data/vendor/assets/javascripts/highstock/css/themes/dark-unica.scss +122 -0
- data/vendor/assets/javascripts/highstock/css/themes/grid-light.css +904 -0
- data/vendor/assets/javascripts/highstock/css/themes/grid-light.scss +33 -0
- data/vendor/assets/javascripts/highstock/css/themes/sand-signika.css +920 -0
- data/vendor/assets/javascripts/highstock/css/themes/sand-signika.scss +74 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/ControlPoint.js +130 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/MockPoint.js +415 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/annotations.src.js +1231 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableCircle.js +92 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableImage.js +101 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableLabel.js +452 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllablePath.js +175 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/ControllableRect.js +93 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/controllableMixin.js +411 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/controllable/markerMixin.js +214 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/eventEmitterMixin.js +271 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/navigationBindings.js +1283 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/popup.js +1069 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/CrookedLine.js +191 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/ElliottWave.js +76 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Fibonacci.js +247 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/InfinityLine.js +185 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Measure.js +928 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Pitchfork.js +203 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/Tunnel.js +242 -0
- data/vendor/assets/javascripts/highstock/es-modules/annotations/types/VerticalLine.js +157 -0
- data/vendor/assets/javascripts/highstock/es-modules/error-messages.js +128 -0
- data/vendor/assets/javascripts/highstock/es-modules/error.js +1 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/acceleration-bands.src.js +199 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/accumulation-distribution.src.js +129 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/ao.src.js +206 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/apo.src.js +148 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/aroon-oscillator.src.js +128 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/aroon.src.js +173 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/atr.src.js +151 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/bollinger-bands.src.js +209 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/cci.src.js +131 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/chaikin.src.js +167 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/cmf.src.js +246 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/dema.src.js +191 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/dpo.src.js +138 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/ema.src.js +166 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/ichimoku-kinko-hyo.src.js +850 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/indicators.src.js +425 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/keltner-channels.src.js +193 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/macd.src.js +417 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/mfi.src.js +198 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/momentum.src.js +119 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/natr.src.js +74 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/pivot-points.src.js +360 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/ppo.src.js +152 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/price-channel.src.js +149 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/price-envelopes.src.js +251 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/psar.src.js +307 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/regressions.src.js +427 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/roc.src.js +149 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/rsi.src.js +163 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/stochastic.src.js +193 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/supertrend.src.js +544 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/tema.src.js +247 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/trix.src.js +96 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/volume-by-price.src.js +671 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/vwap.src.js +189 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/williams-r.src.js +128 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/wma.src.js +146 -0
- data/vendor/assets/javascripts/highstock/es-modules/indicators/zigzag.src.js +221 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/highcharts-3d.src.js +17 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/highcharts-more.src.js +22 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/highstock.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/acceleration-bands.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/accumulation-distribution.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ao.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/apo.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/aroon-oscillator.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/aroon.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/atr.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/bollinger-bands.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/cci.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/chaikin.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/cmf.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/dema.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/dpo.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ema.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/indicators-all.src.js +49 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/indicators.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/keltner-channels.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/macd.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/mfi.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/momentum.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/natr.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/pivot-points.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/ppo.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/price-channel.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/price-envelopes.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/psar.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/regressions.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/roc.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/rsi.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/stochastic.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/supertrend.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/tema.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/trix.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/volume-by-price.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/vwap.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/williams-r.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/wma.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/indicators/zigzag.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/accessibility.src.js +13 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/annotations-advanced.src.js +20 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/annotations.src.js +12 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/arrow-symbols.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/boost-canvas.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/boost.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/bullet.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/current-date-indicator.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/cylinder.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/data.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/datagrouping.src.js +12 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/debugger.src.js +13 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/dependency-wheel.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/drag-panes.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/draggable-points.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/drilldown.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/export-data.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/exporting.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/full-screen.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/funnel.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/grid-axis.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/heatmap.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/histogram-bellcurve.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/item-series.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/networkgraph.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/no-data-to-display.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/offline-exporting.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/oldie-polyfills.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/oldie.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/overlapping-datalabels.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/parallel-coordinates.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pareto.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pathfinder.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/pattern-fill.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/price-indicator.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sankey.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/series-label.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/solid-gauge.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sonification.src.js +12 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/static-scale.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/stock-tools.src.js +12 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/stock.src.js +19 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/streamgraph.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/sunburst.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/tilemap.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/timeline.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/treegrid.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/treemap.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/variable-pie.src.js +11 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/variwide.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/vector.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/venn.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/windbarb.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/wordcloud.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/modules/xrange.src.js +10 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/avocado.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/avocado.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-blue.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-green.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/dark-unica.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/gray.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/grid-light.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/grid.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sand-signika.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/skies.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sunset.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/masters/themes/sunset.src.js +9 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/ajax.js +123 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/centered-series.js +116 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/derived-series.js +150 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/download-url.js +103 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/draw-point.js +51 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/geometry-circles.js +300 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/geometry.js +50 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/indicator-required.js +49 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/multipe-lines.js +223 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/navigation.js +59 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/nodes.js +76 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/on-series.js +167 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/polygon.js +293 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/reduce-array.js +53 -0
- data/vendor/assets/javascripts/highstock/es-modules/mixins/tree-series.js +256 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/a11y-i18n.src.js +524 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/annotations-legacy.src.js +1951 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/bellcurve.src.js +173 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/boost-canvas.src.js +732 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/boost.src.js +3730 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/bullet.src.js +361 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/cylinder.src.js +389 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/data.src.js +2417 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/debugger.src.js +109 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/dependency-wheel.src.js +199 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/drag-panes.src.js +624 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/draggable-points.src.js +2625 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/drilldown.src.js +1300 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/export-data.src.js +983 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/exporting.src.js +2149 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/full-screen.src.js +40 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/funnel.src.js +552 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/histogram.src.js +229 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/item-series.src.js +150 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/keyboard-navigation.src.js +1606 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/QuadTree.js +175 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/layouts.js +506 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/networkgraph/networkgraph.src.js +740 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/no-data-to-display.src.js +260 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/offline-exporting.src.js +710 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/oldie-polyfills.src.js +121 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/oldie.src.js +1556 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/overlapping-datalabels.src.js +250 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/parallel-coordinates.src.js +492 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/pareto.src.js +152 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/pattern-fill.src.js +607 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/price-indicator.src.js +149 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sankey.src.js +809 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/screen-reader.src.js +954 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/series-label.src.js +1042 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/solid-gauge.src.js +486 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Earcon.js +184 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Instrument.js +582 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/Timeline.js +702 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/chartSonify.js +1026 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/instrumentDefinitions.js +37 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/musicalFrequencies.js +113 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/pointSonify.js +385 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/sonification.js +107 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sonification/utilities.js +178 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/static-scale.src.js +88 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/stock-tools-bindings.js +1950 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/stock-tools-gui.js +1458 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/streamgraph.src.js +132 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/sunburst.src.js +1041 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/tilemap.src.js +769 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/timeline.src.js +750 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/treemap.src.js +1803 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/variable-pie.src.js +459 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/variwide.src.js +350 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/vector.src.js +354 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/venn.src.js +1192 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/windbarb.src.js +380 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/wordcloud.src.js +1103 -0
- data/vendor/assets/javascripts/highstock/es-modules/modules/xrange.src.js +761 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Axis.js +669 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Chart.js +1753 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Column.js +437 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Math.js +206 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Pie.js +207 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/SVGRenderer.js +1002 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Scatter.js +154 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/Series.js +73 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-3d/VMLRenderer.js +62 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/ArrowSymbols.js +198 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/CurrentDateIndicator.js +100 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GanttChart.js +140 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GanttSeries.js +415 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/GridAxis.js +961 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/Pathfinder.js +1298 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/PathfinderAlgorithms.js +816 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/Tree.js +158 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-gantt/TreeGrid.js +1003 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/ColorAxis.js +1103 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/ColorSeriesMixin.js +138 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/GeoJSON.js +435 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/HeatmapSeries.js +474 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/Map.js +477 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapAxis.js +124 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapBubbleSeries.js +274 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapLineSeries.js +143 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapNavigation.js +357 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapPointSeries.js +187 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapPointer.js +132 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-map/MapSeries.js +1294 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/AreaRangeSeries.js +725 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/AreaSplineRangeSeries.js +98 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/BoxPlotSeries.js +617 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/BubbleLegend.js +1167 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/BubbleSeries.js +661 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/ColumnPyramidSeries.js +288 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/ColumnRangeSeries.js +278 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/ErrorBarSeries.js +172 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/GaugeSeries.js +618 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/PackedBubbleSeries.js +567 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/Pane.js +399 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/Polar.js +634 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/PolygonSeries.js +151 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/RadialAxis.js +685 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts-more/WaterfallSeries.js +765 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts.js +684 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/AreaSeries.js +578 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/AreaSplineSeries.js +122 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Axis.js +6453 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/BarSeries.js +153 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/CandlestickSeries.js +358 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Chart.js +2307 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Color.js +301 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/ColumnSeries.js +1125 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/DataGrouping.js +1115 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/DataLabels.js +1431 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/DateTimeAxis.js +134 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Dynamics.js +1301 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/FlagsSeries.js +739 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Globals.js +75 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Html.js +539 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Interaction.js +1299 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Legend.js +1411 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/LogarithmicAxis.js +168 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/MSPointer.js +176 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Navigator.js +2486 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/OHLCSeries.js +412 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Options.js +3732 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/OrdinalAxis.js +962 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/PieSeries.js +1328 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/PlotBandSeries.experimental.js +74 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/PlotLineOrBand.js +1061 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Point.js +681 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Pointer.js +1332 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/RangeSelector.js +2063 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Responsive.js +295 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/ScatterSeries.js +278 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/ScrollablePlotArea.js +266 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Scrollbar.js +1134 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Series.js +5864 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/SplineSeries.js +267 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Stacking.js +604 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/StockChart.js +951 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/SvgRenderer.js +5109 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Tick.js +746 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Time.js +881 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Tooltip.js +1318 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/TouchPointer.js +404 -0
- data/vendor/assets/javascripts/highstock/es-modules/parts/Utilities.js +2751 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/avocado.js +37 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/dark-blue.js +259 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/dark-green.js +261 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/dark-unica.js +220 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/gray.js +267 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/grid-light.js +81 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/grid.js +110 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/sand-signika.js +111 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/skies.js +100 -0
- data/vendor/assets/javascripts/highstock/es-modules/themes/sunset.js +36 -0
- data/vendor/assets/javascripts/highstock/highcharts-3d.js +85 -0
- data/vendor/assets/javascripts/highstock/highcharts-3d.js.map +1 -0
- data/vendor/assets/javascripts/highstock/highcharts-more.js +101 -0
- data/vendor/assets/javascripts/highstock/highcharts-more.js.map +1 -0
- data/vendor/assets/javascripts/highstock/highstock.js +583 -0
- data/vendor/assets/javascripts/highstock/highstock.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/acceleration-bands.src.js +448 -0
- data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/accumulation-distribution.src.js +156 -0
- data/vendor/assets/javascripts/highstock/indicators/ao.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/ao.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/ao.src.js +233 -0
- data/vendor/assets/javascripts/highstock/indicators/apo.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/apo.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/apo.src.js +223 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.js +15 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon-oscillator.src.js +426 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/aroon.src.js +423 -0
- data/vendor/assets/javascripts/highstock/indicators/atr.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/atr.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/atr.src.js +178 -0
- data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/bollinger-bands.src.js +458 -0
- data/vendor/assets/javascripts/highstock/indicators/cci.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/cci.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/cci.src.js +158 -0
- data/vendor/assets/javascripts/highstock/indicators/chaikin.js +15 -0
- data/vendor/assets/javascripts/highstock/indicators/chaikin.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/chaikin.src.js +370 -0
- data/vendor/assets/javascripts/highstock/indicators/cmf.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/cmf.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/cmf.src.js +273 -0
- data/vendor/assets/javascripts/highstock/indicators/dema.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/dema.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/dema.src.js +266 -0
- data/vendor/assets/javascripts/highstock/indicators/dpo.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/dpo.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/dpo.src.js +166 -0
- data/vendor/assets/javascripts/highstock/indicators/ema.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/ema.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/ema.src.js +193 -0
- data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.js +22 -0
- data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/ichimoku-kinko-hyo.src.js +877 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators-all.js +117 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators-all.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators-all.src.js +9389 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators.js +17 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/indicators.src.js +500 -0
- data/vendor/assets/javascripts/highstock/indicators/keltner-channels.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/keltner-channels.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/keltner-channels.src.js +442 -0
- data/vendor/assets/javascripts/highstock/indicators/macd.js +18 -0
- data/vendor/assets/javascripts/highstock/indicators/macd.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/macd.src.js +444 -0
- data/vendor/assets/javascripts/highstock/indicators/mfi.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/mfi.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/mfi.src.js +225 -0
- data/vendor/assets/javascripts/highstock/indicators/momentum.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/momentum.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/momentum.src.js +146 -0
- data/vendor/assets/javascripts/highstock/indicators/natr.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/natr.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/natr.src.js +101 -0
- data/vendor/assets/javascripts/highstock/indicators/pivot-points.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/pivot-points.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/pivot-points.src.js +387 -0
- data/vendor/assets/javascripts/highstock/indicators/ppo.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/ppo.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/ppo.src.js +227 -0
- data/vendor/assets/javascripts/highstock/indicators/price-channel.js +16 -0
- data/vendor/assets/javascripts/highstock/indicators/price-channel.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/price-channel.src.js +450 -0
- data/vendor/assets/javascripts/highstock/indicators/price-envelopes.js +15 -0
- data/vendor/assets/javascripts/highstock/indicators/price-envelopes.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/price-envelopes.src.js +278 -0
- data/vendor/assets/javascripts/highstock/indicators/psar.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/psar.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/psar.src.js +334 -0
- data/vendor/assets/javascripts/highstock/indicators/regressions.js +14 -0
- data/vendor/assets/javascripts/highstock/indicators/regressions.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/regressions.src.js +454 -0
- data/vendor/assets/javascripts/highstock/indicators/roc.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/roc.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/roc.src.js +176 -0
- data/vendor/assets/javascripts/highstock/indicators/rsi.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/rsi.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/rsi.src.js +190 -0
- data/vendor/assets/javascripts/highstock/indicators/stochastic.js +17 -0
- data/vendor/assets/javascripts/highstock/indicators/stochastic.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/stochastic.src.js +494 -0
- data/vendor/assets/javascripts/highstock/indicators/supertrend.js +17 -0
- data/vendor/assets/javascripts/highstock/indicators/supertrend.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/supertrend.src.js +571 -0
- data/vendor/assets/javascripts/highstock/indicators/tema.js +14 -0
- data/vendor/assets/javascripts/highstock/indicators/tema.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/tema.src.js +322 -0
- data/vendor/assets/javascripts/highstock/indicators/trix.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/trix.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/trix.src.js +171 -0
- data/vendor/assets/javascripts/highstock/indicators/volume-by-price.js +21 -0
- data/vendor/assets/javascripts/highstock/indicators/volume-by-price.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/volume-by-price.src.js +698 -0
- data/vendor/assets/javascripts/highstock/indicators/vwap.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/vwap.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/vwap.src.js +216 -0
- data/vendor/assets/javascripts/highstock/indicators/williams-r.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/williams-r.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/williams-r.src.js +207 -0
- data/vendor/assets/javascripts/highstock/indicators/wma.js +12 -0
- data/vendor/assets/javascripts/highstock/indicators/wma.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/wma.src.js +173 -0
- data/vendor/assets/javascripts/highstock/indicators/zigzag.js +13 -0
- data/vendor/assets/javascripts/highstock/indicators/zigzag.js.map +1 -0
- data/vendor/assets/javascripts/highstock/indicators/zigzag.src.js +248 -0
- data/vendor/assets/javascripts/highstock/lib/canvg.js +130 -0
- data/vendor/assets/javascripts/highstock/lib/canvg.src.js +3073 -0
- data/vendor/assets/javascripts/highstock/lib/jspdf.js +283 -0
- data/vendor/assets/javascripts/highstock/lib/jspdf.src.js +21627 -0
- data/vendor/assets/javascripts/highstock/lib/rgbcolor.js +17 -0
- data/vendor/assets/javascripts/highstock/lib/rgbcolor.src.js +299 -0
- data/vendor/assets/javascripts/highstock/lib/svg2pdf.js +38 -0
- data/vendor/assets/javascripts/highstock/lib/svg2pdf.src.js +4390 -0
- data/vendor/assets/javascripts/highstock/modules/accessibility.js +73 -0
- data/vendor/assets/javascripts/highstock/modules/accessibility.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/accessibility.src.js +3103 -0
- data/vendor/assets/javascripts/highstock/modules/annotations-advanced.js +132 -0
- data/vendor/assets/javascripts/highstock/modules/annotations-advanced.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/annotations-advanced.src.js +8230 -0
- data/vendor/assets/javascripts/highstock/modules/annotations.js +94 -0
- data/vendor/assets/javascripts/highstock/modules/annotations.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/annotations.src.js +6001 -0
- data/vendor/assets/javascripts/highstock/modules/arrow-symbols.js +11 -0
- data/vendor/assets/javascripts/highstock/modules/arrow-symbols.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/arrow-symbols.src.js +225 -0
- data/vendor/assets/javascripts/highstock/modules/boost-canvas.js +23 -0
- data/vendor/assets/javascripts/highstock/modules/boost-canvas.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/boost-canvas.src.js +756 -0
- data/vendor/assets/javascripts/highstock/modules/boost.js +65 -0
- data/vendor/assets/javascripts/highstock/modules/boost.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/boost.src.js +3752 -0
- data/vendor/assets/javascripts/highstock/modules/bullet.js +14 -0
- data/vendor/assets/javascripts/highstock/modules/bullet.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/bullet.src.js +388 -0
- data/vendor/assets/javascripts/highstock/modules/current-date-indicator.js +11 -0
- data/vendor/assets/javascripts/highstock/modules/current-date-indicator.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/current-date-indicator.src.js +127 -0
- data/vendor/assets/javascripts/highstock/modules/cylinder.js +14 -0
- data/vendor/assets/javascripts/highstock/modules/cylinder.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/cylinder.src.js +413 -0
- data/vendor/assets/javascripts/highstock/modules/data.js +37 -0
- data/vendor/assets/javascripts/highstock/modules/data.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/data.src.js +2565 -0
- data/vendor/assets/javascripts/highstock/modules/datagrouping.js +25 -0
- data/vendor/assets/javascripts/highstock/modules/datagrouping.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/datagrouping.src.js +1140 -0
- data/vendor/assets/javascripts/highstock/modules/debugger.js +28 -0
- data/vendor/assets/javascripts/highstock/modules/debugger.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/debugger.src.js +267 -0
- data/vendor/assets/javascripts/highstock/modules/dependency-wheel.js +15 -0
- data/vendor/assets/javascripts/highstock/modules/dependency-wheel.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/dependency-wheel.src.js +301 -0
- data/vendor/assets/javascripts/highstock/modules/drag-panes.js +18 -0
- data/vendor/assets/javascripts/highstock/modules/drag-panes.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/drag-panes.src.js +649 -0
- data/vendor/assets/javascripts/highstock/modules/draggable-points.js +40 -0
- data/vendor/assets/javascripts/highstock/modules/draggable-points.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/draggable-points.src.js +2650 -0
- data/vendor/assets/javascripts/highstock/modules/drilldown.js +29 -0
- data/vendor/assets/javascripts/highstock/modules/drilldown.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/drilldown.src.js +1321 -0
- data/vendor/assets/javascripts/highstock/modules/export-data.js +27 -0
- data/vendor/assets/javascripts/highstock/modules/export-data.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/export-data.src.js +1234 -0
- data/vendor/assets/javascripts/highstock/modules/exporting.js +35 -0
- data/vendor/assets/javascripts/highstock/modules/exporting.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/exporting.src.js +2233 -0
- data/vendor/assets/javascripts/highstock/modules/full-screen.js +11 -0
- data/vendor/assets/javascripts/highstock/modules/full-screen.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/full-screen.src.js +68 -0
- data/vendor/assets/javascripts/highstock/modules/funnel.js +14 -0
- data/vendor/assets/javascripts/highstock/modules/funnel.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/funnel.src.js +576 -0
- data/vendor/assets/javascripts/highstock/modules/grid-axis.js +23 -0
- data/vendor/assets/javascripts/highstock/modules/grid-axis.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/grid-axis.src.js +988 -0
- data/vendor/assets/javascripts/highstock/modules/heatmap.js +28 -0
- data/vendor/assets/javascripts/highstock/modules/heatmap.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/heatmap.src.js +1731 -0
- data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.js +16 -0
- data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/histogram-bellcurve.src.js +570 -0
- data/vendor/assets/javascripts/highstock/modules/item-series.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/item-series.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/item-series.src.js +176 -0
- data/vendor/assets/javascripts/highstock/modules/networkgraph.js +31 -0
- data/vendor/assets/javascripts/highstock/modules/networkgraph.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/networkgraph.src.js +1348 -0
- data/vendor/assets/javascripts/highstock/modules/no-data-to-display.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/no-data-to-display.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/no-data-to-display.src.js +285 -0
- data/vendor/assets/javascripts/highstock/modules/offline-exporting.js +22 -0
- data/vendor/assets/javascripts/highstock/modules/offline-exporting.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/offline-exporting.src.js +838 -0
- data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/oldie-polyfills.src.js +150 -0
- data/vendor/assets/javascripts/highstock/modules/oldie.js +35 -0
- data/vendor/assets/javascripts/highstock/modules/oldie.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/oldie.src.js +1582 -0
- data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.js +9 -0
- data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/overlapping-datalabels.src.js +22 -0
- data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.js +18 -0
- data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/parallel-coordinates.src.js +517 -0
- data/vendor/assets/javascripts/highstock/modules/pareto.js +14 -0
- data/vendor/assets/javascripts/highstock/modules/pareto.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/pareto.src.js +327 -0
- data/vendor/assets/javascripts/highstock/modules/pathfinder.js +34 -0
- data/vendor/assets/javascripts/highstock/modules/pathfinder.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/pathfinder.src.js +2336 -0
- data/vendor/assets/javascripts/highstock/modules/pattern-fill.js +21 -0
- data/vendor/assets/javascripts/highstock/modules/pattern-fill.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/pattern-fill.src.js +634 -0
- data/vendor/assets/javascripts/highstock/modules/price-indicator.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/price-indicator.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/price-indicator.src.js +176 -0
- data/vendor/assets/javascripts/highstock/modules/sankey.js +22 -0
- data/vendor/assets/javascripts/highstock/modules/sankey.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/sankey.src.js +911 -0
- data/vendor/assets/javascripts/highstock/modules/series-label.js +23 -0
- data/vendor/assets/javascripts/highstock/modules/series-label.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/series-label.src.js +1065 -0
- data/vendor/assets/javascripts/highstock/modules/solid-gauge.js +15 -0
- data/vendor/assets/javascripts/highstock/modules/solid-gauge.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/solid-gauge.src.js +510 -0
- data/vendor/assets/javascripts/highstock/modules/sonification.js +53 -0
- data/vendor/assets/javascripts/highstock/modules/sonification.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/sonification.src.js +3341 -0
- data/vendor/assets/javascripts/highstock/modules/static-scale.js +12 -0
- data/vendor/assets/javascripts/highstock/modules/static-scale.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/static-scale.src.js +114 -0
- data/vendor/assets/javascripts/highstock/modules/stock-tools.js +65 -0
- data/vendor/assets/javascripts/highstock/modules/stock-tools.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/stock-tools.src.js +3437 -0
- data/vendor/assets/javascripts/highstock/modules/stock.js +151 -0
- data/vendor/assets/javascripts/highstock/modules/stock.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/stock.src.js +10907 -0
- data/vendor/assets/javascripts/highstock/modules/streamgraph.js +10 -0
- data/vendor/assets/javascripts/highstock/modules/streamgraph.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/streamgraph.src.js +158 -0
- data/vendor/assets/javascripts/highstock/modules/sunburst.js +52 -0
- data/vendor/assets/javascripts/highstock/modules/sunburst.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/sunburst.src.js +3174 -0
- data/vendor/assets/javascripts/highstock/modules/tilemap.js +26 -0
- data/vendor/assets/javascripts/highstock/modules/tilemap.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/tilemap.src.js +1402 -0
- data/vendor/assets/javascripts/highstock/modules/timeline.js +23 -0
- data/vendor/assets/javascripts/highstock/modules/timeline.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/timeline.src.js +778 -0
- data/vendor/assets/javascripts/highstock/modules/treegrid.js +50 -0
- data/vendor/assets/javascripts/highstock/modules/treegrid.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/treegrid.src.js +2917 -0
- data/vendor/assets/javascripts/highstock/modules/treemap.js +39 -0
- data/vendor/assets/javascripts/highstock/modules/treemap.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/treemap.src.js +2083 -0
- data/vendor/assets/javascripts/highstock/modules/variable-pie.js +16 -0
- data/vendor/assets/javascripts/highstock/modules/variable-pie.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/variable-pie.src.js +485 -0
- data/vendor/assets/javascripts/highstock/modules/variwide.js +15 -0
- data/vendor/assets/javascripts/highstock/modules/variwide.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/variwide.src.js +376 -0
- data/vendor/assets/javascripts/highstock/modules/vector.js +13 -0
- data/vendor/assets/javascripts/highstock/modules/vector.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/vector.src.js +381 -0
- data/vendor/assets/javascripts/highstock/modules/venn.js +30 -0
- data/vendor/assets/javascripts/highstock/modules/venn.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/venn.src.js +1624 -0
- data/vendor/assets/javascripts/highstock/modules/windbarb.js +17 -0
- data/vendor/assets/javascripts/highstock/modules/windbarb.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/windbarb.src.js +574 -0
- data/vendor/assets/javascripts/highstock/modules/wordcloud.js +25 -0
- data/vendor/assets/javascripts/highstock/modules/wordcloud.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/wordcloud.src.js +1475 -0
- data/vendor/assets/javascripts/highstock/modules/xrange.js +20 -0
- data/vendor/assets/javascripts/highstock/modules/xrange.js.map +1 -0
- data/vendor/assets/javascripts/highstock/modules/xrange.src.js +788 -0
- data/vendor/assets/javascripts/highstock/themes/avocado.js +9 -0
- data/vendor/assets/javascripts/highstock/themes/avocado.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/avocado.src.js +63 -0
- data/vendor/assets/javascripts/highstock/themes/dark-blue.js +15 -0
- data/vendor/assets/javascripts/highstock/themes/dark-blue.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/dark-blue.src.js +285 -0
- data/vendor/assets/javascripts/highstock/themes/dark-green.js +15 -0
- data/vendor/assets/javascripts/highstock/themes/dark-green.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/dark-green.src.js +287 -0
- data/vendor/assets/javascripts/highstock/themes/dark-unica.js +14 -0
- data/vendor/assets/javascripts/highstock/themes/dark-unica.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/dark-unica.src.js +246 -0
- data/vendor/assets/javascripts/highstock/themes/gray.js +15 -0
- data/vendor/assets/javascripts/highstock/themes/gray.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/gray.src.js +293 -0
- data/vendor/assets/javascripts/highstock/themes/grid-light.js +11 -0
- data/vendor/assets/javascripts/highstock/themes/grid-light.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/grid-light.src.js +107 -0
- data/vendor/assets/javascripts/highstock/themes/grid.js +11 -0
- data/vendor/assets/javascripts/highstock/themes/grid.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/grid.src.js +136 -0
- data/vendor/assets/javascripts/highstock/themes/sand-signika.js +11 -0
- data/vendor/assets/javascripts/highstock/themes/sand-signika.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/sand-signika.src.js +137 -0
- data/vendor/assets/javascripts/highstock/themes/skies.js +11 -0
- data/vendor/assets/javascripts/highstock/themes/skies.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/skies.src.js +126 -0
- data/vendor/assets/javascripts/highstock/themes/sunset.js +9 -0
- data/vendor/assets/javascripts/highstock/themes/sunset.js.map +1 -0
- data/vendor/assets/javascripts/highstock/themes/sunset.src.js +62 -0
- metadata +781 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
/*
|
2
|
+
Highcharts JS v7.0.3 (2019-02-06)
|
3
|
+
|
4
|
+
(c) 2009-2019 Torstein Honsi
|
5
|
+
|
6
|
+
License: www.highcharts.com/license
|
7
|
+
*/
|
8
|
+
(function(m){"object"===typeof module&&module.exports?(m["default"]=m,module.exports=m):"function"===typeof define&&define.amd?define(function(){return m}):m("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(m){(function(h){function m(a){return{left:"right",right:"left",top:"bottom",bottom:"top"}[a]}function L(a){var b=["draggableX","draggableY"],c;n(a.dragDropProps,function(a){a.optionName&&b.push(a.optionName)});for(c=b.length;c--;)if(a.options.dragDrop[b[c]])return!0}function M(a){var b=
|
9
|
+
a.series?a.series.length:0;if(a.hasCartesianSeries&&!a.polar)for(;b--;)if(a.series[b].options.dragDrop&&L(a.series[b]))return!0}function N(a){var b=a.series,c=b.options.dragDrop||{};a=a.options&&a.options.dragDrop;var e,f;n(b.dragDropProps,function(a){"x"===a.axis&&a.move?e=!0:"y"===a.axis&&a.move&&(f=!0)});return(c.draggableX&&e||c.draggableY&&f)&&!(a&&!1===a.draggableX&&!1===a.draggableY)&&b.yAxis&&b.xAxis}function t(a,b){return void 0===a.chartX||void 0===a.chartY?b.pointer.normalize(a):a}function w(a,
|
10
|
+
b,c,e){var f=b.map(function(b){return p(a,b,c,e)});return function(){f.forEach(function(a){a()})}}function O(a,b,c){var e=b.dragDropData.origin;b=e.chartX;var e=e.chartY,f=a.chartX;a=a.chartY;return Math.sqrt((f-b)*(f-b)+(a-e)*(a-e))>c}function P(a,b,c){var e={chartX:a.chartX,chartY:a.chartY,guideBox:c&&{x:c.attr("x"),y:c.attr("y"),width:c.attr("width"),height:c.attr("height")},points:{}};b.forEach(function(a){var b={};n(a.series.dragDropProps,function(c,e){b[e]=a[e]});b.point=a;e.points[a.id]=b});
|
11
|
+
return e}function Q(a){var b=a.series,c=b.options.dragDrop.groupBy;return a.options[c]?b.points.filter(function(b){return b.options[c]===a.options[c]}):[a]}function D(a,b){var c=Q(b),e=b.series,f=e.chart,l;u(e.options.dragDrop&&e.options.dragDrop.liveRedraw,!0)||(f.dragGuideBox=l=e.getGuideBox(c),f.setGuideBoxState("default",e.options.dragDrop.guideBox).add(e.group));f.dragDropData={origin:P(a,c,l),point:b,groupedPoints:c,isDragging:!0}}function R(a,b){var c=a.point,e=q(c.series.options.dragDrop,
|
12
|
+
c.options.dragDrop),f={},l=a.updateProp,C={};n(c.series.dragDropProps,function(a,b){if(!l||l===b&&a.resize&&(!a.optionName||!1!==e[a.optionName]))if(l||a.move&&("x"===a.axis&&e.draggableX||"y"===a.axis&&e.draggableY))f[b]=a});(l?[c]:a.groupedPoints).forEach(function(c){C[c.id]={point:c,newValues:c.getDropValues(a.origin,b,f)}});return C}function E(a,b){var c=a.dragDropData.newPoints;b=!1===b?!1:q({duration:400},a.options.animation);a.isDragDropAnimating=!0;n(c,function(a){a.point.update(a.newValues,
|
13
|
+
!1)});a.redraw(b);setTimeout(function(){delete a.isDragDropAnimating;a.hoverPoint&&!a.dragHandles&&a.hoverPoint.showDragHandles()},b.duration)}function F(a){var b=a.series&&a.series.chart,c=b&&b.dragDropData;!b||!b.dragHandles||c&&(c.isDragging&&c.draggedPastSensitivity||c.isHoveringHandle===a.id)||b.hideDragHandles()}function G(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}function H(a){for(var b in a)if(a.hasOwnProperty(b))return a[b]}function S(a,b){if(!b.zoomOrPanKeyPressed(a)){var c=
|
14
|
+
b.dragDropData,e,f;f=0;c&&c.isDragging&&(e=c.point,f=e.series.options.dragDrop,a.preventDefault(),c.draggedPastSensitivity||(c.draggedPastSensitivity=O(a,b,u(e.options.dragDrop&&e.options.dragDrop.dragSensitivity,f&&f.dragSensitivity,2))),c.draggedPastSensitivity&&(c.newPoints=R(c,a),b=c.newPoints,f=G(b),b=1===f?H(b):null,e.firePointEvent("drag",{origin:c.origin,newPoints:c.newPoints,newPoint:b&&b.newValues,newPointId:b&&b.point.id,numNewPoints:f,chartX:a.chartX,chartY:a.chartY},function(){var b=
|
15
|
+
e.series,c=b.chart,f=c.dragDropData,d=q(b.options.dragDrop,e.options.dragDrop),g=d.draggableX,k=d.draggableY,b=f.origin,h=a.chartX-b.chartX,x=a.chartY-b.chartY,r=h,f=f.updateProp;c.inverted&&(h=-x,x=-r);if(u(d.liveRedraw,!0))E(c,!1),e.showDragHandles();else if(f){var g=h,c=x,r=e.series,k=r.chart,f=k.dragDropData,n,p,d=r.dragDropProps[f.updateProp];p=f.newPoints[e.id].newValues;n="function"===typeof d.resizeSide?d.resizeSide(p,e):d.resizeSide;d.beforeResize&&d.beforeResize(k.dragGuideBox,p,e);var k=
|
16
|
+
k.dragGuideBox,r="x"===d.axis&&r.xAxis.reversed||"y"===d.axis&&r.yAxis.reversed?m(n):n,g="x"===d.axis?g-(f.origin.prevdX||0):0,c="y"===d.axis?c-(f.origin.prevdY||0):0,v;switch(r){case "left":v={x:k.attr("x")+g,width:Math.max(1,k.attr("width")-g)};break;case "right":v={width:Math.max(1,k.attr("width")+g)};break;case "top":v={y:k.attr("y")+c,height:Math.max(1,k.attr("height")-c)};break;case "bottom":v={height:Math.max(1,k.attr("height")+c)}}k.attr(v)}else c.dragGuideBox.translate(g?h:0,k?x:0);b.prevdX=
|
17
|
+
h;b.prevdY=x})))}}function A(a,b){var c=b.dragDropData;if(c&&c.isDragging&&c.draggedPastSensitivity){var e=c.point,f=c.newPoints,l=G(f),d=1===l?H(f):null;b.dragHandles&&b.hideDragHandles();a.preventDefault();b.cancelClick=!0;e.firePointEvent("drop",{origin:c.origin,chartX:a.chartX,chartY:a.chartY,newPoints:f,numNewPoints:l,newPoint:d&&d.newValues,newPointId:d&&d.point.id},function(){E(b)})}delete b.dragDropData;b.dragGuideBox&&(b.dragGuideBox.destroy(),delete b.dragGuideBox)}function T(a){var b=a.container,
|
18
|
+
c=h.doc;M(a)&&(w(b,["mousedown","touchstart"],function(b){b=t(b,a);var c=a.hoverPoint,e=h.merge(c.series.options.dragDrop,c.options.dragDrop),d=e.draggableX||!1,e=e.draggableY||!1;a.cancelClick=!1;!d&&!e||a.zoomOrPanKeyPressed(b)||(a.dragDropData&&a.dragDropData.isDragging?A(b,a):c&&N(c)&&(a.mouseIsDown=!1,D(b,c),c.firePointEvent("dragStart",b)))}),w(b,["mousemove","touchmove"],function(b){S(t(b,a),a)}),p(b,"mouseleave",function(b){A(t(b,a),a)}),a.unbindDragDropMouseUp=w(c,["mouseup","touchend"],
|
19
|
+
function(b){A(t(b,a),a)}),a.hasAddedDragDropEvents=!0,p(a,"destroy",function(){a.unbindDragDropMouseUp&&a.unbindDragDropMouseUp()}))}var p=h.addEvent,n=h.objectEach,u=h.pick,q=h.merge,d=h.seriesTypes,I=function(a){a=a.shapeArgs||a.graphic.getBBox();var b=a.r||0,c=a.height/2;return["M",0,b,"L",0,c-5,"A",1,1,0,0,0,0,c+5,"A",1,1,0,0,0,0,c-5,"M",0,c+5,"L",0,a.height-b]},z=d.line.prototype.dragDropProps={x:{axis:"x",move:!0},y:{axis:"y",move:!0}};d.flags&&(d.flags.prototype.dragDropProps=z);var g=d.column.prototype.dragDropProps=
|
20
|
+
{x:{axis:"x",move:!0},y:{axis:"y",move:!1,resize:!0,beforeResize:function(a,b,c){var e=c.series.translatedThreshold,f=a.attr("y");b.y>=c.series.options.threshold?(b=a.attr("height"),a.attr({height:Math.max(0,Math.round(b+(e?e-(f+b):0)))})):a.attr({y:Math.round(f+(e?e-f:0))})},resizeSide:function(a,b){var c=b.series.chart.dragHandles;a=a.y>=(b.series.options.threshold||0)?"top":"bottom";b=m(a);c[b]&&(c[b].destroy(),delete c[b]);return a},handlePositioner:function(a){var b=a.shapeArgs||a.graphic.getBBox();
|
21
|
+
return{x:b.x,y:a.y>=(a.series.options.threshold||0)?b.y:b.y+b.height}},handleFormatter:function(a){a=a.shapeArgs;var b=a.r||0,c=a.width/2;return["M",b,0,"L",c-5,0,"A",1,1,0,0,0,c+5,0,"A",1,1,0,0,0,c-5,0,"M",c+5,0,"L",a.width-b,0]}}};d.bullet&&(d.bullet.prototype.dragDropProps={x:g.x,y:g.y,target:{optionName:"draggableTarget",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){var b=a.targetGraphic.getBBox();return{x:a.barX,y:b.y+b.height/2}},handleFormatter:g.y.handleFormatter}});
|
22
|
+
d.columnrange&&(d.columnrange.prototype.dragDropProps={x:{axis:"x",move:!0},low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){a=a.shapeArgs||a.graphic.getBBox();return{x:a.x,y:a.y+a.height}},handleFormatter:g.y.handleFormatter,propValidate:function(a,b){return a<=b.high}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){a=a.shapeArgs||a.graphic.getBBox();return{x:a.x,y:a.y}},handleFormatter:g.y.handleFormatter,
|
23
|
+
propValidate:function(a,b){return a>=b.low}}});d.boxplot&&(d.boxplot.prototype.dragDropProps={x:g.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.lowPlot}},handleFormatter:g.y.handleFormatter,propValidate:function(a,b){return a<=b.q1}},q1:{optionName:"draggableQ1",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.q1Plot}},handleFormatter:g.y.handleFormatter,
|
24
|
+
propValidate:function(a,b){return a<=b.median&&a>=b.low}},median:{axis:"y",move:!0},q3:{optionName:"draggableQ3",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.q3Plot}},handleFormatter:g.y.handleFormatter,propValidate:function(a,b){return a<=b.high&&a>=b.median}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.highPlot}},handleFormatter:g.y.handleFormatter,propValidate:function(a,
|
25
|
+
b){return a>=b.q3}}});d.ohlc&&(d.ohlc.prototype.dragDropProps={x:g.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.plotLow}},handleFormatter:g.y.handleFormatter,propValidate:function(a,b){return a<=b.open&&a<=b.close}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.plotHigh}},handleFormatter:g.y.handleFormatter,propValidate:function(a,
|
26
|
+
b){return a>=b.open&&a>=b.close}},open:{optionName:"draggableOpen",axis:"y",move:!0,resize:!0,resizeSide:function(a){return a.open>=a.close?"top":"bottom"},handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.plotOpen}},handleFormatter:g.y.handleFormatter,propValidate:function(a,b){return a<=b.high&&a>=b.low}},close:{optionName:"draggableClose",axis:"y",move:!0,resize:!0,resizeSide:function(a){return a.open>=a.close?"bottom":"top"},handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.plotClose}},
|
27
|
+
handleFormatter:g.y.handleFormatter,propValidate:function(a,b){return a<=b.high&&a>=b.low}}});if(d.arearange){var z=d.columnrange.prototype.dragDropProps,J=function(a){a=a.graphic?a.graphic.getBBox().width/2+1:4;return["M",0-a,0,"a",a,a,0,1,0,2*a,0,"a",a,a,0,1,0,-2*a,0]};d.arearange.prototype.dragDropProps={x:z.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){return(a=a.lowerGraphic&&a.lowerGraphic.getBBox())?{x:a.x+a.width/2,y:a.y+a.height/
|
28
|
+
2}:{x:-999,y:-999}},handleFormatter:J,propValidate:z.low.propValidate},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){return(a=a.upperGraphic&&a.upperGraphic.getBBox())?{x:a.x+a.width/2,y:a.y+a.height/2}:{x:-999,y:-999}},handleFormatter:J,propValidate:z.high.propValidate}}}d.waterfall&&(d.waterfall.prototype.dragDropProps={x:g.x,y:q(g.y,{handleFormatter:function(a){return a.isSum||a.isIntermediateSum?null:g.y.handleFormatter(a)}})});if(d.xrange)var K=
|
29
|
+
function(a,b){var c=a.series,e=c.xAxis,f=c.yAxis,c=c.chart.inverted;b=e.toPixels(a[b],!0);var d=f.toPixels(a.y,!0);c?(b=e.len-b,d=f.len-d-a.shapeArgs.height/2):d-=a.shapeArgs.height/2;return{x:Math.round(b),y:Math.round(d)}},B=d.xrange.prototype.dragDropProps={y:{axis:"y",move:!0},x:{optionName:"draggableX1",axis:"x",move:!0,resize:!0,resizeSide:"left",handlePositioner:function(a){return K(a,"x")},handleFormatter:I,propValidate:function(a,b){return a<=b.x2}},x2:{optionName:"draggableX2",axis:"x",
|
30
|
+
move:!0,resize:!0,resizeSide:"right",handlePositioner:function(a){return K(a,"x2")},handleFormatter:I,propValidate:function(a,b){return a>=b.x}}};d.gantt&&(d.gantt.prototype.dragDropProps={y:B.y,start:q(B.x,{optionName:"draggableStart",validateIndividualDrag:function(a){return!a.milestone}}),end:q(B.x2,{optionName:"draggableEnd",validateIndividualDrag:function(a){return!a.milestone}})});"gauge pie sunburst wordcloud sankey histogram pareto vector windbarb treemap bellcurve sma map mapline".split(" ").forEach(function(a){d[a]&&
|
31
|
+
(d[a].prototype.dragDropProps=null)});var U={"default":{className:"highcharts-drag-box-default",lineWidth:1,lineColor:"#888",color:"rgba(0, 0, 0, 0.1)",cursor:"move",zIndex:900}},V={className:"highcharts-drag-handle",color:"#fff",lineColor:"rgba(0, 0, 0, 0.6)",lineWidth:1,zIndex:901};h.Chart.prototype.setGuideBoxState=function(a,b){var c=this.dragGuideBox;b=q(U,b);a=q(b.default,b[a]);return c.attr({className:a.className,stroke:a.lineColor,strokeWidth:a.lineWidth,fill:a.color,cursor:a.cursor,zIndex:a.zIndex}).css({pointerEvents:"none"})};
|
32
|
+
h.Point.prototype.getDropValues=function(a,b,c){var e=this,f=e.series,d=q(f.options.dragDrop,e.options.dragDrop),g=f.yAxis,y=f.xAxis,h=b.chartX-a.chartX;b=b.chartY-a.chartY;var p=u(a.x,e.x),k=u(a.y,e.y),m=y.toValue(y.toPixels(p,!0)+(y.horiz?h:b),!0)-p,x=g.toValue(g.toPixels(k,!0)+(g.horiz?h:b),!0)-k,r={},t,w=a.points[e.id],v;for(v in c)if(c.hasOwnProperty(v)){if(void 0!==t){t=!1;break}t=!0}n(c,function(a,b){var c=w[b],l;l=c+("x"===a.axis?m:x);var g=a.axis.toUpperCase(),h=f[g.toLowerCase()+"Axis"].categories?
|
33
|
+
1:0,h=u(d["dragPrecision"+g],h),y=u(d["dragMin"+g],-Infinity),g=u(d["dragMax"+g],Infinity);h&&(l=Math.round(l/h)*h);l=Math.max(y,Math.min(g,l));t&&a.propValidate&&!a.propValidate(l,e)||void 0===c||(r[b]=l)});return r};h.Series.prototype.getGuideBox=function(a){var b=this.chart,c=Infinity,e=-Infinity,f=Infinity,d=-Infinity,g;a.forEach(function(a){(a=a.graphic&&a.graphic.getBBox()||a.shapeArgs)&&(a.width||a.height||a.x||a.y)&&(g=!0,c=Math.min(a.x,c),e=Math.max(a.x+a.width,e),f=Math.min(a.y,f),d=Math.max(a.y+
|
34
|
+
a.height,d))});return g?b.renderer.rect(c,f,e-c,d-f):b.renderer.g()};h.Point.prototype.showDragHandles=function(){var a=this,b=a.series,c=b.chart,e=c.renderer,f=q(b.options.dragDrop,a.options.dragDrop);n(b.dragDropProps,function(d,g){var h=q(V,d.handleOptions,f.dragHandle),l={className:h.className,"stroke-width":h.lineWidth,fill:h.color,stroke:h.lineColor},m=h.pathFormatter||d.handleFormatter,k=d.handlePositioner,n;n=d.validateIndividualDrag?d.validateIndividualDrag(a):!0;d.resize&&n&&d.resizeSide&&
|
35
|
+
m&&(f["draggable"+d.axis.toUpperCase()]||f[d.optionName])&&!1!==f[d.optionName]&&(c.dragHandles||(c.dragHandles={group:e.g("drag-drop-handles").add(b.markerGroup||b.group)}),c.dragHandles.point=a.id,k=k(a),l.d=n=m(a),m="function"===typeof d.resizeSide?d.resizeSide(a.options,a):d.resizeSide,!n||0>k.x||0>k.y||(l.cursor=h.cursor||"x"===d.axis!==!!c.inverted?"ew-resize":"ns-resize",(d=c.dragHandles[m])||(d=c.dragHandles[m]=e.path().add(c.dragHandles.group)),d.translate(k.x,k.y).attr(l),w(d.element,["touchstart",
|
36
|
+
"mousedown"],function(b){b=t(b,c);var d=a.series.chart;d.zoomOrPanKeyPressed(b)||(d.mouseIsDown=!1,D(b,a),d.dragDropData.updateProp=b.updateProp=g,a.firePointEvent("dragStart",b),b.stopPropagation(),b.preventDefault())}),p(c.dragHandles.group.element,"mouseover",function(){c.dragDropData=c.dragDropData||{};c.dragDropData.isHoveringHandle=a.id}),w(c.dragHandles.group.element,["touchend","mouseout"],function(){var b=a.series.chart;b.dragDropData&&a.id===b.dragDropData.isHoveringHandle&&delete b.dragDropData.isHoveringHandle;
|
37
|
+
b.hoverPoint||F(a)})))})};h.Chart.prototype.hideDragHandles=function(){this.dragHandles&&(n(this.dragHandles,function(a,b){"group"!==b&&a.destroy&&a.destroy()}),this.dragHandles.group&&this.dragHandles.group.destroy&&this.dragHandles.group.destroy(),delete this.dragHandles)};p(h.Point,"mouseOver",function(){var a=this;setTimeout(function(){var b=a.series,c=b&&b.chart,d=c&&c.dragDropData;!c||d&&d.isDragging&&d.draggedPastSensitivity||c.isDragDropAnimating||!b.options.dragDrop||c.options&&c.options.chart&&
|
38
|
+
c.options.chart.options3d||(c.dragHandles&&c.hideDragHandles(),a.showDragHandles())},12)});p(h.Point,"mouseOut",function(){var a=this;setTimeout(function(){a.series&&F(a)},10)});p(h.Point,"remove",function(){var a=this.series.chart,b=a.dragHandles;b&&b.point===this.id&&a.hideDragHandles()});h.Chart.prototype.zoomOrPanKeyPressed=function(a){var b=this.userOptions.chart||{},c=b.panKey&&b.panKey+"Key";return a[b.zoomKey&&b.zoomKey+"Key"]||a[c]};p(h.Chart,"render",function(){this.hasAddedDragDropEvents||
|
39
|
+
T(this)})})(m)});
|
40
|
+
//# sourceMappingURL=draggable-points.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"draggable-points.js.map","lineCount":39,"mappings":"A;;;;;;;AAQC,SAAS,CAACA,CAAD,CAAU,CACM,QAAtB,GAAI,MAAOC,OAAX,EAAkCA,MAAAC,QAAlC,EACIF,CAAA,CAAQ,SAAR,CACA,CADqBA,CACrB,CAAAC,MAAAC,QAAA,CAAiBF,CAFrB,EAG6B,UAAtB,GAAI,MAAOG,OAAX,EAAoCA,MAAAC,IAApC,CACHD,MAAA,CAAO,QAAS,EAAG,CACf,MAAOH,EADQ,CAAnB,CADG,CAKHA,CAAA,CAA8B,WAAtB,GAAA,MAAOK,WAAP,CAAoCA,UAApC,CAAiDC,IAAAA,EAAzD,CATY,CAAnB,CAAA,CAWC,QAAS,CAACD,CAAD,CAAa,CACnB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AAAoP,MAAT,CAAkB,QAAlB,CAA4B,QAAS,EAAG,CAAA,IAChChO,EAAQ,IAAAZ,OAAAY,MADwB,CAEhC4F,EAAc5F,CAAA4F,YAEdA,EAAJ,EAAmBA,CAAAxF,MAAnB,GAAyC,IAAAkD,GAAzC,EACItD,CAAAiG,gBAAA,EALgC,CAAxC,CAsBArH,EAAAyO,MAAAlE,UAAA3C,oBAAA,CAAwCqK,QAAS,CAAC5P,CAAD,CAAI,CAAA,IAE7C6P,EAAe,IAAAC,YAAA/Q,MAAf8Q,EAAyC,EAFI,CAG7CE,EAASF,CAAAE,OAATA,EAAgCF,CAAAE,OAAhCA,CAAsD,KAG1D,OAAQ/P,EAAA,CAFM6P,CAAAG,QAEN,EAF8BH,CAAAG,QAE9B,CAFqD,KAErD,CAAR,EAAsBhQ,CAAA,CAAE+P,CAAF,CAN2B,CAyDrDnP,EAAA,CAASjD,CAAAyO,MAAT,CAAkB,QAAlB,CAA4B,QAAS,EAAG,CAE/B,IAAA5E,uBAAL;AACIP,CAAA,CAAkB,IAAlB,CAHgC,CAAxC,CAzjFU,CAAb,CAAA,CAgkFCxJ,CAhkFD,CADmB,CAXvB;","sources":["draggable-points.src.js"],"names":["factory","module","exports","define","amd","Highcharts","undefined","H","flipResizeSide","side","left","right","top","bottom","isSeriesDraggable","series","props","i","objectEach","dragDropProps","val","optionName","push","length","options","dragDrop","isChartDraggable","chart","hasCartesianSeries","polar","isPointMovable","point","seriesDragDropOptions","pointDragDropOptions","hasMovableX","hasMovableY","p","axis","move","draggableX","draggableY","yAxis","xAxis","getNormalizedEvent","e","chartX","chartY","pointer","normalize","addEvents","el","types","fn","removeFuncs","map","type","addEvent","forEach","hasDraggedPastSensitivity","sensitivity","orig","dragDropData","origin","oldX","oldY","newX","newY","Math","sqrt","distance","getPositionSnapshot","points","guideBox","res","x","attr","y","width","height","pointProps","key","id","getGroupedPoints","groupKey","groupBy","filter","comparePoint","initDragDrop","groupedPoints","pick","liveRedraw","dragGuideBox","getGuideBox","setGuideBoxState","add","group","isDragging","getNewPoints","newPos","merge","updateProps","resizeProp","updateProp","hashmap","resize","newValues","getDropValues","updatePoints","animate","newPoints","animOptions","duration","animation","isDragDropAnimating","newPoint","update","redraw","setTimeout","hoverPoint","dragHandles","showDragHandles","mouseOut","draggedPastSensitivity","isHoveringHandle","hideDragHandles","countProps","object","count","hasOwnProperty","getFirstProp","mouseMove","zoomOrPanKeyPressed","seriesDragDropOpts","numNewPoints","preventDefault","dragSensitivity","defaultDragSensitivity","firePointEvent","newPointId","data","dX","dY","oldDx","inverted","resizeSide","beforeResize","reversed","prevdX","prevdY","resizeAttrs","updateSide","rect","max","translate","mouseUp","cancelClick","destroy","addDragDropEvents","container","doc","dragPoint","dragDropOptions","mouseIsDown","unbindDragDropMouseUp","hasAddedDragDropEvents","seriesTypes","horizHandleFormatter","shapeArgs","graphic","getBBox","r","centerY","lineDragDropProps","line","prototype","flags","columnDragDropProps","column","pointVals","threshold","translatedThreshold","round","diff","flipSide","handlePositioner","bBox","handleFormatter","radius","centerX","bullet","target","targetGraphic","barX","columnrange","low","propValidate","high","boxplot","lowPlot","q1","q1Plot","median","q3","q3Plot","highPlot","ohlc","plotLow","open","close","plotHigh","plotOpen","plotClose","arearange","columnrangeDragDropProps","arearangeHandleFormatter","lowerGraphic","upperGraphic","waterfall","isSum","isIntermediateSum","xrange","xrangeHandlePositioner","xProp","toPixels","len","xrangeDragDropProps","x2","gantt","start","validateIndividualDrag","milestone","end","defaultGuideBoxOptions","className","lineWidth","lineColor","color","cursor","zIndex","defaultDragHandleOptions","Chart","H.Chart.prototype.setGuideBoxState","state","guideBoxOptions","stateOptions","default","stroke","strokeWidth","fill","css","pointerEvents","Point","H.Point.prototype.getDropValues","dXValue","toValue","horiz","dYValue","result","updateSingleProp","pointOrigin","oldVal","newVal","toUpperCase","defaultPrecision","direction","toLowerCase","categories","precision","min","Infinity","Series","H.Series.prototype.getGuideBox","minX","maxX","minY","maxY","changed","renderer","g","H.Point.prototype.showDragHandles","handleOptions","dragHandle","handleAttrs","pathFormatter","positioner","path","validate","markerGroup","pos","d","handleSide","handle","element","stopPropagation","H.Chart.prototype.hideDragHandles","options3d","H.Chart.prototype.zoomOrPanKeyPressed","chartOptions","userOptions","panKey","zoomKey"]}
|
@@ -0,0 +1,2650 @@
|
|
1
|
+
/**
|
2
|
+
* @license Highcharts JS v7.0.3 (2019-02-06)
|
3
|
+
*
|
4
|
+
* (c) 2009-2019 Torstein Honsi
|
5
|
+
*
|
6
|
+
* License: www.highcharts.com/license
|
7
|
+
*/
|
8
|
+
'use strict';
|
9
|
+
(function (factory) {
|
10
|
+
if (typeof module === 'object' && module.exports) {
|
11
|
+
factory['default'] = factory;
|
12
|
+
module.exports = factory;
|
13
|
+
} else if (typeof define === 'function' && define.amd) {
|
14
|
+
define(function () {
|
15
|
+
return factory;
|
16
|
+
});
|
17
|
+
} else {
|
18
|
+
factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
|
19
|
+
}
|
20
|
+
}(function (Highcharts) {
|
21
|
+
(function (H) {
|
22
|
+
/**
|
23
|
+
* (c) 2009-2019 Highsoft AS
|
24
|
+
* Authors: Øystein Moseng, Torstein Hønsi, Jon A. Nygård
|
25
|
+
*
|
26
|
+
* License: www.highcharts.com/license
|
27
|
+
*/
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Function callback to execute while series points are dragged. Return false to
|
31
|
+
* stop the default drag action.
|
32
|
+
*
|
33
|
+
* @callback Highcharts.SeriesPointDragCallbackFunction
|
34
|
+
*
|
35
|
+
* @param {Highcharts.Point} this
|
36
|
+
* Point where the event occured.
|
37
|
+
*
|
38
|
+
* @param {Highcharts.SeriesPointDragEventObject} event
|
39
|
+
* Event arguments.
|
40
|
+
*/
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Contains common information for a drag event on series points.
|
44
|
+
*
|
45
|
+
* @interface Highcharts.SeriesPointDragEventObject
|
46
|
+
*//**
|
47
|
+
* New points during drag.
|
48
|
+
* @name Highcharts.SeriesPointDragEventObject#newPoints
|
49
|
+
* @type {Highcharts.Dictionary<Highcharts.SeriesPointDragPointObject>}
|
50
|
+
*//**
|
51
|
+
* Original data.
|
52
|
+
* @name Highcharts.SeriesPointDragEventObject#origin
|
53
|
+
* @type {object}
|
54
|
+
*//**
|
55
|
+
* Prevent default drag action.
|
56
|
+
* @name Highcharts.SeriesPointDragEventObject#preventDefault
|
57
|
+
* @type {Function}
|
58
|
+
*//**
|
59
|
+
* Target point that caused the event.
|
60
|
+
* @name Highcharts.SeriesPointDragEventObject#target
|
61
|
+
* @type {Highcharts.Point}
|
62
|
+
*//**
|
63
|
+
* Event type.
|
64
|
+
* @name Highcharts.SeriesPointDragEventObject#type
|
65
|
+
* @type {"drag"}
|
66
|
+
*/
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Contains information about a dragged points new values.
|
70
|
+
*
|
71
|
+
* @interface Highcharts.SeriesPointDragPointObject
|
72
|
+
*//**
|
73
|
+
* New values.
|
74
|
+
* @name Highcharts.SeriesPointDragPointObject#newValues
|
75
|
+
* @type {Highcharts.Dictionary<number>}
|
76
|
+
*//**
|
77
|
+
* Dragged point.
|
78
|
+
* @name Highcharts.SeriesPointDragPointObject#point
|
79
|
+
* @type {Highcharts.Point}
|
80
|
+
*/
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Function callback to execute when a series point is dragged.
|
84
|
+
*
|
85
|
+
* @callback Highcharts.SeriesPointDragStartCallbackFunction
|
86
|
+
*
|
87
|
+
* @param {Highcharts.Point} this
|
88
|
+
* Point where the event occured.
|
89
|
+
*
|
90
|
+
* @param {Highcharts.SeriesPointDragStartEventObject} event
|
91
|
+
* Event arguments.
|
92
|
+
*/
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Contains common information for a drag event on series point.
|
96
|
+
*
|
97
|
+
* @interface Highcharts.SeriesPointDragStartEventObject
|
98
|
+
*
|
99
|
+
* @implements {global.MouseDownEvent}
|
100
|
+
*//**
|
101
|
+
* Data property being dragged.
|
102
|
+
* @name Highcharts.SeriesPointDragStartEventObject#updateProp
|
103
|
+
* @type {Highcharts.Dictionary<number>}
|
104
|
+
*/
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Function callback to execute when series points are dropped.
|
108
|
+
*
|
109
|
+
* @callback Highcharts.SeriesPointDropCallbackFunction
|
110
|
+
*
|
111
|
+
* @param {Highcharts.Point} this
|
112
|
+
* Point where the event occured.
|
113
|
+
*
|
114
|
+
* @param {Highcharts.SeriesPointDropEventObject} event
|
115
|
+
* Event arguments.
|
116
|
+
*/
|
117
|
+
|
118
|
+
/**
|
119
|
+
* Contains common information for a drop event on series points.
|
120
|
+
*
|
121
|
+
* @interface Highcharts.SeriesPointDropEventObject
|
122
|
+
*//**
|
123
|
+
* New points after drop.
|
124
|
+
* @name Highcharts.SeriesPointDropEventObject#newPoints
|
125
|
+
* @type {Highcharts.Dictionary<Highcharts.SeriesPointDropPointObject>}
|
126
|
+
*//**
|
127
|
+
* Number of new points.
|
128
|
+
* @name Highcharts.SeriesPointDropEventObject#numNewPoints
|
129
|
+
* @type {number}
|
130
|
+
*//**
|
131
|
+
* Original data.
|
132
|
+
* @name Highcharts.SeriesPointDropEventObject#origin
|
133
|
+
* @type {object}
|
134
|
+
*//**
|
135
|
+
* Prevent default drop action.
|
136
|
+
* @name Highcharts.SeriesPointDropEventObject#preventDefault
|
137
|
+
* @type {Function}
|
138
|
+
*//**
|
139
|
+
* Target point that caused the event.
|
140
|
+
* @name Highcharts.SeriesPointDropEventObject#target
|
141
|
+
* @type {Highcharts.Point}
|
142
|
+
*//**
|
143
|
+
* Event type.
|
144
|
+
* @name Highcharts.SeriesPointDropEventObject#type
|
145
|
+
* @type {"drop"}
|
146
|
+
*/
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Contains information about a dropped points new values.
|
150
|
+
*
|
151
|
+
* @interface Highcharts.SeriesPointDropPointObject
|
152
|
+
*//**
|
153
|
+
* New values.
|
154
|
+
* @name Highcharts.SeriesPointDropPointObject#newValues
|
155
|
+
* @type {Highcharts.Dictionary<number>}
|
156
|
+
*//**
|
157
|
+
* Dragged point.
|
158
|
+
* @name Highcharts.SeriesPointDropPointObject#point
|
159
|
+
* @type {Highcharts.Point}
|
160
|
+
*/
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
var addEvent = H.addEvent,
|
165
|
+
objectEach = H.objectEach,
|
166
|
+
pick = H.pick,
|
167
|
+
merge = H.merge,
|
168
|
+
seriesTypes = H.seriesTypes;
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Flip a side property, used with resizeRect. If input side is "left", return
|
172
|
+
* "right" etc.
|
173
|
+
*
|
174
|
+
* @private
|
175
|
+
* @function flipResizeSide
|
176
|
+
*
|
177
|
+
* @param {string} side
|
178
|
+
* Side prop to flip. Can be `left`, `right`, `top` or `bottom`.
|
179
|
+
*
|
180
|
+
* @return {"bottom"|"left"|"right"|"top"|undefined}
|
181
|
+
* The flipped side.
|
182
|
+
*/
|
183
|
+
function flipResizeSide(side) {
|
184
|
+
return {
|
185
|
+
left: 'right',
|
186
|
+
right: 'left',
|
187
|
+
top: 'bottom',
|
188
|
+
bottom: 'top'
|
189
|
+
}[side];
|
190
|
+
}
|
191
|
+
|
192
|
+
/* @todo
|
193
|
+
Add drag/drop support to specific data props for different series types.
|
194
|
+
|
195
|
+
The dragDrop.draggableX/Y user options on series enable/disable all of these per
|
196
|
+
irection unless they are specifically set in options using
|
197
|
+
dragDrop.{optionName}. If the prop does not specify an optionName here, it can
|
198
|
+
only be enabled/disabled by the user with draggableX/Y.
|
199
|
+
|
200
|
+
Supported options for each prop:
|
201
|
+
optionName: User option in series.dragDrop that enables/disables
|
202
|
+
dragging this prop.
|
203
|
+
axis: Can be 'x' or 'y'. Whether this prop is linked to x or y axis.
|
204
|
+
move: Whether or not this prop should be updated when moving points.
|
205
|
+
resize: Whether or not to draw a drag handle and allow user to drag and
|
206
|
+
update this prop by itself.
|
207
|
+
beforeResize: Hook to perform tasks before a resize is made. Gets
|
208
|
+
the guide box, the new points values, and the point as args.
|
209
|
+
resizeSide: Which side of the guide box to resize when dragging the
|
210
|
+
handle. Can be "left", "right", "top", "bottom". Chart.inverted is
|
211
|
+
handled automatically. Can also be a function, taking the new point
|
212
|
+
values as parameter, as well as the point, and returning a string
|
213
|
+
with the side.
|
214
|
+
propValidate: Function that takes the prop value and the point as
|
215
|
+
arguments, and returns true if the prop value is valid, false if
|
216
|
+
not. It is used to prevent e.g. resizing "low" above "high".
|
217
|
+
handlePositioner: For resizeable props, return 0,0 in SVG plot coords of
|
218
|
+
where to place the dragHandle. Gets point as argument. Should return
|
219
|
+
object with x and y properties.
|
220
|
+
handleFormatter: For resizeable props, return the path of the drag
|
221
|
+
handle as an SVG path array. Gets the point as argument. The handle
|
222
|
+
is translated according to handlePositioner.
|
223
|
+
handleOptions: Options to merge with the default handle options.
|
224
|
+
|
225
|
+
TODO:
|
226
|
+
- It makes sense to have support for resizing the size of bubbles and
|
227
|
+
e.g variwide columns. This requires us to support dragging along a
|
228
|
+
z-axis, somehow computing a relative value from old to new pixel
|
229
|
+
size.
|
230
|
+
- Moving maps could be useful, although we would have to compute new
|
231
|
+
point.path values in order to do it properly (using SVG translate
|
232
|
+
is easier, but won't update the data).
|
233
|
+
*/
|
234
|
+
|
235
|
+
// 90deg rotated column handle path, used in multiple series types
|
236
|
+
var horizHandleFormatter = function (point) {
|
237
|
+
var shapeArgs = point.shapeArgs || point.graphic.getBBox(),
|
238
|
+
top = shapeArgs.r || 0, // Rounding of bar corners
|
239
|
+
bottom = shapeArgs.height - top,
|
240
|
+
centerY = shapeArgs.height / 2;
|
241
|
+
|
242
|
+
return [
|
243
|
+
// Top wick
|
244
|
+
'M', 0, top,
|
245
|
+
'L', 0, centerY - 5,
|
246
|
+
// Circle
|
247
|
+
'A', 1, 1, 0, 0, 0, 0, centerY + 5,
|
248
|
+
'A', 1, 1, 0, 0, 0, 0, centerY - 5,
|
249
|
+
// Bottom wick
|
250
|
+
'M', 0, centerY + 5,
|
251
|
+
'L', 0, bottom
|
252
|
+
];
|
253
|
+
};
|
254
|
+
|
255
|
+
// Line series - only draggableX/Y, no drag handles
|
256
|
+
var lineDragDropProps = seriesTypes.line.prototype.dragDropProps = {
|
257
|
+
x: {
|
258
|
+
axis: 'x',
|
259
|
+
move: true
|
260
|
+
},
|
261
|
+
y: {
|
262
|
+
axis: 'y',
|
263
|
+
move: true
|
264
|
+
}
|
265
|
+
};
|
266
|
+
|
267
|
+
// Flag series - same as line/scatter
|
268
|
+
if (seriesTypes.flags) {
|
269
|
+
seriesTypes.flags.prototype.dragDropProps = lineDragDropProps;
|
270
|
+
}
|
271
|
+
|
272
|
+
// Column series - x can be moved, y can only be resized. Note extra
|
273
|
+
// functionality for handling upside down columns (below threshold).
|
274
|
+
var columnDragDropProps = seriesTypes.column.prototype.dragDropProps = {
|
275
|
+
x: {
|
276
|
+
axis: 'x',
|
277
|
+
move: true
|
278
|
+
},
|
279
|
+
y: {
|
280
|
+
axis: 'y',
|
281
|
+
move: false,
|
282
|
+
resize: true,
|
283
|
+
// Force guideBox start coordinates
|
284
|
+
beforeResize: function (guideBox, pointVals, point) {
|
285
|
+
// We need to ensure that guideBox always starts at threshold.
|
286
|
+
// We flip whether or not we update the top or bottom of the guide
|
287
|
+
// box at threshold, but if we drag the mouse fast, the top has not
|
288
|
+
// reached threshold before we cross over and update the bottom.
|
289
|
+
var threshold = point.series.translatedThreshold,
|
290
|
+
y = guideBox.attr('y'),
|
291
|
+
height,
|
292
|
+
diff;
|
293
|
+
|
294
|
+
if (pointVals.y >= point.series.options.threshold || 0) {
|
295
|
+
// Above threshold - always set height to hit the threshold
|
296
|
+
height = guideBox.attr('height');
|
297
|
+
diff = threshold ? threshold - (y + height) : 0;
|
298
|
+
guideBox.attr({
|
299
|
+
height: Math.max(0, Math.round(height + diff))
|
300
|
+
});
|
301
|
+
} else {
|
302
|
+
// Below - always set y to start at threshold
|
303
|
+
guideBox.attr({
|
304
|
+
y: Math.round(y + (threshold ? threshold - y : 0))
|
305
|
+
});
|
306
|
+
}
|
307
|
+
},
|
308
|
+
// Flip the side of the resize handle if column is below threshold.
|
309
|
+
// Make sure we remove the handle on the other side.
|
310
|
+
resizeSide: function (pointVals, point) {
|
311
|
+
var chart = point.series.chart,
|
312
|
+
dragHandles = chart.dragHandles,
|
313
|
+
side = pointVals.y >= (point.series.options.threshold || 0) ?
|
314
|
+
'top' : 'bottom',
|
315
|
+
flipSide = flipResizeSide(side);
|
316
|
+
|
317
|
+
// Force remove handle on other side
|
318
|
+
if (dragHandles[flipSide]) {
|
319
|
+
dragHandles[flipSide].destroy();
|
320
|
+
delete dragHandles[flipSide];
|
321
|
+
}
|
322
|
+
return side;
|
323
|
+
},
|
324
|
+
// Position handle at bottom if column is below threshold
|
325
|
+
handlePositioner: function (point) {
|
326
|
+
var bBox = point.shapeArgs || point.graphic.getBBox();
|
327
|
+
|
328
|
+
return {
|
329
|
+
x: bBox.x,
|
330
|
+
y: point.y >= (point.series.options.threshold || 0) ?
|
331
|
+
bBox.y : bBox.y + bBox.height
|
332
|
+
};
|
333
|
+
},
|
334
|
+
// Horizontal handle
|
335
|
+
handleFormatter: function (point) {
|
336
|
+
var shapeArgs = point.shapeArgs,
|
337
|
+
radius = shapeArgs.r || 0, // Rounding of bar corners
|
338
|
+
centerX = shapeArgs.width / 2;
|
339
|
+
|
340
|
+
return [
|
341
|
+
// Left wick
|
342
|
+
'M', radius, 0,
|
343
|
+
'L', centerX - 5, 0,
|
344
|
+
// Circle
|
345
|
+
'A', 1, 1, 0, 0, 0, centerX + 5, 0,
|
346
|
+
'A', 1, 1, 0, 0, 0, centerX - 5, 0,
|
347
|
+
// Right wick
|
348
|
+
'M', centerX + 5, 0,
|
349
|
+
'L', shapeArgs.width - radius, 0
|
350
|
+
];
|
351
|
+
}
|
352
|
+
}
|
353
|
+
};
|
354
|
+
|
355
|
+
// Bullet graph, x/y same as column, but also allow target to be dragged.
|
356
|
+
if (seriesTypes.bullet) {
|
357
|
+
seriesTypes.bullet.prototype.dragDropProps = {
|
358
|
+
x: columnDragDropProps.x,
|
359
|
+
y: columnDragDropProps.y,
|
360
|
+
/**
|
361
|
+
* Allow target value to be dragged individually. Requires
|
362
|
+
* `draggable-points` module.
|
363
|
+
*
|
364
|
+
* @type {boolean}
|
365
|
+
* @default true
|
366
|
+
* @apioption plotOptions.bullet.dragDrop.draggableTarget
|
367
|
+
*/
|
368
|
+
target: {
|
369
|
+
optionName: 'draggableTarget',
|
370
|
+
axis: 'y',
|
371
|
+
move: true,
|
372
|
+
resize: true,
|
373
|
+
resizeSide: 'top',
|
374
|
+
handlePositioner: function (point) {
|
375
|
+
var bBox = point.targetGraphic.getBBox();
|
376
|
+
|
377
|
+
return {
|
378
|
+
x: point.barX,
|
379
|
+
y: bBox.y + bBox.height / 2
|
380
|
+
};
|
381
|
+
},
|
382
|
+
handleFormatter: columnDragDropProps.y.handleFormatter
|
383
|
+
}
|
384
|
+
};
|
385
|
+
}
|
386
|
+
|
387
|
+
// Columnrange series - move x, resize or move low/high
|
388
|
+
if (seriesTypes.columnrange) {
|
389
|
+
seriesTypes.columnrange.prototype.dragDropProps = {
|
390
|
+
x: {
|
391
|
+
axis: 'x',
|
392
|
+
move: true
|
393
|
+
},
|
394
|
+
/**
|
395
|
+
* Allow low value to be dragged individually. Requires
|
396
|
+
* `draggable-points` module.
|
397
|
+
*
|
398
|
+
* @type {boolean}
|
399
|
+
* @default true
|
400
|
+
* @apioption plotOptions.columnrange.dragDrop.draggableLow
|
401
|
+
*/
|
402
|
+
low: {
|
403
|
+
optionName: 'draggableLow',
|
404
|
+
axis: 'y',
|
405
|
+
move: true,
|
406
|
+
resize: true,
|
407
|
+
resizeSide: 'bottom',
|
408
|
+
handlePositioner: function (point) {
|
409
|
+
var bBox = point.shapeArgs || point.graphic.getBBox();
|
410
|
+
|
411
|
+
return {
|
412
|
+
x: bBox.x,
|
413
|
+
y: bBox.y + bBox.height
|
414
|
+
};
|
415
|
+
},
|
416
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
417
|
+
propValidate: function (val, point) {
|
418
|
+
return val <= point.high;
|
419
|
+
}
|
420
|
+
},
|
421
|
+
/**
|
422
|
+
* Allow high value to be dragged individually. Requires
|
423
|
+
* `draggable-points` module.
|
424
|
+
*
|
425
|
+
* @type {boolean}
|
426
|
+
* @default true
|
427
|
+
* @apioption plotOptions.columnrange.dragDrop.draggableHigh
|
428
|
+
*/
|
429
|
+
high: {
|
430
|
+
optionName: 'draggableHigh',
|
431
|
+
axis: 'y',
|
432
|
+
move: true,
|
433
|
+
resize: true,
|
434
|
+
resizeSide: 'top',
|
435
|
+
handlePositioner: function (point) {
|
436
|
+
var bBox = point.shapeArgs || point.graphic.getBBox();
|
437
|
+
|
438
|
+
return {
|
439
|
+
x: bBox.x,
|
440
|
+
y: bBox.y
|
441
|
+
};
|
442
|
+
},
|
443
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
444
|
+
propValidate: function (val, point) {
|
445
|
+
return val >= point.low;
|
446
|
+
}
|
447
|
+
}
|
448
|
+
};
|
449
|
+
}
|
450
|
+
|
451
|
+
// Boxplot series - move x, resize or move low/q1/q3/high
|
452
|
+
if (seriesTypes.boxplot) {
|
453
|
+
seriesTypes.boxplot.prototype.dragDropProps = {
|
454
|
+
x: columnDragDropProps.x,
|
455
|
+
/**
|
456
|
+
* Allow low value to be dragged individually. Requires
|
457
|
+
* `draggable-points` module.
|
458
|
+
*
|
459
|
+
* @type {boolean}
|
460
|
+
* @default true
|
461
|
+
* @apioption plotOptions.boxplot.dragDrop.draggableLow
|
462
|
+
*/
|
463
|
+
low: {
|
464
|
+
optionName: 'draggableLow',
|
465
|
+
axis: 'y',
|
466
|
+
move: true,
|
467
|
+
resize: true,
|
468
|
+
resizeSide: 'bottom',
|
469
|
+
handlePositioner: function (point) {
|
470
|
+
return {
|
471
|
+
x: point.shapeArgs.x,
|
472
|
+
y: point.lowPlot
|
473
|
+
};
|
474
|
+
},
|
475
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
476
|
+
propValidate: function (val, point) {
|
477
|
+
return val <= point.q1;
|
478
|
+
}
|
479
|
+
},
|
480
|
+
/**
|
481
|
+
* Allow Q1 value to be dragged individually. Requires
|
482
|
+
* `draggable-points` module.
|
483
|
+
*
|
484
|
+
* @type {boolean}
|
485
|
+
* @default true
|
486
|
+
* @apioption plotOptions.boxplot.dragDrop.draggableQ1
|
487
|
+
*/
|
488
|
+
q1: {
|
489
|
+
optionName: 'draggableQ1',
|
490
|
+
axis: 'y',
|
491
|
+
move: true,
|
492
|
+
resize: true,
|
493
|
+
resizeSide: 'bottom',
|
494
|
+
handlePositioner: function (point) {
|
495
|
+
return {
|
496
|
+
x: point.shapeArgs.x,
|
497
|
+
y: point.q1Plot
|
498
|
+
};
|
499
|
+
},
|
500
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
501
|
+
propValidate: function (val, point) {
|
502
|
+
return val <= point.median && val >= point.low;
|
503
|
+
}
|
504
|
+
},
|
505
|
+
median: {
|
506
|
+
// Median can not be dragged individually, just move the whole
|
507
|
+
// point for this.
|
508
|
+
axis: 'y',
|
509
|
+
move: true
|
510
|
+
},
|
511
|
+
/**
|
512
|
+
* Allow Q3 value to be dragged individually. Requires
|
513
|
+
* `draggable-points` module.
|
514
|
+
*
|
515
|
+
* @type {boolean}
|
516
|
+
* @default true
|
517
|
+
* @apioption plotOptions.boxplot.dragDrop.draggableQ3
|
518
|
+
*/
|
519
|
+
q3: {
|
520
|
+
optionName: 'draggableQ3',
|
521
|
+
axis: 'y',
|
522
|
+
move: true,
|
523
|
+
resize: true,
|
524
|
+
resizeSide: 'top',
|
525
|
+
handlePositioner: function (point) {
|
526
|
+
return {
|
527
|
+
x: point.shapeArgs.x,
|
528
|
+
y: point.q3Plot
|
529
|
+
};
|
530
|
+
},
|
531
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
532
|
+
propValidate: function (val, point) {
|
533
|
+
return val <= point.high && val >= point.median;
|
534
|
+
}
|
535
|
+
},
|
536
|
+
/**
|
537
|
+
* Allow high value to be dragged individually. Requires
|
538
|
+
* `draggable-points` module.
|
539
|
+
*
|
540
|
+
* @type {boolean}
|
541
|
+
* @default true
|
542
|
+
* @apioption plotOptions.boxplot.dragDrop.draggableHigh
|
543
|
+
*/
|
544
|
+
high: {
|
545
|
+
optionName: 'draggableHigh',
|
546
|
+
axis: 'y',
|
547
|
+
move: true,
|
548
|
+
resize: true,
|
549
|
+
resizeSide: 'top',
|
550
|
+
handlePositioner: function (point) {
|
551
|
+
return {
|
552
|
+
x: point.shapeArgs.x,
|
553
|
+
y: point.highPlot
|
554
|
+
};
|
555
|
+
},
|
556
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
557
|
+
propValidate: function (val, point) {
|
558
|
+
return val >= point.q3;
|
559
|
+
}
|
560
|
+
}
|
561
|
+
};
|
562
|
+
}
|
563
|
+
|
564
|
+
|
565
|
+
// OHLC series - move x, resize or move open/high/low/close
|
566
|
+
if (seriesTypes.ohlc) {
|
567
|
+
seriesTypes.ohlc.prototype.dragDropProps = {
|
568
|
+
x: columnDragDropProps.x,
|
569
|
+
/**
|
570
|
+
* Allow low value to be dragged individually. Requires
|
571
|
+
* `draggable-points` module.
|
572
|
+
*
|
573
|
+
* @type {boolean}
|
574
|
+
* @default true
|
575
|
+
* @apioption plotOptions.ohlc.dragDrop.draggableLow
|
576
|
+
*/
|
577
|
+
low: {
|
578
|
+
optionName: 'draggableLow',
|
579
|
+
axis: 'y',
|
580
|
+
move: true,
|
581
|
+
resize: true,
|
582
|
+
resizeSide: 'bottom',
|
583
|
+
handlePositioner: function (point) {
|
584
|
+
return {
|
585
|
+
x: point.shapeArgs.x,
|
586
|
+
y: point.plotLow
|
587
|
+
};
|
588
|
+
},
|
589
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
590
|
+
propValidate: function (val, point) {
|
591
|
+
return val <= point.open && val <= point.close;
|
592
|
+
}
|
593
|
+
},
|
594
|
+
/**
|
595
|
+
* Allow high value to be dragged individually. Requires
|
596
|
+
* `draggable-points` module.
|
597
|
+
*
|
598
|
+
* @type {boolean}
|
599
|
+
* @default true
|
600
|
+
* @apioption plotOptions.ohlc.dragDrop.draggableHigh
|
601
|
+
*/
|
602
|
+
high: {
|
603
|
+
optionName: 'draggableHigh',
|
604
|
+
axis: 'y',
|
605
|
+
move: true,
|
606
|
+
resize: true,
|
607
|
+
resizeSide: 'top',
|
608
|
+
handlePositioner: function (point) {
|
609
|
+
return {
|
610
|
+
x: point.shapeArgs.x,
|
611
|
+
y: point.plotHigh
|
612
|
+
};
|
613
|
+
},
|
614
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
615
|
+
propValidate: function (val, point) {
|
616
|
+
return val >= point.open && val >= point.close;
|
617
|
+
}
|
618
|
+
},
|
619
|
+
/**
|
620
|
+
* Allow open value to be dragged individually. Requires
|
621
|
+
* `draggable-points` module.
|
622
|
+
*
|
623
|
+
* @type {boolean}
|
624
|
+
* @default true
|
625
|
+
* @apioption plotOptions.ohlc.dragDrop.draggableOpen
|
626
|
+
*/
|
627
|
+
open: {
|
628
|
+
optionName: 'draggableOpen',
|
629
|
+
axis: 'y',
|
630
|
+
move: true,
|
631
|
+
resize: true,
|
632
|
+
resizeSide: function (point) {
|
633
|
+
return point.open >= point.close ? 'top' : 'bottom';
|
634
|
+
},
|
635
|
+
handlePositioner: function (point) {
|
636
|
+
return {
|
637
|
+
x: point.shapeArgs.x,
|
638
|
+
y: point.plotOpen
|
639
|
+
};
|
640
|
+
},
|
641
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
642
|
+
propValidate: function (val, point) {
|
643
|
+
return val <= point.high && val >= point.low;
|
644
|
+
}
|
645
|
+
},
|
646
|
+
/**
|
647
|
+
* Allow close value to be dragged individually. Requires
|
648
|
+
* `draggable-points` module.
|
649
|
+
*
|
650
|
+
* @type {boolean}
|
651
|
+
* @default true
|
652
|
+
* @apioption plotOptions.ohlc.dragDrop.draggableClose
|
653
|
+
*/
|
654
|
+
close: {
|
655
|
+
optionName: 'draggableClose',
|
656
|
+
axis: 'y',
|
657
|
+
move: true,
|
658
|
+
resize: true,
|
659
|
+
resizeSide: function (point) {
|
660
|
+
return point.open >= point.close ? 'bottom' : 'top';
|
661
|
+
},
|
662
|
+
handlePositioner: function (point) {
|
663
|
+
return {
|
664
|
+
x: point.shapeArgs.x,
|
665
|
+
y: point.plotClose
|
666
|
+
};
|
667
|
+
},
|
668
|
+
handleFormatter: columnDragDropProps.y.handleFormatter,
|
669
|
+
propValidate: function (val, point) {
|
670
|
+
return val <= point.high && val >= point.low;
|
671
|
+
}
|
672
|
+
}
|
673
|
+
};
|
674
|
+
}
|
675
|
+
|
676
|
+
// Arearange series - move x, resize or move low/high
|
677
|
+
if (seriesTypes.arearange) {
|
678
|
+
var columnrangeDragDropProps = seriesTypes.columnrange
|
679
|
+
.prototype.dragDropProps,
|
680
|
+
// Use a circle covering the marker as drag handle
|
681
|
+
arearangeHandleFormatter = function (point) {
|
682
|
+
var radius = point.graphic ?
|
683
|
+
point.graphic.getBBox().width / 2 + 1 :
|
684
|
+
4;
|
685
|
+
|
686
|
+
return [
|
687
|
+
'M', 0 - radius, 0,
|
688
|
+
'a', radius, radius, 0, 1, 0, radius * 2, 0,
|
689
|
+
'a', radius, radius, 0, 1, 0, radius * -2, 0
|
690
|
+
];
|
691
|
+
};
|
692
|
+
|
693
|
+
seriesTypes.arearange.prototype.dragDropProps = {
|
694
|
+
x: columnrangeDragDropProps.x,
|
695
|
+
/**
|
696
|
+
* Allow low value to be dragged individually. Requires
|
697
|
+
* `draggable-points` module.
|
698
|
+
*
|
699
|
+
* @type {boolean}
|
700
|
+
* @default true
|
701
|
+
* @apioption plotOptions.arearange.dragDrop.draggableLow
|
702
|
+
*/
|
703
|
+
low: {
|
704
|
+
optionName: 'draggableLow',
|
705
|
+
axis: 'y',
|
706
|
+
move: true,
|
707
|
+
resize: true,
|
708
|
+
resizeSide: 'bottom',
|
709
|
+
handlePositioner: function (point) {
|
710
|
+
var bBox = point.lowerGraphic && point.lowerGraphic.getBBox();
|
711
|
+
|
712
|
+
return bBox ? {
|
713
|
+
x: bBox.x + bBox.width / 2,
|
714
|
+
y: bBox.y + bBox.height / 2
|
715
|
+
} : { x: -999, y: -999 };
|
716
|
+
},
|
717
|
+
handleFormatter: arearangeHandleFormatter,
|
718
|
+
propValidate: columnrangeDragDropProps.low.propValidate
|
719
|
+
},
|
720
|
+
/**
|
721
|
+
* Allow high value to be dragged individually. Requires
|
722
|
+
* `draggable-points` module.
|
723
|
+
*
|
724
|
+
* @type {boolean}
|
725
|
+
* @default true
|
726
|
+
* @apioption plotOptions.arearange.dragDrop.draggableHigh
|
727
|
+
*/
|
728
|
+
high: {
|
729
|
+
optionName: 'draggableHigh',
|
730
|
+
axis: 'y',
|
731
|
+
move: true,
|
732
|
+
resize: true,
|
733
|
+
resizeSide: 'top',
|
734
|
+
handlePositioner: function (point) {
|
735
|
+
var bBox = point.upperGraphic && point.upperGraphic.getBBox();
|
736
|
+
|
737
|
+
return bBox ? {
|
738
|
+
x: bBox.x + bBox.width / 2,
|
739
|
+
y: bBox.y + bBox.height / 2
|
740
|
+
} : { x: -999, y: -999 };
|
741
|
+
},
|
742
|
+
handleFormatter: arearangeHandleFormatter,
|
743
|
+
propValidate: columnrangeDragDropProps.high.propValidate
|
744
|
+
}
|
745
|
+
};
|
746
|
+
}
|
747
|
+
|
748
|
+
// Waterfall - mostly as column, but don't show drag handles for sum points
|
749
|
+
if (seriesTypes.waterfall) {
|
750
|
+
seriesTypes.waterfall.prototype.dragDropProps = {
|
751
|
+
x: columnDragDropProps.x,
|
752
|
+
y: merge(columnDragDropProps.y, {
|
753
|
+
handleFormatter: function (point) {
|
754
|
+
return point.isSum || point.isIntermediateSum ? null :
|
755
|
+
columnDragDropProps.y.handleFormatter(point);
|
756
|
+
}
|
757
|
+
})
|
758
|
+
};
|
759
|
+
}
|
760
|
+
|
761
|
+
// Xrange - resize/move x/x2, and move y
|
762
|
+
if (seriesTypes.xrange) {
|
763
|
+
// Handle positioner logic is the same for x and x2 apart from the
|
764
|
+
// x value. shapeArgs does not take yAxis reversed etc into account, so we
|
765
|
+
// use axis.toPixels to handle positioning.
|
766
|
+
var xrangeHandlePositioner = function (point, xProp) {
|
767
|
+
var series = point.series,
|
768
|
+
xAxis = series.xAxis,
|
769
|
+
yAxis = series.yAxis,
|
770
|
+
inverted = series.chart.inverted,
|
771
|
+
// Using toPixels handles axis.reversed, but doesn't take
|
772
|
+
// chart.inverted into account.
|
773
|
+
newX = xAxis.toPixels(point[xProp], true),
|
774
|
+
newY = yAxis.toPixels(point.y, true);
|
775
|
+
|
776
|
+
// Handle chart inverted
|
777
|
+
if (inverted) {
|
778
|
+
newX = xAxis.len - newX;
|
779
|
+
newY = yAxis.len - newY -
|
780
|
+
point.shapeArgs.height / 2;
|
781
|
+
} else {
|
782
|
+
newY -= point.shapeArgs.height / 2;
|
783
|
+
}
|
784
|
+
|
785
|
+
return {
|
786
|
+
x: Math.round(newX),
|
787
|
+
y: Math.round(newY)
|
788
|
+
};
|
789
|
+
},
|
790
|
+
xrangeDragDropProps = seriesTypes.xrange.prototype.dragDropProps = {
|
791
|
+
y: {
|
792
|
+
axis: 'y',
|
793
|
+
move: true
|
794
|
+
},
|
795
|
+
/**
|
796
|
+
* Allow x value to be dragged individually. Requires
|
797
|
+
* `draggable-points` module.
|
798
|
+
*
|
799
|
+
* @type {boolean}
|
800
|
+
* @default true
|
801
|
+
* @apioption plotOptions.xrange.dragDrop.draggableX1
|
802
|
+
*/
|
803
|
+
x: {
|
804
|
+
optionName: 'draggableX1',
|
805
|
+
axis: 'x',
|
806
|
+
move: true,
|
807
|
+
resize: true,
|
808
|
+
resizeSide: 'left',
|
809
|
+
handlePositioner: function (point) {
|
810
|
+
return xrangeHandlePositioner(point, 'x');
|
811
|
+
},
|
812
|
+
handleFormatter: horizHandleFormatter,
|
813
|
+
propValidate: function (val, point) {
|
814
|
+
return val <= point.x2;
|
815
|
+
}
|
816
|
+
},
|
817
|
+
/**
|
818
|
+
* Allow x2 value to be dragged individually. Requires
|
819
|
+
* `draggable-points` module.
|
820
|
+
*
|
821
|
+
* @type {boolean}
|
822
|
+
* @default true
|
823
|
+
* @apioption plotOptions.xrange.dragDrop.draggableX2
|
824
|
+
*/
|
825
|
+
x2: {
|
826
|
+
optionName: 'draggableX2',
|
827
|
+
axis: 'x',
|
828
|
+
move: true,
|
829
|
+
resize: true,
|
830
|
+
resizeSide: 'right',
|
831
|
+
handlePositioner: function (point) {
|
832
|
+
return xrangeHandlePositioner(point, 'x2');
|
833
|
+
},
|
834
|
+
handleFormatter: horizHandleFormatter,
|
835
|
+
propValidate: function (val, point) {
|
836
|
+
return val >= point.x;
|
837
|
+
}
|
838
|
+
}
|
839
|
+
};
|
840
|
+
}
|
841
|
+
|
842
|
+
// Gantt - same as xrange, but with aliases
|
843
|
+
if (seriesTypes.gantt) {
|
844
|
+
seriesTypes.gantt.prototype.dragDropProps = {
|
845
|
+
y: xrangeDragDropProps.y,
|
846
|
+
/**
|
847
|
+
* Allow start value to be dragged individually. Requires
|
848
|
+
* `draggable-points` module.
|
849
|
+
*
|
850
|
+
* @type {boolean}
|
851
|
+
* @default true
|
852
|
+
* @apioption plotOptions.gantt.dragDrop.draggableStart
|
853
|
+
*/
|
854
|
+
start: merge(xrangeDragDropProps.x, {
|
855
|
+
optionName: 'draggableStart',
|
856
|
+
// Do not allow individual drag handles for milestones
|
857
|
+
validateIndividualDrag: function (point) {
|
858
|
+
return !point.milestone;
|
859
|
+
}
|
860
|
+
}),
|
861
|
+
/**
|
862
|
+
* Allow end value to be dragged individually. Requires
|
863
|
+
* `draggable-points` module.
|
864
|
+
*
|
865
|
+
* @type {boolean}
|
866
|
+
* @default true
|
867
|
+
* @apioption plotOptions.gantt.dragDrop.draggableEnd
|
868
|
+
*/
|
869
|
+
end: merge(xrangeDragDropProps.x2, {
|
870
|
+
optionName: 'draggableEnd',
|
871
|
+
// Do not allow individual drag handles for milestones
|
872
|
+
validateIndividualDrag: function (point) {
|
873
|
+
return !point.milestone;
|
874
|
+
}
|
875
|
+
})
|
876
|
+
};
|
877
|
+
}
|
878
|
+
|
879
|
+
// Don't support certain series types
|
880
|
+
[
|
881
|
+
'gauge',
|
882
|
+
'pie',
|
883
|
+
'sunburst',
|
884
|
+
'wordcloud',
|
885
|
+
'sankey',
|
886
|
+
'histogram',
|
887
|
+
'pareto',
|
888
|
+
'vector',
|
889
|
+
'windbarb',
|
890
|
+
'treemap',
|
891
|
+
'bellcurve',
|
892
|
+
'sma',
|
893
|
+
'map',
|
894
|
+
'mapline'
|
895
|
+
].forEach(
|
896
|
+
function (type) {
|
897
|
+
if (seriesTypes[type]) {
|
898
|
+
seriesTypes[type].prototype.dragDropProps = null;
|
899
|
+
}
|
900
|
+
}
|
901
|
+
);
|
902
|
+
|
903
|
+
/**
|
904
|
+
* The draggable-points module allows points to be moved around or modified in
|
905
|
+
* the chart. In addition to the options mentioned under the `dragDrop` API
|
906
|
+
* structure, the module fires three events,
|
907
|
+
* [point.dragStart](plotOptions.series.point.events.dragStart),
|
908
|
+
* [point.drag](plotOptions.series.point.events.drag) and
|
909
|
+
* [point.drop](plotOptions.series.point.events.drop).
|
910
|
+
*
|
911
|
+
* It requires the `modules/draggable-points.js` file to be loaded.
|
912
|
+
*
|
913
|
+
* @sample highcharts/dragdrop/resize-column
|
914
|
+
* Draggable column and line series
|
915
|
+
* @sample highcharts/dragdrop/bar-series
|
916
|
+
* Draggable bar
|
917
|
+
* @sample highcharts/dragdrop/drag-bubble
|
918
|
+
* Draggable bubbles
|
919
|
+
* @sample highcharts/dragdrop/drag-xrange
|
920
|
+
* Draggable X range series
|
921
|
+
*
|
922
|
+
* @since 6.2.0
|
923
|
+
* @apioption plotOptions.series.dragDrop
|
924
|
+
*/
|
925
|
+
|
926
|
+
/**
|
927
|
+
* The amount of pixels to drag the pointer before it counts as a drag
|
928
|
+
* operation. This prevents drag/drop to fire when just clicking or selecting
|
929
|
+
* points.
|
930
|
+
*
|
931
|
+
* @type {number}
|
932
|
+
* @default 2
|
933
|
+
* @since 6.2.0
|
934
|
+
* @apioption plotOptions.series.dragDrop.dragSensitivity
|
935
|
+
*/
|
936
|
+
var defaultDragSensitivity = 2;
|
937
|
+
|
938
|
+
/**
|
939
|
+
* Style options for the guide box. The guide box has one state by default, the
|
940
|
+
* `default` state.
|
941
|
+
*
|
942
|
+
* @type {Highcharts.Dictionary<Highcharts.PlotSeriesDragDropGuideBoxDefaultOptions>}
|
943
|
+
* @since 6.2.0
|
944
|
+
* @optionparent plotOptions.series.dragDrop.guideBox
|
945
|
+
*/
|
946
|
+
var defaultGuideBoxOptions = {
|
947
|
+
/**
|
948
|
+
* Style options for the guide box default state.
|
949
|
+
*
|
950
|
+
* @since 6.2.0
|
951
|
+
*/
|
952
|
+
'default': {
|
953
|
+
/**
|
954
|
+
* CSS class name of the guide box in this state. Defaults to
|
955
|
+
* `highcharts-drag-box-default`.
|
956
|
+
*
|
957
|
+
* @since 6.2.0
|
958
|
+
*/
|
959
|
+
className: 'highcharts-drag-box-default',
|
960
|
+
|
961
|
+
/**
|
962
|
+
* Width of the line around the guide box.
|
963
|
+
*
|
964
|
+
* @since 6.2.0
|
965
|
+
*/
|
966
|
+
lineWidth: 1,
|
967
|
+
|
968
|
+
/**
|
969
|
+
* Color of the border around the guide box.
|
970
|
+
*
|
971
|
+
* @type {Highcharts.ColorString}
|
972
|
+
* @since 6.2.0
|
973
|
+
*/
|
974
|
+
lineColor: '#888',
|
975
|
+
|
976
|
+
/**
|
977
|
+
* Guide box fill color.
|
978
|
+
*
|
979
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
980
|
+
* @since 6.2.0
|
981
|
+
*/
|
982
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
983
|
+
|
984
|
+
/**
|
985
|
+
* Guide box cursor.
|
986
|
+
*
|
987
|
+
* @since 6.2.0
|
988
|
+
*/
|
989
|
+
cursor: 'move',
|
990
|
+
|
991
|
+
/**
|
992
|
+
* Guide box zIndex.
|
993
|
+
*
|
994
|
+
* @since 6.2.0
|
995
|
+
*/
|
996
|
+
zIndex: 900
|
997
|
+
}
|
998
|
+
};
|
999
|
+
|
1000
|
+
|
1001
|
+
/**
|
1002
|
+
* Options for the drag handles.
|
1003
|
+
*
|
1004
|
+
* @since 6.2.0
|
1005
|
+
* @optionparent plotOptions.series.dragDrop.dragHandle
|
1006
|
+
*/
|
1007
|
+
var defaultDragHandleOptions = {
|
1008
|
+
|
1009
|
+
/**
|
1010
|
+
* Function to define the SVG path to use for the drag handles. Takes the
|
1011
|
+
* point as argument. Should return an SVG path in array format. The SVG
|
1012
|
+
* path is automatically positioned on the point.
|
1013
|
+
*
|
1014
|
+
* @type {Function}
|
1015
|
+
* @since 6.2.0
|
1016
|
+
* @apioption plotOptions.series.dragDrop.dragHandle.pathFormatter
|
1017
|
+
*/
|
1018
|
+
// pathFormatter: null,
|
1019
|
+
|
1020
|
+
/**
|
1021
|
+
* The mouse cursor to use for the drag handles. By default this is
|
1022
|
+
* intelligently switching between `ew-resize` and `ns-resize` depending on
|
1023
|
+
* the direction the point is being dragged.
|
1024
|
+
*
|
1025
|
+
* @type {string}
|
1026
|
+
* @since 6.2.0
|
1027
|
+
* @apioption plotOptions.series.dragDrop.dragHandle.cursor
|
1028
|
+
*/
|
1029
|
+
// cursor: null,
|
1030
|
+
|
1031
|
+
/**
|
1032
|
+
* The class name of the drag handles. Defaults to `highcharts-drag-handle`.
|
1033
|
+
*
|
1034
|
+
* @since 6.2.0
|
1035
|
+
*/
|
1036
|
+
className: 'highcharts-drag-handle',
|
1037
|
+
|
1038
|
+
/**
|
1039
|
+
* The fill color of the drag handles.
|
1040
|
+
*
|
1041
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
1042
|
+
* @since 6.2.0
|
1043
|
+
*/
|
1044
|
+
color: '#fff',
|
1045
|
+
|
1046
|
+
/**
|
1047
|
+
* The line color of the drag handles.
|
1048
|
+
*
|
1049
|
+
* @type {Highcharts.ColorString}
|
1050
|
+
* @since 6.2.0
|
1051
|
+
*/
|
1052
|
+
lineColor: 'rgba(0, 0, 0, 0.6)',
|
1053
|
+
|
1054
|
+
/**
|
1055
|
+
* The line width for the drag handles.
|
1056
|
+
*
|
1057
|
+
* @since 6.2.0
|
1058
|
+
*/
|
1059
|
+
lineWidth: 1,
|
1060
|
+
|
1061
|
+
/**
|
1062
|
+
* The z index for the drag handles.
|
1063
|
+
*
|
1064
|
+
* @since 6.2.0
|
1065
|
+
*/
|
1066
|
+
zIndex: 901
|
1067
|
+
};
|
1068
|
+
|
1069
|
+
/**
|
1070
|
+
* Set the minimum X value the points can be moved to.
|
1071
|
+
*
|
1072
|
+
* @sample {gantt} gantt/dragdrop/drag-gantt
|
1073
|
+
* Limit dragging
|
1074
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1075
|
+
* Limit dragging
|
1076
|
+
*
|
1077
|
+
* @type {number}
|
1078
|
+
* @since 6.2.0
|
1079
|
+
* @apioption plotOptions.series.dragDrop.dragMinX
|
1080
|
+
*/
|
1081
|
+
|
1082
|
+
/**
|
1083
|
+
* Set the maximum X value the points can be moved to.
|
1084
|
+
*
|
1085
|
+
* @sample {gantt} gantt/dragdrop/drag-gantt
|
1086
|
+
* Limit dragging
|
1087
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1088
|
+
* Limit dragging
|
1089
|
+
*
|
1090
|
+
* @type {number}
|
1091
|
+
* @since 6.2.0
|
1092
|
+
* @apioption plotOptions.series.dragDrop.dragMaxX
|
1093
|
+
*/
|
1094
|
+
|
1095
|
+
/**
|
1096
|
+
* Set the minimum Y value the points can be moved to.
|
1097
|
+
*
|
1098
|
+
* @sample {gantt} gantt/dragdrop/drag-gantt
|
1099
|
+
* Limit dragging
|
1100
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1101
|
+
* Limit dragging
|
1102
|
+
*
|
1103
|
+
* @type {number}
|
1104
|
+
* @since 6.2.0
|
1105
|
+
* @apioption plotOptions.series.dragDrop.dragMinY
|
1106
|
+
*/
|
1107
|
+
|
1108
|
+
/**
|
1109
|
+
* Set the maximum Y value the points can be moved to.
|
1110
|
+
*
|
1111
|
+
* @sample {gantt} gantt/dragdrop/drag-gantt
|
1112
|
+
* Limit dragging
|
1113
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1114
|
+
* Limit dragging
|
1115
|
+
*
|
1116
|
+
* @type {number}
|
1117
|
+
* @since 6.2.0
|
1118
|
+
* @apioption plotOptions.series.dragDrop.dragMaxY
|
1119
|
+
*/
|
1120
|
+
|
1121
|
+
/**
|
1122
|
+
* The X precision value to drag to for this series. Set to 0 to disable. By
|
1123
|
+
* default this is disabled, except for category axes, where the default is 1.
|
1124
|
+
*
|
1125
|
+
* @type {number}
|
1126
|
+
* @default 0
|
1127
|
+
* @since 6.2.0
|
1128
|
+
* @apioption plotOptions.series.dragDrop.dragPrecisionX
|
1129
|
+
*/
|
1130
|
+
|
1131
|
+
/**
|
1132
|
+
* The Y precision value to drag to for this series. Set to 0 to disable. By
|
1133
|
+
* default this is disabled, except for category axes, where the default is 1.
|
1134
|
+
*
|
1135
|
+
* @type {number}
|
1136
|
+
* @default 0
|
1137
|
+
* @since 6.2.0
|
1138
|
+
* @apioption plotOptions.series.dragDrop.dragPrecisionY
|
1139
|
+
*/
|
1140
|
+
|
1141
|
+
/**
|
1142
|
+
* Enable dragging in the X dimension.
|
1143
|
+
*
|
1144
|
+
* @type {boolean}
|
1145
|
+
* @since 6.2.0
|
1146
|
+
* @apioption plotOptions.series.dragDrop.draggableX
|
1147
|
+
*/
|
1148
|
+
|
1149
|
+
/**
|
1150
|
+
* Enable dragging in the Y dimension. Note that this is not supported for
|
1151
|
+
* TreeGrid axes (the default axis type in Gantt charts).
|
1152
|
+
*
|
1153
|
+
* @type {boolean}
|
1154
|
+
* @since 6.2.0
|
1155
|
+
* @apioption plotOptions.series.dragDrop.draggableY
|
1156
|
+
*/
|
1157
|
+
|
1158
|
+
/**
|
1159
|
+
* Group the points by a property. Points with the same property value will be
|
1160
|
+
* grouped together when moving.
|
1161
|
+
*
|
1162
|
+
* @sample {gantt} gantt/dragdrop/drag-gantt
|
1163
|
+
* Drag grouped points
|
1164
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1165
|
+
* Drag grouped points
|
1166
|
+
*
|
1167
|
+
* @type {string}
|
1168
|
+
* @since 6.2.0
|
1169
|
+
* @apioption plotOptions.series.dragDrop.groupBy
|
1170
|
+
*/
|
1171
|
+
|
1172
|
+
/**
|
1173
|
+
* Update points as they are dragged. If false, a guide box is drawn to
|
1174
|
+
* illustrate the new point size.
|
1175
|
+
*
|
1176
|
+
* @sample {gantt} gantt/dragdrop/drag-gantt
|
1177
|
+
* liveRedraw disabled
|
1178
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1179
|
+
* liveRedraw disabled
|
1180
|
+
*
|
1181
|
+
* @type {boolean}
|
1182
|
+
* @default true
|
1183
|
+
* @since 6.2.0
|
1184
|
+
* @apioption plotOptions.series.dragDrop.liveRedraw
|
1185
|
+
*/
|
1186
|
+
|
1187
|
+
/**
|
1188
|
+
* Set a key to hold when dragging to zoom the chart. Requires the
|
1189
|
+
* draggable-points module. This is useful to avoid zooming while moving points.
|
1190
|
+
* Should be set different than [chart.panKey](#chart.panKey).
|
1191
|
+
*
|
1192
|
+
* @type {string}
|
1193
|
+
* @since 6.2.0
|
1194
|
+
* @validvalue ["alt", "ctrl", "meta", "shift"]
|
1195
|
+
* @apioption chart.zoomKey
|
1196
|
+
*/
|
1197
|
+
|
1198
|
+
/**
|
1199
|
+
* Callback that fires when starting to drag a point. The mouse event object is
|
1200
|
+
* passed in as an argument. If a drag handle is used, `e.updateProp` is set to
|
1201
|
+
* the data property being dragged. The `this` context is the point. See
|
1202
|
+
* [drag and drop options](plotOptions.series.dragDrop).
|
1203
|
+
*
|
1204
|
+
* Requires the `draggable-points` module.
|
1205
|
+
*
|
1206
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1207
|
+
* Drag events
|
1208
|
+
*
|
1209
|
+
* @type {Highcharts.SeriesPointDragStartCallbackFunction}
|
1210
|
+
* @since 6.2.0
|
1211
|
+
* @apioption plotOptions.series.point.events.dragStart
|
1212
|
+
*/
|
1213
|
+
|
1214
|
+
/**
|
1215
|
+
* Callback that fires while dragging a point. The mouse event is passed in as
|
1216
|
+
* parameter. The original data can be accessed from `e.origin`, and the new
|
1217
|
+
* point values can be accessed from `e.newPoints`. If there is only a single
|
1218
|
+
* point being updated, it can be accessed from `e.newPoint` for simplicity, and
|
1219
|
+
* its ID can be accessed from `e.newPointId`. The `this` context is the point
|
1220
|
+
* being dragged. To stop the default drag action, return false. See
|
1221
|
+
* [drag and drop options](plotOptions.series.dragDrop).
|
1222
|
+
*
|
1223
|
+
* Requires the `draggable-points` module.
|
1224
|
+
*
|
1225
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1226
|
+
* Drag events
|
1227
|
+
*
|
1228
|
+
* @type {Highcharts.SeriesPointDragCallbackFunction}
|
1229
|
+
* @since 6.2.0
|
1230
|
+
* @apioption plotOptions.series.point.events.drag
|
1231
|
+
*/
|
1232
|
+
|
1233
|
+
/**
|
1234
|
+
* Callback that fires when the point is dropped. The parameters passed are the
|
1235
|
+
* same as for [drag](#plotOptions.series.point.events.drag). To stop the
|
1236
|
+
* default drop action, return false. See
|
1237
|
+
* [drag and drop options](plotOptions.series.dragDrop).
|
1238
|
+
*
|
1239
|
+
* Requires the `draggable-points` module.
|
1240
|
+
*
|
1241
|
+
* @sample {highcharts} highcharts/dragdrop/drag-xrange
|
1242
|
+
* Drag events
|
1243
|
+
*
|
1244
|
+
* @type {Highcharts.SeriesPointDropCallbackFunction}
|
1245
|
+
* @since 6.2.0
|
1246
|
+
* @apioption plotOptions.series.point.events.drop
|
1247
|
+
*/
|
1248
|
+
|
1249
|
+
/**
|
1250
|
+
* Point specific options for the draggable-points module. Overrides options on
|
1251
|
+
* `series.dragDrop`.
|
1252
|
+
*
|
1253
|
+
* Requires the `draggable-points` module.
|
1254
|
+
*
|
1255
|
+
* @extends plotOptions.series.dragDrop
|
1256
|
+
* @since 6.2.0
|
1257
|
+
* @apioption series.line.data.dragDrop
|
1258
|
+
*/
|
1259
|
+
|
1260
|
+
|
1261
|
+
/**
|
1262
|
+
* Utility function to test if a series is using drag/drop, looking at its
|
1263
|
+
* options.
|
1264
|
+
*
|
1265
|
+
* @private
|
1266
|
+
* @function isSeriesDraggable
|
1267
|
+
*
|
1268
|
+
* @param {Highcharts.Series} series
|
1269
|
+
* The series to test.
|
1270
|
+
*
|
1271
|
+
* @return {boolean}
|
1272
|
+
* True if the series is using drag/drop.
|
1273
|
+
*/
|
1274
|
+
function isSeriesDraggable(series) {
|
1275
|
+
var props = ['draggableX', 'draggableY'],
|
1276
|
+
i;
|
1277
|
+
|
1278
|
+
// Add optionNames from dragDropProps to the array of props to check for
|
1279
|
+
objectEach(series.dragDropProps, function (val) {
|
1280
|
+
if (val.optionName) {
|
1281
|
+
props.push(val.optionName);
|
1282
|
+
}
|
1283
|
+
});
|
1284
|
+
|
1285
|
+
// Loop over all options we have that could enable dragDrop for this
|
1286
|
+
// series. If any of them are truthy, this series is draggable.
|
1287
|
+
i = props.length;
|
1288
|
+
while (i--) {
|
1289
|
+
if (series.options.dragDrop[props[i]]) {
|
1290
|
+
return true;
|
1291
|
+
}
|
1292
|
+
}
|
1293
|
+
}
|
1294
|
+
|
1295
|
+
|
1296
|
+
/**
|
1297
|
+
* Utility function to test if a chart should have drag/drop enabled, looking at
|
1298
|
+
* its options.
|
1299
|
+
*
|
1300
|
+
* @private
|
1301
|
+
* @function isChartDraggable
|
1302
|
+
*
|
1303
|
+
* @param {Highcharts.Chart} chart
|
1304
|
+
* The chart to test.
|
1305
|
+
*
|
1306
|
+
* @return {boolean}
|
1307
|
+
* True if the chart is drag/droppable.
|
1308
|
+
*/
|
1309
|
+
function isChartDraggable(chart) {
|
1310
|
+
var i = chart.series ? chart.series.length : 0;
|
1311
|
+
|
1312
|
+
if (chart.hasCartesianSeries && !chart.polar) {
|
1313
|
+
while (i--) {
|
1314
|
+
if (
|
1315
|
+
chart.series[i].options.dragDrop &&
|
1316
|
+
isSeriesDraggable(chart.series[i])
|
1317
|
+
) {
|
1318
|
+
return true;
|
1319
|
+
}
|
1320
|
+
}
|
1321
|
+
}
|
1322
|
+
}
|
1323
|
+
|
1324
|
+
|
1325
|
+
/**
|
1326
|
+
* Utility function to test if a point is movable (any of its props can be
|
1327
|
+
* dragged by a move, not just individually).
|
1328
|
+
*
|
1329
|
+
* @private
|
1330
|
+
* @function isPointMovable
|
1331
|
+
*
|
1332
|
+
* @param {Highcharts.Point} point
|
1333
|
+
* The point to test.
|
1334
|
+
*
|
1335
|
+
* @return {boolean}
|
1336
|
+
* True if the point is movable.
|
1337
|
+
*/
|
1338
|
+
function isPointMovable(point) {
|
1339
|
+
var series = point.series,
|
1340
|
+
seriesDragDropOptions = series.options.dragDrop || {},
|
1341
|
+
pointDragDropOptions = point.options && point.options.dragDrop,
|
1342
|
+
updateProps = series.dragDropProps,
|
1343
|
+
hasMovableX,
|
1344
|
+
hasMovableY;
|
1345
|
+
|
1346
|
+
objectEach(updateProps, function (p) {
|
1347
|
+
if (p.axis === 'x' && p.move) {
|
1348
|
+
hasMovableX = true;
|
1349
|
+
} else if (p.axis === 'y' && p.move) {
|
1350
|
+
hasMovableY = true;
|
1351
|
+
}
|
1352
|
+
});
|
1353
|
+
|
1354
|
+
// We can only move the point if draggableX/Y is set, even if all the
|
1355
|
+
// individual prop options are set.
|
1356
|
+
return (
|
1357
|
+
seriesDragDropOptions.draggableX && hasMovableX ||
|
1358
|
+
seriesDragDropOptions.draggableY && hasMovableY
|
1359
|
+
) &&
|
1360
|
+
!(
|
1361
|
+
pointDragDropOptions &&
|
1362
|
+
pointDragDropOptions.draggableX === false &&
|
1363
|
+
pointDragDropOptions.draggableY === false
|
1364
|
+
) &&
|
1365
|
+
series.yAxis &&
|
1366
|
+
series.xAxis;
|
1367
|
+
}
|
1368
|
+
|
1369
|
+
|
1370
|
+
/**
|
1371
|
+
* Take a mouse/touch event and return the event object with chartX/chartY.
|
1372
|
+
*
|
1373
|
+
* @private
|
1374
|
+
* @function getNormalizedEvent
|
1375
|
+
*
|
1376
|
+
* @param {global.Event} e
|
1377
|
+
* The event to normalize.
|
1378
|
+
*
|
1379
|
+
* @return {global.Event}
|
1380
|
+
* The normalized event.
|
1381
|
+
*/
|
1382
|
+
function getNormalizedEvent(e, chart) {
|
1383
|
+
return e.chartX === undefined || e.chartY === undefined ?
|
1384
|
+
chart.pointer.normalize(e) : e;
|
1385
|
+
}
|
1386
|
+
|
1387
|
+
|
1388
|
+
/**
|
1389
|
+
* Add multiple event listeners with the same handler to the same element.
|
1390
|
+
*
|
1391
|
+
* @private
|
1392
|
+
* @function addEvents
|
1393
|
+
*
|
1394
|
+
* @param {*} el
|
1395
|
+
* The element or object to add listeners to.
|
1396
|
+
*
|
1397
|
+
* @param {Array<string>} types
|
1398
|
+
* Array with the event types this handler should apply to.
|
1399
|
+
*
|
1400
|
+
* @param {Highcharts.EventCallbackFunction} fn
|
1401
|
+
* The function callback to execute when the events are fired.
|
1402
|
+
*
|
1403
|
+
* @param {Highcharts.Dictionary<*>} options
|
1404
|
+
* Event options
|
1405
|
+
*
|
1406
|
+
* @param {number} options.order
|
1407
|
+
* The order the event handler should be called. This opens for having
|
1408
|
+
* one handler be called before another, independent of in which order
|
1409
|
+
* they were added.
|
1410
|
+
*
|
1411
|
+
* @return {Function}
|
1412
|
+
* A callback function to remove the added events.
|
1413
|
+
*/
|
1414
|
+
function addEvents(el, types, fn, options) {
|
1415
|
+
var removeFuncs = types.map(function (type) {
|
1416
|
+
return addEvent(el, type, fn, options);
|
1417
|
+
});
|
1418
|
+
|
1419
|
+
return function () {
|
1420
|
+
removeFuncs.forEach(function (fn) {
|
1421
|
+
fn();
|
1422
|
+
});
|
1423
|
+
};
|
1424
|
+
}
|
1425
|
+
|
1426
|
+
|
1427
|
+
/**
|
1428
|
+
* In mousemove events, check that we have dragged mouse further than the
|
1429
|
+
* dragSensitivity before we call mouseMove handler.
|
1430
|
+
*
|
1431
|
+
* @private
|
1432
|
+
* @function hasDraggedPastSensitivity
|
1433
|
+
*
|
1434
|
+
* @param {global.Event} e
|
1435
|
+
* Mouse move event to test.
|
1436
|
+
*
|
1437
|
+
* @param {Highcharts.Chart} chart
|
1438
|
+
* Chart that has started dragging.
|
1439
|
+
*
|
1440
|
+
* @param {number} sensitivity
|
1441
|
+
* Pixel sensitivity to test against.
|
1442
|
+
*
|
1443
|
+
* @return {boolean}
|
1444
|
+
* True if the event is moved past sensitivity relative to the chart's
|
1445
|
+
* drag origin.
|
1446
|
+
*/
|
1447
|
+
function hasDraggedPastSensitivity(e, chart, sensitivity) {
|
1448
|
+
var orig = chart.dragDropData.origin,
|
1449
|
+
oldX = orig.chartX,
|
1450
|
+
oldY = orig.chartY,
|
1451
|
+
newX = e.chartX,
|
1452
|
+
newY = e.chartY,
|
1453
|
+
distance = Math.sqrt(
|
1454
|
+
(newX - oldX) * (newX - oldX) +
|
1455
|
+
(newY - oldY) * (newY - oldY)
|
1456
|
+
);
|
1457
|
+
|
1458
|
+
return distance > sensitivity;
|
1459
|
+
}
|
1460
|
+
|
1461
|
+
|
1462
|
+
/**
|
1463
|
+
* Get a snapshot of points, mouse position, and guide box dimensions
|
1464
|
+
*
|
1465
|
+
* @private
|
1466
|
+
* @function getPositionSnapshot
|
1467
|
+
*
|
1468
|
+
* @param {global.Event} e
|
1469
|
+
* Mouse event with mouse position to snapshot.
|
1470
|
+
*
|
1471
|
+
* @param {Array<Highcharts.Point>} points
|
1472
|
+
* Points to take snapshot of. We store the value of the data properties
|
1473
|
+
* defined in each series' dragDropProps.
|
1474
|
+
*
|
1475
|
+
* @param {Highcharts.SVGElement} [guideBox]
|
1476
|
+
* The guide box to take snapshot of.
|
1477
|
+
*
|
1478
|
+
* @return {object}
|
1479
|
+
* Snapshot object. Point properties are placed in a hashmap with IDs as
|
1480
|
+
* keys.
|
1481
|
+
*/
|
1482
|
+
function getPositionSnapshot(e, points, guideBox) {
|
1483
|
+
var res = {
|
1484
|
+
chartX: e.chartX,
|
1485
|
+
chartY: e.chartY,
|
1486
|
+
guideBox: guideBox && {
|
1487
|
+
x: guideBox.attr('x'),
|
1488
|
+
y: guideBox.attr('y'),
|
1489
|
+
width: guideBox.attr('width'),
|
1490
|
+
height: guideBox.attr('height')
|
1491
|
+
},
|
1492
|
+
points: {}
|
1493
|
+
};
|
1494
|
+
|
1495
|
+
// Loop over the points and add their props
|
1496
|
+
points.forEach(function (point) {
|
1497
|
+
var pointProps = {};
|
1498
|
+
|
1499
|
+
// Add all of the props defined in the series' dragDropProps to the
|
1500
|
+
// snapshot
|
1501
|
+
objectEach(point.series.dragDropProps, function (val, key) {
|
1502
|
+
pointProps[key] = point[key];
|
1503
|
+
});
|
1504
|
+
pointProps.point = point; // Store reference to point
|
1505
|
+
res.points[point.id] = pointProps;
|
1506
|
+
});
|
1507
|
+
|
1508
|
+
return res;
|
1509
|
+
}
|
1510
|
+
|
1511
|
+
|
1512
|
+
/**
|
1513
|
+
* Get a list of points that are grouped with this point. If only one point is
|
1514
|
+
* in the group, that point is returned by itself in an array.
|
1515
|
+
*
|
1516
|
+
* @private
|
1517
|
+
* @function getGroupedPoints
|
1518
|
+
*
|
1519
|
+
* @param {Highcharts.Point} point
|
1520
|
+
* Point to find group from.
|
1521
|
+
*
|
1522
|
+
* @return {Array<Highcharts.Point>}
|
1523
|
+
* Array of points in this group.
|
1524
|
+
*/
|
1525
|
+
function getGroupedPoints(point) {
|
1526
|
+
var series = point.series,
|
1527
|
+
groupKey = series.options.dragDrop.groupBy;
|
1528
|
+
|
1529
|
+
return point.options[groupKey] ?
|
1530
|
+
// If we have a grouping option, filter the points by that
|
1531
|
+
series.points.filter(function (comparePoint) {
|
1532
|
+
return comparePoint.options[groupKey] === point.options[groupKey];
|
1533
|
+
}) :
|
1534
|
+
// Otherwise return the point by itself only
|
1535
|
+
[point];
|
1536
|
+
}
|
1537
|
+
|
1538
|
+
|
1539
|
+
/**
|
1540
|
+
* Resize a rect element on one side. The element is modified.
|
1541
|
+
*
|
1542
|
+
* @private
|
1543
|
+
* @function resizeRect
|
1544
|
+
*
|
1545
|
+
* @param {Highcharts.SVGElement} rect
|
1546
|
+
* Rect element to resize.
|
1547
|
+
*
|
1548
|
+
* @param {string} updateSide
|
1549
|
+
* Which side of the rect to update. Can be `left`, `right`, `top` or
|
1550
|
+
* `bottom`.
|
1551
|
+
*
|
1552
|
+
* @param {object} update
|
1553
|
+
* Object with x and y properties, detailing how much to resize each
|
1554
|
+
* dimension.
|
1555
|
+
*
|
1556
|
+
* @return {Highcharts.SVGElement}
|
1557
|
+
* The modified rect.
|
1558
|
+
*/
|
1559
|
+
function resizeRect(rect, updateSide, update) {
|
1560
|
+
var resizeAttrs;
|
1561
|
+
|
1562
|
+
switch (updateSide) {
|
1563
|
+
case 'left':
|
1564
|
+
resizeAttrs = {
|
1565
|
+
x: rect.attr('x') + update.x,
|
1566
|
+
width: Math.max(1, rect.attr('width') - update.x)
|
1567
|
+
};
|
1568
|
+
break;
|
1569
|
+
case 'right':
|
1570
|
+
resizeAttrs = {
|
1571
|
+
width: Math.max(1, rect.attr('width') + update.x)
|
1572
|
+
};
|
1573
|
+
break;
|
1574
|
+
case 'top':
|
1575
|
+
resizeAttrs = {
|
1576
|
+
y: rect.attr('y') + update.y,
|
1577
|
+
height: Math.max(1, rect.attr('height') - update.y)
|
1578
|
+
};
|
1579
|
+
break;
|
1580
|
+
case 'bottom':
|
1581
|
+
resizeAttrs = {
|
1582
|
+
height: Math.max(1, rect.attr('height') + update.y)
|
1583
|
+
};
|
1584
|
+
break;
|
1585
|
+
default:
|
1586
|
+
}
|
1587
|
+
rect.attr(resizeAttrs);
|
1588
|
+
}
|
1589
|
+
|
1590
|
+
|
1591
|
+
/**
|
1592
|
+
* Prepare chart.dragDropData with origin info, and show the guide box.
|
1593
|
+
*
|
1594
|
+
* @private
|
1595
|
+
* @function initDragDrop
|
1596
|
+
*
|
1597
|
+
* @param {global.Event} e
|
1598
|
+
* Mouse event with original mouse position.
|
1599
|
+
*
|
1600
|
+
* @param {Highcharts.Point} point
|
1601
|
+
* The point the dragging started on.
|
1602
|
+
*/
|
1603
|
+
function initDragDrop(e, point) {
|
1604
|
+
var groupedPoints = getGroupedPoints(point),
|
1605
|
+
series = point.series,
|
1606
|
+
chart = series.chart,
|
1607
|
+
guideBox;
|
1608
|
+
|
1609
|
+
// If liveRedraw is disabled, show the guide box with the default state
|
1610
|
+
if (!pick(
|
1611
|
+
series.options.dragDrop && series.options.dragDrop.liveRedraw,
|
1612
|
+
true
|
1613
|
+
)) {
|
1614
|
+
chart.dragGuideBox = guideBox = series.getGuideBox(groupedPoints);
|
1615
|
+
chart.setGuideBoxState('default', series.options.dragDrop.guideBox)
|
1616
|
+
.add(series.group);
|
1617
|
+
}
|
1618
|
+
|
1619
|
+
// Store some data on the chart to pick up later
|
1620
|
+
chart.dragDropData = {
|
1621
|
+
origin: getPositionSnapshot(e, groupedPoints, guideBox),
|
1622
|
+
point: point,
|
1623
|
+
groupedPoints: groupedPoints,
|
1624
|
+
isDragging: true
|
1625
|
+
};
|
1626
|
+
}
|
1627
|
+
|
1628
|
+
|
1629
|
+
/**
|
1630
|
+
* Calculate new point options from points being dragged.
|
1631
|
+
*
|
1632
|
+
* @private
|
1633
|
+
* @function getNewPoints
|
1634
|
+
*
|
1635
|
+
* @param {object} dragDropData
|
1636
|
+
* A chart's dragDropData with drag/drop origin information, and info on
|
1637
|
+
* which points are being dragged.
|
1638
|
+
*
|
1639
|
+
* @param {global.Event} newPos
|
1640
|
+
* Event with the new position of the mouse (chartX/Y properties).
|
1641
|
+
*
|
1642
|
+
* @return {Array<object>}
|
1643
|
+
* Hashmap with point.id mapped to an object with the original point
|
1644
|
+
* reference, as well as the new data values.
|
1645
|
+
*/
|
1646
|
+
function getNewPoints(dragDropData, newPos) {
|
1647
|
+
var point = dragDropData.point,
|
1648
|
+
series = point.series,
|
1649
|
+
options = merge(series.options.dragDrop, point.options.dragDrop),
|
1650
|
+
updateProps = {},
|
1651
|
+
resizeProp = dragDropData.updateProp,
|
1652
|
+
hashmap = {};
|
1653
|
+
|
1654
|
+
// Go through the data props that can be updated on this series and find out
|
1655
|
+
// which ones we want to update.
|
1656
|
+
objectEach(point.series.dragDropProps, function (val, key) {
|
1657
|
+
// If we are resizing, skip if this key is not the correct one or it
|
1658
|
+
// is not resizable.
|
1659
|
+
if (
|
1660
|
+
resizeProp && (
|
1661
|
+
resizeProp !== key ||
|
1662
|
+
!val.resize ||
|
1663
|
+
val.optionName && options[val.optionName] === false
|
1664
|
+
)
|
1665
|
+
) {
|
1666
|
+
return;
|
1667
|
+
}
|
1668
|
+
|
1669
|
+
// If we are resizing, we now know it is good. If we are moving, check
|
1670
|
+
// that moving along this axis is enabled, and the prop is movable.
|
1671
|
+
// If this prop is enabled, add it to be updated.
|
1672
|
+
if (
|
1673
|
+
resizeProp || (
|
1674
|
+
val.move &&
|
1675
|
+
(
|
1676
|
+
val.axis === 'x' && options.draggableX ||
|
1677
|
+
val.axis === 'y' && options.draggableY
|
1678
|
+
)
|
1679
|
+
)
|
1680
|
+
) {
|
1681
|
+
updateProps[key] = val;
|
1682
|
+
}
|
1683
|
+
});
|
1684
|
+
|
1685
|
+
// Go through the points to be updated and get new options for each of them
|
1686
|
+
(resizeProp ? // If resizing).forEach(only update the point we are resizing
|
1687
|
+
[point] :
|
1688
|
+
dragDropData.groupedPoints).forEach(
|
1689
|
+
function (p) {
|
1690
|
+
hashmap[p.id] = {
|
1691
|
+
point: p,
|
1692
|
+
newValues: p.getDropValues(
|
1693
|
+
dragDropData.origin, newPos, updateProps
|
1694
|
+
)
|
1695
|
+
};
|
1696
|
+
}
|
1697
|
+
);
|
1698
|
+
return hashmap;
|
1699
|
+
}
|
1700
|
+
|
1701
|
+
|
1702
|
+
/**
|
1703
|
+
* Update the points in a chart from dragDropData.newPoints.
|
1704
|
+
*
|
1705
|
+
* @private
|
1706
|
+
* @function updatePoints
|
1707
|
+
*
|
1708
|
+
* @param {Highcharts.Chart} chart
|
1709
|
+
* A chart with dragDropData.newPoints.
|
1710
|
+
*
|
1711
|
+
* @param {boolean} [animate=true]
|
1712
|
+
* Animate updating points?
|
1713
|
+
*/
|
1714
|
+
function updatePoints(chart, animate) {
|
1715
|
+
var newPoints = chart.dragDropData.newPoints,
|
1716
|
+
animOptions = animate === false ? false : merge({
|
1717
|
+
duration: 400 // 400 is the default in H.animate
|
1718
|
+
}, chart.options.animation);
|
1719
|
+
|
1720
|
+
chart.isDragDropAnimating = true;
|
1721
|
+
|
1722
|
+
// Update the points
|
1723
|
+
objectEach(newPoints, function (newPoint) {
|
1724
|
+
newPoint.point.update(newPoint.newValues, false);
|
1725
|
+
});
|
1726
|
+
|
1727
|
+
chart.redraw(animOptions);
|
1728
|
+
|
1729
|
+
// Clear the isAnimating flag after animation duration is complete.
|
1730
|
+
// The complete handler for animation seems to have bugs at this time, so
|
1731
|
+
// we have to use a timeout instead.
|
1732
|
+
setTimeout(function () {
|
1733
|
+
delete chart.isDragDropAnimating;
|
1734
|
+
if (chart.hoverPoint && !chart.dragHandles) {
|
1735
|
+
chart.hoverPoint.showDragHandles();
|
1736
|
+
}
|
1737
|
+
}, animOptions.duration);
|
1738
|
+
}
|
1739
|
+
|
1740
|
+
|
1741
|
+
/**
|
1742
|
+
* Resize the guide box according to point options and a difference in mouse
|
1743
|
+
* positions. Handles reversed axes.
|
1744
|
+
*
|
1745
|
+
* @private
|
1746
|
+
* @function resizeGuideBox
|
1747
|
+
*
|
1748
|
+
* @param {Highcharts.Point} point
|
1749
|
+
* The point that is being resized.
|
1750
|
+
*
|
1751
|
+
* @param {number} dX
|
1752
|
+
* Difference in X position.
|
1753
|
+
*
|
1754
|
+
* @param {number} dY
|
1755
|
+
* Difference in Y position.
|
1756
|
+
*/
|
1757
|
+
function resizeGuideBox(point, dX, dY) {
|
1758
|
+
var series = point.series,
|
1759
|
+
chart = series.chart,
|
1760
|
+
dragDropData = chart.dragDropData,
|
1761
|
+
resizeSide,
|
1762
|
+
newPoint,
|
1763
|
+
resizeProp = series.dragDropProps[dragDropData.updateProp];
|
1764
|
+
|
1765
|
+
// dragDropProp.resizeSide holds info on which side to resize.
|
1766
|
+
newPoint = dragDropData.newPoints[point.id].newValues;
|
1767
|
+
resizeSide = typeof resizeProp.resizeSide === 'function' ?
|
1768
|
+
resizeProp.resizeSide(newPoint, point) : resizeProp.resizeSide;
|
1769
|
+
|
1770
|
+
// Call resize hook if it is defined
|
1771
|
+
if (resizeProp.beforeResize) {
|
1772
|
+
resizeProp.beforeResize(chart.dragGuideBox, newPoint, point);
|
1773
|
+
}
|
1774
|
+
|
1775
|
+
// Do the resize
|
1776
|
+
resizeRect(
|
1777
|
+
chart.dragGuideBox,
|
1778
|
+
resizeProp.axis === 'x' && series.xAxis.reversed ||
|
1779
|
+
resizeProp.axis === 'y' && series.yAxis.reversed ?
|
1780
|
+
flipResizeSide(resizeSide) : resizeSide,
|
1781
|
+
{
|
1782
|
+
x: resizeProp.axis === 'x' ?
|
1783
|
+
dX - (dragDropData.origin.prevdX || 0) : 0,
|
1784
|
+
y: resizeProp.axis === 'y' ?
|
1785
|
+
dY - (dragDropData.origin.prevdY || 0) : 0
|
1786
|
+
}
|
1787
|
+
);
|
1788
|
+
}
|
1789
|
+
|
1790
|
+
|
1791
|
+
/**
|
1792
|
+
* Default mouse move handler while dragging. Handles updating points or guide
|
1793
|
+
* box.
|
1794
|
+
*
|
1795
|
+
* @private
|
1796
|
+
* @function dragMove
|
1797
|
+
*
|
1798
|
+
* @param {global.Event} e
|
1799
|
+
* The mouse move event.
|
1800
|
+
*
|
1801
|
+
* @param {Highcharts.Point} point
|
1802
|
+
* The point that is dragged.
|
1803
|
+
*/
|
1804
|
+
function dragMove(e, point) {
|
1805
|
+
var series = point.series,
|
1806
|
+
chart = series.chart,
|
1807
|
+
data = chart.dragDropData,
|
1808
|
+
options = merge(series.options.dragDrop, point.options.dragDrop),
|
1809
|
+
draggableX = options.draggableX,
|
1810
|
+
draggableY = options.draggableY,
|
1811
|
+
origin = data.origin,
|
1812
|
+
dX = e.chartX - origin.chartX,
|
1813
|
+
dY = e.chartY - origin.chartY,
|
1814
|
+
oldDx = dX,
|
1815
|
+
updateProp = data.updateProp;
|
1816
|
+
|
1817
|
+
// Handle inverted
|
1818
|
+
if (chart.inverted) {
|
1819
|
+
dX = -dY;
|
1820
|
+
dY = -oldDx;
|
1821
|
+
}
|
1822
|
+
|
1823
|
+
// If we have liveRedraw enabled, update the points immediately. Otherwise
|
1824
|
+
// update the guideBox.
|
1825
|
+
if (pick(options.liveRedraw, true)) {
|
1826
|
+
updatePoints(chart, false);
|
1827
|
+
|
1828
|
+
// Update drag handles
|
1829
|
+
point.showDragHandles();
|
1830
|
+
|
1831
|
+
} else {
|
1832
|
+
// No live redraw, update guide box
|
1833
|
+
if (updateProp) {
|
1834
|
+
// We are resizing, so resize the guide box
|
1835
|
+
resizeGuideBox(point, dX, dY);
|
1836
|
+
} else {
|
1837
|
+
// We are moving, so move the guide box
|
1838
|
+
chart.dragGuideBox.translate(
|
1839
|
+
draggableX ? dX : 0, draggableY ? dY : 0
|
1840
|
+
);
|
1841
|
+
}
|
1842
|
+
}
|
1843
|
+
|
1844
|
+
// Update stored previous dX/Y
|
1845
|
+
origin.prevdX = dX;
|
1846
|
+
origin.prevdY = dY;
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
|
1850
|
+
/**
|
1851
|
+
* Set the state of the guide box.
|
1852
|
+
*
|
1853
|
+
* @private
|
1854
|
+
* @function Highcharts.Chart#setGuideBoxState
|
1855
|
+
*
|
1856
|
+
* @param {string} state
|
1857
|
+
* The state to set the guide box to.
|
1858
|
+
*
|
1859
|
+
* @param {object} options
|
1860
|
+
* Additional overall guideBox options to consider.
|
1861
|
+
*
|
1862
|
+
* @return {Highcharts.SVGElement}
|
1863
|
+
* The modified guide box.
|
1864
|
+
*/
|
1865
|
+
H.Chart.prototype.setGuideBoxState = function (state, options) {
|
1866
|
+
var guideBox = this.dragGuideBox,
|
1867
|
+
guideBoxOptions = merge(defaultGuideBoxOptions, options),
|
1868
|
+
stateOptions = merge(guideBoxOptions.default, guideBoxOptions[state]);
|
1869
|
+
|
1870
|
+
return guideBox
|
1871
|
+
.attr({
|
1872
|
+
className: stateOptions.className,
|
1873
|
+
stroke: stateOptions.lineColor,
|
1874
|
+
strokeWidth: stateOptions.lineWidth,
|
1875
|
+
fill: stateOptions.color,
|
1876
|
+
cursor: stateOptions.cursor,
|
1877
|
+
zIndex: stateOptions.zIndex
|
1878
|
+
})
|
1879
|
+
// Use pointerEvents 'none' to avoid capturing the click event
|
1880
|
+
.css({ pointerEvents: 'none' });
|
1881
|
+
};
|
1882
|
+
|
1883
|
+
|
1884
|
+
/**
|
1885
|
+
* Get updated point values when dragging a point.
|
1886
|
+
*
|
1887
|
+
* @private
|
1888
|
+
* @function Highcharts.Point#getDropValues
|
1889
|
+
*
|
1890
|
+
* @param {object} origin
|
1891
|
+
* Mouse position (chartX/Y) and point props at current data values.
|
1892
|
+
* Point props should be organized per point.id in a hashmap.
|
1893
|
+
*
|
1894
|
+
* @param {global.Event} newPos
|
1895
|
+
* New mouse position (chartX/Y).
|
1896
|
+
*
|
1897
|
+
* @param {object} updateProps
|
1898
|
+
* Point props to modify. Map of prop objects where each key refers to
|
1899
|
+
* the prop, and the value is an object with an axis property. Example:
|
1900
|
+
* {
|
1901
|
+
* x: {
|
1902
|
+
* axis: 'x'
|
1903
|
+
* },
|
1904
|
+
* x2: {
|
1905
|
+
* axis: 'x'
|
1906
|
+
* }
|
1907
|
+
* }
|
1908
|
+
*
|
1909
|
+
* @return {object}
|
1910
|
+
* An object with updated data values.
|
1911
|
+
*/
|
1912
|
+
H.Point.prototype.getDropValues = function (origin, newPos, updateProps) {
|
1913
|
+
var point = this,
|
1914
|
+
series = point.series,
|
1915
|
+
options = merge(series.options.dragDrop, point.options.dragDrop),
|
1916
|
+
yAxis = series.yAxis,
|
1917
|
+
xAxis = series.xAxis,
|
1918
|
+
dX = newPos.chartX - origin.chartX,
|
1919
|
+
dY = newPos.chartY - origin.chartY,
|
1920
|
+
oldX = pick(origin.x, point.x),
|
1921
|
+
oldY = pick(origin.y, point.y),
|
1922
|
+
dXValue = xAxis.toValue(
|
1923
|
+
xAxis.toPixels(oldX, true) +
|
1924
|
+
(xAxis.horiz ? dX : dY),
|
1925
|
+
true
|
1926
|
+
) - oldX,
|
1927
|
+
dYValue = yAxis.toValue(
|
1928
|
+
yAxis.toPixels(oldY, true) +
|
1929
|
+
(yAxis.horiz ? dX : dY),
|
1930
|
+
true
|
1931
|
+
) - oldY,
|
1932
|
+
result = {},
|
1933
|
+
updateSingleProp,
|
1934
|
+
pointOrigin = origin.points[point.id];
|
1935
|
+
|
1936
|
+
// Find out if we only have one prop to update
|
1937
|
+
for (var key in updateProps) {
|
1938
|
+
if (updateProps.hasOwnProperty(key)) {
|
1939
|
+
if (updateSingleProp !== undefined) {
|
1940
|
+
updateSingleProp = false;
|
1941
|
+
break;
|
1942
|
+
}
|
1943
|
+
updateSingleProp = true;
|
1944
|
+
}
|
1945
|
+
}
|
1946
|
+
|
1947
|
+
// Utility function to apply precision and limit a value within the
|
1948
|
+
// draggable range
|
1949
|
+
function limitToRange(val, direction) {
|
1950
|
+
var defaultPrecision = series[direction.toLowerCase() + 'Axis']
|
1951
|
+
.categories ? 1 : 0,
|
1952
|
+
precision = pick(
|
1953
|
+
options['dragPrecision' + direction], defaultPrecision
|
1954
|
+
),
|
1955
|
+
min = pick(options['dragMin' + direction], -Infinity),
|
1956
|
+
max = pick(options['dragMax' + direction], Infinity),
|
1957
|
+
res = val;
|
1958
|
+
|
1959
|
+
if (precision) {
|
1960
|
+
res = Math.round(res / precision) * precision;
|
1961
|
+
}
|
1962
|
+
return Math.max(min, Math.min(max, res));
|
1963
|
+
}
|
1964
|
+
|
1965
|
+
// Assign new value to property. Adds dX/YValue to the old value, limiting
|
1966
|
+
// it within min/max ranges.
|
1967
|
+
objectEach(updateProps, function (val, key) {
|
1968
|
+
var oldVal = pointOrigin[key],
|
1969
|
+
newVal = limitToRange(
|
1970
|
+
oldVal + (val.axis === 'x' ? dXValue : dYValue),
|
1971
|
+
val.axis.toUpperCase()
|
1972
|
+
);
|
1973
|
+
|
1974
|
+
// If we are updating a single prop, and it has a validation function
|
1975
|
+
// for the prop, run it. If it fails, don't update the value.
|
1976
|
+
if (
|
1977
|
+
!(
|
1978
|
+
updateSingleProp &&
|
1979
|
+
val.propValidate &&
|
1980
|
+
!val.propValidate(newVal, point)
|
1981
|
+
) &&
|
1982
|
+
oldVal !== undefined
|
1983
|
+
) {
|
1984
|
+
result[key] = newVal;
|
1985
|
+
}
|
1986
|
+
});
|
1987
|
+
|
1988
|
+
return result;
|
1989
|
+
};
|
1990
|
+
|
1991
|
+
|
1992
|
+
/**
|
1993
|
+
* Returns an SVGElement to use as the guide box for a set of points.
|
1994
|
+
*
|
1995
|
+
* @private
|
1996
|
+
* @function Highcharts.Series#getGuideBox
|
1997
|
+
*
|
1998
|
+
* @param {Array<Highcharts.Point>} points
|
1999
|
+
* The state to set the guide box to.
|
2000
|
+
*
|
2001
|
+
* @return {Highcharts.SVGElement}
|
2002
|
+
* An SVG element for the guide box, not added to DOM.
|
2003
|
+
*/
|
2004
|
+
H.Series.prototype.getGuideBox = function (points) {
|
2005
|
+
var chart = this.chart,
|
2006
|
+
minX = Infinity,
|
2007
|
+
maxX = -Infinity,
|
2008
|
+
minY = Infinity,
|
2009
|
+
maxY = -Infinity,
|
2010
|
+
changed;
|
2011
|
+
|
2012
|
+
// Find bounding box of all points
|
2013
|
+
points.forEach(function (point) {
|
2014
|
+
var bBox = point.graphic && point.graphic.getBBox() || point.shapeArgs;
|
2015
|
+
|
2016
|
+
if (bBox && (bBox.width || bBox.height || bBox.x || bBox.y)) {
|
2017
|
+
changed = true;
|
2018
|
+
minX = Math.min(bBox.x, minX);
|
2019
|
+
maxX = Math.max(bBox.x + bBox.width, maxX);
|
2020
|
+
minY = Math.min(bBox.y, minY);
|
2021
|
+
maxY = Math.max(bBox.y + bBox.height, maxY);
|
2022
|
+
}
|
2023
|
+
});
|
2024
|
+
|
2025
|
+
return changed ? chart.renderer.rect(
|
2026
|
+
minX,
|
2027
|
+
minY,
|
2028
|
+
maxX - minX,
|
2029
|
+
maxY - minY
|
2030
|
+
) : chart.renderer.g();
|
2031
|
+
};
|
2032
|
+
|
2033
|
+
|
2034
|
+
/**
|
2035
|
+
* On point mouse out. Hide drag handles, depending on state.
|
2036
|
+
*
|
2037
|
+
* @private
|
2038
|
+
* @function mouseOut
|
2039
|
+
*
|
2040
|
+
* @param {Highcharts.Point} point
|
2041
|
+
* The point mousing out of.
|
2042
|
+
*/
|
2043
|
+
function mouseOut(point) {
|
2044
|
+
var chart = point.series && point.series.chart,
|
2045
|
+
dragDropData = chart && chart.dragDropData;
|
2046
|
+
|
2047
|
+
if (
|
2048
|
+
chart &&
|
2049
|
+
chart.dragHandles &&
|
2050
|
+
!(
|
2051
|
+
dragDropData &&
|
2052
|
+
(
|
2053
|
+
dragDropData.isDragging &&
|
2054
|
+
dragDropData.draggedPastSensitivity ||
|
2055
|
+
dragDropData.isHoveringHandle === point.id
|
2056
|
+
)
|
2057
|
+
)
|
2058
|
+
) {
|
2059
|
+
chart.hideDragHandles();
|
2060
|
+
}
|
2061
|
+
}
|
2062
|
+
|
2063
|
+
|
2064
|
+
/**
|
2065
|
+
* Mouseout on resize handle. Handle states, and possibly run mouseOut on point.
|
2066
|
+
*
|
2067
|
+
* @private
|
2068
|
+
* @function onResizeHandleMouseOut
|
2069
|
+
*
|
2070
|
+
* @param {Highcharts.Point} point
|
2071
|
+
* The point mousing out of.
|
2072
|
+
*/
|
2073
|
+
function onResizeHandleMouseOut(point) {
|
2074
|
+
var chart = point.series.chart;
|
2075
|
+
|
2076
|
+
if (
|
2077
|
+
chart.dragDropData &&
|
2078
|
+
point.id === chart.dragDropData.isHoveringHandle
|
2079
|
+
) {
|
2080
|
+
delete chart.dragDropData.isHoveringHandle;
|
2081
|
+
}
|
2082
|
+
if (!chart.hoverPoint) {
|
2083
|
+
mouseOut(point);
|
2084
|
+
}
|
2085
|
+
}
|
2086
|
+
|
2087
|
+
|
2088
|
+
/**
|
2089
|
+
* Mousedown on resize handle. Init a drag if the conditions are right.
|
2090
|
+
*
|
2091
|
+
* @private
|
2092
|
+
* @function onResizeHandleMouseDown
|
2093
|
+
*
|
2094
|
+
* @param {global.Event} e
|
2095
|
+
* The mousedown event.
|
2096
|
+
*
|
2097
|
+
* @param {Highcharts.Point} point
|
2098
|
+
* The point mousing down on.
|
2099
|
+
*
|
2100
|
+
* @param {string} updateProp
|
2101
|
+
* The data property this resize handle is attached to for this point.
|
2102
|
+
*/
|
2103
|
+
function onResizeHandleMouseDown(e, point, updateProp) {
|
2104
|
+
var chart = point.series.chart;
|
2105
|
+
|
2106
|
+
// Ignore if zoom/pan key is pressed
|
2107
|
+
if (chart.zoomOrPanKeyPressed(e)) {
|
2108
|
+
return;
|
2109
|
+
}
|
2110
|
+
|
2111
|
+
// Prevent zooming
|
2112
|
+
chart.mouseIsDown = false;
|
2113
|
+
|
2114
|
+
// We started a drag
|
2115
|
+
initDragDrop(e, point);
|
2116
|
+
chart.dragDropData.updateProp = e.updateProp = updateProp;
|
2117
|
+
point.firePointEvent('dragStart', e);
|
2118
|
+
|
2119
|
+
// Prevent default to avoid point click for dragging too
|
2120
|
+
e.stopPropagation();
|
2121
|
+
e.preventDefault();
|
2122
|
+
}
|
2123
|
+
|
2124
|
+
|
2125
|
+
/**
|
2126
|
+
* Render drag handles on a point - depending on which handles are enabled - and
|
2127
|
+
* attach events to them.
|
2128
|
+
*
|
2129
|
+
* @private
|
2130
|
+
* @function Highcharts.Point#showDragHandles
|
2131
|
+
*/
|
2132
|
+
H.Point.prototype.showDragHandles = function () {
|
2133
|
+
var point = this,
|
2134
|
+
series = point.series,
|
2135
|
+
chart = series.chart,
|
2136
|
+
renderer = chart.renderer,
|
2137
|
+
options = merge(series.options.dragDrop, point.options.dragDrop);
|
2138
|
+
|
2139
|
+
// Go through each updateProp and see if we are supposed to create a handle
|
2140
|
+
// for it.
|
2141
|
+
objectEach(series.dragDropProps, function (val, key) {
|
2142
|
+
var handleOptions = merge(
|
2143
|
+
defaultDragHandleOptions,
|
2144
|
+
val.handleOptions,
|
2145
|
+
options.dragHandle
|
2146
|
+
),
|
2147
|
+
handleAttrs = {
|
2148
|
+
className: handleOptions.className,
|
2149
|
+
'stroke-width': handleOptions.lineWidth,
|
2150
|
+
fill: handleOptions.color,
|
2151
|
+
stroke: handleOptions.lineColor
|
2152
|
+
},
|
2153
|
+
pathFormatter = handleOptions.pathFormatter || val.handleFormatter,
|
2154
|
+
positioner = val.handlePositioner,
|
2155
|
+
pos,
|
2156
|
+
handle,
|
2157
|
+
handleSide,
|
2158
|
+
path,
|
2159
|
+
// Run validation function on whether or not we allow individual
|
2160
|
+
// updating of this prop.
|
2161
|
+
validate = val.validateIndividualDrag ?
|
2162
|
+
val.validateIndividualDrag(point) : true;
|
2163
|
+
|
2164
|
+
if (
|
2165
|
+
val.resize &&
|
2166
|
+
validate &&
|
2167
|
+
val.resizeSide &&
|
2168
|
+
pathFormatter &&
|
2169
|
+
(
|
2170
|
+
options['draggable' + val.axis.toUpperCase()] ||
|
2171
|
+
options[val.optionName]
|
2172
|
+
) &&
|
2173
|
+
options[val.optionName] !== false
|
2174
|
+
) {
|
2175
|
+
|
2176
|
+
// Create group if it doesn't exist
|
2177
|
+
if (!chart.dragHandles) {
|
2178
|
+
chart.dragHandles = {
|
2179
|
+
group: renderer.g('drag-drop-handles')
|
2180
|
+
.add(series.markerGroup || series.group)
|
2181
|
+
};
|
2182
|
+
}
|
2183
|
+
|
2184
|
+
// Store which point this is
|
2185
|
+
chart.dragHandles.point = point.id;
|
2186
|
+
|
2187
|
+
// Find position and path of handle
|
2188
|
+
pos = positioner(point);
|
2189
|
+
handleAttrs.d = path = pathFormatter(point);
|
2190
|
+
handleSide = typeof val.resizeSide === 'function' ?
|
2191
|
+
val.resizeSide(point.options, point) : val.resizeSide;
|
2192
|
+
if (!path || pos.x < 0 || pos.y < 0) {
|
2193
|
+
return;
|
2194
|
+
}
|
2195
|
+
|
2196
|
+
// If cursor is not set explicitly, use axis direction
|
2197
|
+
handleAttrs.cursor = handleOptions.cursor ||
|
2198
|
+
(val.axis === 'x') !== !!chart.inverted ?
|
2199
|
+
'ew-resize' : 'ns-resize';
|
2200
|
+
|
2201
|
+
// Create and add the handle element if it doesn't exist
|
2202
|
+
handle = chart.dragHandles[handleSide];
|
2203
|
+
if (!handle) {
|
2204
|
+
handle = chart.dragHandles[handleSide] = renderer
|
2205
|
+
.path()
|
2206
|
+
.add(chart.dragHandles.group);
|
2207
|
+
}
|
2208
|
+
|
2209
|
+
// Move and update handle
|
2210
|
+
handle.translate(pos.x, pos.y).attr(handleAttrs);
|
2211
|
+
|
2212
|
+
// Add events
|
2213
|
+
addEvents(
|
2214
|
+
handle.element,
|
2215
|
+
['touchstart', 'mousedown'],
|
2216
|
+
function (e) {
|
2217
|
+
onResizeHandleMouseDown(
|
2218
|
+
getNormalizedEvent(e, chart), point, key
|
2219
|
+
);
|
2220
|
+
}
|
2221
|
+
);
|
2222
|
+
addEvent(chart.dragHandles.group.element, 'mouseover', function () {
|
2223
|
+
chart.dragDropData = chart.dragDropData || {};
|
2224
|
+
chart.dragDropData.isHoveringHandle = point.id;
|
2225
|
+
});
|
2226
|
+
addEvents(
|
2227
|
+
chart.dragHandles.group.element,
|
2228
|
+
['touchend', 'mouseout'],
|
2229
|
+
function () {
|
2230
|
+
onResizeHandleMouseOut(point);
|
2231
|
+
}
|
2232
|
+
);
|
2233
|
+
}
|
2234
|
+
});
|
2235
|
+
};
|
2236
|
+
|
2237
|
+
|
2238
|
+
/**
|
2239
|
+
* Remove the chart's drag handles if they exist.
|
2240
|
+
*
|
2241
|
+
* @private
|
2242
|
+
* @function Highcharts.Chart#hideDragHandles
|
2243
|
+
*/
|
2244
|
+
H.Chart.prototype.hideDragHandles = function () {
|
2245
|
+
var chart = this;
|
2246
|
+
|
2247
|
+
if (chart.dragHandles) {
|
2248
|
+
objectEach(chart.dragHandles, function (val, key) {
|
2249
|
+
if (key !== 'group' && val.destroy) {
|
2250
|
+
val.destroy();
|
2251
|
+
}
|
2252
|
+
});
|
2253
|
+
if (chart.dragHandles.group && chart.dragHandles.group.destroy) {
|
2254
|
+
chart.dragHandles.group.destroy();
|
2255
|
+
}
|
2256
|
+
delete chart.dragHandles;
|
2257
|
+
}
|
2258
|
+
};
|
2259
|
+
|
2260
|
+
|
2261
|
+
/**
|
2262
|
+
* Utility function to count the number of props in an object.
|
2263
|
+
*
|
2264
|
+
* @private
|
2265
|
+
* @function countProps
|
2266
|
+
*
|
2267
|
+
* @param {object} object
|
2268
|
+
* The object to count.
|
2269
|
+
*
|
2270
|
+
* @return {number}
|
2271
|
+
* Number of own properties on the object.
|
2272
|
+
*/
|
2273
|
+
function countProps(object) {
|
2274
|
+
var count = 0;
|
2275
|
+
|
2276
|
+
for (var p in object) {
|
2277
|
+
if (object.hasOwnProperty(p)) {
|
2278
|
+
count++;
|
2279
|
+
}
|
2280
|
+
}
|
2281
|
+
return count;
|
2282
|
+
}
|
2283
|
+
|
2284
|
+
|
2285
|
+
/**
|
2286
|
+
* Utility function to get the value of the first prop of an object. (Note that
|
2287
|
+
* the order of keys in an object is usually not guaranteed.)
|
2288
|
+
*
|
2289
|
+
* @private
|
2290
|
+
* @function getFirstProp
|
2291
|
+
*
|
2292
|
+
* @param {object} object
|
2293
|
+
* The object to count.
|
2294
|
+
*
|
2295
|
+
* @return {*}
|
2296
|
+
* Value of the first prop in the object.
|
2297
|
+
*/
|
2298
|
+
function getFirstProp(object) {
|
2299
|
+
for (var p in object) {
|
2300
|
+
if (object.hasOwnProperty(p)) {
|
2301
|
+
return object[p];
|
2302
|
+
}
|
2303
|
+
}
|
2304
|
+
}
|
2305
|
+
|
2306
|
+
|
2307
|
+
/**
|
2308
|
+
* Mouseover on a point. Show drag handles if the conditions are right.
|
2309
|
+
*
|
2310
|
+
* @private
|
2311
|
+
* @function mouseOver
|
2312
|
+
*
|
2313
|
+
* @param {Highcharts.Point} point
|
2314
|
+
* The point mousing over.
|
2315
|
+
*/
|
2316
|
+
function mouseOver(point) {
|
2317
|
+
var series = point.series,
|
2318
|
+
chart = series && series.chart,
|
2319
|
+
dragDropData = chart && chart.dragDropData;
|
2320
|
+
|
2321
|
+
if (
|
2322
|
+
chart &&
|
2323
|
+
!(
|
2324
|
+
dragDropData &&
|
2325
|
+
dragDropData.isDragging && // Ignore if dragging a point
|
2326
|
+
dragDropData.draggedPastSensitivity
|
2327
|
+
) &&
|
2328
|
+
!chart.isDragDropAnimating && // Ignore if animating
|
2329
|
+
series.options.dragDrop && // No need to compute handles without this
|
2330
|
+
!(
|
2331
|
+
chart.options &&
|
2332
|
+
chart.options.chart &&
|
2333
|
+
chart.options.chart.options3d // No 3D support
|
2334
|
+
)
|
2335
|
+
) {
|
2336
|
+
// Hide the handles if they exist on another point already
|
2337
|
+
if (chart.dragHandles) {
|
2338
|
+
chart.hideDragHandles();
|
2339
|
+
}
|
2340
|
+
point.showDragHandles();
|
2341
|
+
}
|
2342
|
+
}
|
2343
|
+
|
2344
|
+
|
2345
|
+
/**
|
2346
|
+
* On container mouse move. Handle drag sensitivity and fire drag event.
|
2347
|
+
*
|
2348
|
+
* @private
|
2349
|
+
* @function mouseMove
|
2350
|
+
*
|
2351
|
+
* @param {global.Event} e
|
2352
|
+
* The mouse move event.
|
2353
|
+
*
|
2354
|
+
* @param {Highcharts.Chart} chart
|
2355
|
+
* The chart we are moving across.
|
2356
|
+
*/
|
2357
|
+
function mouseMove(e, chart) {
|
2358
|
+
// Ignore if zoom/pan key is pressed
|
2359
|
+
if (chart.zoomOrPanKeyPressed(e)) {
|
2360
|
+
return;
|
2361
|
+
}
|
2362
|
+
|
2363
|
+
var dragDropData = chart.dragDropData,
|
2364
|
+
point,
|
2365
|
+
seriesDragDropOpts,
|
2366
|
+
newPoints,
|
2367
|
+
numNewPoints = 0,
|
2368
|
+
newPoint;
|
2369
|
+
|
2370
|
+
if (dragDropData && dragDropData.isDragging) {
|
2371
|
+
point = dragDropData.point;
|
2372
|
+
seriesDragDropOpts = point.series.options.dragDrop;
|
2373
|
+
|
2374
|
+
// No tooltip for dragging
|
2375
|
+
e.preventDefault();
|
2376
|
+
|
2377
|
+
// Update sensitivity test if not passed yet
|
2378
|
+
if (!dragDropData.draggedPastSensitivity) {
|
2379
|
+
dragDropData.draggedPastSensitivity = hasDraggedPastSensitivity(
|
2380
|
+
e, chart, pick(
|
2381
|
+
point.options.dragDrop &&
|
2382
|
+
point.options.dragDrop.dragSensitivity,
|
2383
|
+
seriesDragDropOpts &&
|
2384
|
+
seriesDragDropOpts.dragSensitivity,
|
2385
|
+
defaultDragSensitivity
|
2386
|
+
)
|
2387
|
+
);
|
2388
|
+
}
|
2389
|
+
|
2390
|
+
// If we have dragged past dragSensitivity, run the mousemove handler
|
2391
|
+
// for dragging
|
2392
|
+
if (dragDropData.draggedPastSensitivity) {
|
2393
|
+
// Find the new point values from the moving
|
2394
|
+
dragDropData.newPoints = getNewPoints(dragDropData, e);
|
2395
|
+
|
2396
|
+
// If we are only dragging one point, add it to the event
|
2397
|
+
newPoints = dragDropData.newPoints;
|
2398
|
+
numNewPoints = countProps(newPoints);
|
2399
|
+
newPoint = numNewPoints === 1 ?
|
2400
|
+
getFirstProp(newPoints) :
|
2401
|
+
null;
|
2402
|
+
|
2403
|
+
// Run the handler
|
2404
|
+
point.firePointEvent('drag', {
|
2405
|
+
origin: dragDropData.origin,
|
2406
|
+
newPoints: dragDropData.newPoints,
|
2407
|
+
newPoint: newPoint && newPoint.newValues,
|
2408
|
+
newPointId: newPoint && newPoint.point.id,
|
2409
|
+
numNewPoints: numNewPoints,
|
2410
|
+
chartX: e.chartX,
|
2411
|
+
chartY: e.chartY
|
2412
|
+
}, function () {
|
2413
|
+
dragMove(e, point);
|
2414
|
+
});
|
2415
|
+
}
|
2416
|
+
}
|
2417
|
+
}
|
2418
|
+
|
2419
|
+
|
2420
|
+
/**
|
2421
|
+
* On container mouse up. Fire drop event and reset state.
|
2422
|
+
*
|
2423
|
+
* @private
|
2424
|
+
* @function mouseUp
|
2425
|
+
*
|
2426
|
+
* @param {global.Event} e
|
2427
|
+
* The mouse up event.
|
2428
|
+
*
|
2429
|
+
* @param {Highcharts.Chart} chart
|
2430
|
+
* The chart we were dragging in.
|
2431
|
+
*/
|
2432
|
+
function mouseUp(e, chart) {
|
2433
|
+
var dragDropData = chart.dragDropData;
|
2434
|
+
|
2435
|
+
if (
|
2436
|
+
dragDropData &&
|
2437
|
+
dragDropData.isDragging &&
|
2438
|
+
dragDropData.draggedPastSensitivity
|
2439
|
+
) {
|
2440
|
+
var point = dragDropData.point,
|
2441
|
+
newPoints = dragDropData.newPoints,
|
2442
|
+
numNewPoints = countProps(newPoints),
|
2443
|
+
newPoint = numNewPoints === 1 ?
|
2444
|
+
getFirstProp(newPoints) :
|
2445
|
+
null;
|
2446
|
+
|
2447
|
+
// Hide the drag handles
|
2448
|
+
if (chart.dragHandles) {
|
2449
|
+
chart.hideDragHandles();
|
2450
|
+
}
|
2451
|
+
|
2452
|
+
// Prevent default action
|
2453
|
+
e.preventDefault();
|
2454
|
+
chart.cancelClick = true;
|
2455
|
+
|
2456
|
+
// Fire the event, with a default handler that updates the points
|
2457
|
+
|
2458
|
+
point.firePointEvent('drop', {
|
2459
|
+
origin: dragDropData.origin,
|
2460
|
+
chartX: e.chartX,
|
2461
|
+
chartY: e.chartY,
|
2462
|
+
newPoints: newPoints,
|
2463
|
+
numNewPoints: numNewPoints,
|
2464
|
+
newPoint: newPoint && newPoint.newValues,
|
2465
|
+
newPointId: newPoint && newPoint.point.id
|
2466
|
+
}, function () {
|
2467
|
+
updatePoints(chart);
|
2468
|
+
});
|
2469
|
+
}
|
2470
|
+
|
2471
|
+
// Reset
|
2472
|
+
delete chart.dragDropData;
|
2473
|
+
|
2474
|
+
// Clean up the drag guide box if it exists. This is always added on
|
2475
|
+
// drag start, even if user is overriding events.
|
2476
|
+
if (chart.dragGuideBox) {
|
2477
|
+
chart.dragGuideBox.destroy();
|
2478
|
+
delete chart.dragGuideBox;
|
2479
|
+
}
|
2480
|
+
}
|
2481
|
+
|
2482
|
+
|
2483
|
+
/**
|
2484
|
+
* On container mouse down. Init dragdrop if conditions are right.
|
2485
|
+
*
|
2486
|
+
* @private
|
2487
|
+
* @function mouseDown
|
2488
|
+
*
|
2489
|
+
* @param {global.Event} e
|
2490
|
+
* The mouse down event.
|
2491
|
+
*
|
2492
|
+
* @param {Highcharts.Chart} chart
|
2493
|
+
* The chart we are clicking.
|
2494
|
+
*/
|
2495
|
+
function mouseDown(e, chart) {
|
2496
|
+
var dragPoint = chart.hoverPoint,
|
2497
|
+
dragDropOptions = H.merge(
|
2498
|
+
dragPoint.series.options.dragDrop,
|
2499
|
+
dragPoint.options.dragDrop
|
2500
|
+
),
|
2501
|
+
draggableX = dragDropOptions.draggableX || false,
|
2502
|
+
draggableY = dragDropOptions.draggableY || false;
|
2503
|
+
|
2504
|
+
// Reset cancel click
|
2505
|
+
chart.cancelClick = false;
|
2506
|
+
|
2507
|
+
// Ignore if option is disable for the point
|
2508
|
+
if (!(draggableX || draggableY)) {
|
2509
|
+
return;
|
2510
|
+
}
|
2511
|
+
|
2512
|
+
// Ignore if zoom/pan key is pressed
|
2513
|
+
if (chart.zoomOrPanKeyPressed(e)) {
|
2514
|
+
return;
|
2515
|
+
}
|
2516
|
+
|
2517
|
+
// If we somehow get a mousedown event while we are dragging, cancel
|
2518
|
+
if (chart.dragDropData && chart.dragDropData.isDragging) {
|
2519
|
+
mouseUp(e, chart);
|
2520
|
+
return;
|
2521
|
+
}
|
2522
|
+
|
2523
|
+
// If this point is movable, start dragging it
|
2524
|
+
if (dragPoint && isPointMovable(dragPoint)) {
|
2525
|
+
chart.mouseIsDown = false; // Prevent zooming
|
2526
|
+
initDragDrop(e, dragPoint);
|
2527
|
+
dragPoint.firePointEvent('dragStart', e);
|
2528
|
+
}
|
2529
|
+
}
|
2530
|
+
|
2531
|
+
|
2532
|
+
// Point hover event. We use a short timeout due to issues with coordinating
|
2533
|
+
// point mouseover/out events on dragHandles and points. Particularly arearange
|
2534
|
+
// series are finicky since the markers are not individual points. This logic
|
2535
|
+
// should preferably be improved in the future. Notice that the mouseOut event
|
2536
|
+
// below must have a shorter timeout to ensure event order.
|
2537
|
+
addEvent(H.Point, 'mouseOver', function () {
|
2538
|
+
var point = this;
|
2539
|
+
|
2540
|
+
setTimeout(function () {
|
2541
|
+
mouseOver(point);
|
2542
|
+
}, 12);
|
2543
|
+
});
|
2544
|
+
|
2545
|
+
|
2546
|
+
// Point mouseleave event. See above function for explanation of the timeout.
|
2547
|
+
addEvent(H.Point, 'mouseOut', function () {
|
2548
|
+
var point = this;
|
2549
|
+
|
2550
|
+
setTimeout(function () {
|
2551
|
+
if (point.series) {
|
2552
|
+
mouseOut(point);
|
2553
|
+
}
|
2554
|
+
}, 10);
|
2555
|
+
});
|
2556
|
+
|
2557
|
+
|
2558
|
+
// Hide drag handles on a point if it is removed
|
2559
|
+
addEvent(H.Point, 'remove', function () {
|
2560
|
+
var chart = this.series.chart,
|
2561
|
+
dragHandles = chart.dragHandles;
|
2562
|
+
|
2563
|
+
if (dragHandles && dragHandles.point === this.id) {
|
2564
|
+
chart.hideDragHandles();
|
2565
|
+
}
|
2566
|
+
});
|
2567
|
+
|
2568
|
+
|
2569
|
+
/**
|
2570
|
+
* Check whether the zoomKey or panKey is pressed.
|
2571
|
+
*
|
2572
|
+
* @private
|
2573
|
+
* @function Highcharts.Chart#zoomOrPanKeyPressed
|
2574
|
+
*
|
2575
|
+
* @param {global.Event} e
|
2576
|
+
* A mouse event.
|
2577
|
+
*
|
2578
|
+
* @return {boolean}
|
2579
|
+
* True if the zoom or pan keys are pressed. False otherwise.
|
2580
|
+
*/
|
2581
|
+
H.Chart.prototype.zoomOrPanKeyPressed = function (e) {
|
2582
|
+
// Check whether the panKey and zoomKey are set in chart.userOptions
|
2583
|
+
var chartOptions = this.userOptions.chart || {},
|
2584
|
+
panKey = chartOptions.panKey && chartOptions.panKey + 'Key',
|
2585
|
+
zoomKey = chartOptions.zoomKey && chartOptions.zoomKey + 'Key';
|
2586
|
+
|
2587
|
+
return (e[zoomKey] || e[panKey]);
|
2588
|
+
};
|
2589
|
+
|
2590
|
+
|
2591
|
+
/**
|
2592
|
+
* Add events to document and chart if the chart is draggable.
|
2593
|
+
*
|
2594
|
+
* @private
|
2595
|
+
* @function addDragDropEvents
|
2596
|
+
*
|
2597
|
+
* @param {Highcharts.Chart} chart
|
2598
|
+
* The chart to add events to.
|
2599
|
+
*/
|
2600
|
+
function addDragDropEvents(chart) {
|
2601
|
+
var container = chart.container,
|
2602
|
+
doc = H.doc;
|
2603
|
+
|
2604
|
+
// Only enable if we have a draggable chart
|
2605
|
+
if (isChartDraggable(chart)) {
|
2606
|
+
addEvents(container, ['mousedown', 'touchstart'], function (e) {
|
2607
|
+
mouseDown(getNormalizedEvent(e, chart), chart);
|
2608
|
+
});
|
2609
|
+
addEvents(container, ['mousemove', 'touchmove'], function (e) {
|
2610
|
+
mouseMove(getNormalizedEvent(e, chart), chart);
|
2611
|
+
});
|
2612
|
+
addEvent(container, 'mouseleave', function (e) {
|
2613
|
+
mouseUp(getNormalizedEvent(e, chart), chart);
|
2614
|
+
});
|
2615
|
+
chart.unbindDragDropMouseUp = addEvents(
|
2616
|
+
doc,
|
2617
|
+
['mouseup', 'touchend'],
|
2618
|
+
function (e) {
|
2619
|
+
mouseUp(getNormalizedEvent(e, chart), chart);
|
2620
|
+
}
|
2621
|
+
);
|
2622
|
+
|
2623
|
+
// Add flag to avoid doing this again
|
2624
|
+
chart.hasAddedDragDropEvents = true;
|
2625
|
+
|
2626
|
+
// Add cleanup to make sure we don't pollute document
|
2627
|
+
addEvent(chart, 'destroy', function () {
|
2628
|
+
if (chart.unbindDragDropMouseUp) {
|
2629
|
+
chart.unbindDragDropMouseUp();
|
2630
|
+
}
|
2631
|
+
});
|
2632
|
+
}
|
2633
|
+
}
|
2634
|
+
|
2635
|
+
|
2636
|
+
// Add event listener to Chart.render that checks whether or not we should add
|
2637
|
+
// dragdrop.
|
2638
|
+
addEvent(H.Chart, 'render', function () {
|
2639
|
+
// If we don't have dragDrop events, see if we should add them
|
2640
|
+
if (!this.hasAddedDragDropEvents) {
|
2641
|
+
addDragDropEvents(this);
|
2642
|
+
}
|
2643
|
+
});
|
2644
|
+
|
2645
|
+
}(Highcharts));
|
2646
|
+
return (function () {
|
2647
|
+
|
2648
|
+
|
2649
|
+
}());
|
2650
|
+
}));
|