@nova-ui/charts 20.0.4 → 21.0.1
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 +26 -26
- package/bundles/css/styles.css +1 -1
- package/fesm2022/nova-ui-charts.mjs +114 -62
- package/fesm2022/nova-ui-charts.mjs.map +1 -1
- package/package.json +16 -23
- package/{index.d.ts → types/nova-ui-charts.d.ts} +15 -10
- package/sdk/atoms/chart/atoms/bar-data-point.atom.d.ts +0 -11
- package/sdk/atoms/chart/atoms/bar-data-point.atom.js +0 -46
- package/sdk/atoms/chart/atoms/bar-data-point.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/chart.atom.d.ts +0 -27
- package/sdk/atoms/chart/atoms/chart.atom.js +0 -104
- package/sdk/atoms/chart/atoms/chart.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/lasagna.atom.d.ts +0 -7
- package/sdk/atoms/chart/atoms/lasagna.atom.js +0 -38
- package/sdk/atoms/chart/atoms/lasagna.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/line-series.atom.d.ts +0 -8
- package/sdk/atoms/chart/atoms/line-series.atom.js +0 -52
- package/sdk/atoms/chart/atoms/line-series.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/marker-series.atom.d.ts +0 -6
- package/sdk/atoms/chart/atoms/marker-series.atom.js +0 -35
- package/sdk/atoms/chart/atoms/marker-series.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/marker.atom.d.ts +0 -8
- package/sdk/atoms/chart/atoms/marker.atom.js +0 -44
- package/sdk/atoms/chart/atoms/marker.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/radial-series.atom.d.ts +0 -12
- package/sdk/atoms/chart/atoms/radial-series.atom.js +0 -47
- package/sdk/atoms/chart/atoms/radial-series.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/series.atom.d.ts +0 -7
- package/sdk/atoms/chart/atoms/series.atom.js +0 -32
- package/sdk/atoms/chart/atoms/series.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/status-bar-data-point.atom.d.ts +0 -5
- package/sdk/atoms/chart/atoms/status-bar-data-point.atom.js +0 -34
- package/sdk/atoms/chart/atoms/status-bar-data-point.atom.js.map +0 -1
- package/sdk/atoms/chart/atoms/threshold-series.atom.d.ts +0 -7
- package/sdk/atoms/chart/atoms/threshold-series.atom.js +0 -38
- package/sdk/atoms/chart/atoms/threshold-series.atom.js.map +0 -1
- package/sdk/atoms/chart/boosters/donut-chart-content.booster.d.ts +0 -6
- package/sdk/atoms/chart/boosters/donut-chart-content.booster.js +0 -35
- package/sdk/atoms/chart/boosters/donut-chart-content.booster.js.map +0 -1
- package/sdk/atoms/chart/boosters/interactive.booster.d.ts +0 -5
- package/sdk/atoms/chart/boosters/interactive.booster.js +0 -35
- package/sdk/atoms/chart/boosters/interactive.booster.js.map +0 -1
- package/sdk/atoms/chart/boosters/zoom.booster.d.ts +0 -5
- package/sdk/atoms/chart/boosters/zoom.booster.js +0 -40
- package/sdk/atoms/chart/boosters/zoom.booster.js.map +0 -1
- package/sdk/atoms/chart/donut-chart-test.po.d.ts +0 -6
- package/sdk/atoms/chart/donut-chart-test.po.js +0 -36
- package/sdk/atoms/chart/donut-chart-test.po.js.map +0 -1
- package/sdk/atoms/chart/line-chart-test.po.d.ts +0 -8
- package/sdk/atoms/chart/line-chart-test.po.js +0 -42
- package/sdk/atoms/chart/line-chart-test.po.js.map +0 -1
- package/sdk/atoms/chart/pie-chart-test.po.d.ts +0 -6
- package/sdk/atoms/chart/pie-chart-test.po.js +0 -36
- package/sdk/atoms/chart/pie-chart-test.po.js.map +0 -1
- package/sdk/atoms/chart/spark-chart-test.po.d.ts +0 -13
- package/sdk/atoms/chart/spark-chart-test.po.js +0 -55
- package/sdk/atoms/chart/spark-chart-test.po.js.map +0 -1
- package/sdk/atoms/chart/status-chart.atom.d.ts +0 -6
- package/sdk/atoms/chart/status-chart.atom.js +0 -49
- package/sdk/atoms/chart/status-chart.atom.js.map +0 -1
- package/sdk/atoms/chart/test.po.d.ts +0 -9
- package/sdk/atoms/chart/test.po.js +0 -49
- package/sdk/atoms/chart/test.po.js.map +0 -1
- package/sdk/atoms/chart/thresholds-summary-test.po.d.ts +0 -13
- package/sdk/atoms/chart/thresholds-summary-test.po.js +0 -55
- package/sdk/atoms/chart/thresholds-summary-test.po.js.map +0 -1
- package/sdk/atoms/chart/time-frame-bar-test.po.d.ts +0 -10
- package/sdk/atoms/chart/time-frame-bar-test.po.js +0 -47
- package/sdk/atoms/chart/time-frame-bar-test.po.js.map +0 -1
- package/sdk/atoms/legend/legend-series.atom.d.ts +0 -23
- package/sdk/atoms/legend/legend-series.atom.js +0 -74
- package/sdk/atoms/legend/legend-series.atom.js.map +0 -1
- package/sdk/atoms/legend/legend.atom.d.ts +0 -9
- package/sdk/atoms/legend/legend.atom.js +0 -36
- package/sdk/atoms/legend/legend.atom.js.map +0 -1
- package/sdk/atoms/legend/rich-legend-tile.atom.d.ts +0 -9
- package/sdk/atoms/legend/rich-legend-tile.atom.js +0 -58
- package/sdk/atoms/legend/rich-legend-tile.atom.js.map +0 -1
package/package.json
CHANGED
|
@@ -5,32 +5,28 @@
|
|
|
5
5
|
"name": "SolarWinds Nova Team"
|
|
6
6
|
}
|
|
7
7
|
],
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@nova-ui/bits": "~21.0.1",
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
8
12
|
"exports": {
|
|
9
|
-
"./
|
|
10
|
-
|
|
11
|
-
"default": "./sdk
|
|
12
|
-
},
|
|
13
|
-
"./sdk/atoms/*": {
|
|
14
|
-
"types": "./sdk/atoms/*.d.ts",
|
|
15
|
-
"default": "./sdk/atoms/*.js"
|
|
13
|
+
"./bundles/*": "./bundles/*",
|
|
14
|
+
"./sdk/*": {
|
|
15
|
+
"default": "./sdk/*"
|
|
16
16
|
},
|
|
17
17
|
"./sdk/atoms-playwright": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"default": "./sdk/atoms-playwright/index.js",
|
|
19
|
+
"types": "./sdk/atmos/index.d.ts"
|
|
20
20
|
},
|
|
21
21
|
"./sdk/atoms-playwright/*": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"default": "./sdk/atoms-playwright/*.js",
|
|
23
|
+
"types": "./sdk/atoms-playwright/*.d.ts"
|
|
24
24
|
},
|
|
25
|
-
"./sdk/*": {
|
|
26
|
-
"default": "./sdk/*"
|
|
27
|
-
},
|
|
28
|
-
"./bundles/*": "./bundles/*",
|
|
29
25
|
"./package.json": {
|
|
30
26
|
"default": "./package.json"
|
|
31
27
|
},
|
|
32
28
|
".": {
|
|
33
|
-
"types": "./
|
|
29
|
+
"types": "./types/nova-ui-charts.d.ts",
|
|
34
30
|
"default": "./fesm2022/nova-ui-charts.mjs"
|
|
35
31
|
}
|
|
36
32
|
},
|
|
@@ -42,10 +38,6 @@
|
|
|
42
38
|
],
|
|
43
39
|
"license": "Apache-2.0",
|
|
44
40
|
"name": "@nova-ui/charts",
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"@nova-ui/bits": "~20.0.4",
|
|
47
|
-
"tslib": "^2.3.0"
|
|
48
|
-
},
|
|
49
41
|
"peerDependencies": {
|
|
50
42
|
"@types/d3": "^5.0.0",
|
|
51
43
|
"@types/d3-selection-multi": "^1.0.0",
|
|
@@ -58,8 +50,9 @@
|
|
|
58
50
|
"type": "git",
|
|
59
51
|
"url": "https://github.com/solarwinds/nova.git"
|
|
60
52
|
},
|
|
61
|
-
"version": "
|
|
53
|
+
"version": "21.0.1",
|
|
62
54
|
"module": "fesm2022/nova-ui-charts.mjs",
|
|
63
|
-
"typings": "
|
|
64
|
-
"sideEffects": false
|
|
55
|
+
"typings": "types/nova-ui-charts.d.ts",
|
|
56
|
+
"sideEffects": false,
|
|
57
|
+
"type": "module"
|
|
65
58
|
}
|
|
@@ -11,6 +11,7 @@ import { AxisScale, Axis } from 'd3-axis';
|
|
|
11
11
|
import * as i13 from '@nova-ui/bits';
|
|
12
12
|
import { UnitOption, PopoverComponent, LoggerService } from '@nova-ui/bits';
|
|
13
13
|
import { CurveFactory, Arc, DefaultArcObject } from 'd3-shape';
|
|
14
|
+
import * as _nova_ui_charts from '@nova-ui/charts';
|
|
14
15
|
import { BaseType, DefaultArcObject as DefaultArcObject$1 } from 'd3';
|
|
15
16
|
import moment, { Duration } from 'moment/moment';
|
|
16
17
|
import { Numeric } from 'd3-array';
|
|
@@ -421,11 +422,11 @@ interface ILineAccessors extends IAccessors {
|
|
|
421
422
|
* <p>See referenced <code>data</code> and <code>series</code> interfaces for required properties.</p>
|
|
422
423
|
*/
|
|
423
424
|
declare class LineAccessors extends XYAccessors implements ILineAccessors {
|
|
424
|
-
colorProvider: IValueProvider<string>;
|
|
425
|
-
markerProvider: IValueProvider<IChartMarker>;
|
|
425
|
+
colorProvider: _nova_ui_charts.IValueProvider<string>;
|
|
426
|
+
markerProvider: _nova_ui_charts.IValueProvider<_nova_ui_charts.IChartMarker>;
|
|
426
427
|
data: ILineDataAccessors;
|
|
427
428
|
series: ILineSeriesAccessors;
|
|
428
|
-
constructor(colorProvider?: IValueProvider<string>, markerProvider?: IValueProvider<IChartMarker>);
|
|
429
|
+
constructor(colorProvider?: _nova_ui_charts.IValueProvider<string>, markerProvider?: _nova_ui_charts.IValueProvider<_nova_ui_charts.IChartMarker>);
|
|
429
430
|
}
|
|
430
431
|
|
|
431
432
|
/**
|
|
@@ -1611,6 +1612,7 @@ declare class LegendComponent implements OnChanges, OnDestroy {
|
|
|
1611
1612
|
declare const LEGEND_SERIES_CLASS_NAME = "nui-legend-series";
|
|
1612
1613
|
declare class LegendSeriesComponent implements AfterContentInit {
|
|
1613
1614
|
private legend;
|
|
1615
|
+
private cd;
|
|
1614
1616
|
/**
|
|
1615
1617
|
* Sets the series active status
|
|
1616
1618
|
*
|
|
@@ -1661,11 +1663,14 @@ declare class LegendSeriesComponent implements AfterContentInit {
|
|
|
1661
1663
|
private projectedDescription;
|
|
1662
1664
|
get isInteractiveClassApplied(): boolean;
|
|
1663
1665
|
isHorizontalClassApplied: boolean;
|
|
1666
|
+
get isDeselectedClassApplied(): boolean;
|
|
1667
|
+
get isDeemphasizedClassApplied(): boolean;
|
|
1668
|
+
get isHiddenStateClassApplied(): boolean;
|
|
1664
1669
|
get isActiveClassApplied(): boolean;
|
|
1665
1670
|
private _seriesRenderState;
|
|
1666
1671
|
private _active;
|
|
1667
1672
|
private _interactive;
|
|
1668
|
-
constructor(legend: LegendComponent);
|
|
1673
|
+
constructor(legend: LegendComponent, cd: ChangeDetectorRef);
|
|
1669
1674
|
ngAfterContentInit(): void;
|
|
1670
1675
|
/**
|
|
1671
1676
|
* Emits an isSelectedChange event on series click if the series is in interactive mode
|
|
@@ -1679,8 +1684,8 @@ declare class LegendSeriesComponent implements AfterContentInit {
|
|
|
1679
1684
|
* @returns boolean indicating whether the series has a projected description
|
|
1680
1685
|
*/
|
|
1681
1686
|
hasProjectedDescription(): boolean;
|
|
1682
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LegendSeriesComponent, [{ optional: true; host: true; }]>;
|
|
1683
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LegendSeriesComponent, "nui-legend-series", never, { "active": { "alias": "active"; "required": false; }; "interactive": { "alias": "interactive"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "descriptionPrimary": { "alias": "descriptionPrimary"; "required": false; }; "descriptionSecondary": { "alias": "descriptionSecondary"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "seriesRenderState": { "alias": "seriesRenderState"; "required": false; }; }, { "isSelectedChange": "isSelectedChange"; }, never, ["*", "[
|
|
1687
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LegendSeriesComponent, [{ optional: true; host: true; }, null]>;
|
|
1688
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegendSeriesComponent, "nui-legend-series", never, { "active": { "alias": "active"; "required": false; }; "interactive": { "alias": "interactive"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "descriptionPrimary": { "alias": "descriptionPrimary"; "required": false; }; "descriptionSecondary": { "alias": "descriptionSecondary"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "seriesRenderState": { "alias": "seriesRenderState"; "required": false; }; }, { "isSelectedChange": "isSelectedChange"; }, never, ["*", "[description]", "[legendMenu]"], false, never>;
|
|
1684
1689
|
}
|
|
1685
1690
|
|
|
1686
1691
|
declare class BasicLegendTileComponent {
|
|
@@ -1715,7 +1720,7 @@ declare class RichLegendTileComponent implements AfterContentInit, AfterViewInit
|
|
|
1715
1720
|
hasInputValue(): boolean;
|
|
1716
1721
|
hasInputUnitLabel(): boolean;
|
|
1717
1722
|
static ɵfac: i0.ɵɵFactoryDeclaration<RichLegendTileComponent, [{ host: true; }, { optional: true; host: true; }, null]>;
|
|
1718
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RichLegendTileComponent, "nui-rich-legend-tile", never, { "unitLabel": { "alias": "unitLabel"; "required": false; }; "value": { "alias": "value"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["
|
|
1723
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RichLegendTileComponent, "nui-rich-legend-tile", never, { "unitLabel": { "alias": "unitLabel"; "required": false; }; "value": { "alias": "value"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["[top]", "[bottom]", "*", "[leftEdge]", "[rightEdge]"], false, never>;
|
|
1719
1724
|
}
|
|
1720
1725
|
|
|
1721
1726
|
declare class ChartComponent implements OnInit, AfterContentInit, AfterViewInit, OnDestroy, IChartComponent, OnChanges {
|
|
@@ -3618,7 +3623,7 @@ declare abstract class BarAccessors extends RectangleAccessors implements IBarAc
|
|
|
3618
3623
|
private markerProvider;
|
|
3619
3624
|
data: IBarDataAccessors;
|
|
3620
3625
|
series: IRectangleSeriesAccessors;
|
|
3621
|
-
constructor(colorProvider?: IValueProvider<string>, markerProvider?: IValueProvider<IChartMarker>);
|
|
3626
|
+
constructor(colorProvider?: _nova_ui_charts.IValueProvider<string>, markerProvider?: _nova_ui_charts.IValueProvider<_nova_ui_charts.IChartMarker>);
|
|
3622
3627
|
private getSingleValue;
|
|
3623
3628
|
}
|
|
3624
3629
|
|
|
@@ -3767,7 +3772,7 @@ declare class RadialAccessors implements IRadialAccessors {
|
|
|
3767
3772
|
private colorProvider;
|
|
3768
3773
|
data: IRadialDataAccessors;
|
|
3769
3774
|
series: IRadialSeriesAccessors;
|
|
3770
|
-
constructor(colorProvider?: IValueProvider<string>);
|
|
3775
|
+
constructor(colorProvider?: _nova_ui_charts.IValueProvider<string>);
|
|
3771
3776
|
}
|
|
3772
3777
|
|
|
3773
3778
|
/**
|
|
@@ -3912,7 +3917,7 @@ declare class AreaAccessors implements IAreaAccessors {
|
|
|
3912
3917
|
private markerProvider;
|
|
3913
3918
|
data: IAreaDataAccessors;
|
|
3914
3919
|
series: IAreaSeriesAccessors;
|
|
3915
|
-
constructor(colorProvider?: IValueProvider<string>, markerProvider?: IValueProvider<IChartMarker>);
|
|
3920
|
+
constructor(colorProvider?: _nova_ui_charts.IValueProvider<string>, markerProvider?: _nova_ui_charts.IValueProvider<_nova_ui_charts.IChartMarker>);
|
|
3916
3921
|
}
|
|
3917
3922
|
|
|
3918
3923
|
/**
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { Atom } from "@nova-ui/bits/sdk/atoms";
|
|
3
|
-
export declare class BarDataPointAtom extends Atom {
|
|
4
|
-
static CSS_CLASS: string;
|
|
5
|
-
private rect;
|
|
6
|
-
constructor(rootElement: ElementFinder);
|
|
7
|
-
getOpacity(): Promise<number>;
|
|
8
|
-
getColor(): Promise<string>;
|
|
9
|
-
getX(): Promise<number>;
|
|
10
|
-
getWidth(): Promise<number>;
|
|
11
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.BarDataPointAtom = void 0;
|
|
23
|
-
const protractor_1 = require("protractor");
|
|
24
|
-
const atoms_1 = require("@nova-ui/bits/sdk/atoms");
|
|
25
|
-
class BarDataPointAtom extends atoms_1.Atom {
|
|
26
|
-
static CSS_CLASS = "bar-container";
|
|
27
|
-
rect;
|
|
28
|
-
constructor(rootElement) {
|
|
29
|
-
super(rootElement);
|
|
30
|
-
this.rect = rootElement.element(protractor_1.by.className("bar"));
|
|
31
|
-
}
|
|
32
|
-
async getOpacity() {
|
|
33
|
-
return parseFloat(await this.getElement().getCssValue("opacity"));
|
|
34
|
-
}
|
|
35
|
-
async getColor() {
|
|
36
|
-
return this.rect.getCssValue("fill");
|
|
37
|
-
}
|
|
38
|
-
async getX() {
|
|
39
|
-
return parseInt(await this.rect.getAttribute("x"), 10);
|
|
40
|
-
}
|
|
41
|
-
async getWidth() {
|
|
42
|
-
return parseInt(await this.rect.getAttribute("width"), 10);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.BarDataPointAtom = BarDataPointAtom;
|
|
46
|
-
//# sourceMappingURL=bar-data-point.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bar-data-point.atom.js","sourceRoot":"","sources":["../../../../../spec/chart/atoms/bar-data-point.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,2CAA+C;AAE/C,mDAA+C;AAE/C,MAAa,gBAAiB,SAAQ,YAAI;IAC/B,MAAM,CAAC,SAAS,GAAG,eAAe,CAAC;IAElC,IAAI,CAAgB;IAE5B,YAAY,WAA0B;QAClC,KAAK,CAAC,WAAW,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,CAAC;IAEM,KAAK,CAAC,UAAU;QACnB,OAAO,UAAU,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,KAAK,CAAC,QAAQ;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAEM,KAAK,CAAC,IAAI;QACb,OAAO,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAEM,KAAK,CAAC,QAAQ;QACjB,OAAO,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;;AAxBL,4CAyBC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { ILocation } from "selenium-webdriver";
|
|
3
|
-
import { Atom } from "@nova-ui/bits/sdk/atoms";
|
|
4
|
-
import { IAtomClass } from "@nova-ui/bits/sdk/atoms/atom";
|
|
5
|
-
import { MarkerSeriesAtom } from "./marker-series.atom";
|
|
6
|
-
import { SeriesAtom } from "./series.atom";
|
|
7
|
-
export declare class ChartAtom extends Atom {
|
|
8
|
-
static CSS_CLASS: string;
|
|
9
|
-
private SERIES_CLASS;
|
|
10
|
-
private grid;
|
|
11
|
-
private lasagna;
|
|
12
|
-
constructor(rootElement: ElementFinder);
|
|
13
|
-
getLayer(name: string): Promise<ElementFinder[]>;
|
|
14
|
-
getNumberOfVisibleBackgroundSeries(): Promise<number>;
|
|
15
|
-
getNumberOfVisibleDataSeries(): Promise<number>;
|
|
16
|
-
getNumberOfSeriesWithMarkers(): Promise<number>;
|
|
17
|
-
getNumberOfVisibleSeriesInLayer(layerName: string): Promise<number>;
|
|
18
|
-
getMarkerSeriesById(seriesId: string): Promise<MarkerSeriesAtom | undefined>;
|
|
19
|
-
getAllVisibleDataSeries<T extends SeriesAtom>(atomClass: IAtomClass<T>): Promise<T[]>;
|
|
20
|
-
getAllVisibleBackgroundSeries<T extends SeriesAtom>(atomClass: IAtomClass<T>): Promise<T[]>;
|
|
21
|
-
getAllVisibleSeriesInLayer<T extends SeriesAtom>(layerName: string, atomClass: IAtomClass<T>): Promise<T[]>;
|
|
22
|
-
getDataSeriesById<T extends SeriesAtom>(atomClass: IAtomClass<T>, seriesId: string): Promise<T | undefined>;
|
|
23
|
-
getBackgroundSeriesById<T extends SeriesAtom>(atomClass: IAtomClass<T>, seriesId: string): Promise<T | undefined>;
|
|
24
|
-
getSeriesInLayerById<T extends SeriesAtom>(atomClass: IAtomClass<T>, layerName: string, seriesId: string): Promise<T | undefined>;
|
|
25
|
-
clickElementByCoordinates(coordinates: ILocation): Promise<void>;
|
|
26
|
-
private isVisible;
|
|
27
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.ChartAtom = void 0;
|
|
23
|
-
const protractor_1 = require("protractor");
|
|
24
|
-
const atoms_1 = require("@nova-ui/bits/sdk/atoms");
|
|
25
|
-
const lasagna_atom_1 = require("./lasagna.atom");
|
|
26
|
-
const marker_series_atom_1 = require("./marker-series.atom");
|
|
27
|
-
class ChartAtom extends atoms_1.Atom {
|
|
28
|
-
static CSS_CLASS = "nui-chart";
|
|
29
|
-
SERIES_CLASS = "data-series-container";
|
|
30
|
-
grid; // grid container
|
|
31
|
-
lasagna;
|
|
32
|
-
constructor(rootElement) {
|
|
33
|
-
super(rootElement);
|
|
34
|
-
this.grid = rootElement.element(protractor_1.by.className("nui-chart-grid"));
|
|
35
|
-
this.lasagna = atoms_1.Atom.findIn(lasagna_atom_1.LasagnaAtom, this.grid);
|
|
36
|
-
}
|
|
37
|
-
async getLayer(name) {
|
|
38
|
-
return this.lasagna.layer(name);
|
|
39
|
-
}
|
|
40
|
-
async getNumberOfVisibleBackgroundSeries() {
|
|
41
|
-
return await this.getNumberOfVisibleSeriesInLayer("background");
|
|
42
|
-
}
|
|
43
|
-
async getNumberOfVisibleDataSeries() {
|
|
44
|
-
return await this.getNumberOfVisibleSeriesInLayer("data");
|
|
45
|
-
}
|
|
46
|
-
async getNumberOfSeriesWithMarkers() {
|
|
47
|
-
return await this.getNumberOfVisibleSeriesInLayer("foreground");
|
|
48
|
-
}
|
|
49
|
-
async getNumberOfVisibleSeriesInLayer(layerName) {
|
|
50
|
-
const [layer] = await this.getLayer(layerName);
|
|
51
|
-
if (!layer) {
|
|
52
|
-
return 0;
|
|
53
|
-
}
|
|
54
|
-
return await layer
|
|
55
|
-
.all(protractor_1.by.className(this.SERIES_CLASS))
|
|
56
|
-
.filter(this.isVisible)
|
|
57
|
-
.count();
|
|
58
|
-
}
|
|
59
|
-
async getMarkerSeriesById(seriesId) {
|
|
60
|
-
const [layer] = await this.getLayer("foreground");
|
|
61
|
-
return layer
|
|
62
|
-
? atoms_1.Atom.findIn(marker_series_atom_1.MarkerSeriesAtom, layer.element(protractor_1.by.id(`foreground-${seriesId}`)))
|
|
63
|
-
: undefined;
|
|
64
|
-
}
|
|
65
|
-
async getAllVisibleDataSeries(atomClass) {
|
|
66
|
-
return this.getAllVisibleSeriesInLayer("data", atomClass);
|
|
67
|
-
}
|
|
68
|
-
async getAllVisibleBackgroundSeries(atomClass) {
|
|
69
|
-
return this.getAllVisibleSeriesInLayer("background", atomClass);
|
|
70
|
-
}
|
|
71
|
-
async getAllVisibleSeriesInLayer(layerName, atomClass) {
|
|
72
|
-
const [layer] = await this.getLayer(layerName);
|
|
73
|
-
if (!layer) {
|
|
74
|
-
return [];
|
|
75
|
-
}
|
|
76
|
-
const visibleSeries = layer
|
|
77
|
-
.all(atoms_1.Atom.getLocator(atomClass))
|
|
78
|
-
.filter(async (e) => this.isVisible(e));
|
|
79
|
-
const seriesIds = await visibleSeries.map(async (series) => series?.getAttribute("id"));
|
|
80
|
-
return seriesIds.map((seriesId) => atoms_1.Atom.findIn(atomClass, layer.element(protractor_1.by.id(seriesId))));
|
|
81
|
-
}
|
|
82
|
-
async getDataSeriesById(atomClass, seriesId) {
|
|
83
|
-
return this.getSeriesInLayerById(atomClass, "data", seriesId);
|
|
84
|
-
}
|
|
85
|
-
async getBackgroundSeriesById(atomClass, seriesId) {
|
|
86
|
-
return this.getSeriesInLayerById(atomClass, "background", seriesId);
|
|
87
|
-
}
|
|
88
|
-
async getSeriesInLayerById(atomClass, layerName, seriesId) {
|
|
89
|
-
const [layer] = await this.getLayer(layerName);
|
|
90
|
-
if (layer) {
|
|
91
|
-
return atoms_1.Atom.findIn(atomClass, layer.element(protractor_1.by.id(`${layerName}-${seriesId}`)));
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
async clickElementByCoordinates(coordinates) {
|
|
95
|
-
return protractor_1.browser.actions().mouseMove(coordinates).click().perform();
|
|
96
|
-
}
|
|
97
|
-
async isVisible(el) {
|
|
98
|
-
const visibility = await el.getCssValue("visibility");
|
|
99
|
-
const opacity = parseFloat(await el.getCssValue("opacity"));
|
|
100
|
-
return visibility !== "hidden" && opacity > 0;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.ChartAtom = ChartAtom;
|
|
104
|
-
//# sourceMappingURL=chart.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chart.atom.js","sourceRoot":"","sources":["../../../../../spec/chart/atoms/chart.atom.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.LasagnaAtom = void 0;
|
|
23
|
-
const protractor_1 = require("protractor");
|
|
24
|
-
const atoms_1 = require("@nova-ui/bits/sdk/atoms");
|
|
25
|
-
class LasagnaAtom extends atoms_1.Atom {
|
|
26
|
-
static CSS_CLASS = "lasagna-container";
|
|
27
|
-
layerPrefix = "lasagna-layer-";
|
|
28
|
-
async layer(name) {
|
|
29
|
-
const matchingLayers = this.getElement().all(protractor_1.by.className(`${this.layerPrefix}${name}`));
|
|
30
|
-
const count = await matchingLayers.count();
|
|
31
|
-
if (count === 0) {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
return [matchingLayers.first()];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.LasagnaAtom = LasagnaAtom;
|
|
38
|
-
//# sourceMappingURL=lasagna.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lasagna.atom.js","sourceRoot":"","sources":["../../../../../spec/chart/atoms/lasagna.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,2CAA+C;AAE/C,mDAA+C;AAE/C,MAAa,WAAY,SAAQ,YAAI;IAC1B,MAAM,CAAC,SAAS,GAAG,mBAAmB,CAAC;IACtC,WAAW,GAAG,gBAAgB,CAAC;IAChC,KAAK,CAAC,KAAK,CAAC,IAAY;QAC3B,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CACxC,eAAE,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,EAAE,CAAC,CAC7C,CAAC;QACF,MAAM,KAAK,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,CAAC;QAC3C,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;YACd,OAAO,EAAE,CAAC;QACd,CAAC;QACD,OAAO,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC;IACpC,CAAC;;AAZL,kCAaC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ILocation } from "selenium-webdriver";
|
|
2
|
-
import { SeriesAtom } from "./series.atom";
|
|
3
|
-
export declare class LineSeriesAtom extends SeriesAtom {
|
|
4
|
-
private path;
|
|
5
|
-
getColor(): Promise<string>;
|
|
6
|
-
getThickness(): Promise<string>;
|
|
7
|
-
getPoints(): Promise<ILocation[]>;
|
|
8
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.LineSeriesAtom = void 0;
|
|
23
|
-
const protractor_1 = require("protractor");
|
|
24
|
-
const series_atom_1 = require("./series.atom");
|
|
25
|
-
class LineSeriesAtom extends series_atom_1.SeriesAtom {
|
|
26
|
-
path = this.root.element(protractor_1.by.tagName("path"));
|
|
27
|
-
async getColor() {
|
|
28
|
-
return this.path.getAttribute("stroke");
|
|
29
|
-
}
|
|
30
|
-
async getThickness() {
|
|
31
|
-
return this.path.getAttribute("stroke-width");
|
|
32
|
-
}
|
|
33
|
-
/*
|
|
34
|
-
* This will work only for lines with `curveType: curveLinear`
|
|
35
|
-
* It expects path to use absolute coordinates in `d` property
|
|
36
|
-
*/
|
|
37
|
-
async getPoints() {
|
|
38
|
-
const d = await this.path.getAttribute("d");
|
|
39
|
-
const dSegments = d // it will look like "M0,75L100,10L200,90L300,45L400,70"
|
|
40
|
-
.substring(1) // trimming first "M"
|
|
41
|
-
.split("L"); // splitting by "L"
|
|
42
|
-
return dSegments.map((segment) => {
|
|
43
|
-
const coords = segment.split(",");
|
|
44
|
-
return {
|
|
45
|
-
x: parseFloat(coords[0]),
|
|
46
|
-
y: parseFloat(coords[1]),
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.LineSeriesAtom = LineSeriesAtom;
|
|
52
|
-
//# sourceMappingURL=line-series.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line-series.atom.js","sourceRoot":"","sources":["../../../../../spec/chart/atoms/line-series.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,2CAA+C;AAG/C,+CAA2C;AAE3C,MAAa,cAAe,SAAQ,wBAAU;IAClC,IAAI,GAAkB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAE7D,KAAK,CAAC,QAAQ;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAEM,KAAK,CAAC,YAAY;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,SAAS;QAClB,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAC5C,MAAM,SAAS,GAAG,CAAC,CAAC,wDAAwD;aACvE,SAAS,CAAC,CAAC,CAAC,CAAC,qBAAqB;aAClC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,mBAAmB;QACpC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAClC,OAAO;gBACH,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBACxB,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;aAC3B,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AA5BD,wCA4BC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.MarkerSeriesAtom = void 0;
|
|
23
|
-
const atoms_1 = require("@nova-ui/bits/sdk/atoms");
|
|
24
|
-
const marker_atom_1 = require("./marker.atom");
|
|
25
|
-
const series_atom_1 = require("./series.atom");
|
|
26
|
-
class MarkerSeriesAtom extends series_atom_1.SeriesAtom {
|
|
27
|
-
async getMarkerCount() {
|
|
28
|
-
return atoms_1.Atom.findCount(marker_atom_1.MarkerAtom, this.root);
|
|
29
|
-
}
|
|
30
|
-
getMarker(index) {
|
|
31
|
-
return atoms_1.Atom.findIn(marker_atom_1.MarkerAtom, this.root, index);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.MarkerSeriesAtom = MarkerSeriesAtom;
|
|
35
|
-
//# sourceMappingURL=marker-series.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marker-series.atom.js","sourceRoot":"","sources":["../../../../../spec/chart/atoms/marker-series.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,mDAA+C;AAE/C,+CAA2C;AAC3C,+CAA2C;AAE3C,MAAa,gBAAiB,SAAQ,wBAAU;IACrC,KAAK,CAAC,cAAc;QACvB,OAAO,YAAI,CAAC,SAAS,CAAC,wBAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACM,SAAS,CAAC,KAAa;QAC1B,OAAO,YAAI,CAAC,MAAM,CAAC,wBAAU,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;CACJ;AAPD,4CAOC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.MarkerAtom = void 0;
|
|
23
|
-
const protractor_1 = require("protractor");
|
|
24
|
-
const atoms_1 = require("@nova-ui/bits/sdk/atoms");
|
|
25
|
-
class MarkerAtom extends atoms_1.Atom {
|
|
26
|
-
static CSS_CLASS = "marker";
|
|
27
|
-
root = this.getElement();
|
|
28
|
-
async getColor() {
|
|
29
|
-
return this.root
|
|
30
|
-
.all(protractor_1.by.css(`${atoms_1.Atom.getSelector(MarkerAtom)} > g`))
|
|
31
|
-
.first()
|
|
32
|
-
.getAttribute("fill");
|
|
33
|
-
}
|
|
34
|
-
async getPosition() {
|
|
35
|
-
const transform = await this.root.getCssValue("transform"); // it will look like "matrix(1, 0, 0, 1, 400, 15)"
|
|
36
|
-
const values = transform.match(/(-?[0-9\.]+)/g) || [];
|
|
37
|
-
return {
|
|
38
|
-
x: parseFloat(values[4]),
|
|
39
|
-
y: parseFloat(values[5]),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.MarkerAtom = MarkerAtom;
|
|
44
|
-
//# sourceMappingURL=marker.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marker.atom.js","sourceRoot":"","sources":["../../../../../spec/chart/atoms/marker.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;AAEjB,2CAA+C;AAG/C,mDAA+C;AAE/C,MAAa,UAAW,SAAQ,YAAI;IACzB,MAAM,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC3B,IAAI,GAAkB,IAAI,CAAC,UAAU,EAAE,CAAC;IAEzC,KAAK,CAAC,QAAQ;QACjB,OAAO,IAAI,CAAC,IAAI;aACX,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,GAAG,YAAI,CAAC,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;aAClD,KAAK,EAAE;aACP,YAAY,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAEM,KAAK,CAAC,WAAW;QACpB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,kDAAkD;QAC9G,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QACtD,OAAO;YACH,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACxB,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;SAC3B,CAAC;IACN,CAAC;;AAlBL,gCAmBC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SeriesAtom } from "./series.atom";
|
|
2
|
-
export declare class RadialSeriesAtom extends SeriesAtom {
|
|
3
|
-
private path;
|
|
4
|
-
/**
|
|
5
|
-
* TODO: evaluate the centroid of the arc to select a proper arc. We can take this as an example:
|
|
6
|
-
* https://stackoverflow.com/questions/9017100/calculate-center-of-svg-arc
|
|
7
|
-
* The regexp matchers below are intended to be used in parseArcParams() method to parse the path of the svg to gather the parameters of the arc.
|
|
8
|
-
*/
|
|
9
|
-
private firstCurveMatcher;
|
|
10
|
-
private secondCurveMatcher;
|
|
11
|
-
parseArcParams(path: string, matcher: RegExp): number[];
|
|
12
|
-
}
|