@splunk/visualizations 25.0.0 → 25.1.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/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
- package/Area.config.js +166 -152
- package/Area.config.js.map +1 -1
- package/Area.js +362 -433
- package/Area.js.map +1 -1
- package/Bar.config.js +168 -148
- package/Bar.config.js.map +1 -1
- package/Bar.js +364 -429
- package/Bar.js.map +1 -1
- package/Bubble.config.js +155 -117
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +353 -400
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +112 -82
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +336 -391
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +164 -146
- package/Column.config.js.map +1 -1
- package/Column.js +360 -427
- package/Column.js.map +1 -1
- package/Ellipse.config.js +111 -80
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +317 -371
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +117 -86
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +324 -378
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +100 -76
- package/Image.config.js.map +1 -1
- package/Image.js +725 -789
- package/Image.js.map +1 -1
- package/Line.config.js +164 -137
- package/Line.config.js.map +1 -1
- package/Line.js +360 -418
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +137 -112
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +351 -410
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +140 -97
- package/Map.config.js.map +1 -1
- package/Map.js +517 -523
- package/Map.js.map +1 -1
- package/Markdown.config.js +138 -115
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +502 -553
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +218 -195
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2926 -3098
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +158 -133
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +319 -377
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +160 -136
- package/Pie.config.js.map +1 -1
- package/Pie.js +1316 -1492
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +164 -141
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +344 -404
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +280 -248
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +1247 -1303
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +175 -143
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +377 -426
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +156 -117
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +550 -601
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +147 -115
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +542 -598
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +19 -19
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +154 -120
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +373 -424
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +143 -111
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +612 -668
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +176 -152
- package/Table.config.js.map +1 -1
- package/Table.js +740 -797
- package/Table.js.map +1 -1
- package/common/Charting.js +11 -11
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +12 -12
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +8 -8
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +8 -8
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +51 -327
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +22 -22
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +19 -19
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +4 -4
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +13 -13
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +42 -18
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/hocUtils.js +6 -86
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/{JSONSchemaUtils.js → mapUtils.js} +89 -29
- package/common/utils/mapUtils.js.map +1 -0
- package/common/utils/singleValueUtils.js +14 -12
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +8 -8
- package/common/utils/testHelper.js.map +1 -1
- package/common/withDashboardViz.js +120 -207
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +12 -12
- package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
- package/common/utils/JSONSchemaUtils.js.map +0 -1
package/Map.config.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 51);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -98,14 +98,63 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
98
98
|
|
|
99
99
|
/***/ }),
|
|
100
100
|
/* 1 */
|
|
101
|
+
/***/ (function(module, exports) {
|
|
102
|
+
|
|
103
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
104
|
+
|
|
105
|
+
/***/ }),
|
|
106
|
+
/* 2 */
|
|
101
107
|
/***/ (function(module, exports, __webpack_require__) {
|
|
102
108
|
|
|
103
109
|
"use strict";
|
|
104
110
|
|
|
105
111
|
|
|
106
|
-
|
|
112
|
+
Object.defineProperty(exports, "__esModule", {
|
|
113
|
+
value: true
|
|
114
|
+
});
|
|
115
|
+
exports.VizBehavior = void 0;
|
|
116
|
+
var VizBehavior;
|
|
117
|
+
|
|
118
|
+
(function (VizBehavior) {
|
|
119
|
+
/**
|
|
120
|
+
* Dynamic Options Behavior.
|
|
121
|
+
* This allows visualization options to be powered by data
|
|
122
|
+
*
|
|
123
|
+
* **Example**
|
|
124
|
+
*
|
|
125
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
126
|
+
* would configure sparklineValues with an array of data points
|
|
127
|
+
* coming from the first series in the primary datasource
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
131
|
+
VizBehavior["EVENTS"] = "events";
|
|
132
|
+
/**
|
|
133
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
134
|
+
* missing.
|
|
135
|
+
* @type {string}
|
|
136
|
+
*/
|
|
107
137
|
|
|
108
|
-
|
|
138
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
139
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
140
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
141
|
+
|
|
142
|
+
/***/ }),
|
|
143
|
+
/* 3 */
|
|
144
|
+
/***/ (function(module, exports) {
|
|
145
|
+
|
|
146
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
147
|
+
|
|
148
|
+
/***/ }),
|
|
149
|
+
/* 4 */
|
|
150
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
151
|
+
|
|
152
|
+
"use strict";
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
156
|
+
|
|
157
|
+
var _defineProperty = __webpack_require__(7);
|
|
109
158
|
|
|
110
159
|
var __rest = this && this.__rest || function (s, e) {
|
|
111
160
|
var t = {};
|
|
@@ -123,13 +172,13 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
123
172
|
Object.defineProperty(exports, "__esModule", {
|
|
124
173
|
value: true
|
|
125
174
|
});
|
|
126
|
-
exports.insertLayout = exports.
|
|
175
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
127
176
|
|
|
128
|
-
var lodash_1 = __webpack_require__(
|
|
177
|
+
var lodash_1 = __webpack_require__(6);
|
|
129
178
|
|
|
130
|
-
var schemaUtils_1 = __webpack_require__(
|
|
179
|
+
var schemaUtils_1 = __webpack_require__(3);
|
|
131
180
|
|
|
132
|
-
var VizBehavior_1 = __webpack_require__(
|
|
181
|
+
var VizBehavior_1 = __webpack_require__(2);
|
|
133
182
|
|
|
134
183
|
var dynamicOptionsDSLType = {
|
|
135
184
|
type: 'string',
|
|
@@ -198,8 +247,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
|
|
|
198
247
|
exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
|
|
199
248
|
/**
|
|
200
249
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
250
|
+
* this function also collapse all editor panels
|
|
201
251
|
* @param vizConfig a Visualization Config
|
|
202
252
|
* @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
|
|
253
|
+
* and containing `open: false` for all editor panels in editorConfig
|
|
203
254
|
*/
|
|
204
255
|
|
|
205
256
|
function enhanceConfig(vizConfig) {
|
|
@@ -209,10 +260,33 @@ function enhanceConfig(vizConfig) {
|
|
|
209
260
|
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
210
261
|
}
|
|
211
262
|
|
|
263
|
+
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
264
|
+
return Object.assign(Object.assign({}, config), {
|
|
265
|
+
open: false
|
|
266
|
+
});
|
|
267
|
+
});
|
|
212
268
|
return enhancedConfig;
|
|
213
269
|
}
|
|
214
270
|
|
|
215
271
|
exports.enhanceConfig = enhanceConfig;
|
|
272
|
+
/**
|
|
273
|
+
* Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
|
|
274
|
+
* Created for editor unit tests
|
|
275
|
+
* @param vizConfig a Visualization Config
|
|
276
|
+
* @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
function uncollapseEditorConfig(vizConfig) {
|
|
280
|
+
var editorPanelUncollapsedConfig = vizConfig;
|
|
281
|
+
editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
282
|
+
return Object.assign(Object.assign({}, config), {
|
|
283
|
+
open: true
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
return editorPanelUncollapsedConfig;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
exports.uncollapseEditorConfig = uncollapseEditorConfig;
|
|
216
290
|
|
|
217
291
|
function isDynamicOption(option) {
|
|
218
292
|
return option && typeof option === 'string' && option.trim().startsWith('>') || false;
|
|
@@ -308,68 +382,20 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
308
382
|
exports.insertLayout = insertLayout;
|
|
309
383
|
|
|
310
384
|
/***/ }),
|
|
311
|
-
/*
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
315
|
-
|
|
316
|
-
/***/ }),
|
|
317
|
-
/* 3 */
|
|
318
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
319
|
-
|
|
320
|
-
"use strict";
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
Object.defineProperty(exports, "__esModule", {
|
|
324
|
-
value: true
|
|
325
|
-
});
|
|
326
|
-
exports.VizBehavior = void 0;
|
|
327
|
-
var VizBehavior;
|
|
328
|
-
|
|
329
|
-
(function (VizBehavior) {
|
|
330
|
-
/**
|
|
331
|
-
* Dynamic Options Behavior.
|
|
332
|
-
* This allows visualization options to be powered by data
|
|
333
|
-
*
|
|
334
|
-
* **Example**
|
|
335
|
-
*
|
|
336
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
337
|
-
* would configure sparklineValues with an array of data points
|
|
338
|
-
* coming from the first series in the primary datasource
|
|
339
|
-
*
|
|
340
|
-
*/
|
|
341
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
342
|
-
VizBehavior["EVENTS"] = "events";
|
|
343
|
-
/**
|
|
344
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
345
|
-
* missing.
|
|
346
|
-
* @type {string}
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
350
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
351
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
352
|
-
|
|
353
|
-
/***/ }),
|
|
354
|
-
/* 4 */
|
|
355
|
-
/***/ (function(module, exports) {
|
|
356
|
-
|
|
357
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
358
|
-
|
|
359
|
-
/***/ }),
|
|
360
|
-
/* 5 */
|
|
385
|
+
/* 5 */,
|
|
386
|
+
/* 6 */
|
|
361
387
|
/***/ (function(module, exports) {
|
|
362
388
|
|
|
363
389
|
module.exports = require("lodash");
|
|
364
390
|
|
|
365
391
|
/***/ }),
|
|
366
|
-
/*
|
|
392
|
+
/* 7 */
|
|
367
393
|
/***/ (function(module, exports) {
|
|
368
394
|
|
|
369
395
|
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
370
396
|
|
|
371
397
|
/***/ }),
|
|
372
|
-
/*
|
|
398
|
+
/* 8 */
|
|
373
399
|
/***/ (function(module, exports, __webpack_require__) {
|
|
374
400
|
|
|
375
401
|
"use strict";
|
|
@@ -397,27 +423,26 @@ var VizCategory;
|
|
|
397
423
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
398
424
|
|
|
399
425
|
/***/ }),
|
|
400
|
-
/* 8 */,
|
|
401
426
|
/* 9 */,
|
|
402
|
-
/* 10
|
|
427
|
+
/* 10 */,
|
|
428
|
+
/* 11 */
|
|
403
429
|
/***/ (function(module, exports) {
|
|
404
430
|
|
|
405
431
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
406
432
|
|
|
407
433
|
/***/ }),
|
|
408
|
-
/*
|
|
434
|
+
/* 12 */
|
|
409
435
|
/***/ (function(module, exports) {
|
|
410
436
|
|
|
411
437
|
module.exports = require("@splunk/visualization-icons");
|
|
412
438
|
|
|
413
439
|
/***/ }),
|
|
414
|
-
/*
|
|
440
|
+
/* 13 */
|
|
415
441
|
/***/ (function(module, exports) {
|
|
416
442
|
|
|
417
443
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
418
444
|
|
|
419
445
|
/***/ }),
|
|
420
|
-
/* 13 */,
|
|
421
446
|
/* 14 */,
|
|
422
447
|
/* 15 */,
|
|
423
448
|
/* 16 */,
|
|
@@ -427,13 +452,13 @@ module.exports = require("@splunk/visualization-color-palettes");
|
|
|
427
452
|
/* 20 */,
|
|
428
453
|
/* 21 */,
|
|
429
454
|
/* 22 */,
|
|
430
|
-
/* 23
|
|
455
|
+
/* 23 */,
|
|
456
|
+
/* 24 */
|
|
431
457
|
/***/ (function(module, exports) {
|
|
432
458
|
|
|
433
459
|
module.exports = require("@splunk/themes");
|
|
434
460
|
|
|
435
461
|
/***/ }),
|
|
436
|
-
/* 24 */,
|
|
437
462
|
/* 25 */,
|
|
438
463
|
/* 26 */,
|
|
439
464
|
/* 27 */,
|
|
@@ -459,7 +484,8 @@ module.exports = require("@splunk/themes");
|
|
|
459
484
|
/* 47 */,
|
|
460
485
|
/* 48 */,
|
|
461
486
|
/* 49 */,
|
|
462
|
-
/* 50
|
|
487
|
+
/* 50 */,
|
|
488
|
+
/* 51 */
|
|
463
489
|
/***/ (function(module, exports, __webpack_require__) {
|
|
464
490
|
|
|
465
491
|
"use strict";
|
|
@@ -469,25 +495,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
469
495
|
value: true
|
|
470
496
|
});
|
|
471
497
|
|
|
472
|
-
var visualization_icons_1 = __webpack_require__(
|
|
498
|
+
var visualization_icons_1 = __webpack_require__(12);
|
|
473
499
|
|
|
474
|
-
var placeholders_1 = __webpack_require__(
|
|
500
|
+
var placeholders_1 = __webpack_require__(11);
|
|
475
501
|
|
|
476
|
-
var schemaUtils_1 = __webpack_require__(
|
|
502
|
+
var schemaUtils_1 = __webpack_require__(3);
|
|
477
503
|
|
|
478
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
504
|
+
var visualization_color_palettes_1 = __webpack_require__(13);
|
|
479
505
|
|
|
480
|
-
var themes_1 = __webpack_require__(
|
|
506
|
+
var themes_1 = __webpack_require__(24);
|
|
481
507
|
|
|
482
508
|
var i18n_1 = __webpack_require__(0);
|
|
483
509
|
|
|
484
|
-
var VizBehavior_1 = __webpack_require__(
|
|
510
|
+
var VizBehavior_1 = __webpack_require__(2);
|
|
485
511
|
|
|
486
|
-
var VizCategory_1 = __webpack_require__(
|
|
512
|
+
var VizCategory_1 = __webpack_require__(8);
|
|
487
513
|
|
|
488
|
-
var configUtils_1 = __webpack_require__(
|
|
514
|
+
var configUtils_1 = __webpack_require__(4);
|
|
489
515
|
|
|
490
|
-
var MapUtils_1 = __webpack_require__(
|
|
516
|
+
var MapUtils_1 = __webpack_require__(52);
|
|
491
517
|
|
|
492
518
|
var defaultContext = {
|
|
493
519
|
colorRangeConfig: [{
|
|
@@ -925,32 +951,34 @@ var config = {
|
|
|
925
951
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
926
952
|
|
|
927
953
|
/***/ }),
|
|
928
|
-
/*
|
|
954
|
+
/* 52 */
|
|
929
955
|
/***/ (function(module, exports, __webpack_require__) {
|
|
930
956
|
|
|
931
957
|
"use strict";
|
|
932
958
|
|
|
933
959
|
|
|
934
|
-
var _defineProperty = __webpack_require__(
|
|
960
|
+
var _defineProperty = __webpack_require__(7);
|
|
935
961
|
|
|
936
|
-
var _slicedToArray = __webpack_require__(
|
|
962
|
+
var _slicedToArray = __webpack_require__(53);
|
|
937
963
|
|
|
938
|
-
var _toConsumableArray = __webpack_require__(
|
|
964
|
+
var _toConsumableArray = __webpack_require__(1);
|
|
939
965
|
|
|
940
966
|
Object.defineProperty(exports, "__esModule", {
|
|
941
967
|
value: true
|
|
942
968
|
});
|
|
943
969
|
exports.formatMetadata = exports.compareBaseStyles = exports.getScaledOpacities = exports.getGlobalLayerBoundaries = exports.isValidLatLon = exports.bakeBubbleData = exports.sanitizeValues = exports.transposeArray = exports.matchBubbleSize = exports.getStaticColors = exports.getZoomLevelFromGeobin = exports.getZoomConstraintsFromTileConfig = exports.getMapStyle = exports.getTilePreset = exports.LAYER_TYPE = exports.DEFAULT_OPACITY = exports.MAX_BUBBLE_RADIUS = exports.MIN_BUBBLE_RADIUS = exports.MAP_STYLE_VERSION_NUMBER = exports.DEFAULT_SERIES_COLORS = exports.DEFAULT_CLUSTER_COLOR = exports.DEFAULT_RESULT_LIMIT = exports.MIN_LONGITUDE = exports.MAX_LONGITUDE = exports.MIN_LATITUDE = exports.MAX_LATITUDE = void 0;
|
|
944
970
|
|
|
945
|
-
var lodash_1 = __webpack_require__(
|
|
971
|
+
var lodash_1 = __webpack_require__(6);
|
|
972
|
+
|
|
973
|
+
var d3_scale_1 = __webpack_require__(54);
|
|
946
974
|
|
|
947
|
-
var
|
|
975
|
+
var chroma = __webpack_require__(55);
|
|
948
976
|
|
|
949
|
-
var
|
|
977
|
+
var colorUtils_1 = __webpack_require__(56);
|
|
950
978
|
|
|
951
|
-
var
|
|
979
|
+
var visualization_color_palettes_1 = __webpack_require__(13);
|
|
952
980
|
|
|
953
|
-
var
|
|
981
|
+
var types_1 = __webpack_require__(57);
|
|
954
982
|
|
|
955
983
|
exports.MAX_LATITUDE = 90;
|
|
956
984
|
exports.MIN_LATITUDE = -90;
|
|
@@ -1109,9 +1137,10 @@ var getMapStyle = function getMapStyle(_ref2) {
|
|
|
1109
1137
|
|
|
1110
1138
|
exports.getMapStyle = getMapStyle;
|
|
1111
1139
|
|
|
1112
|
-
var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig(tileConfig) {
|
|
1140
|
+
var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig(tileConfig, baseLayerTileServer) {
|
|
1113
1141
|
var sources = tileConfig.sources,
|
|
1114
|
-
layers = tileConfig.layers;
|
|
1142
|
+
layers = tileConfig.layers;
|
|
1143
|
+
var matchedBaseLayerTileServer = false; // check sources for minzoom maxzoom first
|
|
1115
1144
|
|
|
1116
1145
|
var sourceKeys = Object.keys(sources);
|
|
1117
1146
|
|
|
@@ -1120,7 +1149,11 @@ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig
|
|
|
1120
1149
|
minzoom = _sources$sourceKeys$i.minzoom,
|
|
1121
1150
|
maxzoom = _sources$sourceKeys$i.maxzoom;
|
|
1122
1151
|
|
|
1123
|
-
if (
|
|
1152
|
+
if (baseLayerTileServer && sources[sourceKeys[i]].tiles.indexOf(baseLayerTileServer) !== -1) {
|
|
1153
|
+
matchedBaseLayerTileServer = true;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && lodash_1.isNumber(minzoom) && lodash_1.isNumber(maxzoom)) {
|
|
1124
1157
|
return {
|
|
1125
1158
|
minZoom: minzoom,
|
|
1126
1159
|
maxZoom: maxzoom
|
|
@@ -1134,7 +1167,7 @@ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig
|
|
|
1134
1167
|
_minzoom = _layers$_i.minzoom,
|
|
1135
1168
|
_maxzoom = _layers$_i.maxzoom;
|
|
1136
1169
|
|
|
1137
|
-
if (lodash_1.isNumber(_minzoom) && lodash_1.isNumber(_maxzoom)) {
|
|
1170
|
+
if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && lodash_1.isNumber(_minzoom) && lodash_1.isNumber(_maxzoom)) {
|
|
1138
1171
|
return {
|
|
1139
1172
|
minZoom: _minzoom,
|
|
1140
1173
|
maxZoom: _maxzoom
|
|
@@ -1316,11 +1349,11 @@ var isValidLatLon = function isValidLatLon(latlon) {
|
|
|
1316
1349
|
lat = _latlon[0],
|
|
1317
1350
|
lon = _latlon[1];
|
|
1318
1351
|
|
|
1319
|
-
if (
|
|
1352
|
+
if (!types_1.isNumber(lat) || !(lat >= exports.MIN_LATITUDE && lat <= exports.MAX_LATITUDE)) {
|
|
1320
1353
|
return false;
|
|
1321
1354
|
}
|
|
1322
1355
|
|
|
1323
|
-
if (
|
|
1356
|
+
if (!types_1.isNumber(lon) || !(lon >= exports.MIN_LONGITUDE && lon <= exports.MAX_LONGITUDE)) {
|
|
1324
1357
|
return false;
|
|
1325
1358
|
}
|
|
1326
1359
|
|
|
@@ -1384,7 +1417,10 @@ var getGlobalLayerBoundaries = function getGlobalLayerBoundaries(layers) {
|
|
|
1384
1417
|
}
|
|
1385
1418
|
|
|
1386
1419
|
return layers.reduce(function (prevVal, layer) {
|
|
1387
|
-
|
|
1420
|
+
var coordinatesNumArr = getLatOrLonCoordinates(layer, field).map(function (x) {
|
|
1421
|
+
return +x;
|
|
1422
|
+
});
|
|
1423
|
+
return lodash_1.min([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
|
|
1388
1424
|
}, getDefaultMax(field));
|
|
1389
1425
|
};
|
|
1390
1426
|
|
|
@@ -1394,7 +1430,8 @@ var getGlobalLayerBoundaries = function getGlobalLayerBoundaries(layers) {
|
|
|
1394
1430
|
}
|
|
1395
1431
|
|
|
1396
1432
|
return layers.reduce(function (prevVal, layer) {
|
|
1397
|
-
|
|
1433
|
+
var coordinatesNumArr = getLatOrLonCoordinates(layer, field).map(Number);
|
|
1434
|
+
return lodash_1.max([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
|
|
1398
1435
|
}, getDefaultMin(field));
|
|
1399
1436
|
};
|
|
1400
1437
|
|
|
@@ -1461,29 +1498,35 @@ var formatMetadata = function formatMetadata(choroplethLayer, i) {
|
|
|
1461
1498
|
exports.formatMetadata = formatMetadata;
|
|
1462
1499
|
|
|
1463
1500
|
/***/ }),
|
|
1464
|
-
/*
|
|
1501
|
+
/* 53 */
|
|
1465
1502
|
/***/ (function(module, exports) {
|
|
1466
1503
|
|
|
1467
1504
|
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
1468
1505
|
|
|
1469
1506
|
/***/ }),
|
|
1470
|
-
/*
|
|
1507
|
+
/* 54 */
|
|
1471
1508
|
/***/ (function(module, exports) {
|
|
1472
1509
|
|
|
1473
1510
|
module.exports = require("d3-scale");
|
|
1474
1511
|
|
|
1475
1512
|
/***/ }),
|
|
1476
|
-
/*
|
|
1513
|
+
/* 55 */
|
|
1477
1514
|
/***/ (function(module, exports) {
|
|
1478
1515
|
|
|
1479
1516
|
module.exports = require("chroma-js");
|
|
1480
1517
|
|
|
1481
1518
|
/***/ }),
|
|
1482
|
-
/*
|
|
1519
|
+
/* 56 */
|
|
1483
1520
|
/***/ (function(module, exports) {
|
|
1484
1521
|
|
|
1485
1522
|
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
1486
1523
|
|
|
1524
|
+
/***/ }),
|
|
1525
|
+
/* 57 */
|
|
1526
|
+
/***/ (function(module, exports) {
|
|
1527
|
+
|
|
1528
|
+
module.exports = require("@splunk/visualization-encoding/utils/types");
|
|
1529
|
+
|
|
1487
1530
|
/***/ })
|
|
1488
1531
|
/******/ ]);
|
|
1489
1532
|
//# sourceMappingURL=Map.config.js.map
|