ngx-hana-nameserver-history-viewer 1.2.1 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/{fesm2020 → fesm2022}/ngx-hana-nameserver-history-viewer.mjs +2898 -3983
- package/fesm2022/ngx-hana-nameserver-history-viewer.mjs.map +1 -0
- package/ngx-hana-nameserver-history-viewer-21.1.0.tgz +0 -0
- package/package.json +20 -27
- package/types/ngx-hana-nameserver-history-viewer.d.ts +545 -0
- package/esm2020/ngx-hana-nameserver-history-viewer.mjs +0 -5
- package/esm2020/public-api.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/alert/alert.component.mjs +0 -68
- package/esm2020/src/nameserver-history-viewer/components/alert/alert.module.mjs +0 -22
- package/esm2020/src/nameserver-history-viewer/components/alert/index.mjs +0 -3
- package/esm2020/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.mjs +0 -112
- package/esm2020/src/nameserver-history-viewer/components/file-drop-input/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/index.mjs +0 -9
- package/esm2020/src/nameserver-history-viewer/components/instruction/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/instruction/instruction.component.mjs +0 -42
- package/esm2020/src/nameserver-history-viewer/components/nameserver-history.component.mjs +0 -557
- package/esm2020/src/nameserver-history-viewer/components/port-selector/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.component.mjs +0 -69
- package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.service.mjs +0 -41
- package/esm2020/src/nameserver-history-viewer/components/progress-bar/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.mjs +0 -40
- package/esm2020/src/nameserver-history-viewer/components/time-range-selector/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.mjs +0 -70
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.mjs +0 -88
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.mjs +0 -47
- package/esm2020/src/nameserver-history-viewer/index.mjs +0 -3
- package/esm2020/src/nameserver-history-viewer/nameserver-history.module.mjs +0 -63
- package/esm2020/src/nameserver-history-viewer/services/chart.service.mjs +0 -328
- package/esm2020/src/nameserver-history-viewer/services/file.service.mjs +0 -390
- package/esm2020/src/nameserver-history-viewer/services/index.mjs +0 -4
- package/esm2020/src/nameserver-history-viewer/services/ui.service.mjs +0 -557
- package/esm2020/src/nameserver-history-viewer/types/abort.types.mjs +0 -6
- package/esm2020/src/nameserver-history-viewer/types/alert.types.mjs +0 -8
- package/esm2020/src/nameserver-history-viewer/types/chart-content-data-item.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/chart-content-data.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/chart-content-header.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/chart-content-time.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/chart-content.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/color-rgba.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/html-element.type.mjs +0 -9
- package/esm2020/src/nameserver-history-viewer/types/index.mjs +0 -28
- package/esm2020/src/nameserver-history-viewer/types/item.types.mjs +0 -14
- package/esm2020/src/nameserver-history-viewer/types/legend-color.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-backup.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-columnstore.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-host.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-item.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-persistence.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-rowstore.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-server.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-sql.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-threads.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/port.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/scale-group.types.mjs +0 -17
- package/esm2020/src/nameserver-history-viewer/types/unit-category.types.mjs +0 -10
- package/esm2020/src/nameserver-history-viewer/types/unit.types.mjs +0 -14
- package/esm2020/src/nameserver-history-viewer/utils/chart-util.mjs +0 -25
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.mjs +0 -56
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.mjs +0 -139
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/index.mjs +0 -41
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.mjs +0 -106
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.mjs +0 -167
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/utils.mjs +0 -114
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.mjs +0 -527
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/utils/file-util.mjs +0 -161
- package/esm2020/src/nameserver-history-viewer/utils/index.mjs +0 -5
- package/esm2020/src/nameserver-history-viewer/utils/time-util.mjs +0 -99
- package/esm2020/src/nameserver-history-viewer/utils/ui-util.mjs +0 -162
- package/fesm2015/ngx-hana-nameserver-history-viewer.mjs +0 -4098
- package/fesm2015/ngx-hana-nameserver-history-viewer.mjs.map +0 -1
- package/fesm2020/ngx-hana-nameserver-history-viewer.mjs.map +0 -1
- package/ngx-hana-nameserver-history-viewer.d.ts +0 -5
- package/public-api.d.ts +0 -1
- package/src/nameserver-history-viewer/components/alert/alert.component.d.ts +0 -21
- package/src/nameserver-history-viewer/components/alert/alert.module.d.ts +0 -8
- package/src/nameserver-history-viewer/components/alert/index.d.ts +0 -2
- package/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.d.ts +0 -16
- package/src/nameserver-history-viewer/components/file-drop-input/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/index.d.ts +0 -8
- package/src/nameserver-history-viewer/components/instruction/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/instruction/instruction.component.d.ts +0 -17
- package/src/nameserver-history-viewer/components/nameserver-history.component.d.ts +0 -262
- package/src/nameserver-history-viewer/components/port-selector/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/port-selector/port-selector.component.d.ts +0 -31
- package/src/nameserver-history-viewer/components/port-selector/port-selector.service.d.ts +0 -14
- package/src/nameserver-history-viewer/components/progress-bar/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.d.ts +0 -6
- package/src/nameserver-history-viewer/components/time-range-selector/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.d.ts +0 -19
- package/src/nameserver-history-viewer/components/timezone-selector/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.d.ts +0 -26
- package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.d.ts +0 -21
- package/src/nameserver-history-viewer/index.d.ts +0 -2
- package/src/nameserver-history-viewer/nameserver-history.module.d.ts +0 -19
- package/src/nameserver-history-viewer/services/chart.service.d.ts +0 -59
- package/src/nameserver-history-viewer/services/file.service.d.ts +0 -63
- package/src/nameserver-history-viewer/services/index.d.ts +0 -3
- package/src/nameserver-history-viewer/services/ui.service.d.ts +0 -88
- package/src/nameserver-history-viewer/types/abort.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/alert.types.d.ts +0 -6
- package/src/nameserver-history-viewer/types/chart-content-data-item.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/chart-content-data.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/chart-content-header.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/chart-content-time.types.d.ts +0 -3
- package/src/nameserver-history-viewer/types/chart-content.types.d.ts +0 -10
- package/src/nameserver-history-viewer/types/color-rgba.types.d.ts +0 -6
- package/src/nameserver-history-viewer/types/html-element.type.d.ts +0 -7
- package/src/nameserver-history-viewer/types/index.d.ts +0 -27
- package/src/nameserver-history-viewer/types/item.types.d.ts +0 -12
- package/src/nameserver-history-viewer/types/legend-color.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/load-history-info-backup.types.d.ts +0 -7
- package/src/nameserver-history-viewer/types/load-history-info-columnstore.types.d.ts +0 -7
- package/src/nameserver-history-viewer/types/load-history-info-host.types.d.ts +0 -15
- package/src/nameserver-history-viewer/types/load-history-info-item.types.d.ts +0 -13
- package/src/nameserver-history-viewer/types/load-history-info-persistence.types.d.ts +0 -11
- package/src/nameserver-history-viewer/types/load-history-info-rowstore.types.d.ts +0 -5
- package/src/nameserver-history-viewer/types/load-history-info-server.types.d.ts +0 -10
- package/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.d.ts +0 -10
- package/src/nameserver-history-viewer/types/load-history-info-sql.types.d.ts +0 -16
- package/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.d.ts +0 -5
- package/src/nameserver-history-viewer/types/load-history-info-threads.types.d.ts +0 -9
- package/src/nameserver-history-viewer/types/load-history-info.types.d.ts +0 -22
- package/src/nameserver-history-viewer/types/port.types.d.ts +0 -5
- package/src/nameserver-history-viewer/types/scale-group.types.d.ts +0 -15
- package/src/nameserver-history-viewer/types/unit-category.types.d.ts +0 -8
- package/src/nameserver-history-viewer/types/unit.types.d.ts +0 -12
- package/src/nameserver-history-viewer/utils/chart-util.d.ts +0 -14
- package/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.d.ts +0 -89
- package/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.d.ts +0 -32
- package/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.d.ts +0 -78
- package/src/nameserver-history-viewer/utils/chartjs-downsample/index.d.ts +0 -1
- package/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.d.ts +0 -57
- package/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.d.ts +0 -55
- package/src/nameserver-history-viewer/utils/chartjs-downsample/utils.d.ts +0 -64
- package/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.d.ts +0 -30
- package/src/nameserver-history-viewer/utils/chartjs-zoom/index.d.ts +0 -1
- package/src/nameserver-history-viewer/utils/file-util.d.ts +0 -68
- package/src/nameserver-history-viewer/utils/index.d.ts +0 -4
- package/src/nameserver-history-viewer/utils/time-util.d.ts +0 -23
- package/src/nameserver-history-viewer/utils/ui-util.d.ts +0 -41
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This plugin is adapted from: https://github.com/3dcl/chartjs-plugin-responsive-downsample
|
|
3
|
-
* for controlling the radius of point.
|
|
4
|
-
*
|
|
5
|
-
* MIT License
|
|
6
|
-
* Copyright (c) 2018 3D Content Logistics
|
|
7
|
-
*
|
|
8
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
* in the Software without restriction, including without limitation the rights
|
|
11
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
* furnished to do so, subject to the following conditions:
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { ChartPoint } from 'chart.js';
|
|
26
|
-
import { DataMipmap } from './data_mipmap';
|
|
27
|
-
/**
|
|
28
|
-
* A mipmap data structure that uses Largest-Triangle-Three-Buckets algorithm to downsample data
|
|
29
|
-
*/
|
|
30
|
-
export declare class LTTBDataMipmap extends DataMipmap {
|
|
31
|
-
protected resolutions: number[];
|
|
32
|
-
getMipMapIndexForResolution(resolution: number): number;
|
|
33
|
-
protected createMipMap(): void;
|
|
34
|
-
/**
|
|
35
|
-
* This method is adapted from: https://github.com/sveinn-steinarsson/flot-downsample
|
|
36
|
-
*
|
|
37
|
-
* The MIT License
|
|
38
|
-
* Copyright (c) 2013 by Sveinn Steinarsson
|
|
39
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
40
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
41
|
-
* in the Software without restriction, including without limitation the rights
|
|
42
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
43
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
44
|
-
* furnished to do so, subject to the following conditions:
|
|
45
|
-
* The above copyright notice and this permission notice shall be included in
|
|
46
|
-
* all copies or substantial portions of the Software.
|
|
47
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
48
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
49
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
50
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
51
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
52
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
53
|
-
* THE SOFTWARE.
|
|
54
|
-
*/
|
|
55
|
-
protected downsampleToResolution(data: ChartPoint[], targetResolution: number, targetLength: number): ChartPoint[];
|
|
56
|
-
protected computeAverageResolution(data: ChartPoint[]): number;
|
|
57
|
-
}
|
package/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Chart } from 'chart.js';
|
|
2
|
-
import { IChartPlugin } from './chartjs_ext';
|
|
3
|
-
import * as data_culling from './data_culling';
|
|
4
|
-
export interface ResponsiveDownsamplePluginOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Enable/disable plugin
|
|
7
|
-
*/
|
|
8
|
-
enabled?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* The aggregation algorithm to thin out data. Default: LTTB
|
|
11
|
-
*/
|
|
12
|
-
aggregationAlgorithm?: 'AVG' | 'LTTB';
|
|
13
|
-
/**
|
|
14
|
-
* Desired minimal distance between data points in pixels. Default: 1 pixel
|
|
15
|
-
*/
|
|
16
|
-
desiredDataPointDistance?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Minimal number of data points. Limits
|
|
19
|
-
*/
|
|
20
|
-
minNumPoints?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Cull data to displayed range of x scale
|
|
23
|
-
*/
|
|
24
|
-
cullData?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Flag is set by plugin to trigger reload of data
|
|
27
|
-
*/
|
|
28
|
-
needsUpdate?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Current target resolution(Set by plugin)
|
|
31
|
-
*/
|
|
32
|
-
targetResolution?: number;
|
|
33
|
-
/**
|
|
34
|
-
* Scale range of x axis
|
|
35
|
-
*/
|
|
36
|
-
scaleRange?: data_culling.Range;
|
|
37
|
-
/**
|
|
38
|
-
* Draw points only if the points number less than the limitation
|
|
39
|
-
*/
|
|
40
|
-
maxNumPointsToDraw?: number;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Chart js Plugin for downsampling data
|
|
44
|
-
*/
|
|
45
|
-
export declare class ResponsiveDownsamplePlugin implements IChartPlugin {
|
|
46
|
-
static getPluginOptions(chart: any): ResponsiveDownsamplePluginOptions;
|
|
47
|
-
static hasDataChanged(chart: Chart): boolean;
|
|
48
|
-
static createDataMipMap(chart: Chart, options: ResponsiveDownsamplePluginOptions): void;
|
|
49
|
-
static restoreOriginalData(chart: Chart): boolean;
|
|
50
|
-
static getTargetResolution(chart: Chart, options: ResponsiveDownsamplePluginOptions): number;
|
|
51
|
-
static updateMipMap(chart: Chart, options: ResponsiveDownsamplePluginOptions, rangeChanged: boolean): boolean;
|
|
52
|
-
beforeInit(chart: Chart): void;
|
|
53
|
-
beforeDatasetsUpdate(chart: Chart): void;
|
|
54
|
-
beforeRender(chart: Chart): boolean;
|
|
55
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This plugin is adapted from: https://github.com/3dcl/chartjs-plugin-responsive-downsample
|
|
3
|
-
* for controlling the radius of point.
|
|
4
|
-
*
|
|
5
|
-
* MIT License
|
|
6
|
-
* Copyright (c) 2018 3D Content Logistics
|
|
7
|
-
*
|
|
8
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
* in the Software without restriction, including without limitation the rights
|
|
11
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
* furnished to do so, subject to the following conditions:
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
/**
|
|
26
|
-
* Check if a value is null or undefined
|
|
27
|
-
*/
|
|
28
|
-
export declare function isNil(value: any): value is null | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Clamp a number to a range
|
|
31
|
-
* @param value
|
|
32
|
-
* @param min
|
|
33
|
-
* @param max
|
|
34
|
-
*/
|
|
35
|
-
export declare function clamp(value: number, min: number, max: number): number;
|
|
36
|
-
/**
|
|
37
|
-
* Recursively assign default values to an object if object is missing the keys.
|
|
38
|
-
* @param object The destination object to assign default values to
|
|
39
|
-
* @param defaults The default values for the object
|
|
40
|
-
* @return The destination object
|
|
41
|
-
*/
|
|
42
|
-
export declare function defaultsDeep<T>(object: T, defaults: Partial<T>): T;
|
|
43
|
-
/**
|
|
44
|
-
* Finds the first element in an array for that the comaperator functions returns true
|
|
45
|
-
*
|
|
46
|
-
* @export
|
|
47
|
-
* @param array An array
|
|
48
|
-
* @param compareFunction Comperator function returning true for the element seeked
|
|
49
|
-
* @returns The found element or undefined
|
|
50
|
-
*/
|
|
51
|
-
export declare function findInArray<T>(array: Array<T>, compareFunction: (element: T) => boolean): T;
|
|
52
|
-
/**
|
|
53
|
-
* Finds the first index in an array for that the comaperator function for an element returns true
|
|
54
|
-
*
|
|
55
|
-
* @export
|
|
56
|
-
* @param array An array of elements
|
|
57
|
-
* @param compareFunction Comperator function returning true for the element seeked
|
|
58
|
-
* @returns Index of the matched element or -1 if no element was found
|
|
59
|
-
*/
|
|
60
|
-
export declare function findIndexInArray<T>(array: Array<T>, compareFunction: (element: T) => boolean): number;
|
|
61
|
-
/**
|
|
62
|
-
* If points number is less than minNumPoints, show radius for all points.
|
|
63
|
-
*/
|
|
64
|
-
export declare function changePointRadius(chart: any, options: any): void;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* this plugin is adapted from: https://github.com/chartjs/chartjs-plugin-zoom
|
|
3
|
-
* for following two open issues:
|
|
4
|
-
* https://github.com/chartjs/chartjs-plugin-zoom/pull/155
|
|
5
|
-
* https://github.com/chartjs/chartjs-plugin-zoom/pull/150
|
|
6
|
-
*
|
|
7
|
-
* The MIT License (MIT) Copyright (c) 2013-2016 Nick Downie
|
|
8
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
|
9
|
-
* software and associated documentation files (the "Software"), to deal in the Software
|
|
10
|
-
* without restriction, including without limitation the rights to use, copy, modify, merge,
|
|
11
|
-
* publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
|
|
12
|
-
* to whom the Software is furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all copies or
|
|
15
|
-
* substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
|
|
18
|
-
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
|
19
|
-
* AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
-
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
-
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
* THE SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
export declare const zoomPlugin: {
|
|
25
|
-
afterInit: (chartInstance: any) => void;
|
|
26
|
-
beforeInit: (chartInstance: any) => void;
|
|
27
|
-
beforeDatasetsDraw: (chartInstance: any) => void;
|
|
28
|
-
afterDatasetsDraw: (chartInstance: any) => void;
|
|
29
|
-
destroy: (chartInstance: any) => void;
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './chart.zoom';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* get the default port string (for non-MDC system)
|
|
3
|
-
*/
|
|
4
|
-
export declare function getDefaultPort(): string;
|
|
5
|
-
/**
|
|
6
|
-
* get abbreviated file name
|
|
7
|
-
* @param fileName
|
|
8
|
-
*/
|
|
9
|
-
export declare function getAbbreviatedFileName(fileName: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* get port if empty return default port
|
|
12
|
-
*/
|
|
13
|
-
export declare function getPort(port: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* get all real ports except the default port "default"
|
|
16
|
-
*/
|
|
17
|
-
export declare function getRealPorts(ports: string[], includeDefault?: boolean): string[];
|
|
18
|
-
/**
|
|
19
|
-
* get file from <input>
|
|
20
|
-
* @param inputTarget
|
|
21
|
-
*/
|
|
22
|
-
export declare function getFileFromInput(inputTarget: any): File;
|
|
23
|
-
/**
|
|
24
|
-
* get file from drag and drop
|
|
25
|
-
*/
|
|
26
|
-
export declare function getFileFromDrop(dragEvent: any): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* Check whether the port from file is the same with the selected port.
|
|
29
|
-
* If the selected port is empty, return true directly. This makes all ports will be selected.
|
|
30
|
-
* @param portFromFile Port read from file
|
|
31
|
-
* @param portFromSelection Port from selection.
|
|
32
|
-
* @param isMDC MDC flag
|
|
33
|
-
*/
|
|
34
|
-
export declare function isSamePort(portFromFile: string, portFromSelection: string, isMDC: boolean): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* As javascript can't get the full path of file, if these two files have same
|
|
37
|
-
* 1. lastModified, 2. name, 3. size, these two files are considered as the same file
|
|
38
|
-
*/
|
|
39
|
-
export declare function isSameFile(file1: File, file2: File): boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Check whether the provided port is a valid port (3xxxx)
|
|
42
|
-
*/
|
|
43
|
-
export declare function isValidPort(port: string): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* get next value from current value base on the operator "<" or ">".
|
|
46
|
-
* Keep using current value until the "nextValue" is not empty.
|
|
47
|
-
*/
|
|
48
|
-
export declare function calculateValue(lastValue: number, nextValue: string): number;
|
|
49
|
-
/**
|
|
50
|
-
* get next time value from current time base on the operator "<" or ">".
|
|
51
|
-
* If nextValue is not "<" or ">", returns converted time base on the timezone
|
|
52
|
-
*/
|
|
53
|
-
export declare function calculateValue4Time(lastValue: number, nextValue: string, timezone: string): number;
|
|
54
|
-
/**
|
|
55
|
-
* check whether the data comes from valid nameserver history file
|
|
56
|
-
*/
|
|
57
|
-
export declare function validateData(data: string[][]): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* convert blob to file
|
|
60
|
-
* @param theBlob
|
|
61
|
-
* @param fileName
|
|
62
|
-
*/
|
|
63
|
-
export declare function blobToFile(theBlob: Blob, fileName: string): File;
|
|
64
|
-
/**
|
|
65
|
-
* check the object is a File object or not a File(Blob)
|
|
66
|
-
* @param obj
|
|
67
|
-
*/
|
|
68
|
-
export declare function isFile(obj: any): boolean;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* get default local time zone
|
|
3
|
-
*/
|
|
4
|
-
export declare function getDefaultTimezone(): string;
|
|
5
|
-
/**
|
|
6
|
-
* Get time from provided timezone, using this only because chart.js doesn't support timezone.
|
|
7
|
-
* This function will be removed when chart.js starts to support timezone feature.
|
|
8
|
-
* @param time time in seconds (Epoch time)
|
|
9
|
-
* @param timezone timezone string, uses local timezone if this is null.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getTimeFromTimeZone(time: number, timezone: string): number;
|
|
12
|
-
/**
|
|
13
|
-
* Get time formatted with the provided timezone
|
|
14
|
-
*/
|
|
15
|
-
export declare function getTimeString(time: number): string;
|
|
16
|
-
/**
|
|
17
|
-
* Get the time range string by time array, eg: 2018-10-25 10:10:00 ~ 2018-10-25 12:12:00
|
|
18
|
-
*/
|
|
19
|
-
export declare function getTimeRangeString(time: any): string;
|
|
20
|
-
/**
|
|
21
|
-
* print processed time from the provided beginTime, only works in dev mode
|
|
22
|
-
*/
|
|
23
|
-
export declare function printProcessedTime(beginTime: Date, step: string): void;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { UnitType, Port, ChartContentData } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Get the ignored line number from tail (For some reason, hana studio will abandon the last line of nameserver history trace file).
|
|
4
|
-
*/
|
|
5
|
-
export declare function getIgnoredLineNumFromTail(): number;
|
|
6
|
-
/**
|
|
7
|
-
* get the port that needs to be displayed from ports list via the selected port
|
|
8
|
-
* @param ports overall ports list
|
|
9
|
-
* @param port the selected port
|
|
10
|
-
*/
|
|
11
|
-
export declare function getDisplayPort(ports: string[], port: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Generate the ports for ngx-select.
|
|
14
|
-
* If the provided ports is not null and no port has been selected,
|
|
15
|
-
* will choose the first item which is not 01 (nameserver) or 07 (xsengine)
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export declare function generatePorts(ports?: string[], selectedPort?: string): Port[];
|
|
19
|
-
/**
|
|
20
|
-
* get unit factor by unit
|
|
21
|
-
*/
|
|
22
|
-
export declare function getUnitFactor(unitType: UnitType): number;
|
|
23
|
-
/**
|
|
24
|
-
* get value by unit (divided by the unit factor).
|
|
25
|
-
*/
|
|
26
|
-
export declare function getValueByUnit(value: number, unit: UnitType): number;
|
|
27
|
-
/**
|
|
28
|
-
* get rounded value: if value >= 10, round to integer; if value < 10, round to at most 2 decimal places
|
|
29
|
-
*/
|
|
30
|
-
export declare function getRoundedValue(value: number): number;
|
|
31
|
-
/**
|
|
32
|
-
* check whether unit is time related.
|
|
33
|
-
*/
|
|
34
|
-
export declare function isUnitTimeRelated(unit: UnitType): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* calculate YScale base on the provided value
|
|
37
|
-
*/
|
|
38
|
-
export declare function calculateYScale(value: number): number;
|
|
39
|
-
export declare function isEmptyData(data: ChartContentData): boolean;
|
|
40
|
-
export declare function sleep(time: number): Promise<any>;
|
|
41
|
-
export declare function setChartHeight(nsAll: any, nsContent: any): void;
|