@unovis/angular 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/LICENSE +193 -0
  2. package/dist/lib/LICENSE +193 -0
  3. package/dist/lib/bundles/unovis-angular.umd.js +2833 -0
  4. package/dist/lib/bundles/unovis-angular.umd.js.map +1 -0
  5. package/dist/lib/components/area/area.component.d.ts +94 -0
  6. package/dist/lib/components/area/area.module.d.ts +7 -0
  7. package/dist/lib/components/axis/axis.component.d.ts +125 -0
  8. package/dist/lib/components/axis/axis.module.d.ts +7 -0
  9. package/dist/lib/components/brush/brush.component.d.ts +104 -0
  10. package/dist/lib/components/brush/brush.module.d.ts +7 -0
  11. package/dist/lib/components/crosshair/crosshair.component.d.ts +104 -0
  12. package/dist/lib/components/crosshair/crosshair.module.d.ts +7 -0
  13. package/dist/lib/components/donut/donut.component.d.ts +86 -0
  14. package/dist/lib/components/donut/donut.module.d.ts +7 -0
  15. package/dist/lib/components/free-brush/free-brush.component.d.ts +106 -0
  16. package/dist/lib/components/free-brush/free-brush.module.d.ts +7 -0
  17. package/dist/lib/components/graph/graph.component.d.ts +190 -0
  18. package/dist/lib/components/graph/graph.module.d.ts +7 -0
  19. package/dist/lib/components/grouped-bar/grouped-bar.component.d.ts +101 -0
  20. package/dist/lib/components/grouped-bar/grouped-bar.module.d.ts +7 -0
  21. package/dist/lib/components/line/line.component.d.ts +97 -0
  22. package/dist/lib/components/line/line.module.d.ts +7 -0
  23. package/dist/lib/components/sankey/sankey.component.d.ts +164 -0
  24. package/dist/lib/components/sankey/sankey.module.d.ts +7 -0
  25. package/dist/lib/components/scatter/scatter.component.d.ts +104 -0
  26. package/dist/lib/components/scatter/scatter.module.d.ts +7 -0
  27. package/dist/lib/components/stacked-bar/stacked-bar.component.d.ts +103 -0
  28. package/dist/lib/components/stacked-bar/stacked-bar.module.d.ts +7 -0
  29. package/dist/lib/components/timeline/timeline.component.d.ts +105 -0
  30. package/dist/lib/components/timeline/timeline.module.d.ts +7 -0
  31. package/dist/lib/components/tooltip/tooltip.component.d.ts +41 -0
  32. package/dist/lib/components/tooltip/tooltip.module.d.ts +7 -0
  33. package/dist/lib/components/topojson-map/topojson-map.component.d.ts +125 -0
  34. package/dist/lib/components/topojson-map/topojson-map.module.d.ts +7 -0
  35. package/dist/lib/components/xy-labels/xy-labels.component.d.ts +107 -0
  36. package/dist/lib/components/xy-labels/xy-labels.module.d.ts +7 -0
  37. package/dist/lib/components.d.ts +39 -0
  38. package/dist/lib/containers/single-container/single-container.component.d.ts +26 -0
  39. package/dist/lib/containers/single-container/single-container.module.d.ts +7 -0
  40. package/dist/lib/containers/xy-container/xy-container.component.d.ts +80 -0
  41. package/dist/lib/containers/xy-container/xy-container.module.d.ts +7 -0
  42. package/dist/lib/containers.d.ts +4 -0
  43. package/dist/lib/core/core-component.d.ts +6 -0
  44. package/dist/lib/core/generic-component.d.ts +3 -0
  45. package/dist/lib/core/index.d.ts +3 -0
  46. package/dist/lib/core/xy-component.d.ts +6 -0
  47. package/dist/lib/esm2015/components/area/area.component.js +75 -0
  48. package/dist/lib/esm2015/components/area/area.module.js +18 -0
  49. package/dist/lib/esm2015/components/axis/axis.component.js +109 -0
  50. package/dist/lib/esm2015/components/axis/axis.module.js +18 -0
  51. package/dist/lib/esm2015/components/brush/brush.component.js +83 -0
  52. package/dist/lib/esm2015/components/brush/brush.module.js +18 -0
  53. package/dist/lib/esm2015/components/crosshair/crosshair.component.js +81 -0
  54. package/dist/lib/esm2015/components/crosshair/crosshair.module.js +18 -0
  55. package/dist/lib/esm2015/components/donut/donut.component.js +77 -0
  56. package/dist/lib/esm2015/components/donut/donut.module.js +18 -0
  57. package/dist/lib/esm2015/components/free-brush/free-brush.component.js +83 -0
  58. package/dist/lib/esm2015/components/free-brush/free-brush.module.js +18 -0
  59. package/dist/lib/esm2015/components/graph/graph.component.js +157 -0
  60. package/dist/lib/esm2015/components/graph/graph.module.js +18 -0
  61. package/dist/lib/esm2015/components/grouped-bar/grouped-bar.component.js +83 -0
  62. package/dist/lib/esm2015/components/grouped-bar/grouped-bar.module.js +18 -0
  63. package/dist/lib/esm2015/components/line/line.component.js +77 -0
  64. package/dist/lib/esm2015/components/line/line.module.js +18 -0
  65. package/dist/lib/esm2015/components/sankey/sankey.component.js +139 -0
  66. package/dist/lib/esm2015/components/sankey/sankey.module.js +18 -0
  67. package/dist/lib/esm2015/components/scatter/scatter.component.js +83 -0
  68. package/dist/lib/esm2015/components/scatter/scatter.module.js +18 -0
  69. package/dist/lib/esm2015/components/stacked-bar/stacked-bar.component.js +83 -0
  70. package/dist/lib/esm2015/components/stacked-bar/stacked-bar.module.js +18 -0
  71. package/dist/lib/esm2015/components/timeline/timeline.component.js +87 -0
  72. package/dist/lib/esm2015/components/timeline/timeline.module.js +18 -0
  73. package/dist/lib/esm2015/components/tooltip/tooltip.component.js +49 -0
  74. package/dist/lib/esm2015/components/tooltip/tooltip.module.js +18 -0
  75. package/dist/lib/esm2015/components/topojson-map/topojson-map.component.js +111 -0
  76. package/dist/lib/esm2015/components/topojson-map/topojson-map.module.js +18 -0
  77. package/dist/lib/esm2015/components/xy-labels/xy-labels.component.js +91 -0
  78. package/dist/lib/esm2015/components/xy-labels/xy-labels.module.js +18 -0
  79. package/dist/lib/esm2015/components.js +43 -0
  80. package/dist/lib/esm2015/containers/single-container/single-container.component.js +71 -0
  81. package/dist/lib/esm2015/containers/single-container/single-container.module.js +17 -0
  82. package/dist/lib/esm2015/containers/xy-container/xy-container.component.js +159 -0
  83. package/dist/lib/esm2015/containers/xy-container/xy-container.module.js +17 -0
  84. package/dist/lib/esm2015/containers.js +5 -0
  85. package/dist/lib/esm2015/core/core-component.js +4 -0
  86. package/dist/lib/esm2015/core/generic-component.js +3 -0
  87. package/dist/lib/esm2015/core/index.js +4 -0
  88. package/dist/lib/esm2015/core/xy-component.js +4 -0
  89. package/dist/lib/esm2015/html-components/bullet-legend/bullet-legend.component.js +48 -0
  90. package/dist/lib/esm2015/html-components/bullet-legend/bullet-legend.module.js +18 -0
  91. package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.component.js +157 -0
  92. package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.module.js +17 -0
  93. package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.component.js +131 -0
  94. package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.module.js +17 -0
  95. package/dist/lib/esm2015/public-api.js +3 -0
  96. package/dist/lib/esm2015/unovis-angular.js +5 -0
  97. package/dist/lib/fesm2015/unovis-angular.js +2278 -0
  98. package/dist/lib/fesm2015/unovis-angular.js.map +1 -0
  99. package/dist/lib/html-components/bullet-legend/bullet-legend.component.d.ts +24 -0
  100. package/dist/lib/html-components/bullet-legend/bullet-legend.module.d.ts +7 -0
  101. package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.component.d.ts +197 -0
  102. package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.module.d.ts +7 -0
  103. package/dist/lib/html-components/leaflet-map/leaflet-map.component.d.ts +168 -0
  104. package/dist/lib/html-components/leaflet-map/leaflet-map.module.d.ts +7 -0
  105. package/dist/lib/package.json +24 -0
  106. package/dist/lib/public-api.d.ts +2 -0
  107. package/dist/lib/unovis-angular.d.ts +5 -0
  108. package/package.json +44 -0
@@ -0,0 +1,106 @@
1
+ import { AfterViewInit, SimpleChanges } from '@angular/core';
2
+ import { FreeBrush, FreeBrushConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, FreeBrushMode, FreeBrushSelection } from '@unovis/ts';
3
+ import { D3BrushEvent } from 'd3-brush';
4
+ import * as i0 from "@angular/core";
5
+ export declare class VisFreeBrushComponent<Datum> implements FreeBrushConfigInterface<Datum>, AfterViewInit {
6
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
7
+ duration?: number;
8
+ /** Events configuration. An object containing properties in the following format:
9
+ *
10
+ * ```
11
+ * {
12
+ * \[selectorString]: {
13
+ * \[eventType]: callbackFunction
14
+ * }
15
+ * }
16
+ * ```
17
+ * e.g.:
18
+ * ```
19
+ * {
20
+ * \[Area.selectors.area]: {
21
+ * click: (d) => console.log("Clicked Area", d)
22
+ * }
23
+ * }
24
+ * ``` */
25
+ events?: {
26
+ [selector: string]: {
27
+ [eventType in VisEventType]?: VisEventCallback;
28
+ };
29
+ };
30
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
31
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
32
+ *
33
+ * ```
34
+ * {
35
+ * \[selectorString]: {
36
+ * \[attributeName]: attribute constant value or accessor function
37
+ * }
38
+ * }
39
+ * ```
40
+ * e.g.:
41
+ * ```
42
+ * {
43
+ * \[Area.selectors.area]: {
44
+ * "test-value": d => d.value
45
+ * }
46
+ * }
47
+ * ``` */
48
+ attributes?: {
49
+ [selector: string]: {
50
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
51
+ };
52
+ };
53
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
54
+ x: NumericAccessor<Datum>;
55
+ /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
56
+ y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
57
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
58
+ id?: ((d: Datum, i?: number, ...rest: any[]) => string);
59
+ /** Component color accessor function. Default: `d => d.color` */
60
+ color?: ColorAccessor<Datum | Datum[]>;
61
+ /** 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.
62
+ * Only continuous scales are supported.
63
+ * Default: `undefined` */
64
+ xScale?: ContinuousScale;
65
+ /** 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.
66
+ * Only continuous scales are supported.
67
+ * Default: `undefined` */
68
+ yScale?: ContinuousScale;
69
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
70
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
71
+ * the scales of the chart.
72
+ * Default: `false` */
73
+ excludeFromDomainCalculation?: boolean;
74
+ /** Brush selection mode. X - horizontal, Y - vertical, XY - both. Default: `FreeBrushMode.X` */
75
+ mode?: FreeBrushMode;
76
+ /** Callback function to be called on any Brush event.
77
+ * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
78
+ onBrush?: ((selection?: FreeBrushSelection, event?: D3BrushEvent<Datum>, userDriven?: boolean) => void);
79
+ /** Callback function to be called on the Brush start event.
80
+ * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
81
+ onBrushStart?: ((selection?: FreeBrushSelection, event?: D3BrushEvent<Datum>, userDriven?: boolean) => void);
82
+ /** Callback function to be called on the Brush move event.
83
+ * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
84
+ onBrushMove?: ((selection?: FreeBrushSelection, event?: D3BrushEvent<Datum>, userDriven?: boolean) => void);
85
+ /** Callback function to be called on the Brush end event.
86
+ * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<Datum>, userDriven: boolean)L void => {}` */
87
+ onBrushEnd?: ((selection?: FreeBrushSelection, event?: D3BrushEvent<Datum>, userDriven?: boolean) => void);
88
+ /** Width of the Brush handle. Default: `1` */
89
+ handleWidth?: number;
90
+ /** Brush selection in data space, can be used to force set the selection from outside.
91
+ * In case of two dimensional mode, the selection has the following format: `[[xMin, xMax], [yMin, yMax]]`.
92
+ * This config property gets updated on internal brush events. Default: `undefined` */
93
+ selection?: FreeBrushSelection | null;
94
+ /** Constraint Brush selection to a minimal length in data units. Default: `undefined` */
95
+ selectionMinLength?: number | [number, number];
96
+ /** Automatically hide the brush after selection. Default: `true` */
97
+ autoHide?: boolean;
98
+ data: Datum[];
99
+ component: FreeBrush<Datum> | undefined;
100
+ componentContainer: ContainerCore | undefined;
101
+ ngAfterViewInit(): void;
102
+ ngOnChanges(changes: SimpleChanges): void;
103
+ private getConfig;
104
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisFreeBrushComponent<any>, never>;
105
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisFreeBrushComponent<any>, "vis-free-brush", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "mode": "mode"; "onBrush": "onBrush"; "onBrushStart": "onBrushStart"; "onBrushMove": "onBrushMove"; "onBrushEnd": "onBrushEnd"; "handleWidth": "handleWidth"; "selection": "selection"; "selectionMinLength": "selectionMinLength"; "autoHide": "autoHide"; "data": "data"; }, {}, never, never>;
106
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./free-brush.component";
3
+ export declare class VisFreeBrushModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisFreeBrushModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisFreeBrushModule, [typeof i1.VisFreeBrushComponent], never, [typeof i1.VisFreeBrushComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisFreeBrushModule>;
7
+ }
@@ -0,0 +1,190 @@
1
+ import { AfterViewInit, SimpleChanges } from '@angular/core';
2
+ import { Graph, GraphConfigInterface, ContainerCore, GraphInputNode, GraphInputLink, VisEventType, VisEventCallback, GraphLayoutType, StringAccessor, GraphForceLayoutSettings, NumericAccessor, GenericAccessor, GraphLinkStyle, GraphLinkArrowStyle, ColorAccessor, BooleanAccessor, GraphCircleLabel, GraphNodeShape, GraphPanelConfig } from '@unovis/ts';
3
+ import * as i0 from "@angular/core";
4
+ export declare class VisGraphComponent<N extends GraphInputNode, L extends GraphInputLink> implements GraphConfigInterface<N, L>, AfterViewInit {
5
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
6
+ duration?: number;
7
+ /** Events configuration. An object containing properties in the following format:
8
+ *
9
+ * ```
10
+ * {
11
+ * \[selectorString]: {
12
+ * \[eventType]: callbackFunction
13
+ * }
14
+ * }
15
+ * ```
16
+ * e.g.:
17
+ * ```
18
+ * {
19
+ * \[Area.selectors.area]: {
20
+ * click: (d) => console.log("Clicked Area", d)
21
+ * }
22
+ * }
23
+ * ``` */
24
+ events?: {
25
+ [selector: string]: {
26
+ [eventType in VisEventType]?: VisEventCallback;
27
+ };
28
+ };
29
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
30
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
31
+ *
32
+ * ```
33
+ * {
34
+ * \[selectorString]: {
35
+ * \[attributeName]: attribute constant value or accessor function
36
+ * }
37
+ * }
38
+ * ```
39
+ * e.g.:
40
+ * ```
41
+ * {
42
+ * \[Area.selectors.area]: {
43
+ * "test-value": d => d.value
44
+ * }
45
+ * }
46
+ * ``` */
47
+ attributes?: {
48
+ [selector: string]: {
49
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
50
+ };
51
+ };
52
+ /** Zoom level constraints. Default: [0.35, 1.25] */
53
+ zoomScaleExtent?: [number, number];
54
+ /** Disable zooming. Default: `false` */
55
+ disableZoom?: boolean;
56
+ /** Disable node dragging. Default: `false` */
57
+ disableDrag?: boolean;
58
+ /** Interval to re-render the graph when zooming. Default: `100` */
59
+ zoomThrottledUpdateNodeThreshold?: number;
60
+ /** Zoom event callback. Default: `undefined` */
61
+ onZoom?: (zoomScale: number, zoomScaleExtent: number) => void;
62
+ /** Type of the graph layout. Default: `GraphLayoutType.Force` */
63
+ layoutType?: GraphLayoutType | string;
64
+ /** Fit the graph to container on data or config updates, or on container resize. Default: `true` */
65
+ layoutAutofit?: boolean;
66
+ /** Tolerance constant defining whether the graph should be fitted to container
67
+ * (on data or config update, or container resize) after a zoom / pan interaction or not.
68
+ * `0` — Stop fitting after any pan or zoom
69
+ * `Number.POSITIVE_INFINITY` — Always fit
70
+ * Default: `8.0` */
71
+ layoutAutofitTolerance?: number;
72
+ /** Place non-connected nodes at the bottom of the graph. Default: `false` */
73
+ layoutNonConnectedAside?: boolean;
74
+ /** Node group accessor function.
75
+ * Only for `GraphLayoutType.Parallel`, `GraphLayoutType.ParallelHorizontal` and `GraphLayoutType.Concentric` layouts.
76
+ * Default: `node => node.group` */
77
+ layoutNodeGroup?: StringAccessor<N>;
78
+ /** Order of the layout groups.
79
+ * Only for `GraphLayoutType.Parallel`, `GraphLayoutType.ParallelHorizontal` and `GraphLayoutType.Concentric` layouts.
80
+ * Default: `[]` */
81
+ layoutGroupOrder?: string[];
82
+ /** Sets the number of nodes in a sub-group after which they'll continue on the next column (or row if `layoutType` is
83
+ * `GraphLayoutType.ParallelHorizontal`).
84
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
85
+ * Default: `6` */
86
+ layoutParallelNodesPerColumn?: number;
87
+ /** Node sub-group accessor function.
88
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
89
+ * Default: `node => node.subgroup` */
90
+ layoutParallelNodeSubGroup?: StringAccessor<N>;
91
+ /** Number of sub-groups per row (or column if `layoutType` is `GraphLayoutType.ParallelHorizontal`) in a group.
92
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
93
+ * Default: `1` */
94
+ layoutParallelSubGroupsPerRow?: number;
95
+ /** Spacing between groups.
96
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
97
+ * Default: `undefined` */
98
+ layoutParallelGroupSpacing?: number;
99
+ /** Set a group by name to have priority in sorting the graph links.
100
+ * Only for `GraphLayoutType.Parallel` and `GraphLayoutType.ParallelHorizontal` layouts.
101
+ * Default: `undefined` */
102
+ layoutParallelSortConnectionsByGroup?: string;
103
+ /** Force Layout settings, see the `d3-force` package for more details */
104
+ forceLayoutSettings?: GraphForceLayoutSettings;
105
+ /** Darge Layout settings, see the `dagrejs` package
106
+ * for more details: https://github.com/dagrejs/dagre/wiki#configuring-the-layout */
107
+ dagreLayoutSettings?: {
108
+ rankdir: string;
109
+ ranker: string;
110
+ [key: string]: any;
111
+ };
112
+ /** Link width accessor function ot constant value. Default: `1` */
113
+ linkWidth?: NumericAccessor<L>;
114
+ /** Link style accessor function or constant value. Default: `GraphLinkStyle.Solid` */
115
+ linkStyle?: GenericAccessor<GraphLinkStyle, L>;
116
+ /** Link band width accessor function or constant value. Default: `0` */
117
+ linkBandWidth?: NumericAccessor<L>;
118
+ /** Link arrow accessor function or constant value. Default: `undefined` */
119
+ linkArrow?: GenericAccessor<GraphLinkArrowStyle, L> | undefined;
120
+ /** Link stroke color accessor function or constant value. Default: `undefined` */
121
+ linkStroke?: ColorAccessor<L>;
122
+ /** Link disabled state accessor function or constant value. Default: `false` */
123
+ linkDisabled?: BooleanAccessor<L>;
124
+ /** Link flow animation accessor function or constant value. Default: `false` */
125
+ linkFlow?: BooleanAccessor<L>;
126
+ /** Animation duration of the flow (traffic) circles. Default: `20000` */
127
+ linkFlowAnimDuration?: number;
128
+ /** Size of the moving particles that represent traffic flow. Default: `2` */
129
+ linkFlowParticleSize?: number;
130
+ /** Link label accessor function or constant value. Default: `undefined` */
131
+ linkLabel?: GenericAccessor<GraphCircleLabel, L> | undefined;
132
+ /** Shift label along the link center a little bit to avoid overlap with the link arrow. Default: `true` */
133
+ linkLabelShiftFromCenter?: BooleanAccessor<L>;
134
+ /** Spacing between neighboring links. Default: `8` */
135
+ linkNeighborSpacing?: number;
136
+ /** Set selected link by its unique id. Default: `undefined` */
137
+ selectedLinkId?: number | string;
138
+ /** Node size accessor function or constant value. Default: `30` */
139
+ nodeSize?: NumericAccessor<N>;
140
+ /** Node stroke width accessor function or constant value. Default: `3` */
141
+ nodeStrokeWidth?: NumericAccessor<N>;
142
+ /** Node shape accessor function or constant value. Default: `GraphNodeShape.Circle` */
143
+ nodeShape?: GenericAccessor<GraphNodeShape | any, N>;
144
+ /** Node gauge outline accessor function or constant value in the range [0,100]. Default: `0` */
145
+ nodeGaugeValue?: NumericAccessor<N>;
146
+ /** Node gauge outline fill color accessor function or constant value. Default: `undefined` */
147
+ nodeGaugeFill?: ColorAccessor<N>;
148
+ /** Animation duration of the node gauge outline. Default: `1500` */
149
+ nodeGaugeAnimDuration?: number;
150
+ /** Node central icon accessor function or constant value. Default: `node => node.icon` */
151
+ nodeIcon?: StringAccessor<N>;
152
+ /** Node central icon size accessor function or constant value. Default: `undefined` */
153
+ nodeIconSize?: NumericAccessor<N>;
154
+ /** Node label accessor function or constant value. Default: `node => node.label` */
155
+ nodeLabel?: StringAccessor<N>;
156
+ /** Node sub-label accessor function or constant value: Default: `''` */
157
+ nodeSubLabel?: StringAccessor<N>;
158
+ /** Node circular side labels accessor function. The function should return an array of GraphCircleLabel objects. Default: `undefined` */
159
+ nodeSideLabels?: GenericAccessor<GraphCircleLabel[], N>;
160
+ /** Node bottom icon accessor function. Default: `undefined` */
161
+ nodeBottomIcon?: StringAccessor<N>;
162
+ /** Node disabled state accessor function or constant value. Default: `false` */
163
+ nodeDisabled?: BooleanAccessor<N>;
164
+ /** Node fill color accessor function or constant value. Default: `node => node.fill` */
165
+ nodeFill?: ColorAccessor<N>;
166
+ /** Node stroke color accessor function or constant value. Default: `node => node.stroke` */
167
+ nodeStroke?: ColorAccessor<N>;
168
+ /** Sorting function to determine node placement. Default: `undefined` */
169
+ nodeSort?: ((a: N, b: N) => number);
170
+ /** Specify the initial position for entering nodes as [x, y]. Default: `undefined` */
171
+ nodeEnterPosition?: GenericAccessor<[number, number], N> | undefined;
172
+ /** Specify the initial scale for entering nodes in the range [0,1]. Default: `0.75` */
173
+ nodeEnterScale?: NumericAccessor<N> | undefined;
174
+ /** Specify the destination position for exiting nodes as [x, y]. Default: `undefined` */
175
+ nodeExitPosition?: GenericAccessor<[number, number], N> | undefined;
176
+ /** Specify the destination scale for exiting nodes in the range [0,1]. Default: `0.75` */
177
+ nodeExitScale?: NumericAccessor<N> | undefined;
178
+ /** Set selected node by unique id. Default: `undefined` */
179
+ selectedNodeId?: number | string;
180
+ /** Panels configuration. An array of `GraphPanelConfig` objects. Default: `[]` */
181
+ panels?: GraphPanelConfig[] | undefined;
182
+ data: any;
183
+ component: Graph<N, L> | undefined;
184
+ componentContainer: ContainerCore | undefined;
185
+ ngAfterViewInit(): void;
186
+ ngOnChanges(changes: SimpleChanges): void;
187
+ private getConfig;
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisGraphComponent<any, any>, never>;
189
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisGraphComponent<any, any>, "vis-graph", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "zoomScaleExtent": "zoomScaleExtent"; "disableZoom": "disableZoom"; "disableDrag": "disableDrag"; "zoomThrottledUpdateNodeThreshold": "zoomThrottledUpdateNodeThreshold"; "onZoom": "onZoom"; "layoutType": "layoutType"; "layoutAutofit": "layoutAutofit"; "layoutAutofitTolerance": "layoutAutofitTolerance"; "layoutNonConnectedAside": "layoutNonConnectedAside"; "layoutNodeGroup": "layoutNodeGroup"; "layoutGroupOrder": "layoutGroupOrder"; "layoutParallelNodesPerColumn": "layoutParallelNodesPerColumn"; "layoutParallelNodeSubGroup": "layoutParallelNodeSubGroup"; "layoutParallelSubGroupsPerRow": "layoutParallelSubGroupsPerRow"; "layoutParallelGroupSpacing": "layoutParallelGroupSpacing"; "layoutParallelSortConnectionsByGroup": "layoutParallelSortConnectionsByGroup"; "forceLayoutSettings": "forceLayoutSettings"; "dagreLayoutSettings": "dagreLayoutSettings"; "linkWidth": "linkWidth"; "linkStyle": "linkStyle"; "linkBandWidth": "linkBandWidth"; "linkArrow": "linkArrow"; "linkStroke": "linkStroke"; "linkDisabled": "linkDisabled"; "linkFlow": "linkFlow"; "linkFlowAnimDuration": "linkFlowAnimDuration"; "linkFlowParticleSize": "linkFlowParticleSize"; "linkLabel": "linkLabel"; "linkLabelShiftFromCenter": "linkLabelShiftFromCenter"; "linkNeighborSpacing": "linkNeighborSpacing"; "selectedLinkId": "selectedLinkId"; "nodeSize": "nodeSize"; "nodeStrokeWidth": "nodeStrokeWidth"; "nodeShape": "nodeShape"; "nodeGaugeValue": "nodeGaugeValue"; "nodeGaugeFill": "nodeGaugeFill"; "nodeGaugeAnimDuration": "nodeGaugeAnimDuration"; "nodeIcon": "nodeIcon"; "nodeIconSize": "nodeIconSize"; "nodeLabel": "nodeLabel"; "nodeSubLabel": "nodeSubLabel"; "nodeSideLabels": "nodeSideLabels"; "nodeBottomIcon": "nodeBottomIcon"; "nodeDisabled": "nodeDisabled"; "nodeFill": "nodeFill"; "nodeStroke": "nodeStroke"; "nodeSort": "nodeSort"; "nodeEnterPosition": "nodeEnterPosition"; "nodeEnterScale": "nodeEnterScale"; "nodeExitPosition": "nodeExitPosition"; "nodeExitScale": "nodeExitScale"; "selectedNodeId": "selectedNodeId"; "panels": "panels"; "data": "data"; }, {}, never, never>;
190
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./graph.component";
3
+ export declare class VisGraphModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisGraphModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisGraphModule, [typeof i1.VisGraphComponent], never, [typeof i1.VisGraphComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisGraphModule>;
7
+ }
@@ -0,0 +1,101 @@
1
+ import { AfterViewInit, SimpleChanges } from '@angular/core';
2
+ import { GroupedBar, GroupedBarConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, StringAccessor, Orientation } from '@unovis/ts';
3
+ import * as i0 from "@angular/core";
4
+ export declare class VisGroupedBarComponent<Datum> implements GroupedBarConfigInterface<Datum>, AfterViewInit {
5
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
6
+ duration?: number;
7
+ /** Events configuration. An object containing properties in the following format:
8
+ *
9
+ * ```
10
+ * {
11
+ * \[selectorString]: {
12
+ * \[eventType]: callbackFunction
13
+ * }
14
+ * }
15
+ * ```
16
+ * e.g.:
17
+ * ```
18
+ * {
19
+ * \[Area.selectors.area]: {
20
+ * click: (d) => console.log("Clicked Area", d)
21
+ * }
22
+ * }
23
+ * ``` */
24
+ events?: {
25
+ [selector: string]: {
26
+ [eventType in VisEventType]?: VisEventCallback;
27
+ };
28
+ };
29
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
30
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
31
+ *
32
+ * ```
33
+ * {
34
+ * \[selectorString]: {
35
+ * \[attributeName]: attribute constant value or accessor function
36
+ * }
37
+ * }
38
+ * ```
39
+ * e.g.:
40
+ * ```
41
+ * {
42
+ * \[Area.selectors.area]: {
43
+ * "test-value": d => d.value
44
+ * }
45
+ * }
46
+ * ``` */
47
+ attributes?: {
48
+ [selector: string]: {
49
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
50
+ };
51
+ };
52
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
53
+ x: NumericAccessor<Datum>;
54
+ /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
55
+ y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
56
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
57
+ id?: ((d: Datum, i?: number, ...rest: any[]) => string);
58
+ /** Component color accessor function. Default: `d => d.color` */
59
+ color?: ColorAccessor<Datum | Datum[]>;
60
+ /** Scale for X dimension, e.g. Scale.scaleLinear(). If you set xScale you'll be responsible for setting it's `domain` and `range` as well.
61
+ * Only continuous scales are supported.
62
+ * Default: `undefined` */
63
+ xScale?: ContinuousScale;
64
+ /** Scale for Y dimension, e.g. Scale.scaleLinear(). If you set yScale you'll be responsible for setting it's `domain` and `range` as well.
65
+ * Only continuous scales are supported.
66
+ * Default: `undefined` */
67
+ yScale?: ContinuousScale;
68
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
69
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
70
+ * the scales of the chart.
71
+ * Default: `false` */
72
+ excludeFromDomainCalculation?: boolean;
73
+ /** Force set the group width in pixels. Default: `undefined` */
74
+ groupWidth?: number;
75
+ /** Maximum group width for dynamic sizing. Limits the groupWidth property from the top. Default: `undefined` */
76
+ groupMaxWidth?: number;
77
+ /** Expected step between the bar groups in the X axis units.
78
+ * Needed to correctly calculate the width of the bar groups when there are gaps in the data.
79
+ * Default: `undefined` */
80
+ dataStep?: number;
81
+ /** Fractional padding between the groups in the range of [0,1). Default: `0.05` */
82
+ groupPadding?: number;
83
+ /** Fractional padding between the bars in the range of [0,1). Default: `0` */
84
+ barPadding?: number;
85
+ /** Rounded bar corners. Boolean or number (to set the radius in pixels explicitly). Default: `2` */
86
+ roundedCorners?: number | boolean;
87
+ /** Sets the minimum bar height for better visibility of small values. Default: `1` */
88
+ barMinHeight?: number;
89
+ /** Configurable bar cursor when hovering over. Default: `null` */
90
+ cursor?: StringAccessor<Datum>;
91
+ /** Chart orientation: `Orientation.Vertical` or `Orientation.Horizontal`. Default `Orientation.Vertical` */
92
+ orientation?: Orientation;
93
+ data: Datum[];
94
+ component: GroupedBar<Datum> | undefined;
95
+ componentContainer: ContainerCore | undefined;
96
+ ngAfterViewInit(): void;
97
+ ngOnChanges(changes: SimpleChanges): void;
98
+ private getConfig;
99
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisGroupedBarComponent<any>, never>;
100
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisGroupedBarComponent<any>, "vis-grouped-bar", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "groupWidth": "groupWidth"; "groupMaxWidth": "groupMaxWidth"; "dataStep": "dataStep"; "groupPadding": "groupPadding"; "barPadding": "barPadding"; "roundedCorners": "roundedCorners"; "barMinHeight": "barMinHeight"; "cursor": "cursor"; "orientation": "orientation"; "data": "data"; }, {}, never, never>;
101
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./grouped-bar.component";
3
+ export declare class VisGroupedBarModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisGroupedBarModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisGroupedBarModule, [typeof i1.VisGroupedBarComponent], never, [typeof i1.VisGroupedBarComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisGroupedBarModule>;
7
+ }
@@ -0,0 +1,97 @@
1
+ import { AfterViewInit, SimpleChanges } from '@angular/core';
2
+ import { Line, LineConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, CurveType, GenericAccessor, StringAccessor } from '@unovis/ts';
3
+ import * as i0 from "@angular/core";
4
+ export declare class VisLineComponent<Datum> implements LineConfigInterface<Datum>, AfterViewInit {
5
+ /** Animation duration of the data update transitions in milliseconds. Default: `600` */
6
+ duration?: number;
7
+ /** Events configuration. An object containing properties in the following format:
8
+ *
9
+ * ```
10
+ * {
11
+ * \[selectorString]: {
12
+ * \[eventType]: callbackFunction
13
+ * }
14
+ * }
15
+ * ```
16
+ * e.g.:
17
+ * ```
18
+ * {
19
+ * \[Area.selectors.area]: {
20
+ * click: (d) => console.log("Clicked Area", d)
21
+ * }
22
+ * }
23
+ * ``` */
24
+ events?: {
25
+ [selector: string]: {
26
+ [eventType in VisEventType]?: VisEventCallback;
27
+ };
28
+ };
29
+ /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
30
+ * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
31
+ *
32
+ * ```
33
+ * {
34
+ * \[selectorString]: {
35
+ * \[attributeName]: attribute constant value or accessor function
36
+ * }
37
+ * }
38
+ * ```
39
+ * e.g.:
40
+ * ```
41
+ * {
42
+ * \[Area.selectors.area]: {
43
+ * "test-value": d => d.value
44
+ * }
45
+ * }
46
+ * ``` */
47
+ attributes?: {
48
+ [selector: string]: {
49
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
50
+ };
51
+ };
52
+ /** Accessor function for getting the values along the X axis. Default: `undefined` */
53
+ x: NumericAccessor<Datum>;
54
+ /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
55
+ y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
56
+ /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
57
+ id?: ((d: Datum, i?: number, ...rest: any[]) => string);
58
+ /** Component color accessor function. Default: `d => d.color` */
59
+ color?: ColorAccessor<Datum | Datum[]>;
60
+ /** Scale for X dimension, e.g. Scale.scaleLinear(). If you set xScale you'll be responsible for setting it's `domain` and `range` as well.
61
+ * Only continuous scales are supported.
62
+ * Default: `undefined` */
63
+ xScale?: ContinuousScale;
64
+ /** Scale for Y dimension, e.g. Scale.scaleLinear(). If you set yScale you'll be responsible for setting it's `domain` and `range` as well.
65
+ * Only continuous scales are supported.
66
+ * Default: `undefined` */
67
+ yScale?: ContinuousScale;
68
+ /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
69
+ * This property can be useful when you want pass individual data to a component and you don't want it to affect
70
+ * the scales of the chart.
71
+ * Default: `false` */
72
+ excludeFromDomainCalculation?: boolean;
73
+ /** Curve type from the CurveType enum. Default: `CurveType.MonotoneX` */
74
+ curveType?: CurveType;
75
+ /** Line width in pixels. Default: `2` */
76
+ lineWidth?: number;
77
+ /** Line dash array, see SVG's stroke-dasharray. Default: `undefined` */
78
+ lineDashArray?: GenericAccessor<number[], Datum>;
79
+ /** When a data point has an `undefined`, `NaN`, or other no-data value, they'll be replaced with a value specified here.
80
+ * Setting this property to `undefined` will lead to having the line break when there's no data, and continue when
81
+ * the data appears again. If you set it to `null`, the values will be treated as numerical `0` values and the line
82
+ * won't break; however if the whole dataset consists of only `null`s, the line won't be displayed.
83
+ * Default: `undefined` */
84
+ fallbackValue?: number | undefined | null;
85
+ /** Highlight line on hover. Default: `false` */
86
+ highlightOnHover?: boolean;
87
+ /** Optional link cursor. Default: `null` */
88
+ cursor?: StringAccessor<Datum[]>;
89
+ data: Datum[];
90
+ component: Line<Datum> | undefined;
91
+ componentContainer: ContainerCore | undefined;
92
+ ngAfterViewInit(): void;
93
+ ngOnChanges(changes: SimpleChanges): void;
94
+ private getConfig;
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisLineComponent<any>, never>;
96
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisLineComponent<any>, "vis-line", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "curveType": "curveType"; "lineWidth": "lineWidth"; "lineDashArray": "lineDashArray"; "fallbackValue": "fallbackValue"; "highlightOnHover": "highlightOnHover"; "cursor": "cursor"; "data": "data"; }, {}, never, never>;
97
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./line.component";
3
+ export declare class VisLineModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisLineModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisLineModule, [typeof i1.VisLineComponent], never, [typeof i1.VisLineComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisLineModule>;
7
+ }