highcharts 8.1.0 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +12 -0
- package/css/highcharts.scss +12 -0
- package/css/themes/dark-unica.css +12 -0
- package/css/themes/grid-light.css +12 -0
- package/css/themes/sand-signika.css +12 -0
- package/es-modules/{modules/accessibility/a11y-i18n.js → Accessibility/A11yI18n.js} +2 -2
- package/es-modules/{modules/accessibility/accessibility.js → Accessibility/Accessibility.js} +24 -21
- package/es-modules/{modules/accessibility → Accessibility}/AccessibilityComponent.js +73 -17
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/AnnotationsA11y.js +2 -4
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/ContainerComponent.js +8 -9
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/InfoRegionsComponent.js +9 -12
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/LegendComponent.js +60 -22
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/MenuComponent.js +4 -11
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/RangeSelectorComponent.js +8 -7
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +171 -0
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/NewDataAnnouncer.js +8 -7
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesComponent.js +5 -5
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesDescriber.js +6 -6
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesKeyboardNavigation.js +22 -20
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/ZoomComponent.js +9 -8
- package/es-modules/{modules/accessibility/focusBorder.js → Accessibility/FocusBorder.js} +13 -10
- package/es-modules/{modules/accessibility/high-contrast-mode.js → Accessibility/HighContrastMode.js} +3 -2
- package/es-modules/{modules/accessibility/high-contrast-theme.js → Accessibility/HighContrastTheme.js} +0 -0
- package/es-modules/{modules/accessibility → Accessibility}/KeyboardNavigation.js +35 -22
- package/es-modules/{modules/accessibility → Accessibility}/KeyboardNavigationHandler.js +1 -1
- package/es-modules/{modules/accessibility/options/deprecatedOptions.js → Accessibility/Options/DeprecatedOptions.js} +10 -20
- package/es-modules/{modules/accessibility/options/langOptions.js → Accessibility/Options/LangOptions.js} +1 -1
- package/es-modules/{modules/accessibility/options/options.js → Accessibility/Options/Options.js} +1 -2
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/Announcer.js +2 -2
- package/es-modules/{modules/accessibility/utils/chartUtilities.js → Accessibility/Utils/ChartUtilities.js} +8 -9
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/DOMElementProvider.js +5 -5
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/EventProvider.js +2 -2
- package/es-modules/{modules/accessibility/utils/htmlUtilities.js → Accessibility/Utils/HTMLUtilities.js} +3 -4
- package/es-modules/Core/Animation/AnimationUtilities.js +193 -0
- package/es-modules/Core/Animation/Fx.js +378 -0
- package/es-modules/{parts → Core/Axis}/Axis.js +153 -89
- package/es-modules/{parts-3d → Core/Axis}/Axis3D.js +12 -7
- package/es-modules/{modules/broken-axis.src.js → Core/Axis/BrokenAxis.js} +6 -8
- package/es-modules/{parts-map → Core/Axis}/ColorAxis.js +28 -31
- package/es-modules/{parts → Core/Axis}/DateTimeAxis.js +1 -1
- package/es-modules/{parts-gantt → Core/Axis}/GridAxis.js +136 -39
- package/es-modules/{parts-more → Core/Axis}/HiddenAxis.js +0 -0
- package/es-modules/{parts → Core/Axis}/LogarithmicAxis.js +1 -1
- package/es-modules/{parts-map → Core/Axis}/MapAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/NavigatorAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/OrdinalAxis.js +241 -224
- package/es-modules/{parts → Core/Axis}/PlotLineOrBand.js +24 -15
- package/es-modules/{parts-more → Core/Axis}/RadialAxis.js +34 -27
- package/es-modules/{parts → Core/Axis}/ScrollbarAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/StackingAxis.js +11 -2
- package/es-modules/{parts → Core/Axis}/Tick.js +14 -14
- package/es-modules/{parts-3d → Core/Axis}/Tick3D.js +1 -1
- package/es-modules/{parts-gantt → Core/Axis}/TreeGridAxis.js +81 -15
- package/es-modules/{parts-gantt → Core/Axis}/TreeGridTick.js +1 -1
- package/es-modules/{parts-3d → Core/Axis}/ZAxis.js +2 -2
- package/es-modules/{parts → Core/Chart}/Chart.js +225 -227
- package/es-modules/Core/Chart/Chart3D.js +1674 -0
- package/es-modules/{parts-gantt → Core/Chart}/GanttChart.js +13 -12
- package/es-modules/{parts → Core/Chart}/StockChart.js +26 -25
- package/es-modules/Core/Color/Color.js +419 -0
- package/es-modules/Core/Color/ColorType.js +9 -0
- package/es-modules/{parts → Core}/Color.js +1 -1
- package/es-modules/{parts → Core}/Dynamics.js +91 -61
- package/es-modules/{parts → Core}/Globals.js +9 -1
- package/es-modules/{parts → Core}/Interaction.js +27 -20
- package/es-modules/{parts → Core}/Legend.js +26 -11
- package/es-modules/{parts → Core}/MSPointer.js +2 -2
- package/es-modules/{parts → Core}/Navigator.js +24 -14
- package/es-modules/{parts → Core}/Options.js +157 -69
- package/es-modules/{parts → Core}/Pointer.js +50 -27
- package/es-modules/Core/Renderer/DOMElementType.js +9 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +220 -0
- package/es-modules/{parts/Html.js → Core/Renderer/HTML/HTMLRenderer.js} +16 -207
- package/es-modules/{parts → Core/Renderer/SVG}/SVGElement.js +186 -32
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +410 -0
- package/es-modules/{parts/SvgRenderer.js → Core/Renderer/SVG/SVGRenderer.js} +426 -886
- package/es-modules/{parts-3d/SVGRenderer.js → Core/Renderer/SVG/SVGRenderer3D.js} +31 -23
- package/es-modules/{parts → Core}/Responsive.js +24 -14
- package/es-modules/{parts → Core}/Scrollbar.js +5 -4
- package/es-modules/Core/Series/BaseSeries.js +157 -0
- package/es-modules/{parts/Series.js → Core/Series/CartesianSeries.js} +119 -55
- package/es-modules/{parts → Core/Series}/DataLabels.js +40 -36
- package/es-modules/{parts → Core/Series}/Point.js +8 -10
- package/es-modules/Core/Series/Series.js +158 -0
- package/es-modules/{parts-3d/Series.js → Core/Series/Series3D.js} +5 -3
- package/es-modules/{parts → Core}/Time.js +11 -133
- package/es-modules/{parts → Core}/Tooltip.js +30 -27
- package/es-modules/{parts → Core}/Utilities.js +103 -562
- package/es-modules/{mixins/ajax.js → Extensions/Ajax.js} +9 -4
- package/es-modules/{annotations/annotations.src.js → Extensions/Annotations/Annotations.js} +901 -709
- package/es-modules/{annotations → Extensions/Annotations}/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +117 -0
- package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +111 -0
- package/es-modules/{annotations/controllable → Extensions/Annotations/Controllables}/ControllableLabel.js +186 -146
- package/es-modules/{annotations/controllable → Extensions/Annotations/Controllables}/ControllablePath.js +81 -42
- package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +121 -0
- package/es-modules/{annotations/controllable/controllableMixin.js → Extensions/Annotations/Mixins/ControllableMixin.js} +8 -9
- package/es-modules/{annotations/eventEmitterMixin.js → Extensions/Annotations/Mixins/EventEmitterMixin.js} +7 -7
- package/es-modules/{annotations/controllable/markerMixin.js → Extensions/Annotations/Mixins/MarkerMixin.js} +10 -8
- package/es-modules/{annotations → Extensions/Annotations}/MockPoint.js +6 -6
- package/es-modules/{annotations/navigationBindings.js → Extensions/Annotations/NavigationBindings.js} +27 -16
- package/es-modules/{annotations/popup.js → Extensions/Annotations/Popup.js} +9 -9
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/BasicAnnotation.js +68 -20
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/CrookedLine.js +46 -19
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/ElliottWave.js +33 -12
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Fibonacci.js +54 -22
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +147 -0
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Measure.js +82 -52
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Pitchfork.js +69 -32
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Tunnel.js +58 -30
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/VerticalLine.js +64 -33
- package/es-modules/{parts-gantt → Extensions}/ArrowSymbols.js +9 -11
- package/es-modules/{modules/boost/boost.js → Extensions/Boost/Boost.js} +8 -8
- package/es-modules/{modules/boost/boost-attach.js → Extensions/Boost/BoostAttach.js} +10 -8
- package/es-modules/{modules/boost/boost-init.js → Extensions/Boost/BoostInit.js} +7 -6
- package/es-modules/{modules/boost/boost-options.js → Extensions/Boost/BoostOptions.js} +1 -1
- package/es-modules/{modules/boost/boost-overrides.js → Extensions/Boost/BoostOverrides.js} +14 -11
- package/es-modules/{modules/boost/boost-utils.js → Extensions/Boost/BoostUtils.js} +6 -6
- package/es-modules/{modules/boost/boostable-map.js → Extensions/Boost/BoostableMap.js} +1 -1
- package/es-modules/{modules/boost/boostables.js → Extensions/Boost/Boostables.js} +0 -0
- package/es-modules/{modules/boost/named-colors.js → Extensions/Boost/NamedColors.js} +1 -1
- package/es-modules/{modules/boost/wgl-renderer.js → Extensions/Boost/WGLRenderer.js} +9 -9
- package/es-modules/{modules/boost/wgl-shader.js → Extensions/Boost/WGLShader.js} +3 -4
- package/es-modules/{modules/boost/wgl-vbuffer.js → Extensions/Boost/WGLVBuffer.js} +0 -0
- package/es-modules/{modules/boost-canvas.src.js → Extensions/BoostCanvas.js} +13 -9
- package/es-modules/{parts-gantt/CurrentDateIndicator.js → Extensions/CurrentDateIndication.js} +5 -7
- package/es-modules/{modules/data.src.js → Extensions/Data.js} +14 -16
- package/es-modules/{parts → Extensions}/DataGrouping.js +12 -9
- package/es-modules/{modules/debugger.src.js → Extensions/Debugger.js} +6 -6
- package/es-modules/{mixins/download-url.js → Extensions/DownloadURL.js} +15 -7
- package/es-modules/{modules/drag-panes.src.js → Extensions/DragPanes.js} +6 -6
- package/es-modules/{modules/draggable-points.src.js → Extensions/DraggablePoints.js} +21 -32
- package/es-modules/{modules/drilldown.src.js → Extensions/Drilldown.js} +64 -43
- package/es-modules/{modules/export-data.src.js → Extensions/ExportData.js} +126 -26
- package/es-modules/{modules/exporting.src.js → Extensions/Exporting.js} +26 -12
- package/es-modules/{modules/full-screen.src.js → Extensions/FullScreen.js} +5 -3
- package/es-modules/{parts-map → Extensions}/GeoJSON.js +112 -7
- package/es-modules/{modules/marker-clusters.src.js → Extensions/MarkerClusters.js} +29 -39
- package/es-modules/{parts-3d/Math.js → Extensions/Math3D.js} +17 -9
- package/es-modules/{modules/no-data-to-display.src.js → Extensions/NoDataToDisplay.js} +14 -15
- package/es-modules/{modules/offline-exporting.src.js → Extensions/OfflineExporting.js} +39 -35
- package/es-modules/{modules/oldie.src.js → Extensions/Oldie/Oldie.js} +19 -12
- package/es-modules/{parts-3d → Extensions/Oldie}/VMLAxis3D.js +1 -1
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +46 -0
- package/es-modules/{modules/oldie-polyfills.src.js → Extensions/OldiePolyfills.js} +5 -0
- package/es-modules/{modules/overlapping-datalabels.src.js → Extensions/OverlappingDataLabels.js} +14 -13
- package/es-modules/{parts-more → Extensions}/Pane.js +13 -12
- package/es-modules/{modules/parallel-coordinates.src.js → Extensions/ParallelCoordinates.js} +140 -138
- package/es-modules/{modules/pattern-fill.src.js → Extensions/PatternFill.js} +23 -15
- package/es-modules/{parts-more → Extensions}/Polar.js +15 -12
- package/es-modules/{modules/price-indicator.src.js → Extensions/PriceIndication.js} +5 -3
- package/es-modules/{parts → Extensions}/RangeSelector.js +112 -79
- package/es-modules/{parts → Extensions}/ScrollablePlotArea.js +19 -9
- package/es-modules/{modules/series-label.src.js → Extensions/SeriesLabel.js} +14 -10
- package/es-modules/{modules/sonification/chartSonify.js → Extensions/Sonification/ChartSonify.js} +212 -41
- package/es-modules/{modules/sonification → Extensions/Sonification}/Earcon.js +3 -7
- package/es-modules/{modules/sonification → Extensions/Sonification}/Instrument.js +35 -11
- package/es-modules/{modules/sonification/instrumentDefinitions.js → Extensions/Sonification/InstrumentDefinitions.js} +1 -1
- package/es-modules/{modules/sonification/musicalFrequencies.js → Extensions/Sonification/MusicalFrequencies.js} +0 -0
- package/es-modules/Extensions/Sonification/Options.js +34 -0
- package/es-modules/{modules/sonification/pointSonify.js → Extensions/Sonification/PointSonify.js} +43 -28
- package/es-modules/{modules/sonification/sonification.js → Extensions/Sonification/Sonification.js} +16 -12
- package/es-modules/{modules/sonification → Extensions/Sonification}/Timeline.js +25 -6
- package/es-modules/{modules/sonification/utilities.js → Extensions/Sonification/Utilities.js} +8 -5
- package/es-modules/{parts → Extensions}/Stacking.js +57 -18
- package/es-modules/{modules/static-scale.src.js → Extensions/StaticScale.js} +4 -4
- package/es-modules/{themes/avocado.js → Extensions/Themes/Avocado.js} +5 -4
- package/es-modules/{themes/dark-blue.js → Extensions/Themes/DarkBlue.js} +4 -2
- package/es-modules/{themes/dark-green.js → Extensions/Themes/DarkGreen.js} +4 -2
- package/es-modules/{themes/dark-unica.js → Extensions/Themes/DarkUnica.js} +6 -6
- package/es-modules/{themes/gray.js → Extensions/Themes/Gray.js} +5 -4
- package/es-modules/{themes/grid.js → Extensions/Themes/Grid.js} +4 -2
- package/es-modules/{themes/grid-light.js → Extensions/Themes/GridLight.js} +4 -2
- package/es-modules/{themes/high-contrast-dark.js → Extensions/Themes/HighContrastDark.js} +5 -4
- package/es-modules/{themes/high-contrast-light.js → Extensions/Themes/HighContrastLight.js} +4 -2
- package/es-modules/{themes/sand-signika.js → Extensions/Themes/SandSignika.js} +4 -2
- package/es-modules/{themes/skies.js → Extensions/Themes/Skies.js} +5 -3
- package/es-modules/{themes/sunset.js → Extensions/Themes/Sunset.js} +5 -4
- package/es-modules/{parts-gantt/Pathfinder.js → Gantt/Connection.js} +41 -284
- package/es-modules/Gantt/Pathfinder.js +816 -0
- package/es-modules/Gantt/PathfinderAlgorithms.js +659 -0
- package/es-modules/{parts-gantt → Gantt}/Tree.js +1 -1
- package/es-modules/{parts-map → Maps}/Map.js +24 -15
- package/es-modules/{parts-map → Maps}/MapNavigation.js +4 -5
- package/es-modules/{parts-map → Maps}/MapPointer.js +2 -4
- package/es-modules/{mixins/centered-series.js → Mixins/CenteredSeries.js} +7 -5
- package/es-modules/{parts-map/ColorMapSeriesMixin.js → Mixins/ColorMapSeries.js} +10 -6
- package/es-modules/{parts-map/ColorSeriesMixin.js → Mixins/ColorSeries.js} +12 -4
- package/es-modules/{mixins/derived-series.js → Mixins/DerivedSeries.js} +3 -3
- package/es-modules/{mixins/draw-point.js → Mixins/DrawPoint.js} +6 -1
- package/es-modules/{mixins/geometry.js → Mixins/Geometry.js} +0 -0
- package/es-modules/{mixins/geometry-circles.js → Mixins/GeometryCircles.js} +2 -2
- package/es-modules/{mixins/indicator-required.js → Mixins/IndicatorRequired.js} +1 -1
- package/es-modules/{mixins/legend-symbol.js → Mixins/LegendSymbol.js} +6 -10
- package/es-modules/{mixins/multipe-lines.js → Mixins/MultipleLines.js} +2 -2
- package/es-modules/{mixins/navigation.js → Mixins/Navigation.js} +0 -0
- package/es-modules/{mixins/nelder-mead.js → Mixins/NelderMead.js} +2 -2
- package/es-modules/{mixins/nodes.js → Mixins/Nodes.js} +7 -5
- package/es-modules/{mixins/on-series.js → Mixins/OnSeries.js} +3 -2
- package/es-modules/{mixins/polygon.js → Mixins/Polygon.js} +2 -2
- package/es-modules/{mixins/reduce-array.js → Mixins/ReduceArray.js} +1 -1
- package/es-modules/{mixins/tree-series.js → Mixins/TreeSeries.js} +2 -2
- package/es-modules/{parts-more → Series}/AreaRangeSeries.js +75 -38
- package/es-modules/{parts → Series}/AreaSeries.js +43 -25
- package/es-modules/{parts-more → Series}/AreaSplineRangeSeries.js +47 -10
- package/es-modules/{parts → Series}/AreaSplineSeries.js +49 -10
- package/es-modules/{parts → Series}/BarSeries.js +2 -5
- package/es-modules/{modules/bellcurve.src.js → Series/BellcurveSeries.js} +47 -7
- package/es-modules/{parts-more → Series}/BoxPlotSeries.js +18 -13
- package/es-modules/{parts-more → Series/Bubble}/BubbleLegend.js +11 -9
- package/es-modules/{parts-more → Series/Bubble}/BubbleSeries.js +25 -27
- package/es-modules/{modules/bullet.src.js → Series/BulletSeries.js} +9 -8
- package/es-modules/{parts → Series}/CandlestickSeries.js +11 -8
- package/es-modules/{parts-3d/Column.js → Series/Column3DSeries.js} +108 -28
- package/es-modules/{parts-more → Series}/ColumnPyramidSeries.js +9 -9
- package/es-modules/{parts-more → Series}/ColumnRangeSeries.js +21 -18
- package/es-modules/{parts → Series}/ColumnSeries.js +119 -41
- package/es-modules/{modules/cylinder.src.js → Series/CylinderSeries.js} +14 -14
- package/es-modules/{modules/dependency-wheel.src.js → Series/DependencyWheelSeries.js} +14 -12
- package/es-modules/{modules/dotplot.src.js → Series/DotplotSeries.js} +7 -15
- package/es-modules/{modules/dumbbell.src.js → Series/DumbbellSeries.js} +16 -10
- package/es-modules/{parts-more → Series}/ErrorBarSeries.js +8 -8
- package/es-modules/{parts → Series}/FlagsSeries.js +18 -12
- package/es-modules/{modules/funnel3d.src.js → Series/Funnel3DSeries.js} +14 -16
- package/es-modules/{modules/funnel.src.js → Series/FunnelSeries.js} +16 -14
- package/es-modules/{parts-gantt → Series}/GanttSeries.js +21 -20
- package/es-modules/{parts-more → Series}/GaugeSeries.js +14 -12
- package/es-modules/{parts-map → Series}/HeatmapSeries.js +23 -16
- package/es-modules/{modules/histogram.src.js → Series/HistogramSeries.js} +13 -9
- package/es-modules/{modules/item-series.src.js → Series/ItemSeries.js} +22 -14
- package/es-modules/Series/LineSeries.js +13 -0
- package/es-modules/{modules/lollipop.src.js → Series/LollipopSeries.js} +34 -10
- package/es-modules/{parts-map → Series}/MapBubbleSeries.js +8 -9
- package/es-modules/{parts-map → Series}/MapLineSeries.js +5 -7
- package/es-modules/{parts-map → Series}/MapPointSeries.js +9 -8
- package/es-modules/{parts-map → Series}/MapSeries.js +22 -18
- package/es-modules/{modules/networkgraph/draggable-nodes.js → Series/Networkgraph/DraggableNodes.js} +15 -30
- package/es-modules/{modules/networkgraph/integrations.js → Series/Networkgraph/Integrations.js} +1 -1
- package/es-modules/{modules/networkgraph/layouts.js → Series/Networkgraph/Layouts.js} +43 -13
- package/es-modules/{modules/networkgraph/networkgraph.src.js → Series/Networkgraph/Networkgraph.js} +29 -23
- package/es-modules/{modules/networkgraph → Series/Networkgraph}/QuadTree.js +2 -2
- package/es-modules/{parts → Series}/OHLCSeries.js +5 -7
- package/es-modules/{modules/organization.src.js → Series/OrganizationSeries.js} +10 -7
- package/es-modules/{parts-more → Series}/PackedBubbleSeries.js +104 -28
- package/es-modules/{modules/pareto.src.js → Series/ParetoSeries.js} +10 -9
- package/es-modules/{parts-3d/Pie.js → Series/Pie3DSeries.js} +5 -4
- package/es-modules/{parts → Series}/PieSeries.js +66 -31
- package/es-modules/{parts-more → Series}/PolygonSeries.js +13 -13
- package/es-modules/{modules/pyramid3d.src.js → Series/Pyramid3DSeries.js} +5 -7
- package/es-modules/{modules/sankey.src.js → Series/SankeySeries.js} +23 -21
- package/es-modules/{parts-3d/Scatter.js → Series/Scatter3DSeries.js} +10 -9
- package/es-modules/{parts → Series}/ScatterSeries.js +15 -10
- package/es-modules/{modules/solid-gauge.src.js → Series/SolidGaugeSeries.js} +112 -78
- package/es-modules/{parts → Series}/SplineSeries.js +9 -7
- package/es-modules/{modules/streamgraph.src.js → Series/StreamgraphSeries.js} +42 -6
- package/es-modules/{modules/sunburst.src.js → Series/SunburstSeries.js} +20 -13
- package/es-modules/{modules/tilemap.src.js → Series/TilemapSeries.js} +12 -9
- package/es-modules/{modules/timeline.src.js → Series/TimelineSeries.js} +16 -11
- package/es-modules/{modules/treemap.src.js → Series/TreemapSeries.js} +47 -40
- package/es-modules/{modules/variable-pie.src.js → Series/VariablePieSeries.js} +11 -8
- package/es-modules/{modules/variwide.src.js → Series/VariwideSeries.js} +12 -10
- package/es-modules/{modules/vector.src.js → Series/VectorSeries.js} +11 -7
- package/es-modules/{modules/venn.src.js → Series/VennSeries.js} +29 -20
- package/es-modules/{parts-more → Series}/WaterfallSeries.js +145 -66
- package/es-modules/{modules/windbarb.src.js → Series/WindbarbSeries.js} +13 -9
- package/es-modules/{modules/wordcloud.src.js → Series/WordcloudSeries.js} +17 -13
- package/es-modules/{modules/xrange.src.js → Series/XRangeSeries.js} +16 -12
- package/es-modules/{indicators/acceleration-bands.src.js → Stock/Indicators/ABIndicator.js} +8 -8
- package/es-modules/{indicators/accumulation-distribution.src.js → Stock/Indicators/ADIndicator.js} +5 -4
- package/es-modules/{indicators/ao.src.js → Stock/Indicators/AOIndicator.js} +6 -5
- package/es-modules/{indicators/apo.src.js → Stock/Indicators/APOIndicator.js} +8 -8
- package/es-modules/{indicators/atr.src.js → Stock/Indicators/ATRIndicator.js} +6 -6
- package/es-modules/{indicators/aroon.src.js → Stock/Indicators/AroonIndicator.js} +7 -6
- package/es-modules/{indicators/aroon-oscillator.src.js → Stock/Indicators/AroonOscillatorIndicator.js} +8 -8
- package/es-modules/{indicators/bollinger-bands.src.js → Stock/Indicators/BBIndicator.js} +8 -8
- package/es-modules/{indicators/cci.src.js → Stock/Indicators/CCIIndicator.js} +5 -4
- package/es-modules/{indicators/cmf.src.js → Stock/Indicators/CMFIndicator.js} +3 -4
- package/es-modules/{indicators/chaikin.src.js → Stock/Indicators/ChaikinIndicator.js} +10 -9
- package/es-modules/{indicators/dema.src.js → Stock/Indicators/DEMAIndicator.js} +8 -8
- package/es-modules/{indicators/dpo.src.js → Stock/Indicators/DPOIndicator.js} +5 -4
- package/es-modules/{indicators/ema.src.js → Stock/Indicators/EMAIndicator.js} +4 -4
- package/es-modules/{indicators/ichimoku-kinko-hyo.src.js → Stock/Indicators/IKHIndicator.js} +23 -20
- package/es-modules/{indicators/keltner-channels.src.js → Stock/Indicators/KeltnerChannelsIndicator.js} +11 -8
- package/es-modules/{indicators/macd.src.js → Stock/Indicators/MACDIndicator.js} +9 -6
- package/es-modules/{indicators/mfi.src.js → Stock/Indicators/MFIIndicator.js} +5 -4
- package/es-modules/{indicators/momentum.src.js → Stock/Indicators/MomentumIndicator.js} +5 -4
- package/es-modules/{indicators/natr.src.js → Stock/Indicators/NATRIndicator.js} +4 -6
- package/es-modules/{indicators/price-channel.src.js → Stock/Indicators/PCIndicator.js} +9 -8
- package/es-modules/{indicators/ppo.src.js → Stock/Indicators/PPOIndicator.js} +8 -8
- package/es-modules/{indicators/psar.src.js → Stock/Indicators/PSARIndicator.js} +3 -4
- package/es-modules/{indicators/pivot-points.src.js → Stock/Indicators/PivotPointsIndicator.js} +6 -6
- package/es-modules/{indicators/price-envelopes.src.js → Stock/Indicators/PriceEnvelopesIndicator.js} +6 -6
- package/es-modules/{indicators/roc.src.js → Stock/Indicators/ROCIndicator.js} +5 -4
- package/es-modules/{indicators/rsi.src.js → Stock/Indicators/RSIIndicator.js} +5 -4
- package/es-modules/{indicators/regressions.src.js → Stock/Indicators/RegressionIndicators.js} +8 -7
- package/es-modules/{indicators/indicators.src.js → Stock/Indicators/SMAIndicator.js} +12 -8
- package/es-modules/{indicators/slow-stochastic.src.js → Stock/Indicators/SlowStochasticIndicator.js} +6 -8
- package/es-modules/{indicators/stochastic.src.js → Stock/Indicators/StochasticIndicator.js} +9 -9
- package/es-modules/{indicators/supertrend.src.js → Stock/Indicators/SupertrendIndicator.js} +8 -7
- package/es-modules/{indicators/tema.src.js → Stock/Indicators/TEMAIndicator.js} +8 -8
- package/es-modules/{indicators/trix.src.js → Stock/Indicators/TRIXIndicator.js} +8 -8
- package/es-modules/{indicators/trendline.src.js → Stock/Indicators/TrendLineIndicator.js} +5 -4
- package/es-modules/{indicators/volume-by-price.src.js → Stock/Indicators/VBPIndicator.js} +10 -7
- package/es-modules/{indicators/vwap.src.js → Stock/Indicators/VWAPIndicator.js} +5 -4
- package/es-modules/{indicators/wma.src.js → Stock/Indicators/WMAIndicator.js} +5 -4
- package/es-modules/{indicators/williams-r.src.js → Stock/Indicators/WilliamsRIndicator.js} +7 -6
- package/es-modules/{indicators/zigzag.src.js → Stock/Indicators/ZigzagIndicator.js} +5 -7
- package/es-modules/{modules/stock-tools-bindings.js → Stock/StockToolsBindings.js} +22 -7
- package/es-modules/{modules/stock-tools-gui.js → Stock/StockToolsGui.js} +17 -17
- package/es-modules/error-messages.js +7 -2
- package/es-modules/highcharts.src.js +19853 -0
- package/es-modules/masters/highcharts-3d.src.js +11 -12
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +15 -15
- package/es-modules/masters/highcharts.src.js +28 -27
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +2 -2
- package/es-modules/masters/indicators/accumulation-distribution.src.js +2 -2
- package/es-modules/masters/indicators/ao.src.js +2 -2
- package/es-modules/masters/indicators/apo.src.js +2 -2
- package/es-modules/masters/indicators/aroon-oscillator.src.js +2 -2
- package/es-modules/masters/indicators/aroon.src.js +2 -2
- package/es-modules/masters/indicators/atr.src.js +2 -2
- package/es-modules/masters/indicators/bollinger-bands.src.js +2 -2
- package/es-modules/masters/indicators/cci.src.js +2 -2
- package/es-modules/masters/indicators/chaikin.src.js +2 -2
- package/es-modules/masters/indicators/cmf.src.js +2 -2
- package/es-modules/masters/indicators/dema.src.js +2 -2
- package/es-modules/masters/indicators/dpo.src.js +2 -2
- package/es-modules/masters/indicators/ema.src.js +2 -2
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +2 -2
- package/es-modules/masters/indicators/indicators-all.src.js +41 -41
- package/es-modules/masters/indicators/indicators.src.js +2 -2
- package/es-modules/masters/indicators/keltner-channels.src.js +2 -2
- package/es-modules/masters/indicators/macd.src.js +2 -2
- package/es-modules/masters/indicators/mfi.src.js +2 -2
- package/es-modules/masters/indicators/momentum.src.js +2 -2
- package/es-modules/masters/indicators/natr.src.js +2 -2
- package/es-modules/masters/indicators/pivot-points.src.js +2 -2
- package/es-modules/masters/indicators/ppo.src.js +2 -2
- package/es-modules/masters/indicators/price-channel.src.js +2 -2
- package/es-modules/masters/indicators/price-envelopes.src.js +2 -2
- package/es-modules/masters/indicators/psar.src.js +2 -2
- package/es-modules/masters/indicators/regressions.src.js +2 -2
- package/es-modules/masters/indicators/roc.src.js +2 -2
- package/es-modules/masters/indicators/rsi.src.js +2 -2
- package/es-modules/masters/indicators/slow-stochastic.src.js +2 -2
- package/es-modules/masters/indicators/stochastic.src.js +2 -2
- package/es-modules/masters/indicators/supertrend.src.js +2 -2
- package/es-modules/masters/indicators/tema.src.js +2 -2
- package/es-modules/masters/indicators/trendline.src.js +2 -2
- package/es-modules/masters/indicators/trix.src.js +2 -2
- package/es-modules/masters/indicators/volume-by-price.src.js +2 -2
- package/es-modules/masters/indicators/vwap.src.js +2 -2
- package/es-modules/masters/indicators/williams-r.src.js +2 -2
- package/es-modules/masters/indicators/wma.src.js +2 -2
- package/es-modules/masters/indicators/zigzag.src.js +2 -2
- package/es-modules/masters/modules/accessibility.src.js +2 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +13 -13
- package/es-modules/masters/modules/annotations.src.js +4 -4
- package/es-modules/masters/modules/arrow-symbols.src.js +2 -2
- package/es-modules/masters/modules/boost-canvas.src.js +2 -2
- package/es-modules/masters/modules/boost.src.js +2 -2
- package/es-modules/masters/modules/broken-axis.src.js +2 -2
- package/es-modules/masters/modules/bullet.src.js +2 -2
- package/es-modules/masters/modules/coloraxis.src.js +2 -2
- package/es-modules/masters/modules/current-date-indicator.src.js +2 -2
- package/es-modules/masters/modules/cylinder.src.js +2 -2
- package/es-modules/masters/modules/data.src.js +2 -2
- package/es-modules/masters/modules/datagrouping.src.js +2 -2
- package/es-modules/masters/modules/debugger.src.js +2 -2
- package/es-modules/masters/modules/dependency-wheel.src.js +2 -2
- package/es-modules/masters/modules/dotplot.src.js +2 -2
- package/es-modules/masters/modules/drag-panes.src.js +2 -2
- package/es-modules/masters/modules/draggable-points.src.js +2 -2
- package/es-modules/masters/modules/drilldown.src.js +2 -2
- package/es-modules/masters/modules/dumbbell.src.js +2 -2
- package/es-modules/masters/modules/export-data.src.js +2 -2
- package/es-modules/masters/modules/exporting.src.js +3 -3
- package/es-modules/masters/modules/full-screen.src.js +2 -2
- package/es-modules/masters/modules/funnel.src.js +2 -2
- package/es-modules/masters/modules/funnel3d.src.js +2 -2
- package/es-modules/masters/modules/gantt.src.js +6 -6
- package/es-modules/masters/modules/grid-axis.src.js +2 -2
- package/es-modules/masters/modules/heatmap.src.js +4 -4
- package/es-modules/masters/modules/histogram-bellcurve.src.js +3 -3
- package/es-modules/masters/modules/item-series.src.js +2 -2
- package/es-modules/masters/modules/lollipop.src.js +2 -2
- package/es-modules/masters/modules/map.src.js +13 -13
- package/es-modules/masters/modules/marker-clusters.src.js +2 -2
- package/es-modules/masters/modules/networkgraph.src.js +2 -2
- package/es-modules/masters/modules/no-data-to-display.src.js +2 -2
- package/es-modules/masters/modules/offline-exporting.src.js +2 -2
- package/es-modules/masters/modules/oldie-polyfills.src.js +2 -2
- package/es-modules/masters/modules/oldie.src.js +2 -2
- package/es-modules/masters/modules/organization.src.js +2 -2
- package/es-modules/masters/modules/overlapping-datalabels.src.js +2 -2
- package/es-modules/masters/modules/parallel-coordinates.src.js +2 -2
- package/es-modules/masters/modules/pareto.src.js +2 -2
- package/es-modules/masters/modules/pathfinder.src.js +2 -2
- package/es-modules/masters/modules/pattern-fill.src.js +2 -2
- package/es-modules/masters/modules/price-indicator.src.js +2 -2
- package/es-modules/masters/modules/pyramid3d.src.js +2 -2
- package/es-modules/masters/modules/sankey.src.js +2 -2
- package/es-modules/masters/modules/series-label.src.js +2 -2
- package/es-modules/masters/modules/solid-gauge.src.js +2 -2
- package/es-modules/masters/modules/sonification.src.js +2 -2
- package/es-modules/masters/modules/static-scale.src.js +2 -2
- package/es-modules/masters/modules/stock-tools.src.js +3 -3
- package/es-modules/masters/modules/stock.src.js +10 -10
- package/es-modules/masters/modules/streamgraph.src.js +2 -2
- package/es-modules/masters/modules/sunburst.src.js +2 -2
- package/es-modules/masters/modules/tilemap.src.js +2 -2
- package/es-modules/masters/modules/timeline.src.js +2 -2
- package/es-modules/masters/modules/treegrid.src.js +2 -2
- package/es-modules/masters/modules/treemap.src.js +2 -2
- package/es-modules/masters/modules/variable-pie.src.js +2 -2
- package/es-modules/masters/modules/variwide.src.js +2 -2
- package/es-modules/masters/modules/vector.src.js +2 -2
- package/es-modules/masters/modules/venn.src.js +2 -2
- package/es-modules/masters/modules/windbarb.src.js +2 -2
- package/es-modules/masters/modules/wordcloud.src.js +2 -2
- package/es-modules/masters/modules/xrange.src.js +2 -2
- package/es-modules/masters/themes/avocado.src.js +2 -2
- package/es-modules/masters/themes/dark-blue.src.js +2 -2
- package/es-modules/masters/themes/dark-green.src.js +2 -2
- package/es-modules/masters/themes/dark-unica.src.js +2 -2
- package/es-modules/masters/themes/gray.src.js +2 -2
- package/es-modules/masters/themes/grid-light.src.js +2 -2
- package/es-modules/masters/themes/grid.src.js +2 -2
- package/es-modules/masters/themes/high-contrast-dark.src.js +2 -2
- package/es-modules/masters/themes/high-contrast-light.src.js +2 -2
- package/es-modules/masters/themes/sand-signika.src.js +2 -2
- package/es-modules/masters/themes/skies.src.js +2 -2
- package/es-modules/masters/themes/sunset.src.js +2 -2
- package/highcharts-3d.js +86 -88
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +1713 -1615
- package/highcharts-gantt.js +730 -697
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +11747 -10110
- package/highcharts-more.js +164 -161
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +766 -523
- package/highcharts.d.ts +7728 -1337
- package/highcharts.js +538 -515
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +7728 -1337
- package/highcharts.src.js +8517 -7691
- package/highmaps.js +636 -612
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +9151 -8209
- package/highstock.js +697 -671
- package/highstock.js.map +1 -1
- package/highstock.src.js +8919 -8049
- package/indicators/acceleration-bands.js +8 -8
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +8 -8
- package/indicators/accumulation-distribution.js +4 -4
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +5 -5
- package/indicators/ao.js +5 -5
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +6 -6
- package/indicators/apo.js +5 -5
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +8 -9
- package/indicators/aroon-oscillator.js +8 -8
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +8 -9
- package/indicators/aroon.js +7 -7
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +7 -7
- package/indicators/atr.js +4 -4
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +6 -14
- package/indicators/bollinger-bands.js +8 -8
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +8 -8
- package/indicators/cci.js +4 -4
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +5 -5
- package/indicators/chaikin.js +6 -6
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +75 -75
- package/indicators/cmf.js +4 -4
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +4 -4
- package/indicators/dema.js +5 -5
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +8 -9
- package/indicators/dpo.js +4 -4
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +5 -5
- package/indicators/ema.js +4 -4
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +4 -5
- package/indicators/ichimoku-kinko-hyo.js +13 -13
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +21 -20
- package/indicators/indicators-all.js +119 -118
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +231 -240
- package/indicators/indicators.js +9 -9
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +9 -9
- package/indicators/keltner-channels.js +8 -8
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +13 -10
- package/indicators/macd.js +10 -10
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +8 -7
- package/indicators/mfi.js +4 -4
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +5 -5
- package/indicators/momentum.js +4 -4
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +5 -5
- package/indicators/natr.js +3 -3
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +5 -5
- package/indicators/pivot-points.js +8 -8
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +6 -6
- package/indicators/ppo.js +5 -5
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +8 -9
- package/indicators/price-channel.js +8 -8
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +66 -66
- package/indicators/price-envelopes.js +6 -6
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +6 -6
- package/indicators/psar.js +3 -3
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +4 -4
- package/indicators/regressions.js +6 -6
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +8 -8
- package/indicators/roc.js +3 -3
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +5 -5
- package/indicators/rsi.js +4 -4
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +5 -5
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +7 -7
- package/indicators/stochastic.js +9 -9
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +67 -67
- package/indicators/supertrend.js +9 -9
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +9 -7
- package/indicators/tema.js +6 -6
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +8 -9
- package/indicators/trendline.js +3 -3
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +5 -5
- package/indicators/trix.js +4 -4
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +8 -8
- package/indicators/volume-by-price.js +13 -13
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +7 -8
- package/indicators/vwap.js +4 -4
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +5 -5
- package/indicators/williams-r.js +4 -4
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +7 -7
- package/indicators/wma.js +4 -4
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +5 -5
- package/indicators/zigzag.js +4 -4
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +6 -7
- package/modules/accessibility.d.ts +0 -35
- package/modules/accessibility.js +171 -168
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +0 -35
- package/modules/accessibility.src.js +369 -252
- package/modules/annotations-advanced.js +158 -136
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +1929 -1263
- package/modules/annotations.js +105 -94
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +1485 -1101
- package/modules/arrow-symbols.js +4 -4
- package/modules/arrow-symbols.js.map +1 -1
- package/modules/arrow-symbols.src.js +10 -12
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +17 -17
- package/modules/boost.d.ts +4 -0
- package/modules/boost.js +77 -64
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.d.ts +4 -0
- package/modules/boost.src.js +581 -33
- package/modules/broken-axis.js +10 -10
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +4 -5
- package/modules/bullet.js +6 -6
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +8 -8
- package/modules/coloraxis.js +22 -21
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +67 -59
- package/modules/current-date-indicator.js +3 -3
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +4 -5
- package/modules/cylinder.js +8 -8
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +21 -23
- package/modules/data.d.ts +2 -2
- package/modules/data.js +32 -32
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +2 -2
- package/modules/data.src.js +26 -25
- package/modules/datagrouping.js +17 -17
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +6 -7
- package/modules/debugger.js +5 -5
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +13 -8
- package/modules/dependency-wheel.js +8 -8
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +10 -10
- package/modules/dotplot.js +5 -5
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +6 -14
- package/modules/drag-panes.js +10 -10
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +4 -6
- package/modules/draggable-points.js +33 -33
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +22 -35
- package/modules/drilldown.d.ts +1 -1
- package/modules/drilldown.js +23 -22
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +1 -1
- package/modules/drilldown.src.js +66 -53
- package/modules/dumbbell.d.ts +4 -0
- package/modules/dumbbell.js +24 -9
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.d.ts +4 -0
- package/modules/dumbbell.src.js +1029 -104
- package/modules/export-data.d.ts +4 -29
- package/modules/export-data.js +21 -21
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.d.ts +4 -29
- package/modules/export-data.src.js +155 -189
- package/modules/exporting.d.ts +2 -0
- package/modules/exporting.js +33 -33
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.d.ts +2 -0
- package/modules/exporting.src.js +40 -30
- package/modules/full-screen.js +7 -7
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +4 -3
- package/modules/funnel.js +9 -9
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +14 -15
- package/modules/funnel3d.js +17 -17
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +12 -14
- package/modules/gantt.js +194 -183
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +2071 -1260
- package/modules/grid-axis.js +22 -19
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +149 -43
- package/modules/heatmap.js +33 -32
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +130 -114
- package/modules/histogram-bellcurve.js +10 -10
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +57 -16
- package/modules/item-series.js +9 -9
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +20 -13
- package/modules/lollipop.d.ts +20 -1
- package/modules/lollipop.js +26 -4
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.d.ts +20 -1
- package/modules/lollipop.src.js +1452 -10
- package/modules/map.d.ts +2 -2
- package/modules/map.js +99 -98
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +2 -2
- package/modules/map.src.js +1442 -1326
- package/modules/marker-clusters.js +35 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +31 -51
- package/modules/networkgraph.js +47 -46
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +98 -81
- package/modules/no-data-to-display.js +4 -4
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +17 -13
- package/modules/offline-exporting.js +15 -15
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +63 -46
- package/modules/oldie-polyfills.js +6 -6
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +7 -2
- package/modules/oldie.js +52 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +1411 -34
- package/modules/organization.js +11 -11
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +7 -6
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +144 -136
- package/modules/pareto.js +5 -5
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +8 -9
- package/modules/pathfinder.js +31 -27
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +1589 -985
- package/modules/pattern-fill.js +13 -13
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +25 -21
- package/modules/price-indicator.js +4 -4
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +5 -3
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +4 -5
- package/modules/sankey.js +25 -26
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +39 -36
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +17 -17
- package/modules/solid-gauge.js +8 -8
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +123 -91
- package/modules/sonification.d.ts +33 -16
- package/modules/sonification.js +55 -49
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.d.ts +33 -16
- package/modules/sonification.src.js +361 -115
- package/modules/static-scale.js +4 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +3 -4
- package/modules/stock-tools.d.ts +23 -1
- package/modules/stock-tools.js +150 -84
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.d.ts +23 -1
- package/modules/stock-tools.src.js +3792 -44
- package/modules/stock.js +161 -158
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +456 -412
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +42 -5
- package/modules/sunburst.js +51 -49
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +152 -52
- package/modules/tilemap.js +14 -14
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +12 -11
- package/modules/timeline.js +14 -14
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +19 -18
- package/modules/treegrid.js +57 -52
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +236 -60
- package/modules/treemap.js +35 -34
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +213 -118
- package/modules/variable-pie.js +8 -8
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +12 -10
- package/modules/variwide.js +8 -8
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +8 -8
- package/modules/vector.js +6 -6
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +9 -9
- package/modules/venn.js +26 -26
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +49 -37
- package/modules/windbarb.js +11 -11
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +11 -12
- package/modules/wordcloud.js +19 -19
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +26 -18
- package/modules/xrange.js +12 -12
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +19 -20
- package/package.json +1 -1
- package/themes/avocado.js +3 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +5 -4
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +4 -3
- package/themes/dark-green.js +3 -3
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +4 -3
- package/themes/dark-unica.js +7 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +6 -6
- package/themes/gray.js +3 -3
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +5 -4
- package/themes/grid-light.js +4 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +4 -3
- package/themes/grid.js +3 -3
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +4 -3
- package/themes/high-contrast-dark.js +6 -6
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +5 -4
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +4 -3
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +4 -3
- package/themes/skies.js +4 -4
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +5 -4
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +5 -4
- package/es-modules/annotations/controllable/ControllableCircle.js +0 -79
- package/es-modules/annotations/controllable/ControllableImage.js +0 -79
- package/es-modules/annotations/controllable/ControllableRect.js +0 -82
- package/es-modules/annotations/types/InfinityLine.js +0 -110
- package/es-modules/masters/modules/map-parser.src.js +0 -12
- package/es-modules/modules/accessibility/components/InfoRegionsComponent/AnnotationsA11y.js +0 -80
- package/es-modules/modules/accessibility/components/InfoRegionsComponent/InfoRegionsComponent.js +0 -499
- package/es-modules/modules/accessibility/components/SeriesComponent/forcedMarkers.js +0 -147
- package/es-modules/modules/map-parser.src.js +0 -365
- package/es-modules/modules/sonification/options.js +0 -36
- package/es-modules/parts-3d/Chart.js +0 -1577
- package/es-modules/parts-3d/VMLRenderer.js +0 -35
- package/es-modules/parts-gantt/PathfinderAlgorithms.js +0 -656
- package/modules/map-parser.d.ts +0 -17
- package/modules/map-parser.js +0 -17
- package/modules/map-parser.js.map +0 -1
- package/modules/map-parser.src.d.ts +0 -17
- package/modules/map-parser.src.js +0 -421
|
@@ -0,0 +1,1674 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2020 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* Extension for 3D charts
|
|
6
|
+
*
|
|
7
|
+
* License: www.highcharts.com/license
|
|
8
|
+
*
|
|
9
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
10
|
+
*
|
|
11
|
+
* */
|
|
12
|
+
'use strict';
|
|
13
|
+
import Axis from '../Axis/Axis.js';
|
|
14
|
+
import Axis3D from '../Axis/Axis3D.js';
|
|
15
|
+
import Chart from './Chart.js';
|
|
16
|
+
import Fx from '../Animation/Fx.js';
|
|
17
|
+
import H from '../Globals.js';
|
|
18
|
+
import Math3D from '../../Extensions/Math3D.js';
|
|
19
|
+
var perspective = Math3D.perspective, shapeArea3D = Math3D.shapeArea3D;
|
|
20
|
+
import O from '../Options.js';
|
|
21
|
+
var genericDefaultOptions = O.defaultOptions;
|
|
22
|
+
import U from '../Utilities.js';
|
|
23
|
+
var addEvent = U.addEvent, isArray = U.isArray, merge = U.merge, pick = U.pick, wrap = U.wrap;
|
|
24
|
+
import ZAxis from '../Axis/ZAxis.js';
|
|
25
|
+
var Chart3D;
|
|
26
|
+
(function (Chart3D) {
|
|
27
|
+
/* *
|
|
28
|
+
*
|
|
29
|
+
* Interfaces
|
|
30
|
+
*
|
|
31
|
+
* */
|
|
32
|
+
/* *
|
|
33
|
+
*
|
|
34
|
+
* Classes
|
|
35
|
+
*
|
|
36
|
+
* */
|
|
37
|
+
var Composition = /** @class */ (function () {
|
|
38
|
+
/* *
|
|
39
|
+
*
|
|
40
|
+
* Constructors
|
|
41
|
+
*
|
|
42
|
+
* */
|
|
43
|
+
/**
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
function Composition(chart) {
|
|
47
|
+
this.frame3d = void 0;
|
|
48
|
+
this.chart = chart;
|
|
49
|
+
}
|
|
50
|
+
/* *
|
|
51
|
+
*
|
|
52
|
+
* Functions
|
|
53
|
+
*
|
|
54
|
+
* */
|
|
55
|
+
Composition.prototype.get3dFrame = function () {
|
|
56
|
+
var chart = this.chart, options3d = chart.options.chart.options3d, frameOptions = options3d.frame, xm = chart.plotLeft, xp = chart.plotLeft + chart.plotWidth, ym = chart.plotTop, yp = chart.plotTop + chart.plotHeight, zm = 0, zp = options3d.depth, faceOrientation = function (vertexes) {
|
|
57
|
+
var area = shapeArea3D(vertexes, chart);
|
|
58
|
+
// Give it 0.5 squared-pixel as a margin for rounding errors
|
|
59
|
+
if (area > 0.5) {
|
|
60
|
+
return 1;
|
|
61
|
+
}
|
|
62
|
+
if (area < -0.5) {
|
|
63
|
+
return -1;
|
|
64
|
+
}
|
|
65
|
+
return 0;
|
|
66
|
+
}, bottomOrientation = faceOrientation([
|
|
67
|
+
{ x: xm, y: yp, z: zp },
|
|
68
|
+
{ x: xp, y: yp, z: zp },
|
|
69
|
+
{ x: xp, y: yp, z: zm },
|
|
70
|
+
{ x: xm, y: yp, z: zm }
|
|
71
|
+
]), topOrientation = faceOrientation([
|
|
72
|
+
{ x: xm, y: ym, z: zm },
|
|
73
|
+
{ x: xp, y: ym, z: zm },
|
|
74
|
+
{ x: xp, y: ym, z: zp },
|
|
75
|
+
{ x: xm, y: ym, z: zp }
|
|
76
|
+
]), leftOrientation = faceOrientation([
|
|
77
|
+
{ x: xm, y: ym, z: zm },
|
|
78
|
+
{ x: xm, y: ym, z: zp },
|
|
79
|
+
{ x: xm, y: yp, z: zp },
|
|
80
|
+
{ x: xm, y: yp, z: zm }
|
|
81
|
+
]), rightOrientation = faceOrientation([
|
|
82
|
+
{ x: xp, y: ym, z: zp },
|
|
83
|
+
{ x: xp, y: ym, z: zm },
|
|
84
|
+
{ x: xp, y: yp, z: zm },
|
|
85
|
+
{ x: xp, y: yp, z: zp }
|
|
86
|
+
]), frontOrientation = faceOrientation([
|
|
87
|
+
{ x: xm, y: yp, z: zm },
|
|
88
|
+
{ x: xp, y: yp, z: zm },
|
|
89
|
+
{ x: xp, y: ym, z: zm },
|
|
90
|
+
{ x: xm, y: ym, z: zm }
|
|
91
|
+
]), backOrientation = faceOrientation([
|
|
92
|
+
{ x: xm, y: ym, z: zp },
|
|
93
|
+
{ x: xp, y: ym, z: zp },
|
|
94
|
+
{ x: xp, y: yp, z: zp },
|
|
95
|
+
{ x: xm, y: yp, z: zp }
|
|
96
|
+
]), defaultShowBottom = false, defaultShowTop = false, defaultShowLeft = false, defaultShowRight = false, defaultShowFront = false, defaultShowBack = true;
|
|
97
|
+
// The 'default' criteria to visible faces of the frame is looking
|
|
98
|
+
// up every axis to decide whenever the left/right//top/bottom sides
|
|
99
|
+
// of the frame will be shown
|
|
100
|
+
[]
|
|
101
|
+
.concat(chart.xAxis, chart.yAxis, chart.zAxis)
|
|
102
|
+
.forEach(function (axis) {
|
|
103
|
+
if (axis) {
|
|
104
|
+
if (axis.horiz) {
|
|
105
|
+
if (axis.opposite) {
|
|
106
|
+
defaultShowTop = true;
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
defaultShowBottom = true;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
if (axis.opposite) {
|
|
114
|
+
defaultShowRight = true;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
defaultShowLeft = true;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
var getFaceOptions = function (sources, faceOrientation, defaultVisible) {
|
|
123
|
+
var faceAttrs = ['size', 'color', 'visible'];
|
|
124
|
+
var options = {};
|
|
125
|
+
for (var i = 0; i < faceAttrs.length; i++) {
|
|
126
|
+
var attr = faceAttrs[i];
|
|
127
|
+
for (var j = 0; j < sources.length; j++) {
|
|
128
|
+
if (typeof sources[j] === 'object') {
|
|
129
|
+
var val = sources[j][attr];
|
|
130
|
+
if (typeof val !== 'undefined' && val !== null) {
|
|
131
|
+
options[attr] = val;
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
var isVisible = defaultVisible;
|
|
138
|
+
if (options.visible === true || options.visible === false) {
|
|
139
|
+
isVisible = options.visible;
|
|
140
|
+
}
|
|
141
|
+
else if (options.visible === 'auto') {
|
|
142
|
+
isVisible = faceOrientation > 0;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
size: pick(options.size, 1),
|
|
146
|
+
color: pick(options.color, 'none'),
|
|
147
|
+
frontFacing: faceOrientation > 0,
|
|
148
|
+
visible: isVisible
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
// docs @TODO: Add all frame options (left, right, top, bottom,
|
|
152
|
+
// front, back) to apioptions JSDoc once the new system is up.
|
|
153
|
+
var ret = {
|
|
154
|
+
axes: {},
|
|
155
|
+
// FIXME: Previously, left/right, top/bottom and front/back
|
|
156
|
+
// pairs shared size and color.
|
|
157
|
+
// For compatibility and consistency sake, when one face have
|
|
158
|
+
// size/color/visibility set, the opposite face will default to
|
|
159
|
+
// the same values. Also, left/right used to be called 'side',
|
|
160
|
+
// so that's also added as a fallback.
|
|
161
|
+
bottom: getFaceOptions([frameOptions.bottom, frameOptions.top, frameOptions], bottomOrientation, defaultShowBottom),
|
|
162
|
+
top: getFaceOptions([frameOptions.top, frameOptions.bottom, frameOptions], topOrientation, defaultShowTop),
|
|
163
|
+
left: getFaceOptions([
|
|
164
|
+
frameOptions.left,
|
|
165
|
+
frameOptions.right,
|
|
166
|
+
frameOptions.side,
|
|
167
|
+
frameOptions
|
|
168
|
+
], leftOrientation, defaultShowLeft),
|
|
169
|
+
right: getFaceOptions([
|
|
170
|
+
frameOptions.right,
|
|
171
|
+
frameOptions.left,
|
|
172
|
+
frameOptions.side,
|
|
173
|
+
frameOptions
|
|
174
|
+
], rightOrientation, defaultShowRight),
|
|
175
|
+
back: getFaceOptions([frameOptions.back, frameOptions.front, frameOptions], backOrientation, defaultShowBack),
|
|
176
|
+
front: getFaceOptions([frameOptions.front, frameOptions.back, frameOptions], frontOrientation, defaultShowFront)
|
|
177
|
+
};
|
|
178
|
+
// Decide the bast place to put axis title/labels based on the
|
|
179
|
+
// visible faces. Ideally, The labels can only be on the edge
|
|
180
|
+
// between a visible face and an invisble one. Also, the Y label
|
|
181
|
+
// should be one the left-most edge (right-most if opposite).
|
|
182
|
+
if (options3d.axisLabelPosition === 'auto') {
|
|
183
|
+
var isValidEdge = function (face1, face2) {
|
|
184
|
+
return ((face1.visible !== face2.visible) ||
|
|
185
|
+
(face1.visible &&
|
|
186
|
+
face2.visible &&
|
|
187
|
+
(face1.frontFacing !== face2.frontFacing)));
|
|
188
|
+
};
|
|
189
|
+
var yEdges = [];
|
|
190
|
+
if (isValidEdge(ret.left, ret.front)) {
|
|
191
|
+
yEdges.push({
|
|
192
|
+
y: (ym + yp) / 2,
|
|
193
|
+
x: xm,
|
|
194
|
+
z: zm,
|
|
195
|
+
xDir: { x: 1, y: 0, z: 0 }
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
if (isValidEdge(ret.left, ret.back)) {
|
|
199
|
+
yEdges.push({
|
|
200
|
+
y: (ym + yp) / 2,
|
|
201
|
+
x: xm,
|
|
202
|
+
z: zp,
|
|
203
|
+
xDir: { x: 0, y: 0, z: -1 }
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
if (isValidEdge(ret.right, ret.front)) {
|
|
207
|
+
yEdges.push({
|
|
208
|
+
y: (ym + yp) / 2,
|
|
209
|
+
x: xp,
|
|
210
|
+
z: zm,
|
|
211
|
+
xDir: { x: 0, y: 0, z: 1 }
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
if (isValidEdge(ret.right, ret.back)) {
|
|
215
|
+
yEdges.push({
|
|
216
|
+
y: (ym + yp) / 2,
|
|
217
|
+
x: xp,
|
|
218
|
+
z: zp,
|
|
219
|
+
xDir: { x: -1, y: 0, z: 0 }
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
var xBottomEdges = [];
|
|
223
|
+
if (isValidEdge(ret.bottom, ret.front)) {
|
|
224
|
+
xBottomEdges.push({
|
|
225
|
+
x: (xm + xp) / 2,
|
|
226
|
+
y: yp,
|
|
227
|
+
z: zm,
|
|
228
|
+
xDir: { x: 1, y: 0, z: 0 }
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
if (isValidEdge(ret.bottom, ret.back)) {
|
|
232
|
+
xBottomEdges.push({
|
|
233
|
+
x: (xm + xp) / 2,
|
|
234
|
+
y: yp,
|
|
235
|
+
z: zp,
|
|
236
|
+
xDir: { x: -1, y: 0, z: 0 }
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
var xTopEdges = [];
|
|
240
|
+
if (isValidEdge(ret.top, ret.front)) {
|
|
241
|
+
xTopEdges.push({
|
|
242
|
+
x: (xm + xp) / 2,
|
|
243
|
+
y: ym,
|
|
244
|
+
z: zm,
|
|
245
|
+
xDir: { x: 1, y: 0, z: 0 }
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
if (isValidEdge(ret.top, ret.back)) {
|
|
249
|
+
xTopEdges.push({
|
|
250
|
+
x: (xm + xp) / 2,
|
|
251
|
+
y: ym,
|
|
252
|
+
z: zp,
|
|
253
|
+
xDir: { x: -1, y: 0, z: 0 }
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
var zBottomEdges = [];
|
|
257
|
+
if (isValidEdge(ret.bottom, ret.left)) {
|
|
258
|
+
zBottomEdges.push({
|
|
259
|
+
z: (zm + zp) / 2,
|
|
260
|
+
y: yp,
|
|
261
|
+
x: xm,
|
|
262
|
+
xDir: { x: 0, y: 0, z: -1 }
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
if (isValidEdge(ret.bottom, ret.right)) {
|
|
266
|
+
zBottomEdges.push({
|
|
267
|
+
z: (zm + zp) / 2,
|
|
268
|
+
y: yp,
|
|
269
|
+
x: xp,
|
|
270
|
+
xDir: { x: 0, y: 0, z: 1 }
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
var zTopEdges = [];
|
|
274
|
+
if (isValidEdge(ret.top, ret.left)) {
|
|
275
|
+
zTopEdges.push({
|
|
276
|
+
z: (zm + zp) / 2,
|
|
277
|
+
y: ym,
|
|
278
|
+
x: xm,
|
|
279
|
+
xDir: { x: 0, y: 0, z: -1 }
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
if (isValidEdge(ret.top, ret.right)) {
|
|
283
|
+
zTopEdges.push({
|
|
284
|
+
z: (zm + zp) / 2,
|
|
285
|
+
y: ym,
|
|
286
|
+
x: xp,
|
|
287
|
+
xDir: { x: 0, y: 0, z: 1 }
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
var pickEdge = function (edges, axis, mult) {
|
|
291
|
+
if (edges.length === 0) {
|
|
292
|
+
return null;
|
|
293
|
+
}
|
|
294
|
+
if (edges.length === 1) {
|
|
295
|
+
return edges[0];
|
|
296
|
+
}
|
|
297
|
+
var best = 0, projections = perspective(edges, chart, false);
|
|
298
|
+
for (var i = 1; i < projections.length; i++) {
|
|
299
|
+
if (mult * projections[i][axis] >
|
|
300
|
+
mult * projections[best][axis]) {
|
|
301
|
+
best = i;
|
|
302
|
+
}
|
|
303
|
+
else if ((mult * projections[i][axis] ===
|
|
304
|
+
mult * projections[best][axis]) &&
|
|
305
|
+
(projections[i].z < projections[best].z)) {
|
|
306
|
+
best = i;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return edges[best];
|
|
310
|
+
};
|
|
311
|
+
ret.axes = {
|
|
312
|
+
y: {
|
|
313
|
+
'left': pickEdge(yEdges, 'x', -1),
|
|
314
|
+
'right': pickEdge(yEdges, 'x', +1)
|
|
315
|
+
},
|
|
316
|
+
x: {
|
|
317
|
+
'top': pickEdge(xTopEdges, 'y', -1),
|
|
318
|
+
'bottom': pickEdge(xBottomEdges, 'y', +1)
|
|
319
|
+
},
|
|
320
|
+
z: {
|
|
321
|
+
'top': pickEdge(zTopEdges, 'y', -1),
|
|
322
|
+
'bottom': pickEdge(zBottomEdges, 'y', +1)
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
ret.axes = {
|
|
328
|
+
y: {
|
|
329
|
+
'left': { x: xm, z: zm, xDir: { x: 1, y: 0, z: 0 } },
|
|
330
|
+
'right': { x: xp, z: zm, xDir: { x: 0, y: 0, z: 1 } }
|
|
331
|
+
},
|
|
332
|
+
x: {
|
|
333
|
+
'top': { y: ym, z: zm, xDir: { x: 1, y: 0, z: 0 } },
|
|
334
|
+
'bottom': { y: yp, z: zm, xDir: { x: 1, y: 0, z: 0 } }
|
|
335
|
+
},
|
|
336
|
+
z: {
|
|
337
|
+
'top': {
|
|
338
|
+
x: defaultShowLeft ? xp : xm,
|
|
339
|
+
y: ym,
|
|
340
|
+
xDir: defaultShowLeft ?
|
|
341
|
+
{ x: 0, y: 0, z: 1 } :
|
|
342
|
+
{ x: 0, y: 0, z: -1 }
|
|
343
|
+
},
|
|
344
|
+
'bottom': {
|
|
345
|
+
x: defaultShowLeft ? xp : xm,
|
|
346
|
+
y: yp,
|
|
347
|
+
xDir: defaultShowLeft ?
|
|
348
|
+
{ x: 0, y: 0, z: 1 } :
|
|
349
|
+
{ x: 0, y: 0, z: -1 }
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
return ret;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Calculate scale of the 3D view. That is required to fit chart's 3D
|
|
358
|
+
* projection into the actual plotting area. Reported as #4933.
|
|
359
|
+
*
|
|
360
|
+
* @notice
|
|
361
|
+
* This function should ideally take the plot values instead of a chart
|
|
362
|
+
* object, but since the chart object is needed for perspective it is
|
|
363
|
+
* not practical. Possible to make both getScale and perspective more
|
|
364
|
+
* logical and also immutable.
|
|
365
|
+
*
|
|
366
|
+
* @private
|
|
367
|
+
* @function getScale
|
|
368
|
+
*
|
|
369
|
+
* @param {number} depth
|
|
370
|
+
* The depth of the chart
|
|
371
|
+
*
|
|
372
|
+
* @return {number}
|
|
373
|
+
* The scale to fit the 3D chart into the plotting area.
|
|
374
|
+
*
|
|
375
|
+
* @requires highcharts-3d
|
|
376
|
+
*/
|
|
377
|
+
Composition.prototype.getScale = function (depth) {
|
|
378
|
+
var chart = this.chart, plotLeft = chart.plotLeft, plotRight = chart.plotWidth + plotLeft, plotTop = chart.plotTop, plotBottom = chart.plotHeight + plotTop, originX = plotLeft + chart.plotWidth / 2, originY = plotTop + chart.plotHeight / 2, bbox3d = {
|
|
379
|
+
minX: Number.MAX_VALUE,
|
|
380
|
+
maxX: -Number.MAX_VALUE,
|
|
381
|
+
minY: Number.MAX_VALUE,
|
|
382
|
+
maxY: -Number.MAX_VALUE
|
|
383
|
+
}, corners, scale = 1;
|
|
384
|
+
// Top left corners:
|
|
385
|
+
corners = [{
|
|
386
|
+
x: plotLeft,
|
|
387
|
+
y: plotTop,
|
|
388
|
+
z: 0
|
|
389
|
+
}, {
|
|
390
|
+
x: plotLeft,
|
|
391
|
+
y: plotTop,
|
|
392
|
+
z: depth
|
|
393
|
+
}];
|
|
394
|
+
// Top right corners:
|
|
395
|
+
[0, 1].forEach(function (i) {
|
|
396
|
+
corners.push({
|
|
397
|
+
x: plotRight,
|
|
398
|
+
y: corners[i].y,
|
|
399
|
+
z: corners[i].z
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
// All bottom corners:
|
|
403
|
+
[0, 1, 2, 3].forEach(function (i) {
|
|
404
|
+
corners.push({
|
|
405
|
+
x: corners[i].x,
|
|
406
|
+
y: plotBottom,
|
|
407
|
+
z: corners[i].z
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
// Calculate 3D corners:
|
|
411
|
+
corners = perspective(corners, chart, false);
|
|
412
|
+
// Get bounding box of 3D element:
|
|
413
|
+
corners.forEach(function (corner) {
|
|
414
|
+
bbox3d.minX = Math.min(bbox3d.minX, corner.x);
|
|
415
|
+
bbox3d.maxX = Math.max(bbox3d.maxX, corner.x);
|
|
416
|
+
bbox3d.minY = Math.min(bbox3d.minY, corner.y);
|
|
417
|
+
bbox3d.maxY = Math.max(bbox3d.maxY, corner.y);
|
|
418
|
+
});
|
|
419
|
+
// Left edge:
|
|
420
|
+
if (plotLeft > bbox3d.minX) {
|
|
421
|
+
scale = Math.min(scale, 1 - Math.abs((plotLeft + originX) / (bbox3d.minX + originX)) % 1);
|
|
422
|
+
}
|
|
423
|
+
// Right edge:
|
|
424
|
+
if (plotRight < bbox3d.maxX) {
|
|
425
|
+
scale = Math.min(scale, (plotRight - originX) / (bbox3d.maxX - originX));
|
|
426
|
+
}
|
|
427
|
+
// Top edge:
|
|
428
|
+
if (plotTop > bbox3d.minY) {
|
|
429
|
+
if (bbox3d.minY < 0) {
|
|
430
|
+
scale = Math.min(scale, (plotTop + originY) / (-bbox3d.minY + plotTop + originY));
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
scale = Math.min(scale, 1 - (plotTop + originY) / (bbox3d.minY + originY) % 1);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
// Bottom edge:
|
|
437
|
+
if (plotBottom < bbox3d.maxY) {
|
|
438
|
+
scale = Math.min(scale, Math.abs((plotBottom - originY) / (bbox3d.maxY - originY)));
|
|
439
|
+
}
|
|
440
|
+
return scale;
|
|
441
|
+
};
|
|
442
|
+
return Composition;
|
|
443
|
+
}());
|
|
444
|
+
Chart3D.Composition = Composition;
|
|
445
|
+
/* *
|
|
446
|
+
*
|
|
447
|
+
* Constants
|
|
448
|
+
*
|
|
449
|
+
* */
|
|
450
|
+
/**
|
|
451
|
+
* @optionparent
|
|
452
|
+
* @private
|
|
453
|
+
*/
|
|
454
|
+
Chart3D.defaultOptions = {
|
|
455
|
+
chart: {
|
|
456
|
+
/**
|
|
457
|
+
* Options to render charts in 3 dimensions. This feature requires
|
|
458
|
+
* `highcharts-3d.js`, found in the download package or online at
|
|
459
|
+
* [code.highcharts.com/highcharts-3d.js](https://code.highcharts.com/highcharts-3d.js).
|
|
460
|
+
*
|
|
461
|
+
* @since 4.0
|
|
462
|
+
* @product highcharts
|
|
463
|
+
* @requires highcharts-3d
|
|
464
|
+
*/
|
|
465
|
+
options3d: {
|
|
466
|
+
/**
|
|
467
|
+
* Wether to render the chart using the 3D functionality.
|
|
468
|
+
*
|
|
469
|
+
* @since 4.0
|
|
470
|
+
* @product highcharts
|
|
471
|
+
*/
|
|
472
|
+
enabled: false,
|
|
473
|
+
/**
|
|
474
|
+
* One of the two rotation angles for the chart.
|
|
475
|
+
*
|
|
476
|
+
* @since 4.0
|
|
477
|
+
* @product highcharts
|
|
478
|
+
*/
|
|
479
|
+
alpha: 0,
|
|
480
|
+
/**
|
|
481
|
+
* One of the two rotation angles for the chart.
|
|
482
|
+
*
|
|
483
|
+
* @since 4.0
|
|
484
|
+
* @product highcharts
|
|
485
|
+
*/
|
|
486
|
+
beta: 0,
|
|
487
|
+
/**
|
|
488
|
+
* The total depth of the chart.
|
|
489
|
+
*
|
|
490
|
+
* @since 4.0
|
|
491
|
+
* @product highcharts
|
|
492
|
+
*/
|
|
493
|
+
depth: 100,
|
|
494
|
+
/**
|
|
495
|
+
* Whether the 3d box should automatically adjust to the chart
|
|
496
|
+
* plot area.
|
|
497
|
+
*
|
|
498
|
+
* @since 4.2.4
|
|
499
|
+
* @product highcharts
|
|
500
|
+
*/
|
|
501
|
+
fitToPlot: true,
|
|
502
|
+
/**
|
|
503
|
+
* Defines the distance the viewer is standing in front of the
|
|
504
|
+
* chart, this setting is important to calculate the perspective
|
|
505
|
+
* effect in column and scatter charts. It is not used for 3D
|
|
506
|
+
* pie charts.
|
|
507
|
+
*
|
|
508
|
+
* @since 4.0
|
|
509
|
+
* @product highcharts
|
|
510
|
+
*/
|
|
511
|
+
viewDistance: 25,
|
|
512
|
+
/**
|
|
513
|
+
* Set it to `"auto"` to automatically move the labels to the
|
|
514
|
+
* best edge.
|
|
515
|
+
*
|
|
516
|
+
* @type {"auto"|null}
|
|
517
|
+
* @since 5.0.12
|
|
518
|
+
* @product highcharts
|
|
519
|
+
*/
|
|
520
|
+
axisLabelPosition: null,
|
|
521
|
+
/**
|
|
522
|
+
* Provides the option to draw a frame around the charts by
|
|
523
|
+
* defining a bottom, front and back panel.
|
|
524
|
+
*
|
|
525
|
+
* @since 4.0
|
|
526
|
+
* @product highcharts
|
|
527
|
+
* @requires highcharts-3d
|
|
528
|
+
*/
|
|
529
|
+
frame: {
|
|
530
|
+
/**
|
|
531
|
+
* Whether the frames are visible.
|
|
532
|
+
*/
|
|
533
|
+
visible: 'default',
|
|
534
|
+
/**
|
|
535
|
+
* General pixel thickness for the frame faces.
|
|
536
|
+
*/
|
|
537
|
+
size: 1,
|
|
538
|
+
/**
|
|
539
|
+
* The bottom of the frame around a 3D chart.
|
|
540
|
+
*
|
|
541
|
+
* @since 4.0
|
|
542
|
+
* @product highcharts
|
|
543
|
+
* @requires highcharts-3d
|
|
544
|
+
*/
|
|
545
|
+
/**
|
|
546
|
+
* The color of the panel.
|
|
547
|
+
*
|
|
548
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
549
|
+
* @default transparent
|
|
550
|
+
* @since 4.0
|
|
551
|
+
* @product highcharts
|
|
552
|
+
* @apioption chart.options3d.frame.bottom.color
|
|
553
|
+
*/
|
|
554
|
+
/**
|
|
555
|
+
* The thickness of the panel.
|
|
556
|
+
*
|
|
557
|
+
* @type {number}
|
|
558
|
+
* @default 1
|
|
559
|
+
* @since 4.0
|
|
560
|
+
* @product highcharts
|
|
561
|
+
* @apioption chart.options3d.frame.bottom.size
|
|
562
|
+
*/
|
|
563
|
+
/**
|
|
564
|
+
* Whether to display the frame. Possible values are `true`,
|
|
565
|
+
* `false`, `"auto"` to display only the frames behind the
|
|
566
|
+
* data, and `"default"` to display faces behind the data
|
|
567
|
+
* based on the axis layout, ignoring the point of view.
|
|
568
|
+
*
|
|
569
|
+
* @sample {highcharts} highcharts/3d/scatter-frame/
|
|
570
|
+
* Auto frames
|
|
571
|
+
*
|
|
572
|
+
* @type {boolean|"default"|"auto"}
|
|
573
|
+
* @default default
|
|
574
|
+
* @since 5.0.12
|
|
575
|
+
* @product highcharts
|
|
576
|
+
* @apioption chart.options3d.frame.bottom.visible
|
|
577
|
+
*/
|
|
578
|
+
/**
|
|
579
|
+
* The bottom of the frame around a 3D chart.
|
|
580
|
+
*/
|
|
581
|
+
bottom: {},
|
|
582
|
+
/**
|
|
583
|
+
* The top of the frame around a 3D chart.
|
|
584
|
+
*
|
|
585
|
+
* @extends chart.options3d.frame.bottom
|
|
586
|
+
*/
|
|
587
|
+
top: {},
|
|
588
|
+
/**
|
|
589
|
+
* The left side of the frame around a 3D chart.
|
|
590
|
+
*
|
|
591
|
+
* @extends chart.options3d.frame.bottom
|
|
592
|
+
*/
|
|
593
|
+
left: {},
|
|
594
|
+
/**
|
|
595
|
+
* The right of the frame around a 3D chart.
|
|
596
|
+
*
|
|
597
|
+
* @extends chart.options3d.frame.bottom
|
|
598
|
+
*/
|
|
599
|
+
right: {},
|
|
600
|
+
/**
|
|
601
|
+
* The back side of the frame around a 3D chart.
|
|
602
|
+
*
|
|
603
|
+
* @extends chart.options3d.frame.bottom
|
|
604
|
+
*/
|
|
605
|
+
back: {},
|
|
606
|
+
/**
|
|
607
|
+
* The front of the frame around a 3D chart.
|
|
608
|
+
*
|
|
609
|
+
* @extends chart.options3d.frame.bottom
|
|
610
|
+
*/
|
|
611
|
+
front: {}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
};
|
|
616
|
+
/* *
|
|
617
|
+
*
|
|
618
|
+
* Functions
|
|
619
|
+
*
|
|
620
|
+
* */
|
|
621
|
+
/**
|
|
622
|
+
* @private
|
|
623
|
+
*/
|
|
624
|
+
function compose(ChartClass, FxClass) {
|
|
625
|
+
var chartProto = ChartClass.prototype;
|
|
626
|
+
var fxProto = FxClass.prototype;
|
|
627
|
+
/**
|
|
628
|
+
* Shorthand to check the is3d flag.
|
|
629
|
+
* @private
|
|
630
|
+
* @return {boolean}
|
|
631
|
+
* Whether it is a 3D chart.
|
|
632
|
+
*/
|
|
633
|
+
chartProto.is3d = function () {
|
|
634
|
+
return (this.options.chart.options3d &&
|
|
635
|
+
this.options.chart.options3d.enabled); // #4280
|
|
636
|
+
};
|
|
637
|
+
chartProto.propsRequireDirtyBox.push('chart.options3d');
|
|
638
|
+
chartProto.propsRequireUpdateSeries.push('chart.options3d');
|
|
639
|
+
/**
|
|
640
|
+
* Animation setter for matrix property.
|
|
641
|
+
* @private
|
|
642
|
+
*/
|
|
643
|
+
fxProto.matrixSetter = function () {
|
|
644
|
+
var interpolated;
|
|
645
|
+
if (this.pos < 1 &&
|
|
646
|
+
(isArray(this.start) || isArray(this.end))) {
|
|
647
|
+
var start = this.start || [1, 0, 0, 1, 0, 0];
|
|
648
|
+
var end = this.end || [1, 0, 0, 1, 0, 0];
|
|
649
|
+
interpolated = [];
|
|
650
|
+
for (var i = 0; i < 6; i++) {
|
|
651
|
+
interpolated.push(this.pos * end[i] + (1 - this.pos) * start[i]);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
else {
|
|
655
|
+
interpolated = this.end;
|
|
656
|
+
}
|
|
657
|
+
this.elem.attr(this.prop, interpolated, null, true);
|
|
658
|
+
};
|
|
659
|
+
merge(true, genericDefaultOptions, Chart3D.defaultOptions);
|
|
660
|
+
addEvent(ChartClass, 'init', onInit);
|
|
661
|
+
addEvent(ChartClass, 'addSeries', onAddSeries);
|
|
662
|
+
addEvent(ChartClass, 'afterDrawChartBox', onAfterDrawChartBox);
|
|
663
|
+
addEvent(ChartClass, 'afterGetContainer', onAfterGetContainer);
|
|
664
|
+
addEvent(ChartClass, 'afterInit', onAfterInit);
|
|
665
|
+
addEvent(ChartClass, 'afterSetChartSize', onAfterSetChartSize);
|
|
666
|
+
addEvent(ChartClass, 'beforeRedraw', onBeforeRedraw);
|
|
667
|
+
addEvent(ChartClass, 'beforeRender', onBeforeRender);
|
|
668
|
+
wrap(H.Chart.prototype, 'isInsidePlot', wrapIsInsidePlot);
|
|
669
|
+
wrap(ChartClass, 'renderSeries', wrapRenderSeries);
|
|
670
|
+
wrap(ChartClass, 'setClassName', wrapSetClassName);
|
|
671
|
+
}
|
|
672
|
+
Chart3D.compose = compose;
|
|
673
|
+
/**
|
|
674
|
+
* Legacy support for HC < 6 to make 'scatter' series in a 3D chart route to
|
|
675
|
+
* the real 'scatter3d' series type. (#8407)
|
|
676
|
+
* @private
|
|
677
|
+
*/
|
|
678
|
+
function onAddSeries(e) {
|
|
679
|
+
if (this.is3d()) {
|
|
680
|
+
if (e.options.type === 'scatter') {
|
|
681
|
+
e.options.type = 'scatter3d';
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* @private
|
|
687
|
+
*/
|
|
688
|
+
function onAfterDrawChartBox() {
|
|
689
|
+
if (this.chart3d &&
|
|
690
|
+
this.is3d()) {
|
|
691
|
+
var chart = this, renderer = chart.renderer, options3d = this.options.chart.options3d, frame = this.chart3d.get3dFrame(), xm = this.plotLeft, xp = this.plotLeft + this.plotWidth, ym = this.plotTop, yp = this.plotTop + this.plotHeight, zm = 0, zp = options3d.depth, xmm = xm - (frame.left.visible ? frame.left.size : 0), xpp = xp + (frame.right.visible ? frame.right.size : 0), ymm = ym - (frame.top.visible ? frame.top.size : 0), ypp = yp + (frame.bottom.visible ? frame.bottom.size : 0), zmm = zm - (frame.front.visible ? frame.front.size : 0), zpp = zp + (frame.back.visible ? frame.back.size : 0), verb = chart.hasRendered ? 'animate' : 'attr';
|
|
692
|
+
this.chart3d.frame3d = frame;
|
|
693
|
+
if (!this.frameShapes) {
|
|
694
|
+
this.frameShapes = {
|
|
695
|
+
bottom: renderer.polyhedron().add(),
|
|
696
|
+
top: renderer.polyhedron().add(),
|
|
697
|
+
left: renderer.polyhedron().add(),
|
|
698
|
+
right: renderer.polyhedron().add(),
|
|
699
|
+
back: renderer.polyhedron().add(),
|
|
700
|
+
front: renderer.polyhedron().add()
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
this.frameShapes.bottom[verb]({
|
|
704
|
+
'class': 'highcharts-3d-frame highcharts-3d-frame-bottom',
|
|
705
|
+
zIndex: frame.bottom.frontFacing ? -1000 : 1000,
|
|
706
|
+
faces: [{
|
|
707
|
+
fill: H.color(frame.bottom.color).brighten(0.1).get(),
|
|
708
|
+
vertexes: [{
|
|
709
|
+
x: xmm,
|
|
710
|
+
y: ypp,
|
|
711
|
+
z: zmm
|
|
712
|
+
}, {
|
|
713
|
+
x: xpp,
|
|
714
|
+
y: ypp,
|
|
715
|
+
z: zmm
|
|
716
|
+
}, {
|
|
717
|
+
x: xpp,
|
|
718
|
+
y: ypp,
|
|
719
|
+
z: zpp
|
|
720
|
+
}, {
|
|
721
|
+
x: xmm,
|
|
722
|
+
y: ypp,
|
|
723
|
+
z: zpp
|
|
724
|
+
}],
|
|
725
|
+
enabled: frame.bottom.visible
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
fill: H.color(frame.bottom.color).brighten(0.1).get(),
|
|
729
|
+
vertexes: [{
|
|
730
|
+
x: xm,
|
|
731
|
+
y: yp,
|
|
732
|
+
z: zp
|
|
733
|
+
}, {
|
|
734
|
+
x: xp,
|
|
735
|
+
y: yp,
|
|
736
|
+
z: zp
|
|
737
|
+
}, {
|
|
738
|
+
x: xp,
|
|
739
|
+
y: yp,
|
|
740
|
+
z: zm
|
|
741
|
+
}, {
|
|
742
|
+
x: xm,
|
|
743
|
+
y: yp,
|
|
744
|
+
z: zm
|
|
745
|
+
}],
|
|
746
|
+
enabled: frame.bottom.visible
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
fill: H.color(frame.bottom.color).brighten(-0.1).get(),
|
|
750
|
+
vertexes: [{
|
|
751
|
+
x: xmm,
|
|
752
|
+
y: ypp,
|
|
753
|
+
z: zmm
|
|
754
|
+
}, {
|
|
755
|
+
x: xmm,
|
|
756
|
+
y: ypp,
|
|
757
|
+
z: zpp
|
|
758
|
+
}, {
|
|
759
|
+
x: xm,
|
|
760
|
+
y: yp,
|
|
761
|
+
z: zp
|
|
762
|
+
}, {
|
|
763
|
+
x: xm,
|
|
764
|
+
y: yp,
|
|
765
|
+
z: zm
|
|
766
|
+
}],
|
|
767
|
+
enabled: frame.bottom.visible && !frame.left.visible
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
fill: H.color(frame.bottom.color).brighten(-0.1).get(),
|
|
771
|
+
vertexes: [{
|
|
772
|
+
x: xpp,
|
|
773
|
+
y: ypp,
|
|
774
|
+
z: zpp
|
|
775
|
+
}, {
|
|
776
|
+
x: xpp,
|
|
777
|
+
y: ypp,
|
|
778
|
+
z: zmm
|
|
779
|
+
}, {
|
|
780
|
+
x: xp,
|
|
781
|
+
y: yp,
|
|
782
|
+
z: zm
|
|
783
|
+
}, {
|
|
784
|
+
x: xp,
|
|
785
|
+
y: yp,
|
|
786
|
+
z: zp
|
|
787
|
+
}],
|
|
788
|
+
enabled: frame.bottom.visible && !frame.right.visible
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
fill: H.color(frame.bottom.color).get(),
|
|
792
|
+
vertexes: [{
|
|
793
|
+
x: xpp,
|
|
794
|
+
y: ypp,
|
|
795
|
+
z: zmm
|
|
796
|
+
}, {
|
|
797
|
+
x: xmm,
|
|
798
|
+
y: ypp,
|
|
799
|
+
z: zmm
|
|
800
|
+
}, {
|
|
801
|
+
x: xm,
|
|
802
|
+
y: yp,
|
|
803
|
+
z: zm
|
|
804
|
+
}, {
|
|
805
|
+
x: xp,
|
|
806
|
+
y: yp,
|
|
807
|
+
z: zm
|
|
808
|
+
}],
|
|
809
|
+
enabled: frame.bottom.visible && !frame.front.visible
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
fill: H.color(frame.bottom.color).get(),
|
|
813
|
+
vertexes: [{
|
|
814
|
+
x: xmm,
|
|
815
|
+
y: ypp,
|
|
816
|
+
z: zpp
|
|
817
|
+
}, {
|
|
818
|
+
x: xpp,
|
|
819
|
+
y: ypp,
|
|
820
|
+
z: zpp
|
|
821
|
+
}, {
|
|
822
|
+
x: xp,
|
|
823
|
+
y: yp,
|
|
824
|
+
z: zp
|
|
825
|
+
}, {
|
|
826
|
+
x: xm,
|
|
827
|
+
y: yp,
|
|
828
|
+
z: zp
|
|
829
|
+
}],
|
|
830
|
+
enabled: frame.bottom.visible && !frame.back.visible
|
|
831
|
+
}]
|
|
832
|
+
});
|
|
833
|
+
this.frameShapes.top[verb]({
|
|
834
|
+
'class': 'highcharts-3d-frame highcharts-3d-frame-top',
|
|
835
|
+
zIndex: frame.top.frontFacing ? -1000 : 1000,
|
|
836
|
+
faces: [{
|
|
837
|
+
fill: H.color(frame.top.color).brighten(0.1).get(),
|
|
838
|
+
vertexes: [{
|
|
839
|
+
x: xmm,
|
|
840
|
+
y: ymm,
|
|
841
|
+
z: zpp
|
|
842
|
+
}, {
|
|
843
|
+
x: xpp,
|
|
844
|
+
y: ymm,
|
|
845
|
+
z: zpp
|
|
846
|
+
}, {
|
|
847
|
+
x: xpp,
|
|
848
|
+
y: ymm,
|
|
849
|
+
z: zmm
|
|
850
|
+
}, {
|
|
851
|
+
x: xmm,
|
|
852
|
+
y: ymm,
|
|
853
|
+
z: zmm
|
|
854
|
+
}],
|
|
855
|
+
enabled: frame.top.visible
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
fill: H.color(frame.top.color).brighten(0.1).get(),
|
|
859
|
+
vertexes: [{
|
|
860
|
+
x: xm,
|
|
861
|
+
y: ym,
|
|
862
|
+
z: zm
|
|
863
|
+
}, {
|
|
864
|
+
x: xp,
|
|
865
|
+
y: ym,
|
|
866
|
+
z: zm
|
|
867
|
+
}, {
|
|
868
|
+
x: xp,
|
|
869
|
+
y: ym,
|
|
870
|
+
z: zp
|
|
871
|
+
}, {
|
|
872
|
+
x: xm,
|
|
873
|
+
y: ym,
|
|
874
|
+
z: zp
|
|
875
|
+
}],
|
|
876
|
+
enabled: frame.top.visible
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
fill: H.color(frame.top.color).brighten(-0.1).get(),
|
|
880
|
+
vertexes: [{
|
|
881
|
+
x: xmm,
|
|
882
|
+
y: ymm,
|
|
883
|
+
z: zpp
|
|
884
|
+
}, {
|
|
885
|
+
x: xmm,
|
|
886
|
+
y: ymm,
|
|
887
|
+
z: zmm
|
|
888
|
+
}, {
|
|
889
|
+
x: xm,
|
|
890
|
+
y: ym,
|
|
891
|
+
z: zm
|
|
892
|
+
}, {
|
|
893
|
+
x: xm,
|
|
894
|
+
y: ym,
|
|
895
|
+
z: zp
|
|
896
|
+
}],
|
|
897
|
+
enabled: frame.top.visible && !frame.left.visible
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
fill: H.color(frame.top.color).brighten(-0.1).get(),
|
|
901
|
+
vertexes: [{
|
|
902
|
+
x: xpp,
|
|
903
|
+
y: ymm,
|
|
904
|
+
z: zmm
|
|
905
|
+
}, {
|
|
906
|
+
x: xpp,
|
|
907
|
+
y: ymm,
|
|
908
|
+
z: zpp
|
|
909
|
+
}, {
|
|
910
|
+
x: xp,
|
|
911
|
+
y: ym,
|
|
912
|
+
z: zp
|
|
913
|
+
}, {
|
|
914
|
+
x: xp,
|
|
915
|
+
y: ym,
|
|
916
|
+
z: zm
|
|
917
|
+
}],
|
|
918
|
+
enabled: frame.top.visible && !frame.right.visible
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
fill: H.color(frame.top.color).get(),
|
|
922
|
+
vertexes: [{
|
|
923
|
+
x: xmm,
|
|
924
|
+
y: ymm,
|
|
925
|
+
z: zmm
|
|
926
|
+
}, {
|
|
927
|
+
x: xpp,
|
|
928
|
+
y: ymm,
|
|
929
|
+
z: zmm
|
|
930
|
+
}, {
|
|
931
|
+
x: xp,
|
|
932
|
+
y: ym,
|
|
933
|
+
z: zm
|
|
934
|
+
}, {
|
|
935
|
+
x: xm,
|
|
936
|
+
y: ym,
|
|
937
|
+
z: zm
|
|
938
|
+
}],
|
|
939
|
+
enabled: frame.top.visible && !frame.front.visible
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
fill: H.color(frame.top.color).get(),
|
|
943
|
+
vertexes: [{
|
|
944
|
+
x: xpp,
|
|
945
|
+
y: ymm,
|
|
946
|
+
z: zpp
|
|
947
|
+
}, {
|
|
948
|
+
x: xmm,
|
|
949
|
+
y: ymm,
|
|
950
|
+
z: zpp
|
|
951
|
+
}, {
|
|
952
|
+
x: xm,
|
|
953
|
+
y: ym,
|
|
954
|
+
z: zp
|
|
955
|
+
}, {
|
|
956
|
+
x: xp,
|
|
957
|
+
y: ym,
|
|
958
|
+
z: zp
|
|
959
|
+
}],
|
|
960
|
+
enabled: frame.top.visible && !frame.back.visible
|
|
961
|
+
}]
|
|
962
|
+
});
|
|
963
|
+
this.frameShapes.left[verb]({
|
|
964
|
+
'class': 'highcharts-3d-frame highcharts-3d-frame-left',
|
|
965
|
+
zIndex: frame.left.frontFacing ? -1000 : 1000,
|
|
966
|
+
faces: [{
|
|
967
|
+
fill: H.color(frame.left.color).brighten(0.1).get(),
|
|
968
|
+
vertexes: [{
|
|
969
|
+
x: xmm,
|
|
970
|
+
y: ypp,
|
|
971
|
+
z: zmm
|
|
972
|
+
}, {
|
|
973
|
+
x: xm,
|
|
974
|
+
y: yp,
|
|
975
|
+
z: zm
|
|
976
|
+
}, {
|
|
977
|
+
x: xm,
|
|
978
|
+
y: yp,
|
|
979
|
+
z: zp
|
|
980
|
+
}, {
|
|
981
|
+
x: xmm,
|
|
982
|
+
y: ypp,
|
|
983
|
+
z: zpp
|
|
984
|
+
}],
|
|
985
|
+
enabled: frame.left.visible && !frame.bottom.visible
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
fill: H.color(frame.left.color).brighten(0.1).get(),
|
|
989
|
+
vertexes: [{
|
|
990
|
+
x: xmm,
|
|
991
|
+
y: ymm,
|
|
992
|
+
z: zpp
|
|
993
|
+
}, {
|
|
994
|
+
x: xm,
|
|
995
|
+
y: ym,
|
|
996
|
+
z: zp
|
|
997
|
+
}, {
|
|
998
|
+
x: xm,
|
|
999
|
+
y: ym,
|
|
1000
|
+
z: zm
|
|
1001
|
+
}, {
|
|
1002
|
+
x: xmm,
|
|
1003
|
+
y: ymm,
|
|
1004
|
+
z: zmm
|
|
1005
|
+
}],
|
|
1006
|
+
enabled: frame.left.visible && !frame.top.visible
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
fill: H.color(frame.left.color).brighten(-0.1).get(),
|
|
1010
|
+
vertexes: [{
|
|
1011
|
+
x: xmm,
|
|
1012
|
+
y: ypp,
|
|
1013
|
+
z: zpp
|
|
1014
|
+
}, {
|
|
1015
|
+
x: xmm,
|
|
1016
|
+
y: ymm,
|
|
1017
|
+
z: zpp
|
|
1018
|
+
}, {
|
|
1019
|
+
x: xmm,
|
|
1020
|
+
y: ymm,
|
|
1021
|
+
z: zmm
|
|
1022
|
+
}, {
|
|
1023
|
+
x: xmm,
|
|
1024
|
+
y: ypp,
|
|
1025
|
+
z: zmm
|
|
1026
|
+
}],
|
|
1027
|
+
enabled: frame.left.visible
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
fill: H.color(frame.left.color).brighten(-0.1).get(),
|
|
1031
|
+
vertexes: [{
|
|
1032
|
+
x: xm,
|
|
1033
|
+
y: ym,
|
|
1034
|
+
z: zp
|
|
1035
|
+
}, {
|
|
1036
|
+
x: xm,
|
|
1037
|
+
y: yp,
|
|
1038
|
+
z: zp
|
|
1039
|
+
}, {
|
|
1040
|
+
x: xm,
|
|
1041
|
+
y: yp,
|
|
1042
|
+
z: zm
|
|
1043
|
+
}, {
|
|
1044
|
+
x: xm,
|
|
1045
|
+
y: ym,
|
|
1046
|
+
z: zm
|
|
1047
|
+
}],
|
|
1048
|
+
enabled: frame.left.visible
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
fill: H.color(frame.left.color).get(),
|
|
1052
|
+
vertexes: [{
|
|
1053
|
+
x: xmm,
|
|
1054
|
+
y: ypp,
|
|
1055
|
+
z: zmm
|
|
1056
|
+
}, {
|
|
1057
|
+
x: xmm,
|
|
1058
|
+
y: ymm,
|
|
1059
|
+
z: zmm
|
|
1060
|
+
}, {
|
|
1061
|
+
x: xm,
|
|
1062
|
+
y: ym,
|
|
1063
|
+
z: zm
|
|
1064
|
+
}, {
|
|
1065
|
+
x: xm,
|
|
1066
|
+
y: yp,
|
|
1067
|
+
z: zm
|
|
1068
|
+
}],
|
|
1069
|
+
enabled: frame.left.visible && !frame.front.visible
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
fill: H.color(frame.left.color).get(),
|
|
1073
|
+
vertexes: [{
|
|
1074
|
+
x: xmm,
|
|
1075
|
+
y: ymm,
|
|
1076
|
+
z: zpp
|
|
1077
|
+
}, {
|
|
1078
|
+
x: xmm,
|
|
1079
|
+
y: ypp,
|
|
1080
|
+
z: zpp
|
|
1081
|
+
}, {
|
|
1082
|
+
x: xm,
|
|
1083
|
+
y: yp,
|
|
1084
|
+
z: zp
|
|
1085
|
+
}, {
|
|
1086
|
+
x: xm,
|
|
1087
|
+
y: ym,
|
|
1088
|
+
z: zp
|
|
1089
|
+
}],
|
|
1090
|
+
enabled: frame.left.visible && !frame.back.visible
|
|
1091
|
+
}]
|
|
1092
|
+
});
|
|
1093
|
+
this.frameShapes.right[verb]({
|
|
1094
|
+
'class': 'highcharts-3d-frame highcharts-3d-frame-right',
|
|
1095
|
+
zIndex: frame.right.frontFacing ? -1000 : 1000,
|
|
1096
|
+
faces: [{
|
|
1097
|
+
fill: H.color(frame.right.color).brighten(0.1).get(),
|
|
1098
|
+
vertexes: [{
|
|
1099
|
+
x: xpp,
|
|
1100
|
+
y: ypp,
|
|
1101
|
+
z: zpp
|
|
1102
|
+
}, {
|
|
1103
|
+
x: xp,
|
|
1104
|
+
y: yp,
|
|
1105
|
+
z: zp
|
|
1106
|
+
}, {
|
|
1107
|
+
x: xp,
|
|
1108
|
+
y: yp,
|
|
1109
|
+
z: zm
|
|
1110
|
+
}, {
|
|
1111
|
+
x: xpp,
|
|
1112
|
+
y: ypp,
|
|
1113
|
+
z: zmm
|
|
1114
|
+
}],
|
|
1115
|
+
enabled: frame.right.visible && !frame.bottom.visible
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
fill: H.color(frame.right.color).brighten(0.1).get(),
|
|
1119
|
+
vertexes: [{
|
|
1120
|
+
x: xpp,
|
|
1121
|
+
y: ymm,
|
|
1122
|
+
z: zmm
|
|
1123
|
+
}, {
|
|
1124
|
+
x: xp,
|
|
1125
|
+
y: ym,
|
|
1126
|
+
z: zm
|
|
1127
|
+
}, {
|
|
1128
|
+
x: xp,
|
|
1129
|
+
y: ym,
|
|
1130
|
+
z: zp
|
|
1131
|
+
}, {
|
|
1132
|
+
x: xpp,
|
|
1133
|
+
y: ymm,
|
|
1134
|
+
z: zpp
|
|
1135
|
+
}],
|
|
1136
|
+
enabled: frame.right.visible && !frame.top.visible
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
fill: H.color(frame.right.color).brighten(-0.1).get(),
|
|
1140
|
+
vertexes: [{
|
|
1141
|
+
x: xp,
|
|
1142
|
+
y: ym,
|
|
1143
|
+
z: zm
|
|
1144
|
+
}, {
|
|
1145
|
+
x: xp,
|
|
1146
|
+
y: yp,
|
|
1147
|
+
z: zm
|
|
1148
|
+
}, {
|
|
1149
|
+
x: xp,
|
|
1150
|
+
y: yp,
|
|
1151
|
+
z: zp
|
|
1152
|
+
}, {
|
|
1153
|
+
x: xp,
|
|
1154
|
+
y: ym,
|
|
1155
|
+
z: zp
|
|
1156
|
+
}],
|
|
1157
|
+
enabled: frame.right.visible
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
fill: H.color(frame.right.color).brighten(-0.1).get(),
|
|
1161
|
+
vertexes: [{
|
|
1162
|
+
x: xpp,
|
|
1163
|
+
y: ypp,
|
|
1164
|
+
z: zmm
|
|
1165
|
+
}, {
|
|
1166
|
+
x: xpp,
|
|
1167
|
+
y: ymm,
|
|
1168
|
+
z: zmm
|
|
1169
|
+
}, {
|
|
1170
|
+
x: xpp,
|
|
1171
|
+
y: ymm,
|
|
1172
|
+
z: zpp
|
|
1173
|
+
}, {
|
|
1174
|
+
x: xpp,
|
|
1175
|
+
y: ypp,
|
|
1176
|
+
z: zpp
|
|
1177
|
+
}],
|
|
1178
|
+
enabled: frame.right.visible
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
fill: H.color(frame.right.color).get(),
|
|
1182
|
+
vertexes: [{
|
|
1183
|
+
x: xpp,
|
|
1184
|
+
y: ymm,
|
|
1185
|
+
z: zmm
|
|
1186
|
+
}, {
|
|
1187
|
+
x: xpp,
|
|
1188
|
+
y: ypp,
|
|
1189
|
+
z: zmm
|
|
1190
|
+
}, {
|
|
1191
|
+
x: xp,
|
|
1192
|
+
y: yp,
|
|
1193
|
+
z: zm
|
|
1194
|
+
}, {
|
|
1195
|
+
x: xp,
|
|
1196
|
+
y: ym,
|
|
1197
|
+
z: zm
|
|
1198
|
+
}],
|
|
1199
|
+
enabled: frame.right.visible && !frame.front.visible
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
fill: H.color(frame.right.color).get(),
|
|
1203
|
+
vertexes: [{
|
|
1204
|
+
x: xpp,
|
|
1205
|
+
y: ypp,
|
|
1206
|
+
z: zpp
|
|
1207
|
+
}, {
|
|
1208
|
+
x: xpp,
|
|
1209
|
+
y: ymm,
|
|
1210
|
+
z: zpp
|
|
1211
|
+
}, {
|
|
1212
|
+
x: xp,
|
|
1213
|
+
y: ym,
|
|
1214
|
+
z: zp
|
|
1215
|
+
}, {
|
|
1216
|
+
x: xp,
|
|
1217
|
+
y: yp,
|
|
1218
|
+
z: zp
|
|
1219
|
+
}],
|
|
1220
|
+
enabled: frame.right.visible && !frame.back.visible
|
|
1221
|
+
}]
|
|
1222
|
+
});
|
|
1223
|
+
this.frameShapes.back[verb]({
|
|
1224
|
+
'class': 'highcharts-3d-frame highcharts-3d-frame-back',
|
|
1225
|
+
zIndex: frame.back.frontFacing ? -1000 : 1000,
|
|
1226
|
+
faces: [{
|
|
1227
|
+
fill: H.color(frame.back.color).brighten(0.1).get(),
|
|
1228
|
+
vertexes: [{
|
|
1229
|
+
x: xpp,
|
|
1230
|
+
y: ypp,
|
|
1231
|
+
z: zpp
|
|
1232
|
+
}, {
|
|
1233
|
+
x: xmm,
|
|
1234
|
+
y: ypp,
|
|
1235
|
+
z: zpp
|
|
1236
|
+
}, {
|
|
1237
|
+
x: xm,
|
|
1238
|
+
y: yp,
|
|
1239
|
+
z: zp
|
|
1240
|
+
}, {
|
|
1241
|
+
x: xp,
|
|
1242
|
+
y: yp,
|
|
1243
|
+
z: zp
|
|
1244
|
+
}],
|
|
1245
|
+
enabled: frame.back.visible && !frame.bottom.visible
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
fill: H.color(frame.back.color).brighten(0.1).get(),
|
|
1249
|
+
vertexes: [{
|
|
1250
|
+
x: xmm,
|
|
1251
|
+
y: ymm,
|
|
1252
|
+
z: zpp
|
|
1253
|
+
}, {
|
|
1254
|
+
x: xpp,
|
|
1255
|
+
y: ymm,
|
|
1256
|
+
z: zpp
|
|
1257
|
+
}, {
|
|
1258
|
+
x: xp,
|
|
1259
|
+
y: ym,
|
|
1260
|
+
z: zp
|
|
1261
|
+
}, {
|
|
1262
|
+
x: xm,
|
|
1263
|
+
y: ym,
|
|
1264
|
+
z: zp
|
|
1265
|
+
}],
|
|
1266
|
+
enabled: frame.back.visible && !frame.top.visible
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
fill: H.color(frame.back.color).brighten(-0.1).get(),
|
|
1270
|
+
vertexes: [{
|
|
1271
|
+
x: xmm,
|
|
1272
|
+
y: ypp,
|
|
1273
|
+
z: zpp
|
|
1274
|
+
}, {
|
|
1275
|
+
x: xmm,
|
|
1276
|
+
y: ymm,
|
|
1277
|
+
z: zpp
|
|
1278
|
+
}, {
|
|
1279
|
+
x: xm,
|
|
1280
|
+
y: ym,
|
|
1281
|
+
z: zp
|
|
1282
|
+
}, {
|
|
1283
|
+
x: xm,
|
|
1284
|
+
y: yp,
|
|
1285
|
+
z: zp
|
|
1286
|
+
}],
|
|
1287
|
+
enabled: frame.back.visible && !frame.left.visible
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
fill: H.color(frame.back.color).brighten(-0.1).get(),
|
|
1291
|
+
vertexes: [{
|
|
1292
|
+
x: xpp,
|
|
1293
|
+
y: ymm,
|
|
1294
|
+
z: zpp
|
|
1295
|
+
}, {
|
|
1296
|
+
x: xpp,
|
|
1297
|
+
y: ypp,
|
|
1298
|
+
z: zpp
|
|
1299
|
+
}, {
|
|
1300
|
+
x: xp,
|
|
1301
|
+
y: yp,
|
|
1302
|
+
z: zp
|
|
1303
|
+
}, {
|
|
1304
|
+
x: xp,
|
|
1305
|
+
y: ym,
|
|
1306
|
+
z: zp
|
|
1307
|
+
}],
|
|
1308
|
+
enabled: frame.back.visible && !frame.right.visible
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
fill: H.color(frame.back.color).get(),
|
|
1312
|
+
vertexes: [{
|
|
1313
|
+
x: xm,
|
|
1314
|
+
y: ym,
|
|
1315
|
+
z: zp
|
|
1316
|
+
}, {
|
|
1317
|
+
x: xp,
|
|
1318
|
+
y: ym,
|
|
1319
|
+
z: zp
|
|
1320
|
+
}, {
|
|
1321
|
+
x: xp,
|
|
1322
|
+
y: yp,
|
|
1323
|
+
z: zp
|
|
1324
|
+
}, {
|
|
1325
|
+
x: xm,
|
|
1326
|
+
y: yp,
|
|
1327
|
+
z: zp
|
|
1328
|
+
}],
|
|
1329
|
+
enabled: frame.back.visible
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
fill: H.color(frame.back.color).get(),
|
|
1333
|
+
vertexes: [{
|
|
1334
|
+
x: xmm,
|
|
1335
|
+
y: ypp,
|
|
1336
|
+
z: zpp
|
|
1337
|
+
}, {
|
|
1338
|
+
x: xpp,
|
|
1339
|
+
y: ypp,
|
|
1340
|
+
z: zpp
|
|
1341
|
+
}, {
|
|
1342
|
+
x: xpp,
|
|
1343
|
+
y: ymm,
|
|
1344
|
+
z: zpp
|
|
1345
|
+
}, {
|
|
1346
|
+
x: xmm,
|
|
1347
|
+
y: ymm,
|
|
1348
|
+
z: zpp
|
|
1349
|
+
}],
|
|
1350
|
+
enabled: frame.back.visible
|
|
1351
|
+
}]
|
|
1352
|
+
});
|
|
1353
|
+
this.frameShapes.front[verb]({
|
|
1354
|
+
'class': 'highcharts-3d-frame highcharts-3d-frame-front',
|
|
1355
|
+
zIndex: frame.front.frontFacing ? -1000 : 1000,
|
|
1356
|
+
faces: [{
|
|
1357
|
+
fill: H.color(frame.front.color).brighten(0.1).get(),
|
|
1358
|
+
vertexes: [{
|
|
1359
|
+
x: xmm,
|
|
1360
|
+
y: ypp,
|
|
1361
|
+
z: zmm
|
|
1362
|
+
}, {
|
|
1363
|
+
x: xpp,
|
|
1364
|
+
y: ypp,
|
|
1365
|
+
z: zmm
|
|
1366
|
+
}, {
|
|
1367
|
+
x: xp,
|
|
1368
|
+
y: yp,
|
|
1369
|
+
z: zm
|
|
1370
|
+
}, {
|
|
1371
|
+
x: xm,
|
|
1372
|
+
y: yp,
|
|
1373
|
+
z: zm
|
|
1374
|
+
}],
|
|
1375
|
+
enabled: frame.front.visible && !frame.bottom.visible
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
fill: H.color(frame.front.color).brighten(0.1).get(),
|
|
1379
|
+
vertexes: [{
|
|
1380
|
+
x: xpp,
|
|
1381
|
+
y: ymm,
|
|
1382
|
+
z: zmm
|
|
1383
|
+
}, {
|
|
1384
|
+
x: xmm,
|
|
1385
|
+
y: ymm,
|
|
1386
|
+
z: zmm
|
|
1387
|
+
}, {
|
|
1388
|
+
x: xm,
|
|
1389
|
+
y: ym,
|
|
1390
|
+
z: zm
|
|
1391
|
+
}, {
|
|
1392
|
+
x: xp,
|
|
1393
|
+
y: ym,
|
|
1394
|
+
z: zm
|
|
1395
|
+
}],
|
|
1396
|
+
enabled: frame.front.visible && !frame.top.visible
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
fill: H.color(frame.front.color).brighten(-0.1).get(),
|
|
1400
|
+
vertexes: [{
|
|
1401
|
+
x: xmm,
|
|
1402
|
+
y: ymm,
|
|
1403
|
+
z: zmm
|
|
1404
|
+
}, {
|
|
1405
|
+
x: xmm,
|
|
1406
|
+
y: ypp,
|
|
1407
|
+
z: zmm
|
|
1408
|
+
}, {
|
|
1409
|
+
x: xm,
|
|
1410
|
+
y: yp,
|
|
1411
|
+
z: zm
|
|
1412
|
+
}, {
|
|
1413
|
+
x: xm,
|
|
1414
|
+
y: ym,
|
|
1415
|
+
z: zm
|
|
1416
|
+
}],
|
|
1417
|
+
enabled: frame.front.visible && !frame.left.visible
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
fill: H.color(frame.front.color).brighten(-0.1).get(),
|
|
1421
|
+
vertexes: [{
|
|
1422
|
+
x: xpp,
|
|
1423
|
+
y: ypp,
|
|
1424
|
+
z: zmm
|
|
1425
|
+
}, {
|
|
1426
|
+
x: xpp,
|
|
1427
|
+
y: ymm,
|
|
1428
|
+
z: zmm
|
|
1429
|
+
}, {
|
|
1430
|
+
x: xp,
|
|
1431
|
+
y: ym,
|
|
1432
|
+
z: zm
|
|
1433
|
+
}, {
|
|
1434
|
+
x: xp,
|
|
1435
|
+
y: yp,
|
|
1436
|
+
z: zm
|
|
1437
|
+
}],
|
|
1438
|
+
enabled: frame.front.visible && !frame.right.visible
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
fill: H.color(frame.front.color).get(),
|
|
1442
|
+
vertexes: [{
|
|
1443
|
+
x: xp,
|
|
1444
|
+
y: ym,
|
|
1445
|
+
z: zm
|
|
1446
|
+
}, {
|
|
1447
|
+
x: xm,
|
|
1448
|
+
y: ym,
|
|
1449
|
+
z: zm
|
|
1450
|
+
}, {
|
|
1451
|
+
x: xm,
|
|
1452
|
+
y: yp,
|
|
1453
|
+
z: zm
|
|
1454
|
+
}, {
|
|
1455
|
+
x: xp,
|
|
1456
|
+
y: yp,
|
|
1457
|
+
z: zm
|
|
1458
|
+
}],
|
|
1459
|
+
enabled: frame.front.visible
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
fill: H.color(frame.front.color).get(),
|
|
1463
|
+
vertexes: [{
|
|
1464
|
+
x: xpp,
|
|
1465
|
+
y: ypp,
|
|
1466
|
+
z: zmm
|
|
1467
|
+
}, {
|
|
1468
|
+
x: xmm,
|
|
1469
|
+
y: ypp,
|
|
1470
|
+
z: zmm
|
|
1471
|
+
}, {
|
|
1472
|
+
x: xmm,
|
|
1473
|
+
y: ymm,
|
|
1474
|
+
z: zmm
|
|
1475
|
+
}, {
|
|
1476
|
+
x: xpp,
|
|
1477
|
+
y: ymm,
|
|
1478
|
+
z: zmm
|
|
1479
|
+
}],
|
|
1480
|
+
enabled: frame.front.visible
|
|
1481
|
+
}]
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Add the required CSS classes for column sides (#6018)
|
|
1487
|
+
* @private
|
|
1488
|
+
*/
|
|
1489
|
+
function onAfterGetContainer() {
|
|
1490
|
+
if (this.styledMode) {
|
|
1491
|
+
this.renderer.definition({
|
|
1492
|
+
tagName: 'style',
|
|
1493
|
+
textContent: '.highcharts-3d-top{' +
|
|
1494
|
+
'filter: url(#highcharts-brighter)' +
|
|
1495
|
+
'}\n' +
|
|
1496
|
+
'.highcharts-3d-side{' +
|
|
1497
|
+
'filter: url(#highcharts-darker)' +
|
|
1498
|
+
'}\n'
|
|
1499
|
+
});
|
|
1500
|
+
// Add add definitions used by brighter and darker faces of the
|
|
1501
|
+
// cuboids.
|
|
1502
|
+
[{
|
|
1503
|
+
name: 'darker',
|
|
1504
|
+
slope: 0.6
|
|
1505
|
+
}, {
|
|
1506
|
+
name: 'brighter',
|
|
1507
|
+
slope: 1.4
|
|
1508
|
+
}].forEach(function (cfg) {
|
|
1509
|
+
this.renderer.definition({
|
|
1510
|
+
tagName: 'filter',
|
|
1511
|
+
id: 'highcharts-' + cfg.name,
|
|
1512
|
+
children: [{
|
|
1513
|
+
tagName: 'feComponentTransfer',
|
|
1514
|
+
children: [{
|
|
1515
|
+
tagName: 'feFuncR',
|
|
1516
|
+
type: 'linear',
|
|
1517
|
+
slope: cfg.slope
|
|
1518
|
+
}, {
|
|
1519
|
+
tagName: 'feFuncG',
|
|
1520
|
+
type: 'linear',
|
|
1521
|
+
slope: cfg.slope
|
|
1522
|
+
}, {
|
|
1523
|
+
tagName: 'feFuncB',
|
|
1524
|
+
type: 'linear',
|
|
1525
|
+
slope: cfg.slope
|
|
1526
|
+
}]
|
|
1527
|
+
}]
|
|
1528
|
+
});
|
|
1529
|
+
}, this);
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Legacy support for HC < 6 to make 'scatter' series in a 3D chart route to
|
|
1534
|
+
* the real 'scatter3d' series type. (#8407)
|
|
1535
|
+
* @private
|
|
1536
|
+
*/
|
|
1537
|
+
function onAfterInit() {
|
|
1538
|
+
var options = this.options;
|
|
1539
|
+
if (this.is3d()) {
|
|
1540
|
+
(options.series || []).forEach(function (s) {
|
|
1541
|
+
var type = s.type ||
|
|
1542
|
+
options.chart.type ||
|
|
1543
|
+
options.chart.defaultSeriesType;
|
|
1544
|
+
if (type === 'scatter') {
|
|
1545
|
+
s.type = 'scatter3d';
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* @private
|
|
1552
|
+
*/
|
|
1553
|
+
function onAfterSetChartSize() {
|
|
1554
|
+
var chart = this, options3d = chart.options.chart.options3d;
|
|
1555
|
+
if (chart.chart3d &&
|
|
1556
|
+
chart.is3d()) {
|
|
1557
|
+
// Add a 0-360 normalisation for alfa and beta angles in 3d graph
|
|
1558
|
+
if (options3d) {
|
|
1559
|
+
options3d.alpha = options3d.alpha % 360 + (options3d.alpha >= 0 ? 0 : 360);
|
|
1560
|
+
options3d.beta = options3d.beta % 360 + (options3d.beta >= 0 ? 0 : 360);
|
|
1561
|
+
}
|
|
1562
|
+
var inverted = chart.inverted, clipBox = chart.clipBox, margin = chart.margin, x = inverted ? 'y' : 'x', y = inverted ? 'x' : 'y', w = inverted ? 'height' : 'width', h = inverted ? 'width' : 'height';
|
|
1563
|
+
clipBox[x] = -(margin[3] || 0);
|
|
1564
|
+
clipBox[y] = -(margin[0] || 0);
|
|
1565
|
+
clipBox[w] =
|
|
1566
|
+
chart.chartWidth + (margin[3] || 0) + (margin[1] || 0);
|
|
1567
|
+
clipBox[h] =
|
|
1568
|
+
chart.chartHeight + (margin[0] || 0) + (margin[2] || 0);
|
|
1569
|
+
// Set scale, used later in perspective method():
|
|
1570
|
+
// getScale uses perspective, so scale3d has to be reset.
|
|
1571
|
+
chart.scale3d = 1;
|
|
1572
|
+
if (options3d.fitToPlot === true) {
|
|
1573
|
+
chart.scale3d = chart.chart3d.getScale(options3d.depth);
|
|
1574
|
+
}
|
|
1575
|
+
// Recalculate the 3d frame with every call of setChartSize,
|
|
1576
|
+
// instead of doing it after every redraw(). It avoids ticks
|
|
1577
|
+
// and axis title outside of chart.
|
|
1578
|
+
chart.chart3d.frame3d = chart.chart3d.get3dFrame(); // #7942
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
/**
|
|
1582
|
+
* @private
|
|
1583
|
+
*/
|
|
1584
|
+
function onBeforeRedraw() {
|
|
1585
|
+
if (this.is3d()) {
|
|
1586
|
+
// Set to force a redraw of all elements
|
|
1587
|
+
this.isDirtyBox = true;
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* @private
|
|
1592
|
+
*/
|
|
1593
|
+
function onBeforeRender() {
|
|
1594
|
+
if (this.chart3d && this.is3d()) {
|
|
1595
|
+
this.chart3d.frame3d = this.chart3d.get3dFrame();
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* @private
|
|
1600
|
+
*/
|
|
1601
|
+
function onInit() {
|
|
1602
|
+
if (!this.chart3d) {
|
|
1603
|
+
this.chart3d = new Composition(this);
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* @private
|
|
1608
|
+
*/
|
|
1609
|
+
function wrapIsInsidePlot(proceed) {
|
|
1610
|
+
return this.is3d() || proceed.apply(this, [].slice.call(arguments, 1));
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* Draw the series in the reverse order (#3803, #3917)
|
|
1614
|
+
* @private
|
|
1615
|
+
*/
|
|
1616
|
+
function wrapRenderSeries(proceed) {
|
|
1617
|
+
var series, i = this.series.length;
|
|
1618
|
+
if (this.is3d()) {
|
|
1619
|
+
while (i--) {
|
|
1620
|
+
series = this.series[i];
|
|
1621
|
+
series.translate();
|
|
1622
|
+
series.render();
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
else {
|
|
1626
|
+
proceed.call(this);
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* @private
|
|
1631
|
+
*/
|
|
1632
|
+
function wrapSetClassName(proceed) {
|
|
1633
|
+
proceed.apply(this, [].slice.call(arguments, 1));
|
|
1634
|
+
if (this.is3d()) {
|
|
1635
|
+
this.container.className += ' highcharts-3d-chart';
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
})(Chart3D || (Chart3D = {}));
|
|
1639
|
+
Chart3D.compose(Chart, Fx);
|
|
1640
|
+
ZAxis.ZChartComposition.compose(Chart);
|
|
1641
|
+
Axis3D.compose(Axis);
|
|
1642
|
+
/**
|
|
1643
|
+
* Note: As of v5.0.12, `frame.left` or `frame.right` should be used instead.
|
|
1644
|
+
*
|
|
1645
|
+
* The side for the frame around a 3D chart.
|
|
1646
|
+
*
|
|
1647
|
+
* @deprecated
|
|
1648
|
+
* @since 4.0
|
|
1649
|
+
* @product highcharts
|
|
1650
|
+
* @requires highcharts-3d
|
|
1651
|
+
* @apioption chart.options3d.frame.side
|
|
1652
|
+
*/
|
|
1653
|
+
/**
|
|
1654
|
+
* The color of the panel.
|
|
1655
|
+
*
|
|
1656
|
+
* @deprecated
|
|
1657
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
1658
|
+
* @default transparent
|
|
1659
|
+
* @since 4.0
|
|
1660
|
+
* @product highcharts
|
|
1661
|
+
* @apioption chart.options3d.frame.side.color
|
|
1662
|
+
*/
|
|
1663
|
+
/**
|
|
1664
|
+
* The thickness of the panel.
|
|
1665
|
+
*
|
|
1666
|
+
* @deprecated
|
|
1667
|
+
* @type {number}
|
|
1668
|
+
* @default 1
|
|
1669
|
+
* @since 4.0
|
|
1670
|
+
* @product highcharts
|
|
1671
|
+
* @apioption chart.options3d.frame.side.size
|
|
1672
|
+
*/
|
|
1673
|
+
''; // adds doclets above to transpiled file
|
|
1674
|
+
export default Chart3D;
|