@unovis/angular 1.6.8-stellar-beta.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 +28 -43
- package/dist/lib/bundles/unovis-angular.umd.js +0 -3928
- package/dist/lib/bundles/unovis-angular.umd.js.map +0 -1
- package/dist/lib/components/annotations/annotations.component.d.ts +0 -75
- package/dist/lib/components/annotations/annotations.module.d.ts +0 -7
- package/dist/lib/components/area/area.component.d.ts +0 -106
- package/dist/lib/components/area/area.module.d.ts +0 -7
- package/dist/lib/components/axis/axis.component.d.ts +0 -126
- package/dist/lib/components/axis/axis.module.d.ts +0 -7
- package/dist/lib/components/brush/brush.component.d.ts +0 -86
- 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 -132
- 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 -302
- 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 -194
- 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 -159
- 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 -215
- 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 -53
- 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 -45
- package/dist/lib/esm2015/components/annotations/annotations.module.js +0 -18
- package/dist/lib/esm2015/components/area/area.component.js +0 -87
- package/dist/lib/esm2015/components/area/area.module.js +0 -18
- package/dist/lib/esm2015/components/axis/axis.component.js +0 -111
- package/dist/lib/esm2015/components/axis/axis.module.js +0 -18
- package/dist/lib/esm2015/components/brush/brush.component.js +0 -71
- 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 -95
- 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 -237
- 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 -165
- 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 -137
- 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 -173
- 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 -57
- 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/flow-legend/flow-legend.component.js +0 -60
- package/dist/lib/esm2015/html-components/flow-legend/flow-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 -3113
- 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/flow-legend/flow-legend.component.d.ts +0 -34
- package/dist/lib/html-components/flow-legend/flow-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 -52
- package/dist/lib/public-api.d.ts +0 -2
- package/dist/lib/unovis-angular.d.ts +0 -5
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Timeline, TimelineConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, StringAccessor, GenericAccessor, Arrangement, TimelineRowLabel, TimelineRowIcon, TextAlign, TrimMode, TimelineArrow, TimelineLineRenderState } from '@unovis/ts';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VisTimelineComponent<Datum> implements TimelineConfigInterface<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
|
-
/** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
|
|
55
|
-
id?: ((d: Datum, i: number, ...rest: any[]) => string);
|
|
56
|
-
/** Timeline item color accessor function. Default: `d => d.color` */
|
|
57
|
-
color?: ColorAccessor<Datum>;
|
|
58
|
-
/** 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.
|
|
59
|
-
* Only continuous scales are supported.
|
|
60
|
-
* Default: `undefined` */
|
|
61
|
-
xScale?: ContinuousScale;
|
|
62
|
-
/** 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.
|
|
63
|
-
* Only continuous scales are supported.
|
|
64
|
-
* Default: `undefined` */
|
|
65
|
-
yScale?: ContinuousScale;
|
|
66
|
-
/** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
|
|
67
|
-
* This property can be useful when you want pass individual data to a component and you don't want it to affect
|
|
68
|
-
* the scales of the chart.
|
|
69
|
-
* Default: `false` */
|
|
70
|
-
excludeFromDomainCalculation?: boolean;
|
|
71
|
-
/** */
|
|
72
|
-
type?: StringAccessor<Datum>;
|
|
73
|
-
/** */
|
|
74
|
-
length?: NumericAccessor<Datum>;
|
|
75
|
-
/** */
|
|
76
|
-
cursor?: StringAccessor<Datum>;
|
|
77
|
-
/** Timeline item row accessor function. Records with the `lineRow` will be plotted in one row. Default: `undefined` */
|
|
78
|
-
lineRow?: StringAccessor<Datum>;
|
|
79
|
-
/** Timeline item duration accessor function. Default: `undefined`. Falls back to the deprecated `length` property */
|
|
80
|
-
lineDuration?: NumericAccessor<Datum>;
|
|
81
|
-
/** Width of the timeline items. Default: `8` */
|
|
82
|
-
lineWidth?: NumericAccessor<Datum>;
|
|
83
|
-
/** Display rounded ends for timeline items. Default: `true` */
|
|
84
|
-
lineCap?: boolean;
|
|
85
|
-
/** Provide a href to an SVG defined in container's `svgDefs` to display an icon at the start of the line. Default: undefined */
|
|
86
|
-
lineStartIcon?: StringAccessor<Datum>;
|
|
87
|
-
/** Line start icon color accessor function. Default: `undefined` */
|
|
88
|
-
lineStartIconColor?: StringAccessor<Datum>;
|
|
89
|
-
/** Line start icon size accessor function. Default: `undefined` */
|
|
90
|
-
lineStartIconSize?: NumericAccessor<Datum>;
|
|
91
|
-
/** Line start icon arrangement configuration. Controls how the icon is positioned relative to the line.
|
|
92
|
-
* Accepts values from the Arrangement enum: `Arrangement.Start`, `Arrangement.Middle`, `Arrangement.End` or a string equivalent.
|
|
93
|
-
* Default: `Arrangement.Inside` */
|
|
94
|
-
lineStartIconArrangement?: GenericAccessor<Arrangement | `${Arrangement}`, Datum>;
|
|
95
|
-
/** Provide a href to an SVG defined in container's `svgDefs` to display an icon at the end of the line. Default: undefined */
|
|
96
|
-
lineEndIcon?: StringAccessor<Datum>;
|
|
97
|
-
/** Line end icon color accessor function. Default: `undefined` */
|
|
98
|
-
lineEndIconColor?: StringAccessor<Datum>;
|
|
99
|
-
/** Line end icon size accessor function. Default: `undefined` */
|
|
100
|
-
lineEndIconSize?: NumericAccessor<Datum>;
|
|
101
|
-
/** Line end icon arrangement configuration. Controls how the icon is positioned relative to the line.
|
|
102
|
-
* Accepts values from the Arrangement enum: `Arrangement.Start`, `Arrangement.Middle`, `Arrangement.End` or a string equivalent.
|
|
103
|
-
* Default: `Arrangement.Inside` */
|
|
104
|
-
lineEndIconArrangement?: GenericAccessor<Arrangement | `${Arrangement}`, Datum>;
|
|
105
|
-
/** Configurable Timeline item cursor when hovering over. Default: `undefined` */
|
|
106
|
-
lineCursor?: StringAccessor<Datum>;
|
|
107
|
-
/** Sets the minimum line length to 1 pixel for better visibility of small values.
|
|
108
|
-
* When `lineCap` is set to `true`, the segment will be rendered as a circle.
|
|
109
|
-
* Default: `false` */
|
|
110
|
-
showEmptySegments?: boolean;
|
|
111
|
-
/** Center small segments when `showEmptySegments` and `lineCap` are set to `true`.
|
|
112
|
-
* Default: `true` */
|
|
113
|
-
showEmptySegmentsCorrectPosition?: boolean;
|
|
114
|
-
/** Timeline row height. Default: `22` */
|
|
115
|
-
rowHeight?: number;
|
|
116
|
-
/** Alternating row colors. Default: `true` */
|
|
117
|
-
alternatingRowColors?: boolean;
|
|
118
|
-
/** */
|
|
119
|
-
showLabels?: boolean;
|
|
120
|
-
/** */
|
|
121
|
-
labelWidth?: number;
|
|
122
|
-
/** */
|
|
123
|
-
maxLabelWidth?: number;
|
|
124
|
-
/** Show row labels when set to `true`. Default: `false`. Falls back to deprecated `showLabels` */
|
|
125
|
-
showRowLabels?: boolean;
|
|
126
|
-
/** Row label style as an object with the `{ [property-name]: value }` format. Default: `undefined` */
|
|
127
|
-
rowLabelStyle?: GenericAccessor<Record<string, string>, TimelineRowLabel<Datum>>;
|
|
128
|
-
/** Row label formatter function. Default: `undefined` */
|
|
129
|
-
rowLabelFormatter?: (key: string, items: Datum[], i: number) => string;
|
|
130
|
-
/** Provide an icon href to be displayed before the row label. Default: `undefined` */
|
|
131
|
-
rowIcon?: (key: string, items: Datum[], i: number) => TimelineRowIcon | undefined;
|
|
132
|
-
/** Fixed label width in pixels. Labels longer than the specified value will be trimmed. Default: `undefined`. Falls back to deprecated `labelWidth`. */
|
|
133
|
-
rowLabelWidth?: number;
|
|
134
|
-
/** Maximum label width in pixels. Labels longer than the specified value will be trimmed. Default: `undefined`. Falls back to deprecated `maxLabelWidth`. */
|
|
135
|
-
rowMaxLabelWidth?: number;
|
|
136
|
-
/** Text alignment for labels: `TextAlign.Left`, `TextAlign.Center` or `TextAlign.Right`. Default: `TextAlign.Right` */
|
|
137
|
-
rowLabelTextAlign?: TextAlign | `${TextAlign}`;
|
|
138
|
-
/** Row label trim mode when width is limited: `TrimMode.Start`, `TrimMode.Middle` or `TrimMode.End`. Default: `TrimMode.Middle` */
|
|
139
|
-
rowLabelTrimMode?: TrimMode | `${TrimMode}`;
|
|
140
|
-
/** Row label margin in pixels. Can be a single number or a `[left, right]` tuple. Default: `[0, 5]` */
|
|
141
|
-
rowLabelMargin?: number | [number, number];
|
|
142
|
-
/** When component height is larger than the height of all rows, render rows to fill empty space */
|
|
143
|
-
rowFillEmptySpace?: boolean;
|
|
144
|
-
arrows?: TimelineArrow[];
|
|
145
|
-
/** Control the animation by specify the initial position for new lines as [x, y]. Default: `undefined` */
|
|
146
|
-
animationLineEnterPosition?: [number | undefined | null, number | undefined | null] | ((d: Datum & TimelineLineRenderState, i: number, data: (Datum & TimelineLineRenderState)[]) => [number | undefined, number | undefined]) | undefined;
|
|
147
|
-
/** Control the animation by specify the destination position for exiting lines as [x, y]. Default: `undefined` */
|
|
148
|
-
animationLineExitPosition?: [number | undefined | null, number | undefined | null] | ((d: Datum & TimelineLineRenderState, i: number, data: (Datum & TimelineLineRenderState)[]) => [number | undefined, number | undefined]) | undefined;
|
|
149
|
-
/** Scrolling callback function: `(scrollTop: number) => void`. Default: `undefined` */
|
|
150
|
-
onScroll?: (scrollTop: number) => void;
|
|
151
|
-
data: Datum[];
|
|
152
|
-
component: Timeline<Datum> | undefined;
|
|
153
|
-
componentContainer: ContainerCore | undefined;
|
|
154
|
-
ngAfterViewInit(): void;
|
|
155
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
156
|
-
private getConfig;
|
|
157
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisTimelineComponent<any>, never>;
|
|
158
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisTimelineComponent<any>, "vis-timeline", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "type": "type"; "length": "length"; "cursor": "cursor"; "lineRow": "lineRow"; "lineDuration": "lineDuration"; "lineWidth": "lineWidth"; "lineCap": "lineCap"; "lineStartIcon": "lineStartIcon"; "lineStartIconColor": "lineStartIconColor"; "lineStartIconSize": "lineStartIconSize"; "lineStartIconArrangement": "lineStartIconArrangement"; "lineEndIcon": "lineEndIcon"; "lineEndIconColor": "lineEndIconColor"; "lineEndIconSize": "lineEndIconSize"; "lineEndIconArrangement": "lineEndIconArrangement"; "lineCursor": "lineCursor"; "showEmptySegments": "showEmptySegments"; "showEmptySegmentsCorrectPosition": "showEmptySegmentsCorrectPosition"; "rowHeight": "rowHeight"; "alternatingRowColors": "alternatingRowColors"; "showLabels": "showLabels"; "labelWidth": "labelWidth"; "maxLabelWidth": "maxLabelWidth"; "showRowLabels": "showRowLabels"; "rowLabelStyle": "rowLabelStyle"; "rowLabelFormatter": "rowLabelFormatter"; "rowIcon": "rowIcon"; "rowLabelWidth": "rowLabelWidth"; "rowMaxLabelWidth": "rowMaxLabelWidth"; "rowLabelTextAlign": "rowLabelTextAlign"; "rowLabelTrimMode": "rowLabelTrimMode"; "rowLabelMargin": "rowLabelMargin"; "rowFillEmptySpace": "rowFillEmptySpace"; "arrows": "arrows"; "animationLineEnterPosition": "animationLineEnterPosition"; "animationLineExitPosition": "animationLineExitPosition"; "onScroll": "onScroll"; "data": "data"; }, {}, never, never>;
|
|
159
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./timeline.component";
|
|
3
|
-
export declare class VisTimelineModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisTimelineModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisTimelineModule, [typeof i1.VisTimelineComponent], never, [typeof i1.VisTimelineComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisTimelineModule>;
|
|
7
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Tooltip, TooltipConfigInterface, ContainerCore, ComponentCore, Position } from '@unovis/ts';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VisTooltipComponent implements TooltipConfigInterface, AfterViewInit {
|
|
5
|
-
/** An array of visualization components to interact with. Default: `[]` */
|
|
6
|
-
components?: ComponentCore<unknown>[];
|
|
7
|
-
/** Container to where the Tooltip component should be inserted. Default: `undefined` */
|
|
8
|
-
container?: HTMLElement;
|
|
9
|
-
/** Follow the mouse cursor. Default: `true` */
|
|
10
|
-
followCursor?: boolean;
|
|
11
|
-
/** Allow the tooltip to be hovered over and interacted with. Default: `false` */
|
|
12
|
-
allowHover?: boolean;
|
|
13
|
-
/** Horizontal placement of the tooltip. Default: `Position.Auto` */
|
|
14
|
-
horizontalPlacement?: Position | string | undefined;
|
|
15
|
-
/** Horizontal shift of the tooltip in pixels. Works only with
|
|
16
|
-
* `horizontalPlacement` set to `Position.Left` or `Position.Right`.
|
|
17
|
-
* Default: `0` */
|
|
18
|
-
horizontalShift?: number;
|
|
19
|
-
/** Vertical placement of the tooltip. Default: `Position.Top` */
|
|
20
|
-
verticalPlacement?: Position | string | undefined;
|
|
21
|
-
/** Vertical shift of the tooltip in pixels. Works only with
|
|
22
|
-
* `verticalPlacement` set to `Position.Top` or `Position.Bottom`.
|
|
23
|
-
* Default: `0` */
|
|
24
|
-
verticalShift?: number;
|
|
25
|
-
/** Defines the content of the tooltip and hovering over which elements should trigger it.
|
|
26
|
-
* An object containing properties in the following format:
|
|
27
|
-
*
|
|
28
|
-
* ```
|
|
29
|
-
* {
|
|
30
|
-
* \[selectorString]: (d: unknown) => string | HTMLElement
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
* e.g.:
|
|
34
|
-
* ```
|
|
35
|
-
* {
|
|
36
|
-
* \[Area.selectors.area]: (d: AreaDatum[]) => `<div>${d.value.toString()}</div>
|
|
37
|
-
* }
|
|
38
|
-
* ``` */
|
|
39
|
-
triggers?: {
|
|
40
|
-
[selector: string]: ((data: any, i: number, elements: (HTMLElement | SVGElement)[]) => string | HTMLElement | undefined | null | void) | undefined | null;
|
|
41
|
-
};
|
|
42
|
-
/** Custom DOM attributes for the tooltip. Useful when you need to refer to a specific tooltip instance
|
|
43
|
-
* by using a CSS selector. Attributes configuration object has the following structure:
|
|
44
|
-
*
|
|
45
|
-
* ```
|
|
46
|
-
* {
|
|
47
|
-
* \[attributeName]: attribute value
|
|
48
|
-
* }
|
|
49
|
-
* ```
|
|
50
|
-
* e.g.:
|
|
51
|
-
* ```
|
|
52
|
-
* {
|
|
53
|
-
* \'type': 'area-tooltip',
|
|
54
|
-
* \'value': 42
|
|
55
|
-
* }
|
|
56
|
-
* ``` */
|
|
57
|
-
attributes?: {
|
|
58
|
-
[attr: string]: string | number | boolean;
|
|
59
|
-
};
|
|
60
|
-
/** Custom class name for the tooltip. Default: `undefined` */
|
|
61
|
-
className?: string;
|
|
62
|
-
/** Hide delay in milliseconds. Default: `undefined` */
|
|
63
|
-
hideDelay?: number;
|
|
64
|
-
/** Show delay in milliseconds. Default: `undefined` */
|
|
65
|
-
showDelay?: number;
|
|
66
|
-
component: Tooltip | undefined;
|
|
67
|
-
componentContainer: ContainerCore | undefined;
|
|
68
|
-
ngAfterViewInit(): void;
|
|
69
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
70
|
-
private getConfig;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisTooltipComponent, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisTooltipComponent, "vis-tooltip", never, { "components": "components"; "container": "container"; "followCursor": "followCursor"; "allowHover": "allowHover"; "horizontalPlacement": "horizontalPlacement"; "horizontalShift": "horizontalShift"; "verticalPlacement": "verticalPlacement"; "verticalShift": "verticalShift"; "triggers": "triggers"; "attributes": "attributes"; "className": "className"; "hideDelay": "hideDelay"; "showDelay": "showDelay"; }, {}, never, never>;
|
|
73
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./tooltip.component";
|
|
3
|
-
export declare class VisTooltipModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisTooltipModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisTooltipModule, [typeof i1.VisTooltipComponent], never, [typeof i1.VisTooltipComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisTooltipModule>;
|
|
7
|
-
}
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { TopoJSONMap, TopoJSONMapConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, StringAccessor, MapPointLabelPosition, TopoJSONMapClusterDatum, TopoJSONMapPointStyles } from '@unovis/ts';
|
|
3
|
-
import { GeoProjection } from 'd3-geo';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class VisTopoJSONMapComponent<AreaDatum, PointDatum, LinkDatum> implements TopoJSONMapConfigInterface<AreaDatum, PointDatum, LinkDatum>, AfterViewInit {
|
|
6
|
-
/** Animation duration of the data update transitions in milliseconds. Default: `600` */
|
|
7
|
-
duration?: number;
|
|
8
|
-
/** Events configuration. An object containing properties in the following format:
|
|
9
|
-
*
|
|
10
|
-
* ```
|
|
11
|
-
* {
|
|
12
|
-
* \[selectorString]: {
|
|
13
|
-
* \[eventType]: callbackFunction
|
|
14
|
-
* }
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
* e.g.:
|
|
18
|
-
* ```
|
|
19
|
-
* {
|
|
20
|
-
* \[Area.selectors.area]: {
|
|
21
|
-
* click: (d) => console.log("Clicked Area", d)
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* ``` */
|
|
25
|
-
events?: {
|
|
26
|
-
[selector: string]: {
|
|
27
|
-
[eventType in VisEventType]?: VisEventCallback;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
/** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
|
|
31
|
-
* when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
|
|
32
|
-
*
|
|
33
|
-
* ```
|
|
34
|
-
* {
|
|
35
|
-
* \[selectorString]: {
|
|
36
|
-
* \[attributeName]: attribute constant value or accessor function
|
|
37
|
-
* }
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
40
|
-
* e.g.:
|
|
41
|
-
* ```
|
|
42
|
-
* {
|
|
43
|
-
* \[Area.selectors.area]: {
|
|
44
|
-
* "test-value": d => d.value
|
|
45
|
-
* }
|
|
46
|
-
* }
|
|
47
|
-
* ``` */
|
|
48
|
-
attributes?: {
|
|
49
|
-
[selector: string]: {
|
|
50
|
-
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
/** MapProjection (aka D3's GeoProjection) instance. Default: `MapProjection.Kavrayskiy7()` */
|
|
54
|
-
projection?: GeoProjection;
|
|
55
|
-
/** Map data in the TopoJSON topology format. Default: `undefined` */
|
|
56
|
-
topojson?: TopoJSON.Topology;
|
|
57
|
-
/** Name of the map features to be displayed, e.g. 'countries' or 'counties'. Default: `countries` */
|
|
58
|
-
mapFeatureName?: string;
|
|
59
|
-
/** Set initial map fit to points instead of topojson features. Default: `false` */
|
|
60
|
-
mapFitToPoints?: boolean;
|
|
61
|
-
/** Initial zoom level. Default: `undefined` */
|
|
62
|
-
zoomFactor?: number;
|
|
63
|
-
/** Zoom to a specific location. When set, the map will zoom to the specified coordinates at the given zoom level.
|
|
64
|
-
* Format: `{ coordinates: [longitude, latitude], zoomLevel: number, expandCluster?: boolean }`
|
|
65
|
-
* When `expandCluster` is true, the cluster at or nearest to the coordinates will be expanded.
|
|
66
|
-
* Default: `undefined` */
|
|
67
|
-
zoomToLocation?: {
|
|
68
|
-
coordinates: [number, number];
|
|
69
|
-
zoomLevel: number;
|
|
70
|
-
expandCluster?: boolean;
|
|
71
|
-
};
|
|
72
|
-
/** Disable pan / zoom interactions. Default: `false` */
|
|
73
|
-
disableZoom?: boolean;
|
|
74
|
-
/** Zoom extent. Default: `[0.5, 6]` */
|
|
75
|
-
zoomExtent?: number[];
|
|
76
|
-
/** Zoom animation duration. Default: `400` */
|
|
77
|
-
zoomDuration?: number;
|
|
78
|
-
/** Link width value or accessor function. Default: `d => d.width ?? 1` */
|
|
79
|
-
linkWidth?: NumericAccessor<LinkDatum>;
|
|
80
|
-
/** Link color value or accessor function. Default: `d => d.color ?? null` */
|
|
81
|
-
linkColor?: ColorAccessor<LinkDatum>;
|
|
82
|
-
/** Link cursor value or accessor function. Default: `null` */
|
|
83
|
-
linkCursor?: StringAccessor<LinkDatum>;
|
|
84
|
-
/** Link id accessor function. Default: `d => d.id` */
|
|
85
|
-
linkId?: StringAccessor<LinkDatum>;
|
|
86
|
-
/** Link source accessor function. Default: `d => d.source` */
|
|
87
|
-
linkSource?: ((l: LinkDatum) => number | string | PointDatum);
|
|
88
|
-
/** Link target accessor function. Default: `d => d.target` */
|
|
89
|
-
linkTarget?: ((l: LinkDatum) => number | string | PointDatum);
|
|
90
|
-
/** Flow source point longitude accessor function or value. Default: `f => f.sourceLongitude` */
|
|
91
|
-
sourceLongitude?: NumericAccessor<LinkDatum>;
|
|
92
|
-
/** Flow source point latitude accessor function or value. Default: `f => f.sourceLatitude` */
|
|
93
|
-
sourceLatitude?: NumericAccessor<LinkDatum>;
|
|
94
|
-
/** Flow target point longitude accessor function or value. Default: `f => f.targetLongitude` */
|
|
95
|
-
targetLongitude?: NumericAccessor<LinkDatum>;
|
|
96
|
-
/** Flow target point latitude accessor function or value. Default: `f => f.targetLatitude` */
|
|
97
|
-
targetLatitude?: NumericAccessor<LinkDatum>;
|
|
98
|
-
/** Flow source point radius accessor function or value. Default: `3` */
|
|
99
|
-
sourcePointRadius?: NumericAccessor<LinkDatum>;
|
|
100
|
-
/** Source point color accessor function or value. Default: `'#88919f'` */
|
|
101
|
-
sourcePointColor?: ColorAccessor<LinkDatum>;
|
|
102
|
-
/** Flow particle color accessor function or value. Default: `'#949dad'` */
|
|
103
|
-
flowParticleColor?: ColorAccessor<LinkDatum>;
|
|
104
|
-
/** Flow particle radius accessor function or value. Default: `1.1` */
|
|
105
|
-
flowParticleRadius?: NumericAccessor<LinkDatum>;
|
|
106
|
-
/** Flow particle speed accessor function or value. The unit is arbitrary, recommended range is 0 – 0.2. Default: `0.07` */
|
|
107
|
-
flowParticleSpeed?: NumericAccessor<LinkDatum>;
|
|
108
|
-
/** Flow particle density accessor function or value on the range of [0, 1]. Default: `0.6` */
|
|
109
|
-
flowParticleDensity?: NumericAccessor<LinkDatum>;
|
|
110
|
-
/** Enable flow animations. When true, shows animated particles along links. Default: `false` */
|
|
111
|
-
enableFlowAnimation?: boolean;
|
|
112
|
-
/** Flow source point click callback function. Default: `undefined` */
|
|
113
|
-
onSourcePointClick?: (f: LinkDatum, x: number, y: number, event: MouseEvent) => void;
|
|
114
|
-
/** Flow source point mouse over callback function. Default: `undefined` */
|
|
115
|
-
onSourcePointMouseEnter?: (f: LinkDatum, x: number, y: number, event: MouseEvent) => void;
|
|
116
|
-
/** Flow source point mouse leave callback function. Default: `undefined` */
|
|
117
|
-
onSourcePointMouseLeave?: (f: LinkDatum, event: MouseEvent) => void;
|
|
118
|
-
/** Area id accessor function corresponding to the feature id from TopoJSON. Default: `d => d.id ?? ''` */
|
|
119
|
-
areaId?: StringAccessor<AreaDatum>;
|
|
120
|
-
/** Area color value or accessor function. Default: `d => d.color ?? null` */
|
|
121
|
-
areaColor?: ColorAccessor<AreaDatum>;
|
|
122
|
-
/** Area cursor value or accessor function. Default: `null` */
|
|
123
|
-
areaCursor?: StringAccessor<AreaDatum>;
|
|
124
|
-
/** Area label accessor function. Default: `undefined` */
|
|
125
|
-
areaLabel?: StringAccessor<AreaDatum>;
|
|
126
|
-
/** Point color accessor. Default: `d => d.color ?? null` */
|
|
127
|
-
pointColor?: ColorAccessor<PointDatum>;
|
|
128
|
-
/** Point radius accessor. Default: `d => d.radius ?? 8` */
|
|
129
|
-
pointRadius?: NumericAccessor<PointDatum>;
|
|
130
|
-
/** Point stroke width accessor. Default: `d => d.strokeWidth ?? null` */
|
|
131
|
-
pointStrokeWidth?: NumericAccessor<PointDatum>;
|
|
132
|
-
/** Point shape accessor. Default: `TopoJSONMapPointShape.Circle` */
|
|
133
|
-
pointShape?: StringAccessor<PointDatum>;
|
|
134
|
-
/** Point ring width for ring-shaped points. Default: `2` */
|
|
135
|
-
pointRingWidth?: NumericAccessor<PointDatum>;
|
|
136
|
-
/** Point cursor constant value or accessor function. Default: `null` */
|
|
137
|
-
pointCursor?: StringAccessor<PointDatum>;
|
|
138
|
-
/** Point longitude accessor function. Default: `d => d.longitude ?? null` */
|
|
139
|
-
longitude?: NumericAccessor<PointDatum>;
|
|
140
|
-
/** Point latitude accessor function. Default: `d => d.latitude ?? null` */
|
|
141
|
-
latitude?: NumericAccessor<PointDatum>;
|
|
142
|
-
/** Point inner label accessor function. Default: `undefined` */
|
|
143
|
-
pointLabel?: StringAccessor<PointDatum>;
|
|
144
|
-
/** Point inner label color accessor function or constant value.
|
|
145
|
-
* By default, the label color will be set, depending on the point brightness, either to
|
|
146
|
-
* `--vis-map-point-label-text-color-dark` or to `--vis-map-point-label-text-color-light` CSS variable.
|
|
147
|
-
* Default: `undefined` */
|
|
148
|
-
pointLabelColor?: ColorAccessor<PointDatum>;
|
|
149
|
-
/** Point label position. Default: `MapPointLabelPosition.Center` */
|
|
150
|
-
pointLabelPosition?: MapPointLabelPosition;
|
|
151
|
-
/** Point bottom label accessor function. Default: `undefined` */
|
|
152
|
-
pointBottomLabel?: StringAccessor<PointDatum>;
|
|
153
|
-
/** Point color brightness ratio for switching between dark and light text label color. Default: `0.65` */
|
|
154
|
-
pointLabelTextBrightnessRatio?: number;
|
|
155
|
-
/** Point id accessor function. Default: `d => d.id` */
|
|
156
|
-
pointId?: ((d: PointDatum, i: number) => string);
|
|
157
|
-
/** Cluster color accessor function or constant value. Default: `undefined` */
|
|
158
|
-
clusterColor?: ColorAccessor<TopoJSONMapClusterDatum<PointDatum>>;
|
|
159
|
-
/** Cluster radius accessor function or constant value. Default: `undefined` */
|
|
160
|
-
clusterRadius?: NumericAccessor<TopoJSONMapClusterDatum<PointDatum>>;
|
|
161
|
-
/** Cluster inner label accessor function. Default: `d => d.pointCount` */
|
|
162
|
-
clusterLabel?: StringAccessor<TopoJSONMapClusterDatum<PointDatum>>;
|
|
163
|
-
/** Cluster inner label color accessor function or constant value. Default: `undefined` */
|
|
164
|
-
clusterLabelColor?: StringAccessor<TopoJSONMapClusterDatum<PointDatum>>;
|
|
165
|
-
/** Cluster bottom label accessor function. Default: `''` */
|
|
166
|
-
clusterBottomLabel?: StringAccessor<TopoJSONMapClusterDatum<PointDatum>>;
|
|
167
|
-
/** The width of the cluster point ring. Default: `2` */
|
|
168
|
-
clusterRingWidth?: number;
|
|
169
|
-
/** When cluster is expanded, show a background circle to better separate points from the base map. Default: `true` */
|
|
170
|
-
clusterBackground?: boolean;
|
|
171
|
-
/** Defines whether the cluster should expand on click or not. Default: `true` */
|
|
172
|
-
clusterExpandOnClick?: boolean;
|
|
173
|
-
/** Clustering distance in pixels. Default: `55` */
|
|
174
|
-
clusteringDistance?: number;
|
|
175
|
-
/** Enable point clustering. Default: `false` */
|
|
176
|
-
clustering?: boolean;
|
|
177
|
-
/** Enables blur and blending between neighbouring points. Default: `false` */
|
|
178
|
-
heatmapMode?: boolean;
|
|
179
|
-
/** Heatmap blur filter stdDeviation value. Default: `10` */
|
|
180
|
-
heatmapModeBlurStdDeviation?: number;
|
|
181
|
-
/** Zoom level at which the heatmap mode will be disabled. Default: `2.5` */
|
|
182
|
-
heatmapModeZoomLevelThreshold?: number;
|
|
183
|
-
/** A single map point can have multiple properties displayed as a small pie chart.
|
|
184
|
-
* By setting the colorMap configuration you can specify data properties that should be mapped to various pie / donut segments.
|
|
185
|
-
*
|
|
186
|
-
* ```
|
|
187
|
-
* {
|
|
188
|
-
* [key in keyof PointDatum]?: { color: string, className?: string }
|
|
189
|
-
* }
|
|
190
|
-
* ```
|
|
191
|
-
* e.g.:
|
|
192
|
-
* ```
|
|
193
|
-
* {
|
|
194
|
-
* healthy: { color: 'green' },
|
|
195
|
-
* warning: { color: 'orange' },
|
|
196
|
-
* critical: { color: 'red' }
|
|
197
|
-
* }
|
|
198
|
-
* ```
|
|
199
|
-
* where every data point has the `healthy`, `warning` and `critical` numerical or boolean property.
|
|
200
|
-
* Note: Properties with 0 or falsy values will not be displayed in the pie chart.
|
|
201
|
-
* Default: `{}` */
|
|
202
|
-
colorMap?: TopoJSONMapPointStyles<PointDatum>;
|
|
203
|
-
data: {
|
|
204
|
-
areas?: AreaDatum[];
|
|
205
|
-
points?: PointDatum[];
|
|
206
|
-
links?: LinkDatum[];
|
|
207
|
-
};
|
|
208
|
-
component: TopoJSONMap<AreaDatum, PointDatum, LinkDatum> | undefined;
|
|
209
|
-
componentContainer: ContainerCore | undefined;
|
|
210
|
-
ngAfterViewInit(): void;
|
|
211
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
212
|
-
private getConfig;
|
|
213
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisTopoJSONMapComponent<any, any, any>, never>;
|
|
214
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisTopoJSONMapComponent<any, any, any>, "vis-topojson-map", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "projection": "projection"; "topojson": "topojson"; "mapFeatureName": "mapFeatureName"; "mapFitToPoints": "mapFitToPoints"; "zoomFactor": "zoomFactor"; "zoomToLocation": "zoomToLocation"; "disableZoom": "disableZoom"; "zoomExtent": "zoomExtent"; "zoomDuration": "zoomDuration"; "linkWidth": "linkWidth"; "linkColor": "linkColor"; "linkCursor": "linkCursor"; "linkId": "linkId"; "linkSource": "linkSource"; "linkTarget": "linkTarget"; "sourceLongitude": "sourceLongitude"; "sourceLatitude": "sourceLatitude"; "targetLongitude": "targetLongitude"; "targetLatitude": "targetLatitude"; "sourcePointRadius": "sourcePointRadius"; "sourcePointColor": "sourcePointColor"; "flowParticleColor": "flowParticleColor"; "flowParticleRadius": "flowParticleRadius"; "flowParticleSpeed": "flowParticleSpeed"; "flowParticleDensity": "flowParticleDensity"; "enableFlowAnimation": "enableFlowAnimation"; "onSourcePointClick": "onSourcePointClick"; "onSourcePointMouseEnter": "onSourcePointMouseEnter"; "onSourcePointMouseLeave": "onSourcePointMouseLeave"; "areaId": "areaId"; "areaColor": "areaColor"; "areaCursor": "areaCursor"; "areaLabel": "areaLabel"; "pointColor": "pointColor"; "pointRadius": "pointRadius"; "pointStrokeWidth": "pointStrokeWidth"; "pointShape": "pointShape"; "pointRingWidth": "pointRingWidth"; "pointCursor": "pointCursor"; "longitude": "longitude"; "latitude": "latitude"; "pointLabel": "pointLabel"; "pointLabelColor": "pointLabelColor"; "pointLabelPosition": "pointLabelPosition"; "pointBottomLabel": "pointBottomLabel"; "pointLabelTextBrightnessRatio": "pointLabelTextBrightnessRatio"; "pointId": "pointId"; "clusterColor": "clusterColor"; "clusterRadius": "clusterRadius"; "clusterLabel": "clusterLabel"; "clusterLabelColor": "clusterLabelColor"; "clusterBottomLabel": "clusterBottomLabel"; "clusterRingWidth": "clusterRingWidth"; "clusterBackground": "clusterBackground"; "clusterExpandOnClick": "clusterExpandOnClick"; "clusteringDistance": "clusteringDistance"; "clustering": "clustering"; "heatmapMode": "heatmapMode"; "heatmapModeBlurStdDeviation": "heatmapModeBlurStdDeviation"; "heatmapModeZoomLevelThreshold": "heatmapModeZoomLevelThreshold"; "colorMap": "colorMap"; "data": "data"; }, {}, never, never>;
|
|
215
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./topojson-map.component";
|
|
3
|
-
export declare class VisTopoJSONMapModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisTopoJSONMapModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisTopoJSONMapModule, [typeof i1.VisTopoJSONMapComponent], never, [typeof i1.VisTopoJSONMapComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisTopoJSONMapModule>;
|
|
7
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { XYLabels, XYLabelsConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, GenericAccessor, XYLabelPositioning, StringAccessor, XYLabel } from '@unovis/ts';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VisXYLabelsComponent<Datum> implements XYLabelsConfigInterface<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
|
-
/** Single Y accessor function. Default: `undefined` */
|
|
55
|
-
y: 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
|
-
/** Label color accessor function. Default: `d => d.color` */
|
|
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
|
-
/** Defines how to position the label horizontally: in data space or in screen space. Default: `XYLabelPositioning.DataSpace` */
|
|
74
|
-
xPositioning?: GenericAccessor<XYLabelPositioning | string, Datum>;
|
|
75
|
-
/** Defines how to position the label vertically: in data space or in screen space. Default: `XYLabelPositioning.DataSpace` */
|
|
76
|
-
yPositioning?: GenericAccessor<XYLabelPositioning | string, Datum>;
|
|
77
|
-
/** Font size accessor function or constant value in pixels. If not provided, the value of CSS variable `--vis-xy-label-font-size` will be used. Default: `undefined` */
|
|
78
|
-
labelFontSize?: NumericAccessor<Datum>;
|
|
79
|
-
/** Label accessor function or string. Default: `undefined` */
|
|
80
|
-
label?: StringAccessor<Datum>;
|
|
81
|
-
/** Label color. Default: `undefined` */
|
|
82
|
-
backgroundColor?: ColorAccessor<Datum>;
|
|
83
|
-
/** Optional label cursor. Default: `null` */
|
|
84
|
-
cursor?: StringAccessor<Datum>;
|
|
85
|
-
/** Label color brightness ratio for switching between dark and light text label color. Default: `0.65` */
|
|
86
|
-
labelTextBrightnessRatio?: number;
|
|
87
|
-
/** Enable label clustering. Default: `true` */
|
|
88
|
-
clustering?: boolean;
|
|
89
|
-
/** Label accessor for clusters. Default: `undefined` */
|
|
90
|
-
clusterLabel?: StringAccessor<XYLabel<Datum>[]>;
|
|
91
|
-
/** Font size accessor for clusters, the value is in pixels. If not provided, the value of CSS variable `--vis-xy-label-cluster-font-size` will be used. Default: `undefined` */
|
|
92
|
-
clusterFontSize?: NumericAccessor<XYLabel<Datum>[]>;
|
|
93
|
-
/** Background color accessor for clusters. Default: `undefined` */
|
|
94
|
-
clusterBackgroundColor?: ColorAccessor<XYLabel<Datum>[]>;
|
|
95
|
-
/** Optional cluster cursor. Default: `null` */
|
|
96
|
-
clusterCursor?: StringAccessor<XYLabel<Datum>[]>;
|
|
97
|
-
/** Cluster label color accessor function. Default: `null` */
|
|
98
|
-
clusterLabelColor?: ColorAccessor<XYLabel<Datum>[]>;
|
|
99
|
-
data: Datum[];
|
|
100
|
-
component: XYLabels<Datum> | undefined;
|
|
101
|
-
componentContainer: ContainerCore | undefined;
|
|
102
|
-
ngAfterViewInit(): void;
|
|
103
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
104
|
-
private getConfig;
|
|
105
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisXYLabelsComponent<any>, never>;
|
|
106
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisXYLabelsComponent<any>, "vis-xy-labels", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "xPositioning": "xPositioning"; "yPositioning": "yPositioning"; "labelFontSize": "labelFontSize"; "label": "label"; "backgroundColor": "backgroundColor"; "cursor": "cursor"; "labelTextBrightnessRatio": "labelTextBrightnessRatio"; "clustering": "clustering"; "clusterLabel": "clusterLabel"; "clusterFontSize": "clusterFontSize"; "clusterBackgroundColor": "clusterBackgroundColor"; "clusterCursor": "clusterCursor"; "clusterLabelColor": "clusterLabelColor"; "data": "data"; }, {}, never, never>;
|
|
107
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./xy-labels.component";
|
|
3
|
-
export declare class VisXYLabelsModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VisXYLabelsModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VisXYLabelsModule, [typeof i1.VisXYLabelsComponent], never, [typeof i1.VisXYLabelsComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VisXYLabelsModule>;
|
|
7
|
-
}
|