@unovis/angular 1.7.0-Phoenix.0 → 1.7.0-csp.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 +4 -0
- package/dist/lib/README.md +4 -0
- package/dist/lib/fesm2022/unovis-angular.mjs +6639 -0
- package/dist/lib/fesm2022/unovis-angular.mjs.map +1 -0
- package/dist/lib/index.d.ts +3878 -0
- package/package.json +47 -40
- package/dist/lib/bundles/unovis-angular.umd.js +0 -3546
- package/dist/lib/bundles/unovis-angular.umd.js.map +0 -1
- package/dist/lib/components/annotations/annotations.component.d.ts +0 -73
- package/dist/lib/components/annotations/annotations.module.d.ts +0 -7
- package/dist/lib/components/area/area.component.d.ts +0 -96
- package/dist/lib/components/area/area.module.d.ts +0 -7
- package/dist/lib/components/axis/axis.component.d.ts +0 -123
- package/dist/lib/components/axis/axis.module.d.ts +0 -7
- package/dist/lib/components/brush/brush.component.d.ts +0 -83
- package/dist/lib/components/brush/brush.module.d.ts +0 -7
- package/dist/lib/components/chord-diagram/chord-diagram.component.d.ts +0 -91
- package/dist/lib/components/chord-diagram/chord-diagram.module.d.ts +0 -7
- package/dist/lib/components/crosshair/crosshair.component.d.ts +0 -124
- package/dist/lib/components/crosshair/crosshair.module.d.ts +0 -7
- package/dist/lib/components/donut/donut.component.d.ts +0 -99
- package/dist/lib/components/donut/donut.module.d.ts +0 -7
- package/dist/lib/components/free-brush/free-brush.component.d.ts +0 -85
- package/dist/lib/components/free-brush/free-brush.module.d.ts +0 -7
- package/dist/lib/components/graph/graph.component.d.ts +0 -296
- package/dist/lib/components/graph/graph.module.d.ts +0 -7
- package/dist/lib/components/grouped-bar/grouped-bar.component.d.ts +0 -101
- package/dist/lib/components/grouped-bar/grouped-bar.module.d.ts +0 -7
- package/dist/lib/components/line/line.component.d.ts +0 -102
- package/dist/lib/components/line/line.module.d.ts +0 -7
- package/dist/lib/components/nested-donut/nested-donut.component.d.ts +0 -107
- package/dist/lib/components/nested-donut/nested-donut.module.d.ts +0 -7
- package/dist/lib/components/plotband/plotband.component.d.ts +0 -81
- package/dist/lib/components/plotband/plotband.module.d.ts +0 -7
- package/dist/lib/components/plotline/plotline.component.d.ts +0 -87
- package/dist/lib/components/plotline/plotline.module.d.ts +0 -7
- package/dist/lib/components/sankey/sankey.component.d.ts +0 -167
- package/dist/lib/components/sankey/sankey.module.d.ts +0 -7
- package/dist/lib/components/scatter/scatter.component.d.ts +0 -110
- package/dist/lib/components/scatter/scatter.module.d.ts +0 -7
- package/dist/lib/components/stacked-bar/stacked-bar.component.d.ts +0 -103
- package/dist/lib/components/stacked-bar/stacked-bar.module.d.ts +0 -7
- package/dist/lib/components/timeline/timeline.component.d.ts +0 -153
- package/dist/lib/components/timeline/timeline.module.d.ts +0 -7
- package/dist/lib/components/tooltip/tooltip.component.d.ts +0 -73
- package/dist/lib/components/tooltip/tooltip.module.d.ts +0 -7
- package/dist/lib/components/topojson-map/topojson-map.component.d.ts +0 -125
- package/dist/lib/components/topojson-map/topojson-map.module.d.ts +0 -7
- package/dist/lib/components/xy-labels/xy-labels.component.d.ts +0 -107
- package/dist/lib/components/xy-labels/xy-labels.module.d.ts +0 -7
- package/dist/lib/components.d.ts +0 -51
- package/dist/lib/containers/single-container/single-container.component.d.ts +0 -46
- package/dist/lib/containers/single-container/single-container.module.d.ts +0 -7
- package/dist/lib/containers/xy-container/xy-container.component.d.ts +0 -101
- package/dist/lib/containers/xy-container/xy-container.module.d.ts +0 -7
- package/dist/lib/containers.d.ts +0 -4
- package/dist/lib/core/core-component.d.ts +0 -6
- package/dist/lib/core/generic-component.d.ts +0 -3
- package/dist/lib/core/index.d.ts +0 -3
- package/dist/lib/core/xy-component.d.ts +0 -6
- package/dist/lib/esm2015/components/annotations/annotations.component.js +0 -43
- package/dist/lib/esm2015/components/annotations/annotations.module.js +0 -18
- package/dist/lib/esm2015/components/area/area.component.js +0 -77
- package/dist/lib/esm2015/components/area/area.module.js +0 -18
- package/dist/lib/esm2015/components/axis/axis.component.js +0 -109
- package/dist/lib/esm2015/components/axis/axis.module.js +0 -18
- package/dist/lib/esm2015/components/brush/brush.component.js +0 -69
- package/dist/lib/esm2015/components/brush/brush.module.js +0 -18
- package/dist/lib/esm2015/components/chord-diagram/chord-diagram.component.js +0 -79
- package/dist/lib/esm2015/components/chord-diagram/chord-diagram.module.js +0 -18
- package/dist/lib/esm2015/components/crosshair/crosshair.component.js +0 -91
- package/dist/lib/esm2015/components/crosshair/crosshair.module.js +0 -18
- package/dist/lib/esm2015/components/donut/donut.component.js +0 -87
- package/dist/lib/esm2015/components/donut/donut.module.js +0 -18
- package/dist/lib/esm2015/components/free-brush/free-brush.component.js +0 -69
- package/dist/lib/esm2015/components/free-brush/free-brush.module.js +0 -18
- package/dist/lib/esm2015/components/graph/graph.component.js +0 -231
- package/dist/lib/esm2015/components/graph/graph.module.js +0 -18
- package/dist/lib/esm2015/components/grouped-bar/grouped-bar.component.js +0 -83
- package/dist/lib/esm2015/components/grouped-bar/grouped-bar.module.js +0 -18
- package/dist/lib/esm2015/components/line/line.component.js +0 -79
- package/dist/lib/esm2015/components/line/line.module.js +0 -18
- package/dist/lib/esm2015/components/nested-donut/nested-donut.component.js +0 -89
- package/dist/lib/esm2015/components/nested-donut/nested-donut.module.js +0 -18
- package/dist/lib/esm2015/components/plotband/plotband.component.js +0 -61
- package/dist/lib/esm2015/components/plotband/plotband.module.js +0 -18
- package/dist/lib/esm2015/components/plotline/plotline.component.js +0 -63
- package/dist/lib/esm2015/components/plotline/plotline.module.js +0 -18
- package/dist/lib/esm2015/components/sankey/sankey.component.js +0 -139
- package/dist/lib/esm2015/components/sankey/sankey.module.js +0 -18
- package/dist/lib/esm2015/components/scatter/scatter.component.js +0 -89
- package/dist/lib/esm2015/components/scatter/scatter.module.js +0 -18
- package/dist/lib/esm2015/components/stacked-bar/stacked-bar.component.js +0 -83
- package/dist/lib/esm2015/components/stacked-bar/stacked-bar.module.js +0 -18
- package/dist/lib/esm2015/components/timeline/timeline.component.js +0 -131
- package/dist/lib/esm2015/components/timeline/timeline.module.js +0 -18
- package/dist/lib/esm2015/components/tooltip/tooltip.component.js +0 -61
- package/dist/lib/esm2015/components/tooltip/tooltip.module.js +0 -18
- package/dist/lib/esm2015/components/topojson-map/topojson-map.component.js +0 -111
- package/dist/lib/esm2015/components/topojson-map/topojson-map.module.js +0 -18
- package/dist/lib/esm2015/components/xy-labels/xy-labels.component.js +0 -91
- package/dist/lib/esm2015/components/xy-labels/xy-labels.module.js +0 -18
- package/dist/lib/esm2015/components.js +0 -55
- package/dist/lib/esm2015/containers/single-container/single-container.component.js +0 -82
- package/dist/lib/esm2015/containers/single-container/single-container.module.js +0 -17
- package/dist/lib/esm2015/containers/xy-container/xy-container.component.js +0 -177
- package/dist/lib/esm2015/containers/xy-container/xy-container.module.js +0 -17
- package/dist/lib/esm2015/containers.js +0 -5
- package/dist/lib/esm2015/core/core-component.js +0 -4
- package/dist/lib/esm2015/core/generic-component.js +0 -3
- package/dist/lib/esm2015/core/index.js +0 -4
- package/dist/lib/esm2015/core/xy-component.js +0 -4
- package/dist/lib/esm2015/html-components/bullet-legend/bullet-legend.component.js +0 -56
- package/dist/lib/esm2015/html-components/bullet-legend/bullet-legend.module.js +0 -18
- package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.component.js +0 -170
- package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.module.js +0 -18
- package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.component.js +0 -144
- package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.module.js +0 -18
- package/dist/lib/esm2015/html-components/rolling-pin-legend/rolling-pin-legend.component.js +0 -48
- package/dist/lib/esm2015/html-components/rolling-pin-legend/rolling-pin-legend.module.js +0 -18
- package/dist/lib/esm2015/public-api.js +0 -3
- package/dist/lib/esm2015/unovis-angular.js +0 -5
- package/dist/lib/fesm2015/unovis-angular.js +0 -2922
- package/dist/lib/fesm2015/unovis-angular.js.map +0 -1
- package/dist/lib/html-components/bullet-legend/bullet-legend.component.d.ts +0 -42
- package/dist/lib/html-components/bullet-legend/bullet-legend.module.d.ts +0 -7
- package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.component.d.ts +0 -212
- package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.module.d.ts +0 -7
- package/dist/lib/html-components/leaflet-map/leaflet-map.component.d.ts +0 -183
- package/dist/lib/html-components/leaflet-map/leaflet-map.module.d.ts +0 -7
- package/dist/lib/html-components/rolling-pin-legend/rolling-pin-legend.component.d.ts +0 -24
- package/dist/lib/html-components/rolling-pin-legend/rolling-pin-legend.module.d.ts +0 -7
- package/dist/lib/package.json +0 -53
- package/dist/lib/public-api.d.ts +0 -2
- package/dist/lib/unovis-angular.d.ts +0 -5
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Line, LineConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, CurveType, GenericAccessor, StringAccessor } from '@unovis/ts';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VisLineComponent<Datum> implements LineConfigInterface<Datum>, AfterViewInit {
|
|
5
|
-
/** Animation duration of the data update transitions in milliseconds. Default: `600` */
|
|
6
|
-
duration?: number;
|
|
7
|
-
/** Events configuration. An object containing properties in the following format:
|
|
8
|
-
*
|
|
9
|
-
* ```
|
|
10
|
-
* {
|
|
11
|
-
* \[selectorString]: {
|
|
12
|
-
* \[eventType]: callbackFunction
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
* e.g.:
|
|
17
|
-
* ```
|
|
18
|
-
* {
|
|
19
|
-
* \[Area.selectors.area]: {
|
|
20
|
-
* click: (d) => console.log("Clicked Area", d)
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ``` */
|
|
24
|
-
events?: {
|
|
25
|
-
[selector: string]: {
|
|
26
|
-
[eventType in VisEventType]?: VisEventCallback;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
|
|
30
|
-
* when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
|
|
31
|
-
*
|
|
32
|
-
* ```
|
|
33
|
-
* {
|
|
34
|
-
* \[selectorString]: {
|
|
35
|
-
* \[attributeName]: attribute constant value or accessor function
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
* e.g.:
|
|
40
|
-
* ```
|
|
41
|
-
* {
|
|
42
|
-
* \[Area.selectors.area]: {
|
|
43
|
-
* "test-value": d => d.value
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
46
|
-
* ``` */
|
|
47
|
-
attributes?: {
|
|
48
|
-
[selector: string]: {
|
|
49
|
-
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/** Accessor function for getting the values along the X axis. Default: `undefined` */
|
|
53
|
-
x: NumericAccessor<Datum>;
|
|
54
|
-
/** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
|
|
55
|
-
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
56
|
-
/** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
|
|
57
|
-
id?: ((d: Datum, i: number, ...rest: any[]) => string);
|
|
58
|
-
/** Line color accessor function. The whole data array will be passed as the first argument. Default: `undefined` */
|
|
59
|
-
color?: ColorAccessor<Datum[]>;
|
|
60
|
-
/** Scale for X dimension, e.g. Scale.scaleLinear(). If you set xScale you'll be responsible for setting it's `domain` and `range` as well.
|
|
61
|
-
* Only continuous scales are supported.
|
|
62
|
-
* Default: `undefined` */
|
|
63
|
-
xScale?: ContinuousScale;
|
|
64
|
-
/** Scale for Y dimension, e.g. Scale.scaleLinear(). If you set yScale you'll be responsible for setting it's `domain` and `range` as well.
|
|
65
|
-
* Only continuous scales are supported.
|
|
66
|
-
* Default: `undefined` */
|
|
67
|
-
yScale?: ContinuousScale;
|
|
68
|
-
/** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
|
|
69
|
-
* This property can be useful when you want pass individual data to a component and you don't want it to affect
|
|
70
|
-
* the scales of the chart.
|
|
71
|
-
* Default: `false` */
|
|
72
|
-
excludeFromDomainCalculation?: boolean;
|
|
73
|
-
/** Curve type from the CurveType enum. Default: `CurveType.MonotoneX` */
|
|
74
|
-
curveType?: CurveType;
|
|
75
|
-
/** Line width in pixels. Default: `2` */
|
|
76
|
-
lineWidth?: number;
|
|
77
|
-
/** Line dash array, see SVG's stroke-dasharray. Default: `undefined` */
|
|
78
|
-
lineDashArray?: GenericAccessor<number[], Datum[]>;
|
|
79
|
-
/** When a data point has an `undefined`, `NaN`, or other no-data value, they'll be replaced with a value specified here.
|
|
80
|
-
* Setting this property to `undefined` will lead to having the line break when there's no data, and continue when
|
|
81
|
-
* the data appears again. If you set it to `null`, the values will be treated as numerical `0` values and the line
|
|
82
|
-
* won't break; however if the whole dataset consists of only `null`s, the line won't be displayed.
|
|
83
|
-
* Default: `undefined` */
|
|
84
|
-
fallbackValue?: number | undefined | null;
|
|
85
|
-
/** Highlight line on hover. Default: `false` */
|
|
86
|
-
highlightOnHover?: boolean;
|
|
87
|
-
/** Optional link cursor. Default: `null` */
|
|
88
|
-
cursor?: StringAccessor<Datum[]>;
|
|
89
|
-
/** Enable interpolated line where data points are missing or fallbackValue is used.
|
|
90
|
-
* You can customize the line's appearance with `--vis-line-gapfill-stroke-dasharray`
|
|
91
|
-
* and `--vis-line-gapfill-stroke-opacity` CSS variables.
|
|
92
|
-
* Default: `false` */
|
|
93
|
-
interpolateMissingData?: boolean;
|
|
94
|
-
data: Datum[];
|
|
95
|
-
component: Line<Datum> | undefined;
|
|
96
|
-
componentContainer: ContainerCore | undefined;
|
|
97
|
-
ngAfterViewInit(): void;
|
|
98
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
99
|
-
private getConfig;
|
|
100
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisLineComponent<any>, never>;
|
|
101
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisLineComponent<any>, "vis-line", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "curveType": "curveType"; "lineWidth": "lineWidth"; "lineDashArray": "lineDashArray"; "fallbackValue": "fallbackValue"; "highlightOnHover": "highlightOnHover"; "cursor": "cursor"; "interpolateMissingData": "interpolateMissingData"; "data": "data"; }, {}, never, never>;
|
|
102
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./line.component";
|
|
3
|
-
export declare class VisLineModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisLineModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisLineModule, [typeof i1.VisLineComponent], never, [typeof i1.VisLineComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisLineModule>;
|
|
7
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { NestedDonut, NestedDonutConfigInterface, ContainerCore, VisEventType, VisEventCallback, NestedDonutDirection, NumericAccessor, NestedDonutSegment, StringAccessor, GenericAccessor, NestedDonutLayerSettings, ColorAccessor } from '@unovis/ts';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VisNestedDonutComponent<Datum> implements NestedDonutConfigInterface<Datum>, AfterViewInit {
|
|
5
|
-
/** Animation duration of the data update transitions in milliseconds. Default: `600` */
|
|
6
|
-
duration?: number;
|
|
7
|
-
/** Events configuration. An object containing properties in the following format:
|
|
8
|
-
*
|
|
9
|
-
* ```
|
|
10
|
-
* {
|
|
11
|
-
* \[selectorString]: {
|
|
12
|
-
* \[eventType]: callbackFunction
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
* e.g.:
|
|
17
|
-
* ```
|
|
18
|
-
* {
|
|
19
|
-
* \[Area.selectors.area]: {
|
|
20
|
-
* click: (d) => console.log("Clicked Area", d)
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ``` */
|
|
24
|
-
events?: {
|
|
25
|
-
[selector: string]: {
|
|
26
|
-
[eventType in VisEventType]?: VisEventCallback;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
|
|
30
|
-
* when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
|
|
31
|
-
*
|
|
32
|
-
* ```
|
|
33
|
-
* {
|
|
34
|
-
* \[selectorString]: {
|
|
35
|
-
* \[attributeName]: attribute constant value or accessor function
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
* e.g.:
|
|
40
|
-
* ```
|
|
41
|
-
* {
|
|
42
|
-
* \[Area.selectors.area]: {
|
|
43
|
-
* "test-value": d => d.value
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
46
|
-
* ``` */
|
|
47
|
-
attributes?: {
|
|
48
|
-
[selector: string]: {
|
|
49
|
-
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/** Diagram angle range. Default: `[0, 2 * Math.PI]` */
|
|
53
|
-
angleRange?: [number, number];
|
|
54
|
-
/** Direction of hierarchy flow from root to leaf.
|
|
55
|
-
* `NestedDonutDirection.Inwards` starts from the outer most radius and works towards center
|
|
56
|
-
* `NestedDonutDirection.Outwards` starts from the inner most radius the consecutive layers outward.
|
|
57
|
-
* Default: `NestedDonutDirection.Inwards` */
|
|
58
|
-
direction?: NestedDonutDirection | string;
|
|
59
|
-
value?: NumericAccessor<Datum>;
|
|
60
|
-
/** Central label text. Default: `undefined` */
|
|
61
|
-
centralLabel?: string;
|
|
62
|
-
/** Central sub-label accessor function or text. Default: `undefined` */
|
|
63
|
-
centralSubLabel?: string;
|
|
64
|
-
/** Enables wrapping for the sub-label. Default: `true` */
|
|
65
|
-
centralSubLabelWrap?: boolean;
|
|
66
|
-
/** Show donut background. The color is configurable via
|
|
67
|
-
* the `--vis-nested-donut-background-color` and `--vis-dark-nested-donut-background-color` CSS variables.
|
|
68
|
-
* Default: `false` */
|
|
69
|
-
showBackground?: boolean;
|
|
70
|
-
/** Sort function for segments. Default `undefined` */
|
|
71
|
-
sort?: (a: NestedDonutSegment<Datum>, b: NestedDonutSegment<Datum>) => number;
|
|
72
|
-
/** Array of accessor functions to defined the nested groups. Default: `[]` */
|
|
73
|
-
layers: StringAccessor<Datum>[];
|
|
74
|
-
/** Configuration properties for individual layers. Accepts an accessor or constant of type:
|
|
75
|
-
* {
|
|
76
|
-
* backgroundColor?: string;
|
|
77
|
-
* labelAlignment?: NestedDonutSegmentLabelAlignment;
|
|
78
|
-
* width?: number | string;
|
|
79
|
-
* } */
|
|
80
|
-
layerSettings?: GenericAccessor<NestedDonutLayerSettings, number>;
|
|
81
|
-
layerPadding?: number;
|
|
82
|
-
/** Corner Radius. Default: `0` */
|
|
83
|
-
cornerRadius?: number;
|
|
84
|
-
/** Angular size for empty segments in radians. Default: `Math.PI / 180` */
|
|
85
|
-
emptySegmentAngle?: number;
|
|
86
|
-
/** Hide segment labels when they don't fit. Default: `true` */
|
|
87
|
-
hideOverflowingSegmentLabels?: boolean;
|
|
88
|
-
/** Color accessor function for segments. Default: `undefined` */
|
|
89
|
-
segmentColor?: ColorAccessor<NestedDonutSegment<Datum>>;
|
|
90
|
-
/** Segment label accessor function. Default `undefined` */
|
|
91
|
-
segmentLabel?: StringAccessor<NestedDonutSegment<Datum>>;
|
|
92
|
-
/** Color accessor function for segment labels */
|
|
93
|
-
segmentLabelColor?: ColorAccessor<NestedDonutSegment<Datum>>;
|
|
94
|
-
/** When true, the component will display empty segments (the ones that have `0` values) as tiny slices.
|
|
95
|
-
* Default: `false` */
|
|
96
|
-
showEmptySegments?: boolean;
|
|
97
|
-
/** Show labels for individual segments. Default: `true` */
|
|
98
|
-
showSegmentLabels?: boolean;
|
|
99
|
-
data: Datum[];
|
|
100
|
-
component: NestedDonut<Datum> | undefined;
|
|
101
|
-
componentContainer: ContainerCore | undefined;
|
|
102
|
-
ngAfterViewInit(): void;
|
|
103
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
104
|
-
private getConfig;
|
|
105
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisNestedDonutComponent<any>, never>;
|
|
106
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisNestedDonutComponent<any>, "vis-nested-donut", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "angleRange": "angleRange"; "direction": "direction"; "value": "value"; "centralLabel": "centralLabel"; "centralSubLabel": "centralSubLabel"; "centralSubLabelWrap": "centralSubLabelWrap"; "showBackground": "showBackground"; "sort": "sort"; "layers": "layers"; "layerSettings": "layerSettings"; "layerPadding": "layerPadding"; "cornerRadius": "cornerRadius"; "emptySegmentAngle": "emptySegmentAngle"; "hideOverflowingSegmentLabels": "hideOverflowingSegmentLabels"; "segmentColor": "segmentColor"; "segmentLabel": "segmentLabel"; "segmentLabelColor": "segmentLabelColor"; "showEmptySegments": "showEmptySegments"; "showSegmentLabels": "showSegmentLabels"; "data": "data"; }, {}, never, never>;
|
|
107
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./nested-donut.component";
|
|
3
|
-
export declare class VisNestedDonutModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisNestedDonutModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisNestedDonutModule, [typeof i1.VisNestedDonutComponent], never, [typeof i1.VisNestedDonutComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisNestedDonutModule>;
|
|
7
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Plotband, PlotbandConfigInterface, ContainerCore, VisEventType, VisEventCallback, AxisType, PlotbandLabelPosition, PlotbandLabelOrientation } from '@unovis/ts';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VisPlotbandComponent<Datum> implements PlotbandConfigInterface<Datum>, AfterViewInit {
|
|
5
|
-
/** Duration of the animation in milliseconds. */
|
|
6
|
-
duration?: number;
|
|
7
|
-
/** Events configuration. An object containing properties in the following format:
|
|
8
|
-
*
|
|
9
|
-
* ```
|
|
10
|
-
* {
|
|
11
|
-
* \[selectorString]: {
|
|
12
|
-
* \[eventType]: callbackFunction
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
* e.g.:
|
|
17
|
-
* ```
|
|
18
|
-
* {
|
|
19
|
-
* \[Area.selectors.area]: {
|
|
20
|
-
* click: (d) => console.log("Clicked Area", d)
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ``` */
|
|
24
|
-
events?: {
|
|
25
|
-
[selector: string]: {
|
|
26
|
-
[eventType in VisEventType]?: VisEventCallback;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
|
|
30
|
-
* when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
|
|
31
|
-
*
|
|
32
|
-
* ```
|
|
33
|
-
* {
|
|
34
|
-
* \[selectorString]: {
|
|
35
|
-
* \[attributeName]: attribute constant value or accessor function
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
* e.g.:
|
|
40
|
-
* ```
|
|
41
|
-
* {
|
|
42
|
-
* \[Area.selectors.area]: {
|
|
43
|
-
* "test-value": d => d.value
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
46
|
-
* ``` */
|
|
47
|
-
attributes?: {
|
|
48
|
-
[selector: string]: {
|
|
49
|
-
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/** Axis to draw the plotband on. */
|
|
53
|
-
axis?: AxisType;
|
|
54
|
-
/** Start coordinate for the plotband. */
|
|
55
|
-
from?: number | null | undefined;
|
|
56
|
-
/** End coordinate for the plotband. */
|
|
57
|
-
to?: number | null | undefined;
|
|
58
|
-
/** Optional text to display on the plotband */
|
|
59
|
-
labelText?: string;
|
|
60
|
-
/** Position of the label relative to the plotband area (e.g., 'top-left-outside').
|
|
61
|
-
* Can be customized with a string. */
|
|
62
|
-
labelPosition?: PlotbandLabelPosition;
|
|
63
|
-
/** Horizontal offset (in pixels) for positioning the label. */
|
|
64
|
-
labelOffsetX?: number;
|
|
65
|
-
/** Vertical offset (in pixels) for positioning the label. */
|
|
66
|
-
labelOffsetY?: number;
|
|
67
|
-
/** Orientation of the label text. */
|
|
68
|
-
labelOrientation?: PlotbandLabelOrientation;
|
|
69
|
-
/** Optional color for the label text */
|
|
70
|
-
labelColor?: string;
|
|
71
|
-
/** Font size (in pixels) for the label text.
|
|
72
|
-
* Uses the CSS variable `--vis-plotband-label-font-size` by default, which resolves to `12px`. */
|
|
73
|
-
labelSize?: number;
|
|
74
|
-
component: Plotband<Datum> | undefined;
|
|
75
|
-
componentContainer: ContainerCore | undefined;
|
|
76
|
-
ngAfterViewInit(): void;
|
|
77
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
78
|
-
private getConfig;
|
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisPlotbandComponent<any>, never>;
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisPlotbandComponent<any>, "vis-plotband", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "axis": "axis"; "from": "from"; "to": "to"; "labelText": "labelText"; "labelPosition": "labelPosition"; "labelOffsetX": "labelOffsetX"; "labelOffsetY": "labelOffsetY"; "labelOrientation": "labelOrientation"; "labelColor": "labelColor"; "labelSize": "labelSize"; }, {}, never, never>;
|
|
81
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./plotband.component";
|
|
3
|
-
export declare class VisPlotbandModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisPlotbandModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisPlotbandModule, [typeof i1.VisPlotbandComponent], never, [typeof i1.VisPlotbandComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisPlotbandModule>;
|
|
7
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Plotline, PlotlineConfigInterface, ContainerCore, VisEventType, VisEventCallback, AxisType, PlotlineLineStylePresets, PlotlineLabelPosition, PlotlineLabelOrientation } from '@unovis/ts';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VisPlotlineComponent<Datum> implements PlotlineConfigInterface<Datum>, AfterViewInit {
|
|
5
|
-
/** Duration of the animation in milliseconds. */
|
|
6
|
-
duration?: number;
|
|
7
|
-
/** Events configuration. An object containing properties in the following format:
|
|
8
|
-
*
|
|
9
|
-
* ```
|
|
10
|
-
* {
|
|
11
|
-
* \[selectorString]: {
|
|
12
|
-
* \[eventType]: callbackFunction
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
* e.g.:
|
|
17
|
-
* ```
|
|
18
|
-
* {
|
|
19
|
-
* \[Area.selectors.area]: {
|
|
20
|
-
* click: (d) => console.log("Clicked Area", d)
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ``` */
|
|
24
|
-
events?: {
|
|
25
|
-
[selector: string]: {
|
|
26
|
-
[eventType in VisEventType]?: VisEventCallback;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
|
|
30
|
-
* when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
|
|
31
|
-
*
|
|
32
|
-
* ```
|
|
33
|
-
* {
|
|
34
|
-
* \[selectorString]: {
|
|
35
|
-
* \[attributeName]: attribute constant value or accessor function
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
* e.g.:
|
|
40
|
-
* ```
|
|
41
|
-
* {
|
|
42
|
-
* \[Area.selectors.area]: {
|
|
43
|
-
* "test-value": d => d.value
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
46
|
-
* ``` */
|
|
47
|
-
attributes?: {
|
|
48
|
-
[selector: string]: {
|
|
49
|
-
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/** Line width in pixels.
|
|
53
|
-
* Uses CSS variable: `--vis-plotline-width`. */
|
|
54
|
-
lineWidth?: number;
|
|
55
|
-
/** Plotline direction type.
|
|
56
|
-
* Should be either `AxisType.X` or `AxisType.Y`. */
|
|
57
|
-
axis?: AxisType | string;
|
|
58
|
-
/** Value to draw the plotline at. */
|
|
59
|
-
value?: number | null | undefined;
|
|
60
|
-
/** Line style of the plotline.
|
|
61
|
-
* Can be a named preset or an array of numbers representing `stroke-dasharray`.
|
|
62
|
-
* Uses CSS variable: `--vis-plotline-dasharray`. */
|
|
63
|
-
lineStyle?: PlotlineLineStylePresets | number[];
|
|
64
|
-
/** Label text to display on the plotline. */
|
|
65
|
-
labelText?: string;
|
|
66
|
-
/** Position of the label relative to the plotline. */
|
|
67
|
-
labelPosition?: PlotlineLabelPosition;
|
|
68
|
-
/** Horizontal offset of the label in pixels. */
|
|
69
|
-
labelOffsetX?: number;
|
|
70
|
-
/** Vertical offset of the label in pixels. */
|
|
71
|
-
labelOffsetY?: number;
|
|
72
|
-
/** Orientation of the label: horizontal or vertical. */
|
|
73
|
-
labelOrientation?: PlotlineLabelOrientation;
|
|
74
|
-
/** Color of the label text.
|
|
75
|
-
* Uses CSS variable: `--vis-plotline-label-color`. */
|
|
76
|
-
labelColor?: string;
|
|
77
|
-
/** Font size of the label text in pixels.
|
|
78
|
-
* Uses CSS variable: `--vis-plotline-label-font-size`. */
|
|
79
|
-
labelSize?: number;
|
|
80
|
-
component: Plotline<Datum> | undefined;
|
|
81
|
-
componentContainer: ContainerCore | undefined;
|
|
82
|
-
ngAfterViewInit(): void;
|
|
83
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
84
|
-
private getConfig;
|
|
85
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisPlotlineComponent<any>, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisPlotlineComponent<any>, "vis-plotline", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "lineWidth": "lineWidth"; "axis": "axis"; "value": "value"; "lineStyle": "lineStyle"; "labelText": "labelText"; "labelPosition": "labelPosition"; "labelOffsetX": "labelOffsetX"; "labelOffsetY": "labelOffsetY"; "labelOrientation": "labelOrientation"; "labelColor": "labelColor"; "labelSize": "labelSize"; }, {}, never, never>;
|
|
87
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./plotline.component";
|
|
3
|
-
export declare class VisPlotlineModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisPlotlineModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisPlotlineModule, [typeof i1.VisPlotlineComponent], never, [typeof i1.VisPlotlineComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisPlotlineModule>;
|
|
7
|
-
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Sankey, SankeyConfigInterface, ContainerCore, SankeyInputNode, SankeyInputLink, VisEventType, VisEventCallback, SankeyExitTransitionType, SankeyEnterTransitionType, SankeyNode, SankeyLink, SankeyNodeAlign, StringAccessor, ColorAccessor, NumericAccessor, GenericAccessor, Position, VerticalAlign, FitMode, TrimMode, SankeySubLabelPlacement } from '@unovis/ts';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VisSankeyComponent<N extends SankeyInputNode, L extends SankeyInputLink> implements SankeyConfigInterface<N, L>, AfterViewInit {
|
|
5
|
-
/** Animation duration of the data update transitions in milliseconds. Default: `600` */
|
|
6
|
-
duration?: number;
|
|
7
|
-
/** Events configuration. An object containing properties in the following format:
|
|
8
|
-
*
|
|
9
|
-
* ```
|
|
10
|
-
* {
|
|
11
|
-
* \[selectorString]: {
|
|
12
|
-
* \[eventType]: callbackFunction
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
* e.g.:
|
|
17
|
-
* ```
|
|
18
|
-
* {
|
|
19
|
-
* \[Area.selectors.area]: {
|
|
20
|
-
* click: (d) => console.log("Clicked Area", d)
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ``` */
|
|
24
|
-
events?: {
|
|
25
|
-
[selector: string]: {
|
|
26
|
-
[eventType in VisEventType]?: VisEventCallback;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
|
|
30
|
-
* when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
|
|
31
|
-
*
|
|
32
|
-
* ```
|
|
33
|
-
* {
|
|
34
|
-
* \[selectorString]: {
|
|
35
|
-
* \[attributeName]: attribute constant value or accessor function
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
* e.g.:
|
|
40
|
-
* ```
|
|
41
|
-
* {
|
|
42
|
-
* \[Area.selectors.area]: {
|
|
43
|
-
* "test-value": d => d.value
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
46
|
-
* ``` */
|
|
47
|
-
attributes?: {
|
|
48
|
-
[selector: string]: {
|
|
49
|
-
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/** Node / Link id accessor function. Used for mapping of data updates to corresponding SVG objects. Default: `(d, i) => d.id ?? i.toString()` */
|
|
53
|
-
id?: (d: SankeyInputNode | SankeyInputLink, i: number, ...rest: any[]) => string;
|
|
54
|
-
/** Coefficient to scale the height of the diagram when the amount of links is low: `C * links.length`, clamped to `[height / 2, height]`. Default: `1/16` */
|
|
55
|
-
heightNormalizationCoeff?: number;
|
|
56
|
-
/** Type of animation on removing nodes. Default: `ExitTransitionType.Default` */
|
|
57
|
-
exitTransitionType?: SankeyExitTransitionType;
|
|
58
|
-
/** Type of animation on creating nodes. Default: `EnterTransitionType.Default` */
|
|
59
|
-
enterTransitionType?: SankeyEnterTransitionType;
|
|
60
|
-
/** Highlight the corresponding subtree on node / link hover. Default: `false` */
|
|
61
|
-
highlightSubtreeOnHover?: boolean;
|
|
62
|
-
/** Highlight animation duration, ms. Default: `400` */
|
|
63
|
-
highlightDuration?: number;
|
|
64
|
-
/** Highlight delay, ms. Default: `1000` */
|
|
65
|
-
highlightDelay?: number;
|
|
66
|
-
/** Sankey algorithm iterations. Default: `32` */
|
|
67
|
-
iterations?: number;
|
|
68
|
-
/** Sankey node sorting function. Default: `undefined`.
|
|
69
|
-
* Node sorting is applied to nodes in one layer (column). Layer by layer.
|
|
70
|
-
* Options: `undefined` - the order is determined by the layout;
|
|
71
|
-
* `null` - the order is fixed by the input;
|
|
72
|
-
* sort function - the order is determined by the function. */
|
|
73
|
-
nodeSort?: ((node1: SankeyNode<N, L>, node2: SankeyNode<N, L>) => number) | null | undefined;
|
|
74
|
-
/** Sankey link sorting function. Default: `(link2, link1) => link1.value - link2.value`.
|
|
75
|
-
* Link sorting is applied to the source (exiting) links within one node.
|
|
76
|
-
* Options: `undefined` - the order is determined by the layout;
|
|
77
|
-
* `null` - the order is fixed by the input;
|
|
78
|
-
* sort function - the order is determined by the function. */
|
|
79
|
-
linkSort?: ((link1: SankeyLink<N, L>, link2: SankeyLink<N, L>) => number) | null | undefined;
|
|
80
|
-
/** Sankey node width in pixels */
|
|
81
|
-
nodeWidth?: number;
|
|
82
|
-
/** Sankey node alignment method */
|
|
83
|
-
nodeAlign?: SankeyNodeAlign;
|
|
84
|
-
/** Horizontal space between the nodes. Extended Sizing property only. Default: `150` */
|
|
85
|
-
nodeHorizontalSpacing?: number;
|
|
86
|
-
/** Minimum node height. Extended Sizing property only. Default: `20` */
|
|
87
|
-
nodeMinHeight?: number;
|
|
88
|
-
/** Maximum node height. Extended Sizing property only. Default: `100` */
|
|
89
|
-
nodeMaxHeight?: number;
|
|
90
|
-
/** Sankey vertical separation between nodes in pixels. Default: `2` */
|
|
91
|
-
nodePadding?: number;
|
|
92
|
-
/** Display the graph when data has just one element */
|
|
93
|
-
showSingleNode?: boolean;
|
|
94
|
-
/** Node cursor on hover. Default: `undefined` */
|
|
95
|
-
nodeCursor?: StringAccessor<SankeyNode<N, L>>;
|
|
96
|
-
/** Node icon accessor function or value. Default: `undefined` */
|
|
97
|
-
nodeIcon?: StringAccessor<SankeyNode<N, L>>;
|
|
98
|
-
/** Node color accessor function or value. Default: `undefined` */
|
|
99
|
-
nodeColor?: ColorAccessor<SankeyNode<N, L>>;
|
|
100
|
-
/** Node `fixedValue` accessor function or constant. It defines the node value that will be used to calculate
|
|
101
|
-
* the height of the nodes by d3-sankey (by default the height will be based on aggregated `linkValue`).
|
|
102
|
-
* Default: `n => n.fixedValue` */
|
|
103
|
-
nodeFixedValue?: NumericAccessor<N>;
|
|
104
|
-
/** Icon color accessor function or value. Default: `undefined` */
|
|
105
|
-
nodeIconColor?: ColorAccessor<SankeyNode<N, L>>;
|
|
106
|
-
/** Link color accessor function or value. Default: `l => l.color` */
|
|
107
|
-
linkColor?: StringAccessor<SankeyLink<N, L>>;
|
|
108
|
-
/** Link flow accessor function or value. Default: `l => l.value` */
|
|
109
|
-
linkValue?: NumericAccessor<L>;
|
|
110
|
-
/** Link cursor on hover. Default: `undefined` */
|
|
111
|
-
linkCursor?: StringAccessor<SankeyLink<N, L>>;
|
|
112
|
-
/** Node label accessor function or value. Default: `n => n.label` */
|
|
113
|
-
label?: StringAccessor<SankeyNode<N, L>>;
|
|
114
|
-
/** Node sub-label accessor function or value. Default: `undefined` */
|
|
115
|
-
subLabel?: StringAccessor<SankeyNode<N, L>>;
|
|
116
|
-
/** Label position relative to the Node. Default: `Position.AUTO` */
|
|
117
|
-
labelPosition?: GenericAccessor<Position.Auto | Position.Left | Position.Right | string, SankeyNode<N, L>>;
|
|
118
|
-
/** Label vertical alignment */
|
|
119
|
-
labelVerticalAlign?: VerticalAlign | string;
|
|
120
|
-
/** Label background */
|
|
121
|
-
labelBackground?: boolean;
|
|
122
|
-
/** Label fit mode (wrap or trim). Default: `FitMode.TRIM` * */
|
|
123
|
-
labelFit?: FitMode;
|
|
124
|
-
/** Maximum label with in pixels. Default: `70` */
|
|
125
|
-
labelMaxWidth?: number;
|
|
126
|
-
/** Expand trimmed label on hover. Default: `true` */
|
|
127
|
-
labelExpandTrimmedOnHover?: boolean;
|
|
128
|
-
/** Label trimming mode. Default: `TrimMode.Middle` */
|
|
129
|
-
labelTrimMode?: TrimMode;
|
|
130
|
-
/** Label font size in pixels. If not provided, the value of CSS variable `--vis-sankey-node-label-font-size` will be used. Default: `undefined` */
|
|
131
|
-
labelFontSize?: number;
|
|
132
|
-
/** Label text separators for wrapping. Default: `[' ', '-']` */
|
|
133
|
-
labelTextSeparator?: string[];
|
|
134
|
-
/** Force break words to fit long labels. Default: `true` */
|
|
135
|
-
labelForceWordBreak?: boolean;
|
|
136
|
-
/** Label color. Default: `undefined` */
|
|
137
|
-
labelColor?: ColorAccessor<SankeyNode<N, L>>;
|
|
138
|
-
/** Label cursor on hover. Default: `undefined` */
|
|
139
|
-
labelCursor?: StringAccessor<SankeyNode<N, L>>;
|
|
140
|
-
/** Custom function to set the label visibility. Default: `undefined` */
|
|
141
|
-
labelVisibility?: ((d: SankeyNode<N, L>, bbox: {
|
|
142
|
-
x: number;
|
|
143
|
-
y: number;
|
|
144
|
-
width: number;
|
|
145
|
-
height: number;
|
|
146
|
-
}, hovered: boolean) => boolean) | undefined;
|
|
147
|
-
/** Sub-label font size in pixels. If not provided, the value of CSS variable `--vis-sankey-node-sublabel-font-size` will be used. Default: `undefined` */
|
|
148
|
-
subLabelFontSize?: number;
|
|
149
|
-
/** Sub-label color. Default: `undefined` */
|
|
150
|
-
subLabelColor?: ColorAccessor<SankeyNode<N, L>>;
|
|
151
|
-
/** Sub-label position. Default: `SankeySubLabelPlacement.Below` */
|
|
152
|
-
subLabelPlacement?: SankeySubLabelPlacement | string;
|
|
153
|
-
/** Sub-label to label width ratio when `subLabelPlacement` is set to `SankeySubLabelPlacement.Inline`
|
|
154
|
-
* Default: `0.4`, which means that 40% of `labelMaxWidth` will be given to sub-label, and 60% to the main label. */
|
|
155
|
-
subLabelToLabelInlineWidthRatio?: number;
|
|
156
|
-
data: {
|
|
157
|
-
nodes: N[];
|
|
158
|
-
links?: L[];
|
|
159
|
-
};
|
|
160
|
-
component: Sankey<N, L> | undefined;
|
|
161
|
-
componentContainer: ContainerCore | undefined;
|
|
162
|
-
ngAfterViewInit(): void;
|
|
163
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
164
|
-
private getConfig;
|
|
165
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisSankeyComponent<any, any>, never>;
|
|
166
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisSankeyComponent<any, any>, "vis-sankey", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "id": "id"; "heightNormalizationCoeff": "heightNormalizationCoeff"; "exitTransitionType": "exitTransitionType"; "enterTransitionType": "enterTransitionType"; "highlightSubtreeOnHover": "highlightSubtreeOnHover"; "highlightDuration": "highlightDuration"; "highlightDelay": "highlightDelay"; "iterations": "iterations"; "nodeSort": "nodeSort"; "linkSort": "linkSort"; "nodeWidth": "nodeWidth"; "nodeAlign": "nodeAlign"; "nodeHorizontalSpacing": "nodeHorizontalSpacing"; "nodeMinHeight": "nodeMinHeight"; "nodeMaxHeight": "nodeMaxHeight"; "nodePadding": "nodePadding"; "showSingleNode": "showSingleNode"; "nodeCursor": "nodeCursor"; "nodeIcon": "nodeIcon"; "nodeColor": "nodeColor"; "nodeFixedValue": "nodeFixedValue"; "nodeIconColor": "nodeIconColor"; "linkColor": "linkColor"; "linkValue": "linkValue"; "linkCursor": "linkCursor"; "label": "label"; "subLabel": "subLabel"; "labelPosition": "labelPosition"; "labelVerticalAlign": "labelVerticalAlign"; "labelBackground": "labelBackground"; "labelFit": "labelFit"; "labelMaxWidth": "labelMaxWidth"; "labelExpandTrimmedOnHover": "labelExpandTrimmedOnHover"; "labelTrimMode": "labelTrimMode"; "labelFontSize": "labelFontSize"; "labelTextSeparator": "labelTextSeparator"; "labelForceWordBreak": "labelForceWordBreak"; "labelColor": "labelColor"; "labelCursor": "labelCursor"; "labelVisibility": "labelVisibility"; "subLabelFontSize": "subLabelFontSize"; "subLabelColor": "subLabelColor"; "subLabelPlacement": "subLabelPlacement"; "subLabelToLabelInlineWidthRatio": "subLabelToLabelInlineWidthRatio"; "data": "data"; }, {}, never, never>;
|
|
167
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./sankey.component";
|
|
3
|
-
export declare class VisSankeyModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisSankeyModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisSankeyModule, [typeof i1.VisSankeyComponent], never, [typeof i1.VisSankeyComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisSankeyModule>;
|
|
7
|
-
}
|