@unovis/angular 1.0.0-alpha.4
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/LICENSE +193 -0
- package/dist/lib/LICENSE +193 -0
- package/dist/lib/bundles/unovis-angular.umd.js +2833 -0
- package/dist/lib/bundles/unovis-angular.umd.js.map +1 -0
- package/dist/lib/components/area/area.component.d.ts +94 -0
- package/dist/lib/components/area/area.module.d.ts +7 -0
- package/dist/lib/components/axis/axis.component.d.ts +125 -0
- package/dist/lib/components/axis/axis.module.d.ts +7 -0
- package/dist/lib/components/brush/brush.component.d.ts +104 -0
- package/dist/lib/components/brush/brush.module.d.ts +7 -0
- package/dist/lib/components/crosshair/crosshair.component.d.ts +104 -0
- package/dist/lib/components/crosshair/crosshair.module.d.ts +7 -0
- package/dist/lib/components/donut/donut.component.d.ts +86 -0
- package/dist/lib/components/donut/donut.module.d.ts +7 -0
- package/dist/lib/components/free-brush/free-brush.component.d.ts +106 -0
- package/dist/lib/components/free-brush/free-brush.module.d.ts +7 -0
- package/dist/lib/components/graph/graph.component.d.ts +190 -0
- package/dist/lib/components/graph/graph.module.d.ts +7 -0
- package/dist/lib/components/grouped-bar/grouped-bar.component.d.ts +101 -0
- package/dist/lib/components/grouped-bar/grouped-bar.module.d.ts +7 -0
- package/dist/lib/components/line/line.component.d.ts +97 -0
- package/dist/lib/components/line/line.module.d.ts +7 -0
- package/dist/lib/components/sankey/sankey.component.d.ts +164 -0
- package/dist/lib/components/sankey/sankey.module.d.ts +7 -0
- package/dist/lib/components/scatter/scatter.component.d.ts +104 -0
- package/dist/lib/components/scatter/scatter.module.d.ts +7 -0
- package/dist/lib/components/stacked-bar/stacked-bar.component.d.ts +103 -0
- package/dist/lib/components/stacked-bar/stacked-bar.module.d.ts +7 -0
- package/dist/lib/components/timeline/timeline.component.d.ts +105 -0
- package/dist/lib/components/timeline/timeline.module.d.ts +7 -0
- package/dist/lib/components/tooltip/tooltip.component.d.ts +41 -0
- package/dist/lib/components/tooltip/tooltip.module.d.ts +7 -0
- package/dist/lib/components/topojson-map/topojson-map.component.d.ts +125 -0
- package/dist/lib/components/topojson-map/topojson-map.module.d.ts +7 -0
- package/dist/lib/components/xy-labels/xy-labels.component.d.ts +107 -0
- package/dist/lib/components/xy-labels/xy-labels.module.d.ts +7 -0
- package/dist/lib/components.d.ts +39 -0
- package/dist/lib/containers/single-container/single-container.component.d.ts +26 -0
- package/dist/lib/containers/single-container/single-container.module.d.ts +7 -0
- package/dist/lib/containers/xy-container/xy-container.component.d.ts +80 -0
- package/dist/lib/containers/xy-container/xy-container.module.d.ts +7 -0
- package/dist/lib/containers.d.ts +4 -0
- package/dist/lib/core/core-component.d.ts +6 -0
- package/dist/lib/core/generic-component.d.ts +3 -0
- package/dist/lib/core/index.d.ts +3 -0
- package/dist/lib/core/xy-component.d.ts +6 -0
- package/dist/lib/esm2015/components/area/area.component.js +75 -0
- package/dist/lib/esm2015/components/area/area.module.js +18 -0
- package/dist/lib/esm2015/components/axis/axis.component.js +109 -0
- package/dist/lib/esm2015/components/axis/axis.module.js +18 -0
- package/dist/lib/esm2015/components/brush/brush.component.js +83 -0
- package/dist/lib/esm2015/components/brush/brush.module.js +18 -0
- package/dist/lib/esm2015/components/crosshair/crosshair.component.js +81 -0
- package/dist/lib/esm2015/components/crosshair/crosshair.module.js +18 -0
- package/dist/lib/esm2015/components/donut/donut.component.js +77 -0
- package/dist/lib/esm2015/components/donut/donut.module.js +18 -0
- package/dist/lib/esm2015/components/free-brush/free-brush.component.js +83 -0
- package/dist/lib/esm2015/components/free-brush/free-brush.module.js +18 -0
- package/dist/lib/esm2015/components/graph/graph.component.js +157 -0
- package/dist/lib/esm2015/components/graph/graph.module.js +18 -0
- package/dist/lib/esm2015/components/grouped-bar/grouped-bar.component.js +83 -0
- package/dist/lib/esm2015/components/grouped-bar/grouped-bar.module.js +18 -0
- package/dist/lib/esm2015/components/line/line.component.js +77 -0
- package/dist/lib/esm2015/components/line/line.module.js +18 -0
- package/dist/lib/esm2015/components/sankey/sankey.component.js +139 -0
- package/dist/lib/esm2015/components/sankey/sankey.module.js +18 -0
- package/dist/lib/esm2015/components/scatter/scatter.component.js +83 -0
- package/dist/lib/esm2015/components/scatter/scatter.module.js +18 -0
- package/dist/lib/esm2015/components/stacked-bar/stacked-bar.component.js +83 -0
- package/dist/lib/esm2015/components/stacked-bar/stacked-bar.module.js +18 -0
- package/dist/lib/esm2015/components/timeline/timeline.component.js +87 -0
- package/dist/lib/esm2015/components/timeline/timeline.module.js +18 -0
- package/dist/lib/esm2015/components/tooltip/tooltip.component.js +49 -0
- package/dist/lib/esm2015/components/tooltip/tooltip.module.js +18 -0
- package/dist/lib/esm2015/components/topojson-map/topojson-map.component.js +111 -0
- package/dist/lib/esm2015/components/topojson-map/topojson-map.module.js +18 -0
- package/dist/lib/esm2015/components/xy-labels/xy-labels.component.js +91 -0
- package/dist/lib/esm2015/components/xy-labels/xy-labels.module.js +18 -0
- package/dist/lib/esm2015/components.js +43 -0
- package/dist/lib/esm2015/containers/single-container/single-container.component.js +71 -0
- package/dist/lib/esm2015/containers/single-container/single-container.module.js +17 -0
- package/dist/lib/esm2015/containers/xy-container/xy-container.component.js +159 -0
- package/dist/lib/esm2015/containers/xy-container/xy-container.module.js +17 -0
- package/dist/lib/esm2015/containers.js +5 -0
- package/dist/lib/esm2015/core/core-component.js +4 -0
- package/dist/lib/esm2015/core/generic-component.js +3 -0
- package/dist/lib/esm2015/core/index.js +4 -0
- package/dist/lib/esm2015/core/xy-component.js +4 -0
- package/dist/lib/esm2015/html-components/bullet-legend/bullet-legend.component.js +48 -0
- package/dist/lib/esm2015/html-components/bullet-legend/bullet-legend.module.js +18 -0
- package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.component.js +157 -0
- package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.module.js +17 -0
- package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.component.js +131 -0
- package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.module.js +17 -0
- package/dist/lib/esm2015/public-api.js +3 -0
- package/dist/lib/esm2015/unovis-angular.js +5 -0
- package/dist/lib/fesm2015/unovis-angular.js +2278 -0
- package/dist/lib/fesm2015/unovis-angular.js.map +1 -0
- package/dist/lib/html-components/bullet-legend/bullet-legend.component.d.ts +24 -0
- package/dist/lib/html-components/bullet-legend/bullet-legend.module.d.ts +7 -0
- package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.component.d.ts +197 -0
- package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.module.d.ts +7 -0
- package/dist/lib/html-components/leaflet-map/leaflet-map.component.d.ts +168 -0
- package/dist/lib/html-components/leaflet-map/leaflet-map.module.d.ts +7 -0
- package/dist/lib/package.json +26 -0
- package/dist/lib/public-api.d.ts +2 -0
- package/dist/lib/unovis-angular.d.ts +5 -0
- package/package.json +49 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Sankey, SankeyConfigInterface, ContainerCore, SankeyInputNode, SankeyInputLink, VisEventType, VisEventCallback, SankeyExitTransitionType, SankeyEnterTransitionType, SankeyNodeAlign, StringAccessor, SankeyNode, ColorAccessor, NumericAccessor, SankeyLink, 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: N, node2: N) => 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: L, link2: 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 pixel. Default: `12` */
|
|
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 pixel. Default: `10` */
|
|
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: any;
|
|
157
|
+
component: Sankey<N, L> | undefined;
|
|
158
|
+
componentContainer: ContainerCore | undefined;
|
|
159
|
+
ngAfterViewInit(): void;
|
|
160
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
161
|
+
private getConfig;
|
|
162
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisSankeyComponent<any, any>, never>;
|
|
163
|
+
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>;
|
|
164
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Scatter, ScatterConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, SymbolType, StringAccessor, GenericAccessor, Position } from '@unovis/ts';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class VisScatterComponent<Datum> implements ScatterConfigInterface<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
|
+
/** Component color accessor function. Default: `d => d.color` */
|
|
59
|
+
color?: ColorAccessor<Datum | 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
|
+
/** Size of the scatter plot marker (e.g. diameter if `SymbolType.Circle` is used for `shape`) in pixels.
|
|
74
|
+
* Can be a constant value or an accessor function. But if `sizeRange` is set, then the values will be treated
|
|
75
|
+
* as an input to `sizeScale`, and the resulting size will be different.
|
|
76
|
+
* Default: `10` */
|
|
77
|
+
size?: NumericAccessor<Datum>;
|
|
78
|
+
/** Size scale to be used if the `sizeRange` was set. Default: `Scale.scaleSqrt()` */
|
|
79
|
+
sizeScale?: ContinuousScale;
|
|
80
|
+
/** Size range in the format of `[number, number]` to rescale the input values. Default: `undefined` */
|
|
81
|
+
sizeRange?: [number, number];
|
|
82
|
+
/** Shape of the scatter point. Accessor function or constant value: `SymbolType.Circle`, `SymbolType.Cross`, `SymbolType.Diamond`, `SymbolType.Square`,
|
|
83
|
+
* `SymbolType.Star`, `SymbolType.Triangle` or `SymbolType.Wye`.
|
|
84
|
+
* Default: `SymbolType.Circle` */
|
|
85
|
+
shape?: ((d: Datum, i?: number, ...rest: any[]) => (SymbolType | string)) | SymbolType | string;
|
|
86
|
+
/** Label accessor function or string. Default: `undefined` */
|
|
87
|
+
label?: StringAccessor<Datum>;
|
|
88
|
+
/** Label color. Default: `undefined` */
|
|
89
|
+
labelColor?: ColorAccessor<Datum>;
|
|
90
|
+
/** Optional point cursor. Default: `null` */
|
|
91
|
+
cursor?: StringAccessor<Datum>;
|
|
92
|
+
/** Point color brightness ratio for switching between dark and light text label color. Default: `0.65` */
|
|
93
|
+
labelTextBrightnessRatio?: number;
|
|
94
|
+
/** Label position. Default: `Position.Center` */
|
|
95
|
+
labelPosition?: GenericAccessor<Position | any, Datum>;
|
|
96
|
+
data: Datum[];
|
|
97
|
+
component: Scatter<Datum> | undefined;
|
|
98
|
+
componentContainer: ContainerCore | undefined;
|
|
99
|
+
ngAfterViewInit(): void;
|
|
100
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
101
|
+
private getConfig;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisScatterComponent<any>, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VisScatterComponent<any>, "vis-scatter", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "size": "size"; "sizeScale": "sizeScale"; "sizeRange": "sizeRange"; "shape": "shape"; "label": "label"; "labelColor": "labelColor"; "cursor": "cursor"; "labelTextBrightnessRatio": "labelTextBrightnessRatio"; "labelPosition": "labelPosition"; "data": "data"; }, {}, never, never>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./scatter.component";
|
|
3
|
+
export declare class VisScatterModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisScatterModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VisScatterModule, [typeof i1.VisScatterComponent], never, [typeof i1.VisScatterComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VisScatterModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { StackedBar, StackedBarConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, StringAccessor, Orientation } from '@unovis/ts';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class VisStackedBarComponent<Datum> implements StackedBarConfigInterface<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
|
+
/** Component color accessor function. Default: `d => d.color` */
|
|
59
|
+
color?: ColorAccessor<Datum | 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
|
+
/** Force set bar width in pixels. Default: `undefined` */
|
|
74
|
+
barWidth?: number;
|
|
75
|
+
/** Maximum bar width for dynamic sizing. Default: `undefined` */
|
|
76
|
+
barMaxWidth?: number;
|
|
77
|
+
/** Expected step between the bars in the X axis units.
|
|
78
|
+
* Needed to correctly calculate the width of the bars when there are gaps in the data.
|
|
79
|
+
* Default: `undefined` */
|
|
80
|
+
dataStep?: number;
|
|
81
|
+
/** Fractional padding between the bars in the range of [0,1). Default: `0` */
|
|
82
|
+
barPadding?: number;
|
|
83
|
+
/** Rounded corners for top bars. Boolean or number (to set the radius in pixels). Default: `2` */
|
|
84
|
+
roundedCorners?: number | boolean;
|
|
85
|
+
/** Configurable bar cursor when hovering over. Default: `null` */
|
|
86
|
+
cursor?: StringAccessor<Datum>;
|
|
87
|
+
/** Sets the minimum bar height to 1 pixel for better visibility of small values. Default: `false` */
|
|
88
|
+
barMinHeight1Px?: boolean;
|
|
89
|
+
/** Base value to test data existence when `barMinHeight1Px` is set to `true`.
|
|
90
|
+
* Everything equal to barMinHeightZeroValue will not be rendered on the chart.
|
|
91
|
+
* Default: `null` */
|
|
92
|
+
barMinHeightZeroValue?: any;
|
|
93
|
+
/** Chart orientation: `Orientation.Vertical` or `Orientation.Horizontal`. Default `Orientation.Vertical` */
|
|
94
|
+
orientation?: Orientation;
|
|
95
|
+
data: Datum[];
|
|
96
|
+
component: StackedBar<Datum> | undefined;
|
|
97
|
+
componentContainer: ContainerCore | undefined;
|
|
98
|
+
ngAfterViewInit(): void;
|
|
99
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
100
|
+
private getConfig;
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisStackedBarComponent<any>, never>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VisStackedBarComponent<any>, "vis-stacked-bar", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "barWidth": "barWidth"; "barMaxWidth": "barMaxWidth"; "dataStep": "dataStep"; "barPadding": "barPadding"; "roundedCorners": "roundedCorners"; "cursor": "cursor"; "barMinHeight1Px": "barMinHeight1Px"; "barMinHeightZeroValue": "barMinHeightZeroValue"; "orientation": "orientation"; "data": "data"; }, {}, never, never>;
|
|
103
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./stacked-bar.component";
|
|
3
|
+
export declare class VisStackedBarModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisStackedBarModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VisStackedBarModule, [typeof i1.VisStackedBarComponent], never, [typeof i1.VisStackedBarComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VisStackedBarModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Timeline, TimelineConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, StringAccessor } 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
|
+
/** 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
|
+
/** Component color accessor function. Default: `d => d.color` */
|
|
59
|
+
color?: ColorAccessor<Datum | 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
|
+
/** Width of the timeline items. Default: `8` */
|
|
74
|
+
lineWidth?: NumericAccessor<Datum>;
|
|
75
|
+
/** Line cap: 'butt', 'round' or 'square'.
|
|
76
|
+
* Default appearance is `round` and comes from the `--vis-timeline-line-cap`` CSS variable.
|
|
77
|
+
* Default configuration object value: `undefined` */
|
|
78
|
+
lineCap?: StringAccessor<Datum>;
|
|
79
|
+
/** Timeline row height. Default: `22` */
|
|
80
|
+
rowHeight?: number;
|
|
81
|
+
/** Timeline item length accessor function. Default: `d => d.length` */
|
|
82
|
+
length?: NumericAccessor<Datum>;
|
|
83
|
+
/** Timeline item type accessor function. Records of one type will be plotted in one row. Default: `d => d.type` */
|
|
84
|
+
type?: StringAccessor<Datum>;
|
|
85
|
+
/** Configurable Timeline item cursor when hovering over. Default: `null` */
|
|
86
|
+
cursor?: StringAccessor<Datum>;
|
|
87
|
+
/** Show item type labels when set to `true`. Default: `false` */
|
|
88
|
+
showLabels?: boolean;
|
|
89
|
+
/** Fixed label width in pixels. Labels longer than the specified value will be trimmed. Default: `undefined` */
|
|
90
|
+
labelWidth?: number;
|
|
91
|
+
/** Maximum label width in pixels. Labels longer than the specified value will be trimmed. Default: `120` */
|
|
92
|
+
maxLabelWidth?: number;
|
|
93
|
+
/** Alternating row colors. Default: `true` */
|
|
94
|
+
alternatingRowColors?: boolean;
|
|
95
|
+
/** Scrolling callback function: `(scrollTop: number) => void`. Default: `undefined` */
|
|
96
|
+
onScroll?: (scrollTop: number) => void;
|
|
97
|
+
data: Datum[];
|
|
98
|
+
component: Timeline<Datum> | undefined;
|
|
99
|
+
componentContainer: ContainerCore | undefined;
|
|
100
|
+
ngAfterViewInit(): void;
|
|
101
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
102
|
+
private getConfig;
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisTimelineComponent<any>, never>;
|
|
104
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VisTimelineComponent<any>, "vis-timeline", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "lineWidth": "lineWidth"; "lineCap": "lineCap"; "rowHeight": "rowHeight"; "length": "length"; "type": "type"; "cursor": "cursor"; "showLabels": "showLabels"; "labelWidth": "labelWidth"; "maxLabelWidth": "maxLabelWidth"; "alternatingRowColors": "alternatingRowColors"; "onScroll": "onScroll"; "data": "data"; }, {}, never, never>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
/** Horizontal placement of the tooltip. Default: `Position.Auto` */
|
|
10
|
+
horizontalPlacement?: Position | string | undefined;
|
|
11
|
+
/** Horizontal shift of the tooltip in pixels. Default: `0` */
|
|
12
|
+
horizontalShift?: number;
|
|
13
|
+
/** Vertical placement of the tooltip. Default: `Position.Top` */
|
|
14
|
+
verticalPlacement?: Position | string | undefined;
|
|
15
|
+
/** Vertical shift of the tooltip in pixels. Default: `0` */
|
|
16
|
+
verticalShift?: number;
|
|
17
|
+
/** Defines the content of the tooltip and hovering over which elements should trigger it.
|
|
18
|
+
* An object containing properties in the following format:
|
|
19
|
+
*
|
|
20
|
+
* ```
|
|
21
|
+
* {
|
|
22
|
+
* \[selectorString]: (d: unknown) => string | HTMLElement
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
* e.g.:
|
|
26
|
+
* ```
|
|
27
|
+
* {
|
|
28
|
+
* \[Area.selectors.area]: (d: AreaDatum[]) => `<div>${d.value.toString()}</div>
|
|
29
|
+
* }
|
|
30
|
+
* ``` */
|
|
31
|
+
triggers?: {
|
|
32
|
+
[selector: string]: (data: any, i: number, elements: (HTMLElement | SVGElement)[]) => string | HTMLElement | undefined | null;
|
|
33
|
+
};
|
|
34
|
+
component: Tooltip | undefined;
|
|
35
|
+
componentContainer: ContainerCore | undefined;
|
|
36
|
+
ngAfterViewInit(): void;
|
|
37
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
38
|
+
private getConfig;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisTooltipComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VisTooltipComponent, "vis-tooltip", never, { "components": "components"; "container": "container"; "horizontalPlacement": "horizontalPlacement"; "horizontalShift": "horizontalShift"; "verticalPlacement": "verticalPlacement"; "verticalShift": "verticalShift"; "triggers": "triggers"; }, {}, never, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|