@splunk/visualizations 28.5.3 → 28.6.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/Area/Area.d.ts.map +1 -1
- package/Area/areaUtils.d.ts +1 -1
- package/Area/areaUtils.d.ts.map +1 -1
- package/Area/config.d.ts.map +1 -1
- package/Area.config.js +93 -25
- package/Area.config.js.map +3 -3
- package/Area.js +708 -319
- package/Area.js.map +4 -4
- package/Bar/Bar.d.ts.map +1 -1
- package/Bar.config.js +81 -24
- package/Bar.config.js.map +3 -3
- package/Bar.js +528 -297
- package/Bar.js.map +4 -4
- package/Bubble.config.js +80 -23
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +375 -208
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +56 -10
- package/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts +1 -0
- package/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +1 -1
- package/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts +12 -25
- package/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +1 -1
- package/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts +11 -4
- package/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +1 -1
- package/ChoroplethSvg.js +1133 -253
- package/ChoroplethSvg.js.map +4 -4
- package/Column/Column.d.ts.map +1 -1
- package/Column.config.js +81 -24
- package/Column.config.js.map +3 -3
- package/Column.js +531 -300
- package/Column.js.map +4 -4
- package/Ellipse.config.js +1 -1
- package/Ellipse.config.js.map +2 -2
- package/Ellipse.js +277 -161
- package/Ellipse.js.map +4 -4
- package/Events/config.d.ts.map +1 -1
- package/Events.config.js +13 -3
- package/Events.config.js.map +2 -2
- package/Events.js +330 -194
- package/Events.js.map +4 -4
- package/FillerGauge/FillerGauge.d.ts.map +1 -1
- package/FillerGauge/config.d.ts.map +1 -1
- package/FillerGauge.config.js +76 -24
- package/FillerGauge.config.js.map +2 -2
- package/FillerGauge.js +512 -271
- package/FillerGauge.js.map +4 -4
- package/Image/config.d.ts.map +1 -1
- package/Image.config.js +7 -0
- package/Image.config.js.map +2 -2
- package/Image.js +282 -149
- package/Image.js.map +4 -4
- package/LICENSE +13 -0
- package/Line/Line.d.ts.map +1 -1
- package/Line/config.d.ts.map +1 -1
- package/Line/lineUtils.d.ts.map +1 -1
- package/Line/mockdata/LineData.d.ts +21 -0
- package/Line/mockdata/LineData.d.ts.map +1 -1
- package/Line.config.js +86 -25
- package/Line.config.js.map +3 -3
- package/Line.js +638 -382
- package/Line.js.map +4 -4
- package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts +47 -73
- package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -1
- package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts +11 -2
- package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -1
- package/LinkGraph/PureLinkGraph/components/Graph.d.ts +5 -5
- package/LinkGraph/PureLinkGraph/components/Node.d.ts +2 -2
- package/LinkGraph/PureLinkGraph/components/Nodes.d.ts +2 -2
- package/LinkGraph.js +886 -759
- package/LinkGraph.js.map +4 -4
- package/Map/PureMap/BubbleLayer.d.ts.map +1 -1
- package/Map/PureMap/Tooltip.d.ts.map +1 -1
- package/Map/config.d.ts.map +1 -1
- package/Map.config.js +4 -1
- package/Map.config.js.map +2 -2
- package/Map.js +296 -169
- package/Map.js.map +4 -4
- package/Markdown/Markdown.d.ts.map +1 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +283 -157
- package/Markdown.js.map +4 -4
- package/MarkerGauge/MarkerGauge.d.ts +1 -47
- package/MarkerGauge/MarkerGauge.d.ts.map +1 -1
- package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts +22 -68
- package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -1
- package/MarkerGauge/config.d.ts.map +1 -1
- package/MarkerGauge.config.js +75 -23
- package/MarkerGauge.config.js.map +2 -2
- package/MarkerGauge.js +560 -375
- package/MarkerGauge.js.map +4 -4
- package/NetworkGraph.config.js.map +1 -1
- package/NetworkGraph.js +544 -417
- package/NetworkGraph.js.map +4 -4
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +288 -172
- package/ParallelCoordinates.js.map +4 -4
- package/Pie/Pie.d.ts.map +1 -1
- package/Pie/pieUtils.d.ts +2 -2
- package/Pie.config.js +74 -22
- package/Pie.config.js.map +2 -2
- package/Pie.js +522 -296
- package/Pie.js.map +4 -4
- package/ProcessTree/ProcessTree.d.ts +21 -0
- package/ProcessTree/ProcessTree.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/PureProcessTree.d.ts +32 -0
- package/ProcessTree/PureProcessTree/PureProcessTree.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/components/DirectionalBytes.d.ts +8 -0
- package/ProcessTree/PureProcessTree/components/DirectionalBytes.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeLeftPanel.d.ts +44 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeLeftPanel.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeRightPanel.d.ts +20 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeRightPanel.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeExpansionState.d.ts +20 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeExpansionState.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeGraphData.d.ts +44 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeGraphData.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeLinkOverlay.d.ts +23 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeLinkOverlay.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/mockdata/data.d.ts +235 -0
- package/ProcessTree/PureProcessTree/mockdata/data.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/utils/iconLoader.d.ts +9 -0
- package/ProcessTree/PureProcessTree/utils/iconLoader.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/utils/processTreeLinkOverlayUtils.d.ts +36 -0
- package/ProcessTree/PureProcessTree/utils/processTreeLinkOverlayUtils.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/utils/processTreeUtils.d.ts +80 -0
- package/ProcessTree/PureProcessTree/utils/processTreeUtils.d.ts.map +1 -0
- package/ProcessTree/config.d.ts +4 -0
- package/ProcessTree/config.d.ts.map +1 -0
- package/ProcessTree/index.d.ts +3 -0
- package/ProcessTree/index.d.ts.map +1 -0
- package/ProcessTree.config.js +192 -0
- package/ProcessTree.config.js.map +7 -0
- package/ProcessTree.js +5058 -0
- package/ProcessTree.js.map +7 -0
- package/Punchcard/Punchcard.d.ts +1 -5
- package/Punchcard/Punchcard.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/Punchcard.d.ts +28 -32
- package/Punchcard/PurePunchcard/Punchcard.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts +7 -12
- package/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts +14 -19
- package/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts +22 -27
- package/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts +3 -8
- package/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts +9 -14
- package/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +1 -1
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +444 -631
- package/Punchcard.js.map +4 -4
- package/Rectangle.config.js +1 -1
- package/Rectangle.config.js.map +2 -2
- package/Rectangle.js +289 -173
- package/Rectangle.js.map +4 -4
- package/RichText/PureRichText/Editor/EditorPanel.d.ts +20 -0
- package/RichText/PureRichText/Editor/EditorPanel.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/EditorPanelStyles.d.ts +17 -0
- package/RichText/PureRichText/Editor/EditorPanelStyles.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/FontSelector.d.ts +15 -0
- package/RichText/PureRichText/Editor/FontSelector.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/FormatButton.d.ts +23 -0
- package/RichText/PureRichText/Editor/FormatButton.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/editorPanelUtils.d.ts +19 -0
- package/RichText/PureRichText/Editor/editorPanelUtils.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/hooks/useLineSpacing.d.ts +11 -0
- package/RichText/PureRichText/Editor/hooks/useLineSpacing.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/hooks/useLinkHandlers.d.ts +26 -0
- package/RichText/PureRichText/Editor/hooks/useLinkHandlers.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/index.d.ts +9 -0
- package/RichText/PureRichText/Editor/index.d.ts.map +1 -0
- package/RichText/PureRichText/InnerEditor.d.ts +41 -0
- package/RichText/PureRichText/InnerEditor.d.ts.map +1 -0
- package/RichText/PureRichText/PureRichText.d.ts +19 -0
- package/RichText/PureRichText/PureRichText.d.ts.map +1 -0
- package/RichText/PureRichText/PureRichTextContext.d.ts +64 -0
- package/RichText/PureRichText/PureRichTextContext.d.ts.map +1 -0
- package/RichText/PureRichText/RichTextStyles.d.ts +25 -0
- package/RichText/PureRichText/RichTextStyles.d.ts.map +1 -0
- package/RichText/PureRichText/activeInstance.d.ts +23 -0
- package/RichText/PureRichText/activeInstance.d.ts.map +1 -0
- package/RichText/PureRichText/config.d.ts +17 -0
- package/RichText/PureRichText/config.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/index.d.ts +12 -0
- package/RichText/PureRichText/hooks/index.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useContentSave.d.ts +25 -0
- package/RichText/PureRichText/hooks/useContentSave.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useContentSync.d.ts +28 -0
- package/RichText/PureRichText/hooks/useContentSync.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useDashboardKeyboardNav.d.ts +33 -0
- package/RichText/PureRichText/hooks/useDashboardKeyboardNav.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useEditModeEffect.d.ts +10 -0
- package/RichText/PureRichText/hooks/useEditModeEffect.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useEditorSetup.d.ts +36 -0
- package/RichText/PureRichText/hooks/useEditorSetup.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useFakeHighlight.d.ts +33 -0
- package/RichText/PureRichText/hooks/useFakeHighlight.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useFocusHandlers.d.ts +35 -0
- package/RichText/PureRichText/hooks/useFocusHandlers.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useKeyboardShortcuts.d.ts +18 -0
- package/RichText/PureRichText/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useMouseHandlers.d.ts +24 -0
- package/RichText/PureRichText/hooks/useMouseHandlers.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useRichTextState.d.ts +38 -0
- package/RichText/PureRichText/hooks/useRichTextState.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useStepFontSize.d.ts +17 -0
- package/RichText/PureRichText/hooks/useStepFontSize.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useStepLineSpacing.d.ts +18 -0
- package/RichText/PureRichText/hooks/useStepLineSpacing.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useTokenMap.d.ts +45 -0
- package/RichText/PureRichText/hooks/useTokenMap.d.ts.map +1 -0
- package/RichText/PureRichText/index.d.ts +16 -0
- package/RichText/PureRichText/index.d.ts.map +1 -0
- package/RichText/PureRichText/renderers/ElementRenderer.d.ts +8 -0
- package/RichText/PureRichText/renderers/ElementRenderer.d.ts.map +1 -0
- package/RichText/PureRichText/renderers/LeafRenderer.d.ts +8 -0
- package/RichText/PureRichText/renderers/LeafRenderer.d.ts.map +1 -0
- package/RichText/PureRichText/types.d.ts +111 -0
- package/RichText/PureRichText/types.d.ts.map +1 -0
- package/RichText/PureRichText/utils/a11yUtils.d.ts +9 -0
- package/RichText/PureRichText/utils/a11yUtils.d.ts.map +1 -0
- package/RichText/PureRichText/utils/fontSize.d.ts +6 -0
- package/RichText/PureRichText/utils/fontSize.d.ts.map +1 -0
- package/RichText/PureRichText/utils/slateUtils.d.ts +99 -0
- package/RichText/PureRichText/utils/slateUtils.d.ts.map +1 -0
- package/RichText/RichText.d.ts +17 -0
- package/RichText/RichText.d.ts.map +1 -0
- package/RichText/config.d.ts +4 -0
- package/RichText/config.d.ts.map +1 -0
- package/RichText/index.d.ts +7 -0
- package/RichText/index.d.ts.map +1 -0
- package/RichText.config.js +268 -0
- package/RichText.config.js.map +7 -0
- package/RichText.js +7674 -0
- package/RichText.js.map +7 -0
- package/Sankey/PureSankey/PureSankey.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyNode.d.ts +10 -3
- package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyUtils.d.ts +10 -0
- package/Sankey/PureSankey/SankeyUtils.d.ts.map +1 -1
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +562 -290
- package/Sankey.js.map +4 -4
- package/Scatter/Scatter.d.ts.map +1 -1
- package/Scatter.config.js +81 -24
- package/Scatter.config.js.map +3 -3
- package/Scatter.js +528 -297
- package/Scatter.js.map +4 -4
- package/SingleValue/SingleValue.d.ts.map +1 -1
- package/SingleValue/config.d.ts.map +1 -1
- package/SingleValue.config.js +76 -24
- package/SingleValue.config.js.map +2 -2
- package/SingleValue.js +534 -314
- package/SingleValue.js.map +4 -4
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon/SingleValueIcon.d.ts.map +1 -1
- package/SingleValueIcon/config.d.ts.map +1 -1
- package/SingleValueIcon.config.js +76 -24
- package/SingleValueIcon.config.js.map +2 -2
- package/SingleValueIcon.js +512 -287
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts +0 -8
- package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -1
- package/SingleValueRadial/SingleValueRadial.d.ts.map +1 -1
- package/SingleValueRadial/config.d.ts.map +1 -1
- package/SingleValueRadial.config.js +76 -24
- package/SingleValueRadial.config.js.map +2 -2
- package/SingleValueRadial.js +543 -326
- package/SingleValueRadial.js.map +4 -4
- package/TRELLIS.md +48 -0
- package/Table/PureTable.d.ts +1 -0
- package/Table/PureTable.d.ts.map +1 -1
- package/Table/Table.d.ts.map +1 -1
- package/Table/cells/ArrayCell.d.ts.map +1 -1
- package/Table/config.d.ts.map +1 -1
- package/Table/hooks.d.ts.map +1 -1
- package/Table/tableUtils.d.ts +14 -0
- package/Table/tableUtils.d.ts.map +1 -0
- package/Table.config.js +4 -10
- package/Table.config.js.map +2 -2
- package/Table.js +769 -355
- package/Table.js.map +4 -4
- package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +5 -0
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -1
- package/Timeline/Timeline.d.ts +2 -0
- package/Timeline/Timeline.d.ts.map +1 -1
- package/Timeline/config.d.ts.map +1 -1
- package/Timeline/mockdata/timelineDataSource.d.ts +34 -0
- package/Timeline/mockdata/timelineDataSource.d.ts.map +1 -1
- package/Timeline.config.js +15 -0
- package/Timeline.config.js.map +2 -2
- package/Timeline.js +348 -186
- package/Timeline.js.map +4 -4
- package/common/Charting.d.ts.map +1 -1
- package/common/Charting.js +50 -28
- package/common/Charting.js.map +2 -2
- package/common/ChartingApi.d.ts +1 -1
- package/common/ChartingApi.d.ts.map +1 -1
- package/common/ChartingApi.js.map +2 -2
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.d.ts +1 -1
- package/common/SplunkVisualization.d.ts.map +1 -1
- package/common/SplunkVisualization.js +6 -4
- package/common/SplunkVisualization.js.map +2 -2
- package/common/StyledSkipLink.d.ts +2 -0
- package/common/StyledSkipLink.d.ts.map +1 -0
- package/common/StyledSkipLink.js +81 -0
- package/common/StyledSkipLink.js.map +7 -0
- package/common/TimeSeriesChartWrapper.d.ts.map +1 -1
- package/common/TimeSeriesChartWrapper.js +228 -107
- package/common/TimeSeriesChartWrapper.js.map +4 -4
- package/common/chartingUtils.d.ts +32 -6
- package/common/chartingUtils.d.ts.map +1 -1
- package/common/chartingUtils.js +166 -39
- package/common/chartingUtils.js.map +4 -4
- package/common/components/TrellisTitle.d.ts.map +1 -1
- package/common/docUtils.js +1 -1
- package/common/docUtils.js.map +2 -2
- package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -1
- package/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +1 -1
- package/common/editorConfig/BackgroundColor.d.ts +2 -2
- package/common/editorConfig/TrellisEditors.d.ts +33 -5
- package/common/editorConfig/TrellisEditors.d.ts.map +1 -1
- package/common/hocs/mockdata/trellisData.d.ts +54 -0
- package/common/hocs/mockdata/trellisData.d.ts.map +1 -1
- package/common/hocs/withTrellis.d.ts +9 -0
- package/common/hocs/withTrellis.d.ts.map +1 -1
- package/common/hooks/useSorting.d.ts +2 -2
- package/common/hooks/useSorting.d.ts.map +1 -1
- package/common/shapeUtils.d.ts +1 -1
- package/common/shapeUtils.d.ts.map +1 -1
- package/common/shapeUtils.js.map +2 -2
- package/common/utils/dataUtils.js +2 -1
- package/common/utils/dataUtils.js.map +2 -2
- package/common/utils/focusUtils.d.ts +4 -0
- package/common/utils/focusUtils.d.ts.map +1 -0
- package/common/utils/focusUtils.js +101 -0
- package/common/utils/focusUtils.js.map +7 -0
- package/common/utils/mapUtils.js +2 -6
- package/common/utils/mapUtils.js.map +2 -2
- package/common/utils/singleValueUtils.js +14 -26
- package/common/utils/singleValueUtils.js.map +2 -2
- package/common/utils/trellisUtils.d.ts.map +1 -1
- package/common/utils/trellisUtils.js +76 -70
- package/common/utils/trellisUtils.js.map +2 -2
- package/common/withDashboardViz.d.ts.map +1 -1
- package/common/withDashboardViz.js +276 -151
- package/common/withDashboardViz.js.map +4 -4
- package/package.json +32 -27
- package/LICENSE.md +0 -449
|
@@ -12,6 +12,7 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
12
12
|
var __getProtoOf = Object.getPrototypeOf;
|
|
13
13
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
14
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
15
|
+
var __pow = Math.pow;
|
|
15
16
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16
17
|
var __spreadValues = (a, b) => {
|
|
17
18
|
for (var prop in b || (b = {}))
|
|
@@ -162,6 +163,24 @@ var defaultImport8 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
|
162
163
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
163
164
|
var Triangle_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
|
|
164
165
|
|
|
166
|
+
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
167
|
+
var propUtils_exports = {};
|
|
168
|
+
__export(propUtils_exports, {
|
|
169
|
+
default: () => propUtils_default
|
|
170
|
+
});
|
|
171
|
+
var defaultImport9 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
172
|
+
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
173
|
+
var propUtils_default = "default" in defaultImport9 ? defaultImport9.default : defaultImport9;
|
|
174
|
+
|
|
175
|
+
// esm-externals:@splunk/visualizations-shared/simpleXMLOptions
|
|
176
|
+
var simpleXMLOptions_exports = {};
|
|
177
|
+
__export(simpleXMLOptions_exports, {
|
|
178
|
+
default: () => simpleXMLOptions_default
|
|
179
|
+
});
|
|
180
|
+
var defaultImport10 = __toESM(require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
181
|
+
__reExport(simpleXMLOptions_exports, require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
182
|
+
var simpleXMLOptions_default = "default" in defaultImport10 ? defaultImport10.default : defaultImport10;
|
|
183
|
+
|
|
165
184
|
// src/common/chartingUtils.ts
|
|
166
185
|
var DEFAULT_LINE_WIDTH = 2;
|
|
167
186
|
var getAnnotationsForCanvas = ({
|
|
@@ -352,46 +371,66 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
352
371
|
}
|
|
353
372
|
return y2Config;
|
|
354
373
|
};
|
|
355
|
-
var
|
|
374
|
+
var getSeriesType = (isOverlay, isAreaChart, isStacked) => {
|
|
375
|
+
if (isOverlay) return "line";
|
|
376
|
+
if (!isAreaChart) return void 0;
|
|
377
|
+
return isStacked ? "stacked-area" : "area";
|
|
378
|
+
};
|
|
379
|
+
var getY2Scale = (field, y2fields, overlayFields) => {
|
|
380
|
+
const assignToY2 = (y2fields == null ? void 0 : y2fields.length) > 0 && y2fields.includes(field) || !(y2fields == null ? void 0 : y2fields.length) && (overlayFields == null ? void 0 : overlayFields.includes(field));
|
|
381
|
+
return assignToY2 ? "y2" : "y";
|
|
382
|
+
};
|
|
383
|
+
var getSeriesOverrides = (opts) => {
|
|
384
|
+
var _a;
|
|
385
|
+
const {
|
|
386
|
+
yfields,
|
|
387
|
+
y2fields,
|
|
388
|
+
lineWidth,
|
|
389
|
+
overlayFields,
|
|
390
|
+
y2Enabled,
|
|
391
|
+
nullValueMode,
|
|
392
|
+
markerDisplay,
|
|
393
|
+
lineDashStyle,
|
|
394
|
+
lineDashStylesByField,
|
|
395
|
+
stepPosition,
|
|
396
|
+
stepPositionsByField,
|
|
397
|
+
type,
|
|
398
|
+
stackMode,
|
|
399
|
+
showLines
|
|
400
|
+
} = opts;
|
|
356
401
|
const seriesConfig = {};
|
|
357
402
|
let spanGaps;
|
|
358
|
-
let replaceNullsWithZero;
|
|
359
403
|
if (nullValueMode === "gaps") {
|
|
360
404
|
spanGaps = false;
|
|
361
|
-
} else if (nullValueMode
|
|
405
|
+
} else if (nullValueMode != null) {
|
|
362
406
|
spanGaps = true;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
407
|
+
} else {
|
|
408
|
+
spanGaps = void 0;
|
|
366
409
|
}
|
|
367
|
-
|
|
410
|
+
const replaceNullsWithZero = nullValueMode === "zero" ? true : void 0;
|
|
411
|
+
const isAreaChart = type === "area";
|
|
412
|
+
const isStacked = isAreaChart && (stackMode === "stacked" || stackMode === "stacked100");
|
|
413
|
+
const areaFields = isAreaChart ? yfields.filter((f) => !(overlayFields == null ? void 0 : overlayFields.includes(f))) : yfields;
|
|
414
|
+
const overlayFieldsInOrder = (_a = overlayFields == null ? void 0 : overlayFields.filter((f) => yfields.includes(f))) != null ? _a : [];
|
|
415
|
+
const orderedFields = isAreaChart ? [...areaFields, ...overlayFieldsInOrder] : yfields;
|
|
416
|
+
orderedFields.forEach((field) => {
|
|
417
|
+
var _a2;
|
|
418
|
+
const isOverlay = (_a2 = overlayFields == null ? void 0 : overlayFields.includes(field)) != null ? _a2 : false;
|
|
419
|
+
const isPercent = isAreaChart && stackMode === "stacked100" && !isOverlay;
|
|
420
|
+
const shouldHideAreaOutline = isAreaChart && showLines === false && !isOverlay;
|
|
368
421
|
seriesConfig[field] = {
|
|
369
|
-
overrides: {
|
|
422
|
+
overrides: __spreadValues({
|
|
423
|
+
width: shouldHideAreaOutline ? 0 : lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH
|
|
424
|
+
}, isPercent ? { stacking: { mode: "percent", group: "A" } } : {})
|
|
370
425
|
};
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
if (y2Enabled)
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
);
|
|
380
|
-
if (shouldAssignToY2) {
|
|
381
|
-
seriesConfig[field].overrides.scale = "y2";
|
|
382
|
-
} else {
|
|
383
|
-
seriesConfig[field].overrides.scale = "y";
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
387
|
-
seriesConfig[field].type = "line";
|
|
388
|
-
}
|
|
389
|
-
if (markerDisplay !== void 0) {
|
|
390
|
-
seriesConfig[field].markerDisplay = markerDisplay;
|
|
391
|
-
}
|
|
392
|
-
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
393
|
-
if (fieldDashStyle) {
|
|
394
|
-
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
426
|
+
const seriesType = getSeriesType(isOverlay, isAreaChart, isStacked);
|
|
427
|
+
if (seriesType !== void 0) seriesConfig[field].type = seriesType;
|
|
428
|
+
if (spanGaps !== void 0) seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
429
|
+
if (y2Enabled) seriesConfig[field].overrides.scale = getY2Scale(field, y2fields, overlayFields);
|
|
430
|
+
if (markerDisplay !== void 0) seriesConfig[field].markerDisplay = markerDisplay;
|
|
431
|
+
if (!isAreaChart || isOverlay) {
|
|
432
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
433
|
+
if (fieldDashStyle) seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
395
434
|
}
|
|
396
435
|
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
397
436
|
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
@@ -439,18 +478,18 @@ var FeatureFlagContext_exports = {};
|
|
|
439
478
|
__export(FeatureFlagContext_exports, {
|
|
440
479
|
default: () => FeatureFlagContext_default
|
|
441
480
|
});
|
|
442
|
-
var
|
|
481
|
+
var defaultImport11 = __toESM(require("@splunk/visualization-context/FeatureFlagContext"));
|
|
443
482
|
__reExport(FeatureFlagContext_exports, require("@splunk/visualization-context/FeatureFlagContext"));
|
|
444
|
-
var FeatureFlagContext_default = "default" in
|
|
483
|
+
var FeatureFlagContext_default = "default" in defaultImport11 ? defaultImport11.default : defaultImport11;
|
|
445
484
|
|
|
446
485
|
// esm-externals:@splunk/visualization-schemas
|
|
447
486
|
var visualization_schemas_exports = {};
|
|
448
487
|
__export(visualization_schemas_exports, {
|
|
449
488
|
default: () => visualization_schemas_default
|
|
450
489
|
});
|
|
451
|
-
var
|
|
490
|
+
var defaultImport12 = __toESM(require("@splunk/visualization-schemas"));
|
|
452
491
|
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
453
|
-
var visualization_schemas_default = "default" in
|
|
492
|
+
var visualization_schemas_default = "default" in defaultImport12 ? defaultImport12.default : defaultImport12;
|
|
454
493
|
|
|
455
494
|
// src/common/hooks/useTrellisEnabled.ts
|
|
456
495
|
var useTrellisFeatureFlagOn = () => {
|
|
@@ -480,8 +519,27 @@ var TrellisTitleDiv = styled_components_default.div`
|
|
|
480
519
|
background-color: ${(props) => props.backgroundColor};
|
|
481
520
|
box-shadow: 0 1px ${(props) => props.backgroundColor}; // this is added to avoid a 1px gap between title and viz divs that showed up intermittently because of pixel rounding error in chrome.
|
|
482
521
|
`;
|
|
522
|
+
var formatTrellisKey = (value) => {
|
|
523
|
+
if (value === null || value === void 0) {
|
|
524
|
+
return "";
|
|
525
|
+
}
|
|
526
|
+
if (typeof value === "string") {
|
|
527
|
+
return value;
|
|
528
|
+
}
|
|
529
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
530
|
+
return value.toString();
|
|
531
|
+
}
|
|
532
|
+
if (typeof value === "symbol") {
|
|
533
|
+
return value.toString();
|
|
534
|
+
}
|
|
535
|
+
try {
|
|
536
|
+
return JSON.stringify(value);
|
|
537
|
+
} catch (e) {
|
|
538
|
+
return typeof value === "bigint" ? value.toString() : "";
|
|
539
|
+
}
|
|
540
|
+
};
|
|
483
541
|
var TrellisTitle = (props) => {
|
|
484
|
-
const titleText =
|
|
542
|
+
const titleText = formatTrellisKey(props.trellisKey);
|
|
485
543
|
return /* @__PURE__ */ react_exports.createElement(
|
|
486
544
|
TrellisTitleDiv,
|
|
487
545
|
{
|
|
@@ -651,6 +709,38 @@ var parseArrayOption = (value) => {
|
|
|
651
709
|
}
|
|
652
710
|
return void 0;
|
|
653
711
|
};
|
|
712
|
+
var getAreaOpacityForCanvas = (areaOpacity) => (
|
|
713
|
+
// Preserve legacy visualizations behavior where area opacity is squared to match charting output.
|
|
714
|
+
areaOpacity !== void 0 && areaOpacity !== null ? __pow(areaOpacity, 2) : areaOpacity
|
|
715
|
+
);
|
|
716
|
+
var parseTickIntervalOption = (simpleXMLValue, canvasValue) => {
|
|
717
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
718
|
+
if (canvasValue) return Number(canvasValue);
|
|
719
|
+
return void 0;
|
|
720
|
+
};
|
|
721
|
+
var getYAxisTitles = ({
|
|
722
|
+
y2Enabled,
|
|
723
|
+
yFields,
|
|
724
|
+
y2Fields,
|
|
725
|
+
overlayFields,
|
|
726
|
+
yAxisTitleText,
|
|
727
|
+
yAxisTitleVisibility,
|
|
728
|
+
y2AxisTitleText,
|
|
729
|
+
y2AxisTitleVisibility,
|
|
730
|
+
containerHeight
|
|
731
|
+
}) => {
|
|
732
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
733
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
734
|
+
const yAxisTitle = ellipsisAxisTitle(
|
|
735
|
+
getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility),
|
|
736
|
+
containerHeight
|
|
737
|
+
);
|
|
738
|
+
const y2AxisTitle = ellipsisAxisTitle(
|
|
739
|
+
getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility),
|
|
740
|
+
containerHeight
|
|
741
|
+
);
|
|
742
|
+
return { yAxisTitle, y2AxisTitle };
|
|
743
|
+
};
|
|
654
744
|
var TimeSeriesChartWrapper = (props) => {
|
|
655
745
|
var _b, _c, _d;
|
|
656
746
|
const _a = props, {
|
|
@@ -740,6 +830,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
740
830
|
"chart.overlayFields": overlayFieldsStr,
|
|
741
831
|
"chart.nullValueMode": nullValueMode,
|
|
742
832
|
"chart.showDataLabels": showDataLabels,
|
|
833
|
+
"chart.showLines": showLines,
|
|
834
|
+
"chart.stackMode": stackMode,
|
|
743
835
|
lineWidth,
|
|
744
836
|
lineDashStyle,
|
|
745
837
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
@@ -768,7 +860,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
768
860
|
yAxisMinorTickSize,
|
|
769
861
|
y2AxisMinorTickSize,
|
|
770
862
|
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
771
|
-
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
863
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions,
|
|
864
|
+
// area only props
|
|
865
|
+
areaFillOpacity: areaOpacity,
|
|
866
|
+
chart: chartType
|
|
772
867
|
} = options;
|
|
773
868
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
774
869
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
@@ -785,13 +880,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
785
880
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
786
881
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
787
882
|
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
794
|
-
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
883
|
+
const yAxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
884
|
+
yAxisMajorUnitFromSimpleXML,
|
|
885
|
+
yAxisMajorTickInterval
|
|
886
|
+
);
|
|
887
|
+
const y2AxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
795
888
|
y2AxisMajorUnitFromSimpleXML,
|
|
796
889
|
y2AxisMajorTickInterval
|
|
797
890
|
);
|
|
@@ -800,6 +893,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
800
893
|
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
801
894
|
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
802
895
|
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
896
|
+
const areaOpacityForCanvas = getAreaOpacityForCanvas(areaOpacity);
|
|
803
897
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
804
898
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
805
899
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
@@ -830,26 +924,40 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
830
924
|
);
|
|
831
925
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
832
926
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
833
|
-
const
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
927
|
+
const { yAxisTitle, y2AxisTitle } = getYAxisTitles({
|
|
928
|
+
y2Enabled,
|
|
929
|
+
yFields,
|
|
930
|
+
y2Fields,
|
|
931
|
+
overlayFields,
|
|
932
|
+
yAxisTitleText,
|
|
933
|
+
yAxisTitleVisibility,
|
|
934
|
+
y2AxisTitleText,
|
|
935
|
+
y2AxisTitleVisibility,
|
|
936
|
+
containerHeight
|
|
937
|
+
});
|
|
839
938
|
const xScaleConfig = (0, react_exports.useMemo)(
|
|
840
939
|
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
841
940
|
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
842
941
|
);
|
|
942
|
+
const isStacked100 = stackMode === "stacked100";
|
|
843
943
|
const yScaleConfig = (0, react_exports.useMemo)(
|
|
844
|
-
() =>
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
944
|
+
() => {
|
|
945
|
+
const config = getYScaleConfig(
|
|
946
|
+
yAxisTitle,
|
|
947
|
+
yAxisAbbreviation,
|
|
948
|
+
yAxisScale,
|
|
949
|
+
yAxisLabelVisibility,
|
|
950
|
+
yAxisMin,
|
|
951
|
+
yAxisMax
|
|
952
|
+
);
|
|
953
|
+
if (isStacked100) {
|
|
954
|
+
config.y.tickFmt = (v) => `${Math.round(v * 100)}%`;
|
|
955
|
+
config.y.range = () => [0, 1];
|
|
956
|
+
}
|
|
957
|
+
return config;
|
|
958
|
+
},
|
|
959
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
960
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax, isStacked100]
|
|
853
961
|
);
|
|
854
962
|
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
855
963
|
if (y2Enabled) {
|
|
@@ -881,10 +989,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
881
989
|
];
|
|
882
990
|
chartData.fields = filteredChartData.fields;
|
|
883
991
|
chartData.columns = seriesDataFormatted;
|
|
992
|
+
const normalizedStackMode = stackMode === "stacked" || stackMode === "stacked100" ? stackMode : "auto";
|
|
884
993
|
const seriesOverrides = (0, react_exports.useMemo)(
|
|
885
|
-
() => getSeriesOverrides(
|
|
886
|
-
yFields,
|
|
887
|
-
y2Fields,
|
|
994
|
+
() => getSeriesOverrides({
|
|
995
|
+
yfields: yFields,
|
|
996
|
+
y2fields: y2Fields,
|
|
888
997
|
lineWidth,
|
|
889
998
|
overlayFields,
|
|
890
999
|
y2Enabled,
|
|
@@ -893,8 +1002,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
893
1002
|
lineDashStyle,
|
|
894
1003
|
lineDashStylesByField,
|
|
895
1004
|
stepPosition,
|
|
896
|
-
stepPositionsByField
|
|
897
|
-
|
|
1005
|
+
stepPositionsByField,
|
|
1006
|
+
type: chartType,
|
|
1007
|
+
stackMode: normalizedStackMode,
|
|
1008
|
+
showLines
|
|
1009
|
+
}),
|
|
898
1010
|
[
|
|
899
1011
|
yFields,
|
|
900
1012
|
y2Fields,
|
|
@@ -906,7 +1018,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
906
1018
|
lineDashStyle,
|
|
907
1019
|
lineDashStylesByField,
|
|
908
1020
|
stepPosition,
|
|
909
|
-
stepPositionsByField
|
|
1021
|
+
stepPositionsByField,
|
|
1022
|
+
chartType,
|
|
1023
|
+
normalizedStackMode,
|
|
1024
|
+
showLines
|
|
910
1025
|
]
|
|
911
1026
|
);
|
|
912
1027
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -974,50 +1089,54 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
974
1089
|
react_exports.useEffect(() => {
|
|
975
1090
|
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
976
1091
|
}, [additionalTooltipValues]);
|
|
1092
|
+
const handleCrosshairMouseout = react_exports.useCallback(() => {
|
|
1093
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
1094
|
+
onPointMouseOut({
|
|
1095
|
+
type: "point.mouseout",
|
|
1096
|
+
originalEvent: lastOriginalEventRef.current,
|
|
1097
|
+
payload: lastPayloadRef.current
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
previousMouseoverPayloadRef.current = null;
|
|
1101
|
+
}, [onPointMouseOut]);
|
|
977
1102
|
const handleChartCrosshairChange = react_exports.useCallback(
|
|
978
1103
|
(event) => {
|
|
979
|
-
if (onPointMouseOver
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1104
|
+
if (!onPointMouseOver && !onPointMouseOut) {
|
|
1105
|
+
return;
|
|
1106
|
+
}
|
|
1107
|
+
if (!event) {
|
|
1108
|
+
handleCrosshairMouseout();
|
|
1109
|
+
return;
|
|
1110
|
+
}
|
|
1111
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
1112
|
+
name: event.seriesKey
|
|
1113
|
+
});
|
|
1114
|
+
delete payload.seriesKey;
|
|
1115
|
+
if (event.rowContext) {
|
|
1116
|
+
Object.assign(
|
|
1117
|
+
payload,
|
|
1118
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
1119
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
1120
|
+
return acc;
|
|
1121
|
+
}, {})
|
|
1122
|
+
);
|
|
1123
|
+
}
|
|
1124
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
1125
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
1126
|
+
return;
|
|
1127
|
+
}
|
|
1128
|
+
lastPayloadRef.current = updatedPayload;
|
|
1129
|
+
lastOriginalEventRef.current = event;
|
|
1130
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
1131
|
+
if (onPointMouseOver) {
|
|
1132
|
+
onPointMouseOver({
|
|
1133
|
+
type: "point.mouseover",
|
|
1134
|
+
originalEvent: event,
|
|
1135
|
+
payload: updatedPayload
|
|
993
1136
|
});
|
|
994
|
-
delete payload.seriesKey;
|
|
995
|
-
if (event.rowContext) {
|
|
996
|
-
Object.assign(
|
|
997
|
-
payload,
|
|
998
|
-
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
999
|
-
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
1000
|
-
return acc;
|
|
1001
|
-
}, {})
|
|
1002
|
-
);
|
|
1003
|
-
}
|
|
1004
|
-
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
1005
|
-
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
1006
|
-
return;
|
|
1007
|
-
}
|
|
1008
|
-
lastPayloadRef.current = updatedPayload;
|
|
1009
|
-
lastOriginalEventRef.current = event;
|
|
1010
|
-
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
1011
|
-
if (onPointMouseOver) {
|
|
1012
|
-
onPointMouseOver({
|
|
1013
|
-
type: "point.mouseover",
|
|
1014
|
-
originalEvent: event,
|
|
1015
|
-
payload: updatedPayload
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
1137
|
}
|
|
1019
1138
|
},
|
|
1020
|
-
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
1139
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy, handleCrosshairMouseout]
|
|
1021
1140
|
);
|
|
1022
1141
|
const dataKey = `${(_b = chartData.columns[0]) == null ? void 0 : _b[0]}-${(_c = chartData.columns[0]) == null ? void 0 : _c[chartData.columns[0].length - 1]}-${(_d = chartData.columns[0]) == null ? void 0 : _d.length}`;
|
|
1023
1142
|
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
@@ -1072,7 +1191,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1072
1191
|
showXAxisLine,
|
|
1073
1192
|
showYAxisLine,
|
|
1074
1193
|
showY2AxisLine,
|
|
1075
|
-
xAxisMaxLabelParts
|
|
1194
|
+
xAxisMaxLabelParts,
|
|
1195
|
+
areaOpacity: areaOpacityForCanvas
|
|
1076
1196
|
}
|
|
1077
1197
|
));
|
|
1078
1198
|
}, [
|
|
@@ -1124,7 +1244,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1124
1244
|
showYAxisLine,
|
|
1125
1245
|
showY2AxisLine,
|
|
1126
1246
|
legendMode,
|
|
1127
|
-
xAxisMaxLabelParts
|
|
1247
|
+
xAxisMaxLabelParts,
|
|
1248
|
+
areaOpacityForCanvas
|
|
1128
1249
|
]);
|
|
1129
1250
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
1130
1251
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|