@splunk/visualizations 28.1.0 → 28.2.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.config.js +27 -0
- package/Area.config.js.map +2 -2
- package/Area.js +721 -354
- package/Area.js.map +4 -4
- package/Bar.config.js +27 -0
- package/Bar.config.js.map +2 -2
- package/Bar.js +753 -386
- package/Bar.js.map +4 -4
- package/Bubble.config.js +27 -0
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +683 -320
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +33 -0
- package/ChoroplethSvg.js +569 -193
- package/ChoroplethSvg.js.map +4 -4
- package/Column.config.js +27 -0
- package/Column.config.js.map +2 -2
- package/Column.js +768 -401
- package/Column.js.map +4 -4
- package/Ellipse.js +592 -213
- package/Ellipse.js.map +4 -4
- package/Events.js +591 -200
- package/Events.js.map +4 -4
- package/FEATUREFLAGS.md +1 -0
- package/FillerGauge.js +564 -190
- package/FillerGauge.js.map +4 -4
- package/Image.js +589 -216
- package/Image.js.map +4 -4
- package/Line.config.js +28 -1
- package/Line.config.js.map +2 -2
- package/Line.js +736 -369
- package/Line.js.map +4 -4
- package/LinkGraph.js +1093 -690
- package/LinkGraph.js.map +4 -4
- package/Map.config.js +2 -0
- package/Map.config.js.map +2 -2
- package/Map.js +533 -141
- package/Map.js.map +4 -4
- package/Markdown.js +613 -229
- package/Markdown.js.map +4 -4
- package/MarkerGauge.js +543 -168
- package/MarkerGauge.js.map +4 -4
- package/ParallelCoordinates.js +564 -173
- package/ParallelCoordinates.js.map +4 -4
- package/Pie.js +650 -315
- package/Pie.js.map +4 -4
- package/Punchcard.js +588 -199
- package/Punchcard.js.map +4 -4
- package/Rectangle.js +603 -223
- package/Rectangle.js.map +4 -4
- package/Sankey.js +576 -200
- package/Sankey.js.map +4 -4
- package/Scatter.config.js +27 -0
- package/Scatter.config.js.map +2 -2
- package/Scatter.js +687 -325
- package/Scatter.js.map +4 -4
- package/SingleValue.js +540 -165
- package/SingleValue.js.map +4 -4
- package/SingleValueIcon.js +534 -159
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial.js +527 -152
- package/SingleValueRadial.js.map +4 -4
- package/Table.config.js +87 -32
- package/Table.config.js.map +4 -4
- package/Table.js +931 -441
- package/Table.js.map +4 -4
- package/Timeline.js +611 -272
- package/Timeline.js.map +4 -4
- package/common/Charting.js +49 -111
- package/common/Charting.js.map +4 -4
- package/common/GaugeMajorTicks.js +6 -14
- package/common/GaugeMajorTicks.js.map +2 -2
- package/common/GaugeValueMarker.js +6 -14
- package/common/GaugeValueMarker.js.map +2 -2
- package/common/OptionsDoc.js +3 -2
- package/common/OptionsDoc.js.map +2 -2
- package/common/SplunkVisualization.js +1 -1
- package/common/SplunkVisualization.js.map +2 -2
- package/common/TimeSeriesChartWrapper.js +485 -0
- package/common/TimeSeriesChartWrapper.js.map +7 -0
- package/common/chartingUtils.js +252 -1
- package/common/chartingUtils.js.map +4 -4
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/hocUtils.js +1 -1
- package/common/utils/hocUtils.js.map +2 -2
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/tableUtils.js +29 -28
- package/common/utils/tableUtils.js.map +2 -2
- package/common/withDashboardViz.js +551 -160
- package/common/withDashboardViz.js.map +4 -4
- package/dist/types/Area/Area.d.ts +13 -0
- package/dist/types/Area/Area.d.ts.map +1 -0
- package/dist/types/Area/areaUtils.d.ts +15 -0
- package/dist/types/Area/areaUtils.d.ts.map +1 -0
- package/dist/types/Area/config.d.ts +4 -0
- package/dist/types/Area/config.d.ts.map +1 -0
- package/dist/types/Area/index.d.ts +3 -0
- package/dist/types/Area/index.d.ts.map +1 -0
- package/dist/types/Bar/Bar.d.ts +13 -0
- package/dist/types/Bar/Bar.d.ts.map +1 -0
- package/dist/types/Bar/barUtils.d.ts +30 -0
- package/dist/types/Bar/barUtils.d.ts.map +1 -0
- package/dist/types/Bar/config.d.ts +4 -0
- package/dist/types/Bar/config.d.ts.map +1 -0
- package/dist/types/Bar/index.d.ts +3 -0
- package/dist/types/Bar/index.d.ts.map +1 -0
- package/dist/types/Bubble/Bubble.d.ts +9 -0
- package/dist/types/Bubble/Bubble.d.ts.map +1 -0
- package/dist/types/Bubble/bubbleUtils.d.ts +47 -0
- package/dist/types/Bubble/bubbleUtils.d.ts.map +1 -0
- package/dist/types/Bubble/config.d.ts +4 -0
- package/dist/types/Bubble/config.d.ts.map +1 -0
- package/dist/types/Bubble/index.d.ts +3 -0
- package/dist/types/Bubble/index.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/ChoroplethSvg.d.ts +24 -0
- package/dist/types/ChoroplethSvg/ChoroplethSvg.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts +6 -0
- package/dist/types/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts +29 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts +34 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts +144 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/config.d.ts +4 -0
- package/dist/types/ChoroplethSvg/config.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/index.d.ts +3 -0
- package/dist/types/ChoroplethSvg/index.d.ts.map +1 -0
- package/dist/types/Column/Column.d.ts +11 -0
- package/dist/types/Column/Column.d.ts.map +1 -0
- package/dist/types/Column/columnUtils.d.ts +82 -0
- package/dist/types/Column/columnUtils.d.ts.map +1 -0
- package/dist/types/Column/config.d.ts +4 -0
- package/dist/types/Column/config.d.ts.map +1 -0
- package/dist/types/Column/index.d.ts +3 -0
- package/dist/types/Column/index.d.ts.map +1 -0
- package/dist/types/Ellipse/Ellipse.d.ts +7 -0
- package/dist/types/Ellipse/Ellipse.d.ts.map +1 -0
- package/dist/types/Ellipse/config.d.ts +4 -0
- package/dist/types/Ellipse/config.d.ts.map +1 -0
- package/dist/types/Ellipse/index.d.ts +3 -0
- package/dist/types/Ellipse/index.d.ts.map +1 -0
- package/dist/types/Events/EventUtils.d.ts +137 -0
- package/dist/types/Events/EventUtils.d.ts.map +1 -0
- package/dist/types/Events/Events.d.ts +19 -0
- package/dist/types/Events/Events.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/FieldSummaryTooltip.d.ts +50 -0
- package/dist/types/Events/PureEvents/FieldSummaryTooltip.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/PureEvents.d.ts +34 -0
- package/dist/types/Events/PureEvents/PureEvents.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/TimeControlsPopover.d.ts +33 -0
- package/dist/types/Events/PureEvents/TimeControlsPopover.d.ts.map +1 -0
- package/dist/types/Events/config.d.ts +4 -0
- package/dist/types/Events/config.d.ts.map +1 -0
- package/dist/types/Events/index.d.ts +3 -0
- package/dist/types/Events/index.d.ts.map +1 -0
- package/dist/types/FillerGauge/FillerGauge.d.ts +13 -0
- package/dist/types/FillerGauge/FillerGauge.d.ts.map +1 -0
- package/dist/types/FillerGauge/PureFillerGauge/FillerGauge.d.ts +32 -0
- package/dist/types/FillerGauge/PureFillerGauge/FillerGauge.d.ts.map +1 -0
- package/dist/types/FillerGauge/config.d.ts +4 -0
- package/dist/types/FillerGauge/config.d.ts.map +1 -0
- package/dist/types/FillerGauge/index.d.ts +3 -0
- package/dist/types/FillerGauge/index.d.ts.map +1 -0
- package/dist/types/Image/Image.d.ts +13 -0
- package/dist/types/Image/Image.d.ts.map +1 -0
- package/dist/types/Image/ImageApi.d.ts +15 -0
- package/dist/types/Image/ImageApi.d.ts.map +1 -0
- package/dist/types/Image/config.d.ts +4 -0
- package/dist/types/Image/config.d.ts.map +1 -0
- package/dist/types/Image/index.d.ts +3 -0
- package/dist/types/Image/index.d.ts.map +1 -0
- package/dist/types/Line/Line.d.ts +13 -0
- package/dist/types/Line/Line.d.ts.map +1 -0
- package/dist/types/Line/config.d.ts +4 -0
- package/dist/types/Line/config.d.ts.map +1 -0
- package/dist/types/Line/index.d.ts +3 -0
- package/dist/types/Line/index.d.ts.map +1 -0
- package/dist/types/Line/lineUtils.d.ts +22 -0
- package/dist/types/Line/lineUtils.d.ts.map +1 -0
- package/dist/types/Line/mockdata/LineData.d.ts +184 -0
- package/dist/types/Line/mockdata/LineData.d.ts.map +1 -0
- package/dist/types/LinkGraph/ESTestDataSources.d.ts +32 -0
- package/dist/types/LinkGraph/ESTestDataSources.d.ts.map +1 -0
- package/dist/types/LinkGraph/ESTestTemplate.d.ts +2 -0
- package/dist/types/LinkGraph/ESTestTemplate.d.ts.map +1 -0
- package/dist/types/LinkGraph/LinkGraph.d.ts +22 -0
- package/dist/types/LinkGraph/LinkGraph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts +89 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts +74 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Edges.d.ts +9 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Edges.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Field.d.ts +14 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Field.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts +5 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Graph.d.ts +49 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts +11 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Node.d.ts +24 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Node.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Nodes.d.ts +16 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Nodes.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/utils/iconLoader.d.ts +168 -0
- package/dist/types/LinkGraph/PureLinkGraph/utils/iconLoader.d.ts.map +1 -0
- package/dist/types/LinkGraph/config.d.ts +4 -0
- package/dist/types/LinkGraph/config.d.ts.map +1 -0
- package/dist/types/LinkGraph/index.d.ts +3 -0
- package/dist/types/LinkGraph/index.d.ts.map +1 -0
- package/dist/types/Map/Map.d.ts +28 -0
- package/dist/types/Map/Map.d.ts.map +1 -0
- package/dist/types/Map/MapContextDefault.d.ts +39 -0
- package/dist/types/Map/MapContextDefault.d.ts.map +1 -0
- package/dist/types/Map/PureMap/BubbleLayer.d.ts +51 -0
- package/dist/types/Map/PureMap/BubbleLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/ChoroplethLayer.d.ts +36 -0
- package/dist/types/Map/PureMap/ChoroplethLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/ClusterLayer.d.ts +17 -0
- package/dist/types/Map/PureMap/ClusterLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/LocalChoroplethLayer.d.ts +18 -0
- package/dist/types/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MapUtils.d.ts +141 -0
- package/dist/types/Map/PureMap/MapUtils.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MarkerLayer.d.ts +34 -0
- package/dist/types/Map/PureMap/MarkerLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MarkerWrapper.d.ts +17 -0
- package/dist/types/Map/PureMap/MarkerWrapper.d.ts.map +1 -0
- package/dist/types/Map/PureMap/PureMap.d.ts +102 -0
- package/dist/types/Map/PureMap/PureMap.d.ts.map +1 -0
- package/dist/types/Map/PureMap/PureMapContainer.d.ts +15 -0
- package/dist/types/Map/PureMap/PureMapContainer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/Tooltip.d.ts +20 -0
- package/dist/types/Map/PureMap/Tooltip.d.ts.map +1 -0
- package/dist/types/Map/PureMap/mockdata/data.d.ts +90 -0
- package/dist/types/Map/PureMap/mockdata/data.d.ts.map +1 -0
- package/dist/types/Map/config.d.ts +4 -0
- package/dist/types/Map/config.d.ts.map +1 -0
- package/dist/types/Map/index.d.ts +3 -0
- package/dist/types/Map/index.d.ts.map +1 -0
- package/dist/types/Markdown/Markdown.d.ts +31 -0
- package/dist/types/Markdown/Markdown.d.ts.map +1 -0
- package/dist/types/Markdown/config.d.ts +4 -0
- package/dist/types/Markdown/config.d.ts.map +1 -0
- package/dist/types/Markdown/index.d.ts +3 -0
- package/dist/types/Markdown/index.d.ts.map +1 -0
- package/dist/types/MarkerGauge/MarkerGauge.d.ts +55 -0
- package/dist/types/MarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/dist/types/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts +72 -0
- package/dist/types/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/dist/types/MarkerGauge/config.d.ts +4 -0
- package/dist/types/MarkerGauge/config.d.ts.map +1 -0
- package/dist/types/MarkerGauge/index.d.ts +3 -0
- package/dist/types/MarkerGauge/index.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/ParallelCoordinates.d.ts +58 -0
- package/dist/types/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts +69 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts +30 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +42 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts +22 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/config.d.ts +4 -0
- package/dist/types/ParallelCoordinates/config.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/index.d.ts +3 -0
- package/dist/types/ParallelCoordinates/index.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/arrayValueData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/arrayValueData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleFoodData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleFoodData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts.map +1 -0
- package/dist/types/Pie/Pie.d.ts +15 -0
- package/dist/types/Pie/Pie.d.ts.map +1 -0
- package/dist/types/Pie/config.d.ts +4 -0
- package/dist/types/Pie/config.d.ts.map +1 -0
- package/dist/types/Pie/index.d.ts +3 -0
- package/dist/types/Pie/index.d.ts.map +1 -0
- package/dist/types/Pie/pieUtils.d.ts +78 -0
- package/dist/types/Pie/pieUtils.d.ts.map +1 -0
- package/dist/types/Punchcard/Punchcard.d.ts +13 -0
- package/dist/types/Punchcard/Punchcard.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/Punchcard.d.ts +40 -0
- package/dist/types/Punchcard/PurePunchcard/Punchcard.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts +20 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts +27 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts +40 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts +17 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts +21 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardRow.d.ts +10 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts +285 -0
- package/dist/types/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts.map +1 -0
- package/dist/types/Punchcard/config.d.ts +4 -0
- package/dist/types/Punchcard/config.d.ts.map +1 -0
- package/dist/types/Punchcard/index.d.ts +3 -0
- package/dist/types/Punchcard/index.d.ts.map +1 -0
- package/dist/types/Punchcard/punchcardUtils.d.ts +32 -0
- package/dist/types/Punchcard/punchcardUtils.d.ts.map +1 -0
- package/dist/types/Rectangle/Rectangle.d.ts +14 -0
- package/dist/types/Rectangle/Rectangle.d.ts.map +1 -0
- package/dist/types/Rectangle/config.d.ts +4 -0
- package/dist/types/Rectangle/config.d.ts.map +1 -0
- package/dist/types/Rectangle/index.d.ts +3 -0
- package/dist/types/Rectangle/index.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/PureSankey.d.ts +98 -0
- package/dist/types/Sankey/PureSankey/PureSankey.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyLink.d.ts +33 -0
- package/dist/types/Sankey/PureSankey/SankeyLink.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyModels.d.ts +48 -0
- package/dist/types/Sankey/PureSankey/SankeyModels.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyNode.d.ts +38 -0
- package/dist/types/Sankey/PureSankey/SankeyNode.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyTooltip.d.ts +43 -0
- package/dist/types/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyUtils.d.ts +20 -0
- package/dist/types/Sankey/PureSankey/SankeyUtils.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/mockdata/data.d.ts +35 -0
- package/dist/types/Sankey/PureSankey/mockdata/data.d.ts.map +1 -0
- package/dist/types/Sankey/Sankey.d.ts +31 -0
- package/dist/types/Sankey/Sankey.d.ts.map +1 -0
- package/dist/types/Sankey/config.d.ts +4 -0
- package/dist/types/Sankey/config.d.ts.map +1 -0
- package/dist/types/Sankey/index.d.ts +3 -0
- package/dist/types/Sankey/index.d.ts.map +1 -0
- package/dist/types/Scatter/Scatter.d.ts +11 -0
- package/dist/types/Scatter/Scatter.d.ts.map +1 -0
- package/dist/types/Scatter/config.d.ts +4 -0
- package/dist/types/Scatter/config.d.ts.map +1 -0
- package/dist/types/Scatter/index.d.ts +3 -0
- package/dist/types/Scatter/index.d.ts.map +1 -0
- package/dist/types/Scatter/mockdata/data.d.ts +35 -0
- package/dist/types/Scatter/mockdata/data.d.ts.map +1 -0
- package/dist/types/Scatter/scatterUtils.d.ts +47 -0
- package/dist/types/Scatter/scatterUtils.d.ts.map +1 -0
- package/dist/types/SingleValue/SingleValue.d.ts +16 -0
- package/dist/types/SingleValue/SingleValue.d.ts.map +1 -0
- package/dist/types/SingleValue/config.d.ts +4 -0
- package/dist/types/SingleValue/config.d.ts.map +1 -0
- package/dist/types/SingleValue/index.d.ts +3 -0
- package/dist/types/SingleValue/index.d.ts.map +1 -0
- package/dist/types/SingleValueBasic/index.d.ts +3 -0
- package/dist/types/SingleValueBasic/index.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/SingleValueIcon.d.ts +29 -0
- package/dist/types/SingleValueIcon/SingleValueIcon.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/config.d.ts +4 -0
- package/dist/types/SingleValueIcon/config.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/index.d.ts +3 -0
- package/dist/types/SingleValueIcon/index.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts +20 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts +82 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/SingleValueRadial.d.ts +17 -0
- package/dist/types/SingleValueRadial/SingleValueRadial.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/config.d.ts +4 -0
- package/dist/types/SingleValueRadial/config.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/index.d.ts +3 -0
- package/dist/types/SingleValueRadial/index.d.ts.map +1 -0
- package/dist/types/SparkLine/index.d.ts +2 -0
- package/dist/types/SparkLine/index.d.ts.map +1 -0
- package/dist/types/Table/PureTable.d.ts +50 -0
- package/dist/types/Table/PureTable.d.ts.map +1 -0
- package/dist/types/Table/Table.d.ts +10 -0
- package/dist/types/Table/Table.d.ts.map +1 -0
- package/dist/types/Table/cells/ArrayCell.d.ts +12 -0
- package/dist/types/Table/cells/ArrayCell.d.ts.map +1 -0
- package/dist/types/Table/cells/SparklineCell.d.ts +13 -0
- package/dist/types/Table/cells/SparklineCell.d.ts.map +1 -0
- package/dist/types/Table/cells/SwitchTableCell.d.ts +5 -0
- package/dist/types/Table/cells/SwitchTableCell.d.ts.map +1 -0
- package/dist/types/Table/cells/TextCell.d.ts +12 -0
- package/dist/types/Table/cells/TextCell.d.ts.map +1 -0
- package/dist/types/Table/cells/index.d.ts +5 -0
- package/dist/types/Table/cells/index.d.ts.map +1 -0
- package/dist/types/Table/config.d.ts +4 -0
- package/dist/types/Table/config.d.ts.map +1 -0
- package/dist/types/Table/hooks.d.ts +130 -0
- package/dist/types/Table/hooks.d.ts.map +1 -0
- package/dist/types/Table/index.d.ts +3 -0
- package/dist/types/Table/index.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/PureTimeline.d.ts +81 -0
- package/dist/types/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/CursorPlugin.d.ts +8 -0
- package/dist/types/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineLegend.d.ts +28 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelinePlugin.d.ts +16 -0
- package/dist/types/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineTooltip.d.ts +11 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineTooltip.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineUplot.d.ts +22 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineUplot.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineYAxis.d.ts +20 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/XAxisPlugin.d.ts +18 -0
- package/dist/types/Timeline/PureTimeline/src/XAxisPlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +34 -0
- package/dist/types/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -0
- package/dist/types/Timeline/Timeline.d.ts +22 -0
- package/dist/types/Timeline/Timeline.d.ts.map +1 -0
- package/dist/types/Timeline/config.d.ts +4 -0
- package/dist/types/Timeline/config.d.ts.map +1 -0
- package/dist/types/Timeline/index.d.ts +3 -0
- package/dist/types/Timeline/index.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/basicTimelineData.d.ts +76 -0
- package/dist/types/Timeline/mockdata/basicTimelineData.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/categoricalTimelineData.d.ts +31 -0
- package/dist/types/Timeline/mockdata/categoricalTimelineData.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/timelineDataSource.d.ts +52 -0
- package/dist/types/Timeline/mockdata/timelineDataSource.d.ts.map +1 -0
- package/dist/types/common/Charting.d.ts +46 -0
- package/dist/types/common/Charting.d.ts.map +1 -0
- package/dist/types/common/ChartingApi.d.ts +36 -0
- package/dist/types/common/ChartingApi.d.ts.map +1 -0
- package/dist/types/common/DocExampleWithVizSandbox.d.ts +22 -0
- package/dist/types/common/DocExampleWithVizSandbox.d.ts.map +1 -0
- package/dist/types/common/OverviewDoc.d.ts +20 -0
- package/dist/types/common/OverviewDoc.d.ts.map +1 -0
- package/dist/types/common/SplunkVisualization.d.ts +16 -0
- package/dist/types/common/SplunkVisualization.d.ts.map +1 -0
- package/dist/types/common/SplunkVisualizationApi.d.ts +16 -0
- package/dist/types/common/SplunkVisualizationApi.d.ts.map +1 -0
- package/dist/types/common/ThemedDefaults.d.ts +2 -0
- package/dist/types/common/ThemedDefaults.d.ts.map +1 -0
- package/dist/types/common/TimeSeriesChartWrapper.d.ts +7 -0
- package/dist/types/common/TimeSeriesChartWrapper.d.ts.map +1 -0
- package/dist/types/common/chartingUtils.d.ts +164 -0
- package/dist/types/common/chartingUtils.d.ts.map +1 -0
- package/dist/types/common/components/IconPlaceholder.d.ts +21 -0
- package/dist/types/common/components/IconPlaceholder.d.ts.map +1 -0
- package/dist/types/common/components/MissingPropsMessage.d.ts +28 -0
- package/dist/types/common/components/MissingPropsMessage.d.ts.map +1 -0
- package/dist/types/common/components/TrellisTitle.d.ts +10 -0
- package/dist/types/common/components/TrellisTitle.d.ts.map +1 -0
- package/dist/types/common/configContext/singleValueContext.d.ts +3 -0
- package/dist/types/common/configContext/singleValueContext.d.ts.map +1 -0
- package/dist/types/common/docUtils.d.ts +24 -0
- package/dist/types/common/docUtils.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartColorAndStyle.d.ts +5 -0
- package/dist/types/common/editorConfig/AxesChartColorAndStyle.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartDataConfig.d.ts +31 -0
- package/dist/types/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartDataDisplay.d.ts +14 -0
- package/dist/types/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartLegend.d.ts +8 -0
- package/dist/types/common/editorConfig/AxesChartLegend.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartXGridAndLabels.d.ts +6 -0
- package/dist/types/common/editorConfig/AxesChartXGridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartY2GridAndLabels.d.ts +11 -0
- package/dist/types/common/editorConfig/AxesChartY2GridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartYGridAndLabels.d.ts +4 -0
- package/dist/types/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/BackgroundColor.d.ts +10 -0
- package/dist/types/common/editorConfig/BackgroundColor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicFillColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicFillColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicGaugeColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicGaugeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicStrokeColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicStrokeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/Gauge.d.ts +4 -0
- package/dist/types/common/editorConfig/Gauge.d.ts.map +1 -0
- package/dist/types/common/editorConfig/Legend.d.ts +4 -0
- package/dist/types/common/editorConfig/Legend.d.ts.map +1 -0
- package/dist/types/common/editorConfig/RadialBackgroundColor.d.ts +10 -0
- package/dist/types/common/editorConfig/RadialBackgroundColor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticFillColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticFillColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticGaugeColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticGaugeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticStrokeColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticStrokeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/TrellisEditors.d.ts +66 -0
- package/dist/types/common/editorConfig/TrellisEditors.d.ts.map +1 -0
- package/dist/types/common/gaugeUtils.d.ts +387 -0
- package/dist/types/common/gaugeUtils.d.ts.map +1 -0
- package/dist/types/common/hocs/FixedSizeContainer.d.ts +9 -0
- package/dist/types/common/hocs/FixedSizeContainer.d.ts.map +1 -0
- package/dist/types/common/hocs/mockdata/trellisData.d.ts +1288 -0
- package/dist/types/common/hocs/mockdata/trellisData.d.ts.map +1 -0
- package/dist/types/common/hocs/withEditModeCover.d.ts +10 -0
- package/dist/types/common/hocs/withEditModeCover.d.ts.map +1 -0
- package/dist/types/common/hocs/withPlaceholder.d.ts +8 -0
- package/dist/types/common/hocs/withPlaceholder.d.ts.map +1 -0
- package/dist/types/common/hocs/withTrellis.d.ts +18 -0
- package/dist/types/common/hocs/withTrellis.d.ts.map +1 -0
- package/dist/types/common/hooks/useDeepMemo.d.ts +15 -0
- package/dist/types/common/hooks/useDeepMemo.d.ts.map +1 -0
- package/dist/types/common/hooks/useDownsampleDataSources.d.ts +7 -0
- package/dist/types/common/hooks/useDownsampleDataSources.d.ts.map +1 -0
- package/dist/types/common/hooks/useEventCallback.d.ts +9 -0
- package/dist/types/common/hooks/useEventCallback.d.ts.map +1 -0
- package/dist/types/common/hooks/useGetXAndYFields.d.ts +10 -0
- package/dist/types/common/hooks/useGetXAndYFields.d.ts.map +1 -0
- package/dist/types/common/hooks/usePagination.d.ts +21 -0
- package/dist/types/common/hooks/usePagination.d.ts.map +1 -0
- package/dist/types/common/hooks/usePrevious.d.ts +2 -0
- package/dist/types/common/hooks/usePrevious.d.ts.map +1 -0
- package/dist/types/common/hooks/useSorting.d.ts +17 -0
- package/dist/types/common/hooks/useSorting.d.ts.map +1 -0
- package/dist/types/common/hooks/useTrellisEnabled.d.ts +4 -0
- package/dist/types/common/hooks/useTrellisEnabled.d.ts.map +1 -0
- package/dist/types/common/interfaces/ChartEvent.d.ts +26 -0
- package/dist/types/common/interfaces/ChartEvent.d.ts.map +1 -0
- package/dist/types/common/interfaces/DashboardVizProps.d.ts +27 -0
- package/dist/types/common/interfaces/DashboardVizProps.d.ts.map +1 -0
- package/dist/types/common/interfaces/DataContract.d.ts +19 -0
- package/dist/types/common/interfaces/DataContract.d.ts.map +1 -0
- package/dist/types/common/interfaces/DataSource.d.ts +45 -0
- package/dist/types/common/interfaces/DataSource.d.ts.map +1 -0
- package/dist/types/common/interfaces/DefaultContext.d.ts +30 -0
- package/dist/types/common/interfaces/DefaultContext.d.ts.map +1 -0
- package/dist/types/common/interfaces/Editor.d.ts +23 -0
- package/dist/types/common/interfaces/Editor.d.ts.map +1 -0
- package/dist/types/common/interfaces/ExtendedDashViz.d.ts +7 -0
- package/dist/types/common/interfaces/ExtendedDashViz.d.ts.map +1 -0
- package/dist/types/common/interfaces/Object.d.ts +4 -0
- package/dist/types/common/interfaces/Object.d.ts.map +1 -0
- package/dist/types/common/interfaces/Overview.d.ts +14 -0
- package/dist/types/common/interfaces/Overview.d.ts.map +1 -0
- package/dist/types/common/interfaces/ThemedDefaults.d.ts +5 -0
- package/dist/types/common/interfaces/ThemedDefaults.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizActionHandler.d.ts +15 -0
- package/dist/types/common/interfaces/VizActionHandler.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizBehavior.d.ts +25 -0
- package/dist/types/common/interfaces/VizBehavior.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizCategory.d.ts +16 -0
- package/dist/types/common/interfaces/VizCategory.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizConfig.d.ts +34 -0
- package/dist/types/common/interfaces/VizConfig.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizEvent.d.ts +13 -0
- package/dist/types/common/interfaces/VizEvent.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizProps.d.ts +8 -0
- package/dist/types/common/interfaces/VizProps.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizRegistry.d.ts +7 -0
- package/dist/types/common/interfaces/VizRegistry.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizSize.d.ts +8 -0
- package/dist/types/common/interfaces/VizSize.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizStatus.d.ts +2 -0
- package/dist/types/common/interfaces/VizStatus.d.ts.map +1 -0
- package/dist/types/common/interfaces/index.d.ts +19 -0
- package/dist/types/common/interfaces/index.d.ts.map +1 -0
- package/dist/types/common/shapeUtils.d.ts +26 -0
- package/dist/types/common/shapeUtils.d.ts.map +1 -0
- package/dist/types/common/utils/configUtils.d.ts +59 -0
- package/dist/types/common/utils/configUtils.d.ts.map +1 -0
- package/dist/types/common/utils/dataUtils.d.ts +31 -0
- package/dist/types/common/utils/dataUtils.d.ts.map +1 -0
- package/dist/types/common/utils/featureFlagUtils.d.ts +3 -0
- package/dist/types/common/utils/featureFlagUtils.d.ts.map +1 -0
- package/dist/types/common/utils/hocUtils.d.ts +12 -0
- package/dist/types/common/utils/hocUtils.d.ts.map +1 -0
- package/dist/types/common/utils/mapUtils.d.ts +2 -0
- package/dist/types/common/utils/mapUtils.d.ts.map +1 -0
- package/dist/types/common/utils/styleUtils.d.ts +2 -0
- package/dist/types/common/utils/styleUtils.d.ts.map +1 -0
- package/dist/types/common/utils/tableUtils.d.ts +3 -0
- package/dist/types/common/utils/tableUtils.d.ts.map +1 -0
- package/dist/types/common/utils/trellisUtils.d.ts +60 -0
- package/dist/types/common/utils/trellisUtils.d.ts.map +1 -0
- package/dist/types/common/utils/urlUtils.d.ts +2 -0
- package/dist/types/common/utils/urlUtils.d.ts.map +1 -0
- package/dist/types/common/withDashboardViz.d.ts +22 -0
- package/dist/types/common/withDashboardViz.d.ts.map +1 -0
- package/package.json +32 -34
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
export declare const GAUGE_THICKNESS = 50;
|
|
2
|
+
export declare const FILL_THICKNESS = 38;
|
|
3
|
+
/**
|
|
4
|
+
* get width for the whole gauge viz for horizontal or vertical view
|
|
5
|
+
* @method getGaugeWidth
|
|
6
|
+
* @param {Object} input
|
|
7
|
+
* @param {Number} containerWidth
|
|
8
|
+
* @param {String} orientation
|
|
9
|
+
* @return {Number} width
|
|
10
|
+
*/
|
|
11
|
+
export declare const getGaugeWidth: ({ containerWidth, orientation }: {
|
|
12
|
+
containerWidth: any;
|
|
13
|
+
orientation: any;
|
|
14
|
+
}) => number;
|
|
15
|
+
/**
|
|
16
|
+
* get height for the whole gauge viz for horizontal or vertical view
|
|
17
|
+
* @method getGaugeHeight
|
|
18
|
+
* @param {Object} input
|
|
19
|
+
* @param {Number} containerHeight
|
|
20
|
+
* @param {String} orientation
|
|
21
|
+
* @return {Number} height
|
|
22
|
+
*/
|
|
23
|
+
export declare const getGaugeHeight: ({ containerHeight, orientation }: {
|
|
24
|
+
containerHeight: any;
|
|
25
|
+
orientation: any;
|
|
26
|
+
}) => number;
|
|
27
|
+
/**
|
|
28
|
+
* get how long the gauge shoud be.
|
|
29
|
+
* In horizontal view, gauge length equals to gauge width. In vertical view, it equals to gauge height.
|
|
30
|
+
* @method getGaugeLength
|
|
31
|
+
* @param {Object} input
|
|
32
|
+
* @param {Number} input.containerWidth
|
|
33
|
+
* @param {Number} input.containerHeight
|
|
34
|
+
* @param {String} input.orientation
|
|
35
|
+
* @return {Number} gaugeLength
|
|
36
|
+
*/
|
|
37
|
+
export declare const getGaugeLength: ({ containerWidth, containerHeight, orientation }: {
|
|
38
|
+
containerWidth: any;
|
|
39
|
+
containerHeight: any;
|
|
40
|
+
orientation: any;
|
|
41
|
+
}) => number;
|
|
42
|
+
/**
|
|
43
|
+
* get start x and y for rendering gauge
|
|
44
|
+
* @method getGaugeStartPosition
|
|
45
|
+
* @param {Object} input
|
|
46
|
+
* @param {Number} containerWidth
|
|
47
|
+
* @param {Number} containerHeight
|
|
48
|
+
* @param {Number} gaugeLength
|
|
49
|
+
* @param {String} orientation
|
|
50
|
+
* @return {Object} position
|
|
51
|
+
* @return {Number} position.gaugeStartX
|
|
52
|
+
* @return {Number} position.gaugeStartY
|
|
53
|
+
*/
|
|
54
|
+
export declare const getGaugeStartPosition: ({ containerWidth, containerHeight, gaugeLength, orientation }: {
|
|
55
|
+
containerWidth: any;
|
|
56
|
+
containerHeight: any;
|
|
57
|
+
gaugeLength: any;
|
|
58
|
+
orientation: any;
|
|
59
|
+
}) => {
|
|
60
|
+
gaugeStartX: number;
|
|
61
|
+
gaugeStartY: number;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* get dimensions for the whole gauge viz,
|
|
65
|
+
* which can be useful to calculate background bar and major ticks positions.
|
|
66
|
+
* @method getGaugeDimensions
|
|
67
|
+
* @param {Object} input
|
|
68
|
+
* @param {Number} input.containerWidth
|
|
69
|
+
* @param {Number} input.containerHeight
|
|
70
|
+
* @param {String} input.orientation 'horizontal' or 'vertical'
|
|
71
|
+
* @return {Object} gaugeDimensions
|
|
72
|
+
* @return {Number} gaugeDimensions.gaugeLength how long the gauge shoud be in horizontal or vertical orientation.
|
|
73
|
+
* @return {Number} gaugeDimensions.gaugeStartX start x to render gauge
|
|
74
|
+
* @return {Number} gaugeDimensions.gaugeStartY start y to render gauge
|
|
75
|
+
* @return {Number} gaugeDimensions.gaugeWidth natural width of gauge
|
|
76
|
+
* @return {Number} gaugeDimensions.gaugeHeight natural height of gauge
|
|
77
|
+
*/
|
|
78
|
+
export declare const getGaugeDimensions: ({ containerWidth, containerHeight, orientation }: {
|
|
79
|
+
containerWidth: any;
|
|
80
|
+
containerHeight: any;
|
|
81
|
+
orientation: any;
|
|
82
|
+
}) => {
|
|
83
|
+
gaugeLength: number;
|
|
84
|
+
gaugeStartX: number;
|
|
85
|
+
gaugeStartY: number;
|
|
86
|
+
gaugeWidth: number;
|
|
87
|
+
gaugeHeight: number;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* if gaugeColor is not specified, auto assign a gauge color to the fill bar
|
|
91
|
+
* based on how much percentage the value is taken between min and max
|
|
92
|
+
* @method assignGaugeColor
|
|
93
|
+
* @params
|
|
94
|
+
* */
|
|
95
|
+
export declare const assignGaugeColor: ({ value, min, max }: {
|
|
96
|
+
value: any;
|
|
97
|
+
min: any;
|
|
98
|
+
max: any;
|
|
99
|
+
}) => any;
|
|
100
|
+
/**
|
|
101
|
+
* get inner bar length in gauge
|
|
102
|
+
* @method getGaugeBarLength
|
|
103
|
+
* @param {Object} input
|
|
104
|
+
* @param {Number} input.gaugeLength
|
|
105
|
+
* @param {Number} input.value
|
|
106
|
+
* @param {Number} input.min
|
|
107
|
+
* @param {Number} input.max
|
|
108
|
+
* @return {Number} gaugeBarLength
|
|
109
|
+
*/
|
|
110
|
+
export declare const getGaugeBarLength: ({ gaugeLength, value, min, max }: {
|
|
111
|
+
gaugeLength: any;
|
|
112
|
+
value: any;
|
|
113
|
+
min: any;
|
|
114
|
+
max: any;
|
|
115
|
+
}) => any;
|
|
116
|
+
/**
|
|
117
|
+
* get x and y position for rendering inner bar in gauge
|
|
118
|
+
* @method getGaugeBarStartPositions
|
|
119
|
+
* @param {Object} input
|
|
120
|
+
* @param {Number} input.gaugeStartX
|
|
121
|
+
* @param {Number} input.gaugeStartY
|
|
122
|
+
* @param {Number} input.gaugeWidth
|
|
123
|
+
* @param {Number} input.gaugeHeight
|
|
124
|
+
* @param {Number} input.gaugeBarLength
|
|
125
|
+
* @param {String} input.orientation
|
|
126
|
+
* @return {Object} position
|
|
127
|
+
* @return {Number} position.gaugeBarX
|
|
128
|
+
* @return {Number} position.gaugeBarY
|
|
129
|
+
*/
|
|
130
|
+
export declare const getGaugeBarStartPositions: ({ gaugeStartX, gaugeStartY, gaugeWidth, gaugeHeight, gaugeBarLength, orientation, }: {
|
|
131
|
+
gaugeStartX: any;
|
|
132
|
+
gaugeStartY: any;
|
|
133
|
+
gaugeWidth: any;
|
|
134
|
+
gaugeHeight: any;
|
|
135
|
+
gaugeBarLength: any;
|
|
136
|
+
orientation: any;
|
|
137
|
+
}) => {
|
|
138
|
+
gaugeBarX: any;
|
|
139
|
+
gaugeBarY: any;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* get width of inner bar in gauge
|
|
143
|
+
* @method getGaugeBarWidth
|
|
144
|
+
* @param {Object} input
|
|
145
|
+
* @param {Number} input.gaugeBarLength
|
|
146
|
+
* @param {String} orientation
|
|
147
|
+
* @return {Number} gaugeBarWidth
|
|
148
|
+
*/
|
|
149
|
+
export declare const getGaugeBarWidth: ({ gaugeBarLength, orientation }: {
|
|
150
|
+
gaugeBarLength: any;
|
|
151
|
+
orientation: any;
|
|
152
|
+
}) => any;
|
|
153
|
+
/**
|
|
154
|
+
* get height of inner bar in gauge
|
|
155
|
+
* @method getGaugeBarWidth
|
|
156
|
+
* @param {Object} input
|
|
157
|
+
* @param {Number} input.gaugeBarLength
|
|
158
|
+
* @param {String} orientation
|
|
159
|
+
* @return {Number} gaugeBarHeight
|
|
160
|
+
*/
|
|
161
|
+
export declare const getGaugeBarHeight: ({ gaugeBarLength, orientation }: {
|
|
162
|
+
gaugeBarLength: any;
|
|
163
|
+
orientation: any;
|
|
164
|
+
}) => any;
|
|
165
|
+
/**
|
|
166
|
+
* get dimensions for the fill bar in the gauge
|
|
167
|
+
* @method getFillBarDimensions
|
|
168
|
+
* @param {Object} input
|
|
169
|
+
* @param {Number} input.gaugeLength
|
|
170
|
+
* @param {Number} input.gaugeStartX
|
|
171
|
+
* @param {Number} input.gaugeStartY
|
|
172
|
+
* @param {Number} input.gaugeWidth,
|
|
173
|
+
* @param {Number} input.gaugeHeight,
|
|
174
|
+
* @param {Number} input.value,
|
|
175
|
+
* @param {Number} input.min,
|
|
176
|
+
* @param {Number} input.max,
|
|
177
|
+
* @param {String} input.orientation
|
|
178
|
+
* @return {Object} fillBarDimensions
|
|
179
|
+
* @return {Number} fillBarDimensions.fillBarLength
|
|
180
|
+
* @return {Number} fillBarDimensions.fillBarX
|
|
181
|
+
* @return {Number} fillBarDimensions.fillBarY
|
|
182
|
+
* @return {Number} fillBarDimensions.fillBarWidth
|
|
183
|
+
* @return {Number} fillBarDimensions.fillBarHeight
|
|
184
|
+
*/
|
|
185
|
+
export declare const getFillBarDimensions: ({ gaugeLength, gaugeStartX, gaugeStartY, gaugeWidth, gaugeHeight, value, min, max, orientation, }: {
|
|
186
|
+
gaugeLength: any;
|
|
187
|
+
gaugeStartX: any;
|
|
188
|
+
gaugeStartY: any;
|
|
189
|
+
gaugeWidth: any;
|
|
190
|
+
gaugeHeight: any;
|
|
191
|
+
value: any;
|
|
192
|
+
min: any;
|
|
193
|
+
max: any;
|
|
194
|
+
orientation: any;
|
|
195
|
+
}) => {
|
|
196
|
+
fillBarLength: any;
|
|
197
|
+
fillBarX: any;
|
|
198
|
+
fillBarY: any;
|
|
199
|
+
fillBarWidth: any;
|
|
200
|
+
fillBarHeight: any;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* get position x and y for value marker in filler gauge
|
|
204
|
+
* @method getFillerGaugeValueMarkerPositions
|
|
205
|
+
* @param {Object} input
|
|
206
|
+
* @param {Number} input.fillBarX
|
|
207
|
+
* @param {Number} input.fillBarY
|
|
208
|
+
* @param {Number} input.fillBarLength
|
|
209
|
+
* @param {String} input.orientation
|
|
210
|
+
* @return {Object} position
|
|
211
|
+
* @return {Number} position.valueMarkerX
|
|
212
|
+
* @return {Number} position.valueMarkerY
|
|
213
|
+
*/
|
|
214
|
+
export declare const getFillerGaugeValueMarkerPositions: ({ fillBarX, fillBarY, fillBarLength, orientation }: {
|
|
215
|
+
fillBarX: any;
|
|
216
|
+
fillBarY: any;
|
|
217
|
+
fillBarLength: any;
|
|
218
|
+
orientation: any;
|
|
219
|
+
}) => {
|
|
220
|
+
valueMarkerX: any;
|
|
221
|
+
valueMarkerY: any;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* get dimensions for the marker bar in the gauge
|
|
225
|
+
* @method getMarkerBarDimensions
|
|
226
|
+
* @param {Object} input
|
|
227
|
+
* @param {Number} input.gaugeLength
|
|
228
|
+
* @param {Number} input.gaugeStartX
|
|
229
|
+
* @param {Number} input.gaugeStartY
|
|
230
|
+
* @param {Number} input.gaugeWidth,
|
|
231
|
+
* @param {Number} input.gaugeHeight,
|
|
232
|
+
* @param {String} input.orientation
|
|
233
|
+
* @return {Object} markerBarDimensions
|
|
234
|
+
* @return {Number} markerBarDimensions.markerBarLength
|
|
235
|
+
* @return {Number} markerBarDimensions.markerBarX
|
|
236
|
+
* @return {Number} markerBarDimensions.markerBarY
|
|
237
|
+
* @return {Number} markerBarDimensions.markerBarWidth
|
|
238
|
+
* @return {Number} markerBarDimensions.markerBarHeight
|
|
239
|
+
*/
|
|
240
|
+
export declare const getMarkerBarDimensions: ({ gaugeLength, gaugeStartX, gaugeStartY, gaugeWidth, gaugeHeight, orientation, }: {
|
|
241
|
+
gaugeLength: any;
|
|
242
|
+
gaugeStartX: any;
|
|
243
|
+
gaugeStartY: any;
|
|
244
|
+
gaugeWidth: any;
|
|
245
|
+
gaugeHeight: any;
|
|
246
|
+
orientation: any;
|
|
247
|
+
}) => {
|
|
248
|
+
markerBarLength: any;
|
|
249
|
+
markerBarX: any;
|
|
250
|
+
markerBarY: any;
|
|
251
|
+
markerBarWidth: any;
|
|
252
|
+
markerBarHeight: any;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* get position x and y for value marker in marker gauge
|
|
256
|
+
* @method getMarkerGaugeValueMarkerPositions
|
|
257
|
+
* @param {Object} input
|
|
258
|
+
* @param {Number} input.markerBarX
|
|
259
|
+
* @param {Number} input.markerBarY
|
|
260
|
+
* @param {Number} input.markerBarHeight
|
|
261
|
+
* @param {Number} input.markerBarLength
|
|
262
|
+
* @param {Number} input.value
|
|
263
|
+
* @param {Number} input.min
|
|
264
|
+
* @param {Number} input.max
|
|
265
|
+
* @param {String} input.orientation
|
|
266
|
+
* @return {Object} position
|
|
267
|
+
* @return {Number} position.valueMarkerX
|
|
268
|
+
* @return {Number} position.valueMarkerY
|
|
269
|
+
*/
|
|
270
|
+
export declare const getMarkerGaugeValueMarkerPositions: ({ markerBarX, markerBarY, markerBarHeight, markerBarLength: gaugeLength, orientation, value, min, max, }: {
|
|
271
|
+
markerBarX: any;
|
|
272
|
+
markerBarY: any;
|
|
273
|
+
markerBarHeight: any;
|
|
274
|
+
markerBarLength: any;
|
|
275
|
+
orientation: any;
|
|
276
|
+
value: any;
|
|
277
|
+
min: any;
|
|
278
|
+
max: any;
|
|
279
|
+
}) => {
|
|
280
|
+
valueMarkerX: any;
|
|
281
|
+
valueMarkerY: any;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* sort the ranges in ascending order
|
|
285
|
+
* @method getSortedRanges
|
|
286
|
+
* @param {Array} ranges
|
|
287
|
+
* @return {Array} sortedRanges
|
|
288
|
+
*/
|
|
289
|
+
export declare const getSortedRanges: (ranges: any) => any;
|
|
290
|
+
/**
|
|
291
|
+
* validate whether ranges prop is valid - continuous ranges, range.to < range.from, range.from != range.to
|
|
292
|
+
* @method validateRanges
|
|
293
|
+
* @param {Array} ranges
|
|
294
|
+
* @return {String} error
|
|
295
|
+
*/
|
|
296
|
+
export declare const validateRanges: (ranges: any) => any;
|
|
297
|
+
/**
|
|
298
|
+
* calculate min and max value of gauge
|
|
299
|
+
* @method getGaugeRange
|
|
300
|
+
* @param {Array} ranges
|
|
301
|
+
* @return {Object} gaugeRange
|
|
302
|
+
* @return {Number} gaugeRange.min
|
|
303
|
+
* @return {Number} gaugeRange.max
|
|
304
|
+
*/
|
|
305
|
+
export declare const getGaugeRange: (ranges: any) => {
|
|
306
|
+
min: number;
|
|
307
|
+
max: number;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* calculate stop offsets for linear gradient
|
|
311
|
+
* @method getGradientStopOffsets
|
|
312
|
+
* @param {Array} ranges
|
|
313
|
+
* @param {String} orientation
|
|
314
|
+
* @return {Array} cumulativeOffsets
|
|
315
|
+
*/
|
|
316
|
+
export declare const getGradientStopOffsets: ({ ranges, orientation }: {
|
|
317
|
+
ranges: any;
|
|
318
|
+
orientation: any;
|
|
319
|
+
}) => any[];
|
|
320
|
+
/**
|
|
321
|
+
* calculate stop colors for linear gradient
|
|
322
|
+
* @method getGradientStopColors
|
|
323
|
+
* @param {Array} ranges
|
|
324
|
+
* @param {String} orientation
|
|
325
|
+
* @return {Array} stopColors
|
|
326
|
+
*/
|
|
327
|
+
export declare const getGradientStopColors: ({ ranges, orientation }: {
|
|
328
|
+
ranges: any;
|
|
329
|
+
orientation: any;
|
|
330
|
+
}) => any;
|
|
331
|
+
/**
|
|
332
|
+
* calculate linear gradient stops from ranges
|
|
333
|
+
* @method getGradientStops
|
|
334
|
+
* @param {Object} input
|
|
335
|
+
* @param {Array} ranges
|
|
336
|
+
* @param {String} orientation
|
|
337
|
+
* @return {Array} stops
|
|
338
|
+
*/
|
|
339
|
+
export declare const getGradientStops: ({ ranges, orientation }: {
|
|
340
|
+
ranges: any;
|
|
341
|
+
orientation: any;
|
|
342
|
+
}) => any[];
|
|
343
|
+
/**
|
|
344
|
+
* calculate linear gradient dimensions
|
|
345
|
+
* @method getGradientDimensions
|
|
346
|
+
* @param {String} orientation
|
|
347
|
+
* @return {Object} dimensions
|
|
348
|
+
* @return {String} dimensions.x1
|
|
349
|
+
* @return {String} dimensions.y1
|
|
350
|
+
* @return {String} dimensions.x2
|
|
351
|
+
* @return {String} dimensions.y2
|
|
352
|
+
*/
|
|
353
|
+
export declare const getGradientDimensions: (orientation: any) => {
|
|
354
|
+
x1: string;
|
|
355
|
+
y1: string;
|
|
356
|
+
x2: string;
|
|
357
|
+
y2: string;
|
|
358
|
+
};
|
|
359
|
+
interface GaugeOptions {
|
|
360
|
+
[key: string]: any;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Helper method to update the option names which can be mapped to pure component options
|
|
364
|
+
* @method mapToOldKey
|
|
365
|
+
* @param {Object} options
|
|
366
|
+
* @returns {Object}
|
|
367
|
+
*/
|
|
368
|
+
export declare const mapToOldKey: (options: GaugeOptions) => GaugeOptions;
|
|
369
|
+
type LabelOrValue = 'label' | 'value';
|
|
370
|
+
/**
|
|
371
|
+
* Helper method to map labelDisplay and valueDisplay options to pure component option names
|
|
372
|
+
* @method mapToOldKey
|
|
373
|
+
* @param {string} labelOrValue
|
|
374
|
+
* @param {Object} options
|
|
375
|
+
* @returns {Object}
|
|
376
|
+
*/
|
|
377
|
+
export declare const mapValueLabelDisplay: (labelOrValue: LabelOrValue, options: GaugeOptions) => GaugeOptions;
|
|
378
|
+
/**
|
|
379
|
+
* Chained helper for mapping the option properties (and values) we expose in config.ts into property values that pure component accepts
|
|
380
|
+
* This is for options that has new key name and can not directly be mapped with pure component props
|
|
381
|
+
* @method convertToGaugeProperties
|
|
382
|
+
* @param {Object} originalOptions
|
|
383
|
+
* @returns {Object}
|
|
384
|
+
*/
|
|
385
|
+
export declare const convertToGaugeProperties: (originalOptions: GaugeOptions) => GaugeOptions;
|
|
386
|
+
export {};
|
|
387
|
+
//# sourceMappingURL=gaugeUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gaugeUtils.d.ts","sourceRoot":"","sources":["../../../src/common/gaugeUtils.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,KAAK,CAAC;AAIjC;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI;;;CAA+B,WACU,CAAC;AAExE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI;;;CAAgC,WACS,CAAC;AAEzE;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAAI;;;;CAAgD,WAGvB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,GAAI;;;;;CAA6D;;;CAWlG,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,GAAI;;;;CAAgD;;;;;;CAsBlF,CAAC;AAEF;;;;;KAKK;AACL,eAAO,MAAM,gBAAgB,GAAI;;;;CAAmB,QAWnD,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI;;;;;CAAgC,QAcjE,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,GAAI;;;;;;;CAOzC;;;CAeA,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI;;;CAA+B,QACA,CAAC;AAEjE;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI;;;CAA+B,QACD,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,GAAI;;;;;;;;;;CAUpC;;;;;;CAoBA,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC,GAAI;;;;;CAAkD;;;CAepG,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB,GAAI;;;;;;;CAOtC;;;;;;CAoBA,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kCAAkC,GAAI;;;;;;;;;CASlD;;;CAeA,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAG,WAAM,QAA0C,CAAC;AAEhF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAG,WAAM,QAyBnC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAG,WAAM;;;CAIlC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI;;;CAAuB,UAY7D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAI;;;CAAuB,QAI5D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI;;;CAAuB,UAYvD,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAAG,gBAAW;;;;;CAM/C,CAAC;AAEF,UAAU,YAAY;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAQD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,YAAY,KAAG,YAC2C,CAAC;AAEhG,KAAK,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,cAAc,YAAY,EAAE,SAAS,YAAY,KAAG,YAmBxF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GAAI,iBAAiB,YAAY,KAAG,YAIzD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface HeightAndWidthProps {
|
|
3
|
+
width?: string | number;
|
|
4
|
+
height?: string | number;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const withFixedSizeContainer: <P extends HeightAndWidthProps>(Viz: React.ComponentType<P>) => React.ComponentType<P>;
|
|
8
|
+
export default withFixedSizeContainer;
|
|
9
|
+
//# sourceMappingURL=FixedSizeContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FixedSizeContainer.d.ts","sourceRoot":"","sources":["../../../../src/common/hocs/FixedSizeContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkE/B,UAAU,mBAAmB;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,sBAAsB,GAAI,CAAC,SAAS,mBAAmB,EACzD,KAAK,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAC5B,KAAK,CAAC,aAAa,CAAC,CAAC,CAmCvB,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|