highcharts 11.3.0 → 11.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bower.json +1 -1
- package/css/annotations/popup.css +27 -19
- package/css/stocktools/gui.css +19 -7
- package/es-modules/Accessibility/A11yI18n.js +4 -6
- package/es-modules/Accessibility/Accessibility.js +8 -6
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +11 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +4 -4
- package/es-modules/Accessibility/Components/MenuComponent.js +3 -6
- package/es-modules/Accessibility/Components/NavigatorComponent.js +6 -3
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -7
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +18 -3
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +5 -3
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +4 -4
- package/es-modules/Accessibility/FocusBorder.js +5 -5
- package/es-modules/Accessibility/HighContrastMode.js +22 -13
- package/es-modules/Accessibility/HighContrastTheme.js +2 -6
- package/es-modules/Accessibility/KeyboardNavigation.js +17 -8
- package/es-modules/Accessibility/Options/A11yDefaults.js +11 -1
- package/es-modules/Accessibility/ProxyElement.js +4 -4
- package/es-modules/Accessibility/ProxyProvider.js +8 -2
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +8 -0
- package/es-modules/Accessibility/Utils/EventProvider.js +9 -0
- package/es-modules/Core/Animation/Fx.js +3 -3
- package/es-modules/Core/Axis/Axis.js +43 -97
- package/es-modules/Core/Axis/Axis3DComposition.js +5 -5
- package/es-modules/Core/Axis/Axis3DDefaults.js +1 -1
- package/es-modules/Core/Axis/AxisDefaults.js +18 -7
- package/es-modules/Core/Axis/BrokenAxis.js +4 -6
- package/es-modules/Core/Axis/Color/ColorAxis.js +2 -1
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -5
- package/es-modules/Core/Axis/DateTimeAxis.js +3 -5
- package/es-modules/Core/Axis/GridAxis.js +7 -7
- package/es-modules/Core/Axis/LogarithmicAxis.js +2 -4
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +26 -22
- package/es-modules/Core/Axis/OrdinalAxis.js +97 -53
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +4 -5
- package/es-modules/Core/Axis/RadialAxis.js +5 -5
- package/es-modules/Core/Axis/ScrollbarAxis.js +2 -2
- package/es-modules/Core/Axis/Stacking/StackItem.js +8 -4
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +3 -5
- package/es-modules/Core/Axis/Tick.js +16 -7
- package/es-modules/Core/Axis/Tick3DComposition.js +2 -2
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +4 -8
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +3 -6
- package/es-modules/Core/Axis/WaterfallAxis.js +3 -3
- package/es-modules/Core/Axis/ZAxis.js +6 -11
- package/es-modules/Core/Chart/Chart.js +201 -176
- package/es-modules/Core/Chart/Chart3D.js +1 -1
- package/es-modules/Core/Chart/ChartDefaults.js +7 -0
- package/es-modules/Core/Chart/GanttChart.js +2 -2
- package/es-modules/Core/Chart/MapChart.js +12 -2
- package/es-modules/Core/Chart/StockChart.js +12 -11
- package/es-modules/Core/Color/Color.js +3 -3
- package/es-modules/Core/Color/Palettes.js +2 -2
- package/es-modules/Core/Defaults.js +18 -15
- package/es-modules/Core/Geometry/CircleUtilities.js +3 -3
- package/es-modules/Core/Globals.js +2 -2
- package/es-modules/Core/HttpUtilities.js +4 -4
- package/es-modules/Core/Legend/Legend.js +6 -6
- package/es-modules/Core/MSPointer.js +7 -7
- package/es-modules/Core/Pointer.js +230 -245
- package/es-modules/Core/Renderer/HTML/AST.js +1 -1
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +213 -26
- package/es-modules/Core/Renderer/RendererUtilities.js +1 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +85 -52
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +14 -11
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +17 -14
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +8 -7
- package/es-modules/Core/Renderer/SVG/Symbols.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
- package/es-modules/Core/Responsive.js +5 -6
- package/es-modules/Core/Series/DataLabel.js +70 -90
- package/es-modules/Core/Series/DataSeriesComposition.js +1 -1
- package/es-modules/Core/Series/DataSeriesConverter.js +2 -2
- package/es-modules/Core/Series/Point.js +48 -40
- package/es-modules/Core/Series/Series.js +61 -51
- package/es-modules/Core/Series/Series3D.js +2 -2
- package/es-modules/Core/Series/SeriesRegistry.js +10 -2
- package/es-modules/Core/Templating.js +1 -1
- package/es-modules/Core/Time.js +12 -7
- package/es-modules/Core/Tooltip.js +19 -17
- package/es-modules/Core/Utilities.js +54 -26
- package/es-modules/Data/Connectors/CSVConnector.js +2 -2
- package/es-modules/Data/Connectors/DataConnector.js +4 -2
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +2 -2
- package/es-modules/Data/Connectors/HTMLTableConnector.js +2 -2
- package/es-modules/Data/Connectors/JSONConnector.js +3 -5
- package/es-modules/Data/Converters/CSVConverter.js +1 -3
- package/es-modules/Data/Converters/DataConverter.js +8 -2
- package/es-modules/Data/Converters/HTMLTableConverter.js +1 -3
- package/es-modules/Data/Converters/JSONConverter.js +1 -0
- package/es-modules/Data/DataTable.js +1 -2
- package/es-modules/Data/Formula/FormulaProcessor.js +4 -2
- package/es-modules/Data/Modifiers/DataModifier.js +15 -3
- package/es-modules/Extensions/Annotations/Annotation.js +6 -7
- package/es-modules/Extensions/Annotations/AnnotationChart.js +4 -5
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +4 -4
- package/es-modules/Extensions/Annotations/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/ControlTarget.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/Controllable.js +7 -3
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +3 -3
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +8 -9
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -4
- package/es-modules/Extensions/Annotations/EventEmitter.js +6 -6
- package/es-modules/Extensions/Annotations/NavigationBindings.js +29 -18
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +6 -6
- package/es-modules/Extensions/Annotations/Popup/Popup.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +10 -6
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupIndicators.js +31 -31
- package/es-modules/Extensions/Annotations/Popup/PopupTabs.js +1 -1
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +14 -11
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +1 -1
- package/es-modules/Extensions/ArrowSymbols.js +7 -13
- package/es-modules/Extensions/Boost/Boost.js +39 -7
- package/es-modules/Extensions/Boost/BoostChart.js +4 -4
- package/es-modules/Extensions/Boost/BoostSeries.js +58 -13
- package/es-modules/Extensions/Boost/WGLRenderer.js +3 -3
- package/es-modules/Extensions/Boost/WGLVertexBuffer.js +1 -1
- package/es-modules/Extensions/BoostCanvas.js +5 -4
- package/es-modules/Extensions/BorderRadius.js +5 -4
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +9 -9
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +11 -11
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +1 -1
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +8 -9
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +1 -1
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +6 -7
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/Debugger/ErrorMessages.js +2 -2
- package/es-modules/Extensions/DragPanes/AxisResizer.js +13 -16
- package/es-modules/Extensions/DragPanes/DragPanes.js +2 -4
- package/es-modules/Extensions/DraggablePoints/DragDropDefaults.js +2 -1
- package/es-modules/Extensions/DraggablePoints/DragDropUtilities.js +1 -1
- package/es-modules/Extensions/DraggablePoints/DraggableChart.js +4 -4
- package/es-modules/Extensions/DraggablePoints/DraggablePoints.js +8 -9
- package/es-modules/Extensions/Drilldown/Drilldown.js +11 -9
- package/es-modules/Extensions/Drilldown/DrilldownSeries.js +5 -6
- package/es-modules/Extensions/ExportData/ExportData.js +27 -18
- package/es-modules/Extensions/Exporting/Exporting.js +25 -20
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +1 -1
- package/es-modules/Extensions/Exporting/Fullscreen.js +5 -10
- package/es-modules/Extensions/MarkerClusters/MarkerClusterScatter.js +26 -21
- package/es-modules/Extensions/MarkerClusters/MarkerClusterSymbols.js +2 -12
- package/es-modules/Extensions/MarkerClusters/MarkerClusters.js +3 -3
- package/es-modules/Extensions/MouseWheelZoom/MouseWheelZoom.js +51 -161
- package/es-modules/Extensions/NoDataToDisplay/NoDataToDisplay.js +3 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -6
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/OverlappingDataLabels.js +21 -49
- package/es-modules/Extensions/Pane/PaneComposition.js +3 -5
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +2 -4
- package/es-modules/Extensions/ParallelCoordinates/ParallelCoordinates.js +5 -6
- package/es-modules/Extensions/ParallelCoordinates/ParallelSeries.js +1 -1
- package/es-modules/Extensions/PatternFill.js +19 -22
- package/es-modules/Extensions/PriceIndication.js +1 -1
- package/es-modules/Extensions/ScrollablePlotArea.js +218 -292
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +26 -18
- package/es-modules/Extensions/Sonification/Options.js +1 -0
- package/es-modules/Extensions/Sonification/SonificationSpeaker.js +2 -2
- package/es-modules/Extensions/Sonification/SynthPatch.js +3 -3
- package/es-modules/Extensions/StaticScale.js +3 -5
- package/es-modules/Gantt/Legacy.js +1 -1
- package/es-modules/Gantt/Pathfinder.js +2 -2
- package/es-modules/Gantt/PathfinderComposition.js +3 -5
- package/es-modules/Gantt/Tree.js +3 -3
- package/es-modules/Maps/GeoJSONComposition.js +20 -13
- package/es-modules/Maps/MapNavigation.js +2 -2
- package/es-modules/Maps/MapPointer.js +3 -19
- package/es-modules/Maps/MapSymbols.js +3 -9
- package/es-modules/Maps/MapView.js +134 -74
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +5 -4
- package/es-modules/Series/Area/AreaSeries.js +2 -4
- package/es-modules/Series/Area3D/Area3DSeries.js +1 -1
- package/es-modules/Series/AreaRange/AreaRangePoint.js +2 -2
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +2 -3
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +1 -1
- package/es-modules/Series/Bar/BarSeries.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +1 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +4 -0
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +1 -1
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +2 -2
- package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
- package/es-modules/Series/Bubble/BubbleSeries.js +1 -1
- package/es-modules/Series/Bullet/BulletSeriesDefaults.js +2 -2
- package/es-modules/Series/Candlestick/CandlestickSeries.js +2 -2
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +1 -5
- package/es-modules/Series/ColorMapComposition.js +1 -1
- package/es-modules/Series/Column/ColumnDataLabel.js +2 -2
- package/es-modules/Series/Column/ColumnSeries.js +20 -22
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +1 -1
- package/es-modules/Series/Column3D/Column3DComposition.js +1 -1
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
- package/es-modules/Series/Cylinder/CylinderComposition.js +9 -9
- package/es-modules/Series/DataModifyComposition.js +5 -5
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +3 -2
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +1 -1
- package/es-modules/Series/DragNodesComposition.js +7 -7
- package/es-modules/Series/DrawPointUtilities.js +0 -2
- package/es-modules/Series/Dumbbell/DumbbellSeriesDefaults.js +1 -1
- package/es-modules/Series/Funnel/FunnelSeries.js +1 -1
- package/es-modules/Series/Funnel3D/Funnel3DComposition.js +6 -6
- package/es-modules/Series/Funnel3D/Funnel3DSeriesDefaults.js +2 -2
- package/es-modules/Series/Funnel3D/SVGElement3DFunnel.js +1 -1
- package/es-modules/Series/Gantt/GanttSeries.js +0 -1
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +5 -5
- package/es-modules/Series/GraphLayoutComposition.js +1 -1
- package/es-modules/Series/Heatmap/HeatmapSeries.js +2 -2
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +3 -3
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +1 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +2 -2
- package/es-modules/Series/Item/ItemSeries.js +1 -1
- package/es-modules/Series/Line/LineSeries.js +1 -1
- package/es-modules/Series/Lollipop/LollipopSeries.js +3 -1
- package/es-modules/Series/Map/MapPoint.js +5 -1
- package/es-modules/Series/Map/MapSeries.js +32 -7
- package/es-modules/Series/Map/MapSeriesDefaults.js +5 -3
- package/es-modules/Series/Networkgraph/EulerIntegration.js +5 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +4 -4
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +5 -5
- package/es-modules/Series/Networkgraph/QuadTree.js +1 -1
- package/es-modules/Series/Networkgraph/QuadTreeNode.js +1 -1
- package/es-modules/Series/Networkgraph/VerletIntegration.js +9 -9
- package/es-modules/Series/NodesComposition.js +1 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +1 -1
- package/es-modules/Series/OnSeriesComposition.js +1 -1
- package/es-modules/Series/Organization/OrganizationPoint.js +1 -1
- package/es-modules/Series/Organization/OrganizationSeries.js +22 -10
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +15 -2
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +3 -5
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +6 -10
- package/es-modules/Series/Pictorial/PictorialSeries.js +2 -2
- package/es-modules/Series/Pie/PieDataLabel.js +2 -2
- package/es-modules/Series/Pie/PiePoint.js +1 -1
- package/es-modules/Series/Pie/PieSeries.js +10 -1
- package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +2 -2
- package/es-modules/Series/PolarComposition.js +22 -20
- package/es-modules/Series/Sankey/SankeyColumnComposition.js +1 -1
- package/es-modules/Series/Sankey/SankeySeries.js +8 -8
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +57 -13
- package/es-modules/Series/SeriesOnPointComposition.js +3 -3
- package/es-modules/Series/Spline/SplineSeries.js +1 -1
- package/es-modules/Series/Sunburst/SunburstPoint.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +2 -7
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +3 -3
- package/es-modules/Series/Sunburst/SunburstUtilities.js +1 -1
- package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +23 -25
- package/es-modules/Series/Tilemap/TilemapSeries.js +2 -2
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -2
- package/es-modules/Series/TreeUtilities.js +23 -1
- package/es-modules/Series/Treegraph/TreegraphLayout.js +7 -11
- package/es-modules/Series/Treegraph/TreegraphPoint.js +1 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +8 -8
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +39 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +4 -2
- package/es-modules/Series/Treemap/TreemapUtilities.js +0 -7
- package/es-modules/Series/Variwide/VariwideComposition.js +6 -2
- package/es-modules/Series/Variwide/VariwideSeries.js +1 -1
- package/es-modules/Series/Venn/VennSeries.js +4 -4
- package/es-modules/Series/Venn/VennUtils.js +5 -6
- package/es-modules/Series/Waterfall/WaterfallSeriesDefaults.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +1 -1
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -4
- package/es-modules/Series/XRange/XRangePoint.js +2 -2
- package/es-modules/Series/XRange/XRangeSeries.js +1 -1
- package/es-modules/Shared/BaseForm.js +1 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +3 -1
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +2 -2
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +7 -7
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +9 -9
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -2
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +16 -17
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +4 -5
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +5 -5
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +188 -0
- package/es-modules/Stock/Navigator/Navigator.js +42 -27
- package/es-modules/Stock/Navigator/NavigatorComposition.js +10 -149
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +16 -2
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +334 -0
- package/es-modules/Stock/Navigator/StandaloneNavigatorDefaults.js +64 -0
- package/es-modules/Stock/RangeSelector/RangeSelector.js +28 -16
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +2 -2
- package/es-modules/Stock/Scrollbar/Scrollbar.js +10 -10
- package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -3
- package/es-modules/Stock/StockTools/StockToolbar.js +6 -5
- package/es-modules/Stock/StockTools/StockTools.js +10 -13
- package/es-modules/Stock/StockTools/StockToolsBindings.js +35 -35
- package/es-modules/Stock/StockTools/StockToolsDefaults.js +2 -1
- package/es-modules/Stock/StockTools/StockToolsGui.js +7 -8
- package/es-modules/Stock/StockTools/StockToolsUtilities.js +8 -9
- package/es-modules/Stock/Utilities/StockUtilities.js +41 -0
- package/es-modules/masters/highcharts-3d.src.js +2 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +2 -1
- package/es-modules/masters/highcharts.src.js +41 -40
- 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 +3 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +3 -1
- package/es-modules/masters/indicators/ao.src.js +3 -1
- package/es-modules/masters/indicators/apo.src.js +3 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +3 -1
- package/es-modules/masters/indicators/aroon.src.js +3 -1
- package/es-modules/masters/indicators/atr.src.js +3 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +3 -1
- package/es-modules/masters/indicators/cci.src.js +3 -1
- package/es-modules/masters/indicators/chaikin.src.js +3 -1
- package/es-modules/masters/indicators/cmf.src.js +3 -1
- package/es-modules/masters/indicators/cmo.src.js +3 -1
- package/es-modules/masters/indicators/dema.src.js +3 -1
- package/es-modules/masters/indicators/disparity-index.src.js +3 -1
- package/es-modules/masters/indicators/dmi.src.js +3 -1
- package/es-modules/masters/indicators/dpo.src.js +3 -1
- package/es-modules/masters/indicators/ema.src.js +2 -0
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +3 -1
- package/es-modules/masters/indicators/indicators-all.src.js +3 -1
- package/es-modules/masters/indicators/indicators.src.js +7 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +3 -1
- package/es-modules/masters/indicators/klinger.src.js +3 -1
- package/es-modules/masters/indicators/macd.src.js +3 -1
- package/es-modules/masters/indicators/mfi.src.js +3 -1
- package/es-modules/masters/indicators/momentum.src.js +3 -1
- package/es-modules/masters/indicators/natr.src.js +3 -1
- package/es-modules/masters/indicators/obv.src.js +3 -1
- package/es-modules/masters/indicators/pivot-points.src.js +3 -1
- package/es-modules/masters/indicators/ppo.src.js +3 -1
- package/es-modules/masters/indicators/price-channel.src.js +3 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +3 -1
- package/es-modules/masters/indicators/psar.src.js +3 -1
- package/es-modules/masters/indicators/regressions.src.js +3 -1
- package/es-modules/masters/indicators/roc.src.js +3 -1
- package/es-modules/masters/indicators/rsi.src.js +3 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +3 -1
- package/es-modules/masters/indicators/stochastic.src.js +3 -1
- package/es-modules/masters/indicators/supertrend.src.js +3 -1
- package/es-modules/masters/indicators/tema.src.js +3 -1
- package/es-modules/masters/indicators/trendline.src.js +3 -1
- package/es-modules/masters/indicators/trix.src.js +3 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +3 -1
- package/es-modules/masters/indicators/vwap.src.js +3 -1
- package/es-modules/masters/indicators/williams-r.src.js +3 -1
- package/es-modules/masters/indicators/wma.src.js +3 -1
- package/es-modules/masters/indicators/zigzag.src.js +3 -1
- package/es-modules/masters/modules/accessibility.src.js +4 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +3 -5
- package/es-modules/masters/modules/annotations.src.js +6 -3
- package/es-modules/masters/modules/arc-diagram.src.js +3 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +2 -1
- package/es-modules/masters/modules/boost-canvas.src.js +2 -1
- package/es-modules/masters/modules/boost.src.js +3 -2
- package/es-modules/masters/modules/broken-axis.src.js +4 -3
- package/es-modules/masters/modules/bullet.src.js +3 -1
- package/es-modules/masters/modules/coloraxis.src.js +4 -3
- package/es-modules/masters/modules/current-date-indicator.src.js +2 -1
- package/es-modules/masters/modules/cylinder.src.js +3 -1
- package/es-modules/masters/modules/data-tools.src.js +9 -8
- package/es-modules/masters/modules/data.src.js +9 -8
- package/es-modules/masters/modules/datagrouping.src.js +7 -5
- package/es-modules/masters/modules/debugger.src.js +3 -2
- package/es-modules/masters/modules/dependency-wheel.src.js +3 -1
- package/es-modules/masters/modules/dotplot.src.js +3 -1
- package/es-modules/masters/modules/drag-panes.src.js +2 -1
- package/es-modules/masters/modules/draggable-points.src.js +2 -1
- package/es-modules/masters/modules/drilldown.src.js +3 -2
- package/es-modules/masters/modules/dumbbell.src.js +3 -1
- package/es-modules/masters/modules/export-data.src.js +5 -4
- package/es-modules/masters/modules/exporting.src.js +6 -5
- package/es-modules/masters/modules/flowmap.src.js +3 -1
- package/es-modules/masters/modules/full-screen.src.js +4 -3
- package/es-modules/masters/modules/funnel.src.js +2 -1
- package/es-modules/masters/modules/funnel3d.src.js +4 -3
- package/es-modules/masters/modules/gantt.src.js +15 -17
- package/es-modules/masters/modules/geoheatmap.src.js +3 -1
- package/es-modules/masters/modules/grid-axis.src.js +2 -1
- package/es-modules/masters/modules/heatmap.src.js +3 -5
- package/es-modules/masters/modules/heikinashi.src.js +2 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +3 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +3 -1
- package/es-modules/masters/modules/item-series.src.js +3 -1
- package/es-modules/masters/modules/lollipop.src.js +3 -1
- package/es-modules/masters/modules/map.src.js +15 -10
- package/es-modules/masters/modules/marker-clusters.src.js +2 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +4 -2
- package/es-modules/masters/modules/navigator.src.d.ts +1 -0
- package/es-modules/masters/modules/navigator.src.js +19 -0
- package/es-modules/masters/modules/networkgraph.src.js +2 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +2 -1
- package/es-modules/masters/modules/offline-exporting.src.js +4 -3
- package/es-modules/masters/modules/organization.src.js +3 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +4 -2
- package/es-modules/masters/modules/parallel-coordinates.src.js +2 -1
- package/es-modules/masters/modules/pareto.src.js +3 -1
- package/es-modules/masters/modules/pathfinder.src.js +4 -3
- package/es-modules/masters/modules/pattern-fill.src.js +2 -1
- package/es-modules/masters/modules/pictorial.src.js +3 -1
- package/es-modules/masters/modules/price-indicator.src.js +2 -1
- package/es-modules/masters/modules/pyramid3d.src.js +3 -1
- package/es-modules/masters/modules/sankey.src.js +3 -1
- package/es-modules/masters/modules/series-label.src.js +2 -1
- package/es-modules/masters/modules/series-on-point.src.js +2 -1
- package/es-modules/masters/modules/solid-gauge.src.js +3 -1
- package/es-modules/masters/modules/sonification.src.js +2 -1
- package/es-modules/masters/modules/static-scale.src.js +2 -1
- package/es-modules/masters/modules/stock-tools.src.js +5 -3
- package/es-modules/masters/modules/stock.src.js +20 -15
- package/es-modules/masters/modules/streamgraph.src.js +3 -1
- package/es-modules/masters/modules/sunburst.src.js +4 -3
- package/es-modules/masters/modules/tiledwebmap.src.js +5 -4
- package/es-modules/masters/modules/tilemap.src.js +2 -1
- package/es-modules/masters/modules/timeline.src.js +3 -1
- package/es-modules/masters/modules/treegraph.src.js +3 -1
- package/es-modules/masters/modules/treegrid.src.js +2 -2
- package/es-modules/masters/modules/treemap.src.js +5 -4
- package/es-modules/masters/modules/variable-pie.src.js +3 -1
- package/es-modules/masters/modules/variwide.src.js +2 -1
- package/es-modules/masters/modules/vector.src.js +3 -1
- package/es-modules/masters/modules/venn.src.js +3 -1
- package/es-modules/masters/modules/windbarb.src.js +3 -1
- package/es-modules/masters/modules/wordcloud.src.js +3 -1
- package/es-modules/masters/modules/xrange.src.js +2 -1
- package/es-modules/masters/standalone-navigator.src.js +13 -0
- package/es-modules/masters/themes/avocado.src.js +2 -1
- package/es-modules/masters/themes/brand-dark.src.js +2 -1
- package/es-modules/masters/themes/brand-light.src.js +2 -1
- package/es-modules/masters/themes/dark-blue.src.js +2 -1
- package/es-modules/masters/themes/dark-green.src.js +2 -1
- package/es-modules/masters/themes/dark-unica.src.js +2 -1
- package/es-modules/masters/themes/gray.src.js +2 -1
- package/es-modules/masters/themes/grid-light.src.js +2 -1
- package/es-modules/masters/themes/grid.src.js +2 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +2 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +2 -1
- package/es-modules/masters/themes/sand-signika.src.js +2 -1
- package/es-modules/masters/themes/skies.src.js +2 -1
- package/es-modules/masters/themes/sunset.src.js +2 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -0
- package/globals.d.ts +9 -0
- package/globals.src.d.ts +9 -0
- package/highcharts-3d.js +3 -3
- package/highcharts-3d.src.js +32 -33
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +5703 -5639
- package/highcharts-more.d.ts +4 -0
- package/highcharts-more.js +3 -3
- package/highcharts-more.src.d.ts +4 -0
- package/highcharts-more.src.js +88 -87
- package/highcharts.d.ts +834 -5365
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +834 -5365
- package/highcharts.src.js +1583 -1682
- package/highmaps.js +4 -4
- package/highmaps.src.js +1837 -1835
- package/highstock.js +4 -4
- package/highstock.src.js +12488 -12510
- package/indicators/acceleration-bands.js +3 -3
- package/indicators/acceleration-bands.src.js +12 -11
- package/indicators/accumulation-distribution.js +3 -3
- package/indicators/accumulation-distribution.src.js +6 -3
- package/indicators/ao.js +3 -3
- package/indicators/ao.src.js +3 -2
- package/indicators/apo.js +3 -3
- package/indicators/apo.src.js +4 -3
- package/indicators/aroon-oscillator.js +3 -3
- package/indicators/aroon-oscillator.src.js +12 -11
- package/indicators/aroon.js +3 -3
- package/indicators/aroon.src.js +13 -12
- package/indicators/atr.js +3 -3
- package/indicators/atr.src.js +3 -2
- package/indicators/bollinger-bands.js +3 -3
- package/indicators/bollinger-bands.src.js +12 -11
- package/indicators/cci.js +3 -3
- package/indicators/cci.src.js +3 -2
- package/indicators/chaikin.js +3 -3
- package/indicators/chaikin.src.js +7 -4
- package/indicators/cmf.js +3 -3
- package/indicators/cmf.src.js +4 -3
- package/indicators/cmo.js +3 -3
- package/indicators/cmo.src.js +5 -4
- package/indicators/dema.js +3 -3
- package/indicators/dema.src.js +3 -2
- package/indicators/disparity-index.js +3 -3
- package/indicators/disparity-index.src.js +3 -2
- package/indicators/dmi.js +3 -3
- package/indicators/dmi.src.js +12 -11
- package/indicators/dpo.js +3 -3
- package/indicators/dpo.src.js +4 -3
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +2 -1
- package/indicators/ichimoku-kinko-hyo.js +3 -3
- package/indicators/ichimoku-kinko-hyo.src.js +3 -2
- package/indicators/indicators-all.js +3 -3
- package/indicators/indicators-all.src.js +63 -60
- package/indicators/indicators.js +3 -3
- package/indicators/indicators.src.js +286 -3
- package/indicators/keltner-channels.js +3 -3
- package/indicators/keltner-channels.src.js +12 -11
- package/indicators/klinger.js +3 -3
- package/indicators/klinger.src.js +13 -12
- package/indicators/macd.js +3 -3
- package/indicators/macd.src.js +3 -2
- package/indicators/mfi.js +3 -3
- package/indicators/mfi.src.js +3 -2
- package/indicators/momentum.js +3 -3
- package/indicators/momentum.src.js +3 -2
- package/indicators/natr.js +3 -3
- package/indicators/natr.src.js +3 -2
- package/indicators/obv.js +3 -3
- package/indicators/obv.src.js +4 -3
- package/indicators/pivot-points.js +3 -3
- package/indicators/pivot-points.src.js +5 -4
- package/indicators/ppo.js +3 -3
- package/indicators/ppo.src.js +4 -3
- package/indicators/price-channel.js +3 -3
- package/indicators/price-channel.src.js +12 -11
- package/indicators/price-envelopes.js +3 -3
- package/indicators/price-envelopes.src.js +12 -11
- package/indicators/psar.js +3 -3
- package/indicators/psar.src.js +3 -2
- package/indicators/regressions.js +3 -3
- package/indicators/regressions.src.js +10 -9
- package/indicators/roc.js +3 -3
- package/indicators/roc.src.js +3 -2
- package/indicators/rsi.js +3 -3
- package/indicators/rsi.src.js +3 -2
- package/indicators/slow-stochastic.js +3 -3
- package/indicators/slow-stochastic.src.js +3 -2
- package/indicators/stochastic.js +3 -3
- package/indicators/stochastic.src.js +12 -11
- package/indicators/supertrend.js +3 -3
- package/indicators/supertrend.src.js +20 -19
- package/indicators/tema.js +3 -3
- package/indicators/tema.src.js +3 -2
- package/indicators/trendline.js +3 -3
- package/indicators/trendline.src.js +3 -2
- package/indicators/trix.js +3 -3
- package/indicators/trix.src.js +3 -2
- package/indicators/volume-by-price.js +3 -3
- package/indicators/volume-by-price.src.js +8 -7
- package/indicators/vwap.js +3 -3
- package/indicators/vwap.src.js +3 -2
- package/indicators/williams-r.js +3 -3
- package/indicators/williams-r.src.js +4 -3
- package/indicators/wma.js +3 -3
- package/indicators/wma.src.js +3 -2
- package/indicators/zigzag.js +3 -3
- package/indicators/zigzag.src.js +8 -7
- package/lib/svg2pdf.js +7 -7
- package/lib/svg2pdf.src.js +185 -150
- package/modules/accessibility.js +3 -3
- package/modules/accessibility.src.js +664 -2793
- package/modules/annotations-advanced.d.ts +3 -0
- package/modules/annotations-advanced.js +3 -3
- package/modules/annotations-advanced.src.d.ts +3 -0
- package/modules/annotations-advanced.src.js +2949 -2920
- package/modules/annotations.d.ts +0 -3
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.d.ts +0 -3
- package/modules/annotations.src.js +2926 -2905
- package/modules/arc-diagram.js +3 -3
- package/modules/arc-diagram.src.js +8 -6
- package/modules/arrow-symbols.js +3 -3
- package/modules/arrow-symbols.src.js +10 -13
- package/modules/boost-canvas.js +3 -3
- package/modules/boost-canvas.src.js +73 -26
- package/modules/boost.js +3 -3
- package/modules/boost.src.js +108 -30
- package/modules/broken-axis.js +3 -3
- package/modules/broken-axis.src.js +9 -9
- package/modules/bullet.js +3 -3
- package/modules/bullet.src.js +5 -4
- package/modules/coloraxis.js +3 -3
- package/modules/coloraxis.src.js +10 -9
- package/modules/current-date-indicator.js +3 -3
- package/modules/current-date-indicator.src.js +3 -2
- package/modules/cylinder.js +3 -3
- package/modules/cylinder.src.js +12 -11
- package/modules/data-tools.js +3 -3
- package/modules/data-tools.src.js +53 -36
- package/modules/data.d.ts +2 -2
- package/modules/data.js +3 -3
- package/modules/data.src.d.ts +2 -2
- package/modules/data.src.js +24 -23
- package/modules/datagrouping.js +3 -3
- package/modules/datagrouping.src.js +25 -23
- package/modules/debugger.js +3 -3
- package/modules/debugger.src.js +6 -5
- package/modules/dependency-wheel.js +3 -3
- package/modules/dependency-wheel.src.js +7 -5
- package/modules/dotplot.js +3 -3
- package/modules/dotplot.src.js +3 -2
- package/modules/drag-panes.js +3 -3
- package/modules/drag-panes.src.js +19 -21
- package/modules/draggable-points.js +3 -3
- package/modules/draggable-points.src.js +18 -16
- package/modules/drilldown.js +3 -3
- package/modules/drilldown.src.js +29 -26
- package/modules/dumbbell.js +3 -3
- package/modules/dumbbell.src.js +5 -4
- package/modules/export-data.js +3 -3
- package/modules/export-data.src.js +33 -22
- package/modules/exporting.d.ts +1 -1
- package/modules/exporting.js +3 -3
- package/modules/exporting.src.d.ts +1 -1
- package/modules/exporting.src.js +40 -39
- package/modules/flowmap.js +3 -3
- package/modules/flowmap.src.js +3 -2
- package/modules/full-screen.js +3 -3
- package/modules/full-screen.src.js +9 -13
- package/modules/funnel.js +3 -3
- package/modules/funnel.src.js +3 -2
- package/modules/funnel3d.js +3 -3
- package/modules/funnel3d.src.js +12 -12
- package/modules/gantt.d.ts +3 -4
- package/modules/gantt.js +3 -3
- package/modules/gantt.src.d.ts +3 -4
- package/modules/gantt.src.js +4165 -4002
- package/modules/geoheatmap.js +3 -3
- package/modules/geoheatmap.src.js +8 -7
- package/modules/grid-axis.js +3 -3
- package/modules/grid-axis.src.js +9 -8
- package/modules/heatmap.d.ts +2 -2
- package/modules/heatmap.js +3 -3
- package/modules/heatmap.src.d.ts +2 -2
- package/modules/heatmap.src.js +21 -15
- package/modules/heikinashi.js +3 -3
- package/modules/heikinashi.src.js +9 -6
- package/modules/histogram-bellcurve.js +3 -3
- package/modules/histogram-bellcurve.src.js +4 -3
- package/modules/hollowcandlestick.js +3 -3
- package/modules/hollowcandlestick.src.js +5 -4
- package/modules/item-series.js +3 -3
- package/modules/item-series.src.js +4 -3
- package/modules/lollipop.js +3 -3
- package/modules/lollipop.src.js +6 -3
- package/modules/map.d.ts +22 -1
- package/modules/map.js +3 -3
- package/modules/map.src.d.ts +22 -1
- package/modules/map.src.js +256 -155
- package/modules/marker-clusters.js +3 -3
- package/modules/marker-clusters.src.js +35 -37
- package/modules/mouse-wheel-zoom.js +3 -3
- package/modules/mouse-wheel-zoom.src.js +55 -163
- package/modules/navigator.d.ts +148 -0
- package/modules/navigator.js +9 -0
- package/modules/navigator.src.d.ts +148 -0
- package/modules/navigator.src.js +3921 -0
- package/modules/networkgraph.d.ts +2 -2
- package/modules/networkgraph.js +3 -3
- package/modules/networkgraph.src.d.ts +2 -2
- package/modules/networkgraph.src.js +36 -35
- package/modules/no-data-to-display.js +3 -3
- package/modules/no-data-to-display.src.js +6 -6
- package/modules/offline-exporting.js +3 -3
- package/modules/offline-exporting.src.js +10 -10
- package/modules/organization.js +3 -3
- package/modules/organization.src.js +41 -15
- package/modules/overlapping-datalabels.js +3 -3
- package/modules/overlapping-datalabels.src.js +4 -2
- package/modules/parallel-coordinates.js +3 -3
- package/modules/parallel-coordinates.src.js +12 -12
- package/modules/pareto.js +3 -3
- package/modules/pareto.src.js +3 -2
- package/modules/pathfinder.js +3 -3
- package/modules/pathfinder.src.js +18 -22
- package/modules/pattern-fill.js +3 -3
- package/modules/pattern-fill.src.js +22 -23
- package/modules/pictorial.js +3 -3
- package/modules/pictorial.src.js +25 -26
- package/modules/price-indicator.js +3 -3
- package/modules/price-indicator.src.js +3 -2
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.src.js +3 -2
- package/modules/sankey.js +3 -3
- package/modules/sankey.src.js +93 -26
- package/modules/series-label.js +3 -3
- package/modules/series-label.src.js +28 -19
- package/modules/series-on-point.js +3 -3
- package/modules/series-on-point.src.js +5 -4
- package/modules/solid-gauge.js +3 -3
- package/modules/solid-gauge.src.js +3 -2
- package/modules/sonification.d.ts +2 -2
- package/modules/sonification.js +3 -3
- package/modules/sonification.src.d.ts +2 -2
- package/modules/sonification.src.js +8 -6
- package/modules/static-scale.js +3 -3
- package/modules/static-scale.src.js +6 -6
- package/modules/stock-tools.js +3 -3
- package/modules/stock-tools.src.js +109 -96
- package/modules/stock.d.ts +1 -1
- package/modules/stock.js +3 -3
- package/modules/stock.src.d.ts +1 -1
- package/modules/stock.src.js +10762 -10685
- package/modules/streamgraph.js +3 -3
- package/modules/streamgraph.src.js +3 -2
- package/modules/sunburst.js +3 -3
- package/modules/sunburst.src.js +50 -37
- package/modules/tiledwebmap.js +4 -4
- package/modules/tiledwebmap.src.js +28 -29
- package/modules/tilemap.js +3 -3
- package/modules/tilemap.src.js +4 -3
- package/modules/timeline.js +3 -3
- package/modules/timeline.src.js +5 -4
- package/modules/treegraph.js +3 -3
- package/modules/treegraph.src.js +58 -23
- package/modules/treegrid.js +3 -3
- package/modules/treegrid.src.js +49 -33
- package/modules/treemap.js +3 -3
- package/modules/treemap.src.js +44 -26
- package/modules/variable-pie.js +3 -3
- package/modules/variable-pie.src.js +3 -2
- package/modules/variwide.js +3 -3
- package/modules/variwide.src.js +9 -4
- package/modules/vector.js +3 -3
- package/modules/vector.src.js +3 -2
- package/modules/venn.js +3 -3
- package/modules/venn.src.js +16 -17
- package/modules/windbarb.js +3 -3
- package/modules/windbarb.src.js +5 -4
- package/modules/wordcloud.js +3 -3
- package/modules/wordcloud.src.js +10 -8
- package/modules/xrange.js +3 -3
- package/modules/xrange.src.js +5 -4
- package/package.json +1 -1
- package/standalone-navigator.js +2 -0
- package/standalone-navigator.src.js +49402 -0
- package/themes/avocado.js +3 -3
- package/themes/avocado.src.js +2 -1
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.src.js +2 -1
- package/themes/brand-light.js +3 -3
- package/themes/brand-light.src.js +2 -1
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.src.js +2 -1
- package/themes/dark-green.js +3 -3
- package/themes/dark-green.src.js +2 -1
- package/themes/dark-unica.js +3 -3
- package/themes/dark-unica.src.js +2 -1
- package/themes/gray.js +3 -3
- package/themes/gray.src.js +2 -1
- package/themes/grid-light.js +3 -3
- package/themes/grid-light.src.js +2 -1
- package/themes/grid.js +3 -3
- package/themes/grid.src.js +2 -1
- package/themes/high-contrast-dark.js +3 -3
- package/themes/high-contrast-dark.src.js +2 -1
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.src.js +2 -1
- package/themes/sand-signika.js +3 -3
- package/themes/sand-signika.src.js +2 -1
- package/themes/skies.js +3 -3
- package/themes/skies.src.js +2 -1
- package/themes/sunset.js +3 -3
- package/themes/sunset.src.js +2 -1
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +0 -259
- package/lib/canvg.js +0 -8
package/modules/treemap.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts JS v11.
|
|
2
|
+
* @license Highcharts JS v11.4.0 (2024-03-05)
|
|
3
3
|
*
|
|
4
4
|
* (c) 2014-2024 Highsoft AS
|
|
5
5
|
* Authors: Jon Arild Nygard / Oystein Moseng
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
*
|
|
415
415
|
* */
|
|
416
416
|
static compose(ChartClass, highchartsDefaultOptions) {
|
|
417
|
-
if (pushUnique(composed,
|
|
417
|
+
if (pushUnique(composed, 'Breadcrumbs')) {
|
|
418
418
|
addEvent(ChartClass, 'destroy', onChartDestroy);
|
|
419
419
|
addEvent(ChartClass, 'afterShowResetZoom', onChartAfterShowResetZoom);
|
|
420
420
|
addEvent(ChartClass, 'getMargins', onChartGetMargins);
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
this.list = list;
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
476
|
-
*
|
|
476
|
+
* Calculate level on which chart currently is.
|
|
477
477
|
*
|
|
478
478
|
* @requires modules/breadcrumbs
|
|
479
479
|
*
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
/**
|
|
529
529
|
* Redraw.
|
|
530
530
|
*
|
|
531
|
-
* @requires modules/
|
|
531
|
+
* @requires modules/breadcrumbs
|
|
532
532
|
*
|
|
533
533
|
* @function Highcharts.Breadcrumbs#redraw
|
|
534
534
|
* @param {Highcharts.Breadcrumbs} this
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
const breadcrumbs = this, chart = breadcrumbs.chart, list = breadcrumbs.list, breadcrumbsOptions = breadcrumbs.options, buttonSpacing = breadcrumbsOptions.buttonSpacing;
|
|
603
603
|
// Make sure that only one type of button is visible.
|
|
604
604
|
this.destroyListElements();
|
|
605
|
-
// Draw breadcrumbs.
|
|
605
|
+
// Draw breadcrumbs. Initial position for calculating the breadcrumbs
|
|
606
606
|
// group.
|
|
607
607
|
const posX = breadcrumbs.group ?
|
|
608
608
|
breadcrumbs.group.getBBox().width :
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
const breadcrumbsOptions = breadcrumbs.options, buttonTheme = breadcrumbsOptions.buttonTheme, positionOptions = breadcrumbsOptions.position, alignTo = (breadcrumbsOptions.relativeTo === 'chart' ||
|
|
637
637
|
breadcrumbsOptions.relativeTo === 'spacingBox' ?
|
|
638
638
|
void 0 :
|
|
639
|
-
'
|
|
639
|
+
'plotBox'), bBox = breadcrumbs.group.getBBox(), additionalSpace = 2 * (buttonTheme.padding || 0) +
|
|
640
640
|
breadcrumbsOptions.buttonSpacing;
|
|
641
641
|
// Store positionOptions
|
|
642
642
|
positionOptions.width = bBox.width + additionalSpace;
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
/**
|
|
657
657
|
* Render a button.
|
|
658
658
|
*
|
|
659
|
-
* @requires modules/
|
|
659
|
+
* @requires modules/breadcrumbs
|
|
660
660
|
*
|
|
661
661
|
* @function Highcharts.Breadcrumbs#renderButton
|
|
662
662
|
* @param {Highcharts.Breadcrumbs} this
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
/**
|
|
705
705
|
* Render a separator.
|
|
706
706
|
*
|
|
707
|
-
* @requires modules/
|
|
707
|
+
* @requires modules/breadcrumbs
|
|
708
708
|
*
|
|
709
709
|
* @function Highcharts.Breadcrumbs#renderSeparator
|
|
710
710
|
* @param {Highcharts.Breadcrumbs} this
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
*/
|
|
774
774
|
destroy() {
|
|
775
775
|
this.destroySingleButton();
|
|
776
|
-
// Destroy elements one by one. It's necessary
|
|
776
|
+
// Destroy elements one by one. It's necessary because
|
|
777
777
|
// g().destroy() does not remove added HTML
|
|
778
778
|
this.destroyListElements(true);
|
|
779
779
|
// Then, destroy the group itself.
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
}, adjustToRTL = function (element, posX, posY) {
|
|
855
855
|
element.translate(posX - element.getBBox().width, posY);
|
|
856
856
|
};
|
|
857
|
-
//
|
|
857
|
+
// Initial position for calculating the breadcrumbs group.
|
|
858
858
|
let posX = breadcrumbs.group ?
|
|
859
859
|
updateXPosition(breadcrumbs.group, buttonSpacing) :
|
|
860
860
|
buttonSpacing, currentBreadcrumb, breadcrumb;
|
|
@@ -1088,7 +1088,7 @@
|
|
|
1088
1088
|
(this.value === void 0 || !isNaN(this.value)));
|
|
1089
1089
|
}
|
|
1090
1090
|
/**
|
|
1091
|
-
* Get the color
|
|
1091
|
+
* Get the color attributes to apply on the graphic
|
|
1092
1092
|
* @private
|
|
1093
1093
|
* @function Highcharts.colorMapSeriesMixin.colorAttribs
|
|
1094
1094
|
* @param {Highcharts.Point} point
|
|
@@ -1255,13 +1255,12 @@
|
|
|
1255
1255
|
|
|
1256
1256
|
return TreemapNode;
|
|
1257
1257
|
});
|
|
1258
|
-
_registerModule(_modules, 'Series/DrawPointUtilities.js', [
|
|
1258
|
+
_registerModule(_modules, 'Series/DrawPointUtilities.js', [], function () {
|
|
1259
1259
|
/* *
|
|
1260
1260
|
*
|
|
1261
1261
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
1262
1262
|
*
|
|
1263
1263
|
* */
|
|
1264
|
-
const { isNumber } = U;
|
|
1265
1264
|
/* *
|
|
1266
1265
|
*
|
|
1267
1266
|
* Functions
|
|
@@ -1978,7 +1977,7 @@
|
|
|
1978
1977
|
|
|
1979
1978
|
return TreemapSeriesDefaults;
|
|
1980
1979
|
});
|
|
1981
|
-
_registerModule(_modules, 'Series/Treemap/TreemapUtilities.js', [
|
|
1980
|
+
_registerModule(_modules, 'Series/Treemap/TreemapUtilities.js', [], function () {
|
|
1982
1981
|
/* *
|
|
1983
1982
|
*
|
|
1984
1983
|
* (c) 2014-2024 Highsoft AS
|
|
@@ -1990,12 +1989,6 @@
|
|
|
1990
1989
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
1991
1990
|
*
|
|
1992
1991
|
* */
|
|
1993
|
-
/* *
|
|
1994
|
-
*
|
|
1995
|
-
* Imports
|
|
1996
|
-
*
|
|
1997
|
-
* */
|
|
1998
|
-
const { objectEach } = U;
|
|
1999
1992
|
/* *
|
|
2000
1993
|
*
|
|
2001
1994
|
* Namespace
|
|
@@ -2046,7 +2039,7 @@
|
|
|
2046
2039
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
2047
2040
|
*
|
|
2048
2041
|
* */
|
|
2049
|
-
const { extend, isArray, isNumber, isObject, merge, pick } = U;
|
|
2042
|
+
const { extend, isArray, isNumber, isObject, merge, pick, relativeLength } = U;
|
|
2050
2043
|
/* *
|
|
2051
2044
|
*
|
|
2052
2045
|
* Functions
|
|
@@ -2211,6 +2204,27 @@
|
|
|
2211
2204
|
}
|
|
2212
2205
|
return rootId;
|
|
2213
2206
|
}
|
|
2207
|
+
/**
|
|
2208
|
+
* Get the node width, which relies on the plot width and the nodeDistance
|
|
2209
|
+
* option.
|
|
2210
|
+
*
|
|
2211
|
+
* @private
|
|
2212
|
+
*/
|
|
2213
|
+
function getNodeWidth(series, columnCount) {
|
|
2214
|
+
const { chart, options } = series, { nodeDistance = 0, nodeWidth = 0 } = options, { plotSizeX = 1 } = chart;
|
|
2215
|
+
// Node width auto means they are evenly distributed along the width of
|
|
2216
|
+
// the plot area
|
|
2217
|
+
if (nodeWidth === 'auto') {
|
|
2218
|
+
if (typeof nodeDistance === 'string' && /%$/.test(nodeDistance)) {
|
|
2219
|
+
const fraction = parseFloat(nodeDistance) / 100, total = columnCount + fraction * (columnCount - 1);
|
|
2220
|
+
return plotSizeX / total;
|
|
2221
|
+
}
|
|
2222
|
+
const nDistance = Number(nodeDistance);
|
|
2223
|
+
return ((plotSizeX + nDistance) /
|
|
2224
|
+
(columnCount || 1)) - nDistance;
|
|
2225
|
+
}
|
|
2226
|
+
return relativeLength(nodeWidth, plotSizeX);
|
|
2227
|
+
}
|
|
2214
2228
|
/* *
|
|
2215
2229
|
*
|
|
2216
2230
|
* Default Export
|
|
@@ -2219,6 +2233,7 @@
|
|
|
2219
2233
|
const TreeUtilities = {
|
|
2220
2234
|
getColor,
|
|
2221
2235
|
getLevelOptions,
|
|
2236
|
+
getNodeWidth,
|
|
2222
2237
|
setTreeValues,
|
|
2223
2238
|
updateRootId
|
|
2224
2239
|
};
|
|
@@ -2309,7 +2324,7 @@
|
|
|
2309
2324
|
*
|
|
2310
2325
|
* */
|
|
2311
2326
|
static compose(SeriesClass) {
|
|
2312
|
-
if (pushUnique(composed,
|
|
2327
|
+
if (pushUnique(composed, 'TreemapSeries')) {
|
|
2313
2328
|
addEvent(SeriesClass, 'afterBindAxes', onSeriesAfterBindAxes);
|
|
2314
2329
|
}
|
|
2315
2330
|
}
|
|
@@ -2806,7 +2821,9 @@
|
|
|
2806
2821
|
chart.breadcrumbs.updateProperties(series.createList(e));
|
|
2807
2822
|
}
|
|
2808
2823
|
}));
|
|
2809
|
-
series.eventsToUnbind.push(addEvent(series, 'update',
|
|
2824
|
+
series.eventsToUnbind.push(addEvent(series, 'update',
|
|
2825
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2826
|
+
function (e, redraw) {
|
|
2810
2827
|
const breadcrumbs = this.chart.breadcrumbs;
|
|
2811
2828
|
if (breadcrumbs && e.options.breadcrumbs) {
|
|
2812
2829
|
breadcrumbs.update(e.options.breadcrumbs);
|
|
@@ -3187,12 +3204,13 @@
|
|
|
3187
3204
|
|
|
3188
3205
|
return TreemapSeries;
|
|
3189
3206
|
});
|
|
3190
|
-
_registerModule(_modules, 'masters/modules/treemap.src.js', [_modules['Core/Globals.js'], _modules['
|
|
3207
|
+
_registerModule(_modules, 'masters/modules/treemap.src.js', [_modules['Core/Globals.js'], _modules['Extensions/Breadcrumbs/Breadcrumbs.js'], _modules['Series/Treemap/TreemapSeries.js']], function (Highcharts, Breadcrumbs, TreemapSeries) {
|
|
3191
3208
|
|
|
3192
3209
|
const G = Highcharts;
|
|
3193
|
-
G.Breadcrumbs = Breadcrumbs;
|
|
3194
|
-
Breadcrumbs.compose(G.Chart, G.defaultOptions);
|
|
3210
|
+
G.Breadcrumbs = G.Breadcrumbs || Breadcrumbs;
|
|
3211
|
+
G.Breadcrumbs.compose(G.Chart, G.defaultOptions);
|
|
3195
3212
|
TreemapSeries.compose(G.Series);
|
|
3196
3213
|
|
|
3214
|
+
return Highcharts;
|
|
3197
3215
|
});
|
|
3198
3216
|
}));
|
package/modules/variable-pie.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Highcharts JS v11.
|
|
1
|
+
!/**
|
|
2
|
+
* Highcharts JS v11.4.0 (2024-03-04)
|
|
3
3
|
*
|
|
4
4
|
* Variable Pie module for Highcharts
|
|
5
5
|
*
|
|
6
6
|
* (c) 2010-2024 Grzegorz Blachliński
|
|
7
7
|
*
|
|
8
8
|
* License: www.highcharts.com/license
|
|
9
|
-
|
|
9
|
+
*/function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/modules/variable-pie",["highcharts"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function i(e,t,i,a){e.hasOwnProperty(t)||(e[t]=a.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}i(t,"Series/VariablePie/VariablePieSeriesDefaults.js",[],function(){return{minPointSize:"10%",maxPointSize:"100%",zMin:void 0,zMax:void 0,sizeBy:"area",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}<br/>Value: {point.y}<br/>Size: {point.z}<br/>'}}}),i(t,"Series/VariablePie/VariablePieSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"],t["Series/VariablePie/VariablePieSeriesDefaults.js"]],function(e,t,i){let{pie:a}=e.seriesTypes,{arrayMax:s,arrayMin:n,clamp:r,extend:o,fireEvent:l,merge:h,pick:d}=t;class u extends a{calculateExtremes(){let e,t;let i=this.chart,a=i.plotWidth,o=i.plotHeight,l=this.options,h=2*(l.slicedOffset||0),u=this.zData,c=Math.min(a,o)-h,p={},f=this.center||this.getCenter();for(let e of["minPointSize","maxPointSize"]){let t=l[e],i=/%$/.test(t);t=parseInt(t,10),p[e]=i?c*t/100:2*t}this.minPxSize=f[3]+p.minPointSize,this.maxPxSize=r(f[2],f[3]+p.minPointSize,p.maxPointSize),u.length&&(e=d(l.zMin,n(u.filter(this.zValEval))),t=d(l.zMax,s(u.filter(this.zValEval))),this.getRadii(e,t,this.minPxSize,this.maxPxSize))}getRadii(e,t,i,a){let s,n,r;let o=this.zData,l=[],h="radius"!==this.options.sizeBy,d=t-e;for(let u=0;u<o.length;u++)(n=this.zValEval(o[u])?o[u]:e)<=e?r=i/2:n>=t?r=a/2:(s=d>0?(n-e)/d:.5,h&&(s=Math.sqrt(s)),r=Math.ceil(i+s*(a-i))/2),l.push(r);this.radii=l}redraw(){this.center=null,super.redraw()}getDataLabelPosition(e,t){let{center:i,options:a}=this,s=e.angle||0,n=this.radii[e.index],r=i[0]+Math.cos(s)*n,o=i[1]+Math.sin(s)*n,l=Math.min((a.slicedOffset||0)+(a.borderWidth||0),t/5);return{distance:t,natural:{x:r+Math.cos(s)*t,y:o+Math.sin(s)*t},computed:{},alignment:e.half?"right":"left",connectorPosition:{breakAt:{x:r+Math.cos(s)*l,y:o+Math.sin(s)*l},touchingSliceAt:{x:r,y:o}}}}translate(e){this.generatePoints();let t=this.options,i=t.slicedOffset,a=t.startAngle||0,s=Math.PI/180*(a-90),n=Math.PI/180*(d(t.endAngle,a+360)-90),r=n-s,o=this.points,h=t.ignoreHiddenPoint,u=0,c,p,f,M,m,P,g;this.startAngleRad=s,this.endAngleRad=n,this.calculateExtremes(),e||(this.center=e=this.getCenter());for(let t=0;t<o.length;t++)P=o[t],g=this.radii[t],c=s+u*r,(!h||P.visible)&&(u+=P.percentage/100),p=s+u*r,P.shapeType="arc",P.shapeArgs={x:e[0],y:e[1],r:g,innerR:e[3]/2,start:Math.round(1e3*c)/1e3,end:Math.round(1e3*p)/1e3},(f=(p+c)/2)>1.5*Math.PI?f-=2*Math.PI:f<-Math.PI/2&&(f+=2*Math.PI),P.slicedTranslation={translateX:Math.round(Math.cos(f)*i),translateY:Math.round(Math.sin(f)*i)},M=Math.cos(f)*e[2]/2,m=Math.sin(f)*e[2]/2,P.tooltipPos=[e[0]+.7*M,e[1]+.7*m],P.half=f<-Math.PI/2||f>Math.PI/2?1:0,P.angle=f;l(this,"afterTranslate")}zValEval(e){return!("number"!=typeof e||isNaN(e))||null}}return u.defaultOptions=h(a.defaultOptions,i),o(u.prototype,{pointArrayMap:["y","z"],parallelArrays:["x","y","z"]}),e.registerSeriesType("variablepie",u),u}),i(t,"masters/modules/variable-pie.src.js",[t["Core/Globals.js"]],function(e){return e})});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts JS v11.
|
|
2
|
+
* @license Highcharts JS v11.4.0 (2024-03-05)
|
|
3
3
|
*
|
|
4
4
|
* Variable Pie module for Highcharts
|
|
5
5
|
*
|
|
@@ -469,8 +469,9 @@
|
|
|
469
469
|
|
|
470
470
|
return VariablePieSeries;
|
|
471
471
|
});
|
|
472
|
-
_registerModule(_modules, 'masters/modules/variable-pie.src.js', [], function () {
|
|
472
|
+
_registerModule(_modules, 'masters/modules/variable-pie.src.js', [_modules['Core/Globals.js']], function (Highcharts) {
|
|
473
473
|
|
|
474
474
|
|
|
475
|
+
return Highcharts;
|
|
475
476
|
});
|
|
476
477
|
}));
|
package/modules/variwide.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Highcharts JS v11.
|
|
1
|
+
!/**
|
|
2
|
+
* Highcharts JS v11.4.0 (2024-03-04)
|
|
3
3
|
*
|
|
4
4
|
* Highcharts variwide module
|
|
5
5
|
*
|
|
6
6
|
* (c) 2010-2024 Torstein Honsi
|
|
7
7
|
*
|
|
8
8
|
* License: www.highcharts.com/license
|
|
9
|
-
|
|
9
|
+
*/function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/variwide",["highcharts"],function(i){return t(i),t.Highcharts=i,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var i=t?t._modules:{};function s(t,i,s,e){t.hasOwnProperty(i)||(t[i]=e.apply(null,s),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:t[i]}})))}s(i,"Series/Variwide/VariwideComposition.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,i){let{composed:s}=t,{addEvent:e,pushUnique:r,wrap:o}=i;function a(t){this.variwide&&this.cross&&this.cross.attr("stroke-width",t.point&&t.point.crosshairWidth)}function n(){let t=this;!this.horiz&&this.variwide&&this.chart.labelCollectors.push(function(){return t.tickPositions.filter(i=>!!t.ticks[i].label).map((i,s)=>{let e=t.ticks[i].label;return e.labelrank=t.zData[s],e})})}function h(t){let i=this.axis,s=i.horiz?"x":"y";i.variwide&&(this[s+"Orig"]=t.pos[s],this.postTranslate(t.pos,s,this.pos))}function l(t,i,s){let e=this.axis,r=t[i]-e.pos;e.horiz||(r=e.len-r),r=e.series[0].postTranslate(s,r),e.horiz||(r=e.len-r),t[i]=e.pos+r}function d(t,i,s,e,r,o,a,n){let h=Array.prototype.slice.call(arguments,1),l=r?"x":"y";this.axis.variwide&&"number"==typeof this[l+"Orig"]&&(h[r?0:1]=this[l+"Orig"]);let d=t.apply(this,h);return this.axis.variwide&&this.axis.categories&&this.postTranslate(d,l,this.pos),d}return{compose:function(t,i){if(r(s,"Variwide")){let s=i.prototype;e(t,"afterDrawCrosshair",a),e(t,"afterRender",n),e(i,"afterGetPosition",h),s.postTranslate=l,o(s,"getLabelPosition",d)}}}}),s(i,"Series/Variwide/VariwidePoint.js",[i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,i){let{column:{prototype:{pointClass:s}}}=t.seriesTypes,{isNumber:e}=i;return class extends s{isValid(){return e(this.y)&&e(this.z)}}}),s(i,"Series/Variwide/VariwideSeriesDefaults.js",[],function(){return{pointPadding:0,groupPadding:0}}),s(i,"Series/Variwide/VariwideSeries.js",[i["Core/Series/SeriesRegistry.js"],i["Series/Variwide/VariwideComposition.js"],i["Series/Variwide/VariwidePoint.js"],i["Series/Variwide/VariwideSeriesDefaults.js"],i["Core/Utilities.js"]],function(t,i,s,e,r){let{column:o}=t.seriesTypes,{addEvent:a,extend:n,merge:h,pick:l}=r;class d extends o{processData(i){this.totalZ=0,this.relZ=[],t.seriesTypes.column.prototype.processData.call(this,i),(this.xAxis.reversed?this.zData.slice().reverse():this.zData).forEach(function(t,i){this.relZ[i]=this.totalZ,this.totalZ+=t},this),this.xAxis.categories&&(this.xAxis.variwide=!0,this.xAxis.zData=this.zData)}postTranslate(t,i,s){let e=this.xAxis,r=this.relZ,o=e.reversed?r.length-t:t,a=e.reversed?-1:1,n=e.toPixels(e.reversed?(e.dataMax||0)+e.pointRange:e.dataMin||0),h=e.toPixels(e.reversed?e.dataMin||0:(e.dataMax||0)+e.pointRange),d=Math.abs(h-n),p=this.totalZ,c=this.chart.inverted?h-(this.chart.plotTop-a*e.minPixelPadding):n-this.chart.plotLeft-a*e.minPixelPadding,u=o/r.length*d,f=(o+a)/r.length*d,x=l(r[o],p)/p*d,w=l(r[o+a],p)/p*d;return s&&(s.crosshairWidth=w-x),c+x+(i-(c+u))*(w-x)/(f-u)}translate(){this.crispOption=this.options.crisp,this.options.crisp=!1,super.translate(),this.options.crisp=this.crispOption}correctStackLabels(){let t,i,s,e;let r=this.options,o=this.yAxis;for(let a of this.points)e=a.x,i=a.shapeArgs.width,(s=o.stacking.stacks[(this.negStacks&&a.y<(r.startFromThreshold?0:r.threshold)?"-":"")+this.stackKey])&&(t=s[e])&&!a.isNull&&t.setOffset(-(i/2)||0,i||0,void 0,void 0,a.plotX,this.xAxis)}}return d.compose=i.compose,d.defaultOptions=h(o.defaultOptions,e),a(d,"afterColumnTranslate",function(){let t=this.xAxis,i=this.chart.inverted,s=this.borderWidth%2/2,e=-1;for(let r of this.points){let o,a;++e;let n=r.shapeArgs||{},{x:h=0,width:l=0}=n,{plotX:d=0,tooltipPos:p,z:c=0}=r;t.variwide?(o=this.postTranslate(e,h,r),a=this.postTranslate(e,h+l)):(o=d,a=t.translate(r.x+c,!1,!1,!1,!0)),this.crispOption&&(o=Math.round(o)-s,a=Math.round(a)-s),n.x=o,n.width=Math.max(a-o,1),r.plotX=(o+a)/2,p&&(i?p[1]=t.len-n.x-n.width/2:p[0]=n.x+n.width/2)}this.options.stacking&&this.correctStackLabels()},{order:2}),n(d.prototype,{irregularWidths:!0,pointArrayMap:["y","z"],parallelArrays:["x","y","z"],pointClass:s}),t.registerSeriesType("variwide",d),d}),s(i,"masters/modules/variwide.src.js",[i["Core/Globals.js"],i["Series/Variwide/VariwideSeries.js"]],function(t,i){return i.compose(t.Axis,t.Tick),t})});
|
package/modules/variwide.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts JS v11.
|
|
2
|
+
* @license Highcharts JS v11.4.0 (2024-03-05)
|
|
3
3
|
*
|
|
4
4
|
* Highcharts variwide module
|
|
5
5
|
*
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
* @private
|
|
59
59
|
*/
|
|
60
60
|
function compose(AxisClass, TickClass) {
|
|
61
|
-
if (pushUnique(composed,
|
|
61
|
+
if (pushUnique(composed, 'Variwide')) {
|
|
62
62
|
const tickProto = TickClass.prototype;
|
|
63
63
|
addEvent(AxisClass, 'afterDrawCrosshair', onAxisAfterDrawCrosshair);
|
|
64
64
|
addEvent(AxisClass, 'afterRender', onAxisAfterRender);
|
|
@@ -122,7 +122,11 @@
|
|
|
122
122
|
/**
|
|
123
123
|
* @private
|
|
124
124
|
*/
|
|
125
|
-
function wrapTickGetLabelPosition(proceed, _x, _y, _label, horiz,
|
|
125
|
+
function wrapTickGetLabelPosition(proceed, _x, _y, _label, horiz,
|
|
126
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
127
|
+
_labelOptions, _tickmarkOffset, _index
|
|
128
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
129
|
+
) {
|
|
126
130
|
const args = Array.prototype.slice.call(arguments, 1), xOrY = horiz ? 'x' : 'y';
|
|
127
131
|
// Replace the x with the original x
|
|
128
132
|
if (this.axis.variwide &&
|
|
@@ -439,7 +443,7 @@
|
|
|
439
443
|
* */
|
|
440
444
|
VariwideSeries.compose = VariwideComposition.compose;
|
|
441
445
|
VariwideSeries.defaultOptions = merge(ColumnSeries.defaultOptions, VariwideSeriesDefaults);
|
|
442
|
-
// Extend translation by
|
|
446
|
+
// Extend translation by distorting X position based on Z.
|
|
443
447
|
addEvent(VariwideSeries, 'afterColumnTranslate', function () {
|
|
444
448
|
// Temporarily disable crisping when computing original shapeArgs
|
|
445
449
|
const xAxis = this.xAxis, inverted = this.chart.inverted, crisp = this.borderWidth % 2 / 2;
|
|
@@ -501,5 +505,6 @@
|
|
|
501
505
|
const G = Highcharts;
|
|
502
506
|
VariwideSeries.compose(G.Axis, G.Tick);
|
|
503
507
|
|
|
508
|
+
return Highcharts;
|
|
504
509
|
});
|
|
505
510
|
}));
|
package/modules/vector.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Highcharts JS v11.
|
|
1
|
+
!/**
|
|
2
|
+
* Highcharts JS v11.4.0 (2024-03-04)
|
|
3
3
|
*
|
|
4
4
|
* Vector plot series module
|
|
5
5
|
*
|
|
6
6
|
* (c) 2010-2024 Torstein Honsi
|
|
7
7
|
*
|
|
8
8
|
* License: www.highcharts.com/license
|
|
9
|
-
|
|
9
|
+
*/function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/vector",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function i(t,e,i,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}i(e,"Series/Vector/VectorSeriesDefaults.js",[],function(){return{lineWidth:2,marker:void 0,rotationOrigin:"center",states:{hover:{lineWidthPlus:1}},tooltip:{pointFormat:"<b>[{point.x}, {point.y}]</b><br/>Length: <b>{point.length}</b><br/>Direction: <b>{point.direction}\xb0</b><br/>"},vectorLength:20}}),i(e,"Series/Vector/VectorSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"],e["Series/Vector/VectorSeriesDefaults.js"]],function(t,e,i,r,o){let{animObject:s}=t,{series:n,seriesTypes:{scatter:a}}=i,{arrayMax:h,extend:l,merge:c,pick:p}=r;class d extends a{animate(t){t?this.markerGroup.attr({opacity:.01}):this.markerGroup.animate({opacity:1},s(this.options.animation))}arrow(t){let e=t.length/this.lengthMax*this.options.vectorLength/20,i={start:10*e,center:0,end:-10*e}[this.options.rotationOrigin]||0;return[["M",0,7*e+i],["L",-1.5*e,7*e+i],["L",0,10*e+i],["L",1.5*e,7*e+i],["L",0,7*e+i],["L",0,-10*e+i]]}drawPoints(){let t=this.chart;for(let e of this.points){let i=e.plotX,r=e.plotY;!1===this.options.clip||t.isInsidePlot(i,r,{inverted:t.inverted})?(e.graphic||(e.graphic=this.chart.renderer.path().add(this.markerGroup).addClass("highcharts-point highcharts-color-"+p(e.colorIndex,e.series.colorIndex))),e.graphic.attr({d:this.arrow(e),translateX:i,translateY:r,rotation:e.direction}),this.chart.styledMode||e.graphic.attr(this.pointAttribs(e))):e.graphic&&(e.graphic=e.graphic.destroy())}}pointAttribs(t,e){let i=this.options,r=t?.color||this.color,o=this.options.lineWidth;return e&&(r=i.states[e].color||r,o=(i.states[e].lineWidth||o)+(i.states[e].lineWidthPlus||0)),{stroke:r,"stroke-width":o}}translate(){n.prototype.translate.call(this),this.lengthMax=h(this.lengthData)}}return d.defaultOptions=c(a.defaultOptions,o),l(d.prototype,{drawGraph:e.noop,getSymbol:e.noop,markerAttribs:e.noop,parallelArrays:["x","y","length","direction"],pointArrayMap:["y","length","direction"]}),i.registerSeriesType("vector",d),d}),i(e,"masters/modules/vector.src.js",[e["Core/Globals.js"]],function(t){return t})});
|
package/modules/vector.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts JS v11.
|
|
2
|
+
* @license Highcharts JS v11.4.0 (2024-03-05)
|
|
3
3
|
*
|
|
4
4
|
* Vector plot series module
|
|
5
5
|
*
|
|
@@ -384,8 +384,9 @@
|
|
|
384
384
|
|
|
385
385
|
return VectorSeries;
|
|
386
386
|
});
|
|
387
|
-
_registerModule(_modules, 'masters/modules/vector.src.js', [], function () {
|
|
387
|
+
_registerModule(_modules, 'masters/modules/vector.src.js', [_modules['Core/Globals.js']], function (Highcharts) {
|
|
388
388
|
|
|
389
389
|
|
|
390
|
+
return Highcharts;
|
|
390
391
|
});
|
|
391
392
|
}));
|
package/modules/venn.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* Highcharts JS v11.
|
|
1
|
+
!/**
|
|
2
|
+
* Highcharts JS v11.4.0 (2024-03-04)
|
|
3
3
|
*
|
|
4
4
|
* (c) 2017-2024 Highsoft AS
|
|
5
5
|
* Authors: Jon Arild Nygard
|
|
6
6
|
*
|
|
7
7
|
* License: www.highcharts.com/license
|
|
8
|
-
*/!function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/modules/venn",["highcharts"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function r(e,t,r,n){e.hasOwnProperty(t)||(e[t]=n.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}r(t,"Core/Geometry/GeometryUtilities.js",[],function(){var e,t;return(t=e||(e={})).getCenterOfPoints=function(e){let t=e.reduce((e,t)=>(e.x+=t.x,e.y+=t.y,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}},t.getDistanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},t.getAngleBetweenPoints=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)},e}),r(t,"Core/Geometry/CircleUtilities.js",[t["Core/Geometry/GeometryUtilities.js"]],function(e){var t;let{getAngleBetweenPoints:r,getCenterOfPoints:n,getDistanceBetweenPoints:i}=e;return function(e){function t(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}function s(e){if(e<=0)throw Error("radius of circle must be a positive number.");return Math.PI*e*e}function o(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function l(e,r){let n=i(e,r),s=e.r,o=r.r,l=[];if(n<s+o&&n>Math.abs(s-o)){let i=s*s,a=(i-o*o+n*n)/(2*n),u=Math.sqrt(i-a*a),c=e.x,f=r.x,h=e.y,p=r.y,d=c+a*(f-c)/n,y=h+a*(p-h)/n,g=-(p-h)*(u/n),x=-(f-c)*(u/n);l=[{x:t(d+g,14),y:t(y-x,14)},{x:t(d-g,14),y:t(y+x,14)}]}return l}function a(e){return e.reduce((e,t,r,n)=>{let i=n.slice(r+1).reduce((e,n,i,s)=>{let o=[r,i+r+1];return e.concat(l(t,n).map(e=>(e.indexes=o,e)))},[]);return e.concat(i)},[])}function u(e,t){return i(e,t)<=t.r+1e-10}function c(e,t){return!t.some(function(t){return!u(e,t)})}function f(e){return a(e).filter(function(t){return c(t,e)})}e.round=t,e.getAreaOfCircle=s,e.getCircularSegmentArea=o,e.getOverlapBetweenCircles=function(e,r,n){let i=0;if(n<e+r){if(n<=Math.abs(r-e))i=s(e<r?e:r);else{let t=(e*e-r*r+n*n)/(2*n),s=n-t;i=o(e,e-t)+o(r,r-s)}i=t(i,14)}return i},e.getCircleCircleIntersection=l,e.getCirclesIntersectionPoints=a,e.isCircle1CompletelyOverlappingCircle2=function(e,t){return i(e,t)+t.r<e.r+1e-10},e.isPointInsideCircle=u,e.isPointInsideAllCircles=c,e.isPointOutsideAllCircles=function(e,t){return!t.some(function(t){return u(e,t)})},e.getCirclesIntersectionPolygon=f,e.getAreaOfIntersectionBetweenCircles=function(e){let t=f(e),s;if(t.length>1){let o=n(t);t=t.map(function(e){return e.angle=r(o,e),e}).sort(function(e,t){return t.angle-e.angle});let l=t[t.length-1],a=t.reduce(function(t,s){let{startPoint:o}=t,l=n([o,s]),a=s.indexes.filter(function(e){return o.indexes.indexOf(e)>-1}).reduce(function(t,n){let a=e[n],u=r(a,s),c=r(a,o),f=c-(c-u+(c<u?2*Math.PI:0))/2,h=i(l,{x:a.x+a.r*Math.sin(f),y:a.y+a.r*Math.cos(f)}),{r:p}=a;return h>2*p&&(h=2*p),(!t||t.width>h)&&(t={r:p,largeArc:h>p?1:0,width:h,x:s.x,y:s.y}),t},null);if(a){let{r:e}=a;t.arcs.push(["A",e,e,0,a.largeArc,1,a.x,a.y]),t.startPoint=s}return t},{startPoint:l,arcs:[]}).arcs;0===a.length||1===a.length||(a.unshift(["M",l.x,l.y]),s={center:o,d:a})}return s}}(t||(t={})),t}),r(t,"Series/DrawPointUtilities.js",[t["Core/Utilities.js"]],function(e){let{isNumber:t}=e;return{draw:function(e,t){let{animatableAttribs:r,onComplete:n,css:i,renderer:s}=t,o=e.series&&e.series.chart.hasRendered?void 0:e.series&&e.series.options.animation,l=e.graphic;if(t.attribs={...t.attribs,class:e.getClassName()},e.shouldDraw())l||(l="text"===t.shapeType?s.text():"image"===t.shapeType?s.image(t.imageUrl||"").attr(t.shapeArgs||{}):s[t.shapeType](t.shapeArgs||{}),e.graphic=l,l.add(t.group)),i&&l.css(i),l.attr(t.attribs).animate(r,!t.isNew&&o,n);else if(l){let t=()=>{e.graphic=l=l&&l.destroy(),"function"==typeof n&&n()};Object.keys(r).length?l.animate(r,void 0,()=>t()):t()}}}}),r(t,"Series/Venn/VennPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,t){let{scatter:{prototype:{pointClass:r}}}=e.seriesTypes,{isNumber:n}=t;return class extends r{isValid(){return n(this.value)}shouldDraw(){return!!this.shapeArgs}}}),r(t,"Series/Venn/VennSeriesDefaults.js",[],function(){return{borderColor:"#cccccc",borderDashStyle:"solid",borderWidth:1,brighten:0,clip:!1,colorByPoint:!0,dataLabels:{enabled:!0,verticalAlign:"middle",formatter:function(){return this.point.name}},inactiveOtherPoints:!0,marker:!1,opacity:.75,showInLegend:!1,legendType:"point",states:{hover:{opacity:1,borderColor:"#333333"},select:{color:"#cccccc",borderColor:"#000000",animation:!1},inactive:{opacity:.075}},tooltip:{pointFormat:"{point.name}: {point.value}"},legendSymbol:"rectangle"}}),r(t,"Series/Venn/VennUtils.js",[t["Core/Geometry/CircleUtilities.js"],t["Core/Geometry/GeometryUtilities.js"],t["Core/Utilities.js"]],function(e,t,r){let{getAreaOfCircle:n,getCircleCircleIntersection:i,getOverlapBetweenCircles:s,isPointInsideAllCircles:o,isPointInsideCircle:l,isPointOutsideAllCircles:a}=e,{getDistanceBetweenPoints:u}=t,{extend:c,isArray:f,isNumber:h,isObject:p,isString:d}=r;function y(e){let t={};return e.filter(e=>2===e.sets.length).forEach(e=>{e.sets.forEach((r,n,i)=>{p(t[r])||(t[r]={totalOverlap:0,overlapping:{}}),t[r]={totalOverlap:(t[r].totalOverlap||0)+e.value,overlapping:{...t[r].overlapping||{},[i[1-n]]:e.value}}})}),e.filter(b).forEach(e=>{let r=t[e.sets[0]];c(e,r)}),e}function g(e,t,r,n,i){let s=e(t),o=e(r),l=i||100,a=n||1e-10,u=r-t,c=1,f,h;if(t>=r)throw Error("a must be smaller than b.");if(s*o>0)throw Error("f(a) and f(b) must have opposite signs.");if(0===s)f=t;else if(0===o)f=r;else for(;c++<=l&&0!==h&&u>a;)u=(r-t)/2,s*(h=e(f=t+u))>0?t=f:r=f;return f}function x(e){let t=e.slice(0,-1),r=t.length,n=[],i=(e,t)=>(e.sum+=t[e.i],e);for(let e=0;e<r;e++)n[e]=t.reduce(i,{sum:0,i:e}).sum/r;return n}function m(e,t,r){let i=e+t;return r<=0?i:n(e<t?e:t)<=r?0:g(n=>{let i=s(e,t,n);return r-i},0,i)}function b(e){return f(e.sets)&&1===e.sets.length}function v(e){let t={};return p(e)&&h(e.value)&&e.value>-1&&f(e.sets)&&e.sets.length>0&&!e.sets.some(function(e){let r=!1;return!t[e]&&d(e)?t[e]=!0:r=!0,r})}function C(e,t){return t.reduce(function(t,r){let n=0;if(r.sets.length>1){let t=r.value,i=function(e){let t=0;if(2===e.length){let r=e[0],n=e[1];t=s(r.r,n.r,u(r,n))}return t}(r.sets.map(function(t){return e[t]})),o=t-i;n=Math.round(o*o*1e11)/1e11}return t+n},0)}function M(e,t){return void 0!==t.totalOverlap&&void 0!==e.totalOverlap?t.totalOverlap-e.totalOverlap:NaN}return{geometry:t,geometryCircles:e,addOverlapToSets:y,getCentroid:x,getDistanceBetweenCirclesByOverlap:m,getLabelWidth:function(e,t,r){let n=t.reduce((e,t)=>Math.min(t.r,e),1/0),i=r.filter(t=>!l(e,t)),s=function(r,n){return g(s=>{let l={x:e.x+n*s,y:e.y},u=o(l,t)&&a(l,i);return-(r-s)+(u?0:Number.MAX_VALUE)},0,r)};return 2*Math.min(s(n,-1),s(n,1))},getMarginFromCircles:function(e,t,r){let n=t.reduce((t,r)=>{let n=r.r-u(e,r);return n<=t?n:t},Number.MAX_VALUE);return r.reduce((t,r)=>{let n=u(e,r)-r.r;return n<=t?n:t},n)},isSet:b,layoutGreedyVenn:function(e){let t=[],r={};e.filter(e=>1===e.sets.length).forEach(e=>{r[e.sets[0]]=e.circle={x:Number.MAX_VALUE,y:Number.MAX_VALUE,r:Math.sqrt(e.value/Math.PI)}});let n=(e,r)=>{let n=e.circle;n&&(n.x=r.x,n.y=r.y),t.push(e)};y(e);let s=e.filter(b).sort(M);n(s.shift(),{x:0,y:0});let o=e.filter(e=>2===e.sets.length);for(let e of s){let s=e.circle;if(!s)continue;let l=s.r,a=e.overlapping,u=t.reduce((e,n,u)=>{let c=n.circle;if(!c||!a)return e;let f=a[n.sets[0]],h=m(l,c.r,f),p=[{x:c.x+h,y:c.y},{x:c.x-h,y:c.y},{x:c.x,y:c.y+h},{x:c.x,y:c.y-h}];for(let e of t.slice(u+1)){let t=e.circle,r=a[e.sets[0]];if(!t)continue;let n=m(l,t.r,r);p=p.concat(i({x:c.x,y:c.y,r:h},{x:t.x,y:t.y,r:n}))}for(let t of p){s.x=t.x,s.y=t.y;let n=C(r,o);n<e.loss&&(e.loss=n,e.coordinates=t)}return e},{loss:Number.MAX_VALUE,coordinates:void 0});n(e,u.coordinates)}return r},loss:C,nelderMead:function(e,t){let r=function(e,t){return e.fx-t.fx},n=(e,t,r,n)=>t.map((t,i)=>e*t+r*n[i]),i=(t,r)=>(r.fx=e(r),t[t.length-1]=r,t),s=t=>{let r=t[0];return t.map(t=>{let i=n(.5,r,.5,t);return i.fx=e(i),i})},o=(t,r,i,s)=>{let o=n(i,t,s,r);return o.fx=e(o),o},l=(t=>{let r=t.length,n=Array(r+1);n[0]=t,n[0].fx=e(t);for(let i=0;i<r;++i){let r=t.slice();r[i]=r[i]?1.05*r[i]:.001,r.fx=e(r),n[i+1]=r}return n})(t);for(let e=0;e<100;e++){l.sort(r);let e=l[l.length-1],t=x(l),n=o(t,e,2,-1);if(n.fx<l[0].fx){let r=o(t,e,3,-2);l=i(l,r.fx<n.fx?r:n)}else if(n.fx>=l[l.length-2].fx){let r;l=n.fx>e.fx?(r=o(t,e,.5,.5)).fx<e.fx?i(l,r):s(l):(r=o(t,e,1.5,-.5)).fx<n.fx?i(l,r):s(l)}else l=i(l,n)}return l[0]},processVennData:function(e,t){let r=f(e)?e:[],n=r.reduce(function(e,t){var r;return t.sets&&v(r=t)&&b(r)&&r.value>0&&-1===e.indexOf(t.sets[0])&&e.push(t.sets[0]),e},[]).sort(),i=r.reduce(function(e,r){return r.sets&&v(r)&&!r.sets.some(function(e){return -1===n.indexOf(e)})&&(e[r.sets.sort().join(t)]={sets:r.sets,value:r.value||0}),e},{});return n.reduce(function(e,r,n,i){let s=i.slice(n+1);return s.forEach(function(n){e.push(r+t+n)}),e},[]).forEach(function(e){if(!i[e]){let r={sets:e.split(t),value:0};i[e]=r}}),Object.keys(i).map(function(e){return i[e]})},sortByTotalOverlap:M}}),r(t,"Series/Venn/VennSeries.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Geometry/CircleUtilities.js"],t["Series/DrawPointUtilities.js"],t["Core/Geometry/GeometryUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Venn/VennPoint.js"],t["Series/Venn/VennSeriesDefaults.js"],t["Series/Venn/VennUtils.js"],t["Core/Utilities.js"]],function(e,t,r,n,i,s,o,l,a,u){let{animObject:c}=e,{parse:f}=t,{getAreaOfIntersectionBetweenCircles:h,getCirclesIntersectionPolygon:p,isCircle1CompletelyOverlappingCircle2:d,isPointInsideAllCircles:y,isPointOutsideAllCircles:g}=r,{getCenterOfPoints:x}=i,{scatter:m}=s.seriesTypes,{addEvent:b,extend:v,isArray:C,isNumber:M,isObject:A,merge:j}=u;class w extends m{static getLabelPosition(e,t){let r=e.reduce((r,n)=>{let i=n.r/2;return[{x:n.x,y:n.y},{x:n.x+i,y:n.y},{x:n.x-i,y:n.y},{x:n.x,y:n.y+i},{x:n.x,y:n.y-i}].reduce((r,n)=>{let i=a.getMarginFromCircles(n,e,t);return r.margin<i&&(r.point=n,r.margin=i),r},r)},{point:void 0,margin:-Number.MAX_VALUE}).point,n=a.nelderMead(r=>-a.getMarginFromCircles({x:r[0],y:r[1]},e,t),[r.x,r.y]);return y(r={x:n[0],y:n[1]},e)&&g(r,t)||(r=e.length>1?x(p(e)):{x:e[0].x,y:e[0].y}),r}static getLabelValues(e,t){let r=e.sets,n=t.reduce((e,t)=>{let n=r.indexOf(t.sets[0])>-1;return t.circle&&e[n?"internal":"external"].push(t.circle),e},{internal:[],external:[]});n.external=n.external.filter(e=>n.internal.some(t=>!d(e,t)));let i=w.getLabelPosition(n.internal,n.external),s=a.getLabelWidth(i,n.internal,n.external);return{position:i,width:s}}static layout(e){let t={},r={};if(e.length>0){let n=a.layoutGreedyVenn(e),i=e.filter(a.isSet);for(let s of e){let e=s.sets,o=e.join(),l=a.isSet(s)?n[o]:h(e.map(e=>n[e]));l&&(t[o]=l,r[o]=w.getLabelValues(s,i))}}return{mapOfIdToShape:t,mapOfIdToLabelValues:r}}static getScale(e,t,r){let n=r.bottom-r.top,i=r.right-r.left,s=(r.right+r.left)/2,o=(r.top+r.bottom)/2,l=Math.min(i>0?1/i*e:1,n>0?1/n*t:1);return{scale:l,centerX:e/2-s*l,centerY:t/2-o*l}}static updateFieldBoundaries(e,t){let r=t.x-t.r,n=t.x+t.r,i=t.y+t.r,s=t.y-t.r;return(!M(e.left)||e.left>r)&&(e.left=r),(!M(e.right)||e.right<n)&&(e.right=n),(!M(e.top)||e.top>s)&&(e.top=s),(!M(e.bottom)||e.bottom<i)&&(e.bottom=i),e}animate(e){if(!e){let e=c(this.options.animation);for(let t of this.points){let r=t.shapeArgs;if(t.graphic&&r){let n={},i={};r.d?n.opacity=.001:(n.r=0,i.r=r.r),t.graphic.attr(n).animate(i,e),r.d&&setTimeout(()=>{t&&t.graphic&&t.graphic.animate({opacity:1})},e.duration)}}}}drawPoints(){let e=this.chart,t=this.group,r=this.points||[],i=e.renderer;for(let s of r){let r={zIndex:C(s.sets)?s.sets.length:0},o=s.shapeArgs;e.styledMode||v(r,this.pointAttribs(s,s.state)),n.draw(s,{isNew:!s.graphic,animatableAttribs:o,attribs:r,group:t,renderer:i,shapeType:o&&o.d?"path":"circle"})}}init(){m.prototype.init.apply(this,arguments),delete this.opacity}pointAttribs(e,t){let r=this.options||{},n=e&&e.options||{},i=t&&r.states[t]||{},s=j(r,{color:e&&e.color},n,i);return{fill:f(s.color).brighten(s.brightness).get(),opacity:s.opacity,stroke:s.borderColor,"stroke-width":s.borderWidth,dashstyle:s.borderDashStyle}}translate(){let e=this.chart;this.processedXData=this.xData,this.generatePoints();let t=a.processVennData(this.options.data,w.splitter),{mapOfIdToShape:r,mapOfIdToLabelValues:n}=w.layout(t),i=Object.keys(r).filter(e=>{let t=r[e];return t&&M(t.r)}).reduce((e,t)=>w.updateFieldBoundaries(e,r[t]),{top:0,bottom:0,left:0,right:0}),s=w.getScale(e.plotWidth,e.plotHeight,i),o=s.scale,l=s.centerX,u=s.centerY;for(let e of this.points){let t=C(e.sets)?e.sets:[],i=t.join(),s=r[i],a,c=n[i]||{},f=c.width,h=c.position,p=e.options&&e.options.dataLabels;if(s){if(s.r)a={x:l+s.x*o,y:u+s.y*o,r:s.r*o};else if(s.d){let e=s.d;e.forEach(e=>{"M"===e[0]?(e[1]=l+e[1]*o,e[2]=u+e[2]*o):"A"===e[0]&&(e[1]=e[1]*o,e[2]=e[2]*o,e[6]=l+e[6]*o,e[7]=u+e[7]*o)}),a={d:e}}h?(h.x=l+h.x*o,h.y=u+h.y*o):h={},M(f)&&(f=Math.round(f*o))}e.shapeArgs=a,h&&a&&(e.plotX=h.x,e.plotY=h.y),f&&a&&(e.dlOptions=j(!0,{style:{width:f}},A(p,!0)?p:void 0)),e.name=e.options.name||t.join("∩")}}}return w.splitter="highcharts-split",w.defaultOptions=j(m.defaultOptions,l),v(w.prototype,{axisTypes:[],directTouch:!0,isCartesian:!1,pointArrayMap:["value"],pointClass:o,utils:a}),b(w,"afterSetOptions",function(e){let t=e.options,r=t.states||{};if(this.is("venn"))for(let e of Object.keys(r))r[e].halo=!1}),s.registerSeriesType("venn",w),w}),r(t,"masters/modules/venn.src.js",[],function(){})});
|
|
8
|
+
*/function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/modules/venn",["highcharts"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function r(e,t,r,n){e.hasOwnProperty(t)||(e[t]=n.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}r(t,"Core/Geometry/GeometryUtilities.js",[],function(){var e,t;return(t=e||(e={})).getCenterOfPoints=function(e){let t=e.reduce((e,t)=>(e.x+=t.x,e.y+=t.y,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}},t.getDistanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},t.getAngleBetweenPoints=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)},e}),r(t,"Core/Geometry/CircleUtilities.js",[t["Core/Geometry/GeometryUtilities.js"]],function(e){var t;let{getAngleBetweenPoints:r,getCenterOfPoints:n,getDistanceBetweenPoints:i}=e;return function(e){function t(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}function s(e){if(e<=0)throw Error("radius of circle must be a positive number.");return Math.PI*e*e}function o(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function l(e,r){let n=i(e,r),s=e.r,o=r.r,l=[];if(n<s+o&&n>Math.abs(s-o)){let i=s*s,a=(i-o*o+n*n)/(2*n),u=Math.sqrt(i-a*a),c=e.x,f=r.x,h=e.y,p=r.y,d=c+a*(f-c)/n,y=h+a*(p-h)/n,g=-(u/n*(p-h)),x=-(u/n*(f-c));l=[{x:t(d+g,14),y:t(y-x,14)},{x:t(d-g,14),y:t(y+x,14)}]}return l}function a(e){return e.reduce((e,t,r,n)=>{let i=n.slice(r+1).reduce((e,n,i)=>{let s=[r,i+r+1];return e.concat(l(t,n).map(e=>(e.indexes=s,e)))},[]);return e.concat(i)},[])}function u(e,t){return i(e,t)<=t.r+1e-10}function c(e,t){return!t.some(function(t){return!u(e,t)})}function f(e){return a(e).filter(function(t){return c(t,e)})}e.round=t,e.getAreaOfCircle=s,e.getCircularSegmentArea=o,e.getOverlapBetweenCircles=function(e,r,n){let i=0;if(n<e+r){if(n<=Math.abs(r-e))i=s(e<r?e:r);else{let t=(e*e-r*r+n*n)/(2*n);i=o(e,e-t)+o(r,r-(n-t))}i=t(i,14)}return i},e.getCircleCircleIntersection=l,e.getCirclesIntersectionPoints=a,e.isCircle1CompletelyOverlappingCircle2=function(e,t){return i(e,t)+t.r<e.r+1e-10},e.isPointInsideCircle=u,e.isPointInsideAllCircles=c,e.isPointOutsideAllCircles=function(e,t){return!t.some(function(t){return u(e,t)})},e.getCirclesIntersectionPolygon=f,e.getAreaOfIntersectionBetweenCircles=function(e){let t=f(e),s;if(t.length>1){let o=n(t),l=(t=t.map(function(e){return e.angle=r(o,e),e}).sort(function(e,t){return t.angle-e.angle}))[t.length-1],a=t.reduce(function(t,s){let{startPoint:o}=t,l=n([o,s]),a=s.indexes.filter(function(e){return o.indexes.indexOf(e)>-1}).reduce(function(t,n){let a=e[n],u=r(a,s),c=r(a,o),f=c-(c-u+(c<u?2*Math.PI:0))/2,h=i(l,{x:a.x+a.r*Math.sin(f),y:a.y+a.r*Math.cos(f)}),{r:p}=a;return h>2*p&&(h=2*p),(!t||t.width>h)&&(t={r:p,largeArc:h>p?1:0,width:h,x:s.x,y:s.y}),t},null);if(a){let{r:e}=a;t.arcs.push(["A",e,e,0,a.largeArc,1,a.x,a.y]),t.startPoint=s}return t},{startPoint:l,arcs:[]}).arcs;0===a.length||1===a.length||(a.unshift(["M",l.x,l.y]),s={center:o,d:a})}return s}}(t||(t={})),t}),r(t,"Series/DrawPointUtilities.js",[],function(){return{draw:function(e,t){let{animatableAttribs:r,onComplete:n,css:i,renderer:s}=t,o=e.series&&e.series.chart.hasRendered?void 0:e.series&&e.series.options.animation,l=e.graphic;if(t.attribs={...t.attribs,class:e.getClassName()},e.shouldDraw())l||(l="text"===t.shapeType?s.text():"image"===t.shapeType?s.image(t.imageUrl||"").attr(t.shapeArgs||{}):s[t.shapeType](t.shapeArgs||{}),e.graphic=l,l.add(t.group)),i&&l.css(i),l.attr(t.attribs).animate(r,!t.isNew&&o,n);else if(l){let t=()=>{e.graphic=l=l&&l.destroy(),"function"==typeof n&&n()};Object.keys(r).length?l.animate(r,void 0,()=>t()):t()}}}}),r(t,"Series/Venn/VennPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,t){let{scatter:{prototype:{pointClass:r}}}=e.seriesTypes,{isNumber:n}=t;return class extends r{isValid(){return n(this.value)}shouldDraw(){return!!this.shapeArgs}}}),r(t,"Series/Venn/VennSeriesDefaults.js",[],function(){return{borderColor:"#cccccc",borderDashStyle:"solid",borderWidth:1,brighten:0,clip:!1,colorByPoint:!0,dataLabels:{enabled:!0,verticalAlign:"middle",formatter:function(){return this.point.name}},inactiveOtherPoints:!0,marker:!1,opacity:.75,showInLegend:!1,legendType:"point",states:{hover:{opacity:1,borderColor:"#333333"},select:{color:"#cccccc",borderColor:"#000000",animation:!1},inactive:{opacity:.075}},tooltip:{pointFormat:"{point.name}: {point.value}"},legendSymbol:"rectangle"}}),r(t,"Series/Venn/VennUtils.js",[t["Core/Geometry/CircleUtilities.js"],t["Core/Geometry/GeometryUtilities.js"],t["Core/Utilities.js"]],function(e,t,r){let{getAreaOfCircle:n,getCircleCircleIntersection:i,getOverlapBetweenCircles:s,isPointInsideAllCircles:o,isPointInsideCircle:l,isPointOutsideAllCircles:a}=e,{getDistanceBetweenPoints:u}=t,{extend:c,isArray:f,isNumber:h,isObject:p,isString:d}=r;function y(e){let t={};return e.filter(e=>2===e.sets.length).forEach(e=>{e.sets.forEach((r,n,i)=>{p(t[r])||(t[r]={totalOverlap:0,overlapping:{}}),t[r]={totalOverlap:(t[r].totalOverlap||0)+e.value,overlapping:{...t[r].overlapping||{},[i[1-n]]:e.value}}})}),e.filter(b).forEach(e=>{let r=t[e.sets[0]];c(e,r)}),e}function g(e,t,r,n,i){let s=e(t),o=e(r),l=i||100,a=n||1e-10,u=r-t,c=1,f,h;if(t>=r)throw Error("a must be smaller than b.");if(s*o>0)throw Error("f(a) and f(b) must have opposite signs.");if(0===s)f=t;else if(0===o)f=r;else for(;c++<=l&&0!==h&&u>a;)u=(r-t)/2,s*(h=e(f=t+u))>0?t=f:r=f;return f}function x(e){let t=e.slice(0,-1),r=t.length,n=[],i=(e,t)=>(e.sum+=t[e.i],e);for(let e=0;e<r;e++)n[e]=t.reduce(i,{sum:0,i:e}).sum/r;return n}function m(e,t,r){let i=e+t;return r<=0?i:n(e<t?e:t)<=r?0:g(n=>r-s(e,t,n),0,i)}function b(e){return f(e.sets)&&1===e.sets.length}function v(e){let t={};return p(e)&&h(e.value)&&e.value>-1&&f(e.sets)&&e.sets.length>0&&!e.sets.some(function(e){let r=!1;return!t[e]&&d(e)?t[e]=!0:r=!0,r})}function C(e,t){return t.reduce(function(t,r){let n=0;if(r.sets.length>1){let t=r.value-function(e){let t=0;if(2===e.length){let r=e[0],n=e[1];t=s(r.r,n.r,u(r,n))}return t}(r.sets.map(function(t){return e[t]}));n=Math.round(t*t*1e11)/1e11}return t+n},0)}function M(e,t){return void 0!==t.totalOverlap&&void 0!==e.totalOverlap?t.totalOverlap-e.totalOverlap:NaN}return{geometry:t,geometryCircles:e,addOverlapToSets:y,getCentroid:x,getDistanceBetweenCirclesByOverlap:m,getLabelWidth:function(e,t,r){let n=t.reduce((e,t)=>Math.min(t.r,e),1/0),i=r.filter(t=>!l(e,t)),s=function(r,n){return g(s=>{let l={x:e.x+n*s,y:e.y};return-(r-s)+(o(l,t)&&a(l,i)?0:Number.MAX_VALUE)},0,r)};return 2*Math.min(s(n,-1),s(n,1))},getMarginFromCircles:function(e,t,r){let n=t.reduce((t,r)=>{let n=r.r-u(e,r);return n<=t?n:t},Number.MAX_VALUE);return r.reduce((t,r)=>{let n=u(e,r)-r.r;return n<=t?n:t},n)},isSet:b,layoutGreedyVenn:function(e){let t=[],r={};e.filter(e=>1===e.sets.length).forEach(e=>{r[e.sets[0]]=e.circle={x:Number.MAX_VALUE,y:Number.MAX_VALUE,r:Math.sqrt(e.value/Math.PI)}});let n=(e,r)=>{let n=e.circle;n&&(n.x=r.x,n.y=r.y),t.push(e)};y(e);let s=e.filter(b).sort(M);n(s.shift(),{x:0,y:0});let o=e.filter(e=>2===e.sets.length);for(let e of s){let s=e.circle;if(!s)continue;let l=s.r,a=e.overlapping;n(e,t.reduce((e,n,u)=>{let c=n.circle;if(!c||!a)return e;let f=a[n.sets[0]],h=m(l,c.r,f),p=[{x:c.x+h,y:c.y},{x:c.x-h,y:c.y},{x:c.x,y:c.y+h},{x:c.x,y:c.y-h}];for(let e of t.slice(u+1)){let t=e.circle,r=a[e.sets[0]];if(!t)continue;let n=m(l,t.r,r);p=p.concat(i({x:c.x,y:c.y,r:h},{x:t.x,y:t.y,r:n}))}for(let t of p){s.x=t.x,s.y=t.y;let n=C(r,o);n<e.loss&&(e.loss=n,e.coordinates=t)}return e},{loss:Number.MAX_VALUE,coordinates:void 0}).coordinates)}return r},loss:C,nelderMead:function(e,t){let r=function(e,t){return e.fx-t.fx},n=(e,t,r,n)=>t.map((t,i)=>e*t+r*n[i]),i=(t,r)=>(r.fx=e(r),t[t.length-1]=r,t),s=t=>{let r=t[0];return t.map(t=>{let i=n(.5,r,.5,t);return i.fx=e(i),i})},o=(t,r,i,s)=>{let o=n(i,t,s,r);return o.fx=e(o),o},l=(t=>{let r=t.length,n=Array(r+1);n[0]=t,n[0].fx=e(t);for(let i=0;i<r;++i){let r=t.slice();r[i]=r[i]?1.05*r[i]:.001,r.fx=e(r),n[i+1]=r}return n})(t);for(let e=0;e<100;e++){l.sort(r);let e=l[l.length-1],t=x(l),n=o(t,e,2,-1);if(n.fx<l[0].fx){let r=o(t,e,3,-2);l=i(l,r.fx<n.fx?r:n)}else if(n.fx>=l[l.length-2].fx){let r;l=n.fx>e.fx?(r=o(t,e,.5,.5)).fx<e.fx?i(l,r):s(l):(r=o(t,e,1.5,-.5)).fx<n.fx?i(l,r):s(l)}else l=i(l,n)}return l[0]},processVennData:function(e,t){let r=f(e)?e:[],n=r.reduce(function(e,t){var r;return t.sets&&v(r=t)&&b(r)&&r.value>0&&-1===e.indexOf(t.sets[0])&&e.push(t.sets[0]),e},[]).sort(),i=r.reduce(function(e,r){return r.sets&&v(r)&&!r.sets.some(function(e){return -1===n.indexOf(e)})&&(e[r.sets.sort().join(t)]={sets:r.sets,value:r.value||0}),e},{});return n.reduce(function(e,r,n,i){return i.slice(n+1).forEach(function(n){e.push(r+t+n)}),e},[]).forEach(function(e){if(!i[e]){let r={sets:e.split(t),value:0};i[e]=r}}),Object.keys(i).map(function(e){return i[e]})},sortByTotalOverlap:M}}),r(t,"Series/Venn/VennSeries.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Geometry/CircleUtilities.js"],t["Series/DrawPointUtilities.js"],t["Core/Geometry/GeometryUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Venn/VennPoint.js"],t["Series/Venn/VennSeriesDefaults.js"],t["Series/Venn/VennUtils.js"],t["Core/Utilities.js"]],function(e,t,r,n,i,s,o,l,a,u){let{animObject:c}=e,{parse:f}=t,{getAreaOfIntersectionBetweenCircles:h,getCirclesIntersectionPolygon:p,isCircle1CompletelyOverlappingCircle2:d,isPointInsideAllCircles:y,isPointOutsideAllCircles:g}=r,{getCenterOfPoints:x}=i,{scatter:m}=s.seriesTypes,{addEvent:b,extend:v,isArray:C,isNumber:M,isObject:A,merge:j}=u;class w extends m{static getLabelPosition(e,t){let r=e.reduce((r,n)=>{let i=n.r/2;return[{x:n.x,y:n.y},{x:n.x+i,y:n.y},{x:n.x-i,y:n.y},{x:n.x,y:n.y+i},{x:n.x,y:n.y-i}].reduce((r,n)=>{let i=a.getMarginFromCircles(n,e,t);return r.margin<i&&(r.point=n,r.margin=i),r},r)},{point:void 0,margin:-Number.MAX_VALUE}).point,n=a.nelderMead(r=>-a.getMarginFromCircles({x:r[0],y:r[1]},e,t),[r.x,r.y]);return y(r={x:n[0],y:n[1]},e)&&g(r,t)||(r=e.length>1?x(p(e)):{x:e[0].x,y:e[0].y}),r}static getLabelValues(e,t){let r=e.sets,n=t.reduce((e,t)=>{let n=r.indexOf(t.sets[0])>-1;return t.circle&&e[n?"internal":"external"].push(t.circle),e},{internal:[],external:[]});n.external=n.external.filter(e=>n.internal.some(t=>!d(e,t)));let i=w.getLabelPosition(n.internal,n.external),s=a.getLabelWidth(i,n.internal,n.external);return{position:i,width:s}}static layout(e){let t={},r={};if(e.length>0){let n=a.layoutGreedyVenn(e),i=e.filter(a.isSet);for(let s of e){let e=s.sets,o=e.join(),l=a.isSet(s)?n[o]:h(e.map(e=>n[e]));l&&(t[o]=l,r[o]=w.getLabelValues(s,i))}}return{mapOfIdToShape:t,mapOfIdToLabelValues:r}}static getScale(e,t,r){let n=r.bottom-r.top,i=r.right-r.left,s=(r.right+r.left)/2,o=(r.top+r.bottom)/2,l=Math.min(i>0?1/i*e:1,n>0?1/n*t:1);return{scale:l,centerX:e/2-s*l,centerY:t/2-o*l}}static updateFieldBoundaries(e,t){let r=t.x-t.r,n=t.x+t.r,i=t.y+t.r,s=t.y-t.r;return(!M(e.left)||e.left>r)&&(e.left=r),(!M(e.right)||e.right<n)&&(e.right=n),(!M(e.top)||e.top>s)&&(e.top=s),(!M(e.bottom)||e.bottom<i)&&(e.bottom=i),e}animate(e){if(!e){let e=c(this.options.animation);for(let t of this.points){let r=t.shapeArgs;if(t.graphic&&r){let n={},i={};r.d?n.opacity=.001:(n.r=0,i.r=r.r),t.graphic.attr(n).animate(i,e),r.d&&setTimeout(()=>{t&&t.graphic&&t.graphic.animate({opacity:1})},e.duration)}}}}drawPoints(){let e=this.chart,t=this.group,r=this.points||[],i=e.renderer;for(let s of r){let r={zIndex:C(s.sets)?s.sets.length:0},o=s.shapeArgs;e.styledMode||v(r,this.pointAttribs(s,s.state)),n.draw(s,{isNew:!s.graphic,animatableAttribs:o,attribs:r,group:t,renderer:i,shapeType:o&&o.d?"path":"circle"})}}init(){m.prototype.init.apply(this,arguments),delete this.opacity}pointAttribs(e,t){let r=this.options||{},n=e&&e.options||{},i=t&&r.states[t]||{},s=j(r,{color:e&&e.color},n,i);return{fill:f(s.color).brighten(s.brightness).get(),opacity:s.opacity,stroke:s.borderColor,"stroke-width":s.borderWidth,dashstyle:s.borderDashStyle}}translate(){let e=this.chart;this.processedXData=this.xData,this.generatePoints();let t=a.processVennData(this.options.data,w.splitter),{mapOfIdToShape:r,mapOfIdToLabelValues:n}=w.layout(t),i=Object.keys(r).filter(e=>{let t=r[e];return t&&M(t.r)}).reduce((e,t)=>w.updateFieldBoundaries(e,r[t]),{top:0,bottom:0,left:0,right:0}),s=w.getScale(e.plotWidth,e.plotHeight,i),o=s.scale,l=s.centerX,u=s.centerY;for(let e of this.points){let t=C(e.sets)?e.sets:[],i=t.join(),s=r[i],a,c=n[i]||{},f=c.width,h=c.position,p=e.options&&e.options.dataLabels;if(s){if(s.r)a={x:l+s.x*o,y:u+s.y*o,r:s.r*o};else if(s.d){let e=s.d;e.forEach(e=>{"M"===e[0]?(e[1]=l+e[1]*o,e[2]=u+e[2]*o):"A"===e[0]&&(e[1]=e[1]*o,e[2]=e[2]*o,e[6]=l+e[6]*o,e[7]=u+e[7]*o)}),a={d:e}}h?(h.x=l+h.x*o,h.y=u+h.y*o):h={},M(f)&&(f=Math.round(f*o))}e.shapeArgs=a,h&&a&&(e.plotX=h.x,e.plotY=h.y),f&&a&&(e.dlOptions=j(!0,{style:{width:f}},A(p,!0)?p:void 0)),e.name=e.options.name||t.join("∩")}}}return w.splitter="highcharts-split",w.defaultOptions=j(m.defaultOptions,l),v(w.prototype,{axisTypes:[],directTouch:!0,isCartesian:!1,pointArrayMap:["value"],pointClass:o,utils:a}),b(w,"afterSetOptions",function(e){let t=e.options.states||{};if(this.is("venn"))for(let e of Object.keys(t))t[e].halo=!1}),s.registerSeriesType("venn",w),w}),r(t,"masters/modules/venn.src.js",[t["Core/Globals.js"]],function(e){return e})});
|
package/modules/venn.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts JS v11.
|
|
2
|
+
* @license Highcharts JS v11.4.0 (2024-03-05)
|
|
3
3
|
*
|
|
4
4
|
* (c) 2017-2024 Highsoft AS
|
|
5
5
|
* Authors: Jon Arild Nygard
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
* The first circle.
|
|
255
255
|
*
|
|
256
256
|
* @param {Highcharts.CircleObject} c2
|
|
257
|
-
* The second
|
|
257
|
+
* The second circle.
|
|
258
258
|
*
|
|
259
259
|
* @return {Array<Highcharts.PositionObject>}
|
|
260
260
|
* Returns the resulting intersection points.
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
return circles.reduce((points, c1, i, arr) => {
|
|
294
294
|
const additional = arr
|
|
295
295
|
.slice(i + 1)
|
|
296
|
-
.reduce((points, c2, j
|
|
296
|
+
.reduce((points, c2, j) => {
|
|
297
297
|
const indexes = [i, j + i + 1];
|
|
298
298
|
return points.concat(getCircleCircleIntersection(c1, c2).map((p) => {
|
|
299
299
|
p.indexes = indexes;
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
* The first circle.
|
|
315
315
|
*
|
|
316
316
|
* @param {Highcharts.CircleObject} circle2
|
|
317
|
-
* The
|
|
317
|
+
* The second circle.
|
|
318
318
|
*
|
|
319
319
|
* @return {boolean}
|
|
320
320
|
* Returns true if circle1 is completely overlapping circle2, false if not.
|
|
@@ -506,13 +506,12 @@
|
|
|
506
506
|
|
|
507
507
|
return CircleUtilities;
|
|
508
508
|
});
|
|
509
|
-
_registerModule(_modules, 'Series/DrawPointUtilities.js', [
|
|
509
|
+
_registerModule(_modules, 'Series/DrawPointUtilities.js', [], function () {
|
|
510
510
|
/* *
|
|
511
511
|
*
|
|
512
512
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
513
513
|
*
|
|
514
514
|
* */
|
|
515
|
-
const { isNumber } = U;
|
|
516
515
|
/* *
|
|
517
516
|
*
|
|
518
517
|
* Functions
|
|
@@ -972,7 +971,7 @@
|
|
|
972
971
|
* @param {number} r1
|
|
973
972
|
* Radius of the first circle.
|
|
974
973
|
* @param {number} r2
|
|
975
|
-
*
|
|
974
|
+
* Radius of the second circle.
|
|
976
975
|
* @param {number} overlap
|
|
977
976
|
* The wanted overlap between the two circles.
|
|
978
977
|
* @return {number}
|
|
@@ -993,7 +992,7 @@
|
|
|
993
992
|
else {
|
|
994
993
|
distance = bisect((x) => {
|
|
995
994
|
const actualOverlap = getOverlapBetweenCirclesByDistance(r1, r2, x);
|
|
996
|
-
// Return the
|
|
995
|
+
// Return the difference between wanted and actual overlap.
|
|
997
996
|
return overlap - actualOverlap;
|
|
998
997
|
}, 0, maxDistance);
|
|
999
998
|
}
|
|
@@ -1026,8 +1025,7 @@
|
|
|
1026
1025
|
}, isValid = (isPointInsideAllCircles(testPos, internal) &&
|
|
1027
1026
|
isPointOutsideAllCircles(testPos, filteredExternals));
|
|
1028
1027
|
// If the position is valid, then we want to move towards the
|
|
1029
|
-
// max distance. If not, then we want to
|
|
1030
|
-
// distance.
|
|
1028
|
+
// max distance. If not, then we want to away from the max distance.
|
|
1031
1029
|
return -(maxDistance - x) + (isValid ? 0 : Number.MAX_VALUE);
|
|
1032
1030
|
}, 0, maxDistance);
|
|
1033
1031
|
};
|
|
@@ -1035,7 +1033,7 @@
|
|
|
1035
1033
|
return Math.min(findDistance(radius, -1), findDistance(radius, 1)) * 2;
|
|
1036
1034
|
}
|
|
1037
1035
|
/**
|
|
1038
|
-
* Calculates a margin for a point based on the
|
|
1036
|
+
* Calculates a margin for a point based on the internal and external
|
|
1039
1037
|
* circles. The margin describes if the point is well placed within the
|
|
1040
1038
|
* internal circles, and away from the external.
|
|
1041
1039
|
* @private
|
|
@@ -1260,7 +1258,7 @@
|
|
|
1260
1258
|
* @param {Highcharts.NelderMeadPointArray} initial
|
|
1261
1259
|
* The initial point to optimize.
|
|
1262
1260
|
* @return {Highcharts.NelderMeadPointArray}
|
|
1263
|
-
* Returns the
|
|
1261
|
+
* Returns the optimized position of a point.
|
|
1264
1262
|
*/
|
|
1265
1263
|
function nelderMead(fn, initial) {
|
|
1266
1264
|
const maxIterations = 100, sortByFx = function (a, b) {
|
|
@@ -1495,7 +1493,7 @@
|
|
|
1495
1493
|
* */
|
|
1496
1494
|
/**
|
|
1497
1495
|
* Finds the optimal label position by looking for a position that has a low
|
|
1498
|
-
* distance from the internal circles, and as large possible
|
|
1496
|
+
* distance from the internal circles, and as large possible distance to the
|
|
1499
1497
|
* external circles.
|
|
1500
1498
|
* @private
|
|
1501
1499
|
* @todo Optimize the intial position.
|
|
@@ -1564,7 +1562,7 @@
|
|
|
1564
1562
|
return best;
|
|
1565
1563
|
}
|
|
1566
1564
|
/**
|
|
1567
|
-
*
|
|
1565
|
+
* Calculates data label values for a given relations object.
|
|
1568
1566
|
*
|
|
1569
1567
|
* @private
|
|
1570
1568
|
* @todo add unit tests
|
|
@@ -1594,7 +1592,7 @@
|
|
|
1594
1592
|
// Filter out external circles that are completely overlapping all
|
|
1595
1593
|
// internal
|
|
1596
1594
|
data.external = data.external.filter((externalCircle) => data.internal.some((internalCircle) => !isCircle1CompletelyOverlappingCircle2(externalCircle, internalCircle)));
|
|
1597
|
-
//
|
|
1595
|
+
// Calculate the label position.
|
|
1598
1596
|
const position = VennSeries.getLabelPosition(data.internal, data.external);
|
|
1599
1597
|
// Calculate the label width
|
|
1600
1598
|
const width = VennUtils.getLabelWidth(position, data.internal, data.external);
|
|
@@ -1611,7 +1609,7 @@
|
|
|
1611
1609
|
* @todo Add support for constrained MDS.
|
|
1612
1610
|
* @param {Array<Highchats.VennRelationObject>} relations
|
|
1613
1611
|
* List of the overlap between two or more sets, or the size of a single
|
|
1614
|
-
*
|
|
1612
|
+
* set.
|
|
1615
1613
|
* @return {Highcharts.Dictionary<*>}
|
|
1616
1614
|
* List of circles and their calculated positions.
|
|
1617
1615
|
*/
|
|
@@ -1903,8 +1901,9 @@
|
|
|
1903
1901
|
|
|
1904
1902
|
return VennSeries;
|
|
1905
1903
|
});
|
|
1906
|
-
_registerModule(_modules, 'masters/modules/venn.src.js', [], function () {
|
|
1904
|
+
_registerModule(_modules, 'masters/modules/venn.src.js', [_modules['Core/Globals.js']], function (Highcharts) {
|
|
1907
1905
|
|
|
1908
1906
|
|
|
1907
|
+
return Highcharts;
|
|
1909
1908
|
});
|
|
1910
1909
|
}));
|