@nova-ui/charts 12.0.15 → 12.0.16
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/bundles/nova-ui-charts.umd.js +645 -0
- package/bundles/nova-ui-charts.umd.js.map +1 -1
- package/esm2015/chart/chart.component.js +20 -1
- package/esm2015/chart-collection/chart-collection-id.directive.js +20 -1
- package/esm2015/chart-collection/chart-collection.service.js +20 -1
- package/esm2015/chart-collection/public-api.js +20 -1
- package/esm2015/chart-donut-content/chart-donut-content.component.js +20 -1
- package/esm2015/chart-marker/chart-marker.component.js +20 -1
- package/esm2015/chart-popover/chart-popover.component.js +20 -1
- package/esm2015/chart-tooltips/chart-tooltip.component.js +20 -1
- package/esm2015/chart-tooltips/chart-tooltip.directive.js +20 -1
- package/esm2015/chart-tooltips/chart-tooltips.component.js +20 -1
- package/esm2015/charts.module.js +20 -1
- package/esm2015/constants.js +20 -1
- package/esm2015/core/chart-assists/chart-assist.js +20 -1
- package/esm2015/core/chart-assists/public-api.js +20 -1
- package/esm2015/core/chart-assists/spark-chart-assist.js +20 -1
- package/esm2015/core/chart-assists/types.js +20 -1
- package/esm2015/core/chart-collection.js +20 -1
- package/esm2015/core/chart.js +20 -1
- package/esm2015/core/common/chart-plugin.js +20 -1
- package/esm2015/core/common/data-manager.js +20 -1
- package/esm2015/core/common/data-series.js +20 -1
- package/esm2015/core/common/event-bus.js +20 -1
- package/esm2015/core/common/lasagna.js +20 -1
- package/esm2015/core/common/mouse-interactive-area.js +20 -1
- package/esm2015/core/common/palette/chart-palette.js +20 -1
- package/esm2015/core/common/palette/color.helper.js +20 -1
- package/esm2015/core/common/palette/default-providers.js +20 -1
- package/esm2015/core/common/palette/mapped-value-provider.js +20 -1
- package/esm2015/core/common/palette/markers/path-marker.js +20 -1
- package/esm2015/core/common/palette/markers/svg-marker.js +20 -1
- package/esm2015/core/common/palette/palettes.js +20 -1
- package/esm2015/core/common/palette/processed-color-provider.js +20 -1
- package/esm2015/core/common/palette/public-api.js +20 -1
- package/esm2015/core/common/palette/sequential-chart-marker-provider.js +20 -1
- package/esm2015/core/common/palette/sequential-color-provider.js +20 -1
- package/esm2015/core/common/palette/sequential-value-provider.js +20 -1
- package/esm2015/core/common/palette/text-color-provider.js +20 -1
- package/esm2015/core/common/public-api.js +20 -1
- package/esm2015/core/common/render-engine.js +20 -1
- package/esm2015/core/common/renderer.js +20 -1
- package/esm2015/core/common/scales/band-scale.js +20 -1
- package/esm2015/core/common/scales/constants.js +20 -1
- package/esm2015/core/common/scales/domain-calculation/automatic-domain.js +20 -1
- package/esm2015/core/common/scales/domain-calculation/domain-with-auxiliary-series.js +20 -1
- package/esm2015/core/common/scales/domain-calculation/domain-with-ticks.js +20 -1
- package/esm2015/core/common/scales/domain-calculation/merge-domains.js +20 -1
- package/esm2015/core/common/scales/formatters/datetime-formatter.js +20 -1
- package/esm2015/core/common/scales/formatters/public-api.js +20 -1
- package/esm2015/core/common/scales/helpers/convert.js +20 -1
- package/esm2015/core/common/scales/helpers/domain.js +20 -1
- package/esm2015/core/common/scales/helpers/invert.js +20 -1
- package/esm2015/core/common/scales/helpers/is-in-range.js +20 -1
- package/esm2015/core/common/scales/linear-scale.js +20 -1
- package/esm2015/core/common/scales/noop-scale.js +20 -1
- package/esm2015/core/common/scales/point-scale.js +20 -1
- package/esm2015/core/common/scales/public-api.js +20 -1
- package/esm2015/core/common/scales/scale.js +20 -1
- package/esm2015/core/common/scales/time-interval-scale.js +20 -1
- package/esm2015/core/common/scales/time-scale.js +20 -1
- package/esm2015/core/common/scales/types.js +20 -1
- package/esm2015/core/common/types.js +20 -1
- package/esm2015/core/common/utility.service.js +20 -1
- package/esm2015/core/grid/config/area-grid-config.js +20 -1
- package/esm2015/core/grid/config/axis-config.js +20 -1
- package/esm2015/core/grid/config/bar-grid-config.js +20 -1
- package/esm2015/core/grid/config/bar-horizontal-grid-config.js +20 -1
- package/esm2015/core/grid/config/bar-status-grid-config.js +20 -1
- package/esm2015/core/grid/config/border-config.js +20 -1
- package/esm2015/core/grid/config/dimension-config.js +20 -1
- package/esm2015/core/grid/config/grid-config.js +20 -1
- package/esm2015/core/grid/config/linear-gauge-grid-config-fn.js +20 -1
- package/esm2015/core/grid/config/public-api.js +20 -1
- package/esm2015/core/grid/config/spark-chart-grid-config.js +20 -1
- package/esm2015/core/grid/config/xy-grid-config.js +20 -1
- package/esm2015/core/grid/default-text-overflow-handler.js +20 -1
- package/esm2015/core/grid/grid.js +20 -1
- package/esm2015/core/grid/public-api.js +20 -1
- package/esm2015/core/grid/radial-grid.js +20 -1
- package/esm2015/core/grid/types.js +20 -1
- package/esm2015/core/grid/xy-grid.js +20 -1
- package/esm2015/core/plugins/chart-donut-content-plugin.js +20 -1
- package/esm2015/core/plugins/chart-popover-plugin.js +20 -1
- package/esm2015/core/plugins/gauge/constants.js +20 -1
- package/esm2015/core/plugins/gauge/donut-gauge-labels-plugin.js +20 -1
- package/esm2015/core/plugins/gauge/linear-gauge-labels-plugin.js +20 -1
- package/esm2015/core/plugins/gauge/public-api.js +20 -1
- package/esm2015/core/plugins/gauge/types.js +20 -1
- package/esm2015/core/plugins/interaction/interaction-label-plugin.js +20 -1
- package/esm2015/core/plugins/interaction/interaction-line-plugin.js +20 -1
- package/esm2015/core/plugins/interaction/public-api.js +20 -1
- package/esm2015/core/plugins/mouse-interactive-area-plugin.js +20 -1
- package/esm2015/core/plugins/public-api.js +20 -1
- package/esm2015/core/plugins/radial-popover-plugin.js +20 -1
- package/esm2015/core/plugins/render-engine-plugin.js +20 -1
- package/esm2015/core/plugins/tooltips/bar-tooltips-plugin.js +20 -1
- package/esm2015/core/plugins/tooltips/chart-tooltips-plugin.js +20 -1
- package/esm2015/core/plugins/tooltips/index.js +20 -1
- package/esm2015/core/plugins/tooltips/radial-tooltips-plugin.js +20 -1
- package/esm2015/core/plugins/types.js +20 -1
- package/esm2015/core/plugins/zoom-plugin.js +20 -1
- package/esm2015/core/public-api.js +20 -1
- package/esm2015/core/types.js +20 -1
- package/esm2015/gauge/constants.js +20 -1
- package/esm2015/gauge/gauge-util.js +20 -1
- package/esm2015/gauge/public-api.js +20 -1
- package/esm2015/gauge/types.js +20 -1
- package/esm2015/legend/legend-series/legend-series.component.js +20 -1
- package/esm2015/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.js +20 -1
- package/esm2015/legend/legend-tile/public-api.js +20 -1
- package/esm2015/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.js +20 -1
- package/esm2015/legend/legend.component.js +20 -1
- package/esm2015/legend/public-api.js +20 -1
- package/esm2015/legend/types.js +20 -1
- package/esm2015/public-api.js +20 -1
- package/esm2015/renderers/accessors/noop-accessors.js +20 -1
- package/esm2015/renderers/accessors/public-api.js +20 -1
- package/esm2015/renderers/accessors/rectangle-accessors.js +20 -1
- package/esm2015/renderers/accessors/xy-accessors.js +20 -1
- package/esm2015/renderers/area/area-accessors.js +20 -1
- package/esm2015/renderers/area/area-grid.js +20 -1
- package/esm2015/renderers/area/area-renderer.js +20 -1
- package/esm2015/renderers/area/public-api.js +20 -1
- package/esm2015/renderers/area/stacked-area-accessors.js +20 -1
- package/esm2015/renderers/area/stacked-area-preprocessor.js +20 -1
- package/esm2015/renderers/area/stacked-percentage-area-preprocessor.js +20 -1
- package/esm2015/renderers/bar/accessors/bar-accessors-fn.js +20 -1
- package/esm2015/renderers/bar/accessors/bar-accessors.js +20 -1
- package/esm2015/renderers/bar/accessors/horizontal-bar-accessors.js +20 -1
- package/esm2015/renderers/bar/accessors/public-api.js +20 -1
- package/esm2015/renderers/bar/accessors/status-accessors-fn.js +20 -1
- package/esm2015/renderers/bar/accessors/status-accessors.js +20 -1
- package/esm2015/renderers/bar/accessors/vertical-bar-accessors.js +20 -1
- package/esm2015/renderers/bar/bar-grid.js +20 -1
- package/esm2015/renderers/bar/bar-renderer.js +20 -1
- package/esm2015/renderers/bar/bar-scales.js +20 -1
- package/esm2015/renderers/bar/highlight-strategies/bar-highlight-strategy.js +20 -1
- package/esm2015/renderers/bar/highlight-strategies/bar-series-highlight-strategy.js +20 -1
- package/esm2015/renderers/bar/highlight-strategies/public-api.js +20 -1
- package/esm2015/renderers/bar/linear-gauge-renderer-config.js +20 -1
- package/esm2015/renderers/bar/linear-gauge-thresholds-renderer.js +20 -1
- package/esm2015/renderers/bar/preprocessor-utils.js +20 -1
- package/esm2015/renderers/bar/public-api.js +20 -1
- package/esm2015/renderers/bar/stacked-preprocessor.js +20 -1
- package/esm2015/renderers/bar/types.js +20 -1
- package/esm2015/renderers/constants.js +20 -1
- package/esm2015/renderers/line/calculate-missing-data.js +20 -1
- package/esm2015/renderers/line/interaction-strategies/line-select-series-interaction-strategy.js +20 -1
- package/esm2015/renderers/line/interaction-strategies/public-api.js +20 -1
- package/esm2015/renderers/line/line-accessors.js +20 -1
- package/esm2015/renderers/line/line-renderer.js +20 -1
- package/esm2015/renderers/line/missing-data-line-renderer-config.js +20 -1
- package/esm2015/renderers/line/public-api.js +20 -1
- package/esm2015/renderers/marker-utils.js +20 -1
- package/esm2015/renderers/noop-renderer.js +20 -1
- package/esm2015/renderers/public-api.js +20 -1
- package/esm2015/renderers/radial/accessors/radial-accessors.js +20 -1
- package/esm2015/renderers/radial/gauge/donut-gauge-renderer-config.js +20 -1
- package/esm2015/renderers/radial/gauge/donut-gauge-rendering-util.js +20 -1
- package/esm2015/renderers/radial/gauge/donut-gauge-thresholds-renderer.js +20 -1
- package/esm2015/renderers/radial/pie-renderer.js +20 -1
- package/esm2015/renderers/radial/public-api.js +20 -1
- package/esm2015/renderers/radial/radial-grid-fn.js +20 -1
- package/esm2015/renderers/radial/radial-preprocessor.js +20 -1
- package/esm2015/renderers/radial/radial-renderer.js +20 -1
- package/esm2015/renderers/radial/radial-scales.js +20 -1
- package/esm2015/renderers/side-indicator-renderer.js +20 -1
- package/esm2015/renderers/types.js +20 -1
- package/esm2015/renderers/xy-renderer.js +20 -1
- package/esm2015/thresholds/public-api.js +20 -1
- package/esm2015/thresholds/thresholds-service.js +20 -1
- package/esm2015/thresholds/thresholds-summary-grid-config.js +20 -1
- package/esm2015/thresholds/thresholds-top-grid-config.js +20 -1
- package/esm2015/thresholds/types.js +20 -1
- package/fesm2015/nova-ui-charts.js +709 -0
- package/fesm2015/nova-ui-charts.js.map +1 -1
- package/nova-ui-charts.metadata.json +1 -1
- package/package.json +2 -2
- package/sdk/atoms/chart/atoms/bar-data-point.atom.js +19 -0
- package/sdk/atoms/chart/atoms/bar-data-point.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/chart.atom.js +19 -0
- package/sdk/atoms/chart/atoms/chart.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/lasagna.atom.js +19 -0
- package/sdk/atoms/chart/atoms/lasagna.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/line-series.atom.js +19 -0
- package/sdk/atoms/chart/atoms/line-series.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/marker-series.atom.js +19 -0
- package/sdk/atoms/chart/atoms/marker-series.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/marker.atom.js +19 -0
- package/sdk/atoms/chart/atoms/marker.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/radial-series.atom.js +19 -0
- package/sdk/atoms/chart/atoms/radial-series.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/series.atom.js +19 -0
- package/sdk/atoms/chart/atoms/series.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/status-bar-data-point.atom.js +19 -0
- package/sdk/atoms/chart/atoms/status-bar-data-point.atom.js.map +1 -1
- package/sdk/atoms/chart/atoms/threshold-series.atom.js +19 -0
- package/sdk/atoms/chart/atoms/threshold-series.atom.js.map +1 -1
- package/sdk/atoms/chart/boosters/donut-chart-content.booster.js +19 -0
- package/sdk/atoms/chart/boosters/donut-chart-content.booster.js.map +1 -1
- package/sdk/atoms/chart/boosters/interactive.booster.js +19 -0
- package/sdk/atoms/chart/boosters/interactive.booster.js.map +1 -1
- package/sdk/atoms/chart/boosters/zoom.booster.js +19 -0
- package/sdk/atoms/chart/boosters/zoom.booster.js.map +1 -1
- package/sdk/atoms/chart/donut-chart-test.po.js +19 -0
- package/sdk/atoms/chart/donut-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/line-chart-test.po.js +19 -0
- package/sdk/atoms/chart/line-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/pie-chart-test.po.js +19 -0
- package/sdk/atoms/chart/pie-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/spark-chart-test.po.js +19 -0
- package/sdk/atoms/chart/spark-chart-test.po.js.map +1 -1
- package/sdk/atoms/chart/status-chart.atom.js +19 -0
- package/sdk/atoms/chart/status-chart.atom.js.map +1 -1
- package/sdk/atoms/chart/test.po.js +19 -0
- package/sdk/atoms/chart/test.po.js.map +1 -1
- package/sdk/atoms/chart/thresholds-summary-test.po.js +19 -0
- package/sdk/atoms/chart/thresholds-summary-test.po.js.map +1 -1
- package/sdk/atoms/chart/time-frame-bar-test.po.js +19 -0
- package/sdk/atoms/chart/time-frame-bar-test.po.js.map +1 -1
- package/sdk/atoms/legend/legend-series.atom.js +19 -0
- package/sdk/atoms/legend/legend-series.atom.js.map +1 -1
- package/sdk/atoms/legend/legend.atom.js +19 -0
- package/sdk/atoms/legend/legend.atom.js.map +1 -1
- package/sdk/atoms/legend/rich-legend-tile.atom.js +19 -0
- package/sdk/atoms/legend/rich-legend-tile.atom.js.map +1 -1
- package/sdk/locale/messages.en.xlf +53 -53
- package/LICENSE +0 -201
|
@@ -50,6 +50,7 @@ import moment, { duration } from 'moment/moment';
|
|
|
50
50
|
import { brushX } from 'd3-brush';
|
|
51
51
|
import findIndex from 'lodash/findIndex';
|
|
52
52
|
|
|
53
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
53
54
|
class ChartTooltipComponent {
|
|
54
55
|
}
|
|
55
56
|
ChartTooltipComponent.decorators = [
|
|
@@ -73,6 +74,7 @@ ChartTooltipComponent.propDecorators = {
|
|
|
73
74
|
template: [{ type: Input }]
|
|
74
75
|
};
|
|
75
76
|
|
|
77
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
76
78
|
/** @ignore */
|
|
77
79
|
class ChartTooltipDirective {
|
|
78
80
|
constructor(overlay, overlayPositionBuilder, scrollStrategyOptions, elementRef) {
|
|
@@ -144,6 +146,25 @@ ChartTooltipDirective.propDecorators = {
|
|
|
144
146
|
positions: [{ type: Input }]
|
|
145
147
|
};
|
|
146
148
|
|
|
149
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
150
|
+
//
|
|
151
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
152
|
+
// of this software and associated documentation files (the "Software"), to
|
|
153
|
+
// deal in the Software without restriction, including without limitation the
|
|
154
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
155
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
156
|
+
// furnished to do so, subject to the following conditions:
|
|
157
|
+
//
|
|
158
|
+
// The above copyright notice and this permission notice shall be included in
|
|
159
|
+
// all copies or substantial portions of the Software.
|
|
160
|
+
//
|
|
161
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
162
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
163
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
164
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
165
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
166
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
167
|
+
// THE SOFTWARE.
|
|
147
168
|
var RenderState;
|
|
148
169
|
(function (RenderState) {
|
|
149
170
|
RenderState["hidden"] = "hidden";
|
|
@@ -159,6 +180,7 @@ var RenderLayerName;
|
|
|
159
180
|
RenderLayerName["foreground"] = "foreground";
|
|
160
181
|
})(RenderLayerName || (RenderLayerName = {}));
|
|
161
182
|
|
|
183
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
162
184
|
const MOUSE_ACTIVE_EVENT = "mouse_active";
|
|
163
185
|
const INTERACTION_VALUES_ACTIVE_EVENT = "interaction_values_active";
|
|
164
186
|
const INTERACTION_VALUES_EVENT = "interaction_values";
|
|
@@ -208,6 +230,25 @@ const DATA_POINT_INTERACTION_RESET = -2;
|
|
|
208
230
|
/** Use this class to prevent DOM elements from triggering mouse-interactive-area events */
|
|
209
231
|
const IGNORE_INTERACTION_CLASS = "ignore-interaction";
|
|
210
232
|
|
|
233
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
234
|
+
//
|
|
235
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
236
|
+
// of this software and associated documentation files (the "Software"), to
|
|
237
|
+
// deal in the Software without restriction, including without limitation the
|
|
238
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
239
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
240
|
+
// furnished to do so, subject to the following conditions:
|
|
241
|
+
//
|
|
242
|
+
// The above copyright notice and this permission notice shall be included in
|
|
243
|
+
// all copies or substantial portions of the Software.
|
|
244
|
+
//
|
|
245
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
246
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
247
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
248
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
249
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
250
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
251
|
+
// THE SOFTWARE.
|
|
211
252
|
/** Domain for series with empty or null data */
|
|
212
253
|
const EMPTY_CONTINUOUS_DOMAIN = [0, 0];
|
|
213
254
|
/** A reasonable non-data-driven domain for charts */
|
|
@@ -223,6 +264,7 @@ function hasInnerScale(scale) {
|
|
|
223
264
|
return typeof scale.innerScale !== "undefined";
|
|
224
265
|
}
|
|
225
266
|
|
|
267
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
226
268
|
/**
|
|
227
269
|
* The abstract base class for chart renderers with some limited default functionality
|
|
228
270
|
*/
|
|
@@ -382,6 +424,25 @@ Renderer.DEFAULT_CONFIG = {
|
|
|
382
424
|
},
|
|
383
425
|
};
|
|
384
426
|
|
|
427
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
428
|
+
//
|
|
429
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
430
|
+
// of this software and associated documentation files (the "Software"), to
|
|
431
|
+
// deal in the Software without restriction, including without limitation the
|
|
432
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
433
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
434
|
+
// furnished to do so, subject to the following conditions:
|
|
435
|
+
//
|
|
436
|
+
// The above copyright notice and this permission notice shall be included in
|
|
437
|
+
// all copies or substantial portions of the Software.
|
|
438
|
+
//
|
|
439
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
440
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
441
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
442
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
443
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
444
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
445
|
+
// THE SOFTWARE.
|
|
385
446
|
/** Mouse interaction types */
|
|
386
447
|
var InteractionType;
|
|
387
448
|
(function (InteractionType) {
|
|
@@ -401,6 +462,7 @@ var InteractionType;
|
|
|
401
462
|
InteractionType["MouseUp"] = "mouseup";
|
|
402
463
|
})(InteractionType || (InteractionType = {}));
|
|
403
464
|
|
|
465
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
404
466
|
/**
|
|
405
467
|
* Default configuration for Radial Renderer
|
|
406
468
|
*/
|
|
@@ -558,6 +620,25 @@ class RadialRenderer extends Renderer {
|
|
|
558
620
|
}
|
|
559
621
|
}
|
|
560
622
|
|
|
623
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
624
|
+
//
|
|
625
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
626
|
+
// of this software and associated documentation files (the "Software"), to
|
|
627
|
+
// deal in the Software without restriction, including without limitation the
|
|
628
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
629
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
630
|
+
// furnished to do so, subject to the following conditions:
|
|
631
|
+
//
|
|
632
|
+
// The above copyright notice and this permission notice shall be included in
|
|
633
|
+
// all copies or substantial portions of the Software.
|
|
634
|
+
//
|
|
635
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
636
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
637
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
638
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
639
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
640
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
641
|
+
// THE SOFTWARE.
|
|
561
642
|
class ChartPlugin {
|
|
562
643
|
constructor() { }
|
|
563
644
|
initialize() { }
|
|
@@ -566,6 +647,7 @@ class ChartPlugin {
|
|
|
566
647
|
destroy() { }
|
|
567
648
|
}
|
|
568
649
|
|
|
650
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
569
651
|
/**
|
|
570
652
|
* This plugin calculates new size and position for content inside donut chart
|
|
571
653
|
*/
|
|
@@ -615,6 +697,7 @@ class ChartDonutContentPlugin extends ChartPlugin {
|
|
|
615
697
|
}
|
|
616
698
|
}
|
|
617
699
|
|
|
700
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
618
701
|
class ChartDonutContentComponent {
|
|
619
702
|
ngOnChanges(changes) {
|
|
620
703
|
var _a;
|
|
@@ -644,6 +727,7 @@ ChartDonutContentComponent.propDecorators = {
|
|
|
644
727
|
plugin: [{ type: Input }]
|
|
645
728
|
};
|
|
646
729
|
|
|
730
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
647
731
|
/** How far away from the data point position will the tooltip be positioned */
|
|
648
732
|
const TOOLTIP_POSITION_OFFSET = 10;
|
|
649
733
|
/** @ignore
|
|
@@ -818,6 +902,7 @@ class ChartTooltipsPlugin extends ChartPlugin {
|
|
|
818
902
|
}
|
|
819
903
|
}
|
|
820
904
|
|
|
905
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
821
906
|
class ChartTooltipsComponent {
|
|
822
907
|
constructor(changeDetector) {
|
|
823
908
|
this.changeDetector = changeDetector;
|
|
@@ -981,6 +1066,7 @@ ChartTooltipsComponent.propDecorators = {
|
|
|
981
1066
|
tooltips: [{ type: ViewChildren, args: [ChartTooltipDirective,] }]
|
|
982
1067
|
};
|
|
983
1068
|
|
|
1069
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
984
1070
|
/**
|
|
985
1071
|
* This plugin listens for the INTERACTION_DATA_POINTS_EVENT by default and transforms received data into
|
|
986
1072
|
* popover inputs. The listened event can be configured using the 'config.eventStreamId' property.
|
|
@@ -1090,6 +1176,7 @@ class ChartPopoverPlugin extends ChartPlugin {
|
|
|
1090
1176
|
}
|
|
1091
1177
|
}
|
|
1092
1178
|
|
|
1179
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1093
1180
|
class ChartPopoverComponent {
|
|
1094
1181
|
constructor(changeDetector, element) {
|
|
1095
1182
|
this.changeDetector = changeDetector;
|
|
@@ -1148,6 +1235,7 @@ ChartPopoverComponent.propDecorators = {
|
|
|
1148
1235
|
popover: [{ type: ViewChild, args: [PopoverComponent,] }]
|
|
1149
1236
|
};
|
|
1150
1237
|
|
|
1238
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1151
1239
|
/** @ignore */
|
|
1152
1240
|
const SVG_PADDING = 3;
|
|
1153
1241
|
class ChartMarkerComponent {
|
|
@@ -1219,6 +1307,7 @@ ChartMarkerComponent.propDecorators = {
|
|
|
1219
1307
|
svgContent: [{ type: ViewChild, args: ["svgContent",] }]
|
|
1220
1308
|
};
|
|
1221
1309
|
|
|
1310
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1222
1311
|
class EventBus {
|
|
1223
1312
|
constructor() {
|
|
1224
1313
|
this.streams = {};
|
|
@@ -1236,6 +1325,7 @@ class EventBus {
|
|
|
1236
1325
|
}
|
|
1237
1326
|
}
|
|
1238
1327
|
|
|
1328
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1239
1329
|
/**
|
|
1240
1330
|
* @ignore
|
|
1241
1331
|
*
|
|
@@ -1357,6 +1447,7 @@ class ChartCollection {
|
|
|
1357
1447
|
}
|
|
1358
1448
|
}
|
|
1359
1449
|
|
|
1450
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1360
1451
|
/**
|
|
1361
1452
|
* This service registers collections of charts identified by given id. It is used primarily by the ChartCollectionId directive.
|
|
1362
1453
|
*/
|
|
@@ -1377,6 +1468,7 @@ ChartCollectionService.decorators = [
|
|
|
1377
1468
|
{ type: Injectable }
|
|
1378
1469
|
];
|
|
1379
1470
|
|
|
1471
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1380
1472
|
/**
|
|
1381
1473
|
* This directive represents a grouping behavior that is separated from chart components. Any chart component
|
|
1382
1474
|
* registering the CHART_COMPONENT provider can be injected into this.
|
|
@@ -1407,6 +1499,7 @@ ChartCollectionIdDirective.propDecorators = {
|
|
|
1407
1499
|
collectionId: [{ type: Input, args: ["nuiChartCollectionId",] }]
|
|
1408
1500
|
};
|
|
1409
1501
|
|
|
1502
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1410
1503
|
class ChartComponent {
|
|
1411
1504
|
constructor(elRef, ngZone, cd) {
|
|
1412
1505
|
this.elRef = elRef;
|
|
@@ -1487,12 +1580,32 @@ ChartComponent.propDecorators = {
|
|
|
1487
1580
|
chart: [{ type: Input }]
|
|
1488
1581
|
};
|
|
1489
1582
|
|
|
1583
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1584
|
+
//
|
|
1585
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1586
|
+
// of this software and associated documentation files (the "Software"), to
|
|
1587
|
+
// deal in the Software without restriction, including without limitation the
|
|
1588
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
1589
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
1590
|
+
// furnished to do so, subject to the following conditions:
|
|
1591
|
+
//
|
|
1592
|
+
// The above copyright notice and this permission notice shall be included in
|
|
1593
|
+
// all copies or substantial portions of the Software.
|
|
1594
|
+
//
|
|
1595
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1596
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1597
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1598
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1599
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1600
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1601
|
+
// THE SOFTWARE.
|
|
1490
1602
|
var LegendOrientation;
|
|
1491
1603
|
(function (LegendOrientation) {
|
|
1492
1604
|
LegendOrientation["vertical"] = "vertical";
|
|
1493
1605
|
LegendOrientation["horizontal"] = "horizontal";
|
|
1494
1606
|
})(LegendOrientation || (LegendOrientation = {}));
|
|
1495
1607
|
|
|
1608
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1496
1609
|
class LegendComponent {
|
|
1497
1610
|
constructor() {
|
|
1498
1611
|
/**
|
|
@@ -1539,6 +1652,7 @@ LegendComponent.propDecorators = {
|
|
|
1539
1652
|
seriesUnitLabel: [{ type: Input }]
|
|
1540
1653
|
};
|
|
1541
1654
|
|
|
1655
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1542
1656
|
/** @ignore */
|
|
1543
1657
|
const LEGEND_SERIES_CLASS_NAME = "nui-legend-series";
|
|
1544
1658
|
class LegendSeriesComponent {
|
|
@@ -1657,6 +1771,7 @@ LegendSeriesComponent.propDecorators = {
|
|
|
1657
1771
|
onClick: [{ type: HostListener, args: ["click",] }]
|
|
1658
1772
|
};
|
|
1659
1773
|
|
|
1774
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1660
1775
|
class BasicLegendTileComponent {
|
|
1661
1776
|
}
|
|
1662
1777
|
BasicLegendTileComponent.decorators = [
|
|
@@ -1668,6 +1783,7 @@ BasicLegendTileComponent.decorators = [
|
|
|
1668
1783
|
},] }
|
|
1669
1784
|
];
|
|
1670
1785
|
|
|
1786
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1671
1787
|
class RichLegendTileComponent {
|
|
1672
1788
|
constructor(legendSeries, legend, changeDetector) {
|
|
1673
1789
|
this.legendSeries = legendSeries;
|
|
@@ -1716,6 +1832,7 @@ RichLegendTileComponent.propDecorators = {
|
|
|
1716
1832
|
color: [{ type: Input }]
|
|
1717
1833
|
};
|
|
1718
1834
|
|
|
1835
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1719
1836
|
function getColorValueByName(colorVariable) {
|
|
1720
1837
|
if (!startsWith(colorVariable, "var(")) {
|
|
1721
1838
|
return colorVariable;
|
|
@@ -1724,6 +1841,25 @@ function getColorValueByName(colorVariable) {
|
|
|
1724
1841
|
return getComputedStyle(document.body).getPropertyValue(colorName);
|
|
1725
1842
|
}
|
|
1726
1843
|
|
|
1844
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1845
|
+
//
|
|
1846
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1847
|
+
// of this software and associated documentation files (the "Software"), to
|
|
1848
|
+
// deal in the Software without restriction, including without limitation the
|
|
1849
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
1850
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
1851
|
+
// furnished to do so, subject to the following conditions:
|
|
1852
|
+
//
|
|
1853
|
+
// The above copyright notice and this permission notice shall be included in
|
|
1854
|
+
// all copies or substantial portions of the Software.
|
|
1855
|
+
//
|
|
1856
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1857
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1858
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1859
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1860
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1861
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1862
|
+
// THE SOFTWARE.
|
|
1727
1863
|
/**
|
|
1728
1864
|
* This color provider processes values provided by the source provider using the given function.
|
|
1729
1865
|
* Examples would be darken, lighten, reduce opacity, etc.
|
|
@@ -1751,6 +1887,25 @@ class ProcessedColorProvider {
|
|
|
1751
1887
|
}
|
|
1752
1888
|
}
|
|
1753
1889
|
|
|
1890
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1891
|
+
//
|
|
1892
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1893
|
+
// of this software and associated documentation files (the "Software"), to
|
|
1894
|
+
// deal in the Software without restriction, including without limitation the
|
|
1895
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
1896
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
1897
|
+
// furnished to do so, subject to the following conditions:
|
|
1898
|
+
//
|
|
1899
|
+
// The above copyright notice and this permission notice shall be included in
|
|
1900
|
+
// all copies or substantial portions of the Software.
|
|
1901
|
+
//
|
|
1902
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1903
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1904
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1905
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1906
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1907
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1908
|
+
// THE SOFTWARE.
|
|
1754
1909
|
/**
|
|
1755
1910
|
* This class matches the provided instances of type <T> to given series.
|
|
1756
1911
|
* It keeps track of already given instances to given entities to avoid conflicts.
|
|
@@ -1775,6 +1930,7 @@ class SequentialValueProvider {
|
|
|
1775
1930
|
}
|
|
1776
1931
|
}
|
|
1777
1932
|
|
|
1933
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1778
1934
|
/**
|
|
1779
1935
|
* This class matches the provided colors to given series.
|
|
1780
1936
|
* It keeps track of already given colors to given entities to avoid conflicts.
|
|
@@ -1786,6 +1942,7 @@ class SequentialColorProvider extends SequentialValueProvider {
|
|
|
1786
1942
|
}
|
|
1787
1943
|
}
|
|
1788
1944
|
|
|
1945
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1789
1946
|
/** @ignore */
|
|
1790
1947
|
const rc = 0.2126;
|
|
1791
1948
|
/** @ignore */
|
|
@@ -1851,6 +2008,7 @@ class TextColorProvider extends ProcessedColorProvider {
|
|
|
1851
2008
|
}
|
|
1852
2009
|
}
|
|
1853
2010
|
|
|
2011
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1854
2012
|
class ChartPalette {
|
|
1855
2013
|
constructor(colors, options = { backgroundOpacity: 0.15 }) {
|
|
1856
2014
|
if (isArray(colors)) {
|
|
@@ -1881,6 +2039,7 @@ class ChartPalette {
|
|
|
1881
2039
|
}
|
|
1882
2040
|
}
|
|
1883
2041
|
|
|
2042
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1884
2043
|
/**
|
|
1885
2044
|
* This class creates a ChartMarker based on provided portion of svg markup
|
|
1886
2045
|
*/
|
|
@@ -1898,6 +2057,7 @@ class SvgMarker {
|
|
|
1898
2057
|
}
|
|
1899
2058
|
}
|
|
1900
2059
|
|
|
2060
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
1901
2061
|
/** Default single-shade color sequence for charts */
|
|
1902
2062
|
const CHART_PALETTE_CS1 = [
|
|
1903
2063
|
"var(--nui-color-chart-one)",
|
|
@@ -2026,6 +2186,7 @@ const CHART_MARKERS = [
|
|
|
2026
2186
|
...emptyShapes.map(ɵ2$1),
|
|
2027
2187
|
].map(ɵ0$1);
|
|
2028
2188
|
|
|
2189
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2029
2190
|
/**
|
|
2030
2191
|
* This class matches the provided markers to given series.
|
|
2031
2192
|
* It keeps track of already given markers to given entities to avoid conflicts.
|
|
@@ -2037,6 +2198,7 @@ class SequentialChartMarkerProvider extends SequentialValueProvider {
|
|
|
2037
2198
|
}
|
|
2038
2199
|
}
|
|
2039
2200
|
|
|
2201
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2040
2202
|
function defaultColorProvider() {
|
|
2041
2203
|
return new SequentialColorProvider(CHART_PALETTE_CS1);
|
|
2042
2204
|
}
|
|
@@ -2047,6 +2209,7 @@ function defaultMarkerProvider() {
|
|
|
2047
2209
|
return new SequentialChartMarkerProvider(CHART_MARKERS);
|
|
2048
2210
|
}
|
|
2049
2211
|
|
|
2212
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2050
2213
|
class AreaAccessors {
|
|
2051
2214
|
constructor(colorProvider = defaultColorProvider(), markerProvider = defaultMarkerProvider()) {
|
|
2052
2215
|
this.colorProvider = colorProvider;
|
|
@@ -2070,10 +2233,30 @@ class AreaAccessors {
|
|
|
2070
2233
|
}
|
|
2071
2234
|
}
|
|
2072
2235
|
|
|
2236
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2237
|
+
//
|
|
2238
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2239
|
+
// of this software and associated documentation files (the "Software"), to
|
|
2240
|
+
// deal in the Software without restriction, including without limitation the
|
|
2241
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
2242
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
2243
|
+
// furnished to do so, subject to the following conditions:
|
|
2244
|
+
//
|
|
2245
|
+
// The above copyright notice and this permission notice shall be included in
|
|
2246
|
+
// all copies or substantial portions of the Software.
|
|
2247
|
+
//
|
|
2248
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2249
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2250
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2251
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2252
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2253
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2254
|
+
// THE SOFTWARE.
|
|
2073
2255
|
class RectangleAccessors {
|
|
2074
2256
|
constructor() { }
|
|
2075
2257
|
}
|
|
2076
2258
|
|
|
2259
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2077
2260
|
class BarAccessors extends RectangleAccessors {
|
|
2078
2261
|
constructor(colorProvider = defaultColorProvider(), markerProvider = defaultMarkerProvider()) {
|
|
2079
2262
|
super();
|
|
@@ -2137,6 +2320,7 @@ class BarAccessors extends RectangleAccessors {
|
|
|
2137
2320
|
}
|
|
2138
2321
|
}
|
|
2139
2322
|
|
|
2323
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2140
2324
|
class HorizontalBarAccessors extends BarAccessors {
|
|
2141
2325
|
constructor(colorProvider, markerProvider) {
|
|
2142
2326
|
super(colorProvider, markerProvider);
|
|
@@ -2146,6 +2330,25 @@ class HorizontalBarAccessors extends BarAccessors {
|
|
|
2146
2330
|
}
|
|
2147
2331
|
}
|
|
2148
2332
|
|
|
2333
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2334
|
+
//
|
|
2335
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2336
|
+
// of this software and associated documentation files (the "Software"), to
|
|
2337
|
+
// deal in the Software without restriction, including without limitation the
|
|
2338
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
2339
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
2340
|
+
// furnished to do so, subject to the following conditions:
|
|
2341
|
+
//
|
|
2342
|
+
// The above copyright notice and this permission notice shall be included in
|
|
2343
|
+
// all copies or substantial portions of the Software.
|
|
2344
|
+
//
|
|
2345
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2346
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2347
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2348
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2349
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2350
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2351
|
+
// THE SOFTWARE.
|
|
2149
2352
|
class StatusAccessors {
|
|
2150
2353
|
constructor(barAccessors) {
|
|
2151
2354
|
this.barAccessors = barAccessors;
|
|
@@ -2161,6 +2364,7 @@ class StatusAccessors {
|
|
|
2161
2364
|
StatusAccessors.STATUS_CATEGORY = "status";
|
|
2162
2365
|
StatusAccessors.STATUS_DOMAIN = [StatusAccessors.STATUS_CATEGORY];
|
|
2163
2366
|
|
|
2367
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2164
2368
|
function statusAccessors(colorProvider, markerProvider) {
|
|
2165
2369
|
const accessors = new StatusAccessors(new HorizontalBarAccessors(colorProvider, markerProvider));
|
|
2166
2370
|
accessors.data.color = (d, i, s, ds) => colorProvider.get(accessors.data.status(d, i, s, ds));
|
|
@@ -2168,9 +2372,29 @@ function statusAccessors(colorProvider, markerProvider) {
|
|
|
2168
2372
|
return accessors;
|
|
2169
2373
|
}
|
|
2170
2374
|
|
|
2375
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2376
|
+
//
|
|
2377
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2378
|
+
// of this software and associated documentation files (the "Software"), to
|
|
2379
|
+
// deal in the Software without restriction, including without limitation the
|
|
2380
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
2381
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
2382
|
+
// furnished to do so, subject to the following conditions:
|
|
2383
|
+
//
|
|
2384
|
+
// The above copyright notice and this permission notice shall be included in
|
|
2385
|
+
// all copies or substantial portions of the Software.
|
|
2386
|
+
//
|
|
2387
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2388
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2389
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2390
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2391
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2392
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2393
|
+
// THE SOFTWARE.
|
|
2171
2394
|
/** The center position within a band on a band scale */
|
|
2172
2395
|
const BAND_CENTER = 0.5;
|
|
2173
2396
|
|
|
2397
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2174
2398
|
/**
|
|
2175
2399
|
* Apart from just calling scale.convert, this method can also handle multilevel band scales that return arrays of values
|
|
2176
2400
|
*
|
|
@@ -2198,6 +2422,7 @@ function convert(scale, value, position = BAND_CENTER, levels = Number.MAX_VALUE
|
|
|
2198
2422
|
convert(bandScale.innerScale, values.slice(1), position, levels - 1));
|
|
2199
2423
|
}
|
|
2200
2424
|
|
|
2425
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2201
2426
|
function invert(scale, coordinate) {
|
|
2202
2427
|
if (!scale) {
|
|
2203
2428
|
return 0;
|
|
@@ -2217,6 +2442,7 @@ function invert(scale, coordinate) {
|
|
|
2217
2442
|
return [value, val];
|
|
2218
2443
|
}
|
|
2219
2444
|
|
|
2445
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2220
2446
|
class UtilityService {
|
|
2221
2447
|
static getValueAccessor(accessor, dataPoint) {
|
|
2222
2448
|
const value = accessor(dataPoint, 0);
|
|
@@ -2415,6 +2641,7 @@ class UtilityService {
|
|
|
2415
2641
|
}
|
|
2416
2642
|
}
|
|
2417
2643
|
|
|
2644
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2418
2645
|
class XYRenderer extends Renderer {
|
|
2419
2646
|
// This is empty to allow this renderer to be used for series that represent metadata that may be shown in the legend but not visualized on the chart.
|
|
2420
2647
|
/** See {@link Renderer#draw} */
|
|
@@ -2447,6 +2674,7 @@ class XYRenderer extends Renderer {
|
|
|
2447
2674
|
}
|
|
2448
2675
|
}
|
|
2449
2676
|
|
|
2677
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2450
2678
|
/**
|
|
2451
2679
|
* Renderer that is able to draw bar chart
|
|
2452
2680
|
*/
|
|
@@ -2681,6 +2909,7 @@ BarRenderer.MIN_BAR_SIZE_FOR_ICON = 10; // Min bar size to render an icon inside
|
|
|
2681
2909
|
BarRenderer.MIN_BAR_THICKNESS = 2;
|
|
2682
2910
|
BarRenderer.BAR_RECT_CLASS = "bar";
|
|
2683
2911
|
|
|
2912
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2684
2913
|
/** Renderer configuration for the thresholds on a chart */
|
|
2685
2914
|
const THRESHOLDS_MAIN_CHART_RENDERER_CONFIG = {
|
|
2686
2915
|
stateStyles: {
|
|
@@ -2727,6 +2956,25 @@ const DEFAULT_MARKER_INTERACTION_CONFIG = {
|
|
|
2727
2956
|
*/
|
|
2728
2957
|
const GAUGE_THRESHOLD_MARKER_CLASS = "gauge-threshold-marker";
|
|
2729
2958
|
|
|
2959
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2960
|
+
//
|
|
2961
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2962
|
+
// of this software and associated documentation files (the "Software"), to
|
|
2963
|
+
// deal in the Software without restriction, including without limitation the
|
|
2964
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
2965
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
2966
|
+
// furnished to do so, subject to the following conditions:
|
|
2967
|
+
//
|
|
2968
|
+
// The above copyright notice and this permission notice shall be included in
|
|
2969
|
+
// all copies or substantial portions of the Software.
|
|
2970
|
+
//
|
|
2971
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2972
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2973
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2974
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2975
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2976
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2977
|
+
// THE SOFTWARE.
|
|
2730
2978
|
class XYAccessors {
|
|
2731
2979
|
constructor() {
|
|
2732
2980
|
/** The default data accessors for using with renderers deriving from XYRenderer */
|
|
@@ -2737,6 +2985,7 @@ class XYAccessors {
|
|
|
2737
2985
|
}
|
|
2738
2986
|
}
|
|
2739
2987
|
|
|
2988
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2740
2989
|
/**
|
|
2741
2990
|
* Accessor class supporting the {@link LineRenderer}, that defines required inputs acquired from data points.
|
|
2742
2991
|
* This class includes default behavior for all required fields. It's using properties of the same name for data accessors.
|
|
@@ -2759,6 +3008,25 @@ class LineAccessors extends XYAccessors {
|
|
|
2759
3008
|
}
|
|
2760
3009
|
}
|
|
2761
3010
|
|
|
3011
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3012
|
+
//
|
|
3013
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3014
|
+
// of this software and associated documentation files (the "Software"), to
|
|
3015
|
+
// deal in the Software without restriction, including without limitation the
|
|
3016
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
3017
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
3018
|
+
// furnished to do so, subject to the following conditions:
|
|
3019
|
+
//
|
|
3020
|
+
// The above copyright notice and this permission notice shall be included in
|
|
3021
|
+
// all copies or substantial portions of the Software.
|
|
3022
|
+
//
|
|
3023
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3024
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3025
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3026
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3027
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3028
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3029
|
+
// THE SOFTWARE.
|
|
2762
3030
|
/**
|
|
2763
3031
|
* Simple utility function that checks if given 'px' value is within the interval of the range of given scale
|
|
2764
3032
|
*
|
|
@@ -2772,6 +3040,7 @@ function isInRange(scale, px) {
|
|
|
2772
3040
|
return px >= min && px <= max;
|
|
2773
3041
|
}
|
|
2774
3042
|
|
|
3043
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2775
3044
|
class MarkerUtils {
|
|
2776
3045
|
/**
|
|
2777
3046
|
* This method impersonates marker related logic used in various renderers
|
|
@@ -2895,6 +3164,7 @@ MarkerUtils.DEFAULT_MARKER_CONTAINER_CLASS = "marker";
|
|
|
2895
3164
|
/** The class used for the marker's svg path */
|
|
2896
3165
|
MarkerUtils.MARKER_PATH_CLASS = "marker-path";
|
|
2897
3166
|
|
|
3167
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2898
3168
|
/**
|
|
2899
3169
|
* Renderer that is able to draw line chart
|
|
2900
3170
|
*/
|
|
@@ -3085,6 +3355,25 @@ class LineRenderer extends XYRenderer {
|
|
|
3085
3355
|
LineRenderer.UNCLIPPED_DATA_LAYER_NAME = "unclipped-data";
|
|
3086
3356
|
LineRenderer.LINE_CAP_CLASS_NAME = "nui-chart-line-cap";
|
|
3087
3357
|
|
|
3358
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3359
|
+
//
|
|
3360
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3361
|
+
// of this software and associated documentation files (the "Software"), to
|
|
3362
|
+
// deal in the Software without restriction, including without limitation the
|
|
3363
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
3364
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
3365
|
+
// furnished to do so, subject to the following conditions:
|
|
3366
|
+
//
|
|
3367
|
+
// The above copyright notice and this permission notice shall be included in
|
|
3368
|
+
// all copies or substantial portions of the Software.
|
|
3369
|
+
//
|
|
3370
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3371
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3372
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3373
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3374
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3375
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3376
|
+
// THE SOFTWARE.
|
|
3088
3377
|
/** Common CSS filter IDs */
|
|
3089
3378
|
var CssFilterId;
|
|
3090
3379
|
(function (CssFilterId) {
|
|
@@ -3100,6 +3389,7 @@ const GRAYSCALE_COLOR_MATRIX = `
|
|
|
3100
3389
|
0 0 0 1 0
|
|
3101
3390
|
`;
|
|
3102
3391
|
|
|
3392
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3103
3393
|
/** Standard definition for side indicator series and data accessors */
|
|
3104
3394
|
class SideIndicatorAccessors {
|
|
3105
3395
|
constructor() {
|
|
@@ -3175,6 +3465,25 @@ class SideIndicatorRenderer extends XYRenderer {
|
|
|
3175
3465
|
/** @deprecated As of Nova v9, use RenderLayerName.unclippedData enum value instead. Removal: NUI-5753 */
|
|
3176
3466
|
SideIndicatorRenderer.SIDE_INDICATORS_LAYER = "side-indicators";
|
|
3177
3467
|
|
|
3468
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3469
|
+
//
|
|
3470
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3471
|
+
// of this software and associated documentation files (the "Software"), to
|
|
3472
|
+
// deal in the Software without restriction, including without limitation the
|
|
3473
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
3474
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
3475
|
+
// furnished to do so, subject to the following conditions:
|
|
3476
|
+
//
|
|
3477
|
+
// The above copyright notice and this permission notice shall be included in
|
|
3478
|
+
// all copies or substantial portions of the Software.
|
|
3479
|
+
//
|
|
3480
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3481
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3482
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3483
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3484
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3485
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3486
|
+
// THE SOFTWARE.
|
|
3178
3487
|
/**
|
|
3179
3488
|
* Used for specifying the start or end boundary of a zone
|
|
3180
3489
|
*/
|
|
@@ -3184,6 +3493,7 @@ var ZoneBoundary;
|
|
|
3184
3493
|
ZoneBoundary["End"] = "end";
|
|
3185
3494
|
})(ZoneBoundary || (ZoneBoundary = {}));
|
|
3186
3495
|
|
|
3496
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3187
3497
|
/**
|
|
3188
3498
|
* This service provides functionality that facilitates the creation of thresholds related visual element on charts.
|
|
3189
3499
|
*/
|
|
@@ -3543,6 +3853,7 @@ ThresholdsService.ctorParameters = () => [
|
|
|
3543
3853
|
{ type: LoggerService }
|
|
3544
3854
|
];
|
|
3545
3855
|
|
|
3856
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3546
3857
|
class NuiChartsModule {
|
|
3547
3858
|
}
|
|
3548
3859
|
NuiChartsModule.decorators = [
|
|
@@ -3580,6 +3891,25 @@ NuiChartsModule.decorators = [
|
|
|
3580
3891
|
},] }
|
|
3581
3892
|
];
|
|
3582
3893
|
|
|
3894
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3895
|
+
//
|
|
3896
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3897
|
+
// of this software and associated documentation files (the "Software"), to
|
|
3898
|
+
// deal in the Software without restriction, including without limitation the
|
|
3899
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
3900
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
3901
|
+
// furnished to do so, subject to the following conditions:
|
|
3902
|
+
//
|
|
3903
|
+
// The above copyright notice and this permission notice shall be included in
|
|
3904
|
+
// all copies or substantial portions of the Software.
|
|
3905
|
+
//
|
|
3906
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3907
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3908
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3909
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3910
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3911
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3912
|
+
// THE SOFTWARE.
|
|
3583
3913
|
const GAUGE_QUANTITY_SERIES_ID = "quantity";
|
|
3584
3914
|
const GAUGE_REMAINDER_SERIES_ID = "remainder";
|
|
3585
3915
|
const GAUGE_THRESHOLD_MARKERS_SERIES_ID = "threshold-markers";
|
|
@@ -3644,6 +3974,7 @@ const LINEAR_GAUGE_LABEL_CLEARANCE_DEFAULTS = {
|
|
|
3644
3974
|
left: 25,
|
|
3645
3975
|
};
|
|
3646
3976
|
|
|
3977
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3647
3978
|
function domain(scale, theDomain) {
|
|
3648
3979
|
if (!theDomain || theDomain.length === 0) {
|
|
3649
3980
|
return;
|
|
@@ -3660,6 +3991,7 @@ function domain(scale, theDomain) {
|
|
|
3660
3991
|
domain(scaleWithInnerScale.innerScale, theDomain.slice(1));
|
|
3661
3992
|
}
|
|
3662
3993
|
|
|
3994
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3663
3995
|
/**
|
|
3664
3996
|
* @ignore
|
|
3665
3997
|
*
|
|
@@ -3742,6 +4074,7 @@ class DataManager {
|
|
|
3742
4074
|
}
|
|
3743
4075
|
}
|
|
3744
4076
|
|
|
4077
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3745
4078
|
/**
|
|
3746
4079
|
* @ignore
|
|
3747
4080
|
*
|
|
@@ -3966,6 +4299,7 @@ class RenderEngine {
|
|
|
3966
4299
|
}
|
|
3967
4300
|
}
|
|
3968
4301
|
|
|
4302
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3969
4303
|
/** @ignore */
|
|
3970
4304
|
class RenderEnginePlugin extends ChartPlugin {
|
|
3971
4305
|
constructor() {
|
|
@@ -4031,6 +4365,7 @@ class RenderEnginePlugin extends ChartPlugin {
|
|
|
4031
4365
|
}
|
|
4032
4366
|
}
|
|
4033
4367
|
|
|
4368
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4034
4369
|
class Chart {
|
|
4035
4370
|
constructor(grid, configuration) {
|
|
4036
4371
|
this.grid = grid;
|
|
@@ -4197,6 +4532,7 @@ class Chart {
|
|
|
4197
4532
|
}
|
|
4198
4533
|
}
|
|
4199
4534
|
|
|
4535
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4200
4536
|
/** Event types that can be emitted from a chart assist */
|
|
4201
4537
|
var ChartAssistEventType;
|
|
4202
4538
|
(function (ChartAssistEventType) {
|
|
@@ -4219,6 +4555,7 @@ class ChartAssistRenderStateData {
|
|
|
4219
4555
|
}
|
|
4220
4556
|
}
|
|
4221
4557
|
|
|
4558
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4222
4559
|
/**
|
|
4223
4560
|
* Helper class that helps to bootstrap a chart with legend, using data pre-processor.
|
|
4224
4561
|
* It will use the most common settings.
|
|
@@ -4544,6 +4881,25 @@ class LegendInteractionAssist {
|
|
|
4544
4881
|
}
|
|
4545
4882
|
}
|
|
4546
4883
|
|
|
4884
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4885
|
+
//
|
|
4886
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4887
|
+
// of this software and associated documentation files (the "Software"), to
|
|
4888
|
+
// deal in the Software without restriction, including without limitation the
|
|
4889
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
4890
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
4891
|
+
// furnished to do so, subject to the following conditions:
|
|
4892
|
+
//
|
|
4893
|
+
// The above copyright notice and this permission notice shall be included in
|
|
4894
|
+
// all copies or substantial portions of the Software.
|
|
4895
|
+
//
|
|
4896
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4897
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4898
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4899
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4900
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4901
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4902
|
+
// THE SOFTWARE.
|
|
4547
4903
|
class DimensionConfig {
|
|
4548
4904
|
constructor() {
|
|
4549
4905
|
this._width = 0;
|
|
@@ -4610,6 +4966,7 @@ class DimensionConfig {
|
|
|
4610
4966
|
}
|
|
4611
4967
|
}
|
|
4612
4968
|
|
|
4969
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4613
4970
|
/**
|
|
4614
4971
|
* Default handler for text overflow
|
|
4615
4972
|
*
|
|
@@ -4647,6 +5004,7 @@ function defaultTextOverflowHandler(textSelection, args) {
|
|
|
4647
5004
|
}
|
|
4648
5005
|
}
|
|
4649
5006
|
|
|
5007
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4650
5008
|
/** See {@link IAxisConfig} */
|
|
4651
5009
|
class AxisConfig {
|
|
4652
5010
|
constructor() {
|
|
@@ -4676,6 +5034,25 @@ class AxisConfig {
|
|
|
4676
5034
|
}
|
|
4677
5035
|
}
|
|
4678
5036
|
|
|
5037
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5038
|
+
//
|
|
5039
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5040
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5041
|
+
// deal in the Software without restriction, including without limitation the
|
|
5042
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
5043
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
5044
|
+
// furnished to do so, subject to the following conditions:
|
|
5045
|
+
//
|
|
5046
|
+
// The above copyright notice and this permission notice shall be included in
|
|
5047
|
+
// all copies or substantial portions of the Software.
|
|
5048
|
+
//
|
|
5049
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
5050
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
5051
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
5052
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
5053
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
5054
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
5055
|
+
// THE SOFTWARE.
|
|
4679
5056
|
/** @ignore */
|
|
4680
5057
|
class BorderConfig {
|
|
4681
5058
|
constructor(className) {
|
|
@@ -4684,6 +5061,7 @@ class BorderConfig {
|
|
|
4684
5061
|
}
|
|
4685
5062
|
}
|
|
4686
5063
|
|
|
5064
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4687
5065
|
/** See {@link IGridConfig} */
|
|
4688
5066
|
class GridConfig {
|
|
4689
5067
|
constructor() {
|
|
@@ -4714,6 +5092,7 @@ class GridConfig {
|
|
|
4714
5092
|
}
|
|
4715
5093
|
}
|
|
4716
5094
|
|
|
5095
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4717
5096
|
class XYGridConfig extends GridConfig {
|
|
4718
5097
|
constructor() {
|
|
4719
5098
|
super();
|
|
@@ -4754,6 +5133,7 @@ XYGridConfig.DEFAULT_PADDING = {
|
|
|
4754
5133
|
bottom: 5,
|
|
4755
5134
|
};
|
|
4756
5135
|
|
|
5136
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4757
5137
|
/**
|
|
4758
5138
|
* Assembles a linear-gauge-specific grid configuration
|
|
4759
5139
|
*
|
|
@@ -4786,6 +5166,7 @@ function linearGaugeGridConfig(mode, thickness = StandardLinearGaugeThickness.La
|
|
|
4786
5166
|
return gridConfig;
|
|
4787
5167
|
}
|
|
4788
5168
|
|
|
5169
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4789
5170
|
/**
|
|
4790
5171
|
* @ignore
|
|
4791
5172
|
*/
|
|
@@ -4897,6 +5278,7 @@ class MouseInteractiveArea {
|
|
|
4897
5278
|
}
|
|
4898
5279
|
MouseInteractiveArea.CONTAINER_CLASS = "mouse-interactive-area";
|
|
4899
5280
|
|
|
5281
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4900
5282
|
/**
|
|
4901
5283
|
* Merge given domains
|
|
4902
5284
|
*
|
|
@@ -4924,6 +5306,7 @@ function mergeDomains(domains, scale) {
|
|
|
4924
5306
|
});
|
|
4925
5307
|
}
|
|
4926
5308
|
|
|
5309
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4927
5310
|
/** @ignore */
|
|
4928
5311
|
function getFixedDomains(chartSeriesSet, scaleId) {
|
|
4929
5312
|
return chartSeriesSet.reduce((result, next) => {
|
|
@@ -4986,6 +5369,7 @@ const getAutomaticDomainWithIncludedInterval = (interval) => (chartSeriesSet, sc
|
|
|
4986
5369
|
];
|
|
4987
5370
|
};
|
|
4988
5371
|
|
|
5372
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
4989
5373
|
class Scale {
|
|
4990
5374
|
constructor(id) {
|
|
4991
5375
|
this.domainCalculator = getAutomaticDomain;
|
|
@@ -5040,6 +5424,7 @@ class Scale {
|
|
|
5040
5424
|
}
|
|
5041
5425
|
}
|
|
5042
5426
|
|
|
5427
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5043
5428
|
/**
|
|
5044
5429
|
* Nova wrapper around [D3's scaleLinear](https://d3indepth.com/scales/#scalelinear)
|
|
5045
5430
|
*/
|
|
@@ -5065,6 +5450,7 @@ class LinearScale extends Scale {
|
|
|
5065
5450
|
}
|
|
5066
5451
|
}
|
|
5067
5452
|
|
|
5453
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5068
5454
|
/**
|
|
5069
5455
|
* Nova wrapper around [D3's scaleBand](https://d3indepth.com/scales/#scaleband)
|
|
5070
5456
|
* A typical use case for a band scale is a bar chart
|
|
@@ -5198,6 +5584,7 @@ class BandScale extends Scale {
|
|
|
5198
5584
|
}
|
|
5199
5585
|
}
|
|
5200
5586
|
|
|
5587
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5201
5588
|
const getAutomaticDomainWithTicks = (config, axisGenerator, domainCalculator) => {
|
|
5202
5589
|
const result = (chartSeriesSet, scaleKey, scale) => {
|
|
5203
5590
|
const mergedDomains = domainCalculator(chartSeriesSet, scaleKey, scale);
|
|
@@ -5221,6 +5608,7 @@ const getAutomaticDomainWithTicks = (config, axisGenerator, domainCalculator) =>
|
|
|
5221
5608
|
return result;
|
|
5222
5609
|
};
|
|
5223
5610
|
|
|
5611
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5224
5612
|
/** @ignore */
|
|
5225
5613
|
const FALLBACK_FORMATTER = "tick";
|
|
5226
5614
|
/**
|
|
@@ -5354,6 +5742,7 @@ class InteractionLabelPlugin extends ChartPlugin {
|
|
|
5354
5742
|
}
|
|
5355
5743
|
InteractionLabelPlugin.LAYER_NAME = "interaction-label";
|
|
5356
5744
|
|
|
5745
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5357
5746
|
/**
|
|
5358
5747
|
* Draws a vertical line on the x-axis that corresponds to interaction position
|
|
5359
5748
|
*
|
|
@@ -5443,6 +5832,7 @@ class InteractionLinePlugin extends ChartPlugin {
|
|
|
5443
5832
|
}
|
|
5444
5833
|
InteractionLinePlugin.LAYER_NAME = "interaction-line";
|
|
5445
5834
|
|
|
5835
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5446
5836
|
/** @ignore */
|
|
5447
5837
|
class MouseInteractiveAreaPlugin extends ChartPlugin {
|
|
5448
5838
|
constructor(mouseInteractiveArea) {
|
|
@@ -5529,6 +5919,7 @@ class MouseInteractiveAreaPlugin extends ChartPlugin {
|
|
|
5529
5919
|
}
|
|
5530
5920
|
}
|
|
5531
5921
|
|
|
5922
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5532
5923
|
/** @ignore */
|
|
5533
5924
|
class Lasagna {
|
|
5534
5925
|
constructor(target, clipPath) {
|
|
@@ -5576,6 +5967,7 @@ class Lasagna {
|
|
|
5576
5967
|
Lasagna.CONTAINER_CLASS = "lasagna-container";
|
|
5577
5968
|
Lasagna.LAYER_CLASS = "lasagna-layer";
|
|
5578
5969
|
|
|
5970
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5579
5971
|
const borderMidpoint = 0.5;
|
|
5580
5972
|
/**
|
|
5581
5973
|
* @implements {IGrid}
|
|
@@ -5860,6 +6252,7 @@ Grid.RENDER_AREA_WIDTH_CORRECTION = 1;
|
|
|
5860
6252
|
/** @ignore Width correction needed to sync bottom border length and grid width to tick placement */
|
|
5861
6253
|
Grid.TICK_DIMENSION_CORRECTION = 1;
|
|
5862
6254
|
|
|
6255
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5863
6256
|
class XYGrid extends Grid {
|
|
5864
6257
|
constructor(config) {
|
|
5865
6258
|
super();
|
|
@@ -6594,6 +6987,25 @@ class XYGrid extends Grid {
|
|
|
6594
6987
|
}
|
|
6595
6988
|
XYGrid.TICK_LABEL_OVERFLOW_DEBOUNCE_INTERVAL = 200;
|
|
6596
6989
|
|
|
6990
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6991
|
+
//
|
|
6992
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6993
|
+
// of this software and associated documentation files (the "Software"), to
|
|
6994
|
+
// deal in the Software without restriction, including without limitation the
|
|
6995
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
6996
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
6997
|
+
// furnished to do so, subject to the following conditions:
|
|
6998
|
+
//
|
|
6999
|
+
// The above copyright notice and this permission notice shall be included in
|
|
7000
|
+
// all copies or substantial portions of the Software.
|
|
7001
|
+
//
|
|
7002
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7003
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7004
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7005
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7006
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7007
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
7008
|
+
// THE SOFTWARE.
|
|
6597
7009
|
/**
|
|
6598
7010
|
* Default gauge label formatter name
|
|
6599
7011
|
*/
|
|
@@ -6607,6 +7019,7 @@ const GAUGE_LABELS_CONTAINER_CLASS = "gauge-labels";
|
|
|
6607
7019
|
*/
|
|
6608
7020
|
const GAUGE_THRESHOLD_LABEL_CLASS = "threshold-label";
|
|
6609
7021
|
|
|
7022
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6610
7023
|
class DonutGaugeRenderingUtil {
|
|
6611
7024
|
static generateThresholdArcData(data) {
|
|
6612
7025
|
if (!data.length) {
|
|
@@ -6634,6 +7047,7 @@ class DonutGaugeRenderingUtil {
|
|
|
6634
7047
|
}
|
|
6635
7048
|
}
|
|
6636
7049
|
|
|
7050
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6637
7051
|
/**
|
|
6638
7052
|
* Default configuration for DonutGaugeThresholdsRenderer
|
|
6639
7053
|
*/
|
|
@@ -6690,6 +7104,7 @@ class DonutGaugeThresholdsRenderer extends RadialRenderer {
|
|
|
6690
7104
|
}
|
|
6691
7105
|
}
|
|
6692
7106
|
|
|
7107
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6693
7108
|
/**
|
|
6694
7109
|
* A chart plugin that handles the rendering of labels for a donut gauge
|
|
6695
7110
|
*/
|
|
@@ -6816,6 +7231,7 @@ class DonutGaugeLabelsPlugin extends ChartPlugin {
|
|
|
6816
7231
|
}
|
|
6817
7232
|
DonutGaugeLabelsPlugin.MARGIN_DEFAULT = 25;
|
|
6818
7233
|
|
|
7234
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6819
7235
|
/**
|
|
6820
7236
|
* A chart plugin that handles the rendering of labels for a donut gauge
|
|
6821
7237
|
*/
|
|
@@ -6957,6 +7373,7 @@ class LinearGaugeLabelsPlugin extends ChartPlugin {
|
|
|
6957
7373
|
}
|
|
6958
7374
|
}
|
|
6959
7375
|
|
|
7376
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6960
7377
|
class VerticalBarAccessors extends BarAccessors {
|
|
6961
7378
|
constructor(colorProvider, markerProvider) {
|
|
6962
7379
|
super(colorProvider, markerProvider);
|
|
@@ -6966,6 +7383,7 @@ class VerticalBarAccessors extends BarAccessors {
|
|
|
6966
7383
|
}
|
|
6967
7384
|
}
|
|
6968
7385
|
|
|
7386
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
6969
7387
|
/**
|
|
6970
7388
|
* Generates scales definition to be used with category+value based bar charts
|
|
6971
7389
|
*
|
|
@@ -6995,6 +7413,25 @@ function barScales(config, valueScale = new LinearScale()) {
|
|
|
6995
7413
|
return scales;
|
|
6996
7414
|
}
|
|
6997
7415
|
|
|
7416
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7417
|
+
//
|
|
7418
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7419
|
+
// of this software and associated documentation files (the "Software"), to
|
|
7420
|
+
// deal in the Software without restriction, including without limitation the
|
|
7421
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7422
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
7423
|
+
// furnished to do so, subject to the following conditions:
|
|
7424
|
+
//
|
|
7425
|
+
// The above copyright notice and this permission notice shall be included in
|
|
7426
|
+
// all copies or substantial portions of the Software.
|
|
7427
|
+
//
|
|
7428
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7429
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7430
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7431
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7432
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7433
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
7434
|
+
// THE SOFTWARE.
|
|
6998
7435
|
/**
|
|
6999
7436
|
* Convenience function for generating a standard renderer configuration for a linear gauge
|
|
7000
7437
|
*
|
|
@@ -7008,6 +7445,7 @@ function linearGaugeRendererConfig() {
|
|
|
7008
7445
|
};
|
|
7009
7446
|
}
|
|
7010
7447
|
|
|
7448
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7011
7449
|
/**
|
|
7012
7450
|
* Default configuration for Linear Gauge Thresholds Renderer
|
|
7013
7451
|
*/
|
|
@@ -7065,6 +7503,7 @@ class LinearGaugeThresholdsRenderer extends BarRenderer {
|
|
|
7065
7503
|
}
|
|
7066
7504
|
}
|
|
7067
7505
|
|
|
7506
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7068
7507
|
/** @ignore */
|
|
7069
7508
|
function gatherCategories(chartSeriesSet, type = "category") {
|
|
7070
7509
|
return chartSeriesSet.reduce((acc, chartSeries) => {
|
|
@@ -7077,6 +7516,7 @@ function gatherCategories(chartSeriesSet, type = "category") {
|
|
|
7077
7516
|
}, []);
|
|
7078
7517
|
}
|
|
7079
7518
|
|
|
7519
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7080
7520
|
function stackedPreprocessor(chartSeriesSet, isVisible) {
|
|
7081
7521
|
// No need to preprocess empty series.
|
|
7082
7522
|
if (chartSeriesSet.length === 0) {
|
|
@@ -7119,6 +7559,7 @@ function stack(chartSeriesSet) {
|
|
|
7119
7559
|
return stackedPreprocessor(chartSeriesSet, (series) => !this.isSeriesHidden(series.id));
|
|
7120
7560
|
}
|
|
7121
7561
|
|
|
7562
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7122
7563
|
class RadialAccessors {
|
|
7123
7564
|
constructor(colorProvider = defaultColorProvider()) {
|
|
7124
7565
|
this.colorProvider = colorProvider;
|
|
@@ -7131,6 +7572,25 @@ class RadialAccessors {
|
|
|
7131
7572
|
}
|
|
7132
7573
|
}
|
|
7133
7574
|
|
|
7575
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7576
|
+
//
|
|
7577
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7578
|
+
// of this software and associated documentation files (the "Software"), to
|
|
7579
|
+
// deal in the Software without restriction, including without limitation the
|
|
7580
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7581
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
7582
|
+
// furnished to do so, subject to the following conditions:
|
|
7583
|
+
//
|
|
7584
|
+
// The above copyright notice and this permission notice shall be included in
|
|
7585
|
+
// all copies or substantial portions of the Software.
|
|
7586
|
+
//
|
|
7587
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7588
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7589
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7590
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7591
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7592
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
7593
|
+
// THE SOFTWARE.
|
|
7134
7594
|
/**
|
|
7135
7595
|
* Convenience function for generating a standard renderer configuration for a donut gauge
|
|
7136
7596
|
*
|
|
@@ -7143,6 +7603,7 @@ function donutGaugeRendererConfig() {
|
|
|
7143
7603
|
};
|
|
7144
7604
|
}
|
|
7145
7605
|
|
|
7606
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7146
7607
|
/** @ignore */
|
|
7147
7608
|
class RadialGrid extends Grid {
|
|
7148
7609
|
constructor() {
|
|
@@ -7197,12 +7658,14 @@ class RadialGrid extends Grid {
|
|
|
7197
7658
|
}
|
|
7198
7659
|
}
|
|
7199
7660
|
|
|
7661
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7200
7662
|
function radialGrid() {
|
|
7201
7663
|
const gridConfig = new GridConfig();
|
|
7202
7664
|
gridConfig.interactive = false;
|
|
7203
7665
|
return new RadialGrid().config(gridConfig);
|
|
7204
7666
|
}
|
|
7205
7667
|
|
|
7668
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7206
7669
|
/**
|
|
7207
7670
|
* Pre-processing function for Pie and Donut chart renderers.
|
|
7208
7671
|
*
|
|
@@ -7231,6 +7694,7 @@ function radial(chartSeriesSet) {
|
|
|
7231
7694
|
return radialPreprocessor(chartSeriesSet, (series) => !this.isSeriesHidden(series.id));
|
|
7232
7695
|
}
|
|
7233
7696
|
|
|
7697
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7234
7698
|
/**
|
|
7235
7699
|
* Generates scales definition to be used with radial charts
|
|
7236
7700
|
*/
|
|
@@ -7240,6 +7704,7 @@ function radialScales() {
|
|
|
7240
7704
|
};
|
|
7241
7705
|
}
|
|
7242
7706
|
|
|
7707
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7243
7708
|
/**
|
|
7244
7709
|
* Convenience utility for simplifying gauge usage
|
|
7245
7710
|
*/
|
|
@@ -7658,6 +8123,31 @@ class GaugeUtil {
|
|
|
7658
8123
|
/** Value used for unifying the linear-style gauge visualization into a single bar stack */
|
|
7659
8124
|
GaugeUtil.DATA_CATEGORY = "gauge";
|
|
7660
8125
|
|
|
8126
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8127
|
+
|
|
8128
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8129
|
+
|
|
8130
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8131
|
+
|
|
8132
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8133
|
+
//
|
|
8134
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8135
|
+
// of this software and associated documentation files (the "Software"), to
|
|
8136
|
+
// deal in the Software without restriction, including without limitation the
|
|
8137
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8138
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8139
|
+
// furnished to do so, subject to the following conditions:
|
|
8140
|
+
//
|
|
8141
|
+
// The above copyright notice and this permission notice shall be included in
|
|
8142
|
+
// all copies or substantial portions of the Software.
|
|
8143
|
+
//
|
|
8144
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
8145
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
8146
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
8147
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
8148
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
8149
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
8150
|
+
// THE SOFTWARE.
|
|
7661
8151
|
/**
|
|
7662
8152
|
* This class matches the provided colors to given series.
|
|
7663
8153
|
* It keeps track of already given colors to given entities to avoid conflicts.
|
|
@@ -7672,6 +8162,25 @@ class MappedValueProvider {
|
|
|
7672
8162
|
reset() { }
|
|
7673
8163
|
}
|
|
7674
8164
|
|
|
8165
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8166
|
+
//
|
|
8167
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8168
|
+
// of this software and associated documentation files (the "Software"), to
|
|
8169
|
+
// deal in the Software without restriction, including without limitation the
|
|
8170
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8171
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8172
|
+
// furnished to do so, subject to the following conditions:
|
|
8173
|
+
//
|
|
8174
|
+
// The above copyright notice and this permission notice shall be included in
|
|
8175
|
+
// all copies or substantial portions of the Software.
|
|
8176
|
+
//
|
|
8177
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
8178
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
8179
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
8180
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
8181
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
8182
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
8183
|
+
// THE SOFTWARE.
|
|
7675
8184
|
/**
|
|
7676
8185
|
* This class creates a ChartMarker based on provided data for svg path
|
|
7677
8186
|
*/
|
|
@@ -7706,6 +8215,27 @@ class PathMarker {
|
|
|
7706
8215
|
}
|
|
7707
8216
|
}
|
|
7708
8217
|
|
|
8218
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8219
|
+
|
|
8220
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8221
|
+
//
|
|
8222
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8223
|
+
// of this software and associated documentation files (the "Software"), to
|
|
8224
|
+
// deal in the Software without restriction, including without limitation the
|
|
8225
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8226
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8227
|
+
// furnished to do so, subject to the following conditions:
|
|
8228
|
+
//
|
|
8229
|
+
// The above copyright notice and this permission notice shall be included in
|
|
8230
|
+
// all copies or substantial portions of the Software.
|
|
8231
|
+
//
|
|
8232
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
8233
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
8234
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
8235
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
8236
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
8237
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
8238
|
+
// THE SOFTWARE.
|
|
7709
8239
|
/**
|
|
7710
8240
|
* Domain calculator that adds given series to the domain calculation
|
|
7711
8241
|
*
|
|
@@ -7714,6 +8244,7 @@ class PathMarker {
|
|
|
7714
8244
|
*/
|
|
7715
8245
|
const domainWithAuxiliarySeries = (additionalSeriesFn, domainCalculator) => (chartSeriesSet, scaleId, scale) => domainCalculator(additionalSeriesFn().concat(chartSeriesSet), scaleId, scale);
|
|
7716
8246
|
|
|
8247
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7717
8248
|
/** @ignore */
|
|
7718
8249
|
class PointScale extends Scale {
|
|
7719
8250
|
constructor(id) {
|
|
@@ -7775,6 +8306,7 @@ class PointScale extends Scale {
|
|
|
7775
8306
|
}
|
|
7776
8307
|
}
|
|
7777
8308
|
|
|
8309
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7778
8310
|
const intlFormat = (date, options) => new Intl.DateTimeFormat(moment.locale(), options).format(date);
|
|
7779
8311
|
const ɵ0 = intlFormat;
|
|
7780
8312
|
const formatSecond = (d) => intlFormat(d, {
|
|
@@ -7796,6 +8328,7 @@ const datetimeFormatter = (date) => (timeMinute(date) < date
|
|
|
7796
8328
|
? formatMonth
|
|
7797
8329
|
: formatYear)(date);
|
|
7798
8330
|
|
|
8331
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7799
8332
|
/**
|
|
7800
8333
|
* Nova wrapper around [D3's scaleTime](https://d3indepth.com/scales/#scaletime)
|
|
7801
8334
|
*/
|
|
@@ -7825,6 +8358,7 @@ class TimeScale extends Scale {
|
|
|
7825
8358
|
}
|
|
7826
8359
|
}
|
|
7827
8360
|
|
|
8361
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
7828
8362
|
// algorithm found here: https://stackoverflow.com/a/30280636/5108336
|
|
7829
8363
|
function isDaylightSavingTime(d) {
|
|
7830
8364
|
const jan = new Date(d.getFullYear(), 0, 1).getTimezoneOffset();
|
|
@@ -7983,6 +8517,27 @@ class TimeIntervalScale extends TimeScale {
|
|
|
7983
8517
|
}
|
|
7984
8518
|
}
|
|
7985
8519
|
|
|
8520
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8521
|
+
|
|
8522
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8523
|
+
//
|
|
8524
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8525
|
+
// of this software and associated documentation files (the "Software"), to
|
|
8526
|
+
// deal in the Software without restriction, including without limitation the
|
|
8527
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8528
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8529
|
+
// furnished to do so, subject to the following conditions:
|
|
8530
|
+
//
|
|
8531
|
+
// The above copyright notice and this permission notice shall be included in
|
|
8532
|
+
// all copies or substantial portions of the Software.
|
|
8533
|
+
//
|
|
8534
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
8535
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
8536
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
8537
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
8538
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
8539
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
8540
|
+
// THE SOFTWARE.
|
|
7986
8541
|
class NoopScale {
|
|
7987
8542
|
constructor(id) { }
|
|
7988
8543
|
convert() {
|
|
@@ -8024,6 +8579,27 @@ class NoopScale {
|
|
|
8024
8579
|
}
|
|
8025
8580
|
}
|
|
8026
8581
|
|
|
8582
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8583
|
+
|
|
8584
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8585
|
+
//
|
|
8586
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8587
|
+
// of this software and associated documentation files (the "Software"), to
|
|
8588
|
+
// deal in the Software without restriction, including without limitation the
|
|
8589
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8590
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8591
|
+
// furnished to do so, subject to the following conditions:
|
|
8592
|
+
//
|
|
8593
|
+
// The above copyright notice and this permission notice shall be included in
|
|
8594
|
+
// all copies or substantial portions of the Software.
|
|
8595
|
+
//
|
|
8596
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
8597
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
8598
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
8599
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
8600
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
8601
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
8602
|
+
// THE SOFTWARE.
|
|
8027
8603
|
class DataSeries {
|
|
8028
8604
|
constructor(dataSeries) {
|
|
8029
8605
|
this.id = dataSeries.id;
|
|
@@ -8040,6 +8616,9 @@ class DataSeries {
|
|
|
8040
8616
|
}
|
|
8041
8617
|
}
|
|
8042
8618
|
|
|
8619
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8620
|
+
|
|
8621
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8043
8622
|
/**
|
|
8044
8623
|
* Pre-defined XYGridConfig for conforming an area chart to Nova UX standards
|
|
8045
8624
|
*/
|
|
@@ -8050,6 +8629,7 @@ class AreaGridConfig extends XYGridConfig {
|
|
|
8050
8629
|
}
|
|
8051
8630
|
}
|
|
8052
8631
|
|
|
8632
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8053
8633
|
/**
|
|
8054
8634
|
* Pre-defined and conforming Nova UX standards configuration of XYGrid for bar chart
|
|
8055
8635
|
*/
|
|
@@ -8068,6 +8648,7 @@ class BarGridConfig extends XYGridConfig {
|
|
|
8068
8648
|
}
|
|
8069
8649
|
}
|
|
8070
8650
|
|
|
8651
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8071
8652
|
/**
|
|
8072
8653
|
* Pre-defined and conforming Nova UX standards configuration of XYGrid for horizontal bar chart
|
|
8073
8654
|
*/
|
|
@@ -8088,6 +8669,7 @@ class BarHorizontalGridConfig extends XYGridConfig {
|
|
|
8088
8669
|
}
|
|
8089
8670
|
}
|
|
8090
8671
|
|
|
8672
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8091
8673
|
class BarStatusGridConfig extends XYGridConfig {
|
|
8092
8674
|
constructor(config = { showBottomAxis: true }) {
|
|
8093
8675
|
super();
|
|
@@ -8109,6 +8691,7 @@ class BarStatusGridConfig extends XYGridConfig {
|
|
|
8109
8691
|
}
|
|
8110
8692
|
}
|
|
8111
8693
|
|
|
8694
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8112
8695
|
/**
|
|
8113
8696
|
* Applies spark chart specific grid configuration
|
|
8114
8697
|
*
|
|
@@ -8139,6 +8722,19 @@ function sparkChartGridConfig(c = new XYGridConfig(), showBottomAxis = false, sh
|
|
|
8139
8722
|
return c;
|
|
8140
8723
|
}
|
|
8141
8724
|
|
|
8725
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8726
|
+
|
|
8727
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8728
|
+
|
|
8729
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8730
|
+
|
|
8731
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8732
|
+
|
|
8733
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8734
|
+
|
|
8735
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8736
|
+
|
|
8737
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8142
8738
|
/**
|
|
8143
8739
|
* Extends ChartPopoverPlugin to handle popover positioning for radial charts.
|
|
8144
8740
|
*/
|
|
@@ -8167,6 +8763,7 @@ class RadialPopoverPlugin extends ChartPopoverPlugin {
|
|
|
8167
8763
|
}
|
|
8168
8764
|
}
|
|
8169
8765
|
|
|
8766
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8170
8767
|
/**
|
|
8171
8768
|
* The circle is divided into 8 parts (E, SE, S, SW, ...), these values represent the connection points
|
|
8172
8769
|
* on the source element for the tooltip position starting with EAST and going clockwise)
|
|
@@ -8251,12 +8848,18 @@ class RadialTooltipsPlugin extends ChartTooltipsPlugin {
|
|
|
8251
8848
|
}
|
|
8252
8849
|
}
|
|
8253
8850
|
|
|
8851
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8254
8852
|
class BarTooltipsPlugin extends ChartTooltipsPlugin {
|
|
8255
8853
|
constructor(config) {
|
|
8256
8854
|
super();
|
|
8257
8855
|
}
|
|
8258
8856
|
}
|
|
8259
8857
|
|
|
8858
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8859
|
+
|
|
8860
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8861
|
+
|
|
8862
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8260
8863
|
class ZoomPlugin extends ChartPlugin {
|
|
8261
8864
|
constructor(config = {}) {
|
|
8262
8865
|
super();
|
|
@@ -8386,6 +8989,9 @@ ZoomPlugin.DEFAULT_CONFIG = {
|
|
|
8386
8989
|
enableExternalEvents: false,
|
|
8387
8990
|
};
|
|
8388
8991
|
|
|
8992
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8993
|
+
|
|
8994
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8389
8995
|
/**
|
|
8390
8996
|
* Chart assist implementation to be used with spark charts
|
|
8391
8997
|
*/
|
|
@@ -8501,6 +9107,33 @@ class SparkChartAssist {
|
|
|
8501
9107
|
}
|
|
8502
9108
|
}
|
|
8503
9109
|
|
|
9110
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9111
|
+
|
|
9112
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9113
|
+
|
|
9114
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9115
|
+
|
|
9116
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9117
|
+
|
|
9118
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9119
|
+
//
|
|
9120
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9121
|
+
// of this software and associated documentation files (the "Software"), to
|
|
9122
|
+
// deal in the Software without restriction, including without limitation the
|
|
9123
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
9124
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9125
|
+
// furnished to do so, subject to the following conditions:
|
|
9126
|
+
//
|
|
9127
|
+
// The above copyright notice and this permission notice shall be included in
|
|
9128
|
+
// all copies or substantial portions of the Software.
|
|
9129
|
+
//
|
|
9130
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
9131
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
9132
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
9133
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
9134
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
9135
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
9136
|
+
// THE SOFTWARE.
|
|
8504
9137
|
class NoopAccessors {
|
|
8505
9138
|
constructor() {
|
|
8506
9139
|
this.series = undefined;
|
|
@@ -8508,6 +9141,9 @@ class NoopAccessors {
|
|
|
8508
9141
|
}
|
|
8509
9142
|
}
|
|
8510
9143
|
|
|
9144
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9145
|
+
|
|
9146
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8511
9147
|
/**
|
|
8512
9148
|
* Renderer that is able to draw line chart
|
|
8513
9149
|
*/
|
|
@@ -8527,6 +9163,7 @@ class NoopRenderer extends Renderer {
|
|
|
8527
9163
|
}
|
|
8528
9164
|
}
|
|
8529
9165
|
|
|
9166
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8530
9167
|
/**
|
|
8531
9168
|
* Creates an {@link XYGrid} with predefined {@link BarGridConfig} or
|
|
8532
9169
|
* {@link BarHorizontalGridConfig} using {@link IBarChartConfig#horizontal} horizontal property. Default orientation is **vertical**.
|
|
@@ -8542,6 +9179,9 @@ function barGrid(config) {
|
|
|
8542
9179
|
return grid;
|
|
8543
9180
|
}
|
|
8544
9181
|
|
|
9182
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9183
|
+
|
|
9184
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8545
9185
|
/**
|
|
8546
9186
|
* Creates {@link VerticalBarAccessors} or {@link VerticalBarAccessors}
|
|
8547
9187
|
* using {@link IBarChartConfig#horizontal} horizontal property. Default orientation is **vertical**.
|
|
@@ -8557,6 +9197,9 @@ function barAccessors(config, colorProvider, markerProvider) {
|
|
|
8557
9197
|
: new VerticalBarAccessors(colorProvider, markerProvider);
|
|
8558
9198
|
}
|
|
8559
9199
|
|
|
9200
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9201
|
+
|
|
9202
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8560
9203
|
class BarHighlightStrategy {
|
|
8561
9204
|
/**
|
|
8562
9205
|
* @param scaleKey scale that will be used for searching for the data point that will be highlighted
|
|
@@ -8668,6 +9311,7 @@ class BarHighlightStrategy {
|
|
|
8668
9311
|
draw(renderer, renderSeries, rendererSubject) { }
|
|
8669
9312
|
}
|
|
8670
9313
|
|
|
9314
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8671
9315
|
class BarSeriesHighlightStrategy {
|
|
8672
9316
|
/**
|
|
8673
9317
|
* @param scaleKey scale that will be used for searching for the datapoint that will be highlighted
|
|
@@ -8728,6 +9372,11 @@ class BarSeriesHighlightStrategy {
|
|
|
8728
9372
|
draw(renderer, renderSeries, rendererSubject) { }
|
|
8729
9373
|
}
|
|
8730
9374
|
|
|
9375
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9376
|
+
|
|
9377
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9378
|
+
|
|
9379
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8731
9380
|
/**
|
|
8732
9381
|
* Renderer that is able to draw pie chart
|
|
8733
9382
|
*/
|
|
@@ -8737,6 +9386,9 @@ class PieRenderer extends RadialRenderer {
|
|
|
8737
9386
|
}
|
|
8738
9387
|
}
|
|
8739
9388
|
|
|
9389
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9390
|
+
|
|
9391
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8740
9392
|
/**
|
|
8741
9393
|
* This function adds data points indicating that there is an interruption in the data.
|
|
8742
9394
|
*
|
|
@@ -8783,6 +9435,7 @@ function calculateMissingData(dataSeries, accessorKey, interval) {
|
|
|
8783
9435
|
return newData;
|
|
8784
9436
|
}
|
|
8785
9437
|
|
|
9438
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8786
9439
|
class LineSelectSeriesInteractionStrategy {
|
|
8787
9440
|
constructor() {
|
|
8788
9441
|
this.INTERACTION_MARGIN = 8;
|
|
@@ -8858,6 +9511,9 @@ class LineSelectSeriesInteractionStrategy {
|
|
|
8858
9511
|
}
|
|
8859
9512
|
}
|
|
8860
9513
|
|
|
9514
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9515
|
+
|
|
9516
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8861
9517
|
/** Standard line renderer config for visualizing missing data */
|
|
8862
9518
|
class MissingDataLineRendererConfig {
|
|
8863
9519
|
constructor() {
|
|
@@ -8868,6 +9524,9 @@ class MissingDataLineRendererConfig {
|
|
|
8868
9524
|
}
|
|
8869
9525
|
}
|
|
8870
9526
|
|
|
9527
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9528
|
+
|
|
9529
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8871
9530
|
/**
|
|
8872
9531
|
* Creates an {@link XYGrid} with predefined {@link AreaGridConfig}
|
|
8873
9532
|
*
|
|
@@ -8879,6 +9538,7 @@ function areaGrid() {
|
|
|
8879
9538
|
return grid;
|
|
8880
9539
|
}
|
|
8881
9540
|
|
|
9541
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
8882
9542
|
/**
|
|
8883
9543
|
* Renderer that is able to draw line chart
|
|
8884
9544
|
*/
|
|
@@ -9029,6 +9689,25 @@ class AreaRenderer extends XYRenderer {
|
|
|
9029
9689
|
}
|
|
9030
9690
|
}
|
|
9031
9691
|
|
|
9692
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9693
|
+
//
|
|
9694
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9695
|
+
// of this software and associated documentation files (the "Software"), to
|
|
9696
|
+
// deal in the Software without restriction, including without limitation the
|
|
9697
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
9698
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9699
|
+
// furnished to do so, subject to the following conditions:
|
|
9700
|
+
//
|
|
9701
|
+
// The above copyright notice and this permission notice shall be included in
|
|
9702
|
+
// all copies or substantial portions of the Software.
|
|
9703
|
+
//
|
|
9704
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
9705
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
9706
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
9707
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
9708
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
9709
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
9710
|
+
// THE SOFTWARE.
|
|
9032
9711
|
function stackedAreaPreprocessor(chartSeriesSet, isVisible) {
|
|
9033
9712
|
// No need to preprocess empty series.
|
|
9034
9713
|
if (chartSeriesSet.length === 0) {
|
|
@@ -9070,6 +9749,25 @@ function stackedArea(chartSeriesSet) {
|
|
|
9070
9749
|
return stackedAreaPreprocessor(chartSeriesSet, (series) => !this.isSeriesHidden(series.id));
|
|
9071
9750
|
}
|
|
9072
9751
|
|
|
9752
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9753
|
+
//
|
|
9754
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9755
|
+
// of this software and associated documentation files (the "Software"), to
|
|
9756
|
+
// deal in the Software without restriction, including without limitation the
|
|
9757
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
9758
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9759
|
+
// furnished to do so, subject to the following conditions:
|
|
9760
|
+
//
|
|
9761
|
+
// The above copyright notice and this permission notice shall be included in
|
|
9762
|
+
// all copies or substantial portions of the Software.
|
|
9763
|
+
//
|
|
9764
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
9765
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
9766
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
9767
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
9768
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
9769
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
9770
|
+
// THE SOFTWARE.
|
|
9073
9771
|
function stackedPercentageAreaPreprocessor(chartSeriesSet, isVisible) {
|
|
9074
9772
|
// No need to preprocess empty series.
|
|
9075
9773
|
if (chartSeriesSet.length === 0) {
|
|
@@ -9134,6 +9832,7 @@ function applyStackMetadata(baseAccessorKey, valueAccessorKey, chartSeries, isVi
|
|
|
9134
9832
|
});
|
|
9135
9833
|
}
|
|
9136
9834
|
|
|
9835
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9137
9836
|
function stackedAreaAccessors(colorProvider, markerProvider) {
|
|
9138
9837
|
const areaAccessors = new AreaAccessors(colorProvider, markerProvider);
|
|
9139
9838
|
areaAccessors.data.x = (d) => d.x;
|
|
@@ -9143,6 +9842,11 @@ function stackedAreaAccessors(colorProvider, markerProvider) {
|
|
|
9143
9842
|
return areaAccessors;
|
|
9144
9843
|
}
|
|
9145
9844
|
|
|
9845
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9846
|
+
|
|
9847
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9848
|
+
|
|
9849
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9146
9850
|
/**
|
|
9147
9851
|
* Applies grid configuration for summary thresholds section
|
|
9148
9852
|
*
|
|
@@ -9157,6 +9861,7 @@ function thresholdsSummaryGridConfig(c = new XYGridConfig()) {
|
|
|
9157
9861
|
return c;
|
|
9158
9862
|
}
|
|
9159
9863
|
|
|
9864
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9160
9865
|
/**
|
|
9161
9866
|
* Applies grid configuration that is used for main chart (with a threshold summary section below it)
|
|
9162
9867
|
*
|
|
@@ -9169,6 +9874,10 @@ function thresholdsTopGridConfig(c = new XYGridConfig()) {
|
|
|
9169
9874
|
return c;
|
|
9170
9875
|
}
|
|
9171
9876
|
|
|
9877
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9878
|
+
|
|
9879
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
9880
|
+
|
|
9172
9881
|
/**
|
|
9173
9882
|
* Generated bundle index. Do not edit.
|
|
9174
9883
|
*/
|