@unovis/angular 1.7.0-Phoenix.0 → 1.7.0-csp.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +4 -0
  2. package/dist/lib/README.md +4 -0
  3. package/dist/lib/fesm2022/unovis-angular.mjs +6639 -0
  4. package/dist/lib/fesm2022/unovis-angular.mjs.map +1 -0
  5. package/dist/lib/index.d.ts +3878 -0
  6. package/package.json +49 -42
  7. package/dist/lib/bundles/unovis-angular.umd.js +0 -3546
  8. package/dist/lib/bundles/unovis-angular.umd.js.map +0 -1
  9. package/dist/lib/components/annotations/annotations.component.d.ts +0 -73
  10. package/dist/lib/components/annotations/annotations.module.d.ts +0 -7
  11. package/dist/lib/components/area/area.component.d.ts +0 -96
  12. package/dist/lib/components/area/area.module.d.ts +0 -7
  13. package/dist/lib/components/axis/axis.component.d.ts +0 -123
  14. package/dist/lib/components/axis/axis.module.d.ts +0 -7
  15. package/dist/lib/components/brush/brush.component.d.ts +0 -83
  16. package/dist/lib/components/brush/brush.module.d.ts +0 -7
  17. package/dist/lib/components/chord-diagram/chord-diagram.component.d.ts +0 -91
  18. package/dist/lib/components/chord-diagram/chord-diagram.module.d.ts +0 -7
  19. package/dist/lib/components/crosshair/crosshair.component.d.ts +0 -124
  20. package/dist/lib/components/crosshair/crosshair.module.d.ts +0 -7
  21. package/dist/lib/components/donut/donut.component.d.ts +0 -99
  22. package/dist/lib/components/donut/donut.module.d.ts +0 -7
  23. package/dist/lib/components/free-brush/free-brush.component.d.ts +0 -85
  24. package/dist/lib/components/free-brush/free-brush.module.d.ts +0 -7
  25. package/dist/lib/components/graph/graph.component.d.ts +0 -296
  26. package/dist/lib/components/graph/graph.module.d.ts +0 -7
  27. package/dist/lib/components/grouped-bar/grouped-bar.component.d.ts +0 -101
  28. package/dist/lib/components/grouped-bar/grouped-bar.module.d.ts +0 -7
  29. package/dist/lib/components/line/line.component.d.ts +0 -102
  30. package/dist/lib/components/line/line.module.d.ts +0 -7
  31. package/dist/lib/components/nested-donut/nested-donut.component.d.ts +0 -107
  32. package/dist/lib/components/nested-donut/nested-donut.module.d.ts +0 -7
  33. package/dist/lib/components/plotband/plotband.component.d.ts +0 -81
  34. package/dist/lib/components/plotband/plotband.module.d.ts +0 -7
  35. package/dist/lib/components/plotline/plotline.component.d.ts +0 -87
  36. package/dist/lib/components/plotline/plotline.module.d.ts +0 -7
  37. package/dist/lib/components/sankey/sankey.component.d.ts +0 -167
  38. package/dist/lib/components/sankey/sankey.module.d.ts +0 -7
  39. package/dist/lib/components/scatter/scatter.component.d.ts +0 -110
  40. package/dist/lib/components/scatter/scatter.module.d.ts +0 -7
  41. package/dist/lib/components/stacked-bar/stacked-bar.component.d.ts +0 -103
  42. package/dist/lib/components/stacked-bar/stacked-bar.module.d.ts +0 -7
  43. package/dist/lib/components/timeline/timeline.component.d.ts +0 -153
  44. package/dist/lib/components/timeline/timeline.module.d.ts +0 -7
  45. package/dist/lib/components/tooltip/tooltip.component.d.ts +0 -73
  46. package/dist/lib/components/tooltip/tooltip.module.d.ts +0 -7
  47. package/dist/lib/components/topojson-map/topojson-map.component.d.ts +0 -125
  48. package/dist/lib/components/topojson-map/topojson-map.module.d.ts +0 -7
  49. package/dist/lib/components/xy-labels/xy-labels.component.d.ts +0 -107
  50. package/dist/lib/components/xy-labels/xy-labels.module.d.ts +0 -7
  51. package/dist/lib/components.d.ts +0 -51
  52. package/dist/lib/containers/single-container/single-container.component.d.ts +0 -46
  53. package/dist/lib/containers/single-container/single-container.module.d.ts +0 -7
  54. package/dist/lib/containers/xy-container/xy-container.component.d.ts +0 -101
  55. package/dist/lib/containers/xy-container/xy-container.module.d.ts +0 -7
  56. package/dist/lib/containers.d.ts +0 -4
  57. package/dist/lib/core/core-component.d.ts +0 -6
  58. package/dist/lib/core/generic-component.d.ts +0 -3
  59. package/dist/lib/core/index.d.ts +0 -3
  60. package/dist/lib/core/xy-component.d.ts +0 -6
  61. package/dist/lib/esm2015/components/annotations/annotations.component.js +0 -43
  62. package/dist/lib/esm2015/components/annotations/annotations.module.js +0 -18
  63. package/dist/lib/esm2015/components/area/area.component.js +0 -77
  64. package/dist/lib/esm2015/components/area/area.module.js +0 -18
  65. package/dist/lib/esm2015/components/axis/axis.component.js +0 -109
  66. package/dist/lib/esm2015/components/axis/axis.module.js +0 -18
  67. package/dist/lib/esm2015/components/brush/brush.component.js +0 -69
  68. package/dist/lib/esm2015/components/brush/brush.module.js +0 -18
  69. package/dist/lib/esm2015/components/chord-diagram/chord-diagram.component.js +0 -79
  70. package/dist/lib/esm2015/components/chord-diagram/chord-diagram.module.js +0 -18
  71. package/dist/lib/esm2015/components/crosshair/crosshair.component.js +0 -91
  72. package/dist/lib/esm2015/components/crosshair/crosshair.module.js +0 -18
  73. package/dist/lib/esm2015/components/donut/donut.component.js +0 -87
  74. package/dist/lib/esm2015/components/donut/donut.module.js +0 -18
  75. package/dist/lib/esm2015/components/free-brush/free-brush.component.js +0 -69
  76. package/dist/lib/esm2015/components/free-brush/free-brush.module.js +0 -18
  77. package/dist/lib/esm2015/components/graph/graph.component.js +0 -231
  78. package/dist/lib/esm2015/components/graph/graph.module.js +0 -18
  79. package/dist/lib/esm2015/components/grouped-bar/grouped-bar.component.js +0 -83
  80. package/dist/lib/esm2015/components/grouped-bar/grouped-bar.module.js +0 -18
  81. package/dist/lib/esm2015/components/line/line.component.js +0 -79
  82. package/dist/lib/esm2015/components/line/line.module.js +0 -18
  83. package/dist/lib/esm2015/components/nested-donut/nested-donut.component.js +0 -89
  84. package/dist/lib/esm2015/components/nested-donut/nested-donut.module.js +0 -18
  85. package/dist/lib/esm2015/components/plotband/plotband.component.js +0 -61
  86. package/dist/lib/esm2015/components/plotband/plotband.module.js +0 -18
  87. package/dist/lib/esm2015/components/plotline/plotline.component.js +0 -63
  88. package/dist/lib/esm2015/components/plotline/plotline.module.js +0 -18
  89. package/dist/lib/esm2015/components/sankey/sankey.component.js +0 -139
  90. package/dist/lib/esm2015/components/sankey/sankey.module.js +0 -18
  91. package/dist/lib/esm2015/components/scatter/scatter.component.js +0 -89
  92. package/dist/lib/esm2015/components/scatter/scatter.module.js +0 -18
  93. package/dist/lib/esm2015/components/stacked-bar/stacked-bar.component.js +0 -83
  94. package/dist/lib/esm2015/components/stacked-bar/stacked-bar.module.js +0 -18
  95. package/dist/lib/esm2015/components/timeline/timeline.component.js +0 -131
  96. package/dist/lib/esm2015/components/timeline/timeline.module.js +0 -18
  97. package/dist/lib/esm2015/components/tooltip/tooltip.component.js +0 -61
  98. package/dist/lib/esm2015/components/tooltip/tooltip.module.js +0 -18
  99. package/dist/lib/esm2015/components/topojson-map/topojson-map.component.js +0 -111
  100. package/dist/lib/esm2015/components/topojson-map/topojson-map.module.js +0 -18
  101. package/dist/lib/esm2015/components/xy-labels/xy-labels.component.js +0 -91
  102. package/dist/lib/esm2015/components/xy-labels/xy-labels.module.js +0 -18
  103. package/dist/lib/esm2015/components.js +0 -55
  104. package/dist/lib/esm2015/containers/single-container/single-container.component.js +0 -82
  105. package/dist/lib/esm2015/containers/single-container/single-container.module.js +0 -17
  106. package/dist/lib/esm2015/containers/xy-container/xy-container.component.js +0 -177
  107. package/dist/lib/esm2015/containers/xy-container/xy-container.module.js +0 -17
  108. package/dist/lib/esm2015/containers.js +0 -5
  109. package/dist/lib/esm2015/core/core-component.js +0 -4
  110. package/dist/lib/esm2015/core/generic-component.js +0 -3
  111. package/dist/lib/esm2015/core/index.js +0 -4
  112. package/dist/lib/esm2015/core/xy-component.js +0 -4
  113. package/dist/lib/esm2015/html-components/bullet-legend/bullet-legend.component.js +0 -56
  114. package/dist/lib/esm2015/html-components/bullet-legend/bullet-legend.module.js +0 -18
  115. package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.component.js +0 -170
  116. package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.module.js +0 -18
  117. package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.component.js +0 -144
  118. package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.module.js +0 -18
  119. package/dist/lib/esm2015/html-components/rolling-pin-legend/rolling-pin-legend.component.js +0 -48
  120. package/dist/lib/esm2015/html-components/rolling-pin-legend/rolling-pin-legend.module.js +0 -18
  121. package/dist/lib/esm2015/public-api.js +0 -3
  122. package/dist/lib/esm2015/unovis-angular.js +0 -5
  123. package/dist/lib/fesm2015/unovis-angular.js +0 -2922
  124. package/dist/lib/fesm2015/unovis-angular.js.map +0 -1
  125. package/dist/lib/html-components/bullet-legend/bullet-legend.component.d.ts +0 -42
  126. package/dist/lib/html-components/bullet-legend/bullet-legend.module.d.ts +0 -7
  127. package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.component.d.ts +0 -212
  128. package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.module.d.ts +0 -7
  129. package/dist/lib/html-components/leaflet-map/leaflet-map.component.d.ts +0 -183
  130. package/dist/lib/html-components/leaflet-map/leaflet-map.module.d.ts +0 -7
  131. package/dist/lib/html-components/rolling-pin-legend/rolling-pin-legend.component.d.ts +0 -24
  132. package/dist/lib/html-components/rolling-pin-legend/rolling-pin-legend.module.d.ts +0 -7
  133. package/dist/lib/package.json +0 -53
  134. package/dist/lib/public-api.d.ts +0 -2
  135. package/dist/lib/unovis-angular.d.ts +0 -5
@@ -0,0 +1,3878 @@
1
+ import * as i0 from '@angular/core';
2
+ import { AfterViewInit, SimpleChanges, AfterContentInit, OnDestroy, ElementRef, QueryList } from '@angular/core';
3
+ import { ComponentCore, ContainerCore, XYComponentCore, XYContainer, TooltipConfigInterface, Position, Tooltip, AnnotationsConfigInterface, VisEventType, VisEventCallback, AnnotationItem, Annotations, ContinuousScale, Direction, Spacing, ColorFunction, XYContainerConfigInterface, Sizing, SingleContainer, SingleContainerConfigInterface, AreaConfigInterface, NumericAccessor, ColorAccessor, GenericAccessor, FillPatternType, CurveType, StringAccessor, LinePatternType, Area, AxisConfigInterface, AxisType, FitMode, TrimMode, TextAlign, Axis, BoxplotConfigInterface, Boxplot, BrushConfigInterface, Arrangement, Brush, ChordInputNode, ChordInputLink, ChordDiagramConfigInterface, ChordNodeDatum, ChordLinkDatum, ChordLabelAlignment, ChordDiagram, CrosshairConfigInterface, CrosshairSnapMode, CrosshairCircle, Crosshair, DonutConfigInterface, Donut, FreeBrushConfigInterface, FreeBrushMode, FreeBrushSelection, FreeBrush, GraphInputNode, GraphInputLink, GraphConfigInterface, GraphFitViewAlignment, GraphLayoutType, GraphForceLayoutSettings, GraphDagreLayoutSetting, GraphElkLayoutSettings, GraphNode, GraphLinkStyle, GraphLinkArrowStyle, BooleanAccessor, GraphCircleLabel, GraphLink, GraphNodeShape, GraphNodeSelectionHighlightMode, GraphPanelConfig, GraphInputData, GraphDataModel, Graph, GroupedBarConfigInterface, Orientation, GroupedBar, HeatmapConfigInterface, HeatmapLayoutType, Heatmap, LineConfigInterface, Line, NestedDonutConfigInterface, NestedDonutDirection, NestedDonutSegment, NestedDonutLayerSettings, NestedDonut, PlotlineConfigInterface, PlotlineLineStylePresets, PlotlineLabelPosition, PlotlineLabelOrientation, Plotline, SankeyInputNode, SankeyInputLink, SankeyConfigInterface, SankeyZoomMode, SankeyExitTransitionType, SankeyEnterTransitionType, SankeyNode, SankeyLink, SankeyNodeAlign, VerticalAlign, SankeySubLabelPlacement, Sankey, RadialBarConfigInterface, RadialBar, ScatterConfigInterface, SymbolType, Scatter, StackedBarConfigInterface, StackedBar, TimelineConfigInterface, TimelineRowLabel, TimelineRowIcon, TimelineArrow, TimelineLineRenderState, Timeline, XYLabelsConfigInterface, XYLabelPositioning, XYLabel, XYLabels, TopoJSONMapConfigInterface, MapPointLabelPosition, TopoJSONMapClusterDatum, TopoJSONMapPointStyles, TopoJSONMap, TreemapConfigInterface, TreemapNode, TreemapTileFunction, TreemapDatum, Treemap, PlotbandConfigInterface, PlotbandLabelPosition, PlotbandLabelOrientation, Plotband, GenericDataRecord, LeafletMapConfigInterface, Bounds, MapLibreStyleSpecs, LeafletMapRenderer, MapZoomState, LeafletMapPointShape, LeafletMapPointDatum, LeafletMapClusterDatum, LeafletMapPointStyles, LeafletMap, LeafletFlowMapConfigInterface, LeafletFlowMap, BulletLegendConfigInterface, BulletLegendItemInterface, BulletShape, BulletLegendOrientation, BulletLegend, FlowLegendConfigInterface, FlowLegend, RollingPinLegendConfigInterface, RollingPinLegendItem, RollingPinLegend } from '@unovis/ts';
4
+ import { D3BrushEvent } from 'd3-brush';
5
+ import { ElkShape } from 'elkjs';
6
+ import { Selection } from 'd3-selection';
7
+ import { D3DragEvent } from 'd3-drag';
8
+ import { D3ZoomEvent, ZoomTransform } from 'd3-zoom';
9
+ import { GeoProjection } from 'd3-geo';
10
+
11
+ declare class VisGenericComponent {
12
+ component: any;
13
+ }
14
+
15
+ declare class VisCoreComponent extends VisGenericComponent {
16
+ component: ComponentCore<any>;
17
+ componentContainer: ContainerCore;
18
+ }
19
+
20
+ declare class VisXYComponent extends VisCoreComponent {
21
+ component: XYComponentCore<any>;
22
+ componentContainer: XYContainer<any>;
23
+ }
24
+
25
+ declare class VisTooltipComponent implements TooltipConfigInterface, AfterViewInit {
26
+ /** An array of visualization components to interact with. Default: `[]` */
27
+ components?: ComponentCore<unknown>[];
28
+ /** Container to where the Tooltip component should be inserted. Default: `undefined` */
29
+ container?: HTMLElement;
30
+ /** Follow the mouse cursor. Default: `true` */
31
+ followCursor?: boolean;
32
+ /** Allow the tooltip to be hovered over and interacted with. Default: `false` */
33
+ allowHover?: boolean;
34
+ /** Horizontal placement of the tooltip. Default: `Position.Auto` */
35
+ horizontalPlacement?: Position | string | undefined;
36
+ /** Horizontal shift of the tooltip in pixels. Works only with
37
+ * `horizontalPlacement` set to `Position.Left` or `Position.Right`.
38
+ * Default: `0` */
39
+ horizontalShift?: number;
40
+ /** Vertical placement of the tooltip. Default: `Position.Top` */
41
+ verticalPlacement?: Position | string | undefined;
42
+ /** Vertical shift of the tooltip in pixels. Works only with
43
+ * `verticalPlacement` set to `Position.Top` or `Position.Bottom`.
44
+ * Default: `0` */
45
+ verticalShift?: number;
46
+ /** Defines the content of the tooltip and hovering over which elements should trigger it.
47
+ * An object containing properties in the following format:
48
+ *
49
+ * ```
50
+ * {
51
+ * \[selectorString]: (d: unknown) => string | HTMLElement
52
+ * }
53
+ * ```
54
+ * e.g.:
55
+ * ```
56
+ * {
57
+ * \[Area.selectors.area]: (d: AreaDatum[]) => `<div>${d.value.toString()}</div>
58
+ * }
59
+ * ``` */
60
+ triggers?: {
61
+ [selector: string]: ((data: any, i: number, elements: (HTMLElement | SVGElement)[]) => string | HTMLElement | undefined | null | void) | undefined | null;
62
+ };
63
+ /** Custom DOM attributes for the tooltip. Useful when you need to refer to a specific tooltip instance
64
+ * by using a CSS selector. Attributes configuration object has the following structure:
65
+ *
66
+ * ```
67
+ * {
68
+ * \[attributeName]: attribute value
69
+ * }
70
+ * ```
71
+ * e.g.:
72
+ * ```
73
+ * {
74
+ * \'type': 'area-tooltip',
75
+ * \'value': 42
76
+ * }
77
+ * ``` */
78
+ attributes?: {
79
+ [attr: string]: string | number | boolean;
80
+ };
81
+ /** Custom class name for the tooltip. Default: `undefined` */
82
+ className?: string;
83
+ /** Hide delay in milliseconds. Default: `undefined` */
84
+ hideDelay?: number;
85
+ /** Show delay in milliseconds. Default: `undefined` */
86
+ showDelay?: number;
87
+ component: Tooltip | undefined;
88
+ componentContainer: ContainerCore | undefined;
89
+ ngAfterViewInit(): void;
90
+ ngOnChanges(changes: SimpleChanges): void;
91
+ private getConfig;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisTooltipComponent, never>;
93
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisTooltipComponent, "vis-tooltip", never, { "components": { "alias": "components"; "required": false; }; "container": { "alias": "container"; "required": false; }; "followCursor": { "alias": "followCursor"; "required": false; }; "allowHover": { "alias": "allowHover"; "required": false; }; "horizontalPlacement": { "alias": "horizontalPlacement"; "required": false; }; "horizontalShift": { "alias": "horizontalShift"; "required": false; }; "verticalPlacement": { "alias": "verticalPlacement"; "required": false; }; "verticalShift": { "alias": "verticalShift"; "required": false; }; "triggers": { "alias": "triggers"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "className": { "alias": "className"; "required": false; }; "hideDelay": { "alias": "hideDelay"; "required": false; }; "showDelay": { "alias": "showDelay"; "required": false; }; }, {}, never, never, false, never>;
94
+ }
95
+
96
+ declare class VisAnnotationsComponent implements AnnotationsConfigInterface, AfterViewInit {
97
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
98
+ duration?: number;
99
+ /** Events configuration. An object containing properties in the following format:
100
+ *
101
+ * ```
102
+ * {
103
+ * \[selectorString]: {
104
+ * \[eventType]: callbackFunction
105
+ * }
106
+ * }
107
+ * ```
108
+ * e.g.:
109
+ * ```
110
+ * {
111
+ * \[Area.selectors.area]: {
112
+ * click: (d) => console.log("Clicked Area", d)
113
+ * }
114
+ * }
115
+ * ``` */
116
+ events?: {
117
+ [selector: string]: {
118
+ [eventType in VisEventType]?: VisEventCallback;
119
+ };
120
+ };
121
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
122
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
123
+ *
124
+ * ```
125
+ * {
126
+ * \[selectorString]: {
127
+ * \[attributeName]: attribute constant value or accessor function
128
+ * }
129
+ * }
130
+ * ```
131
+ * e.g.:
132
+ * ```
133
+ * {
134
+ * \[Area.selectors.area]: {
135
+ * "test-value": d => d.value
136
+ * }
137
+ * }
138
+ * ``` */
139
+ attributes?: {
140
+ [selector: string]: {
141
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
142
+ };
143
+ };
144
+ /** Legend items. Array of `AnnotationItem`:
145
+ * ```
146
+ * {
147
+ * content: string | UnovisText | UnovisText[];
148
+ * subject?: AnnotationSubject;
149
+ * x?: LengthUnit;
150
+ * y?: LengthUnit;
151
+ * width?: LengthUnit;
152
+ * height?: LengthUnit;
153
+ * }
154
+ * ```
155
+ * To learn more, see our docs https://unovis.dev/docs/components/Annotations/
156
+ * Default: `[]` */
157
+ items: AnnotationItem[] | undefined;
158
+ /** Debug option to render bounding boxes around text elements. Default: `false` */
159
+ renderTextBoundingBoxes?: boolean;
160
+ component: Annotations | undefined;
161
+ componentContainer: ContainerCore | undefined;
162
+ ngAfterViewInit(): void;
163
+ ngOnChanges(changes: SimpleChanges): void;
164
+ private getConfig;
165
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisAnnotationsComponent, never>;
166
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisAnnotationsComponent, "vis-annotations", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "items": { "alias": "items"; "required": false; }; "renderTextBoundingBoxes": { "alias": "renderTextBoundingBoxes"; "required": false; }; }, {}, never, never, false, never>;
167
+ }
168
+
169
+ declare class VisXYContainerComponent<Datum> implements AfterViewInit, AfterContentInit, OnDestroy {
170
+ containerRef: ElementRef;
171
+ visComponents: QueryList<VisXYComponent>;
172
+ tooltipComponent: VisTooltipComponent;
173
+ annotationsComponent: VisAnnotationsComponent;
174
+ /** Width in pixels or in CSS units.
175
+ * Percentage units `"%"` are not supported here. If you want to set `width` as a percentage, do it via `style` or `class`
176
+ * of the corresponding DOM element.
177
+ * Default: `undefined`
178
+ */
179
+ width?: number;
180
+ /** Height in pixels or in CSS units.
181
+ * Percentage units `"%"` are not supported here. If you want to set `height` as a percentage, do it via `style` or `class`
182
+ * of the corresponding DOM element.
183
+ * Default: `undefined`
184
+ */
185
+ height?: number;
186
+ /** Scale for X dimension, e.g. Scale.scaleLinear(). Default: `Scale.scaleLinear()` */
187
+ xScale?: ContinuousScale;
188
+ /** Scale domain (data extent) for X dimension. By default this value is calculated automatically based on data. */
189
+ xDomain?: [number | undefined, number | undefined];
190
+ /** Constraint the minimum value of the X scale domain. Useful when the data is plotted along the X axis.
191
+ * For example, imagine that you have a chart with dynamic data that has negative values. When values are small
192
+ * (let's say in the range of [-0.01, 0]), you might still want the chart to display some meaningful value range (e.g. [-1, 0]). That can
193
+ * be achieved by setting `xDomainMinConstraint` to `[undefined, -1]`. In addition to that, if you want to cut off the
194
+ * values that are too low (let's say lower than -100), you can set the constraint to `[-100, -1]`
195
+ * Default: `undefined` */
196
+ xDomainMinConstraint?: [number | undefined, number | undefined];
197
+ /** Constraint the minimum value of the X scale domain. Useful when the data is plotted along the X axis.
198
+ * For example, imagine that you have a chart with dynamic data. When values are small
199
+ * (let's say < 0.01), you might still want the chart to display some meaningful value range (e.g. [0, 1]). That can
200
+ * be achieved by setting `xDomainMaxConstraint` to `[1, undefined]`. In addition to that, if you want to cut off the
201
+ * values that are too high (let's say higher than 100), you can set the constraint to `[1, 100]`
202
+ * Default: `undefined` */
203
+ xDomainMaxConstraint?: [number | undefined, number | undefined];
204
+ /** Force set the X scale range (in the screen space). By default the range is calculated automatically based on the
205
+ * chart's set up */
206
+ xRange?: [number, number];
207
+ /** Scale for Y dimension, e.g. Scale.ScaleLinear. Default: `Scale.ScaleLinear()` */
208
+ yScale?: ContinuousScale;
209
+ /** Scale domain (data extent) for Y dimension. By default this value is calculated automatically based on data. */
210
+ yDomain?: [number | undefined, number | undefined];
211
+ /** Constraint the minimum value of the Y scale domain.
212
+ * For example, imagine that you have a chart with dynamic data that has negative values. When values are small
213
+ * (let's say in the range of [-0.01, 0]), you might still want the chart to display some meaningful value range (e.g. [-1, 0]). That can
214
+ * be achieved by setting `yDomainMinConstraint` to `[undefined, -1]`. In addition to that, if you want to cut off the
215
+ * values that are too low (let's say lower than -100), you can set the constraint to `[-100, -1]`
216
+ * Default: `undefined` */
217
+ yDomainMinConstraint?: [number | undefined, number | undefined];
218
+ /** Constraint the minimum value of the Y scale domain.
219
+ * For example, imagine that you have a chart with dynamic data. When values are small
220
+ * (let's say < 0.01), you might still want the chart to display some meaningful value range (e.g. [0, 1]). That can
221
+ * be achieved by setting `yDomainMaxConstraint` to `[1, undefined]`. In addition to that, if you want to cut off the
222
+ * values that are too high (let's say higher than 100), you can set the constraint to `[1, 100]`
223
+ * Default: `undefined` */
224
+ yDomainMaxConstraint?: [number | undefined, number | undefined];
225
+ /** Force set the Y scale range (in the screen space). By default the range is calculated automatically based on the
226
+ * chart's set up */
227
+ yRange?: [number, number];
228
+ /** Y Axis direction. Default: `Direction.North` */
229
+ yDirection?: Direction.South | Direction.North | string;
230
+ /** Prevents the chart domain from being empty (when domain's min and max values are equal).
231
+ * That usually happens when all the data values are the same or when there's no data.
232
+ * Setting to `true` will automatically extend the domain by `+1` when needed.
233
+ * Setting to `null` will extend the domain only when there's no data.
234
+ * Setting to `false` will keep the domain as is.
235
+ * Default: `null` */
236
+ preventEmptyDomain?: boolean | null;
237
+ /** Animation duration of all the components within the container. Default: `undefined` */
238
+ duration?: number;
239
+ /** Margins. Default: `{ top: 0, bottom: 0, left: 0, right: 0 }` */
240
+ margin?: Spacing;
241
+ /** Padding. Default: `{ top: 0, bottom: 0, left: 0, right: 0 }` */
242
+ padding?: Spacing;
243
+ /** Sets the Y scale domain based on the current X scale domain (not the whole dataset). Default: `false` */
244
+ scaleByDomain?: boolean;
245
+ /** Enables automatic calculation of chart margins based on the size of the axes. Default: `true` */
246
+ autoMargin?: boolean;
247
+ /** Override the automatically calculated bleed — the extra space (in pixels) the components request
248
+ * to fully fit into the container (e.g. half of the point diameter for Scatter), which gets subtracted
249
+ * from the scale ranges. Accepts a `Spacing` object or a function that receives the container's
250
+ * components (their individual bleed values are available via the `bleed` getter) and returns one.
251
+ * The sides you provide replace the calculated values, the sides left `undefined` fall back to them —
252
+ * pass `0` explicitly to remove the bleed on a side.
253
+ * Useful for synchronizing the scale ranges of multiple charts, since the final bleed is provided
254
+ * to the `onRenderComplete` callback. Default: `undefined` */
255
+ bleed?: Spacing | ((components: XYComponentCore<Datum>[]) => Spacing);
256
+ /** Alternative text description of the chart for accessibility purposes. It will be applied as an
257
+ * `aria-label` attribute to the div element containing your chart. Default: `undefined`.
258
+ */
259
+ ariaLabel?: string | null | undefined;
260
+ /** A custom color function to be used for all the components within the container.
261
+ * Maps indices or data color keys (when `colorKeys` are provided to components) to colors.
262
+ * Default: `undefined`
263
+ */
264
+ colorFunction?: ColorFunction;
265
+ /** Data to be passed to all child components. But if `data` is `undefined` it'll to be passed allowing components to
266
+ * have their individual data. Default: `undefined` */
267
+ data?: Datum[] | undefined;
268
+ chart: XYContainer<Datum>;
269
+ ngAfterViewInit(): void;
270
+ ngAfterContentInit(): void;
271
+ ngOnChanges(changes: SimpleChanges): void;
272
+ getConfig(): XYContainerConfigInterface<Datum>;
273
+ passContainerReferenceToChildren(): void;
274
+ ngOnDestroy(): void;
275
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisXYContainerComponent<any>, never>;
276
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisXYContainerComponent<any>, "vis-xy-container", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "xDomain": { "alias": "xDomain"; "required": false; }; "xDomainMinConstraint": { "alias": "xDomainMinConstraint"; "required": false; }; "xDomainMaxConstraint": { "alias": "xDomainMaxConstraint"; "required": false; }; "xRange": { "alias": "xRange"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "yDomain": { "alias": "yDomain"; "required": false; }; "yDomainMinConstraint": { "alias": "yDomainMinConstraint"; "required": false; }; "yDomainMaxConstraint": { "alias": "yDomainMaxConstraint"; "required": false; }; "yRange": { "alias": "yRange"; "required": false; }; "yDirection": { "alias": "yDirection"; "required": false; }; "preventEmptyDomain": { "alias": "preventEmptyDomain"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "scaleByDomain": { "alias": "scaleByDomain"; "required": false; }; "autoMargin": { "alias": "autoMargin"; "required": false; }; "bleed": { "alias": "bleed"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "colorFunction": { "alias": "colorFunction"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, ["tooltipComponent", "annotationsComponent", "visComponents"], ["*"], false, never>;
277
+ }
278
+
279
+ declare class VisXYContainerModule {
280
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisXYContainerModule, never>;
281
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisXYContainerModule, [typeof VisXYContainerComponent], never, [typeof VisXYContainerComponent]>;
282
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisXYContainerModule>;
283
+ }
284
+
285
+ declare class VisSingleContainerComponent<Data = unknown, C extends ComponentCore<Data> = ComponentCore<Data>> implements AfterViewInit, OnDestroy {
286
+ containerRef: ElementRef;
287
+ visComponent: VisCoreComponent;
288
+ tooltipComponent: VisTooltipComponent;
289
+ annotationsComponent: VisAnnotationsComponent;
290
+ /** Width in pixels or in CSS units.
291
+ * Percentage units `"%"` are not supported here. If you want to set `width` as a percentage, do it via `style` or `class`
292
+ * of the corresponding DOM element.
293
+ * Default: `undefined`
294
+ */
295
+ width?: number;
296
+ /** Height in pixels or in CSS units.
297
+ * Percentage units `"%"` are not supported here. If you want to set `height` as a percentage, do it via `style` or `class`
298
+ * of the corresponding DOM element.
299
+ * Default: `undefined`
300
+ */
301
+ height?: number;
302
+ /** Margins. Default: `{ top: 0, bottom: 0, left: 0, right: 0 }` */
303
+ margin?: Spacing;
304
+ /** Animation duration of all the components within the container. Default: `undefined` */
305
+ duration?: number;
306
+ /** Alternative text description of the chart for accessibility purposes. It will be applied as an
307
+ * `aria-label` attribute to the div element containing your chart. Default: `undefined`.
308
+ */
309
+ ariaLabel?: string | null | undefined;
310
+ /** Custom SVG defs available to all the components within the container. Default: `undefined`. */
311
+ svgDefs?: string;
312
+ /** Defines whether components should fit into the container or the container should expand to fit to the component's size.
313
+ * Works with a limited set of components. Default: `Sizing.Fit` */
314
+ sizing?: Sizing | string;
315
+ /** A custom color function to be used for all the components within the container.
316
+ * Maps indices or data color keys (when `colorKeys` are provided to components) to colors.
317
+ * Default: `undefined`
318
+ */
319
+ colorFunction?: ColorFunction;
320
+ /** Data to be passed to the component. Default: `undefined`. */
321
+ data?: Data;
322
+ chart: SingleContainer<Data>;
323
+ ngAfterViewInit(): void;
324
+ ngOnChanges(changes: SimpleChanges): void;
325
+ getConfig(): SingleContainerConfigInterface<Data>;
326
+ ngOnDestroy(): void;
327
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisSingleContainerComponent<any, any>, never>;
328
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisSingleContainerComponent<any, any>, "vis-single-container", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "svgDefs": { "alias": "svgDefs"; "required": false; }; "sizing": { "alias": "sizing"; "required": false; }; "colorFunction": { "alias": "colorFunction"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, ["visComponent", "tooltipComponent", "annotationsComponent"], ["*"], false, never>;
329
+ }
330
+
331
+ declare class VisSingleContainerModule {
332
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisSingleContainerModule, never>;
333
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisSingleContainerModule, [typeof VisSingleContainerComponent], never, [typeof VisSingleContainerComponent]>;
334
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisSingleContainerModule>;
335
+ }
336
+
337
+ declare class VisAreaComponent<Datum> implements AreaConfigInterface<Datum>, AfterViewInit {
338
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
339
+ duration?: number;
340
+ /** Events configuration. An object containing properties in the following format:
341
+ *
342
+ * ```
343
+ * {
344
+ * \[selectorString]: {
345
+ * \[eventType]: callbackFunction
346
+ * }
347
+ * }
348
+ * ```
349
+ * e.g.:
350
+ * ```
351
+ * {
352
+ * \[Area.selectors.area]: {
353
+ * click: (d) => console.log("Clicked Area", d)
354
+ * }
355
+ * }
356
+ * ``` */
357
+ events?: {
358
+ [selector: string]: {
359
+ [eventType in VisEventType]?: VisEventCallback;
360
+ };
361
+ };
362
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
363
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
364
+ *
365
+ * ```
366
+ * {
367
+ * \[selectorString]: {
368
+ * \[attributeName]: attribute constant value or accessor function
369
+ * }
370
+ * }
371
+ * ```
372
+ * e.g.:
373
+ * ```
374
+ * {
375
+ * \[Area.selectors.area]: {
376
+ * "test-value": d => d.value
377
+ * }
378
+ * }
379
+ * ``` */
380
+ attributes?: {
381
+ [selector: string]: {
382
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
383
+ };
384
+ };
385
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
386
+ x: NumericAccessor<Datum>;
387
+ /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
388
+ y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
389
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
390
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
391
+ /** Area color accessor function. The whole data array will be passed as the first argument. Default: `undefined` */
392
+ color?: ColorAccessor<Datum[]>;
393
+ /** Array of data color keys. Use to map data keys to colors.
394
+ * Expected to the same length as the `y` accessors array.
395
+ * Default: `undefined` */
396
+ colorKeys?: string[];
397
+ /** 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.
398
+ * Only continuous scales are supported.
399
+ * Default: `undefined` */
400
+ xScale?: ContinuousScale;
401
+ /** 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.
402
+ * Only continuous scales are supported.
403
+ * Default: `undefined` */
404
+ yScale?: ContinuousScale;
405
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
406
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
407
+ * the scales of the chart.
408
+ * Default: `false` */
409
+ excludeFromDomainCalculation?: boolean;
410
+ /** Area fill pattern accessor. Resolves to a `FillPatternType`. The whole data array is passed as the first argument. Default: `undefined` */
411
+ pattern?: GenericAccessor<FillPatternType, Datum[]>;
412
+ /** Curve type from the CurveType enum. Default: `CurveType.MonotoneX` */
413
+ curveType?: CurveType | string;
414
+ /** Baseline value or accessor function. Default: `undefined` */
415
+ baseline?: NumericAccessor<Datum>;
416
+ /** Opacity value or accessor function. Default: `1` */
417
+ opacity?: NumericAccessor<Datum[]>;
418
+ /** Optional area cursor. String or accessor function. Default: `null` */
419
+ cursor?: StringAccessor<Datum[]>;
420
+ /** Display a line on the top of the area. Default: `false` */
421
+ line?: boolean;
422
+ /** Line color accessor function. The whole data array will be passed as the first argument. Default: `undefined` */
423
+ lineColor?: ColorAccessor<Datum[]>;
424
+ /** Line width in pixels. Default: `2` */
425
+ lineWidth?: number;
426
+ /** Line dash array, see SVG's stroke-dasharray. Default: `undefined` */
427
+ lineDashArray?: GenericAccessor<number[], Datum[]>;
428
+ /** Pattern accessor for the area's outline. Resolves to a `LinePatternType`. The whole data array is passed as the first argument. Default: `undefined` */
429
+ linePattern?: GenericAccessor<LinePatternType, Datum[]>;
430
+ /** If an area is smaller than 1px, extend it to have 1px height. Default: `false` */
431
+ minHeight1Px?: boolean;
432
+ /** Minimum height of the area, use carefully.
433
+ * This setting is useful when some of the area values are zeros or very small so visually they become
434
+ * practically invisible, but you want to show that the data behind them exists and they're not just empty segments.
435
+ * Default: `undefined` */
436
+ minHeight?: number;
437
+ /** Whether to stack min height areas or not. Default: `undefined` */
438
+ stackMinHeight?: boolean;
439
+ data: Datum[];
440
+ component: Area<Datum> | undefined;
441
+ componentContainer: ContainerCore | undefined;
442
+ ngAfterViewInit(): void;
443
+ ngOnChanges(changes: SimpleChanges): void;
444
+ private getConfig;
445
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisAreaComponent<any>, never>;
446
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisAreaComponent<any>, "vis-area", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "curveType": { "alias": "curveType"; "required": false; }; "baseline": { "alias": "baseline"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "line": { "alias": "line"; "required": false; }; "lineColor": { "alias": "lineColor"; "required": false; }; "lineWidth": { "alias": "lineWidth"; "required": false; }; "lineDashArray": { "alias": "lineDashArray"; "required": false; }; "linePattern": { "alias": "linePattern"; "required": false; }; "minHeight1Px": { "alias": "minHeight1Px"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "stackMinHeight": { "alias": "stackMinHeight"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
447
+ }
448
+
449
+ declare class VisAreaModule {
450
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisAreaModule, never>;
451
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisAreaModule, [typeof VisAreaComponent], never, [typeof VisAreaComponent]>;
452
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisAreaModule>;
453
+ }
454
+
455
+ declare class VisAnnotationsModule {
456
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisAnnotationsModule, never>;
457
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisAnnotationsModule, [typeof VisAnnotationsComponent], never, [typeof VisAnnotationsComponent]>;
458
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisAnnotationsModule>;
459
+ }
460
+
461
+ declare class VisAxisComponent<Datum> implements AxisConfigInterface<Datum>, AfterViewInit {
462
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
463
+ duration?: number;
464
+ /** Events configuration. An object containing properties in the following format:
465
+ *
466
+ * ```
467
+ * {
468
+ * \[selectorString]: {
469
+ * \[eventType]: callbackFunction
470
+ * }
471
+ * }
472
+ * ```
473
+ * e.g.:
474
+ * ```
475
+ * {
476
+ * \[Area.selectors.area]: {
477
+ * click: (d) => console.log("Clicked Area", d)
478
+ * }
479
+ * }
480
+ * ``` */
481
+ events?: {
482
+ [selector: string]: {
483
+ [eventType in VisEventType]?: VisEventCallback;
484
+ };
485
+ };
486
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
487
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
488
+ *
489
+ * ```
490
+ * {
491
+ * \[selectorString]: {
492
+ * \[attributeName]: attribute constant value or accessor function
493
+ * }
494
+ * }
495
+ * ```
496
+ * e.g.:
497
+ * ```
498
+ * {
499
+ * \[Area.selectors.area]: {
500
+ * "test-value": d => d.value
501
+ * }
502
+ * }
503
+ * ``` */
504
+ attributes?: {
505
+ [selector: string]: {
506
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
507
+ };
508
+ };
509
+ /** Axis position: `Position.Top`, `Position.Bottom`, `Position.Right` or `Position.Left`. Default: `undefined` */
510
+ position?: Position | `${Position}`;
511
+ /** Axis type: `AxisType.X` or `AxisType.Y` */
512
+ type?: AxisType | `${AxisType}`;
513
+ /** Extend the axis domain line to be full width or full height. Default: `true` */
514
+ fullSize?: boolean;
515
+ /** Axis label. Default: `undefined` */
516
+ label?: string;
517
+ /** Font size of the axis label as CSS string. Default: `null` */
518
+ labelFontSize?: string | null;
519
+ /** Distance between the axis and the label in pixels. Default: `8` */
520
+ labelMargin?: number;
521
+ /** Label text fit mode: `FitMode.Wrap` or `FitMode.Trim`. Default: `FitMode.Wrap`. */
522
+ labelTextFitMode?: FitMode | `${FitMode}`;
523
+ /** Label text trim mode: `TrimMode.Start`, `TrimMode.Middle` or `TrimMode.End`. Default: `TrimMode.Middle` */
524
+ labelTextTrimType?: TrimMode | `${TrimMode}`;
525
+ /** Label text wrapping separator. String or array of strings. Default: `undefined` */
526
+ labelTextSeparator?: string | string[];
527
+ /** Font color of the axis label as CSS string. Default: `null` */
528
+ labelColor?: string | null;
529
+ /** Sets whether to draw the grid lines or not. Default: `true` */
530
+ gridLine?: boolean;
531
+ /** Sets whether to draw the tick lines or not. Default: `true` */
532
+ tickLine?: boolean;
533
+ /** Sets whether to draw the domain line or not. Default: `true` */
534
+ domainLine?: boolean;
535
+ /** Draw only the min and max axis ticks. Default: `false` */
536
+ minMaxTicksOnly?: boolean;
537
+ /** Show grid lines for the min and max axis ticks. Default: `false` */
538
+ minMaxTicksOnlyShowGridLines?: boolean;
539
+ /** Draw only the min and max axis ticks, when the chart width is less than the specified value.
540
+ * Has no effect when `tickTextAdaptiveSets` is enabled.
541
+ * Default: `250` */
542
+ minMaxTicksOnlyWhenWidthIsLess?: number;
543
+ /** Tick label formatter function. Default: `undefined` */
544
+ tickFormat?: ((tick: number | Date, i: number, ticks: number[] | Date[]) => string);
545
+ /** Explicitly set tick values. Default: `undefined` */
546
+ tickValues?: number[];
547
+ /** Set the approximate number of axis ticks (will be passed to D3's axis constructor). Default: `undefined` */
548
+ numTicks?: number;
549
+ /** Approximate spacing between ticks in pixels, used to derive the number of ticks
550
+ * when `numTicks` is not set. Only applies to the X axis. Default: `175` */
551
+ tickSpacing?: number;
552
+ /** Tick text fit mode: `FitMode.Wrap` or `FitMode.Trim`. Default: `FitMode.Wrap`. */
553
+ tickTextFitMode?: FitMode | `${FitMode}`;
554
+ /** Maximum width in pixels for the tick text to be wrapped or trimmed. Default: `undefined` */
555
+ tickTextWidth?: number;
556
+ /** Tick text wrapping separator. String or array of strings. Default: `undefined` */
557
+ tickTextSeparator?: string | string[];
558
+ /** Force word break for ticks when they don't fit. Default: `false` */
559
+ tickTextForceWordBreak?: boolean;
560
+ /** Tick text trim mode: `TrimMode.Start`, `TrimMode.Middle` or `TrimMode.End`. Default: `TrimMode.Middle` */
561
+ tickTextTrimType?: TrimMode | `${TrimMode}`;
562
+ /** Font size of the tick text as CSS string. Default: `null` */
563
+ tickTextFontSize?: string | null;
564
+ /** Text alignment for ticks: `TextAlign.Left`, `TextAlign.Center` or `TextAlign.Right`. Default: `undefined` */
565
+ tickTextAlign?: TextAlign | `${TextAlign}` | ((tickValue: number | Date, tickIndex: number, tickValues: number[] | Date[], tickPosition: [number, number], componentWidth: number, componentHeight: number) => TextAlign | `${TextAlign}`);
566
+ /** Font color of the tick text as CSS string. Default: `null` */
567
+ tickTextColor?: string | null;
568
+ /** Text rotation angle for ticks. Default: `undefined` */
569
+ tickTextAngle?: number;
570
+ /** Adaptively pick the number of ticks so that their labels don't overlap: the axis renders the
571
+ * largest "nice" tick set that fits (measured off-screen), degrading to smaller sets on narrow
572
+ * charts. `numTicks` (or its width-based default) acts as the upper bound. With explicit
573
+ * `tickValues`, every-k-th subsets of them are fitted instead.
574
+ * Has no effect when `minMaxTicksOnly` is set, and disables the width-based
575
+ * `minMaxTicksOnlyWhenWidthIsLess` fallback. Default: `undefined` */
576
+ tickTextAdaptiveSets?: boolean;
577
+ /** Hide tick labels that overlap with each other.
578
+ * To define overlapping, a simple bounding box collision detection algorithm is used.
579
+ * Which means the result won't be accurate when `tickTextAngle` is specified.
580
+ * Consider combining with `tickTextAdaptiveSets` to keep the shown ticks evenly spaced.
581
+ * Default: `undefined` */
582
+ tickTextHideOverlapping?: boolean;
583
+ /** The spacing in pixels between the tick and it's label. Default: `8` */
584
+ tickPadding?: number;
585
+ /** The size of the tick marks in pixels. Accepts a single number (applies to both inner and outer ticks)
586
+ * or a tuple `[innerTickSize, outerTickSize]`. Default: `6` */
587
+ tickSize?: number | [number, number];
588
+ data: Datum[];
589
+ component: Axis<Datum> | undefined;
590
+ componentContainer: ContainerCore | undefined;
591
+ ngAfterViewInit(): void;
592
+ ngOnChanges(changes: SimpleChanges): void;
593
+ private getConfig;
594
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisAxisComponent<any>, never>;
595
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisAxisComponent<any>, "vis-axis", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "position": { "alias": "position"; "required": false; }; "type": { "alias": "type"; "required": false; }; "fullSize": { "alias": "fullSize"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelMargin": { "alias": "labelMargin"; "required": false; }; "labelTextFitMode": { "alias": "labelTextFitMode"; "required": false; }; "labelTextTrimType": { "alias": "labelTextTrimType"; "required": false; }; "labelTextSeparator": { "alias": "labelTextSeparator"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "gridLine": { "alias": "gridLine"; "required": false; }; "tickLine": { "alias": "tickLine"; "required": false; }; "domainLine": { "alias": "domainLine"; "required": false; }; "minMaxTicksOnly": { "alias": "minMaxTicksOnly"; "required": false; }; "minMaxTicksOnlyShowGridLines": { "alias": "minMaxTicksOnlyShowGridLines"; "required": false; }; "minMaxTicksOnlyWhenWidthIsLess": { "alias": "minMaxTicksOnlyWhenWidthIsLess"; "required": false; }; "tickFormat": { "alias": "tickFormat"; "required": false; }; "tickValues": { "alias": "tickValues"; "required": false; }; "numTicks": { "alias": "numTicks"; "required": false; }; "tickSpacing": { "alias": "tickSpacing"; "required": false; }; "tickTextFitMode": { "alias": "tickTextFitMode"; "required": false; }; "tickTextWidth": { "alias": "tickTextWidth"; "required": false; }; "tickTextSeparator": { "alias": "tickTextSeparator"; "required": false; }; "tickTextForceWordBreak": { "alias": "tickTextForceWordBreak"; "required": false; }; "tickTextTrimType": { "alias": "tickTextTrimType"; "required": false; }; "tickTextFontSize": { "alias": "tickTextFontSize"; "required": false; }; "tickTextAlign": { "alias": "tickTextAlign"; "required": false; }; "tickTextColor": { "alias": "tickTextColor"; "required": false; }; "tickTextAngle": { "alias": "tickTextAngle"; "required": false; }; "tickTextAdaptiveSets": { "alias": "tickTextAdaptiveSets"; "required": false; }; "tickTextHideOverlapping": { "alias": "tickTextHideOverlapping"; "required": false; }; "tickPadding": { "alias": "tickPadding"; "required": false; }; "tickSize": { "alias": "tickSize"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
596
+ }
597
+
598
+ declare class VisAxisModule {
599
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisAxisModule, never>;
600
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisAxisModule, [typeof VisAxisComponent], never, [typeof VisAxisComponent]>;
601
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisAxisModule>;
602
+ }
603
+
604
+ declare class VisBoxplotComponent<Datum> implements BoxplotConfigInterface<Datum>, AfterViewInit {
605
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
606
+ duration?: number;
607
+ /** Events configuration. An object containing properties in the following format:
608
+ *
609
+ * ```
610
+ * {
611
+ * \[selectorString]: {
612
+ * \[eventType]: callbackFunction
613
+ * }
614
+ * }
615
+ * ```
616
+ * e.g.:
617
+ * ```
618
+ * {
619
+ * \[Area.selectors.area]: {
620
+ * click: (d) => console.log("Clicked Area", d)
621
+ * }
622
+ * }
623
+ * ``` */
624
+ events?: {
625
+ [selector: string]: {
626
+ [eventType in VisEventType]?: VisEventCallback;
627
+ };
628
+ };
629
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
630
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
631
+ *
632
+ * ```
633
+ * {
634
+ * \[selectorString]: {
635
+ * \[attributeName]: attribute constant value or accessor function
636
+ * }
637
+ * }
638
+ * ```
639
+ * e.g.:
640
+ * ```
641
+ * {
642
+ * \[Area.selectors.area]: {
643
+ * "test-value": d => d.value
644
+ * }
645
+ * }
646
+ * ``` */
647
+ attributes?: {
648
+ [selector: string]: {
649
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
650
+ };
651
+ };
652
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
653
+ x: NumericAccessor<Datum>;
654
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
655
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
656
+ /** Box fill color accessor function. Default: `d => d.color` */
657
+ color?: ColorAccessor<Datum>;
658
+ /** Array of data color keys. Use to map data keys to colors.
659
+ * Expected to the same length as the `y` accessors array.
660
+ * Default: `undefined` */
661
+ colorKeys?: string[];
662
+ /** 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.
663
+ * Only continuous scales are supported.
664
+ * Default: `undefined` */
665
+ xScale?: ContinuousScale;
666
+ /** 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.
667
+ * Only continuous scales are supported.
668
+ * Default: `undefined` */
669
+ yScale?: ContinuousScale;
670
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
671
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
672
+ * the scales of the chart.
673
+ * Default: `false` */
674
+ excludeFromDomainCalculation?: boolean;
675
+ /** Median accessor function. Defines the position of the median line inside the box.
676
+ * Default: `undefined` */
677
+ median?: NumericAccessor<Datum>;
678
+ /** Quartiles accessor function returning a `[q1, q3]` tuple. Defines the bottom and the top of the box.
679
+ * Default: `undefined` */
680
+ quartiles?: GenericAccessor<[number, number], Datum>;
681
+ /** Whiskers accessor function returning a `[min, max]` tuple. Defines the bottom and the top whisker ends.
682
+ * Default: `undefined` */
683
+ whiskers?: GenericAccessor<[number, number], Datum>;
684
+ /** Force set the box width in pixels. Default: `undefined` */
685
+ barWidth?: number;
686
+ /** Maximum box width for dynamic sizing. Default: `undefined` */
687
+ barMaxWidth?: number;
688
+ /** Expected step between the boxes in the X axis units. When the data has missing points the step
689
+ * can't be inferred reliably from the data, so set it explicitly here to size the boxes correctly.
690
+ * Default: `undefined` */
691
+ dataStep?: number;
692
+ /** Fractional padding between the boxes in the range of [0,1). Default: `0.25` */
693
+ barPadding?: number;
694
+ /** Rounded corners for the box. Boolean or number (to set the radius in pixels). Default: `2` */
695
+ roundedCorners?: number | boolean;
696
+ /** Configurable box cursor when hovering over. Default: `null` */
697
+ cursor?: StringAccessor<Datum>;
698
+ data: Datum[];
699
+ component: Boxplot<Datum> | undefined;
700
+ componentContainer: ContainerCore | undefined;
701
+ ngAfterViewInit(): void;
702
+ ngOnChanges(changes: SimpleChanges): void;
703
+ private getConfig;
704
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisBoxplotComponent<any>, never>;
705
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisBoxplotComponent<any>, "vis-boxplot", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "median": { "alias": "median"; "required": false; }; "quartiles": { "alias": "quartiles"; "required": false; }; "whiskers": { "alias": "whiskers"; "required": false; }; "barWidth": { "alias": "barWidth"; "required": false; }; "barMaxWidth": { "alias": "barMaxWidth"; "required": false; }; "dataStep": { "alias": "dataStep"; "required": false; }; "barPadding": { "alias": "barPadding"; "required": false; }; "roundedCorners": { "alias": "roundedCorners"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
706
+ }
707
+
708
+ declare class VisBoxplotModule {
709
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisBoxplotModule, never>;
710
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisBoxplotModule, [typeof VisBoxplotComponent], never, [typeof VisBoxplotComponent]>;
711
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisBoxplotModule>;
712
+ }
713
+
714
+ declare class VisBrushComponent<Datum> implements BrushConfigInterface<Datum>, AfterViewInit {
715
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
716
+ duration?: number;
717
+ /** Events configuration. An object containing properties in the following format:
718
+ *
719
+ * ```
720
+ * {
721
+ * \[selectorString]: {
722
+ * \[eventType]: callbackFunction
723
+ * }
724
+ * }
725
+ * ```
726
+ * e.g.:
727
+ * ```
728
+ * {
729
+ * \[Area.selectors.area]: {
730
+ * click: (d) => console.log("Clicked Area", d)
731
+ * }
732
+ * }
733
+ * ``` */
734
+ events?: {
735
+ [selector: string]: {
736
+ [eventType in VisEventType]?: VisEventCallback;
737
+ };
738
+ };
739
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
740
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
741
+ *
742
+ * ```
743
+ * {
744
+ * \[selectorString]: {
745
+ * \[attributeName]: attribute constant value or accessor function
746
+ * }
747
+ * }
748
+ * ```
749
+ * e.g.:
750
+ * ```
751
+ * {
752
+ * \[Area.selectors.area]: {
753
+ * "test-value": d => d.value
754
+ * }
755
+ * }
756
+ * ``` */
757
+ attributes?: {
758
+ [selector: string]: {
759
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
760
+ };
761
+ };
762
+ /** Callback function to be called on any Brush event.
763
+ * Default: `(selection: [number, number], event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
764
+ onBrush?: ((selection: [number, number] | undefined, event: D3BrushEvent<Datum>, userDriven: boolean) => void);
765
+ /** Callback function to be called on the Brush start event.
766
+ * Default: `(selection: [number, number], event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
767
+ onBrushStart?: ((selection: [number, number] | undefined, event: D3BrushEvent<Datum>, userDriven: boolean) => void);
768
+ /** Callback function to be called on the Brush move event.
769
+ * Default: `(selection: [number, number], event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
770
+ onBrushMove?: ((selection: [number, number] | undefined, event: D3BrushEvent<Datum>, userDriven: boolean) => void);
771
+ /** Callback function to be called on the Brush end event.
772
+ * Default: `(selection: [number, number], event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
773
+ onBrushEnd?: ((selection: [number, number] | undefined, event: D3BrushEvent<Datum>, userDriven: boolean) => void);
774
+ /** Width of the Brush handle. Default: `1` */
775
+ handleWidth?: number;
776
+ /** Brush selection in the data space coordinates, can be used to control the selection. Default: `undefined` */
777
+ selection?: [number, number] | null;
778
+ /** Allow dragging the selected area as a whole in order to change the selected range. Default: `false` */
779
+ draggable?: boolean;
780
+ /** Position of the handle: `Arrangement.Inside` or `Arrangement.Outside`. Default: `Arrangement.Inside` */
781
+ handlePosition?: Arrangement.Inside | Arrangement.Outside | string;
782
+ /** Constraint Brush selection to a minimal length in data units. Default: `undefined` */
783
+ selectionMinLength?: number;
784
+ /** Extend the brush height by the specified number of pixels. This can be convenient when you have thick lines
785
+ * at the bottom of the chart and you want to ensure they stay fully covered by the brush. Default: `0` */
786
+ brushHeightExtend?: number;
787
+ data: Datum[];
788
+ component: Brush<Datum> | undefined;
789
+ componentContainer: ContainerCore | undefined;
790
+ ngAfterViewInit(): void;
791
+ ngOnChanges(changes: SimpleChanges): void;
792
+ private getConfig;
793
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisBrushComponent<any>, never>;
794
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisBrushComponent<any>, "vis-brush", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "onBrush": { "alias": "onBrush"; "required": false; }; "onBrushStart": { "alias": "onBrushStart"; "required": false; }; "onBrushMove": { "alias": "onBrushMove"; "required": false; }; "onBrushEnd": { "alias": "onBrushEnd"; "required": false; }; "handleWidth": { "alias": "handleWidth"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "handlePosition": { "alias": "handlePosition"; "required": false; }; "selectionMinLength": { "alias": "selectionMinLength"; "required": false; }; "brushHeightExtend": { "alias": "brushHeightExtend"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
795
+ }
796
+
797
+ declare class VisBrushModule {
798
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisBrushModule, never>;
799
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisBrushModule, [typeof VisBrushComponent], never, [typeof VisBrushComponent]>;
800
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisBrushModule>;
801
+ }
802
+
803
+ declare class VisChordDiagramComponent<N extends ChordInputNode, L extends ChordInputLink> implements ChordDiagramConfigInterface<N, L>, AfterViewInit {
804
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
805
+ duration?: number;
806
+ /** Events configuration. An object containing properties in the following format:
807
+ *
808
+ * ```
809
+ * {
810
+ * \[selectorString]: {
811
+ * \[eventType]: callbackFunction
812
+ * }
813
+ * }
814
+ * ```
815
+ * e.g.:
816
+ * ```
817
+ * {
818
+ * \[Area.selectors.area]: {
819
+ * click: (d) => console.log("Clicked Area", d)
820
+ * }
821
+ * }
822
+ * ``` */
823
+ events?: {
824
+ [selector: string]: {
825
+ [eventType in VisEventType]?: VisEventCallback;
826
+ };
827
+ };
828
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
829
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
830
+ *
831
+ * ```
832
+ * {
833
+ * \[selectorString]: {
834
+ * \[attributeName]: attribute constant value or accessor function
835
+ * }
836
+ * }
837
+ * ```
838
+ * e.g.:
839
+ * ```
840
+ * {
841
+ * \[Area.selectors.area]: {
842
+ * "test-value": d => d.value
843
+ * }
844
+ * }
845
+ * ``` */
846
+ attributes?: {
847
+ [selector: string]: {
848
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
849
+ };
850
+ };
851
+ /** Angular range of the diagram. Default: `[0, 2 * Math.PI]` */
852
+ angleRange?: [number, number];
853
+ /** Corner radius constant value or accessor function. Default: `2` */
854
+ cornerRadius?: NumericAccessor<ChordNodeDatum<N>>;
855
+ /** Node id or index to highlight. Overrides default hover behavior if supplied. Default: `undefined` */
856
+ highlightedNodeId?: number | string;
857
+ /** Link ids or index values to highlight. Overrides default hover behavior if supplied. Default: [] */
858
+ highlightedLinkIds?: (number | string)[];
859
+ /** Link color accessor function. Default: `var(--vis-chord-diagram-link-fill-color)` */
860
+ linkColor?: ColorAccessor<ChordLinkDatum<N, L>>;
861
+ /** Link fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */
862
+ linkPattern?: GenericAccessor<FillPatternType, ChordLinkDatum<N, L>>;
863
+ /** Link value accessor function. Default: `l => l.value` */
864
+ linkValue?: NumericAccessor<ChordLinkDatum<N, L>>;
865
+ /** Array of node hierarchy levels. Data records are supposed to have corresponding properties, e.g. ['level1', 'level2']. Default: `[]` */
866
+ nodeLevels?: string[];
867
+ /** Node width in pixels. Default: `15` */
868
+ nodeWidth?: number;
869
+ /** Node color accessor function ot constant value. Default: `d => d.color` */
870
+ nodeColor?: ColorAccessor<ChordNodeDatum<N>>;
871
+ /** Node fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */
872
+ nodePattern?: GenericAccessor<FillPatternType, ChordNodeDatum<N>>;
873
+ /** Node label accessor function. Default: `d => d.label ?? d.key` */
874
+ nodeLabel?: StringAccessor<ChordNodeDatum<N>>;
875
+ /** Node label color accessor function. Default: `undefined` */
876
+ nodeLabelColor?: StringAccessor<ChordNodeDatum<N>>;
877
+ /** Node label alignment. Default: `ChordLabelAlignment.Along` */
878
+ nodeLabelAlignment?: GenericAccessor<ChordLabelAlignment | string, ChordNodeDatum<N>>;
879
+ /** Pad angle in radians. Default: `0.02` */
880
+ padAngle?: number;
881
+ /** The exponent property of the radius scale. Default: `2` */
882
+ radiusScaleExponent?: number;
883
+ data: {
884
+ nodes: N[];
885
+ links?: L[];
886
+ };
887
+ component: ChordDiagram<N, L> | undefined;
888
+ componentContainer: ContainerCore | undefined;
889
+ ngAfterViewInit(): void;
890
+ ngOnChanges(changes: SimpleChanges): void;
891
+ private getConfig;
892
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisChordDiagramComponent<any, any>, never>;
893
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisChordDiagramComponent<any, any>, "vis-chord-diagram", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "angleRange": { "alias": "angleRange"; "required": false; }; "cornerRadius": { "alias": "cornerRadius"; "required": false; }; "highlightedNodeId": { "alias": "highlightedNodeId"; "required": false; }; "highlightedLinkIds": { "alias": "highlightedLinkIds"; "required": false; }; "linkColor": { "alias": "linkColor"; "required": false; }; "linkPattern": { "alias": "linkPattern"; "required": false; }; "linkValue": { "alias": "linkValue"; "required": false; }; "nodeLevels": { "alias": "nodeLevels"; "required": false; }; "nodeWidth": { "alias": "nodeWidth"; "required": false; }; "nodeColor": { "alias": "nodeColor"; "required": false; }; "nodePattern": { "alias": "nodePattern"; "required": false; }; "nodeLabel": { "alias": "nodeLabel"; "required": false; }; "nodeLabelColor": { "alias": "nodeLabelColor"; "required": false; }; "nodeLabelAlignment": { "alias": "nodeLabelAlignment"; "required": false; }; "padAngle": { "alias": "padAngle"; "required": false; }; "radiusScaleExponent": { "alias": "radiusScaleExponent"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
894
+ }
895
+
896
+ declare class VisChordDiagramModule {
897
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisChordDiagramModule, never>;
898
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisChordDiagramModule, [typeof VisChordDiagramComponent], never, [typeof VisChordDiagramComponent]>;
899
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisChordDiagramModule>;
900
+ }
901
+
902
+ declare class VisCrosshairComponent<Datum> implements CrosshairConfigInterface<Datum>, AfterViewInit {
903
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
904
+ duration?: number;
905
+ /** Events configuration. An object containing properties in the following format:
906
+ *
907
+ * ```
908
+ * {
909
+ * \[selectorString]: {
910
+ * \[eventType]: callbackFunction
911
+ * }
912
+ * }
913
+ * ```
914
+ * e.g.:
915
+ * ```
916
+ * {
917
+ * \[Area.selectors.area]: {
918
+ * click: (d) => console.log("Clicked Area", d)
919
+ * }
920
+ * }
921
+ * ``` */
922
+ events?: {
923
+ [selector: string]: {
924
+ [eventType in VisEventType]?: VisEventCallback;
925
+ };
926
+ };
927
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
928
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
929
+ *
930
+ * ```
931
+ * {
932
+ * \[selectorString]: {
933
+ * \[attributeName]: attribute constant value or accessor function
934
+ * }
935
+ * }
936
+ * ```
937
+ * e.g.:
938
+ * ```
939
+ * {
940
+ * \[Area.selectors.area]: {
941
+ * "test-value": d => d.value
942
+ * }
943
+ * }
944
+ * ``` */
945
+ attributes?: {
946
+ [selector: string]: {
947
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
948
+ };
949
+ };
950
+ /** Optional accessor function for getting the values along the X axis. Default: `undefined` */
951
+ x?: NumericAccessor<Datum>;
952
+ /** Optional single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
953
+ y?: NumericAccessor<Datum> | NumericAccessor<Datum>[];
954
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
955
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
956
+ /** Optional color array or color accessor function for crosshair circles. Default: `d => d.color` */
957
+ color?: ColorAccessor<Datum>;
958
+ /** Array of data color keys. Use to map data keys to colors.
959
+ * Expected to the same length as the `y` accessors array.
960
+ * Default: `undefined` */
961
+ colorKeys?: string[];
962
+ /** 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.
963
+ * Only continuous scales are supported.
964
+ * Default: `undefined` */
965
+ xScale?: ContinuousScale;
966
+ /** 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.
967
+ * Only continuous scales are supported.
968
+ * Default: `undefined` */
969
+ yScale?: ContinuousScale;
970
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
971
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
972
+ * the scales of the chart.
973
+ * Default: `false` */
974
+ excludeFromDomainCalculation?: boolean;
975
+ /** Optional stroke color accessor function for crosshair circles. Default: `undefined` */
976
+ strokeColor?: ColorAccessor<Datum>;
977
+ /** Optional stroke width for crosshair circles. Default: `undefined` */
978
+ strokeWidth?: NumericAccessor<Datum>;
979
+ /** Radius of crosshair circles in pixels. Default: `3` */
980
+ circleRadius?: number;
981
+ /** When `true`, the Crosshair also renders a horizontal line. The line is placed at the Y position of the
982
+ * crosshair circle closest to the mouse pointer (i.e. the snapped data point), or follows the pointer
983
+ * when there are no circles to snap to (e.g. when `snapToData` is `false`). Default: `false` */
984
+ showHorizontalLine?: boolean;
985
+ /** Separate array of accessors for stacked components (eg StackedBar, Area). Default: `undefined` */
986
+ yStacked?: NumericAccessor<Datum>[];
987
+ /** Baseline accessor function for stacked values, useful with stacked areas. Default: `null` */
988
+ baseline?: NumericAccessor<Datum>;
989
+ /** An instance of the Tooltip component to be used with Crosshair. Default: `undefined` */
990
+ tooltip?: Tooltip | undefined;
991
+ /** Tooltip template accessor. The function is supposed to return either a valid HTML string or an HTMLElement.
992
+ * When `snapToData` is `false`, `datum` will be `undefined` but `data` and `leftNearestDatumIndex` will be provided.
993
+ * Default: `d => ''` */
994
+ template?: (datum: Datum, x: number | Date, data: Datum[], leftNearestDatumIndex?: number) => string | HTMLElement;
995
+ /** Hide Crosshair when the corresponding datum element is far from mouse pointer. Default: `true` */
996
+ hideWhenFarFromPointer?: boolean;
997
+ /** Distance in pixels to check in the hideWhenFarFromPointer condition. Default: `100` */
998
+ hideWhenFarFromPointerDistance?: number;
999
+ /** Snap to the nearest data point.
1000
+ * If disabled, the tooltip template will receive only the horizontal position of the crosshair and you'll be responsible
1001
+ * for getting the underlying data records and crosshair circles (see the `getCircles` configuration option).
1002
+ * Default: `true` */
1003
+ snapToData?: boolean;
1004
+ /** When `snapToData` is enabled, controls how the nearest datum is found:
1005
+ * - `CrosshairSnapMode.XY`: snap to the datum closest to the mouse pointer in both X and Y (measured in pixel space).
1006
+ * This is the right choice for Scatter charts where many points can share similar X values.
1007
+ * - `CrosshairSnapMode.X`: snap to the datum closest along the X axis only. Best for time series / line / area
1008
+ * charts where the crosshair is a vertical line tracking the X position.
1009
+ *
1010
+ * Has no effect when `forceShowAt` is set (no pointer Y is available — it falls back to `CrosshairSnapMode.X`).
1011
+ * Default: `CrosshairSnapMode.X` */
1012
+ snapMode?: CrosshairSnapMode | `${CrosshairSnapMode}`;
1013
+ /** Custom function for setting up the crosshair circles, usually needed when `snapToData` is set to `false`.
1014
+ * The function receives the horizontal position of the crosshair (in the data space, not in pixels), the data array,
1015
+ * the `yScale` instance to help you calculate the correct vertical position of the circles, and the nearest datum index.
1016
+ * It has to return an array of the `CrosshairCircle` objects: `{ y: number; color: string; opacity?: number }[]`.
1017
+ * Default: `undefined` */
1018
+ getCircles?: (x: number | Date, data: Datum[], yScale: ContinuousScale, leftNearestDatumIndex?: number) => CrosshairCircle[];
1019
+ /** Callback function that is called when the crosshair is moved:
1020
+ * - `x` is the horizontal position of the crosshair in the data space;
1021
+ * - `datum` is the nearest datum to the crosshair;
1022
+ * - `datumIndex` is the index of the nearest datum.
1023
+ * - `event` is the event that triggered the crosshair move (mouse or wheel).
1024
+ *
1025
+ * When the mouse goes out of the container and on wheel events, all the arguments are `undefined` except for `event`.
1026
+ * Default: `undefined` */
1027
+ onCrosshairMove?: (x?: number | Date, datum?: Datum, datumIndex?: number, event?: MouseEvent | WheelEvent) => void;
1028
+ /** Force the crosshair to show at a specific position. Default: `undefined` */
1029
+ forceShowAt?: number | Date;
1030
+ /** Skip range checks for crosshair visibility. When true, crosshair will show regardless of position within chart bounds. Default: `false`
1031
+ * This is useful for testing, especially when you only triggers mousemove event but does not have real mouse event. */
1032
+ skipRangeCheck?: boolean;
1033
+ /** Minimum fraction (`0` to `1`) of the container's area that must be visible in the
1034
+ * viewport for the Crosshair (and its Tooltip) to be displayed. This prevents the
1035
+ * Crosshair from showing when the chart is mostly scrolled out of view. Charts that are
1036
+ * wider or taller than the viewport may never reach the default ratio, so lower this
1037
+ * value (or set it to `0` to always show the Crosshair) for large charts. Default: `0.35` */
1038
+ visibilityThreshold?: number;
1039
+ data: Datum[];
1040
+ component: Crosshair<Datum> | undefined;
1041
+ componentContainer: ContainerCore | undefined;
1042
+ ngAfterViewInit(): void;
1043
+ ngOnChanges(changes: SimpleChanges): void;
1044
+ private getConfig;
1045
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisCrosshairComponent<any>, never>;
1046
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisCrosshairComponent<any>, "vis-crosshair", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "strokeColor": { "alias": "strokeColor"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "circleRadius": { "alias": "circleRadius"; "required": false; }; "showHorizontalLine": { "alias": "showHorizontalLine"; "required": false; }; "yStacked": { "alias": "yStacked"; "required": false; }; "baseline": { "alias": "baseline"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "template": { "alias": "template"; "required": false; }; "hideWhenFarFromPointer": { "alias": "hideWhenFarFromPointer"; "required": false; }; "hideWhenFarFromPointerDistance": { "alias": "hideWhenFarFromPointerDistance"; "required": false; }; "snapToData": { "alias": "snapToData"; "required": false; }; "snapMode": { "alias": "snapMode"; "required": false; }; "getCircles": { "alias": "getCircles"; "required": false; }; "onCrosshairMove": { "alias": "onCrosshairMove"; "required": false; }; "forceShowAt": { "alias": "forceShowAt"; "required": false; }; "skipRangeCheck": { "alias": "skipRangeCheck"; "required": false; }; "visibilityThreshold": { "alias": "visibilityThreshold"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
1047
+ }
1048
+
1049
+ declare class VisCrosshairModule {
1050
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisCrosshairModule, never>;
1051
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisCrosshairModule, [typeof VisCrosshairComponent], never, [typeof VisCrosshairComponent]>;
1052
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisCrosshairModule>;
1053
+ }
1054
+
1055
+ declare class VisDonutComponent<Datum> implements DonutConfigInterface<Datum>, AfterViewInit {
1056
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
1057
+ duration?: number;
1058
+ /** Events configuration. An object containing properties in the following format:
1059
+ *
1060
+ * ```
1061
+ * {
1062
+ * \[selectorString]: {
1063
+ * \[eventType]: callbackFunction
1064
+ * }
1065
+ * }
1066
+ * ```
1067
+ * e.g.:
1068
+ * ```
1069
+ * {
1070
+ * \[Area.selectors.area]: {
1071
+ * click: (d) => console.log("Clicked Area", d)
1072
+ * }
1073
+ * }
1074
+ * ``` */
1075
+ events?: {
1076
+ [selector: string]: {
1077
+ [eventType in VisEventType]?: VisEventCallback;
1078
+ };
1079
+ };
1080
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
1081
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
1082
+ *
1083
+ * ```
1084
+ * {
1085
+ * \[selectorString]: {
1086
+ * \[attributeName]: attribute constant value or accessor function
1087
+ * }
1088
+ * }
1089
+ * ```
1090
+ * e.g.:
1091
+ * ```
1092
+ * {
1093
+ * \[Area.selectors.area]: {
1094
+ * "test-value": d => d.value
1095
+ * }
1096
+ * }
1097
+ * ``` */
1098
+ attributes?: {
1099
+ [selector: string]: {
1100
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
1101
+ };
1102
+ };
1103
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
1104
+ id?: ((d: Datum, i: number, ...rest: any[]) => string | number);
1105
+ /** Value accessor function. Default: `undefined` */
1106
+ value: NumericAccessor<Datum>;
1107
+ /** Diagram angle range. Default: `[0, 2 * Math.PI]` */
1108
+ angleRange?: [number, number];
1109
+ /** Pad angle. Default: `0` */
1110
+ padAngle?: number;
1111
+ /** Minimum angular sweep, in radians, for any segment with a positive value.
1112
+ * Segments whose proportional sweep would be smaller are inflated to this angle,
1113
+ * with the difference taken proportionally from the remaining segments.
1114
+ * Guarantees a segment can survive the `padAngle` inset instead of collapsing
1115
+ * to a zero-area path; a sensible setting is `minSegmentAngle >= 2 * padAngle`.
1116
+ * Default: `undefined` */
1117
+ minSegmentAngle?: number;
1118
+ /** Custom sort function. Default: `undefined` */
1119
+ sortFunction?: (a: Datum, b: Datum) => number;
1120
+ /** Corner Radius. Default: `0` */
1121
+ cornerRadius?: number;
1122
+ /** Color accessor function. Default: `undefined` */
1123
+ color?: ColorAccessor<Datum>;
1124
+ /** Fill pattern accessor. Resolves to a `FillPatternType`.
1125
+ * When unset and `theme-patterns` is active, a default pattern is applied by segment index. Default: `undefined` */
1126
+ pattern?: GenericAccessor<FillPatternType, Datum>;
1127
+ /** Explicitly set the donut outer radius. Default: `undefined` */
1128
+ radius?: number;
1129
+ /** Arc width in pixels. Set to `0` if you want to have a pie chart. Default: `20` */
1130
+ arcWidth?: number;
1131
+ /** Central label accessor function or text. Default: `undefined` */
1132
+ centralLabel?: string;
1133
+ /** Central sub-label accessor function or text. Default: `undefined` */
1134
+ centralSubLabel?: string;
1135
+ /** Enables wrapping for the sub-label. Default: `true` */
1136
+ centralSubLabelWrap?: boolean;
1137
+ /** When true, the component will display empty segments (the ones that have `0` values) as tiny slices.
1138
+ * Default: `false` */
1139
+ showEmptySegments?: boolean;
1140
+ /** Angular size for empty segments in radians. Default: `0.5 * Math.PI / 180` */
1141
+ emptySegmentAngle?: number;
1142
+ /** Show donut background. The color is configurable via
1143
+ * the `--vis-donut-background-color` and `--vis-dark-donut-background-color` CSS variables.
1144
+ * Default: `true` */
1145
+ showBackground?: boolean;
1146
+ /** Background angle range. When undefined, the value will be taken from `angleRange`. Default: `undefined` */
1147
+ backgroundAngleRange?: [number, number];
1148
+ /** Central label and sub-label horizontal offset in pixels. Default: `undefined` */
1149
+ centralLabelOffsetX?: number;
1150
+ /** Central label and sub-label vertical offset in pixels. Default: `undefined` */
1151
+ centralLabelOffsetY?: number;
1152
+ data: Datum[];
1153
+ component: Donut<Datum> | undefined;
1154
+ componentContainer: ContainerCore | undefined;
1155
+ ngAfterViewInit(): void;
1156
+ ngOnChanges(changes: SimpleChanges): void;
1157
+ private getConfig;
1158
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisDonutComponent<any>, never>;
1159
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisDonutComponent<any>, "vis-donut", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "angleRange": { "alias": "angleRange"; "required": false; }; "padAngle": { "alias": "padAngle"; "required": false; }; "minSegmentAngle": { "alias": "minSegmentAngle"; "required": false; }; "sortFunction": { "alias": "sortFunction"; "required": false; }; "cornerRadius": { "alias": "cornerRadius"; "required": false; }; "color": { "alias": "color"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "arcWidth": { "alias": "arcWidth"; "required": false; }; "centralLabel": { "alias": "centralLabel"; "required": false; }; "centralSubLabel": { "alias": "centralSubLabel"; "required": false; }; "centralSubLabelWrap": { "alias": "centralSubLabelWrap"; "required": false; }; "showEmptySegments": { "alias": "showEmptySegments"; "required": false; }; "emptySegmentAngle": { "alias": "emptySegmentAngle"; "required": false; }; "showBackground": { "alias": "showBackground"; "required": false; }; "backgroundAngleRange": { "alias": "backgroundAngleRange"; "required": false; }; "centralLabelOffsetX": { "alias": "centralLabelOffsetX"; "required": false; }; "centralLabelOffsetY": { "alias": "centralLabelOffsetY"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
1160
+ }
1161
+
1162
+ declare class VisDonutModule {
1163
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisDonutModule, never>;
1164
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisDonutModule, [typeof VisDonutComponent], never, [typeof VisDonutComponent]>;
1165
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisDonutModule>;
1166
+ }
1167
+
1168
+ declare class VisFreeBrushComponent<Datum> implements FreeBrushConfigInterface<Datum>, AfterViewInit {
1169
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
1170
+ duration?: number;
1171
+ /** Events configuration. An object containing properties in the following format:
1172
+ *
1173
+ * ```
1174
+ * {
1175
+ * \[selectorString]: {
1176
+ * \[eventType]: callbackFunction
1177
+ * }
1178
+ * }
1179
+ * ```
1180
+ * e.g.:
1181
+ * ```
1182
+ * {
1183
+ * \[Area.selectors.area]: {
1184
+ * click: (d) => console.log("Clicked Area", d)
1185
+ * }
1186
+ * }
1187
+ * ``` */
1188
+ events?: {
1189
+ [selector: string]: {
1190
+ [eventType in VisEventType]?: VisEventCallback;
1191
+ };
1192
+ };
1193
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
1194
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
1195
+ *
1196
+ * ```
1197
+ * {
1198
+ * \[selectorString]: {
1199
+ * \[attributeName]: attribute constant value or accessor function
1200
+ * }
1201
+ * }
1202
+ * ```
1203
+ * e.g.:
1204
+ * ```
1205
+ * {
1206
+ * \[Area.selectors.area]: {
1207
+ * "test-value": d => d.value
1208
+ * }
1209
+ * }
1210
+ * ``` */
1211
+ attributes?: {
1212
+ [selector: string]: {
1213
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
1214
+ };
1215
+ };
1216
+ /** Brush selection mode. X - horizontal, Y - vertical, XY - both. Default: `FreeBrushMode.X` */
1217
+ mode?: FreeBrushMode;
1218
+ /** Callback function to be called on any Brush event.
1219
+ * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
1220
+ onBrush?: ((selection: FreeBrushSelection | undefined, event: D3BrushEvent<unknown>, userDriven: boolean) => void);
1221
+ /** Callback function to be called on the Brush start event.
1222
+ * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<unknown>, userDriven: boolean): void => {}` */
1223
+ onBrushStart?: ((selection: FreeBrushSelection | undefined, event: D3BrushEvent<unknown>, userDriven: boolean) => void);
1224
+ /** Callback function to be called on the Brush move event.
1225
+ * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<unknown>, userDriven: boolean): void => {}` */
1226
+ onBrushMove?: ((selection: FreeBrushSelection | undefined, event: D3BrushEvent<unknown>, userDriven: boolean) => void);
1227
+ /** Callback function to be called on the Brush end event.
1228
+ * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<unknown>, userDriven: boolean)L void => {}` */
1229
+ onBrushEnd?: ((selection: FreeBrushSelection | undefined, event: D3BrushEvent<unknown>, userDriven: boolean) => void);
1230
+ /** Width of the Brush handle. Default: `1` */
1231
+ handleWidth?: number;
1232
+ /** Brush selection in data space, can be used to force set the selection from outside.
1233
+ * In case of two dimensional mode, the selection has the following format: `[[xMin, xMax], [yMin, yMax]]`.
1234
+ * This config property gets updated on internal brush events. Default: `undefined` */
1235
+ selection?: FreeBrushSelection | null | undefined;
1236
+ /** Constraint Brush selection to a minimal length in data units. Default: `undefined` */
1237
+ selectionMinLength?: number | [number, number];
1238
+ /** Automatically hide the brush after selection. Default: `true` */
1239
+ autoHide?: boolean;
1240
+ data: Datum[];
1241
+ component: FreeBrush<Datum> | undefined;
1242
+ componentContainer: ContainerCore | undefined;
1243
+ ngAfterViewInit(): void;
1244
+ ngOnChanges(changes: SimpleChanges): void;
1245
+ private getConfig;
1246
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisFreeBrushComponent<any>, never>;
1247
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisFreeBrushComponent<any>, "vis-free-brush", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "onBrush": { "alias": "onBrush"; "required": false; }; "onBrushStart": { "alias": "onBrushStart"; "required": false; }; "onBrushMove": { "alias": "onBrushMove"; "required": false; }; "onBrushEnd": { "alias": "onBrushEnd"; "required": false; }; "handleWidth": { "alias": "handleWidth"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "selectionMinLength": { "alias": "selectionMinLength"; "required": false; }; "autoHide": { "alias": "autoHide"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
1248
+ }
1249
+
1250
+ declare class VisFreeBrushModule {
1251
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisFreeBrushModule, never>;
1252
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisFreeBrushModule, [typeof VisFreeBrushComponent], never, [typeof VisFreeBrushComponent]>;
1253
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisFreeBrushModule>;
1254
+ }
1255
+
1256
+ declare class VisGraphComponent<N extends GraphInputNode, L extends GraphInputLink> implements GraphConfigInterface<N, L>, AfterViewInit {
1257
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
1258
+ duration?: number;
1259
+ /** Events configuration. An object containing properties in the following format:
1260
+ *
1261
+ * ```
1262
+ * {
1263
+ * \[selectorString]: {
1264
+ * \[eventType]: callbackFunction
1265
+ * }
1266
+ * }
1267
+ * ```
1268
+ * e.g.:
1269
+ * ```
1270
+ * {
1271
+ * \[Area.selectors.area]: {
1272
+ * click: (d) => console.log("Clicked Area", d)
1273
+ * }
1274
+ * }
1275
+ * ``` */
1276
+ events?: {
1277
+ [selector: string]: {
1278
+ [eventType in VisEventType]?: VisEventCallback;
1279
+ };
1280
+ };
1281
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
1282
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
1283
+ *
1284
+ * ```
1285
+ * {
1286
+ * \[selectorString]: {
1287
+ * \[attributeName]: attribute constant value or accessor function
1288
+ * }
1289
+ * }
1290
+ * ```
1291
+ * e.g.:
1292
+ * ```
1293
+ * {
1294
+ * \[Area.selectors.area]: {
1295
+ * "test-value": d => d.value
1296
+ * }
1297
+ * }
1298
+ * ``` */
1299
+ attributes?: {
1300
+ [selector: string]: {
1301
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
1302
+ };
1303
+ };
1304
+ /** Zoom level constraints. Default: [0.35, 1.25] */
1305
+ zoomScaleExtent?: [number, number];
1306
+ /** Disable zooming. Default: `false` */
1307
+ disableZoom?: boolean;
1308
+ /** Custom Zoom event filter to better control which actions should trigger zooming.
1309
+ * Learn more: https://d3js.org/d3-zoom#zoom_filter.
1310
+ * Default: `undefined` */
1311
+ zoomEventFilter?: (event: PointerEvent) => boolean;
1312
+ /** Disable node dragging. Default: `false` */
1313
+ disableDrag?: boolean;
1314
+ /** Disable brush for multiple node selection. Default: `false` */
1315
+ disableBrush?: boolean;
1316
+ /** Interval to re-render the graph when zooming. Default: `100` */
1317
+ zoomThrottledUpdateNodeThreshold?: number;
1318
+ /** Padding for the graph when fitting to container. Default: `50` */
1319
+ fitViewPadding?: Spacing | number;
1320
+ /** Default alignment when fitting the graph view. Default: `GraphFitViewAlignment.Center` */
1321
+ fitViewAlign?: GraphFitViewAlignment;
1322
+ /** Type of the graph layout. Default: `GraphLayoutType.Force` */
1323
+ layoutType?: GraphLayoutType | string;
1324
+ /** Fit the graph to container on data or config updates, or on container resize. Default: `true` */
1325
+ layoutAutofit?: boolean;
1326
+ /** Tolerance constant defining whether the graph should be fitted to container
1327
+ * (on data or config update, or container resize) after a zoom / pan interaction or not.
1328
+ * `0` — Stop fitting after any pan or zoom
1329
+ * `Number.POSITIVE_INFINITY` — Always fit
1330
+ * Default: `8.0` */
1331
+ layoutAutofitTolerance?: number;
1332
+ /** Place non-connected nodes at the bottom of the graph. Default: `false` */
1333
+ layoutNonConnectedAside?: boolean;
1334
+ /** Node group accessor function.
1335
+ * Only for `GraphLayoutType.Parallel`, `GraphLayoutType.ParallelHorizontal` and `GraphLayoutType.Concentric` layouts.
1336
+ * Default: `node => node.group` */
1337
+ layoutNodeGroup?: StringAccessor<N>;
1338
+ /** Order of the layout groups.
1339
+ * Only for `GraphLayoutType.Parallel`, `GraphLayoutType.ParallelHorizontal` and `GraphLayoutType.Concentric` layouts.
1340
+ * Default: `[]` */
1341
+ layoutGroupOrder?: string[];
1342
+ /** Sets the number of nodes in a sub-group after which they'll continue on the next column (or row if `layoutType` is
1343
+ * `GraphLayoutType.ParallelHorizontal`).
1344
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
1345
+ * Default: `6` */
1346
+ layoutParallelNodesPerColumn?: number;
1347
+ /** Node sub-group accessor function.
1348
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
1349
+ * Default: `node => node.subgroup` */
1350
+ layoutParallelNodeSubGroup?: StringAccessor<N>;
1351
+ /** Number of sub-groups per row (or column if `layoutType` is `GraphLayoutType.ParallelHorizontal`) in a group.
1352
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
1353
+ * Default: `1` */
1354
+ layoutParallelSubGroupsPerRow?: number;
1355
+ /** Spacing between nodes, dynamic by default.
1356
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
1357
+ * Default: `undefined` */
1358
+ layoutParallelNodeSpacing?: number | [number, number];
1359
+ /** Spacing between sub-groups.
1360
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
1361
+ * Default: `40` */
1362
+ layoutParallelSubGroupSpacing?: number;
1363
+ /** Spacing between groups.
1364
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
1365
+ * Default: `undefined` */
1366
+ layoutParallelGroupSpacing?: number;
1367
+ /** Set a group by name to have priority in sorting the graph links.
1368
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
1369
+ * Default: `undefined` */
1370
+ layoutParallelSortConnectionsByGroup?: string;
1371
+ /** Force Layout settings, see the `d3-force` package for more details */
1372
+ forceLayoutSettings?: GraphForceLayoutSettings<N, L>;
1373
+ /** Darge Layout settings, see the `dagrejs` package
1374
+ * for more details: https://github.com/dagrejs/dagre/wiki#configuring-the-layout */
1375
+ dagreLayoutSettings?: GraphDagreLayoutSetting;
1376
+ /** ELK layout options, see the `elkjs` package for more details: https://github.com/kieler/elkjs.
1377
+ * If you want to specify custom layout option for each node group, you can provide an accessor function that
1378
+ * receives group name ('root' for the top-level configuration) as the first argument and returns an object containing
1379
+ * layout options. Default: `undefined` */
1380
+ layoutElkSettings?: GenericAccessor<GraphElkLayoutSettings, string> | undefined;
1381
+ /** Array of accessor functions to define nested node groups for the ELK Layered layout.
1382
+ * E.g.: `[n => n.group, n => n.subGroup]`.
1383
+ * Default: `undefined` */
1384
+ layoutElkNodeGroups?: StringAccessor<N>[];
1385
+ /** A function to be called per graph node to get the ELK shape object.
1386
+ * This enables you to provide custom node dimensions (through the `width` and `height` properties)
1387
+ * and coordinates (through the `x` and `y` properties) if needed.
1388
+ * Default: `undefined` */
1389
+ layoutElkGetNodeShape?: (d: GraphNode<N, L>, i: number) => ElkShape;
1390
+ /** Link width accessor function ot constant value. Default: `1` */
1391
+ linkWidth?: NumericAccessor<L>;
1392
+ /** Link style accessor function or constant value. Default: `GraphLinkStyle.Solid` */
1393
+ linkStyle?: GenericAccessor<GraphLinkStyle, L>;
1394
+ /** Link band width accessor function or constant value. Default: `0` */
1395
+ linkBandWidth?: NumericAccessor<L>;
1396
+ /** Link arrow accessor function or constant value. Default: `undefined` */
1397
+ linkArrow?: GenericAccessor<GraphLinkArrowStyle | string | boolean, L> | undefined;
1398
+ /** Link stroke color accessor function or constant value. Default: `undefined` */
1399
+ linkStroke?: ColorAccessor<L>;
1400
+ /** Link disabled state accessor function or constant value. Default: `false` */
1401
+ linkDisabled?: BooleanAccessor<L>;
1402
+ /** Link flow animation accessor function or constant value. Default: `false` */
1403
+ linkFlow?: BooleanAccessor<L>;
1404
+ /** Animation duration of the flow (traffic) circles in milliseconds. If `linkFlowParticleSpeed` is provided,
1405
+ * this duration will be calculated based on the link length and particle speed. Default: `20000` */
1406
+ linkFlowAnimDuration?: NumericAccessor<L>;
1407
+ /** Size of the moving particles that represent traffic flow. Default: `2` */
1408
+ linkFlowParticleSize?: NumericAccessor<L>;
1409
+ /** Speed of the moving particles in pixels per second. This property takes precedence over `linkFlowAnimDuration`. Default: `undefined` */
1410
+ linkFlowParticleSpeed?: NumericAccessor<L>;
1411
+ /** Link label accessor function or constant value. Default: `undefined` */
1412
+ linkLabel?: GenericAccessor<GraphCircleLabel | GraphCircleLabel[], L> | undefined;
1413
+ /** Shift label along the link center a little bit to avoid overlap with the link arrow. Default: `true` */
1414
+ linkLabelShiftFromCenter?: BooleanAccessor<L>;
1415
+ /** Spacing between neighboring links. Default: `8` */
1416
+ linkNeighborSpacing?: number;
1417
+ /** Curvature of the link. Recommended value range: [0:1.5].
1418
+ * `0` - straight line,
1419
+ * `1` - nice curvature,
1420
+ * `1.5` - very curve.
1421
+ * Default: `0` */
1422
+ linkCurvature?: NumericAccessor<L>;
1423
+ /** Highlight links on hover. Default: `true` */
1424
+ linkHighlightOnHover?: boolean;
1425
+ /** Offset [x,y] in pixels from the source node's center point where the link should start. Default: `undefined` */
1426
+ linkSourcePointOffset?: GenericAccessor<[number, number], GraphLink<N, L>>;
1427
+ /** Offset [x,y] in pixels from the target node's center point where the link should end. Default: `undefined` */
1428
+ linkTargetPointOffset?: GenericAccessor<[number, number], GraphLink<N, L>>;
1429
+ /** Set selected link by its unique id. Default: `undefined` */
1430
+ selectedLinkId?: number | string;
1431
+ /** Node size accessor function or constant value. Default: `30` */
1432
+ nodeSize?: NumericAccessor<N>;
1433
+ /** Node stroke width accessor function or constant value. Default: `3` */
1434
+ nodeStrokeWidth?: NumericAccessor<N>;
1435
+ /** Node shape accessor function or constant value. Default: `GraphNodeShape.Circle` */
1436
+ nodeShape?: GenericAccessor<GraphNodeShape | string, N>;
1437
+ /** Node gauge outline accessor function or constant value in the range [0,100]. Default: `0` */
1438
+ nodeGaugeValue?: NumericAccessor<N>;
1439
+ /** Node gauge outline fill color accessor function or constant value. Default: `undefined` */
1440
+ nodeGaugeFill?: ColorAccessor<N>;
1441
+ /** Animation duration of the node gauge outline. Default: `1500` */
1442
+ nodeGaugeAnimDuration?: number;
1443
+ /** Node central icon accessor function or constant value. Default: `node => node.icon` */
1444
+ nodeIcon?: StringAccessor<N>;
1445
+ /** Node central icon size accessor function or constant value. Default: `undefined` */
1446
+ nodeIconSize?: NumericAccessor<N>;
1447
+ /** Node label accessor function or constant value. Default: `node => node.label` */
1448
+ nodeLabel?: StringAccessor<N>;
1449
+ /** Defines whether to trim the node labels or not. Default: `true` */
1450
+ nodeLabelTrim?: BooleanAccessor<N>;
1451
+ /** Node label trimming mode. Default: `TrimMode.Middle` */
1452
+ nodeLabelTrimMode?: GenericAccessor<TrimMode | string, N>;
1453
+ /** Node label maximum allowed text length above which the label will be trimmed. Default: `15` */
1454
+ nodeLabelTrimLength?: NumericAccessor<N>;
1455
+ /** Node label fit mode: `FitMode.Trim` or `FitMode.Wrap`. The trim settings apply only in `FitMode.Trim` mode. Default: `FitMode.Trim` */
1456
+ nodeLabelFitMode?: GenericAccessor<FitMode | string, N>;
1457
+ /** Maximum node label width in pixels for wrapping when the fit mode is `FitMode.Wrap`. When not provided, a width derived from the node size will be used. Default: `undefined` */
1458
+ nodeLabelWidth?: NumericAccessor<N>;
1459
+ /** Node label text wrapping separator. String or array of strings. Default: `undefined` */
1460
+ nodeLabelSeparator?: string | string[];
1461
+ /** Force word break for node labels when they don't fit. Default: `false` */
1462
+ nodeLabelForceWordBreak?: boolean;
1463
+ /** Node sub-label accessor function or constant value: Default: `''` */
1464
+ nodeSubLabel?: StringAccessor<N>;
1465
+ /** Defines whether to trim the node sub-labels or not. Default: `true` */
1466
+ nodeSubLabelTrim?: BooleanAccessor<N>;
1467
+ /** Node sub-label trimming mode. Default: `TrimMode.Middle` */
1468
+ nodeSubLabelTrimMode?: GenericAccessor<TrimMode | string, N>;
1469
+ /** Node sub-label maximum allowed text length above which the label will be trimmed. Default: `15` */
1470
+ nodeSubLabelTrimLength?: NumericAccessor<N>;
1471
+ /** Node sub-label fit mode: `FitMode.Trim` or `FitMode.Wrap`. The trim settings apply only in `FitMode.Trim` mode. Default: `FitMode.Trim` */
1472
+ nodeSubLabelFitMode?: GenericAccessor<FitMode | string, N>;
1473
+ /** Maximum node sub-label width in pixels for wrapping when the fit mode is `FitMode.Wrap`. When not provided, a width derived from the node size will be used. Default: `undefined` */
1474
+ nodeSubLabelWidth?: NumericAccessor<N>;
1475
+ /** Node sub-label text wrapping separator. String or array of strings. Default: `undefined` */
1476
+ nodeSubLabelSeparator?: string | string[];
1477
+ /** Force word break for node sub-labels when they don't fit. Default: `false` */
1478
+ nodeSubLabelForceWordBreak?: boolean;
1479
+ /** Node circular side labels accessor function. The function should return an array of GraphCircleLabel objects. Default: `undefined` */
1480
+ nodeSideLabels?: GenericAccessor<GraphCircleLabel[], N>;
1481
+ /** Node bottom icon accessor function. Default: `undefined` */
1482
+ nodeBottomIcon?: StringAccessor<N>;
1483
+ /** Node disabled state accessor function or constant value. Default: `false` */
1484
+ nodeDisabled?: BooleanAccessor<N>;
1485
+ /** Node fill color accessor function or constant value. Default: `node => node.fill` */
1486
+ nodeFill?: ColorAccessor<N>;
1487
+ /** Node stroke color accessor function or constant value. Default: `node => node.stroke` */
1488
+ nodeStroke?: ColorAccessor<N>;
1489
+ /** Sorting function to determine node placement. Default: `undefined` */
1490
+ nodeSort?: ((a: N, b: N) => number);
1491
+ /** Specify the initial position for entering nodes as [x, y]. Default: `undefined` */
1492
+ nodeEnterPosition?: GenericAccessor<[number, number], N> | undefined;
1493
+ /** Specify the initial scale for entering nodes in the range [0,1]. Default: `0.75` */
1494
+ nodeEnterScale?: NumericAccessor<N> | undefined;
1495
+ /** Specify the destination position for exiting nodes as [x, y]. Default: `undefined` */
1496
+ nodeExitPosition?: GenericAccessor<[number, number], N> | undefined;
1497
+ /** Specify the destination scale for exiting nodes in the range [0,1]. Default: `0.75` */
1498
+ nodeExitScale?: NumericAccessor<N> | undefined;
1499
+ /** Custom "enter" function for node rendering. Default: `undefined` */
1500
+ nodeEnterCustomRenderFunction?: (datum: GraphNode<N, L>, nodeGroupElementSelection: Selection<SVGGElement, GraphNode<N, L>, null, unknown>, config: GraphConfigInterface<N, L>, duration: number, zoomLevel: number) => void;
1501
+ /** Custom "update" function for node rendering. Default: `undefined` */
1502
+ nodeUpdateCustomRenderFunction?: (datum: GraphNode<N, L>, nodeGroupElementSelection: Selection<SVGGElement, GraphNode<N, L>, null, unknown>, config: GraphConfigInterface<N, L>, duration: number, zoomLevel: number) => void;
1503
+ /** Custom partial "update" function for node rendering which will be triggered after the following events:
1504
+ * - Full node update (`nodeUpdateCustomRenderFunction`);
1505
+ * - Background click;
1506
+ * - Node and Link mouseover and mouseout;
1507
+ * - Node brushing,
1508
+ * Default: `undefined` */
1509
+ nodePartialUpdateCustomRenderFunction?: (datum: GraphNode<N, L>, nodeGroupElementSelection: Selection<SVGGElement, GraphNode<N, L>, null, unknown>, config: GraphConfigInterface<N, L>, duration: number, zoomLevel: number) => void;
1510
+ /** Custom "exit" function for node rendering. Default: `undefined` */
1511
+ nodeExitCustomRenderFunction?: (datum: GraphNode<N, L>, nodeGroupElementSelection: Selection<SVGGElement, GraphNode<N, L>, null, unknown>, config: GraphConfigInterface<N, L>, duration: number, zoomLevel: number) => void;
1512
+ /** Custom render function that will be called while zooming / panning the graph. Default: `undefined` */
1513
+ nodeOnZoomCustomRenderFunction?: (datum: GraphNode<N, L>, nodeGroupElementSelection: Selection<SVGGElement, GraphNode<N, L>, null, unknown>, config: GraphConfigInterface<N, L>, zoomLevel: number) => void;
1514
+ /** Define the mode for highlighting selected nodes in the graph. Default: `GraphNodeSelectionHighlightMode.GreyoutNonConnected` */
1515
+ nodeSelectionHighlightMode?: GraphNodeSelectionHighlightMode;
1516
+ /** Set selected node by unique id. Default: `undefined` */
1517
+ selectedNodeId?: number | string;
1518
+ /** Set selected nodes by unique id. Default: `undefined` */
1519
+ selectedNodeIds?: number[] | string[];
1520
+ /** Panels configuration. An array of `GraphPanelConfig` objects. Default: `[]` */
1521
+ panels?: GraphPanelConfig[] | undefined;
1522
+ /** Graph node drag start callback function. Default: `undefined` */
1523
+ onNodeDragStart?: (n: GraphNode<N, L>, event: D3DragEvent<SVGGElement, GraphNode<N, L>, unknown>) => void | undefined;
1524
+ /** Graph node drag callback function. Default: `undefined` */
1525
+ onNodeDrag?: (n: GraphNode<N, L>, event: D3DragEvent<SVGGElement, GraphNode<N, L>, unknown>) => void | undefined;
1526
+ /** Graph node drag end callback function. Default: `undefined` */
1527
+ onNodeDragEnd?: (n: GraphNode<N, L>, event: D3DragEvent<SVGGElement, GraphNode<N, L>, unknown>) => void | undefined;
1528
+ /** Zoom event callback. Default: `undefined` */
1529
+ onZoom?: (zoomScale: number, zoomScaleExtent: [number, number], event: D3ZoomEvent<SVGGElement, unknown> | undefined, transform: ZoomTransform) => void;
1530
+ /** Zoom start event callback. Default: `undefined` */
1531
+ onZoomStart?: (zoomScale: number, zoomScaleExtent: [number, number], event: D3ZoomEvent<SVGGElement, unknown> | undefined, transform: ZoomTransform) => void;
1532
+ /** Zoom end event callback. Default: `undefined` */
1533
+ onZoomEnd?: (zoomScale: number, zoomScaleExtent: [number, number], event: D3ZoomEvent<SVGGElement, unknown> | undefined, transform: ZoomTransform) => void;
1534
+ /** Callback function to be called when the graph layout is calculated. Default: `undefined` */
1535
+ onLayoutCalculated?: (nodes: GraphNode<N, L>[], links: GraphLink<N, L>[]) => void;
1536
+ /** Graph node selection brush callback function. Default: `undefined` */
1537
+ onNodeSelectionBrush?: (selectedNodes: GraphNode<N, L>[], event: D3BrushEvent<SVGGElement> | undefined) => void;
1538
+ /** Graph multiple node drag callback function. Default: `undefined` */
1539
+ onNodeSelectionDrag?: (selectedNodes: GraphNode<N, L>[], event: D3DragEvent<SVGGElement, GraphNode<N, L>, unknown>) => void;
1540
+ /** Callback function to be called when the graph rendering is complete. Default: `undefined` */
1541
+ onRenderComplete?: (g: Selection<SVGGElement, unknown, null, undefined>, nodes: GraphNode<N, L>[], links: GraphLink<N, L>[], config: GraphConfigInterface<N, L>, duration: number, zoomLevel: number, width: number, height: number) => void;
1542
+ /** Determines whether the component should update when new data is provided.
1543
+ * This function takes the previous and new data as parameters and returns a boolean
1544
+ * indicating whether the update should proceed. Useful for fine-grained control over
1545
+ * update behavior when your data has a complex nested structure.
1546
+ * By default the `isEqual` function from Unovis will be used to do the comparison. */
1547
+ shouldDataUpdate?: (prevData: GraphInputData<N, L>, nextData: GraphInputData<N, L>, datamodel: GraphDataModel<N, L, GraphNode<N, L>, GraphLink<N, L>>) => boolean;
1548
+ data: {
1549
+ nodes: N[];
1550
+ links?: L[];
1551
+ };
1552
+ component: Graph<N, L> | undefined;
1553
+ componentContainer: ContainerCore | undefined;
1554
+ ngAfterViewInit(): void;
1555
+ ngOnChanges(changes: SimpleChanges): void;
1556
+ private getConfig;
1557
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisGraphComponent<any, any>, never>;
1558
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisGraphComponent<any, any>, "vis-graph", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "zoomScaleExtent": { "alias": "zoomScaleExtent"; "required": false; }; "disableZoom": { "alias": "disableZoom"; "required": false; }; "zoomEventFilter": { "alias": "zoomEventFilter"; "required": false; }; "disableDrag": { "alias": "disableDrag"; "required": false; }; "disableBrush": { "alias": "disableBrush"; "required": false; }; "zoomThrottledUpdateNodeThreshold": { "alias": "zoomThrottledUpdateNodeThreshold"; "required": false; }; "fitViewPadding": { "alias": "fitViewPadding"; "required": false; }; "fitViewAlign": { "alias": "fitViewAlign"; "required": false; }; "layoutType": { "alias": "layoutType"; "required": false; }; "layoutAutofit": { "alias": "layoutAutofit"; "required": false; }; "layoutAutofitTolerance": { "alias": "layoutAutofitTolerance"; "required": false; }; "layoutNonConnectedAside": { "alias": "layoutNonConnectedAside"; "required": false; }; "layoutNodeGroup": { "alias": "layoutNodeGroup"; "required": false; }; "layoutGroupOrder": { "alias": "layoutGroupOrder"; "required": false; }; "layoutParallelNodesPerColumn": { "alias": "layoutParallelNodesPerColumn"; "required": false; }; "layoutParallelNodeSubGroup": { "alias": "layoutParallelNodeSubGroup"; "required": false; }; "layoutParallelSubGroupsPerRow": { "alias": "layoutParallelSubGroupsPerRow"; "required": false; }; "layoutParallelNodeSpacing": { "alias": "layoutParallelNodeSpacing"; "required": false; }; "layoutParallelSubGroupSpacing": { "alias": "layoutParallelSubGroupSpacing"; "required": false; }; "layoutParallelGroupSpacing": { "alias": "layoutParallelGroupSpacing"; "required": false; }; "layoutParallelSortConnectionsByGroup": { "alias": "layoutParallelSortConnectionsByGroup"; "required": false; }; "forceLayoutSettings": { "alias": "forceLayoutSettings"; "required": false; }; "dagreLayoutSettings": { "alias": "dagreLayoutSettings"; "required": false; }; "layoutElkSettings": { "alias": "layoutElkSettings"; "required": false; }; "layoutElkNodeGroups": { "alias": "layoutElkNodeGroups"; "required": false; }; "layoutElkGetNodeShape": { "alias": "layoutElkGetNodeShape"; "required": false; }; "linkWidth": { "alias": "linkWidth"; "required": false; }; "linkStyle": { "alias": "linkStyle"; "required": false; }; "linkBandWidth": { "alias": "linkBandWidth"; "required": false; }; "linkArrow": { "alias": "linkArrow"; "required": false; }; "linkStroke": { "alias": "linkStroke"; "required": false; }; "linkDisabled": { "alias": "linkDisabled"; "required": false; }; "linkFlow": { "alias": "linkFlow"; "required": false; }; "linkFlowAnimDuration": { "alias": "linkFlowAnimDuration"; "required": false; }; "linkFlowParticleSize": { "alias": "linkFlowParticleSize"; "required": false; }; "linkFlowParticleSpeed": { "alias": "linkFlowParticleSpeed"; "required": false; }; "linkLabel": { "alias": "linkLabel"; "required": false; }; "linkLabelShiftFromCenter": { "alias": "linkLabelShiftFromCenter"; "required": false; }; "linkNeighborSpacing": { "alias": "linkNeighborSpacing"; "required": false; }; "linkCurvature": { "alias": "linkCurvature"; "required": false; }; "linkHighlightOnHover": { "alias": "linkHighlightOnHover"; "required": false; }; "linkSourcePointOffset": { "alias": "linkSourcePointOffset"; "required": false; }; "linkTargetPointOffset": { "alias": "linkTargetPointOffset"; "required": false; }; "selectedLinkId": { "alias": "selectedLinkId"; "required": false; }; "nodeSize": { "alias": "nodeSize"; "required": false; }; "nodeStrokeWidth": { "alias": "nodeStrokeWidth"; "required": false; }; "nodeShape": { "alias": "nodeShape"; "required": false; }; "nodeGaugeValue": { "alias": "nodeGaugeValue"; "required": false; }; "nodeGaugeFill": { "alias": "nodeGaugeFill"; "required": false; }; "nodeGaugeAnimDuration": { "alias": "nodeGaugeAnimDuration"; "required": false; }; "nodeIcon": { "alias": "nodeIcon"; "required": false; }; "nodeIconSize": { "alias": "nodeIconSize"; "required": false; }; "nodeLabel": { "alias": "nodeLabel"; "required": false; }; "nodeLabelTrim": { "alias": "nodeLabelTrim"; "required": false; }; "nodeLabelTrimMode": { "alias": "nodeLabelTrimMode"; "required": false; }; "nodeLabelTrimLength": { "alias": "nodeLabelTrimLength"; "required": false; }; "nodeLabelFitMode": { "alias": "nodeLabelFitMode"; "required": false; }; "nodeLabelWidth": { "alias": "nodeLabelWidth"; "required": false; }; "nodeLabelSeparator": { "alias": "nodeLabelSeparator"; "required": false; }; "nodeLabelForceWordBreak": { "alias": "nodeLabelForceWordBreak"; "required": false; }; "nodeSubLabel": { "alias": "nodeSubLabel"; "required": false; }; "nodeSubLabelTrim": { "alias": "nodeSubLabelTrim"; "required": false; }; "nodeSubLabelTrimMode": { "alias": "nodeSubLabelTrimMode"; "required": false; }; "nodeSubLabelTrimLength": { "alias": "nodeSubLabelTrimLength"; "required": false; }; "nodeSubLabelFitMode": { "alias": "nodeSubLabelFitMode"; "required": false; }; "nodeSubLabelWidth": { "alias": "nodeSubLabelWidth"; "required": false; }; "nodeSubLabelSeparator": { "alias": "nodeSubLabelSeparator"; "required": false; }; "nodeSubLabelForceWordBreak": { "alias": "nodeSubLabelForceWordBreak"; "required": false; }; "nodeSideLabels": { "alias": "nodeSideLabels"; "required": false; }; "nodeBottomIcon": { "alias": "nodeBottomIcon"; "required": false; }; "nodeDisabled": { "alias": "nodeDisabled"; "required": false; }; "nodeFill": { "alias": "nodeFill"; "required": false; }; "nodeStroke": { "alias": "nodeStroke"; "required": false; }; "nodeSort": { "alias": "nodeSort"; "required": false; }; "nodeEnterPosition": { "alias": "nodeEnterPosition"; "required": false; }; "nodeEnterScale": { "alias": "nodeEnterScale"; "required": false; }; "nodeExitPosition": { "alias": "nodeExitPosition"; "required": false; }; "nodeExitScale": { "alias": "nodeExitScale"; "required": false; }; "nodeEnterCustomRenderFunction": { "alias": "nodeEnterCustomRenderFunction"; "required": false; }; "nodeUpdateCustomRenderFunction": { "alias": "nodeUpdateCustomRenderFunction"; "required": false; }; "nodePartialUpdateCustomRenderFunction": { "alias": "nodePartialUpdateCustomRenderFunction"; "required": false; }; "nodeExitCustomRenderFunction": { "alias": "nodeExitCustomRenderFunction"; "required": false; }; "nodeOnZoomCustomRenderFunction": { "alias": "nodeOnZoomCustomRenderFunction"; "required": false; }; "nodeSelectionHighlightMode": { "alias": "nodeSelectionHighlightMode"; "required": false; }; "selectedNodeId": { "alias": "selectedNodeId"; "required": false; }; "selectedNodeIds": { "alias": "selectedNodeIds"; "required": false; }; "panels": { "alias": "panels"; "required": false; }; "onNodeDragStart": { "alias": "onNodeDragStart"; "required": false; }; "onNodeDrag": { "alias": "onNodeDrag"; "required": false; }; "onNodeDragEnd": { "alias": "onNodeDragEnd"; "required": false; }; "onZoom": { "alias": "onZoom"; "required": false; }; "onZoomStart": { "alias": "onZoomStart"; "required": false; }; "onZoomEnd": { "alias": "onZoomEnd"; "required": false; }; "onLayoutCalculated": { "alias": "onLayoutCalculated"; "required": false; }; "onNodeSelectionBrush": { "alias": "onNodeSelectionBrush"; "required": false; }; "onNodeSelectionDrag": { "alias": "onNodeSelectionDrag"; "required": false; }; "onRenderComplete": { "alias": "onRenderComplete"; "required": false; }; "shouldDataUpdate": { "alias": "shouldDataUpdate"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
1559
+ }
1560
+
1561
+ declare class VisGraphModule {
1562
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisGraphModule, never>;
1563
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisGraphModule, [typeof VisGraphComponent], never, [typeof VisGraphComponent]>;
1564
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisGraphModule>;
1565
+ }
1566
+
1567
+ declare class VisGroupedBarComponent<Datum> implements GroupedBarConfigInterface<Datum>, AfterViewInit {
1568
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
1569
+ duration?: number;
1570
+ /** Events configuration. An object containing properties in the following format:
1571
+ *
1572
+ * ```
1573
+ * {
1574
+ * \[selectorString]: {
1575
+ * \[eventType]: callbackFunction
1576
+ * }
1577
+ * }
1578
+ * ```
1579
+ * e.g.:
1580
+ * ```
1581
+ * {
1582
+ * \[Area.selectors.area]: {
1583
+ * click: (d) => console.log("Clicked Area", d)
1584
+ * }
1585
+ * }
1586
+ * ``` */
1587
+ events?: {
1588
+ [selector: string]: {
1589
+ [eventType in VisEventType]?: VisEventCallback;
1590
+ };
1591
+ };
1592
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
1593
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
1594
+ *
1595
+ * ```
1596
+ * {
1597
+ * \[selectorString]: {
1598
+ * \[attributeName]: attribute constant value or accessor function
1599
+ * }
1600
+ * }
1601
+ * ```
1602
+ * e.g.:
1603
+ * ```
1604
+ * {
1605
+ * \[Area.selectors.area]: {
1606
+ * "test-value": d => d.value
1607
+ * }
1608
+ * }
1609
+ * ``` */
1610
+ attributes?: {
1611
+ [selector: string]: {
1612
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
1613
+ };
1614
+ };
1615
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
1616
+ x: NumericAccessor<Datum>;
1617
+ /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
1618
+ y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
1619
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
1620
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
1621
+ /** Bar color accessor function. Default: `d => d.color` */
1622
+ color?: ColorAccessor<Datum>;
1623
+ /** Array of data color keys. Use to map data keys to colors.
1624
+ * Expected to the same length as the `y` accessors array.
1625
+ * Default: `undefined` */
1626
+ colorKeys?: string[];
1627
+ /** 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.
1628
+ * Only continuous scales are supported.
1629
+ * Default: `undefined` */
1630
+ xScale?: ContinuousScale;
1631
+ /** 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.
1632
+ * Only continuous scales are supported.
1633
+ * Default: `undefined` */
1634
+ yScale?: ContinuousScale;
1635
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
1636
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
1637
+ * the scales of the chart.
1638
+ * Default: `false` */
1639
+ excludeFromDomainCalculation?: boolean;
1640
+ /** Bar fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */
1641
+ pattern?: GenericAccessor<FillPatternType, Datum>;
1642
+ /** Force set the group width in pixels. Default: `undefined` */
1643
+ groupWidth?: number;
1644
+ /** Maximum group width for dynamic sizing. Limits the groupWidth property from the top. Default: `undefined` */
1645
+ groupMaxWidth?: number;
1646
+ /** Expected step between the bar groups in the X axis units.
1647
+ * Needed to correctly calculate the width of the bar groups when there are gaps in the data.
1648
+ * Default: `undefined` */
1649
+ dataStep?: number;
1650
+ /** Fractional padding between the groups in the range of [0,1). Default: `0.05` */
1651
+ groupPadding?: number;
1652
+ /** Fractional padding between the bars in the range of [0,1). Default: `0` */
1653
+ barPadding?: number;
1654
+ /** Rounded bar corners. Boolean or number (to set the radius in pixels explicitly). Default: `2` */
1655
+ roundedCorners?: number | boolean;
1656
+ /** Sets the minimum bar height for better visibility of small values. Default: `1` */
1657
+ barMinHeight?: number;
1658
+ /** Configurable bar cursor when hovering over. Default: `null` */
1659
+ cursor?: StringAccessor<Datum>;
1660
+ /** Chart orientation: `Orientation.Vertical` or `Orientation.Horizontal`. Default `Orientation.Vertical` */
1661
+ orientation?: Orientation | string;
1662
+ data: Datum[];
1663
+ component: GroupedBar<Datum> | undefined;
1664
+ componentContainer: ContainerCore | undefined;
1665
+ ngAfterViewInit(): void;
1666
+ ngOnChanges(changes: SimpleChanges): void;
1667
+ private getConfig;
1668
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisGroupedBarComponent<any>, never>;
1669
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisGroupedBarComponent<any>, "vis-grouped-bar", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "groupWidth": { "alias": "groupWidth"; "required": false; }; "groupMaxWidth": { "alias": "groupMaxWidth"; "required": false; }; "dataStep": { "alias": "dataStep"; "required": false; }; "groupPadding": { "alias": "groupPadding"; "required": false; }; "barPadding": { "alias": "barPadding"; "required": false; }; "roundedCorners": { "alias": "roundedCorners"; "required": false; }; "barMinHeight": { "alias": "barMinHeight"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
1670
+ }
1671
+
1672
+ declare class VisGroupedBarModule {
1673
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisGroupedBarModule, never>;
1674
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisGroupedBarModule, [typeof VisGroupedBarComponent], never, [typeof VisGroupedBarComponent]>;
1675
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisGroupedBarModule>;
1676
+ }
1677
+
1678
+ declare class VisHeatmapComponent<Datum> implements HeatmapConfigInterface<Datum>, AfterViewInit {
1679
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
1680
+ duration?: number;
1681
+ /** Events configuration. An object containing properties in the following format:
1682
+ *
1683
+ * ```
1684
+ * {
1685
+ * \[selectorString]: {
1686
+ * \[eventType]: callbackFunction
1687
+ * }
1688
+ * }
1689
+ * ```
1690
+ * e.g.:
1691
+ * ```
1692
+ * {
1693
+ * \[Area.selectors.area]: {
1694
+ * click: (d) => console.log("Clicked Area", d)
1695
+ * }
1696
+ * }
1697
+ * ``` */
1698
+ events?: {
1699
+ [selector: string]: {
1700
+ [eventType in VisEventType]?: VisEventCallback;
1701
+ };
1702
+ };
1703
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
1704
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
1705
+ *
1706
+ * ```
1707
+ * {
1708
+ * \[selectorString]: {
1709
+ * \[attributeName]: attribute constant value or accessor function
1710
+ * }
1711
+ * }
1712
+ * ```
1713
+ * e.g.:
1714
+ * ```
1715
+ * {
1716
+ * \[Area.selectors.area]: {
1717
+ * "test-value": d => d.value
1718
+ * }
1719
+ * }
1720
+ * ``` */
1721
+ attributes?: {
1722
+ [selector: string]: {
1723
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
1724
+ };
1725
+ };
1726
+ /** Value accessor function. Drives the cell color. Returning `null` or `undefined` renders an empty cell. Default: `undefined` */
1727
+ value: NumericAccessor<Datum>;
1728
+ /** Per-cell color accessor function. Takes precedence over `colorRange` when it resolves to a color. Default: `undefined` */
1729
+ color?: ColorAccessor<Datum>;
1730
+ /** A list of bucket colors used to build a quantized value → color scale when `color` is not set.
1731
+ * When `undefined`, a default green sequence is used (configurable via the `--vis-heatmap-color-*` CSS variables). Default: `undefined` */
1732
+ colorRange?: string[];
1733
+ /** Explicit `[min, max]` domain for the `colorRange` scale. When `undefined`, the extent of the values is used. Default: `undefined` */
1734
+ colorDomain?: [number, number];
1735
+ /** Number of rows in the grid. When `layout` is `HeatmapLayoutType.Column` this is the primary (fixed) dimension. Default: `7` */
1736
+ numRows?: number;
1737
+ /** Number of columns in the grid. When `layout` is `HeatmapLayoutType.Row` this is the primary (fixed) dimension.
1738
+ * When `undefined`, it's derived from the data length and the primary dimension. Default: `undefined` */
1739
+ numColumns?: number;
1740
+ /** Order in which the linear `data` array fills the grid:
1741
+ * `HeatmapLayoutType.Column` fills each column top-to-bottom before moving to the next (GitHub-contributions style),
1742
+ * `HeatmapLayoutType.Row` fills each row left-to-right. Default: `HeatmapLayoutType.Column` */
1743
+ layout?: HeatmapLayoutType | `${HeatmapLayoutType}`;
1744
+ /** Number of empty cells before the first datum. Useful for aligning the first datum to a specific row/column.
1745
+ * Equivalent to prepending `offset` empty entries to `data`. Default: `0` */
1746
+ offset?: number;
1747
+ /** Fixed cell size in pixels. A single number renders square cells; `[width, height]` renders rectangular cells.
1748
+ * When unset, cells stretch to fill the container.
1749
+ * When set together with the container's `Sizing.Extend`, the component reports its own size. Default: `undefined` */
1750
+ cellSize?: number | [number, number];
1751
+ /** Gap between cells in pixels. Default: `2` */
1752
+ cellPadding?: number;
1753
+ /** Cell corner radius in pixels (or `true` for a default radius of `2`). Default: `2` */
1754
+ cellCornerRadius?: number | boolean;
1755
+ /** Cell cursor accessor function. Default: `null` */
1756
+ cursor?: StringAccessor<Datum>;
1757
+ /** Column label accessor, called per column index. Return `undefined` to skip a label. Labels are rendered above the grid. Default: `undefined` */
1758
+ columnLabel?: (columnIndex: number) => string | null | undefined;
1759
+ /** Row label accessor, called per row index. Return `undefined` to skip a label. Labels are rendered to the left of the grid. Default: `undefined` */
1760
+ rowLabel?: (rowIndex: number) => string | null | undefined;
1761
+ /** Hide row and column labels that overlap their neighbours. Collisions are resolved independently per axis,
1762
+ * keeping the top-most row label and left-most column label of each overlapping group visible. Default: `true` */
1763
+ labelHideOverlapping?: boolean;
1764
+ data: Datum[];
1765
+ component: Heatmap<Datum> | undefined;
1766
+ componentContainer: ContainerCore | undefined;
1767
+ ngAfterViewInit(): void;
1768
+ ngOnChanges(changes: SimpleChanges): void;
1769
+ private getConfig;
1770
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisHeatmapComponent<any>, never>;
1771
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisHeatmapComponent<any>, "vis-heatmap", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorRange": { "alias": "colorRange"; "required": false; }; "colorDomain": { "alias": "colorDomain"; "required": false; }; "numRows": { "alias": "numRows"; "required": false; }; "numColumns": { "alias": "numColumns"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "cellSize": { "alias": "cellSize"; "required": false; }; "cellPadding": { "alias": "cellPadding"; "required": false; }; "cellCornerRadius": { "alias": "cellCornerRadius"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "columnLabel": { "alias": "columnLabel"; "required": false; }; "rowLabel": { "alias": "rowLabel"; "required": false; }; "labelHideOverlapping": { "alias": "labelHideOverlapping"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
1772
+ }
1773
+
1774
+ declare class VisHeatmapModule {
1775
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisHeatmapModule, never>;
1776
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisHeatmapModule, [typeof VisHeatmapComponent], never, [typeof VisHeatmapComponent]>;
1777
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisHeatmapModule>;
1778
+ }
1779
+
1780
+ declare class VisLineComponent<Datum> implements LineConfigInterface<Datum>, AfterViewInit {
1781
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
1782
+ duration?: number;
1783
+ /** Events configuration. An object containing properties in the following format:
1784
+ *
1785
+ * ```
1786
+ * {
1787
+ * \[selectorString]: {
1788
+ * \[eventType]: callbackFunction
1789
+ * }
1790
+ * }
1791
+ * ```
1792
+ * e.g.:
1793
+ * ```
1794
+ * {
1795
+ * \[Area.selectors.area]: {
1796
+ * click: (d) => console.log("Clicked Area", d)
1797
+ * }
1798
+ * }
1799
+ * ``` */
1800
+ events?: {
1801
+ [selector: string]: {
1802
+ [eventType in VisEventType]?: VisEventCallback;
1803
+ };
1804
+ };
1805
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
1806
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
1807
+ *
1808
+ * ```
1809
+ * {
1810
+ * \[selectorString]: {
1811
+ * \[attributeName]: attribute constant value or accessor function
1812
+ * }
1813
+ * }
1814
+ * ```
1815
+ * e.g.:
1816
+ * ```
1817
+ * {
1818
+ * \[Area.selectors.area]: {
1819
+ * "test-value": d => d.value
1820
+ * }
1821
+ * }
1822
+ * ``` */
1823
+ attributes?: {
1824
+ [selector: string]: {
1825
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
1826
+ };
1827
+ };
1828
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
1829
+ x: NumericAccessor<Datum>;
1830
+ /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
1831
+ y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
1832
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
1833
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
1834
+ /** Line color accessor function. The whole data array will be passed as the first argument. Default: `undefined` */
1835
+ color?: ColorAccessor<Datum[]>;
1836
+ /** Array of data color keys. Use to map data keys to colors.
1837
+ * Expected to the same length as the `y` accessors array.
1838
+ * Default: `undefined` */
1839
+ colorKeys?: string[];
1840
+ /** 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.
1841
+ * Only continuous scales are supported.
1842
+ * Default: `undefined` */
1843
+ xScale?: ContinuousScale;
1844
+ /** 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.
1845
+ * Only continuous scales are supported.
1846
+ * Default: `undefined` */
1847
+ yScale?: ContinuousScale;
1848
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
1849
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
1850
+ * the scales of the chart.
1851
+ * Default: `false` */
1852
+ excludeFromDomainCalculation?: boolean;
1853
+ /** Line pattern accessor. Resolves to a `LinePatternType`. The whole data array is passed as the first argument. Default: `undefined` */
1854
+ pattern?: GenericAccessor<LinePatternType, Datum[]>;
1855
+ /** Curve type from the CurveType enum. Default: `CurveType.MonotoneX` */
1856
+ curveType?: CurveType;
1857
+ /** Line width in pixels. Default: `2` */
1858
+ lineWidth?: number;
1859
+ /** Line dash array, see SVG's stroke-dasharray. Default: `undefined` */
1860
+ lineDashArray?: GenericAccessor<number[], Datum[]>;
1861
+ /** When a data point has an `undefined`, `NaN`, or other no-data value, they'll be replaced with a value specified here.
1862
+ * Setting this property to `undefined` will lead to having the line break when there's no data, and continue when
1863
+ * the data appears again. If you set it to `null`, the values will be treated as numerical `0` values and the line
1864
+ * won't break; however if the whole dataset consists of only `null`s, the line won't be displayed.
1865
+ * Default: `undefined` */
1866
+ fallbackValue?: number | undefined | null;
1867
+ /** Highlight line on hover. Default: `false` */
1868
+ highlightOnHover?: boolean;
1869
+ /** Optional link cursor. Default: `null` */
1870
+ cursor?: StringAccessor<Datum[]>;
1871
+ /** Enable interpolated line where data points are missing or fallbackValue is used.
1872
+ * You can customize the line's appearance with `--vis-line-gapfill-stroke-dasharray`
1873
+ * and `--vis-line-gapfill-stroke-opacity` CSS variables.
1874
+ * Default: `false` */
1875
+ interpolateMissingData?: boolean;
1876
+ data: Datum[];
1877
+ component: Line<Datum> | undefined;
1878
+ componentContainer: ContainerCore | undefined;
1879
+ ngAfterViewInit(): void;
1880
+ ngOnChanges(changes: SimpleChanges): void;
1881
+ private getConfig;
1882
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisLineComponent<any>, never>;
1883
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisLineComponent<any>, "vis-line", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "curveType": { "alias": "curveType"; "required": false; }; "lineWidth": { "alias": "lineWidth"; "required": false; }; "lineDashArray": { "alias": "lineDashArray"; "required": false; }; "fallbackValue": { "alias": "fallbackValue"; "required": false; }; "highlightOnHover": { "alias": "highlightOnHover"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "interpolateMissingData": { "alias": "interpolateMissingData"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
1884
+ }
1885
+
1886
+ declare class VisLineModule {
1887
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisLineModule, never>;
1888
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisLineModule, [typeof VisLineComponent], never, [typeof VisLineComponent]>;
1889
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisLineModule>;
1890
+ }
1891
+
1892
+ declare class VisNestedDonutComponent<Datum> implements NestedDonutConfigInterface<Datum>, AfterViewInit {
1893
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
1894
+ duration?: number;
1895
+ /** Events configuration. An object containing properties in the following format:
1896
+ *
1897
+ * ```
1898
+ * {
1899
+ * \[selectorString]: {
1900
+ * \[eventType]: callbackFunction
1901
+ * }
1902
+ * }
1903
+ * ```
1904
+ * e.g.:
1905
+ * ```
1906
+ * {
1907
+ * \[Area.selectors.area]: {
1908
+ * click: (d) => console.log("Clicked Area", d)
1909
+ * }
1910
+ * }
1911
+ * ``` */
1912
+ events?: {
1913
+ [selector: string]: {
1914
+ [eventType in VisEventType]?: VisEventCallback;
1915
+ };
1916
+ };
1917
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
1918
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
1919
+ *
1920
+ * ```
1921
+ * {
1922
+ * \[selectorString]: {
1923
+ * \[attributeName]: attribute constant value or accessor function
1924
+ * }
1925
+ * }
1926
+ * ```
1927
+ * e.g.:
1928
+ * ```
1929
+ * {
1930
+ * \[Area.selectors.area]: {
1931
+ * "test-value": d => d.value
1932
+ * }
1933
+ * }
1934
+ * ``` */
1935
+ attributes?: {
1936
+ [selector: string]: {
1937
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
1938
+ };
1939
+ };
1940
+ /** Diagram angle range. Default: `[0, 2 * Math.PI]` */
1941
+ angleRange?: [number, number];
1942
+ /** Direction of hierarchy flow from root to leaf.
1943
+ * `NestedDonutDirection.Inwards` starts from the outer most radius and works towards center
1944
+ * `NestedDonutDirection.Outwards` starts from the inner most radius the consecutive layers outward.
1945
+ * Default: `NestedDonutDirection.Inwards` */
1946
+ direction?: NestedDonutDirection | string;
1947
+ value?: NumericAccessor<Datum>;
1948
+ /** Central label text. Default: `undefined` */
1949
+ centralLabel?: string;
1950
+ /** Central sub-label accessor function or text. Default: `undefined` */
1951
+ centralSubLabel?: string;
1952
+ /** Enables wrapping for the sub-label. Default: `true` */
1953
+ centralSubLabelWrap?: boolean;
1954
+ /** Show donut background. The color is configurable via
1955
+ * the `--vis-nested-donut-background-color` and `--vis-dark-nested-donut-background-color` CSS variables.
1956
+ * Default: `false` */
1957
+ showBackground?: boolean;
1958
+ /** Sort function for segments. Default `undefined` */
1959
+ sort?: (a: NestedDonutSegment<Datum>, b: NestedDonutSegment<Datum>) => number;
1960
+ /** Array of accessor functions to defined the nested groups. Default: `[]` */
1961
+ layers: StringAccessor<Datum>[];
1962
+ /** Configuration properties for individual layers. Accepts an accessor or constant of type:
1963
+ * {
1964
+ * backgroundColor?: string;
1965
+ * labelAlignment?: NestedDonutSegmentLabelAlignment;
1966
+ * width?: number | string;
1967
+ * } */
1968
+ layerSettings?: GenericAccessor<NestedDonutLayerSettings, number>;
1969
+ layerPadding?: number;
1970
+ /** Corner Radius. Default: `0` */
1971
+ cornerRadius?: number;
1972
+ /** Angular size for empty segments in radians. Default: `Math.PI / 180` */
1973
+ emptySegmentAngle?: number;
1974
+ /** Hide segment labels when they don't fit. Default: `true` */
1975
+ hideOverflowingSegmentLabels?: boolean;
1976
+ /** Color accessor function for segments. Default: `undefined` */
1977
+ segmentColor?: ColorAccessor<NestedDonutSegment<Datum>>;
1978
+ /** Fill pattern accessor for segments. Resolves to a `FillPatternType`. Default: `undefined` */
1979
+ segmentPattern?: GenericAccessor<FillPatternType, NestedDonutSegment<Datum>>;
1980
+ /** Segment label accessor function. Default `undefined` */
1981
+ segmentLabel?: StringAccessor<NestedDonutSegment<Datum>>;
1982
+ /** Color accessor function for segment labels */
1983
+ segmentLabelColor?: ColorAccessor<NestedDonutSegment<Datum>>;
1984
+ /** When true, the component will display empty segments (the ones that have `0` values) as tiny slices.
1985
+ * Default: `false` */
1986
+ showEmptySegments?: boolean;
1987
+ /** Show labels for individual segments. Default: `true` */
1988
+ showSegmentLabels?: boolean;
1989
+ data: Datum[];
1990
+ component: NestedDonut<Datum> | undefined;
1991
+ componentContainer: ContainerCore | undefined;
1992
+ ngAfterViewInit(): void;
1993
+ ngOnChanges(changes: SimpleChanges): void;
1994
+ private getConfig;
1995
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisNestedDonutComponent<any>, never>;
1996
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisNestedDonutComponent<any>, "vis-nested-donut", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "angleRange": { "alias": "angleRange"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "value": { "alias": "value"; "required": false; }; "centralLabel": { "alias": "centralLabel"; "required": false; }; "centralSubLabel": { "alias": "centralSubLabel"; "required": false; }; "centralSubLabelWrap": { "alias": "centralSubLabelWrap"; "required": false; }; "showBackground": { "alias": "showBackground"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "layers": { "alias": "layers"; "required": false; }; "layerSettings": { "alias": "layerSettings"; "required": false; }; "layerPadding": { "alias": "layerPadding"; "required": false; }; "cornerRadius": { "alias": "cornerRadius"; "required": false; }; "emptySegmentAngle": { "alias": "emptySegmentAngle"; "required": false; }; "hideOverflowingSegmentLabels": { "alias": "hideOverflowingSegmentLabels"; "required": false; }; "segmentColor": { "alias": "segmentColor"; "required": false; }; "segmentPattern": { "alias": "segmentPattern"; "required": false; }; "segmentLabel": { "alias": "segmentLabel"; "required": false; }; "segmentLabelColor": { "alias": "segmentLabelColor"; "required": false; }; "showEmptySegments": { "alias": "showEmptySegments"; "required": false; }; "showSegmentLabels": { "alias": "showSegmentLabels"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
1997
+ }
1998
+
1999
+ declare class VisNestedDonutModule {
2000
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisNestedDonutModule, never>;
2001
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisNestedDonutModule, [typeof VisNestedDonutComponent], never, [typeof VisNestedDonutComponent]>;
2002
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisNestedDonutModule>;
2003
+ }
2004
+
2005
+ declare class VisPlotlineComponent<Datum> implements PlotlineConfigInterface<Datum>, AfterViewInit {
2006
+ /** Duration of the animation in milliseconds. */
2007
+ duration?: number;
2008
+ /** Events configuration. An object containing properties in the following format:
2009
+ *
2010
+ * ```
2011
+ * {
2012
+ * \[selectorString]: {
2013
+ * \[eventType]: callbackFunction
2014
+ * }
2015
+ * }
2016
+ * ```
2017
+ * e.g.:
2018
+ * ```
2019
+ * {
2020
+ * \[Area.selectors.area]: {
2021
+ * click: (d) => console.log("Clicked Area", d)
2022
+ * }
2023
+ * }
2024
+ * ``` */
2025
+ events?: {
2026
+ [selector: string]: {
2027
+ [eventType in VisEventType]?: VisEventCallback;
2028
+ };
2029
+ };
2030
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
2031
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
2032
+ *
2033
+ * ```
2034
+ * {
2035
+ * \[selectorString]: {
2036
+ * \[attributeName]: attribute constant value or accessor function
2037
+ * }
2038
+ * }
2039
+ * ```
2040
+ * e.g.:
2041
+ * ```
2042
+ * {
2043
+ * \[Area.selectors.area]: {
2044
+ * "test-value": d => d.value
2045
+ * }
2046
+ * }
2047
+ * ``` */
2048
+ attributes?: {
2049
+ [selector: string]: {
2050
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
2051
+ };
2052
+ };
2053
+ /** Line width in pixels.
2054
+ * Uses CSS variable: `--vis-plotline-width`. */
2055
+ lineWidth?: number;
2056
+ /** Plotline direction type.
2057
+ * Should be either `AxisType.X` or `AxisType.Y`. */
2058
+ axis?: AxisType | string;
2059
+ /** Value to draw the plotline at. */
2060
+ value?: number | null | undefined;
2061
+ /** Line style of the plotline.
2062
+ * Can be a named preset or an array of numbers representing `stroke-dasharray`.
2063
+ * Uses CSS variable: `--vis-plotline-dasharray`. */
2064
+ lineStyle?: PlotlineLineStylePresets | number[];
2065
+ /** Label text to display on the plotline. */
2066
+ labelText?: string;
2067
+ /** Position of the label relative to the plotline. */
2068
+ labelPosition?: PlotlineLabelPosition;
2069
+ /** Horizontal offset of the label in pixels. */
2070
+ labelOffsetX?: number;
2071
+ /** Vertical offset of the label in pixels. */
2072
+ labelOffsetY?: number;
2073
+ /** Orientation of the label: horizontal or vertical. */
2074
+ labelOrientation?: PlotlineLabelOrientation;
2075
+ /** Color of the label text.
2076
+ * Uses CSS variable: `--vis-plotline-label-color`. */
2077
+ labelColor?: string;
2078
+ /** Font size of the label text in pixels.
2079
+ * Uses CSS variable: `--vis-plotline-label-font-size`. */
2080
+ labelSize?: number;
2081
+ component: Plotline<Datum> | undefined;
2082
+ componentContainer: ContainerCore | undefined;
2083
+ ngAfterViewInit(): void;
2084
+ ngOnChanges(changes: SimpleChanges): void;
2085
+ private getConfig;
2086
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisPlotlineComponent<any>, never>;
2087
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisPlotlineComponent<any>, "vis-plotline", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "lineWidth": { "alias": "lineWidth"; "required": false; }; "axis": { "alias": "axis"; "required": false; }; "value": { "alias": "value"; "required": false; }; "lineStyle": { "alias": "lineStyle"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "labelOffsetX": { "alias": "labelOffsetX"; "required": false; }; "labelOffsetY": { "alias": "labelOffsetY"; "required": false; }; "labelOrientation": { "alias": "labelOrientation"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; }, {}, never, never, false, never>;
2088
+ }
2089
+
2090
+ declare class VisPlotlineModule {
2091
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisPlotlineModule, never>;
2092
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisPlotlineModule, [typeof VisPlotlineComponent], never, [typeof VisPlotlineComponent]>;
2093
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisPlotlineModule>;
2094
+ }
2095
+
2096
+ declare class VisSankeyComponent<N extends SankeyInputNode, L extends SankeyInputLink> implements SankeyConfigInterface<N, L>, AfterViewInit {
2097
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
2098
+ duration?: number;
2099
+ /** Events configuration. An object containing properties in the following format:
2100
+ *
2101
+ * ```
2102
+ * {
2103
+ * \[selectorString]: {
2104
+ * \[eventType]: callbackFunction
2105
+ * }
2106
+ * }
2107
+ * ```
2108
+ * e.g.:
2109
+ * ```
2110
+ * {
2111
+ * \[Area.selectors.area]: {
2112
+ * click: (d) => console.log("Clicked Area", d)
2113
+ * }
2114
+ * }
2115
+ * ``` */
2116
+ events?: {
2117
+ [selector: string]: {
2118
+ [eventType in VisEventType]?: VisEventCallback;
2119
+ };
2120
+ };
2121
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
2122
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
2123
+ *
2124
+ * ```
2125
+ * {
2126
+ * \[selectorString]: {
2127
+ * \[attributeName]: attribute constant value or accessor function
2128
+ * }
2129
+ * }
2130
+ * ```
2131
+ * e.g.:
2132
+ * ```
2133
+ * {
2134
+ * \[Area.selectors.area]: {
2135
+ * "test-value": d => d.value
2136
+ * }
2137
+ * }
2138
+ * ``` */
2139
+ attributes?: {
2140
+ [selector: string]: {
2141
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
2142
+ };
2143
+ };
2144
+ /** Node / Link id accessor function. Used for mapping of data updates to corresponding SVG objects. Default: `(d, i) => d.id ?? i.toString()` */
2145
+ id?: (d: SankeyInputNode | SankeyInputLink, i: number, ...rest: any[]) => string;
2146
+ /** 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` */
2147
+ heightNormalizationCoeff?: number;
2148
+ /** Horizontal and vertical scale factor applied to the computed layout (column spacing). Keeps node width intact. Default: `undefined` */
2149
+ zoomScale?: [number, number];
2150
+ /** Pan offset in pixels. Default: `undefined` */
2151
+ zoomPan?: [number, number];
2152
+ /** Enable interactive zoom/pan behavior. Default: `true` */
2153
+ enableZoom?: boolean;
2154
+ /** Allowed interactive zoom scale extent. Default: `[1, 5]` */
2155
+ zoomExtent?: [number, number];
2156
+ /** Zoom interaction mode. Default: `SankeyZoomMode.XY` */
2157
+ zoomMode?: SankeyZoomMode | string;
2158
+ /** Disable modifier keys. Has effect only for `SankeyZoomMode.XY` zoom mode. When `true`, zoom mode is not altered by modifier keys. Default: `false` */
2159
+ disableZoomModifierKeys?: boolean;
2160
+ /** Type of animation on removing nodes. Default: `ExitTransitionType.Default` */
2161
+ exitTransitionType?: SankeyExitTransitionType;
2162
+ /** Type of animation on creating nodes. Default: `EnterTransitionType.Default` */
2163
+ enterTransitionType?: SankeyEnterTransitionType;
2164
+ /** Highlight the corresponding subtree on node / link hover. Default: `false` */
2165
+ highlightSubtreeOnHover?: boolean;
2166
+ /** Highlight animation duration, ms. Default: `400` */
2167
+ highlightDuration?: number;
2168
+ /** Highlight delay, ms. Default: `1000` */
2169
+ highlightDelay?: number;
2170
+ /** Sankey algorithm iterations. Default: `32` */
2171
+ iterations?: number;
2172
+ /** Sankey node sorting function. Default: `undefined`.
2173
+ * Node sorting is applied to nodes in one layer (column). Layer by layer.
2174
+ * Options: `undefined` - the order is determined by the layout;
2175
+ * `null` - the order is fixed by the input;
2176
+ * sort function - the order is determined by the function. */
2177
+ nodeSort?: ((node1: SankeyNode<N, L>, node2: SankeyNode<N, L>) => number) | null | undefined;
2178
+ /** Sankey link sorting function. Default: `(link2, link1) => link1.value - link2.value`.
2179
+ * Link sorting is applied to the source (exiting) links within one node.
2180
+ * Options: `undefined` - the order is determined by the layout;
2181
+ * `null` - the order is fixed by the input;
2182
+ * sort function - the order is determined by the function. */
2183
+ linkSort?: ((link1: SankeyLink<N, L>, link2: SankeyLink<N, L>) => number) | null | undefined;
2184
+ /** Sankey node width in pixels */
2185
+ nodeWidth?: number;
2186
+ /** Sankey node alignment method */
2187
+ nodeAlign?: SankeyNodeAlign;
2188
+ /** Horizontal space between the nodes. Extended Sizing property only. Default: `150` */
2189
+ nodeHorizontalSpacing?: number;
2190
+ /** Minimum node height. Extended Sizing property only. Default: `20` */
2191
+ nodeMinHeight?: number;
2192
+ /** Maximum node height. Extended Sizing property only. Default: `100` */
2193
+ nodeMaxHeight?: number;
2194
+ /** Sankey vertical separation between nodes in pixels. Default: `2` */
2195
+ nodePadding?: number;
2196
+ /** Compress `nodePadding` when it doesn't fit the available height, so that node bodies
2197
+ * always keep at least a third of it instead of collapsing to zero height.
2198
+ * Applied only when `Sizing.Fit` is selected. Default: `false` */
2199
+ nodeAdaptivePadding?: boolean;
2200
+ /** Display the graph when data has just one element */
2201
+ showSingleNode?: boolean;
2202
+ /** Node cursor on hover. Default: `undefined` */
2203
+ nodeCursor?: StringAccessor<SankeyNode<N, L>>;
2204
+ /** Node icon accessor function or value. Default: `undefined` */
2205
+ nodeIcon?: StringAccessor<SankeyNode<N, L>>;
2206
+ /** Node color accessor function or value. Default: `undefined` */
2207
+ nodeColor?: ColorAccessor<SankeyNode<N, L>>;
2208
+ /** Node fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */
2209
+ nodePattern?: GenericAccessor<FillPatternType, SankeyNode<N, L>>;
2210
+ /** Node `fixedValue` accessor function or constant. It defines the node value that will be used to calculate
2211
+ * the height of the nodes by d3-sankey (by default the height will be based on aggregated `linkValue`).
2212
+ * Default: `n => n.fixedValue` */
2213
+ nodeFixedValue?: NumericAccessor<N>;
2214
+ /** Icon color accessor function or value. Default: `undefined` */
2215
+ nodeIconColor?: ColorAccessor<SankeyNode<N, L>>;
2216
+ /** Link color accessor function or value. Default: `l => l.color` */
2217
+ linkColor?: StringAccessor<SankeyLink<N, L>>;
2218
+ /** Link fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */
2219
+ linkPattern?: GenericAccessor<FillPatternType, SankeyLink<N, L>>;
2220
+ /** Link flow accessor function or value. Default: `l => l.value` */
2221
+ linkValue?: NumericAccessor<L>;
2222
+ /** Link cursor on hover. Default: `undefined` */
2223
+ linkCursor?: StringAccessor<SankeyLink<N, L>>;
2224
+ /** Node label accessor function or value. Default: `n => n.label` */
2225
+ label?: StringAccessor<SankeyNode<N, L>>;
2226
+ /** Node sub-label accessor function or value. Default: `undefined` */
2227
+ subLabel?: StringAccessor<SankeyNode<N, L>>;
2228
+ /** Label position relative to the Node. Default: `Position.AUTO` */
2229
+ labelPosition?: GenericAccessor<Position.Auto | Position.Left | Position.Right | string, SankeyNode<N, L>>;
2230
+ /** Label vertical alignment */
2231
+ labelVerticalAlign?: VerticalAlign | string;
2232
+ /** Label background */
2233
+ labelBackground?: boolean;
2234
+ /** Label fit mode (wrap or trim). Default: `FitMode.Trim` * */
2235
+ labelFit?: FitMode;
2236
+ /** Maximum label with in pixels. Default: `70` */
2237
+ labelMaxWidth?: number;
2238
+ /** Whether to take the available space for the label. This property is used only if `labelMaxWidth` is not provided. Default: `false` */
2239
+ labelMaxWidthTakeAvailableSpace?: boolean;
2240
+ /** Tolerance for the available space for the label. This property is used only if `labelMaxWidthTakeAvailableSpace` is `true`. Default: `undefined` (use label and sub-label font sizes) */
2241
+ labelMaxWidthTakeAvailableSpaceTolerance?: number;
2242
+ /** Expand trimmed label on hover. Default: `true` */
2243
+ labelExpandTrimmedOnHover?: boolean;
2244
+ /** Label trimming mode. Default: `TrimMode.Middle` */
2245
+ labelTrimMode?: TrimMode;
2246
+ /** Label font size in pixels. If not provided, the value of CSS variable `--vis-sankey-node-label-font-size` will be used. Default: `undefined` */
2247
+ labelFontSize?: number;
2248
+ /** Label text separators for wrapping. Default: `[' ', '-']` */
2249
+ labelTextSeparator?: string[];
2250
+ /** Label text decoration. Default: `undefined` */
2251
+ labelTextDecoration?: StringAccessor<SankeyNode<N, L>>;
2252
+ /** Force break words to fit long labels. Default: `true` */
2253
+ labelForceWordBreak?: boolean;
2254
+ /** Label color. Default: `undefined` */
2255
+ labelColor?: ColorAccessor<SankeyNode<N, L>>;
2256
+ /** Label cursor on hover. Default: `undefined` */
2257
+ labelCursor?: StringAccessor<SankeyNode<N, L>>;
2258
+ /** Custom function to set the label visibility. Default: `undefined` */
2259
+ labelVisibility?: ((d: SankeyNode<N, L>, bbox: {
2260
+ x: number;
2261
+ y: number;
2262
+ width: number;
2263
+ height: number;
2264
+ }, hovered: boolean) => boolean) | undefined;
2265
+ /** 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` */
2266
+ subLabelFontSize?: number;
2267
+ /** Sub-label color. Default: `undefined` */
2268
+ subLabelColor?: ColorAccessor<SankeyNode<N, L>>;
2269
+ /** Sub-label position. Default: `SankeySubLabelPlacement.Below` */
2270
+ subLabelPlacement?: SankeySubLabelPlacement | string;
2271
+ /** Sub-label text decoration. Default: `undefined` */
2272
+ subLabelTextDecoration?: StringAccessor<SankeyNode<N, L>>;
2273
+ /** Sub-label to label width ratio when `subLabelPlacement` is set to `SankeySubLabelPlacement.Inline`
2274
+ * Default: `0.4`, which means that 40% of `labelMaxWidth` will be given to sub-label, and 60% to the main label. */
2275
+ subLabelToLabelInlineWidthRatio?: number;
2276
+ /** Zoom event callback. Default: `undefined` */
2277
+ onZoom?: (horizontalScale: number, verticalScale: number, panX: number, panY: number, zoomExtent: [number, number], event: D3ZoomEvent<SVGGElement, unknown> | undefined) => void;
2278
+ /** Callback function to be called when the graph layout is calculated. Default: `undefined` */
2279
+ onLayoutCalculated?: (nodes: SankeyNode<N, L>[], links: SankeyLink<N, L>[], depth: number, width: number, height: number, bleed: Spacing) => void;
2280
+ /** Set selected nodes by unique id. Default: `undefined` */
2281
+ selectedNodeIds?: string[];
2282
+ data: {
2283
+ nodes: N[];
2284
+ links?: L[];
2285
+ };
2286
+ component: Sankey<N, L> | undefined;
2287
+ componentContainer: ContainerCore | undefined;
2288
+ ngAfterViewInit(): void;
2289
+ ngOnChanges(changes: SimpleChanges): void;
2290
+ private getConfig;
2291
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisSankeyComponent<any, any>, never>;
2292
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisSankeyComponent<any, any>, "vis-sankey", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "id": { "alias": "id"; "required": false; }; "heightNormalizationCoeff": { "alias": "heightNormalizationCoeff"; "required": false; }; "zoomScale": { "alias": "zoomScale"; "required": false; }; "zoomPan": { "alias": "zoomPan"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; "zoomExtent": { "alias": "zoomExtent"; "required": false; }; "zoomMode": { "alias": "zoomMode"; "required": false; }; "disableZoomModifierKeys": { "alias": "disableZoomModifierKeys"; "required": false; }; "exitTransitionType": { "alias": "exitTransitionType"; "required": false; }; "enterTransitionType": { "alias": "enterTransitionType"; "required": false; }; "highlightSubtreeOnHover": { "alias": "highlightSubtreeOnHover"; "required": false; }; "highlightDuration": { "alias": "highlightDuration"; "required": false; }; "highlightDelay": { "alias": "highlightDelay"; "required": false; }; "iterations": { "alias": "iterations"; "required": false; }; "nodeSort": { "alias": "nodeSort"; "required": false; }; "linkSort": { "alias": "linkSort"; "required": false; }; "nodeWidth": { "alias": "nodeWidth"; "required": false; }; "nodeAlign": { "alias": "nodeAlign"; "required": false; }; "nodeHorizontalSpacing": { "alias": "nodeHorizontalSpacing"; "required": false; }; "nodeMinHeight": { "alias": "nodeMinHeight"; "required": false; }; "nodeMaxHeight": { "alias": "nodeMaxHeight"; "required": false; }; "nodePadding": { "alias": "nodePadding"; "required": false; }; "nodeAdaptivePadding": { "alias": "nodeAdaptivePadding"; "required": false; }; "showSingleNode": { "alias": "showSingleNode"; "required": false; }; "nodeCursor": { "alias": "nodeCursor"; "required": false; }; "nodeIcon": { "alias": "nodeIcon"; "required": false; }; "nodeColor": { "alias": "nodeColor"; "required": false; }; "nodePattern": { "alias": "nodePattern"; "required": false; }; "nodeFixedValue": { "alias": "nodeFixedValue"; "required": false; }; "nodeIconColor": { "alias": "nodeIconColor"; "required": false; }; "linkColor": { "alias": "linkColor"; "required": false; }; "linkPattern": { "alias": "linkPattern"; "required": false; }; "linkValue": { "alias": "linkValue"; "required": false; }; "linkCursor": { "alias": "linkCursor"; "required": false; }; "label": { "alias": "label"; "required": false; }; "subLabel": { "alias": "subLabel"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "labelVerticalAlign": { "alias": "labelVerticalAlign"; "required": false; }; "labelBackground": { "alias": "labelBackground"; "required": false; }; "labelFit": { "alias": "labelFit"; "required": false; }; "labelMaxWidth": { "alias": "labelMaxWidth"; "required": false; }; "labelMaxWidthTakeAvailableSpace": { "alias": "labelMaxWidthTakeAvailableSpace"; "required": false; }; "labelMaxWidthTakeAvailableSpaceTolerance": { "alias": "labelMaxWidthTakeAvailableSpaceTolerance"; "required": false; }; "labelExpandTrimmedOnHover": { "alias": "labelExpandTrimmedOnHover"; "required": false; }; "labelTrimMode": { "alias": "labelTrimMode"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelTextSeparator": { "alias": "labelTextSeparator"; "required": false; }; "labelTextDecoration": { "alias": "labelTextDecoration"; "required": false; }; "labelForceWordBreak": { "alias": "labelForceWordBreak"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelCursor": { "alias": "labelCursor"; "required": false; }; "labelVisibility": { "alias": "labelVisibility"; "required": false; }; "subLabelFontSize": { "alias": "subLabelFontSize"; "required": false; }; "subLabelColor": { "alias": "subLabelColor"; "required": false; }; "subLabelPlacement": { "alias": "subLabelPlacement"; "required": false; }; "subLabelTextDecoration": { "alias": "subLabelTextDecoration"; "required": false; }; "subLabelToLabelInlineWidthRatio": { "alias": "subLabelToLabelInlineWidthRatio"; "required": false; }; "onZoom": { "alias": "onZoom"; "required": false; }; "onLayoutCalculated": { "alias": "onLayoutCalculated"; "required": false; }; "selectedNodeIds": { "alias": "selectedNodeIds"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
2293
+ }
2294
+
2295
+ declare class VisSankeyModule {
2296
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisSankeyModule, never>;
2297
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisSankeyModule, [typeof VisSankeyComponent], never, [typeof VisSankeyComponent]>;
2298
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisSankeyModule>;
2299
+ }
2300
+
2301
+ declare class VisRadialBarComponent<Datum> implements RadialBarConfigInterface<Datum>, AfterViewInit {
2302
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
2303
+ duration?: number;
2304
+ /** Events configuration. An object containing properties in the following format:
2305
+ *
2306
+ * ```
2307
+ * {
2308
+ * \[selectorString]: {
2309
+ * \[eventType]: callbackFunction
2310
+ * }
2311
+ * }
2312
+ * ```
2313
+ * e.g.:
2314
+ * ```
2315
+ * {
2316
+ * \[Area.selectors.area]: {
2317
+ * click: (d) => console.log("Clicked Area", d)
2318
+ * }
2319
+ * }
2320
+ * ``` */
2321
+ events?: {
2322
+ [selector: string]: {
2323
+ [eventType in VisEventType]?: VisEventCallback;
2324
+ };
2325
+ };
2326
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
2327
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
2328
+ *
2329
+ * ```
2330
+ * {
2331
+ * \[selectorString]: {
2332
+ * \[attributeName]: attribute constant value or accessor function
2333
+ * }
2334
+ * }
2335
+ * ```
2336
+ * e.g.:
2337
+ * ```
2338
+ * {
2339
+ * \[Area.selectors.area]: {
2340
+ * "test-value": d => d.value
2341
+ * }
2342
+ * }
2343
+ * ``` */
2344
+ attributes?: {
2345
+ [selector: string]: {
2346
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
2347
+ };
2348
+ };
2349
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
2350
+ id?: ((d: Datum, i: number, ...rest: any[]) => string | number);
2351
+ /** Value accessor function. Returning `null` or `undefined` marks the value as missing,
2352
+ * and the corresponding bar will not be rendered. Default: `undefined` */
2353
+ value: NumericAccessor<Datum>;
2354
+ /** Maximum value accessor or an array of maximums (indexed by each datum's original position in `data` before sorting).
2355
+ * Used to scale each bar's arc length: each bar fills `(value / maxValue) * (angleRange[1] - angleRange[0])`.
2356
+ * When `undefined`, the maximum is derived from the data. Default: `undefined` */
2357
+ maxValue?: NumericAccessor<Datum> | number[];
2358
+ /** Diagram angle range. Default: `[0, 2 * Math.PI]` */
2359
+ angleRange?: [number, number];
2360
+ /** Pad angle in radians applied between the bar and its end. Default: `0` */
2361
+ padAngle?: number;
2362
+ /** Minimum bar angle in radians. Bars with small values, `0` included, will be extended to that angle,
2363
+ * so that they remain visible. The value is clamped to the length of `angleRange`.
2364
+ * Bars with missing values (see `value`) are not affected: they're never rendered.
2365
+ * Set it to `0` to disable. Default: `0.01` (about 1 pixel wide on a ring of a 100 pixel radius) */
2366
+ barMinAngle?: number;
2367
+ /** Custom sort function. Default: `undefined` */
2368
+ sortFunction?: (a: Datum, b: Datum) => number;
2369
+ /** Corner Radius. Default: `0` */
2370
+ cornerRadius?: number;
2371
+ /** Color accessor function. Default: `undefined` */
2372
+ color?: ColorAccessor<Datum>;
2373
+ /** Explicitly set the outer radius of the outermost ring. Default: `undefined` */
2374
+ radius?: number;
2375
+ /** Width of each ring (track) in pixels. Default: `16` */
2376
+ trackWidth?: number;
2377
+ /** Gap between rings in pixels. Default: `4` */
2378
+ trackPadding?: number;
2379
+ /** When `true`, `data[0]` is the innermost ring instead of the outermost. Default: `false` */
2380
+ reverseOrder?: boolean;
2381
+ /** Central label text. Default: `undefined` */
2382
+ centralLabel?: string;
2383
+ /** Central sub-label text. Default: `undefined` */
2384
+ centralSubLabel?: string;
2385
+ /** Enables wrapping for the sub-label. Default: `true` */
2386
+ centralSubLabelWrap?: boolean;
2387
+ /** Central label and sub-label horizontal offset in pixels. Default: `undefined` */
2388
+ centralLabelOffsetX?: number;
2389
+ /** Central label and sub-label vertical offset in pixels. Default: `undefined` */
2390
+ centralLabelOffsetY?: number;
2391
+ /** Show a faded background track for each ring. The color is configurable via
2392
+ * the `--vis-radial-bar-background-color` and `--vis-dark-radial-bar-background-color` CSS variables.
2393
+ * Default: `true` */
2394
+ showBackground?: boolean;
2395
+ /** Background angle range. When `undefined`, the value will be taken from `angleRange`. Default: `undefined` */
2396
+ backgroundAngleRange?: [number, number];
2397
+ data: Datum[];
2398
+ component: RadialBar<Datum> | undefined;
2399
+ componentContainer: ContainerCore | undefined;
2400
+ ngAfterViewInit(): void;
2401
+ ngOnChanges(changes: SimpleChanges): void;
2402
+ private getConfig;
2403
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisRadialBarComponent<any>, never>;
2404
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisRadialBarComponent<any>, "vis-radial-bar", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "angleRange": { "alias": "angleRange"; "required": false; }; "padAngle": { "alias": "padAngle"; "required": false; }; "barMinAngle": { "alias": "barMinAngle"; "required": false; }; "sortFunction": { "alias": "sortFunction"; "required": false; }; "cornerRadius": { "alias": "cornerRadius"; "required": false; }; "color": { "alias": "color"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "trackWidth": { "alias": "trackWidth"; "required": false; }; "trackPadding": { "alias": "trackPadding"; "required": false; }; "reverseOrder": { "alias": "reverseOrder"; "required": false; }; "centralLabel": { "alias": "centralLabel"; "required": false; }; "centralSubLabel": { "alias": "centralSubLabel"; "required": false; }; "centralSubLabelWrap": { "alias": "centralSubLabelWrap"; "required": false; }; "centralLabelOffsetX": { "alias": "centralLabelOffsetX"; "required": false; }; "centralLabelOffsetY": { "alias": "centralLabelOffsetY"; "required": false; }; "showBackground": { "alias": "showBackground"; "required": false; }; "backgroundAngleRange": { "alias": "backgroundAngleRange"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
2405
+ }
2406
+
2407
+ declare class VisRadialBarModule {
2408
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisRadialBarModule, never>;
2409
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisRadialBarModule, [typeof VisRadialBarComponent], never, [typeof VisRadialBarComponent]>;
2410
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisRadialBarModule>;
2411
+ }
2412
+
2413
+ declare class VisScatterComponent<Datum> implements ScatterConfigInterface<Datum>, AfterViewInit {
2414
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
2415
+ duration?: number;
2416
+ /** Events configuration. An object containing properties in the following format:
2417
+ *
2418
+ * ```
2419
+ * {
2420
+ * \[selectorString]: {
2421
+ * \[eventType]: callbackFunction
2422
+ * }
2423
+ * }
2424
+ * ```
2425
+ * e.g.:
2426
+ * ```
2427
+ * {
2428
+ * \[Area.selectors.area]: {
2429
+ * click: (d) => console.log("Clicked Area", d)
2430
+ * }
2431
+ * }
2432
+ * ``` */
2433
+ events?: {
2434
+ [selector: string]: {
2435
+ [eventType in VisEventType]?: VisEventCallback;
2436
+ };
2437
+ };
2438
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
2439
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
2440
+ *
2441
+ * ```
2442
+ * {
2443
+ * \[selectorString]: {
2444
+ * \[attributeName]: attribute constant value or accessor function
2445
+ * }
2446
+ * }
2447
+ * ```
2448
+ * e.g.:
2449
+ * ```
2450
+ * {
2451
+ * \[Area.selectors.area]: {
2452
+ * "test-value": d => d.value
2453
+ * }
2454
+ * }
2455
+ * ``` */
2456
+ attributes?: {
2457
+ [selector: string]: {
2458
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
2459
+ };
2460
+ };
2461
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
2462
+ x: NumericAccessor<Datum>;
2463
+ /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
2464
+ y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
2465
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
2466
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
2467
+ /** Point color accessor function. Default: `d => d.color` */
2468
+ color?: ColorAccessor<Datum>;
2469
+ /** Array of data color keys. Use to map data keys to colors.
2470
+ * Expected to the same length as the `y` accessors array.
2471
+ * Default: `undefined` */
2472
+ colorKeys?: string[];
2473
+ /** 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.
2474
+ * Only continuous scales are supported.
2475
+ * Default: `undefined` */
2476
+ xScale?: ContinuousScale;
2477
+ /** 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.
2478
+ * Only continuous scales are supported.
2479
+ * Default: `undefined` */
2480
+ yScale?: ContinuousScale;
2481
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
2482
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
2483
+ * the scales of the chart.
2484
+ * Default: `false` */
2485
+ excludeFromDomainCalculation?: boolean;
2486
+ /** Point fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */
2487
+ pattern?: GenericAccessor<FillPatternType, Datum>;
2488
+ /** Size of the scatter plot marker (e.g. diameter if `SymbolType.Circle` is used for `shape`) in pixels.
2489
+ * Can be a constant value or an accessor function. But if `sizeRange` is set, then the values will be treated
2490
+ * as an input to `sizeScale`, and the resulting size will be different.
2491
+ * Default: `10` */
2492
+ size?: NumericAccessor<Datum>;
2493
+ /** Size scale to be used if the `sizeRange` was set. Default: `Scale.scaleSqrt()` */
2494
+ sizeScale?: ContinuousScale;
2495
+ /** Size range in the format of `[number, number]` to rescale the input values. Default: `undefined` */
2496
+ sizeRange?: [number, number];
2497
+ /** Shape of the scatter point. Accessor function or constant value: `SymbolType.Circle`, `SymbolType.Cross`, `SymbolType.Diamond`, `SymbolType.Square`,
2498
+ * `SymbolType.Star`, `SymbolType.Triangle` or `SymbolType.Wye`.
2499
+ * Default: `SymbolType.Circle` */
2500
+ shape?: ((d: Datum, i?: number, ...rest: any[]) => (SymbolType | string)) | SymbolType | string;
2501
+ /** Label accessor function or string. Default: `undefined` */
2502
+ label?: StringAccessor<Datum>;
2503
+ /** Label color. Default: `undefined` */
2504
+ labelColor?: ColorAccessor<Datum>;
2505
+ /** Hide overlapping labels. Default: `true` */
2506
+ labelHideOverlapping?: boolean;
2507
+ /** Optional point cursor. Default: `null` */
2508
+ cursor?: StringAccessor<Datum>;
2509
+ /** Point color brightness ratio for switching between dark and light text label color. Default: `0.65` */
2510
+ labelTextBrightnessRatio?: number;
2511
+ /** Label position. Default: `Position.Bottom` */
2512
+ labelPosition?: GenericAccessor<Position | string, Datum>;
2513
+ /** Point stroke color. Default: `undefined` */
2514
+ strokeColor?: ColorAccessor<Datum>;
2515
+ /** Point stroke width. Default: `undefined` */
2516
+ strokeWidth?: NumericAccessor<Datum>;
2517
+ data: Datum[];
2518
+ component: Scatter<Datum> | undefined;
2519
+ componentContainer: ContainerCore | undefined;
2520
+ ngAfterViewInit(): void;
2521
+ ngOnChanges(changes: SimpleChanges): void;
2522
+ private getConfig;
2523
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisScatterComponent<any>, never>;
2524
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisScatterComponent<any>, "vis-scatter", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "size": { "alias": "size"; "required": false; }; "sizeScale": { "alias": "sizeScale"; "required": false; }; "sizeRange": { "alias": "sizeRange"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelHideOverlapping": { "alias": "labelHideOverlapping"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "labelTextBrightnessRatio": { "alias": "labelTextBrightnessRatio"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "strokeColor": { "alias": "strokeColor"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
2525
+ }
2526
+
2527
+ declare class VisScatterModule {
2528
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisScatterModule, never>;
2529
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisScatterModule, [typeof VisScatterComponent], never, [typeof VisScatterComponent]>;
2530
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisScatterModule>;
2531
+ }
2532
+
2533
+ declare class VisStackedBarComponent<Datum> implements StackedBarConfigInterface<Datum>, AfterViewInit {
2534
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
2535
+ duration?: number;
2536
+ /** Events configuration. An object containing properties in the following format:
2537
+ *
2538
+ * ```
2539
+ * {
2540
+ * \[selectorString]: {
2541
+ * \[eventType]: callbackFunction
2542
+ * }
2543
+ * }
2544
+ * ```
2545
+ * e.g.:
2546
+ * ```
2547
+ * {
2548
+ * \[Area.selectors.area]: {
2549
+ * click: (d) => console.log("Clicked Area", d)
2550
+ * }
2551
+ * }
2552
+ * ``` */
2553
+ events?: {
2554
+ [selector: string]: {
2555
+ [eventType in VisEventType]?: VisEventCallback;
2556
+ };
2557
+ };
2558
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
2559
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
2560
+ *
2561
+ * ```
2562
+ * {
2563
+ * \[selectorString]: {
2564
+ * \[attributeName]: attribute constant value or accessor function
2565
+ * }
2566
+ * }
2567
+ * ```
2568
+ * e.g.:
2569
+ * ```
2570
+ * {
2571
+ * \[Area.selectors.area]: {
2572
+ * "test-value": d => d.value
2573
+ * }
2574
+ * }
2575
+ * ``` */
2576
+ attributes?: {
2577
+ [selector: string]: {
2578
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
2579
+ };
2580
+ };
2581
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
2582
+ x: NumericAccessor<Datum>;
2583
+ /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
2584
+ y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
2585
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
2586
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
2587
+ /** Bar color accessor function. Default: `d => d.color` */
2588
+ color?: ColorAccessor<Datum>;
2589
+ /** Array of data color keys. Use to map data keys to colors.
2590
+ * Expected to the same length as the `y` accessors array.
2591
+ * Default: `undefined` */
2592
+ colorKeys?: string[];
2593
+ /** 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.
2594
+ * Only continuous scales are supported.
2595
+ * Default: `undefined` */
2596
+ xScale?: ContinuousScale;
2597
+ /** 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.
2598
+ * Only continuous scales are supported.
2599
+ * Default: `undefined` */
2600
+ yScale?: ContinuousScale;
2601
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
2602
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
2603
+ * the scales of the chart.
2604
+ * Default: `false` */
2605
+ excludeFromDomainCalculation?: boolean;
2606
+ /** Bar fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */
2607
+ pattern?: GenericAccessor<FillPatternType, Datum>;
2608
+ /** The value each bar's stack starts from, instead of zero. Number or accessor function.
2609
+ * Useful for floating bars and waterfall charts, where every bar starts where the previous one ended.
2610
+ * Default: `undefined` */
2611
+ baseline?: NumericAccessor<Datum>;
2612
+ /** Force set bar width in pixels. Default: `undefined` */
2613
+ barWidth?: number;
2614
+ /** Maximum bar width for dynamic sizing. Default: `undefined` */
2615
+ barMaxWidth?: number;
2616
+ /** Expected step between the bars in the X axis units.
2617
+ * Needed to correctly calculate the width of the bars when there are gaps in the data.
2618
+ * Default: `undefined` */
2619
+ dataStep?: number;
2620
+ /** Fractional padding between the bars in the range of [0,1). Default: `0` */
2621
+ barPadding?: number;
2622
+ /** Rounded corners for top bars. Boolean or number (to set the radius in pixels). Default: `2` */
2623
+ roundedCorners?: number | boolean;
2624
+ /** Configurable bar cursor when hovering over. Default: `null` */
2625
+ cursor?: StringAccessor<Datum>;
2626
+ /** Sets the minimum bar height to 1 pixel for better visibility of small values. Default: `false` */
2627
+ barMinHeight1Px?: boolean;
2628
+ /** Base value to test data existence when `barMinHeight1Px` is set to `true`.
2629
+ * Everything equal to barMinHeightZeroValue will not be rendered on the chart.
2630
+ * Default: `null` */
2631
+ barMinHeightZeroValue?: any;
2632
+ /** Chart orientation: `Orientation.Vertical` or `Orientation.Horizontal`. Default `Orientation.Vertical` */
2633
+ orientation?: Orientation | string;
2634
+ data: Datum[];
2635
+ component: StackedBar<Datum> | undefined;
2636
+ componentContainer: ContainerCore | undefined;
2637
+ ngAfterViewInit(): void;
2638
+ ngOnChanges(changes: SimpleChanges): void;
2639
+ private getConfig;
2640
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisStackedBarComponent<any>, never>;
2641
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisStackedBarComponent<any>, "vis-stacked-bar", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "baseline": { "alias": "baseline"; "required": false; }; "barWidth": { "alias": "barWidth"; "required": false; }; "barMaxWidth": { "alias": "barMaxWidth"; "required": false; }; "dataStep": { "alias": "dataStep"; "required": false; }; "barPadding": { "alias": "barPadding"; "required": false; }; "roundedCorners": { "alias": "roundedCorners"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "barMinHeight1Px": { "alias": "barMinHeight1Px"; "required": false; }; "barMinHeightZeroValue": { "alias": "barMinHeightZeroValue"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
2642
+ }
2643
+
2644
+ declare class VisStackedBarModule {
2645
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisStackedBarModule, never>;
2646
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisStackedBarModule, [typeof VisStackedBarComponent], never, [typeof VisStackedBarComponent]>;
2647
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisStackedBarModule>;
2648
+ }
2649
+
2650
+ declare class VisTimelineComponent<Datum> implements TimelineConfigInterface<Datum>, AfterViewInit {
2651
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
2652
+ duration?: number;
2653
+ /** Events configuration. An object containing properties in the following format:
2654
+ *
2655
+ * ```
2656
+ * {
2657
+ * \[selectorString]: {
2658
+ * \[eventType]: callbackFunction
2659
+ * }
2660
+ * }
2661
+ * ```
2662
+ * e.g.:
2663
+ * ```
2664
+ * {
2665
+ * \[Area.selectors.area]: {
2666
+ * click: (d) => console.log("Clicked Area", d)
2667
+ * }
2668
+ * }
2669
+ * ``` */
2670
+ events?: {
2671
+ [selector: string]: {
2672
+ [eventType in VisEventType]?: VisEventCallback;
2673
+ };
2674
+ };
2675
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
2676
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
2677
+ *
2678
+ * ```
2679
+ * {
2680
+ * \[selectorString]: {
2681
+ * \[attributeName]: attribute constant value or accessor function
2682
+ * }
2683
+ * }
2684
+ * ```
2685
+ * e.g.:
2686
+ * ```
2687
+ * {
2688
+ * \[Area.selectors.area]: {
2689
+ * "test-value": d => d.value
2690
+ * }
2691
+ * }
2692
+ * ``` */
2693
+ attributes?: {
2694
+ [selector: string]: {
2695
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
2696
+ };
2697
+ };
2698
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
2699
+ x: NumericAccessor<Datum>;
2700
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
2701
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
2702
+ /** Timeline item color accessor function. Default: `d => d.color` */
2703
+ color?: ColorAccessor<Datum>;
2704
+ /** Array of data color keys. Use to map data keys to colors.
2705
+ * Expected to the same length as the `y` accessors array.
2706
+ * Default: `undefined` */
2707
+ colorKeys?: string[];
2708
+ /** 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.
2709
+ * Only continuous scales are supported.
2710
+ * Default: `undefined` */
2711
+ xScale?: ContinuousScale;
2712
+ /** 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.
2713
+ * Only continuous scales are supported.
2714
+ * Default: `undefined` */
2715
+ yScale?: ContinuousScale;
2716
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
2717
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
2718
+ * the scales of the chart.
2719
+ * Default: `false` */
2720
+ excludeFromDomainCalculation?: boolean;
2721
+ /** */
2722
+ type?: StringAccessor<Datum>;
2723
+ /** */
2724
+ length?: NumericAccessor<Datum>;
2725
+ /** */
2726
+ cursor?: StringAccessor<Datum>;
2727
+ /** Timeline item row accessor function. Records with the `lineRow` will be plotted in one row. Default: `undefined` */
2728
+ lineRow?: StringAccessor<Datum>;
2729
+ /** Timeline item duration accessor function. Default: `undefined`. Falls back to the deprecated `length` property */
2730
+ lineDuration?: NumericAccessor<Datum>;
2731
+ /** Timeline item fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */
2732
+ pattern?: GenericAccessor<FillPatternType, Datum>;
2733
+ /** Width of the timeline items. Default: `8` */
2734
+ lineWidth?: NumericAccessor<Datum>;
2735
+ /** Display rounded ends for timeline items. Default: `true` */
2736
+ lineCap?: boolean;
2737
+ /** Provide a href to an SVG defined in container's `svgDefs` to display an icon at the start of the line. Default: undefined */
2738
+ lineStartIcon?: StringAccessor<Datum>;
2739
+ /** Line start icon color accessor function. Default: `undefined` */
2740
+ lineStartIconColor?: StringAccessor<Datum>;
2741
+ /** Line start icon size accessor function. Default: `undefined` */
2742
+ lineStartIconSize?: NumericAccessor<Datum>;
2743
+ /** Line start icon arrangement configuration. Controls how the icon is positioned relative to the line.
2744
+ * Accepts values from the Arrangement enum: `Arrangement.Start`, `Arrangement.Middle`, `Arrangement.End` or a string equivalent.
2745
+ * Default: `Arrangement.Inside` */
2746
+ lineStartIconArrangement?: GenericAccessor<Arrangement | `${Arrangement}`, Datum>;
2747
+ /** Provide a href to an SVG defined in container's `svgDefs` to display an icon at the end of the line. Default: undefined */
2748
+ lineEndIcon?: StringAccessor<Datum>;
2749
+ /** Line end icon color accessor function. Default: `undefined` */
2750
+ lineEndIconColor?: StringAccessor<Datum>;
2751
+ /** Line end icon size accessor function. Default: `undefined` */
2752
+ lineEndIconSize?: NumericAccessor<Datum>;
2753
+ /** Line end icon arrangement configuration. Controls how the icon is positioned relative to the line.
2754
+ * Accepts values from the Arrangement enum: `Arrangement.Start`, `Arrangement.Middle`, `Arrangement.End` or a string equivalent.
2755
+ * Default: `Arrangement.Inside` */
2756
+ lineEndIconArrangement?: GenericAccessor<Arrangement | `${Arrangement}`, Datum>;
2757
+ /** Configurable Timeline item cursor when hovering over. Default: `undefined` */
2758
+ lineCursor?: StringAccessor<Datum>;
2759
+ /** Sets the minimum line length to 1 pixel for better visibility of small values.
2760
+ * When `lineCap` is set to `true`, the segment will be rendered as a circle.
2761
+ * Default: `false` */
2762
+ showEmptySegments?: boolean;
2763
+ /** Center small segments when `showEmptySegments` and `lineCap` are set to `true`.
2764
+ * Default: `true` */
2765
+ showEmptySegmentsCorrectPosition?: boolean;
2766
+ /** Timeline row height. Default: `22` */
2767
+ rowHeight?: number;
2768
+ /** Alternating row colors. Default: `true` */
2769
+ alternatingRowColors?: boolean;
2770
+ /** */
2771
+ showLabels?: boolean;
2772
+ /** */
2773
+ labelWidth?: number;
2774
+ /** */
2775
+ maxLabelWidth?: number;
2776
+ /** Show row labels when set to `true`. Default: `false`. Falls back to deprecated `showLabels` */
2777
+ showRowLabels?: boolean;
2778
+ /** Row label style as an object with the `{ [property-name]: value }` format. Default: `undefined` */
2779
+ rowLabelStyle?: GenericAccessor<Record<string, string>, TimelineRowLabel<Datum>>;
2780
+ /** Row label formatter function. Default: `undefined` */
2781
+ rowLabelFormatter?: (key: string, items: Datum[], i: number) => string;
2782
+ /** Provide an icon href to be displayed before the row label. Default: `undefined` */
2783
+ rowIcon?: (key: string, items: Datum[], i: number) => TimelineRowIcon | undefined;
2784
+ /** Fixed label width in pixels. Labels longer than the specified value will be trimmed. Default: `undefined`. Falls back to deprecated `labelWidth`. */
2785
+ rowLabelWidth?: number;
2786
+ /** Maximum label width in pixels. Labels longer than the specified value will be trimmed. Default: `undefined`. Falls back to deprecated `maxLabelWidth`. */
2787
+ rowMaxLabelWidth?: number;
2788
+ /** Text alignment for labels: `TextAlign.Left`, `TextAlign.Center` or `TextAlign.Right`. Default: `TextAlign.Right` */
2789
+ rowLabelTextAlign?: TextAlign | `${TextAlign}`;
2790
+ /** Row label trim mode when width is limited: `TrimMode.Start`, `TrimMode.Middle` or `TrimMode.End`. Default: `TrimMode.Middle` */
2791
+ rowLabelTrimMode?: TrimMode | `${TrimMode}`;
2792
+ /** Row label margin in pixels. Can be a single number or a `[left, right]` tuple. Default: `[0, 5]` */
2793
+ rowLabelMargin?: number | [number, number];
2794
+ /** When component height is larger than the height of all rows, render rows to fill empty space */
2795
+ rowFillEmptySpace?: boolean;
2796
+ arrows?: TimelineArrow[];
2797
+ /** Control the animation by specify the initial position for new lines as [x, y]. Default: `undefined` */
2798
+ animationLineEnterPosition?: [number | undefined | null, number | undefined | null] | ((d: Datum & TimelineLineRenderState, i: number, data: (Datum & TimelineLineRenderState)[]) => [number | undefined, number | undefined]) | undefined;
2799
+ /** Control the animation by specify the destination position for exiting lines as [x, y]. Default: `undefined` */
2800
+ animationLineExitPosition?: [number | undefined | null, number | undefined | null] | ((d: Datum & TimelineLineRenderState, i: number, data: (Datum & TimelineLineRenderState)[]) => [number | undefined, number | undefined]) | undefined;
2801
+ /** Scrolling callback function: `(scrollTop: number) => void`. Default: `undefined` */
2802
+ onScroll?: (scrollTop: number) => void;
2803
+ data: Datum[];
2804
+ component: Timeline<Datum> | undefined;
2805
+ componentContainer: ContainerCore | undefined;
2806
+ ngAfterViewInit(): void;
2807
+ ngOnChanges(changes: SimpleChanges): void;
2808
+ private getConfig;
2809
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisTimelineComponent<any>, never>;
2810
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisTimelineComponent<any>, "vis-timeline", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "type": { "alias": "type"; "required": false; }; "length": { "alias": "length"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "lineRow": { "alias": "lineRow"; "required": false; }; "lineDuration": { "alias": "lineDuration"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "lineWidth": { "alias": "lineWidth"; "required": false; }; "lineCap": { "alias": "lineCap"; "required": false; }; "lineStartIcon": { "alias": "lineStartIcon"; "required": false; }; "lineStartIconColor": { "alias": "lineStartIconColor"; "required": false; }; "lineStartIconSize": { "alias": "lineStartIconSize"; "required": false; }; "lineStartIconArrangement": { "alias": "lineStartIconArrangement"; "required": false; }; "lineEndIcon": { "alias": "lineEndIcon"; "required": false; }; "lineEndIconColor": { "alias": "lineEndIconColor"; "required": false; }; "lineEndIconSize": { "alias": "lineEndIconSize"; "required": false; }; "lineEndIconArrangement": { "alias": "lineEndIconArrangement"; "required": false; }; "lineCursor": { "alias": "lineCursor"; "required": false; }; "showEmptySegments": { "alias": "showEmptySegments"; "required": false; }; "showEmptySegmentsCorrectPosition": { "alias": "showEmptySegmentsCorrectPosition"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "alternatingRowColors": { "alias": "alternatingRowColors"; "required": false; }; "showLabels": { "alias": "showLabels"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "maxLabelWidth": { "alias": "maxLabelWidth"; "required": false; }; "showRowLabels": { "alias": "showRowLabels"; "required": false; }; "rowLabelStyle": { "alias": "rowLabelStyle"; "required": false; }; "rowLabelFormatter": { "alias": "rowLabelFormatter"; "required": false; }; "rowIcon": { "alias": "rowIcon"; "required": false; }; "rowLabelWidth": { "alias": "rowLabelWidth"; "required": false; }; "rowMaxLabelWidth": { "alias": "rowMaxLabelWidth"; "required": false; }; "rowLabelTextAlign": { "alias": "rowLabelTextAlign"; "required": false; }; "rowLabelTrimMode": { "alias": "rowLabelTrimMode"; "required": false; }; "rowLabelMargin": { "alias": "rowLabelMargin"; "required": false; }; "rowFillEmptySpace": { "alias": "rowFillEmptySpace"; "required": false; }; "arrows": { "alias": "arrows"; "required": false; }; "animationLineEnterPosition": { "alias": "animationLineEnterPosition"; "required": false; }; "animationLineExitPosition": { "alias": "animationLineExitPosition"; "required": false; }; "onScroll": { "alias": "onScroll"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
2811
+ }
2812
+
2813
+ declare class VisTimelineModule {
2814
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisTimelineModule, never>;
2815
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisTimelineModule, [typeof VisTimelineComponent], never, [typeof VisTimelineComponent]>;
2816
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisTimelineModule>;
2817
+ }
2818
+
2819
+ declare class VisXYLabelsComponent<Datum> implements XYLabelsConfigInterface<Datum>, AfterViewInit {
2820
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
2821
+ duration?: number;
2822
+ /** Events configuration. An object containing properties in the following format:
2823
+ *
2824
+ * ```
2825
+ * {
2826
+ * \[selectorString]: {
2827
+ * \[eventType]: callbackFunction
2828
+ * }
2829
+ * }
2830
+ * ```
2831
+ * e.g.:
2832
+ * ```
2833
+ * {
2834
+ * \[Area.selectors.area]: {
2835
+ * click: (d) => console.log("Clicked Area", d)
2836
+ * }
2837
+ * }
2838
+ * ``` */
2839
+ events?: {
2840
+ [selector: string]: {
2841
+ [eventType in VisEventType]?: VisEventCallback;
2842
+ };
2843
+ };
2844
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
2845
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
2846
+ *
2847
+ * ```
2848
+ * {
2849
+ * \[selectorString]: {
2850
+ * \[attributeName]: attribute constant value or accessor function
2851
+ * }
2852
+ * }
2853
+ * ```
2854
+ * e.g.:
2855
+ * ```
2856
+ * {
2857
+ * \[Area.selectors.area]: {
2858
+ * "test-value": d => d.value
2859
+ * }
2860
+ * }
2861
+ * ``` */
2862
+ attributes?: {
2863
+ [selector: string]: {
2864
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
2865
+ };
2866
+ };
2867
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
2868
+ x: NumericAccessor<Datum>;
2869
+ /** Single Y accessor function. Default: `undefined` */
2870
+ y: NumericAccessor<Datum>;
2871
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
2872
+ id?: ((d: Datum, i: number, ...rest: any[]) => string);
2873
+ /** Label color accessor function. Default: `d => d.color` */
2874
+ color?: ColorAccessor<Datum>;
2875
+ /** Array of data color keys. Use to map data keys to colors.
2876
+ * Expected to the same length as the `y` accessors array.
2877
+ * Default: `undefined` */
2878
+ colorKeys?: string[];
2879
+ /** 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.
2880
+ * Only continuous scales are supported.
2881
+ * Default: `undefined` */
2882
+ xScale?: ContinuousScale;
2883
+ /** 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.
2884
+ * Only continuous scales are supported.
2885
+ * Default: `undefined` */
2886
+ yScale?: ContinuousScale;
2887
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
2888
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
2889
+ * the scales of the chart.
2890
+ * Default: `false` */
2891
+ excludeFromDomainCalculation?: boolean;
2892
+ /** Defines how to position the label horizontally: in data space or in screen space. Default: `XYLabelPositioning.DataSpace` */
2893
+ xPositioning?: GenericAccessor<XYLabelPositioning | string, Datum>;
2894
+ /** Defines how to position the label vertically: in data space or in screen space. Default: `XYLabelPositioning.DataSpace` */
2895
+ yPositioning?: GenericAccessor<XYLabelPositioning | string, Datum>;
2896
+ /** 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` */
2897
+ labelFontSize?: NumericAccessor<Datum>;
2898
+ /** Label accessor function or string. Default: `undefined` */
2899
+ label?: StringAccessor<Datum>;
2900
+ /** Label color. Default: `undefined` */
2901
+ backgroundColor?: ColorAccessor<Datum>;
2902
+ /** Optional label cursor. Default: `null` */
2903
+ cursor?: StringAccessor<Datum>;
2904
+ /** Label color brightness ratio for switching between dark and light text label color. Default: `0.65` */
2905
+ labelTextBrightnessRatio?: number;
2906
+ /** Enable label clustering. Default: `true` */
2907
+ clustering?: boolean;
2908
+ /** Label accessor for clusters. Default: `undefined` */
2909
+ clusterLabel?: StringAccessor<XYLabel<Datum>[]>;
2910
+ /** 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` */
2911
+ clusterFontSize?: NumericAccessor<XYLabel<Datum>[]>;
2912
+ /** Background color accessor for clusters. Default: `undefined` */
2913
+ clusterBackgroundColor?: ColorAccessor<XYLabel<Datum>[]>;
2914
+ /** Optional cluster cursor. Default: `null` */
2915
+ clusterCursor?: StringAccessor<XYLabel<Datum>[]>;
2916
+ /** Cluster label color accessor function. Default: `null` */
2917
+ clusterLabelColor?: ColorAccessor<XYLabel<Datum>[]>;
2918
+ data: Datum[];
2919
+ component: XYLabels<Datum> | undefined;
2920
+ componentContainer: ContainerCore | undefined;
2921
+ ngAfterViewInit(): void;
2922
+ ngOnChanges(changes: SimpleChanges): void;
2923
+ private getConfig;
2924
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisXYLabelsComponent<any>, never>;
2925
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisXYLabelsComponent<any>, "vis-xy-labels", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorKeys": { "alias": "colorKeys"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "excludeFromDomainCalculation": { "alias": "excludeFromDomainCalculation"; "required": false; }; "xPositioning": { "alias": "xPositioning"; "required": false; }; "yPositioning": { "alias": "yPositioning"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "label": { "alias": "label"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "labelTextBrightnessRatio": { "alias": "labelTextBrightnessRatio"; "required": false; }; "clustering": { "alias": "clustering"; "required": false; }; "clusterLabel": { "alias": "clusterLabel"; "required": false; }; "clusterFontSize": { "alias": "clusterFontSize"; "required": false; }; "clusterBackgroundColor": { "alias": "clusterBackgroundColor"; "required": false; }; "clusterCursor": { "alias": "clusterCursor"; "required": false; }; "clusterLabelColor": { "alias": "clusterLabelColor"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
2926
+ }
2927
+
2928
+ declare class VisXYLabelsModule {
2929
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisXYLabelsModule, never>;
2930
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisXYLabelsModule, [typeof VisXYLabelsComponent], never, [typeof VisXYLabelsComponent]>;
2931
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisXYLabelsModule>;
2932
+ }
2933
+
2934
+ declare class VisTopoJSONMapComponent<AreaDatum, PointDatum, LinkDatum> implements TopoJSONMapConfigInterface<AreaDatum, PointDatum, LinkDatum>, AfterViewInit {
2935
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
2936
+ duration?: number;
2937
+ /** Events configuration. An object containing properties in the following format:
2938
+ *
2939
+ * ```
2940
+ * {
2941
+ * \[selectorString]: {
2942
+ * \[eventType]: callbackFunction
2943
+ * }
2944
+ * }
2945
+ * ```
2946
+ * e.g.:
2947
+ * ```
2948
+ * {
2949
+ * \[Area.selectors.area]: {
2950
+ * click: (d) => console.log("Clicked Area", d)
2951
+ * }
2952
+ * }
2953
+ * ``` */
2954
+ events?: {
2955
+ [selector: string]: {
2956
+ [eventType in VisEventType]?: VisEventCallback;
2957
+ };
2958
+ };
2959
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
2960
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
2961
+ *
2962
+ * ```
2963
+ * {
2964
+ * \[selectorString]: {
2965
+ * \[attributeName]: attribute constant value or accessor function
2966
+ * }
2967
+ * }
2968
+ * ```
2969
+ * e.g.:
2970
+ * ```
2971
+ * {
2972
+ * \[Area.selectors.area]: {
2973
+ * "test-value": d => d.value
2974
+ * }
2975
+ * }
2976
+ * ``` */
2977
+ attributes?: {
2978
+ [selector: string]: {
2979
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
2980
+ };
2981
+ };
2982
+ /** MapProjection (aka D3's GeoProjection) instance. Default: `MapProjection.Kavrayskiy7()` */
2983
+ projection?: GeoProjection;
2984
+ /** Map data in the TopoJSON topology format. Default: `undefined` */
2985
+ topojson?: TopoJSON.Topology;
2986
+ /** Name of the map features to be displayed, e.g. 'countries' or 'counties'. Default: `countries` */
2987
+ mapFeatureName?: string;
2988
+ /** Set initial map fit to points instead of topojson features. Default: `false` */
2989
+ mapFitToPoints?: boolean;
2990
+ /** Initial zoom level. Default: `undefined` */
2991
+ zoomFactor?: number;
2992
+ /** Zoom to a specific location. When set, the map will zoom to the specified coordinates at the given zoom level.
2993
+ * Format: `{ coordinates: [longitude, latitude], zoomLevel: number, expandCluster?: boolean }`
2994
+ * When `expandCluster` is true, the cluster at or nearest to the coordinates will be expanded.
2995
+ * Default: `undefined` */
2996
+ zoomToLocation?: {
2997
+ coordinates: [number, number];
2998
+ zoomLevel: number;
2999
+ expandCluster?: boolean;
3000
+ };
3001
+ /** Disable pan / zoom interactions. Default: `false` */
3002
+ disableZoom?: boolean;
3003
+ /** Zoom extent. Default: `[0.5, 6]` */
3004
+ zoomExtent?: number[];
3005
+ /** Zoom animation duration. Default: `400` */
3006
+ zoomDuration?: number;
3007
+ /** Link width value or accessor function. Default: `d => d.width ?? 1` */
3008
+ linkWidth?: NumericAccessor<LinkDatum>;
3009
+ /** Link color value or accessor function. Default: `d => d.color ?? null` */
3010
+ linkColor?: ColorAccessor<LinkDatum>;
3011
+ /** Link cursor value or accessor function. Default: `null` */
3012
+ linkCursor?: StringAccessor<LinkDatum>;
3013
+ /** Link id accessor function. Default: `d => d.id` */
3014
+ linkId?: StringAccessor<LinkDatum>;
3015
+ /** Link source accessor function. Default: `d => d.source` */
3016
+ linkSource?: ((l: LinkDatum) => number | string | PointDatum);
3017
+ /** Link target accessor function. Default: `d => d.target` */
3018
+ linkTarget?: ((l: LinkDatum) => number | string | PointDatum);
3019
+ /** Flow source point longitude accessor function or value. Default: `f => f.sourceLongitude` */
3020
+ sourceLongitude?: NumericAccessor<LinkDatum>;
3021
+ /** Flow source point latitude accessor function or value. Default: `f => f.sourceLatitude` */
3022
+ sourceLatitude?: NumericAccessor<LinkDatum>;
3023
+ /** Flow target point longitude accessor function or value. Default: `f => f.targetLongitude` */
3024
+ targetLongitude?: NumericAccessor<LinkDatum>;
3025
+ /** Flow target point latitude accessor function or value. Default: `f => f.targetLatitude` */
3026
+ targetLatitude?: NumericAccessor<LinkDatum>;
3027
+ /** Flow source point radius accessor function or value. Default: `3` */
3028
+ sourcePointRadius?: NumericAccessor<LinkDatum>;
3029
+ /** Source point color accessor function or value. Default: `'#88919f'` */
3030
+ sourcePointColor?: ColorAccessor<LinkDatum>;
3031
+ /** Flow particle color accessor function or value. Default: `'#949dad'` */
3032
+ flowParticleColor?: ColorAccessor<LinkDatum>;
3033
+ /** Flow particle radius accessor function or value. Default: `1.1` */
3034
+ flowParticleRadius?: NumericAccessor<LinkDatum>;
3035
+ /** Flow particle speed accessor function or value. The unit is arbitrary, recommended range is 0 – 0.2. Default: `0.07` */
3036
+ flowParticleSpeed?: NumericAccessor<LinkDatum>;
3037
+ /** Flow particle density accessor function or value on the range of [0, 1]. Default: `0.6` */
3038
+ flowParticleDensity?: NumericAccessor<LinkDatum>;
3039
+ /** Enable flow animations. When true, shows animated particles along links. Default: `false` */
3040
+ enableFlowAnimation?: boolean;
3041
+ /** Flow source point click callback function. Default: `undefined` */
3042
+ onSourcePointClick?: (f: LinkDatum, x: number, y: number, event: MouseEvent) => void;
3043
+ /** Flow source point mouse over callback function. Default: `undefined` */
3044
+ onSourcePointMouseEnter?: (f: LinkDatum, x: number, y: number, event: MouseEvent) => void;
3045
+ /** Flow source point mouse leave callback function. Default: `undefined` */
3046
+ onSourcePointMouseLeave?: (f: LinkDatum, event: MouseEvent) => void;
3047
+ /** Area id accessor function corresponding to the feature id from TopoJSON. Default: `d => d.id ?? ''` */
3048
+ areaId?: StringAccessor<AreaDatum>;
3049
+ /** Area color value or accessor function. Default: `d => d.color ?? null` */
3050
+ areaColor?: ColorAccessor<AreaDatum>;
3051
+ /** Area cursor value or accessor function. Default: `null` */
3052
+ areaCursor?: StringAccessor<AreaDatum>;
3053
+ /** Area label accessor function. Default: `undefined` */
3054
+ areaLabel?: StringAccessor<AreaDatum>;
3055
+ /** Point color accessor. Default: `d => d.color ?? null` */
3056
+ pointColor?: ColorAccessor<PointDatum>;
3057
+ /** Point radius accessor. Default: `d => d.radius ?? 8` */
3058
+ pointRadius?: NumericAccessor<PointDatum>;
3059
+ /** Point stroke width accessor. Default: `d => d.strokeWidth ?? null` */
3060
+ pointStrokeWidth?: NumericAccessor<PointDatum>;
3061
+ /** Point shape accessor. Default: `TopoJSONMapPointShape.Circle` */
3062
+ pointShape?: StringAccessor<PointDatum>;
3063
+ /** Point ring width for ring-shaped points. Default: `2` */
3064
+ pointRingWidth?: NumericAccessor<PointDatum>;
3065
+ /** Point cursor constant value or accessor function. Default: `null` */
3066
+ pointCursor?: StringAccessor<PointDatum>;
3067
+ /** Point longitude accessor function. Default: `d => d.longitude ?? null` */
3068
+ longitude?: NumericAccessor<PointDatum>;
3069
+ /** Point latitude accessor function. Default: `d => d.latitude ?? null` */
3070
+ latitude?: NumericAccessor<PointDatum>;
3071
+ /** Point inner label accessor function. Default: `undefined` */
3072
+ pointLabel?: StringAccessor<PointDatum>;
3073
+ /** Point inner label color accessor function or constant value.
3074
+ * By default, the label color will be set, depending on the point brightness, either to
3075
+ * `--vis-map-point-label-text-color-dark` or to `--vis-map-point-label-text-color-light` CSS variable.
3076
+ * Default: `undefined` */
3077
+ pointLabelColor?: ColorAccessor<PointDatum>;
3078
+ /** Point label position. Default: `MapPointLabelPosition.Center` */
3079
+ pointLabelPosition?: MapPointLabelPosition;
3080
+ /** Point bottom label accessor function. Default: `undefined` */
3081
+ pointBottomLabel?: StringAccessor<PointDatum>;
3082
+ /** Point color brightness ratio for switching between dark and light text label color. Default: `0.65` */
3083
+ pointLabelTextBrightnessRatio?: number;
3084
+ /** Point id accessor function. Default: `d => d.id` */
3085
+ pointId?: ((d: PointDatum, i: number) => string);
3086
+ /** Cluster color accessor function or constant value. Default: `undefined` */
3087
+ clusterColor?: ColorAccessor<TopoJSONMapClusterDatum<PointDatum>>;
3088
+ /** Cluster radius accessor function or constant value. Default: `undefined` */
3089
+ clusterRadius?: NumericAccessor<TopoJSONMapClusterDatum<PointDatum>>;
3090
+ /** Cluster inner label accessor function. Default: `d => d.pointCount` */
3091
+ clusterLabel?: StringAccessor<TopoJSONMapClusterDatum<PointDatum>>;
3092
+ /** Cluster inner label color accessor function or constant value. Default: `undefined` */
3093
+ clusterLabelColor?: StringAccessor<TopoJSONMapClusterDatum<PointDatum>>;
3094
+ /** Cluster bottom label accessor function. Default: `''` */
3095
+ clusterBottomLabel?: StringAccessor<TopoJSONMapClusterDatum<PointDatum>>;
3096
+ /** The width of the cluster point ring. Default: `2` */
3097
+ clusterRingWidth?: number;
3098
+ /** When cluster is expanded, show a background circle to better separate points from the base map. Default: `true` */
3099
+ clusterBackground?: boolean;
3100
+ /** Defines whether the cluster should expand on click or not. Default: `true` */
3101
+ clusterExpandOnClick?: boolean;
3102
+ /** Clustering distance in pixels. Default: `55` */
3103
+ clusteringDistance?: number;
3104
+ /** Enable point clustering. Default: `false` */
3105
+ clustering?: boolean;
3106
+ /** Enables blur and blending between neighbouring points. Default: `false` */
3107
+ heatmapMode?: boolean;
3108
+ /** Heatmap blur filter stdDeviation value. Default: `10` */
3109
+ heatmapModeBlurStdDeviation?: number;
3110
+ /** Zoom level at which the heatmap mode will be disabled. Default: `2.5` */
3111
+ heatmapModeZoomLevelThreshold?: number;
3112
+ /** A single map point can have multiple properties displayed as a small pie chart.
3113
+ * By setting the colorMap configuration you can specify data properties that should be mapped to various pie / donut segments.
3114
+ *
3115
+ * ```
3116
+ * {
3117
+ * [key in keyof PointDatum]?: { color: string, className?: string }
3118
+ * }
3119
+ * ```
3120
+ * e.g.:
3121
+ * ```
3122
+ * {
3123
+ * healthy: { color: 'green' },
3124
+ * warning: { color: 'orange' },
3125
+ * critical: { color: 'red' }
3126
+ * }
3127
+ * ```
3128
+ * where every data point has the `healthy`, `warning` and `critical` numerical or boolean property.
3129
+ * Note: Properties with 0 or falsy values will not be displayed in the pie chart.
3130
+ * Default: `{}` */
3131
+ colorMap?: TopoJSONMapPointStyles<PointDatum>;
3132
+ data: {
3133
+ areas?: AreaDatum[];
3134
+ points?: PointDatum[];
3135
+ links?: LinkDatum[];
3136
+ };
3137
+ component: TopoJSONMap<AreaDatum, PointDatum, LinkDatum> | undefined;
3138
+ componentContainer: ContainerCore | undefined;
3139
+ ngAfterViewInit(): void;
3140
+ ngOnChanges(changes: SimpleChanges): void;
3141
+ private getConfig;
3142
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisTopoJSONMapComponent<any, any, any>, never>;
3143
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisTopoJSONMapComponent<any, any, any>, "vis-topojson-map", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "projection": { "alias": "projection"; "required": false; }; "topojson": { "alias": "topojson"; "required": false; }; "mapFeatureName": { "alias": "mapFeatureName"; "required": false; }; "mapFitToPoints": { "alias": "mapFitToPoints"; "required": false; }; "zoomFactor": { "alias": "zoomFactor"; "required": false; }; "zoomToLocation": { "alias": "zoomToLocation"; "required": false; }; "disableZoom": { "alias": "disableZoom"; "required": false; }; "zoomExtent": { "alias": "zoomExtent"; "required": false; }; "zoomDuration": { "alias": "zoomDuration"; "required": false; }; "linkWidth": { "alias": "linkWidth"; "required": false; }; "linkColor": { "alias": "linkColor"; "required": false; }; "linkCursor": { "alias": "linkCursor"; "required": false; }; "linkId": { "alias": "linkId"; "required": false; }; "linkSource": { "alias": "linkSource"; "required": false; }; "linkTarget": { "alias": "linkTarget"; "required": false; }; "sourceLongitude": { "alias": "sourceLongitude"; "required": false; }; "sourceLatitude": { "alias": "sourceLatitude"; "required": false; }; "targetLongitude": { "alias": "targetLongitude"; "required": false; }; "targetLatitude": { "alias": "targetLatitude"; "required": false; }; "sourcePointRadius": { "alias": "sourcePointRadius"; "required": false; }; "sourcePointColor": { "alias": "sourcePointColor"; "required": false; }; "flowParticleColor": { "alias": "flowParticleColor"; "required": false; }; "flowParticleRadius": { "alias": "flowParticleRadius"; "required": false; }; "flowParticleSpeed": { "alias": "flowParticleSpeed"; "required": false; }; "flowParticleDensity": { "alias": "flowParticleDensity"; "required": false; }; "enableFlowAnimation": { "alias": "enableFlowAnimation"; "required": false; }; "onSourcePointClick": { "alias": "onSourcePointClick"; "required": false; }; "onSourcePointMouseEnter": { "alias": "onSourcePointMouseEnter"; "required": false; }; "onSourcePointMouseLeave": { "alias": "onSourcePointMouseLeave"; "required": false; }; "areaId": { "alias": "areaId"; "required": false; }; "areaColor": { "alias": "areaColor"; "required": false; }; "areaCursor": { "alias": "areaCursor"; "required": false; }; "areaLabel": { "alias": "areaLabel"; "required": false; }; "pointColor": { "alias": "pointColor"; "required": false; }; "pointRadius": { "alias": "pointRadius"; "required": false; }; "pointStrokeWidth": { "alias": "pointStrokeWidth"; "required": false; }; "pointShape": { "alias": "pointShape"; "required": false; }; "pointRingWidth": { "alias": "pointRingWidth"; "required": false; }; "pointCursor": { "alias": "pointCursor"; "required": false; }; "longitude": { "alias": "longitude"; "required": false; }; "latitude": { "alias": "latitude"; "required": false; }; "pointLabel": { "alias": "pointLabel"; "required": false; }; "pointLabelColor": { "alias": "pointLabelColor"; "required": false; }; "pointLabelPosition": { "alias": "pointLabelPosition"; "required": false; }; "pointBottomLabel": { "alias": "pointBottomLabel"; "required": false; }; "pointLabelTextBrightnessRatio": { "alias": "pointLabelTextBrightnessRatio"; "required": false; }; "pointId": { "alias": "pointId"; "required": false; }; "clusterColor": { "alias": "clusterColor"; "required": false; }; "clusterRadius": { "alias": "clusterRadius"; "required": false; }; "clusterLabel": { "alias": "clusterLabel"; "required": false; }; "clusterLabelColor": { "alias": "clusterLabelColor"; "required": false; }; "clusterBottomLabel": { "alias": "clusterBottomLabel"; "required": false; }; "clusterRingWidth": { "alias": "clusterRingWidth"; "required": false; }; "clusterBackground": { "alias": "clusterBackground"; "required": false; }; "clusterExpandOnClick": { "alias": "clusterExpandOnClick"; "required": false; }; "clusteringDistance": { "alias": "clusteringDistance"; "required": false; }; "clustering": { "alias": "clustering"; "required": false; }; "heatmapMode": { "alias": "heatmapMode"; "required": false; }; "heatmapModeBlurStdDeviation": { "alias": "heatmapModeBlurStdDeviation"; "required": false; }; "heatmapModeZoomLevelThreshold": { "alias": "heatmapModeZoomLevelThreshold"; "required": false; }; "colorMap": { "alias": "colorMap"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
3144
+ }
3145
+
3146
+ declare class VisTopoJSONMapModule {
3147
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisTopoJSONMapModule, never>;
3148
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisTopoJSONMapModule, [typeof VisTopoJSONMapComponent], never, [typeof VisTopoJSONMapComponent]>;
3149
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisTopoJSONMapModule>;
3150
+ }
3151
+
3152
+ declare class VisTreemapComponent<Datum> implements TreemapConfigInterface<Datum>, AfterViewInit {
3153
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
3154
+ duration?: number;
3155
+ /** Events configuration. An object containing properties in the following format:
3156
+ *
3157
+ * ```
3158
+ * {
3159
+ * \[selectorString]: {
3160
+ * \[eventType]: callbackFunction
3161
+ * }
3162
+ * }
3163
+ * ```
3164
+ * e.g.:
3165
+ * ```
3166
+ * {
3167
+ * \[Area.selectors.area]: {
3168
+ * click: (d) => console.log("Clicked Area", d)
3169
+ * }
3170
+ * }
3171
+ * ``` */
3172
+ events?: {
3173
+ [selector: string]: {
3174
+ [eventType in VisEventType]?: VisEventCallback;
3175
+ };
3176
+ };
3177
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
3178
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
3179
+ *
3180
+ * ```
3181
+ * {
3182
+ * \[selectorString]: {
3183
+ * \[attributeName]: attribute constant value or accessor function
3184
+ * }
3185
+ * }
3186
+ * ```
3187
+ * e.g.:
3188
+ * ```
3189
+ * {
3190
+ * \[Area.selectors.area]: {
3191
+ * "test-value": d => d.value
3192
+ * }
3193
+ * }
3194
+ * ``` */
3195
+ attributes?: {
3196
+ [selector: string]: {
3197
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
3198
+ };
3199
+ };
3200
+ id?: ((d: Datum, i: number) => string | number);
3201
+ value?: NumericAccessor<Datum>;
3202
+ /** Array of accessor functions to defined the nested groups. Default: `[]` */
3203
+ layers: StringAccessor<Datum>[];
3204
+ /** */
3205
+ numberFormat?: (value: number) => string;
3206
+ /** Function to generate the label text for each tile. Receives the `TreemapNode` and returns a `string`.
3207
+ * Default: shows key and formatted value (e.g., "label: value"). */
3208
+ tileLabel?: (node: TreemapNode<Datum>) => string;
3209
+ /** Color accessor function for tiles. Default: `undefined` */
3210
+ tileColor?: ColorAccessor<TreemapNode<Datum>>;
3211
+ /** D3 tile function (e.g. `treemapSquarify`, `treemapDice` from `d3-hierarchy`). Default: `undefined`. */
3212
+ tileFunction?: TreemapTileFunction<TreemapDatum<Datum>>;
3213
+ /** Comparator for sorting hierarchy nodes before layout. Receives two `HierarchyNode`s. Default: `undefined`. */
3214
+ tileSort?: ((a: TreemapNode<Datum>, b: TreemapNode<Datum>) => number) | null;
3215
+ /** Padding passed to D3 treemap layout. Default: `2` */
3216
+ tilePadding?: number;
3217
+ /** Top padding passed to D3 treemap layout.
3218
+ * Useful to make room for internal node labels.
3219
+ * Default: `undefined` */
3220
+ tilePaddingTop?: number;
3221
+ /** Append SVG `<title>` element to tile rects. It will be shown when hovering over the tile. Default: `false` */
3222
+ tileShowHtmlTooltip?: boolean;
3223
+ /** Label internal nodes. Default: `false` */
3224
+ labelInternalNodes?: boolean;
3225
+ /** Label offset in the X direction. Default: `4` */
3226
+ labelOffsetX?: number;
3227
+ /** Label offset in the Y direction. Default: `4` */
3228
+ labelOffsetY?: number;
3229
+ /** How labels should fit within tiles: wrap or trim. Applicable only for leaf nodes. Default: `FitMode.Wrap` */
3230
+ labelFit?: FitMode;
3231
+ /** Label trimming mode. Default: `TrimMode.Middle` */
3232
+ labelTrimMode?: TrimMode;
3233
+ /** Border radius of the tiles in pixels. Default: `2` */
3234
+ tileBorderRadius?: number;
3235
+ /** Minimum fraction of width for border radius. Default: `1/8` */
3236
+ tileBorderRadiusFactor?: number;
3237
+ /** Enable lightness variance for sibling tiles. Default: `false` */
3238
+ enableLightnessVariance?: boolean;
3239
+ /** Enable font size variation for leaf node labels based on value. Default: `false` */
3240
+ enableTileLabelFontSizeVariation?: boolean;
3241
+ /** Small font size for leaf labels (used when `enableTileLabelFontSizeVariation` is `true`). Default: `8` */
3242
+ tileLabelSmallFontSize?: number;
3243
+ /** Medium font size for leaf labels (used when `enableTileLabelFontSizeVariation` is `true`). Default: `12` */
3244
+ tileLabelMediumFontSize?: number;
3245
+ /** Large font size for leaf labels (used when `enableTileLabelFontSizeVariation` is `true`). Default: `24` */
3246
+ tileLabelLargeFontSize?: number;
3247
+ /** Flag for showing cursor:pointer to indicate leaf tiles are clickable. Default: `undefined` */
3248
+ showTileClickAffordance?: boolean;
3249
+ /** Amount of lightness variation applied to sibling tiles when `enableLightnessVariance` is `true`. Default: `0.08` */
3250
+ lightnessVariationAmount?: number;
3251
+ /** Minimum size for labels in pixels. Default: `20` */
3252
+ minTileSizeForLabel?: number;
3253
+ data: Datum[];
3254
+ component: Treemap<Datum> | undefined;
3255
+ componentContainer: ContainerCore | undefined;
3256
+ ngAfterViewInit(): void;
3257
+ ngOnChanges(changes: SimpleChanges): void;
3258
+ private getConfig;
3259
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisTreemapComponent<any>, never>;
3260
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisTreemapComponent<any>, "vis-treemap", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "layers": { "alias": "layers"; "required": false; }; "numberFormat": { "alias": "numberFormat"; "required": false; }; "tileLabel": { "alias": "tileLabel"; "required": false; }; "tileColor": { "alias": "tileColor"; "required": false; }; "tileFunction": { "alias": "tileFunction"; "required": false; }; "tileSort": { "alias": "tileSort"; "required": false; }; "tilePadding": { "alias": "tilePadding"; "required": false; }; "tilePaddingTop": { "alias": "tilePaddingTop"; "required": false; }; "tileShowHtmlTooltip": { "alias": "tileShowHtmlTooltip"; "required": false; }; "labelInternalNodes": { "alias": "labelInternalNodes"; "required": false; }; "labelOffsetX": { "alias": "labelOffsetX"; "required": false; }; "labelOffsetY": { "alias": "labelOffsetY"; "required": false; }; "labelFit": { "alias": "labelFit"; "required": false; }; "labelTrimMode": { "alias": "labelTrimMode"; "required": false; }; "tileBorderRadius": { "alias": "tileBorderRadius"; "required": false; }; "tileBorderRadiusFactor": { "alias": "tileBorderRadiusFactor"; "required": false; }; "enableLightnessVariance": { "alias": "enableLightnessVariance"; "required": false; }; "enableTileLabelFontSizeVariation": { "alias": "enableTileLabelFontSizeVariation"; "required": false; }; "tileLabelSmallFontSize": { "alias": "tileLabelSmallFontSize"; "required": false; }; "tileLabelMediumFontSize": { "alias": "tileLabelMediumFontSize"; "required": false; }; "tileLabelLargeFontSize": { "alias": "tileLabelLargeFontSize"; "required": false; }; "showTileClickAffordance": { "alias": "showTileClickAffordance"; "required": false; }; "lightnessVariationAmount": { "alias": "lightnessVariationAmount"; "required": false; }; "minTileSizeForLabel": { "alias": "minTileSizeForLabel"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
3261
+ }
3262
+
3263
+ declare class VisTreemapModule {
3264
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisTreemapModule, never>;
3265
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisTreemapModule, [typeof VisTreemapComponent], never, [typeof VisTreemapComponent]>;
3266
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisTreemapModule>;
3267
+ }
3268
+
3269
+ declare class VisPlotbandComponent<Datum> implements PlotbandConfigInterface<Datum>, AfterViewInit {
3270
+ /** Duration of the animation in milliseconds. */
3271
+ duration?: number;
3272
+ /** Events configuration. An object containing properties in the following format:
3273
+ *
3274
+ * ```
3275
+ * {
3276
+ * \[selectorString]: {
3277
+ * \[eventType]: callbackFunction
3278
+ * }
3279
+ * }
3280
+ * ```
3281
+ * e.g.:
3282
+ * ```
3283
+ * {
3284
+ * \[Area.selectors.area]: {
3285
+ * click: (d) => console.log("Clicked Area", d)
3286
+ * }
3287
+ * }
3288
+ * ``` */
3289
+ events?: {
3290
+ [selector: string]: {
3291
+ [eventType in VisEventType]?: VisEventCallback;
3292
+ };
3293
+ };
3294
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
3295
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
3296
+ *
3297
+ * ```
3298
+ * {
3299
+ * \[selectorString]: {
3300
+ * \[attributeName]: attribute constant value or accessor function
3301
+ * }
3302
+ * }
3303
+ * ```
3304
+ * e.g.:
3305
+ * ```
3306
+ * {
3307
+ * \[Area.selectors.area]: {
3308
+ * "test-value": d => d.value
3309
+ * }
3310
+ * }
3311
+ * ``` */
3312
+ attributes?: {
3313
+ [selector: string]: {
3314
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
3315
+ };
3316
+ };
3317
+ /** Axis to draw the plotband on. */
3318
+ axis?: AxisType;
3319
+ /** Start coordinate for the plotband. */
3320
+ from?: number | null | undefined;
3321
+ /** End coordinate for the plotband. */
3322
+ to?: number | null | undefined;
3323
+ /** Optional text to display on the plotband */
3324
+ labelText?: string;
3325
+ /** Position of the label relative to the plotband area (e.g., 'top-left-outside').
3326
+ * Can be customized with a string. */
3327
+ labelPosition?: PlotbandLabelPosition;
3328
+ /** Horizontal offset (in pixels) for positioning the label. */
3329
+ labelOffsetX?: number;
3330
+ /** Vertical offset (in pixels) for positioning the label. */
3331
+ labelOffsetY?: number;
3332
+ /** Orientation of the label text. */
3333
+ labelOrientation?: PlotbandLabelOrientation;
3334
+ /** Optional color for the label text */
3335
+ labelColor?: string;
3336
+ /** Font size (in pixels) for the label text.
3337
+ * Uses the CSS variable `--vis-plotband-label-font-size` by default, which resolves to `12px`. */
3338
+ labelSize?: number;
3339
+ component: Plotband<Datum> | undefined;
3340
+ componentContainer: ContainerCore | undefined;
3341
+ ngAfterViewInit(): void;
3342
+ ngOnChanges(changes: SimpleChanges): void;
3343
+ private getConfig;
3344
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisPlotbandComponent<any>, never>;
3345
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisPlotbandComponent<any>, "vis-plotband", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "axis": { "alias": "axis"; "required": false; }; "from": { "alias": "from"; "required": false; }; "to": { "alias": "to"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "labelOffsetX": { "alias": "labelOffsetX"; "required": false; }; "labelOffsetY": { "alias": "labelOffsetY"; "required": false; }; "labelOrientation": { "alias": "labelOrientation"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; }, {}, never, never, false, never>;
3346
+ }
3347
+
3348
+ declare class VisPlotbandModule {
3349
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisPlotbandModule, never>;
3350
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisPlotbandModule, [typeof VisPlotbandComponent], never, [typeof VisPlotbandComponent]>;
3351
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisPlotbandModule>;
3352
+ }
3353
+
3354
+ declare class VisLeafletMapComponent<Datum extends GenericDataRecord> implements LeafletMapConfigInterface<Datum>, AfterViewInit {
3355
+ containerRef: ElementRef;
3356
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
3357
+ duration?: number;
3358
+ /** Events configuration. An object containing properties in the following format:
3359
+ *
3360
+ * ```
3361
+ * {
3362
+ * \[selectorString]: {
3363
+ * \[eventType]: callbackFunction
3364
+ * }
3365
+ * }
3366
+ * ```
3367
+ * e.g.:
3368
+ * ```
3369
+ * {
3370
+ * \[Area.selectors.area]: {
3371
+ * click: (d) => console.log("Clicked Area", d)
3372
+ * }
3373
+ * }
3374
+ * ``` */
3375
+ events?: {
3376
+ [selector: string]: {
3377
+ [eventType in VisEventType]?: VisEventCallback;
3378
+ };
3379
+ };
3380
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
3381
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
3382
+ *
3383
+ * ```
3384
+ * {
3385
+ * \[selectorString]: {
3386
+ * \[attributeName]: attribute constant value or accessor function
3387
+ * }
3388
+ * }
3389
+ * ```
3390
+ * e.g.:
3391
+ * ```
3392
+ * {
3393
+ * \[Area.selectors.area]: {
3394
+ * "test-value": d => d.value
3395
+ * }
3396
+ * }
3397
+ * ``` */
3398
+ attributes?: {
3399
+ [selector: string]: {
3400
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
3401
+ };
3402
+ };
3403
+ /** Width in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
3404
+ width?: number | string;
3405
+ /** Height in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
3406
+ height?: number | string;
3407
+ /** Animation duration when the map is automatically panning or zooming to a point or area. Default: `1500` ms */
3408
+ flyToDuration?: number;
3409
+ /** Padding to be used when the `fitView` function has been called. The value is in pixels, [topLeft, bottomRight]. Default: `[150, 150]` */
3410
+ fitViewPadding?: [number, number];
3411
+ /** Animation duration for the `setZoom` function. Default: `800` ms */
3412
+ zoomDuration?: number;
3413
+ /** Default bounds that will be applied on the first map render if the bounds property is not set. Default: `undefined` */
3414
+ initialBounds?: Bounds;
3415
+ /** Force set map bounds on config and data updates. Default: `undefined` */
3416
+ fitBoundsOnUpdate?: Bounds;
3417
+ /** Fit the view to contain the data points on map initialization. Default: `true` */
3418
+ fitViewOnInit?: boolean;
3419
+ /** Fit the view to contain the data points on map config and data updates. Default: `false` */
3420
+ fitViewOnUpdate?: boolean;
3421
+ /** MapLibre `StyleSpecification` settings, or a URL to it. When renderer is set to`LeafletMapRenderer.Raster`, provide a template URL. Default: `undefined` */
3422
+ style: MapLibreStyleSpecs | string | undefined;
3423
+ /** MapLibre `StyleSpecification` settings or URL for dark theme. Default: `undefined` */
3424
+ styleDarkTheme?: MapLibreStyleSpecs | string | undefined;
3425
+ /** Tile server access token or API key. Default: `''` */
3426
+ accessToken?: string;
3427
+ /** Array of attribution labels. Default: `['<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap contributors</a>']` */
3428
+ attribution?: string[];
3429
+ /** Rendering mode for map's tile layer. For raster files, use `LeafletMapRenderer.Raster`. Default: `LeafletMapRenderer.MapLibre` */
3430
+ renderer?: LeafletMapRenderer | string;
3431
+ /** Function to be called after the map's async initialization is done. Default: `undefined` */
3432
+ onMapInitialized?: (() => void);
3433
+ /** Map Move / Zoom unified callback function. Default: `undefined` */
3434
+ onMapMoveZoom?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3435
+ /** Map Move Start callback function. Default: `undefined` */
3436
+ onMapMoveStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3437
+ /** Map Move End callback function. Default: `undefined` */
3438
+ onMapMoveEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3439
+ /** Map Zoom Start callback function. Default: `undefined` */
3440
+ onMapZoomStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3441
+ /** Map Zoom End callback function. Default: `undefined` */
3442
+ onMapZoomEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3443
+ /** Map Zoom Click callback function. Default: `undefined` */
3444
+ onMapClick?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3445
+ /** Point longitude accessor function. Default: `d => d.longitude` */
3446
+ pointLongitude?: NumericAccessor<Datum>;
3447
+ /** Point latitude accessor function. Default: `d => d.latitude` */
3448
+ pointLatitude?: NumericAccessor<Datum>;
3449
+ /** Point id accessor function or constant value. Default: `d => d.id` */
3450
+ pointId?: StringAccessor<Datum>;
3451
+ /** Point shape accessor function or constant value. Default: `d => d.shape` */
3452
+ pointShape?: GenericAccessor<LeafletMapPointShape | string, Datum>;
3453
+ /** Point color accessor function or constant value. Default: `d => d.color` */
3454
+ pointColor?: ColorAccessor<LeafletMapPointDatum<Datum>>;
3455
+ /** Point radius accessor function or constant value. Default: `undefined` */
3456
+ pointRadius?: NumericAccessor<LeafletMapPointDatum<Datum>>;
3457
+ /** Point inner label accessor function. Default: `undefined` */
3458
+ pointLabel?: StringAccessor<LeafletMapPointDatum<Datum>>;
3459
+ /** Point inner label color accessor function or constant value.
3460
+ * By default, the label color will be set, depending on the point brightness, either to
3461
+ * `--vis-map-point-inner-label-text-color-light` or to `--vis-map-point-inner-label-text-color-dark` CSS variable.
3462
+ * Default: `undefined` */
3463
+ pointLabelColor?: StringAccessor<LeafletMapPointDatum<Datum>>;
3464
+ /** Point bottom label accessor function. Default: `''` */
3465
+ pointBottomLabel?: StringAccessor<LeafletMapPointDatum<Datum>>;
3466
+ /** Point cursor value or accessor function. Default: `null` */
3467
+ pointCursor?: StringAccessor<LeafletMapPointDatum<Datum>>;
3468
+ /** The width of the ring when a point has a `LeafletMapPointShape.Ring` shape. Default: `1.25` */
3469
+ pointRingWidth?: number;
3470
+ /** Set selected point by its unique id. Default: `undefined` */
3471
+ selectedPointId?: string;
3472
+ /** Cluster color accessor function or constant value. Default: `undefined` */
3473
+ clusterColor?: ColorAccessor<LeafletMapClusterDatum<Datum>>;
3474
+ /** Cluster radius accessor function or constant value. Default: `undefined` */
3475
+ clusterRadius?: NumericAccessor<LeafletMapClusterDatum<Datum>>;
3476
+ /** Cluster inner label accessor function. Default: `d => d.point_count` */
3477
+ clusterLabel?: StringAccessor<LeafletMapClusterDatum<Datum>>;
3478
+ /** Cluster inner label color accessor function or constant value.
3479
+ * By default, the label color will be set, depending on the point brightness, either to
3480
+ * `--vis-map-cluster-inner-label-text-color-light` or to `--vis-map-cluster-inner-label-text-color-dark` CSS variable.
3481
+ * Default: `undefined` */
3482
+ clusterLabelColor?: StringAccessor<LeafletMapClusterDatum<Datum>>;
3483
+ /** Cluster bottom label accessor function. Default: `''` */
3484
+ clusterBottomLabel?: StringAccessor<LeafletMapClusterDatum<Datum>>;
3485
+ /** The width of the cluster point ring. Default: `1.25` */
3486
+ clusterRingWidth?: number;
3487
+ /** When cluster is expanded, show a background circle to better separate points from the base map. Default: `true` */
3488
+ clusterBackground?: boolean;
3489
+ /** Defines whether the cluster should expand on click or not. Default: `true` */
3490
+ clusterExpandOnClick?: boolean;
3491
+ /** Clustering distance in pixels. This value will be passed to Supercluster as the `radius` property https://github.com/mapbox/supercluster. Default: `55` */
3492
+ clusteringDistance?: number;
3493
+ /** A single map point can have multiple properties displayed as a small pie chart (or a donut chart for a cluster of points).
3494
+ * By setting the colorMap configuration you can specify data properties that should be mapped to various pie / donut segments.
3495
+ *
3496
+ * ```
3497
+ * {
3498
+ * \[key in keyof Datum]?: { color: string, className?: string }
3499
+ * }
3500
+ * ```
3501
+ * e.g.:
3502
+ * ```
3503
+ * {
3504
+ * \healthy: { color: 'green' },
3505
+ * \warning: { color: 'orange' },
3506
+ * \danger: { color: 'red' }
3507
+ * }
3508
+ * ```
3509
+ * where every data point has the `healthy`, `warning` and `danger` numerical or boolean property. */
3510
+ colorMap?: LeafletMapPointStyles<Datum>;
3511
+ /** A TopoJSON Geometry layer to be displayed on top of the map. Supports fill and stroke */
3512
+ topoJSONLayer?: {
3513
+ sources: any;
3514
+ featureName?: string;
3515
+ fillProperty?: string;
3516
+ strokeProperty?: string;
3517
+ fillOpacity?: number;
3518
+ strokeOpacity?: number;
3519
+ strokeWidth?: number;
3520
+ };
3521
+ /** Tooltip component. Default: `undefined` */
3522
+ tooltip?: Tooltip;
3523
+ /** Alternative text description of the chart for accessibility purposes. It will be applied as an
3524
+ * `aria-label` attribute to the div element containing your chart. Default: `undefined`. */
3525
+ ariaLabel?: string | null | undefined;
3526
+ data: Datum[];
3527
+ component: LeafletMap<Datum> | undefined;
3528
+ ngAfterViewInit(): void;
3529
+ ngOnChanges(changes: SimpleChanges): void;
3530
+ private getConfig;
3531
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisLeafletMapComponent<any>, never>;
3532
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisLeafletMapComponent<any>, "vis-leaflet-map", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "flyToDuration": { "alias": "flyToDuration"; "required": false; }; "fitViewPadding": { "alias": "fitViewPadding"; "required": false; }; "zoomDuration": { "alias": "zoomDuration"; "required": false; }; "initialBounds": { "alias": "initialBounds"; "required": false; }; "fitBoundsOnUpdate": { "alias": "fitBoundsOnUpdate"; "required": false; }; "fitViewOnInit": { "alias": "fitViewOnInit"; "required": false; }; "fitViewOnUpdate": { "alias": "fitViewOnUpdate"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleDarkTheme": { "alias": "styleDarkTheme"; "required": false; }; "accessToken": { "alias": "accessToken"; "required": false; }; "attribution": { "alias": "attribution"; "required": false; }; "renderer": { "alias": "renderer"; "required": false; }; "onMapInitialized": { "alias": "onMapInitialized"; "required": false; }; "onMapMoveZoom": { "alias": "onMapMoveZoom"; "required": false; }; "onMapMoveStart": { "alias": "onMapMoveStart"; "required": false; }; "onMapMoveEnd": { "alias": "onMapMoveEnd"; "required": false; }; "onMapZoomStart": { "alias": "onMapZoomStart"; "required": false; }; "onMapZoomEnd": { "alias": "onMapZoomEnd"; "required": false; }; "onMapClick": { "alias": "onMapClick"; "required": false; }; "pointLongitude": { "alias": "pointLongitude"; "required": false; }; "pointLatitude": { "alias": "pointLatitude"; "required": false; }; "pointId": { "alias": "pointId"; "required": false; }; "pointShape": { "alias": "pointShape"; "required": false; }; "pointColor": { "alias": "pointColor"; "required": false; }; "pointRadius": { "alias": "pointRadius"; "required": false; }; "pointLabel": { "alias": "pointLabel"; "required": false; }; "pointLabelColor": { "alias": "pointLabelColor"; "required": false; }; "pointBottomLabel": { "alias": "pointBottomLabel"; "required": false; }; "pointCursor": { "alias": "pointCursor"; "required": false; }; "pointRingWidth": { "alias": "pointRingWidth"; "required": false; }; "selectedPointId": { "alias": "selectedPointId"; "required": false; }; "clusterColor": { "alias": "clusterColor"; "required": false; }; "clusterRadius": { "alias": "clusterRadius"; "required": false; }; "clusterLabel": { "alias": "clusterLabel"; "required": false; }; "clusterLabelColor": { "alias": "clusterLabelColor"; "required": false; }; "clusterBottomLabel": { "alias": "clusterBottomLabel"; "required": false; }; "clusterRingWidth": { "alias": "clusterRingWidth"; "required": false; }; "clusterBackground": { "alias": "clusterBackground"; "required": false; }; "clusterExpandOnClick": { "alias": "clusterExpandOnClick"; "required": false; }; "clusteringDistance": { "alias": "clusteringDistance"; "required": false; }; "colorMap": { "alias": "colorMap"; "required": false; }; "topoJSONLayer": { "alias": "topoJSONLayer"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
3533
+ }
3534
+
3535
+ declare class VisLeafletMapModule {
3536
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisLeafletMapModule, never>;
3537
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisLeafletMapModule, [typeof VisLeafletMapComponent], never, [typeof VisLeafletMapComponent]>;
3538
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisLeafletMapModule>;
3539
+ }
3540
+
3541
+ declare class VisLeafletFlowMapComponent<PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord> implements LeafletFlowMapConfigInterface<PointDatum, FlowDatum>, AfterViewInit {
3542
+ containerRef: ElementRef;
3543
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
3544
+ duration?: number;
3545
+ /** Events configuration. An object containing properties in the following format:
3546
+ *
3547
+ * ```
3548
+ * {
3549
+ * \[selectorString]: {
3550
+ * \[eventType]: callbackFunction
3551
+ * }
3552
+ * }
3553
+ * ```
3554
+ * e.g.:
3555
+ * ```
3556
+ * {
3557
+ * \[Area.selectors.area]: {
3558
+ * click: (d) => console.log("Clicked Area", d)
3559
+ * }
3560
+ * }
3561
+ * ``` */
3562
+ events?: {
3563
+ [selector: string]: {
3564
+ [eventType in VisEventType]?: VisEventCallback;
3565
+ };
3566
+ };
3567
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
3568
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
3569
+ *
3570
+ * ```
3571
+ * {
3572
+ * \[selectorString]: {
3573
+ * \[attributeName]: attribute constant value or accessor function
3574
+ * }
3575
+ * }
3576
+ * ```
3577
+ * e.g.:
3578
+ * ```
3579
+ * {
3580
+ * \[Area.selectors.area]: {
3581
+ * "test-value": d => d.value
3582
+ * }
3583
+ * }
3584
+ * ``` */
3585
+ attributes?: {
3586
+ [selector: string]: {
3587
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
3588
+ };
3589
+ };
3590
+ /** Width in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
3591
+ width?: number | string;
3592
+ /** Height in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
3593
+ height?: number | string;
3594
+ /** Animation duration when the map is automatically panning or zooming to a point or area. Default: `1500` ms */
3595
+ flyToDuration?: number;
3596
+ /** Padding to be used when the `fitView` function has been called. The value is in pixels, [topLeft, bottomRight]. Default: `[150, 150]` */
3597
+ fitViewPadding?: [number, number];
3598
+ /** Animation duration for the `setZoom` function. Default: `800` ms */
3599
+ zoomDuration?: number;
3600
+ /** Default bounds that will be applied on the first map render if the bounds property is not set. Default: `undefined` */
3601
+ initialBounds?: Bounds;
3602
+ /** Force set map bounds on config and data updates. Default: `undefined` */
3603
+ fitBoundsOnUpdate?: Bounds;
3604
+ /** Fit the view to contain the data points on map initialization. Default: `true` */
3605
+ fitViewOnInit?: boolean;
3606
+ /** Fit the view to contain the data points on map config and data updates. Default: `false` */
3607
+ fitViewOnUpdate?: boolean;
3608
+ /** MapLibre `StyleSpecification` settings, or a URL to it. When renderer is set to`LeafletMapRenderer.Raster`, provide a template URL. Default: `undefined` */
3609
+ style: MapLibreStyleSpecs | string | undefined;
3610
+ /** MapLibre `StyleSpecification` settings or URL for dark theme. Default: `undefined` */
3611
+ styleDarkTheme?: MapLibreStyleSpecs | string | undefined;
3612
+ /** Tile server access token or API key. Default: `''` */
3613
+ accessToken?: string;
3614
+ /** Array of attribution labels. Default: `['<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap contributors</a>']` */
3615
+ attribution?: string[];
3616
+ /** Rendering mode for map's tile layer. For raster files, use `LeafletMapRenderer.Raster`. Default: `LeafletMapRenderer.MapLibre` */
3617
+ renderer?: LeafletMapRenderer | string;
3618
+ /** Function to be called after the map's async initialization is done. Default: `undefined` */
3619
+ onMapInitialized?: (() => void);
3620
+ /** Map Move / Zoom unified callback function. Default: `undefined` */
3621
+ onMapMoveZoom?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3622
+ /** Map Move Start callback function. Default: `undefined` */
3623
+ onMapMoveStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3624
+ /** Map Move End callback function. Default: `undefined` */
3625
+ onMapMoveEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3626
+ /** Map Zoom Start callback function. Default: `undefined` */
3627
+ onMapZoomStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3628
+ /** Map Zoom End callback function. Default: `undefined` */
3629
+ onMapZoomEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3630
+ /** Map Zoom Click callback function. Default: `undefined` */
3631
+ onMapClick?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
3632
+ /** Point longitude accessor function. Default: `d => d.longitude` */
3633
+ pointLongitude?: NumericAccessor<PointDatum>;
3634
+ /** Point latitude accessor function. Default: `d => d.latitude` */
3635
+ pointLatitude?: NumericAccessor<PointDatum>;
3636
+ /** Point id accessor function or constant value. Default: `d => d.id` */
3637
+ pointId?: StringAccessor<PointDatum>;
3638
+ /** Point shape accessor function or constant value. Default: `d => d.shape` */
3639
+ pointShape?: GenericAccessor<LeafletMapPointShape | string, PointDatum>;
3640
+ /** Point color accessor function or constant value. Default: `d => d.color` */
3641
+ pointColor?: ColorAccessor<LeafletMapPointDatum<PointDatum>>;
3642
+ /** Point radius accessor function or constant value. Default: `undefined` */
3643
+ pointRadius?: NumericAccessor<LeafletMapPointDatum<PointDatum>>;
3644
+ /** Point inner label accessor function. Default: `undefined` */
3645
+ pointLabel?: StringAccessor<LeafletMapPointDatum<PointDatum>>;
3646
+ /** Point inner label color accessor function or constant value.
3647
+ * By default, the label color will be set, depending on the point brightness, either to
3648
+ * `--vis-map-point-inner-label-text-color-light` or to `--vis-map-point-inner-label-text-color-dark` CSS variable.
3649
+ * Default: `undefined` */
3650
+ pointLabelColor?: StringAccessor<LeafletMapPointDatum<PointDatum>>;
3651
+ /** Point bottom label accessor function. Default: `''` */
3652
+ pointBottomLabel?: StringAccessor<LeafletMapPointDatum<PointDatum>>;
3653
+ /** Point cursor value or accessor function. Default: `null` */
3654
+ pointCursor?: StringAccessor<LeafletMapPointDatum<PointDatum>>;
3655
+ /** The width of the ring when a point has a `LeafletMapPointShape.Ring` shape. Default: `1.25` */
3656
+ pointRingWidth?: number;
3657
+ /** Set selected point by its unique id. Default: `undefined` */
3658
+ selectedPointId?: string;
3659
+ /** Cluster color accessor function or constant value. Default: `undefined` */
3660
+ clusterColor?: ColorAccessor<LeafletMapClusterDatum<PointDatum>>;
3661
+ /** Cluster radius accessor function or constant value. Default: `undefined` */
3662
+ clusterRadius?: NumericAccessor<LeafletMapClusterDatum<PointDatum>>;
3663
+ /** Cluster inner label accessor function. Default: `d => d.point_count` */
3664
+ clusterLabel?: StringAccessor<LeafletMapClusterDatum<PointDatum>>;
3665
+ /** Cluster inner label color accessor function or constant value.
3666
+ * By default, the label color will be set, depending on the point brightness, either to
3667
+ * `--vis-map-cluster-inner-label-text-color-light` or to `--vis-map-cluster-inner-label-text-color-dark` CSS variable.
3668
+ * Default: `undefined` */
3669
+ clusterLabelColor?: StringAccessor<LeafletMapClusterDatum<PointDatum>>;
3670
+ /** Cluster bottom label accessor function. Default: `''` */
3671
+ clusterBottomLabel?: StringAccessor<LeafletMapClusterDatum<PointDatum>>;
3672
+ /** The width of the cluster point ring. Default: `1.25` */
3673
+ clusterRingWidth?: number;
3674
+ /** When cluster is expanded, show a background circle to better separate points from the base map. Default: `true` */
3675
+ clusterBackground?: boolean;
3676
+ /** Defines whether the cluster should expand on click or not. Default: `true` */
3677
+ clusterExpandOnClick?: boolean;
3678
+ /** Clustering distance in pixels. This value will be passed to Supercluster as the `radius` property https://github.com/mapbox/supercluster. Default: `55` */
3679
+ clusteringDistance?: number;
3680
+ /** A single map point can have multiple properties displayed as a small pie chart (or a donut chart for a cluster of points).
3681
+ * By setting the colorMap configuration you can specify data properties that should be mapped to various pie / donut segments.
3682
+ *
3683
+ * ```
3684
+ * {
3685
+ * \[key in keyof Datum]?: { color: string, className?: string }
3686
+ * }
3687
+ * ```
3688
+ * e.g.:
3689
+ * ```
3690
+ * {
3691
+ * \healthy: { color: 'green' },
3692
+ * \warning: { color: 'orange' },
3693
+ * \danger: { color: 'red' }
3694
+ * }
3695
+ * ```
3696
+ * where every data point has the `healthy`, `warning` and `danger` numerical or boolean property. */
3697
+ colorMap?: LeafletMapPointStyles<PointDatum>;
3698
+ /** A TopoJSON Geometry layer to be displayed on top of the map. Supports fill and stroke */
3699
+ topoJSONLayer?: {
3700
+ sources: any;
3701
+ featureName?: string;
3702
+ fillProperty?: string;
3703
+ strokeProperty?: string;
3704
+ fillOpacity?: number;
3705
+ strokeOpacity?: number;
3706
+ strokeWidth?: number;
3707
+ };
3708
+ /** Tooltip component. Default: `undefined` */
3709
+ tooltip?: Tooltip;
3710
+ /** Alternative text description of the chart for accessibility purposes. It will be applied as an
3711
+ * `aria-label` attribute to the div element containing your chart. Default: `undefined`. */
3712
+ ariaLabel?: string | null | undefined;
3713
+ /** Flow source point longitude accessor function or value. Default:.`f => f.sourceLongitude` */
3714
+ sourceLongitude?: NumericAccessor<FlowDatum>;
3715
+ /** Flow source point latitude accessor function or value. Default: `f => f.sourceLatitude` */
3716
+ sourceLatitude?: NumericAccessor<FlowDatum>;
3717
+ /** Flow target point longitude accessor function or value. Default: `f => f.targetLongitude` */
3718
+ targetLongitude?: NumericAccessor<FlowDatum>;
3719
+ /** Flow target point latitude accessor function or value. Default: `f => f.targetLatitude` */
3720
+ targetLatitude?: NumericAccessor<FlowDatum>;
3721
+ /** Flow source point radius accessor function or value. Default: `3` */
3722
+ sourcePointRadius?: NumericAccessor<FlowDatum>;
3723
+ /** Source point color accessor function or value. Default: `'#88919f'` */
3724
+ sourcePointColor?: ColorAccessor<FlowDatum>;
3725
+ /** Flow particle color accessor function or value. Default: `'#949dad'` */
3726
+ flowParticleColor?: ColorAccessor<FlowDatum>;
3727
+ /** Flow particle radius accessor function or value. Default: `1.1` */
3728
+ flowParticleRadius?: NumericAccessor<FlowDatum>;
3729
+ /** Flow particle speed accessor function or value. The unit is arbitrary, recommended range is 0 – 0.2. Default: `0.07` */
3730
+ flowParticleSpeed?: NumericAccessor<FlowDatum>;
3731
+ /** Flow particle density accessor function or value on the range of [0, 1]. Default: `0.6` */
3732
+ flowParticleDensity?: NumericAccessor<FlowDatum>;
3733
+ /** Flow source point click callback function. Default: `undefined` */
3734
+ onSourcePointClick?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
3735
+ /** Flow source point mouse over callback function. Default: `undefined` */
3736
+ onSourcePointMouseEnter?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
3737
+ /** Flow source point mouse leave callback function. Default: `undefined` */
3738
+ onSourcePointMouseLeave?: (f: FlowDatum, event: MouseEvent) => void;
3739
+ data: {
3740
+ points: PointDatum[];
3741
+ flows?: FlowDatum[];
3742
+ };
3743
+ component: LeafletFlowMap<PointDatum, FlowDatum> | undefined;
3744
+ ngAfterViewInit(): void;
3745
+ ngOnChanges(changes: SimpleChanges): void;
3746
+ private getConfig;
3747
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisLeafletFlowMapComponent<any, any>, never>;
3748
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisLeafletFlowMapComponent<any, any>, "vis-leaflet-flow-map", never, { "duration": { "alias": "duration"; "required": false; }; "events": { "alias": "events"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "flyToDuration": { "alias": "flyToDuration"; "required": false; }; "fitViewPadding": { "alias": "fitViewPadding"; "required": false; }; "zoomDuration": { "alias": "zoomDuration"; "required": false; }; "initialBounds": { "alias": "initialBounds"; "required": false; }; "fitBoundsOnUpdate": { "alias": "fitBoundsOnUpdate"; "required": false; }; "fitViewOnInit": { "alias": "fitViewOnInit"; "required": false; }; "fitViewOnUpdate": { "alias": "fitViewOnUpdate"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleDarkTheme": { "alias": "styleDarkTheme"; "required": false; }; "accessToken": { "alias": "accessToken"; "required": false; }; "attribution": { "alias": "attribution"; "required": false; }; "renderer": { "alias": "renderer"; "required": false; }; "onMapInitialized": { "alias": "onMapInitialized"; "required": false; }; "onMapMoveZoom": { "alias": "onMapMoveZoom"; "required": false; }; "onMapMoveStart": { "alias": "onMapMoveStart"; "required": false; }; "onMapMoveEnd": { "alias": "onMapMoveEnd"; "required": false; }; "onMapZoomStart": { "alias": "onMapZoomStart"; "required": false; }; "onMapZoomEnd": { "alias": "onMapZoomEnd"; "required": false; }; "onMapClick": { "alias": "onMapClick"; "required": false; }; "pointLongitude": { "alias": "pointLongitude"; "required": false; }; "pointLatitude": { "alias": "pointLatitude"; "required": false; }; "pointId": { "alias": "pointId"; "required": false; }; "pointShape": { "alias": "pointShape"; "required": false; }; "pointColor": { "alias": "pointColor"; "required": false; }; "pointRadius": { "alias": "pointRadius"; "required": false; }; "pointLabel": { "alias": "pointLabel"; "required": false; }; "pointLabelColor": { "alias": "pointLabelColor"; "required": false; }; "pointBottomLabel": { "alias": "pointBottomLabel"; "required": false; }; "pointCursor": { "alias": "pointCursor"; "required": false; }; "pointRingWidth": { "alias": "pointRingWidth"; "required": false; }; "selectedPointId": { "alias": "selectedPointId"; "required": false; }; "clusterColor": { "alias": "clusterColor"; "required": false; }; "clusterRadius": { "alias": "clusterRadius"; "required": false; }; "clusterLabel": { "alias": "clusterLabel"; "required": false; }; "clusterLabelColor": { "alias": "clusterLabelColor"; "required": false; }; "clusterBottomLabel": { "alias": "clusterBottomLabel"; "required": false; }; "clusterRingWidth": { "alias": "clusterRingWidth"; "required": false; }; "clusterBackground": { "alias": "clusterBackground"; "required": false; }; "clusterExpandOnClick": { "alias": "clusterExpandOnClick"; "required": false; }; "clusteringDistance": { "alias": "clusteringDistance"; "required": false; }; "colorMap": { "alias": "colorMap"; "required": false; }; "topoJSONLayer": { "alias": "topoJSONLayer"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "sourceLongitude": { "alias": "sourceLongitude"; "required": false; }; "sourceLatitude": { "alias": "sourceLatitude"; "required": false; }; "targetLongitude": { "alias": "targetLongitude"; "required": false; }; "targetLatitude": { "alias": "targetLatitude"; "required": false; }; "sourcePointRadius": { "alias": "sourcePointRadius"; "required": false; }; "sourcePointColor": { "alias": "sourcePointColor"; "required": false; }; "flowParticleColor": { "alias": "flowParticleColor"; "required": false; }; "flowParticleRadius": { "alias": "flowParticleRadius"; "required": false; }; "flowParticleSpeed": { "alias": "flowParticleSpeed"; "required": false; }; "flowParticleDensity": { "alias": "flowParticleDensity"; "required": false; }; "onSourcePointClick": { "alias": "onSourcePointClick"; "required": false; }; "onSourcePointMouseEnter": { "alias": "onSourcePointMouseEnter"; "required": false; }; "onSourcePointMouseLeave": { "alias": "onSourcePointMouseLeave"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
3749
+ }
3750
+
3751
+ declare class VisLeafletFlowMapModule {
3752
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisLeafletFlowMapModule, never>;
3753
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisLeafletFlowMapModule, [typeof VisLeafletFlowMapComponent], never, [typeof VisLeafletFlowMapComponent]>;
3754
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisLeafletFlowMapModule>;
3755
+ }
3756
+
3757
+ declare class VisBulletLegendComponent implements BulletLegendConfigInterface, AfterViewInit {
3758
+ containerRef: ElementRef;
3759
+ /** Legend items. Array of `BulletLegendItemInterface`:
3760
+ * ```
3761
+ * {
3762
+ * name: string | number;
3763
+ * color?: string;
3764
+ * shape?: BulletShape;
3765
+ * inactive?: boolean;
3766
+ * hidden?: boolean;
3767
+ * pointer?: boolean;
3768
+ * colorKey?: string;
3769
+ * }
3770
+ * ```
3771
+ * Default: `[]` */
3772
+ items: BulletLegendItemInterface[];
3773
+ /** Apply a specific class to the labels. Default: `''` */
3774
+ labelClassName?: string;
3775
+ /** Callback function for the legend item click. Default: `undefined` */
3776
+ onLegendItemClick?: ((d: BulletLegendItemInterface, i: number) => void);
3777
+ /** Label text (<span> element) font-size CSS. Default: `null` */
3778
+ labelFontSize?: string | null;
3779
+ /** Label text (<span> element) max-width CSS property. Default: `null` */
3780
+ labelMaxWidth?: string | null;
3781
+ /** Bullet shape size, mapped to the width and height CSS properties. Default: `null` */
3782
+ bulletSize?: string | null;
3783
+ /** Spacing between multiple bullet symbols in pixels. Default: `4` */
3784
+ bulletSpacing?: number;
3785
+ /** Bullet shape enum value or accessor function. Default: `d => d.shape ?? BulletShape.Circle */
3786
+ bulletShape?: GenericAccessor<BulletShape, BulletLegendItemInterface>;
3787
+ /** Legend orientation. When set to `BulletLegendOrientation.Vertical`, each legend item will
3788
+ * start on a new line. Default: `BulletLegendOrientation.Horizontal` */
3789
+ orientation?: BulletLegendOrientation | string;
3790
+ /** Color function. Default: `undefined` */
3791
+ colorFunction?: ColorFunction;
3792
+ component: BulletLegend | undefined;
3793
+ ngAfterViewInit(): void;
3794
+ ngOnChanges(changes: SimpleChanges): void;
3795
+ private getConfig;
3796
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisBulletLegendComponent, never>;
3797
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisBulletLegendComponent, "vis-bullet-legend", never, { "items": { "alias": "items"; "required": false; }; "labelClassName": { "alias": "labelClassName"; "required": false; }; "onLegendItemClick": { "alias": "onLegendItemClick"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelMaxWidth": { "alias": "labelMaxWidth"; "required": false; }; "bulletSize": { "alias": "bulletSize"; "required": false; }; "bulletSpacing": { "alias": "bulletSpacing"; "required": false; }; "bulletShape": { "alias": "bulletShape"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "colorFunction": { "alias": "colorFunction"; "required": false; }; }, {}, never, never, false, never>;
3798
+ }
3799
+
3800
+ declare class VisBulletLegendModule {
3801
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisBulletLegendModule, never>;
3802
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisBulletLegendModule, [typeof VisBulletLegendComponent], never, [typeof VisBulletLegendComponent]>;
3803
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisBulletLegendModule>;
3804
+ }
3805
+
3806
+ declare class VisFlowLegendComponent implements FlowLegendConfigInterface, AfterViewInit {
3807
+ containerRef: ElementRef;
3808
+ /** Margin around the legend. Default: `undefined` */
3809
+ margin?: Spacing;
3810
+ /** Custom width of the component. Default: `undefined` */
3811
+ customWidth?: number;
3812
+ /** Legend items array as string[]. Default: `[]` */
3813
+ items?: string[];
3814
+ /** Spacing between legend items and the arrows in pixels. Default: `undefined` (fit to container width) */
3815
+ spacing?: number;
3816
+ /** Color of the flow line. Default: `undefined` */
3817
+ lineColor?: string;
3818
+ /** Color of the flow label. Default: `undefined` */
3819
+ labelColor?: string;
3820
+ /** Font size of flow labels in pixels. Default: `12` */
3821
+ labelFontSize?: number;
3822
+ /** Arrow symbol. Default: `'▶'` */
3823
+ arrowSymbol?: string;
3824
+ /** Color of the arrow. Default: `undefined` */
3825
+ arrowColor?: string;
3826
+ /** Offset of the arrow symbol vertically in pixels. Default: `undefined` */
3827
+ arrowSymbolYOffset?: number;
3828
+ /** Callback function for the legend item click. Default: `undefined` */
3829
+ onLegendItemClick?: ((label?: string, i?: number) => void);
3830
+ component: FlowLegend | undefined;
3831
+ ngAfterViewInit(): void;
3832
+ ngOnChanges(changes: SimpleChanges): void;
3833
+ private getConfig;
3834
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisFlowLegendComponent, never>;
3835
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisFlowLegendComponent, "vis-flow-legend", never, { "margin": { "alias": "margin"; "required": false; }; "customWidth": { "alias": "customWidth"; "required": false; }; "items": { "alias": "items"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "lineColor": { "alias": "lineColor"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "arrowSymbol": { "alias": "arrowSymbol"; "required": false; }; "arrowColor": { "alias": "arrowColor"; "required": false; }; "arrowSymbolYOffset": { "alias": "arrowSymbolYOffset"; "required": false; }; "onLegendItemClick": { "alias": "onLegendItemClick"; "required": false; }; }, {}, never, never, false, never>;
3836
+ }
3837
+
3838
+ declare class VisFlowLegendModule {
3839
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisFlowLegendModule, never>;
3840
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisFlowLegendModule, [typeof VisFlowLegendComponent], never, [typeof VisFlowLegendComponent]>;
3841
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisFlowLegendModule>;
3842
+ }
3843
+
3844
+ declare class VisRollingPinLegendComponent implements RollingPinLegendConfigInterface, AfterViewInit {
3845
+ containerRef: ElementRef;
3846
+ /** Rects forming a legend. Array of `string`, representing colors.
3847
+ *
3848
+ * Default: `[]` */
3849
+ rects: RollingPinLegendItem[];
3850
+ /** Label on the left side of the legend. Default: `undefined` */
3851
+ leftLabelText?: string;
3852
+ /** Label on the right side of the legend. Default: `undefined` */
3853
+ rightLabelText?: string;
3854
+ /** Apply a specific class to the labels. Default: `''` */
3855
+ labelClassName?: string;
3856
+ /** Label text (<span> element) font-size CSS. Default: `null` */
3857
+ labelFontSize?: string | null;
3858
+ component: RollingPinLegend | undefined;
3859
+ ngAfterViewInit(): void;
3860
+ ngOnChanges(changes: SimpleChanges): void;
3861
+ private getConfig;
3862
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisRollingPinLegendComponent, never>;
3863
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisRollingPinLegendComponent, "vis-rolling-pin-legend", never, { "rects": { "alias": "rects"; "required": false; }; "leftLabelText": { "alias": "leftLabelText"; "required": false; }; "rightLabelText": { "alias": "rightLabelText"; "required": false; }; "labelClassName": { "alias": "labelClassName"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; }, {}, never, never, false, never>;
3864
+ }
3865
+
3866
+ declare class VisRollingPinLegendModule {
3867
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisRollingPinLegendModule, never>;
3868
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisRollingPinLegendModule, [typeof VisRollingPinLegendComponent], never, [typeof VisRollingPinLegendComponent]>;
3869
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisRollingPinLegendModule>;
3870
+ }
3871
+
3872
+ declare class VisTooltipModule {
3873
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisTooltipModule, never>;
3874
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisTooltipModule, [typeof VisTooltipComponent], never, [typeof VisTooltipComponent]>;
3875
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisTooltipModule>;
3876
+ }
3877
+
3878
+ export { VisAnnotationsComponent, VisAnnotationsModule, VisAreaComponent, VisAreaModule, VisAxisComponent, VisAxisModule, VisBoxplotComponent, VisBoxplotModule, VisBrushComponent, VisBrushModule, VisBulletLegendComponent, VisBulletLegendModule, VisChordDiagramComponent, VisChordDiagramModule, VisCoreComponent, VisCrosshairComponent, VisCrosshairModule, VisDonutComponent, VisDonutModule, VisFlowLegendComponent, VisFlowLegendModule, VisFreeBrushComponent, VisFreeBrushModule, VisGenericComponent, VisGraphComponent, VisGraphModule, VisGroupedBarComponent, VisGroupedBarModule, VisHeatmapComponent, VisHeatmapModule, VisLeafletFlowMapComponent, VisLeafletFlowMapModule, VisLeafletMapComponent, VisLeafletMapModule, VisLineComponent, VisLineModule, VisNestedDonutComponent, VisNestedDonutModule, VisPlotbandComponent, VisPlotbandModule, VisPlotlineComponent, VisPlotlineModule, VisRadialBarComponent, VisRadialBarModule, VisRollingPinLegendComponent, VisRollingPinLegendModule, VisSankeyComponent, VisSankeyModule, VisScatterComponent, VisScatterModule, VisSingleContainerComponent, VisSingleContainerModule, VisStackedBarComponent, VisStackedBarModule, VisTimelineComponent, VisTimelineModule, VisTooltipComponent, VisTooltipModule, VisTopoJSONMapComponent, VisTopoJSONMapModule, VisTreemapComponent, VisTreemapModule, VisXYComponent, VisXYContainerComponent, VisXYContainerModule, VisXYLabelsComponent, VisXYLabelsModule };