@splunk/visualizations 25.8.1 → 25.9.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 +2 -2
- package/Area.config.js.map +1 -1
- package/Area.js +25 -9
- package/Area.js.map +1 -1
- package/Bar.config.js +2 -2
- package/Bar.config.js.map +1 -1
- package/Bar.js +25 -9
- package/Bar.js.map +1 -1
- package/Bubble.js +23 -7
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +20 -6
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +3 -3
- package/Column.config.js.map +1 -1
- package/Column.js +26 -10
- package/Column.js.map +1 -1
- package/Ellipse.js +20 -6
- package/Ellipse.js.map +1 -1
- package/Events.js +20 -6
- package/Events.js.map +1 -1
- package/FillerGauge.js +20 -6
- package/FillerGauge.js.map +1 -1
- package/Image.js +20 -6
- package/Image.js.map +1 -1
- package/Line.config.js +12 -3
- package/Line.config.js.map +1 -1
- package/Line.js +37 -11
- package/Line.js.map +1 -1
- package/LinkGraph.js +29 -10
- package/LinkGraph.js.map +1 -1
- package/Map.js +21 -7
- package/Map.js.map +1 -1
- package/Markdown.config.js +1 -0
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +21 -6
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +20 -6
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +20 -6
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +23 -7
- package/Pie.js.map +1 -1
- package/Punchcard.js +20 -6
- package/Punchcard.js.map +1 -1
- package/README.internal.md +15 -5
- package/README.md +3 -1
- package/Rectangle.js +20 -6
- package/Rectangle.js.map +1 -1
- package/Sankey.js +20 -6
- package/Sankey.js.map +1 -1
- package/Scatter.js +23 -7
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +5 -5
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +25 -11
- package/SingleValue.js.map +1 -1
- package/SingleValueIcon.config.js +9 -7
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +29 -13
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +9 -7
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +29 -13
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +1 -1
- package/Table.config.js.map +1 -1
- package/Table.js +21 -7
- package/Table.js.map +1 -1
- package/common/Charting.js +3 -1
- package/common/Charting.js.map +1 -1
- package/common/OptionsDoc.js +9 -6
- package/common/OptionsDoc.js.map +1 -1
- package/common/withDashboardViz.js +20 -6
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +20 -20
package/Scatter.js
CHANGED
|
@@ -193,7 +193,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
193
193
|
}
|
|
194
194
|
return React.createElement(FixSizeItem, {
|
|
195
195
|
"data-test": "fix-size-item",
|
|
196
|
-
"data-splunk-visualization-version": "25.
|
|
196
|
+
"data-splunk-visualization-version": "25.9.0 - 933e6a539",
|
|
197
197
|
width: width,
|
|
198
198
|
height: height,
|
|
199
199
|
backgroundColor: backgroundColor
|
|
@@ -963,10 +963,18 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
963
963
|
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
964
964
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
965
965
|
visualizationID = _React$useState4[0];
|
|
966
|
-
var _React$useState5 = React.useState(
|
|
966
|
+
var _React$useState5 = React.useState({}),
|
|
967
967
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
968
|
-
|
|
969
|
-
|
|
968
|
+
dataSourcesInState = _React$useState6[0],
|
|
969
|
+
setDataSourcesInState = _React$useState6[1];
|
|
970
|
+
var _React$useState7 = React.useState(),
|
|
971
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
972
|
+
dataFramesInState = _React$useState8[0],
|
|
973
|
+
setDataFramesInState = _React$useState8[1];
|
|
974
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
975
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
976
|
+
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
977
|
+
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
970
978
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
971
979
|
try {
|
|
972
980
|
if (useAsyncEvaluatedOptions) {
|
|
@@ -989,10 +997,16 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
989
997
|
setUseAsyncEvaluatedOptions(false);
|
|
990
998
|
});
|
|
991
999
|
} else {
|
|
1000
|
+
var dataFrames = dataFramesInState;
|
|
1001
|
+
if (dataSources !== dataSourcesInState) {
|
|
1002
|
+
setDataSourcesInState(dataSources);
|
|
1003
|
+
dataFrames = Options_1.Options.dataFrameFromDataSource(dataSources);
|
|
1004
|
+
setDataFramesInState(dataFrames);
|
|
1005
|
+
}
|
|
992
1006
|
return Options_1.Options.evaluate({
|
|
993
1007
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
994
1008
|
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
995
|
-
}, dataSources, themeFunc);
|
|
1009
|
+
}, dataSources, themeFunc, dataFrames);
|
|
996
1010
|
}
|
|
997
1011
|
} catch (e) {
|
|
998
1012
|
// eslint-disable-next-line no-console
|
|
@@ -1471,7 +1485,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1471
1485
|
componentId: "sc-1gsbnxb-0"
|
|
1472
1486
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1473
1487
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1474
|
-
'data-splunk-visualization-version': "25.
|
|
1488
|
+
'data-splunk-visualization-version': "25.9.0 - 933e6a539"
|
|
1475
1489
|
}).withConfig({
|
|
1476
1490
|
displayName: "withEditModeCover__Blocker",
|
|
1477
1491
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -2653,7 +2667,9 @@ var Charting = function Charting(props) {
|
|
|
2653
2667
|
chart.current.prepareAndDraw(chartData, updatedOptions, function () {});
|
|
2654
2668
|
}
|
|
2655
2669
|
if (chart.current) {
|
|
2656
|
-
chart.current.
|
|
2670
|
+
if (Math.round(chart.current.height) !== Math.round(computedHeight) || Math.round(chart.current.width) !== Math.round(computedWidth)) {
|
|
2671
|
+
chart.current.resize(computedWidth, computedHeight);
|
|
2672
|
+
}
|
|
2657
2673
|
}
|
|
2658
2674
|
needsInit.current = false;
|
|
2659
2675
|
needsRedraw.current = false;
|