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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +47 -40
  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
@@ -1,110 +0,0 @@
1
- import { AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { Scatter, ScatterConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, SymbolType, StringAccessor, GenericAccessor, Position } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisScatterComponent<Datum> implements ScatterConfigInterface<Datum>, AfterViewInit {
5
- /** Animation duration of the data update transitions in milliseconds. Default: `600` */
6
- duration?: number;
7
- /** Events configuration. An object containing properties in the following format:
8
- *
9
- * ```
10
- * {
11
- * \[selectorString]: {
12
- * \[eventType]: callbackFunction
13
- * }
14
- * }
15
- * ```
16
- * e.g.:
17
- * ```
18
- * {
19
- * \[Area.selectors.area]: {
20
- * click: (d) => console.log("Clicked Area", d)
21
- * }
22
- * }
23
- * ``` */
24
- events?: {
25
- [selector: string]: {
26
- [eventType in VisEventType]?: VisEventCallback;
27
- };
28
- };
29
- /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
30
- * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
31
- *
32
- * ```
33
- * {
34
- * \[selectorString]: {
35
- * \[attributeName]: attribute constant value or accessor function
36
- * }
37
- * }
38
- * ```
39
- * e.g.:
40
- * ```
41
- * {
42
- * \[Area.selectors.area]: {
43
- * "test-value": d => d.value
44
- * }
45
- * }
46
- * ``` */
47
- attributes?: {
48
- [selector: string]: {
49
- [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
50
- };
51
- };
52
- /** Accessor function for getting the values along the X axis. Default: `undefined` */
53
- x: NumericAccessor<Datum>;
54
- /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
55
- y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
56
- /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
57
- id?: ((d: Datum, i: number, ...rest: any[]) => string);
58
- /** Point color accessor function. Default: `d => d.color` */
59
- color?: ColorAccessor<Datum>;
60
- /** Scale for X dimension, e.g. Scale.scaleLinear(). If you set xScale you'll be responsible for setting it's `domain` and `range` as well.
61
- * Only continuous scales are supported.
62
- * Default: `undefined` */
63
- xScale?: ContinuousScale;
64
- /** Scale for Y dimension, e.g. Scale.scaleLinear(). If you set yScale you'll be responsible for setting it's `domain` and `range` as well.
65
- * Only continuous scales are supported.
66
- * Default: `undefined` */
67
- yScale?: ContinuousScale;
68
- /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
69
- * This property can be useful when you want pass individual data to a component and you don't want it to affect
70
- * the scales of the chart.
71
- * Default: `false` */
72
- excludeFromDomainCalculation?: boolean;
73
- /** Size of the scatter plot marker (e.g. diameter if `SymbolType.Circle` is used for `shape`) in pixels.
74
- * Can be a constant value or an accessor function. But if `sizeRange` is set, then the values will be treated
75
- * as an input to `sizeScale`, and the resulting size will be different.
76
- * Default: `10` */
77
- size?: NumericAccessor<Datum>;
78
- /** Size scale to be used if the `sizeRange` was set. Default: `Scale.scaleSqrt()` */
79
- sizeScale?: ContinuousScale;
80
- /** Size range in the format of `[number, number]` to rescale the input values. Default: `undefined` */
81
- sizeRange?: [number, number];
82
- /** Shape of the scatter point. Accessor function or constant value: `SymbolType.Circle`, `SymbolType.Cross`, `SymbolType.Diamond`, `SymbolType.Square`,
83
- * `SymbolType.Star`, `SymbolType.Triangle` or `SymbolType.Wye`.
84
- * Default: `SymbolType.Circle` */
85
- shape?: ((d: Datum, i?: number, ...rest: any[]) => (SymbolType | string)) | SymbolType | string;
86
- /** Label accessor function or string. Default: `undefined` */
87
- label?: StringAccessor<Datum>;
88
- /** Label color. Default: `undefined` */
89
- labelColor?: ColorAccessor<Datum>;
90
- /** Hide overlapping labels. Default: `true` */
91
- labelHideOverlapping?: boolean;
92
- /** Optional point cursor. Default: `null` */
93
- cursor?: StringAccessor<Datum>;
94
- /** Point color brightness ratio for switching between dark and light text label color. Default: `0.65` */
95
- labelTextBrightnessRatio?: number;
96
- /** Label position. Default: `Position.Bottom` */
97
- labelPosition?: GenericAccessor<Position | string, Datum>;
98
- /** Point stroke color. Default: `undefined` */
99
- strokeColor?: ColorAccessor<Datum>;
100
- /** Point stroke width. Default: `undefined` */
101
- strokeWidth?: NumericAccessor<Datum>;
102
- data: Datum[];
103
- component: Scatter<Datum> | undefined;
104
- componentContainer: ContainerCore | undefined;
105
- ngAfterViewInit(): void;
106
- ngOnChanges(changes: SimpleChanges): void;
107
- private getConfig;
108
- static ɵfac: i0.ɵɵFactoryDeclaration<VisScatterComponent<any>, never>;
109
- static ɵcmp: i0.ɵɵComponentDeclaration<VisScatterComponent<any>, "vis-scatter", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "size": "size"; "sizeScale": "sizeScale"; "sizeRange": "sizeRange"; "shape": "shape"; "label": "label"; "labelColor": "labelColor"; "labelHideOverlapping": "labelHideOverlapping"; "cursor": "cursor"; "labelTextBrightnessRatio": "labelTextBrightnessRatio"; "labelPosition": "labelPosition"; "strokeColor": "strokeColor"; "strokeWidth": "strokeWidth"; "data": "data"; }, {}, never, never>;
110
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./scatter.component";
3
- export declare class VisScatterModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisScatterModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisScatterModule, [typeof i1.VisScatterComponent], never, [typeof i1.VisScatterComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisScatterModule>;
7
- }
@@ -1,103 +0,0 @@
1
- import { AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { StackedBar, StackedBarConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, StringAccessor, Orientation } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisStackedBarComponent<Datum> implements StackedBarConfigInterface<Datum>, AfterViewInit {
5
- /** Animation duration of the data update transitions in milliseconds. Default: `600` */
6
- duration?: number;
7
- /** Events configuration. An object containing properties in the following format:
8
- *
9
- * ```
10
- * {
11
- * \[selectorString]: {
12
- * \[eventType]: callbackFunction
13
- * }
14
- * }
15
- * ```
16
- * e.g.:
17
- * ```
18
- * {
19
- * \[Area.selectors.area]: {
20
- * click: (d) => console.log("Clicked Area", d)
21
- * }
22
- * }
23
- * ``` */
24
- events?: {
25
- [selector: string]: {
26
- [eventType in VisEventType]?: VisEventCallback;
27
- };
28
- };
29
- /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
30
- * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
31
- *
32
- * ```
33
- * {
34
- * \[selectorString]: {
35
- * \[attributeName]: attribute constant value or accessor function
36
- * }
37
- * }
38
- * ```
39
- * e.g.:
40
- * ```
41
- * {
42
- * \[Area.selectors.area]: {
43
- * "test-value": d => d.value
44
- * }
45
- * }
46
- * ``` */
47
- attributes?: {
48
- [selector: string]: {
49
- [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
50
- };
51
- };
52
- /** Accessor function for getting the values along the X axis. Default: `undefined` */
53
- x: NumericAccessor<Datum>;
54
- /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */
55
- y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
56
- /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
57
- id?: ((d: Datum, i: number, ...rest: any[]) => string);
58
- /** Bar color accessor function. Default: `d => d.color` */
59
- color?: ColorAccessor<Datum>;
60
- /** Scale for X dimension, e.g. Scale.scaleLinear(). If you set xScale you'll be responsible for setting it's `domain` and `range` as well.
61
- * Only continuous scales are supported.
62
- * Default: `undefined` */
63
- xScale?: ContinuousScale;
64
- /** Scale for Y dimension, e.g. Scale.scaleLinear(). If you set yScale you'll be responsible for setting it's `domain` and `range` as well.
65
- * Only continuous scales are supported.
66
- * Default: `undefined` */
67
- yScale?: ContinuousScale;
68
- /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
69
- * This property can be useful when you want pass individual data to a component and you don't want it to affect
70
- * the scales of the chart.
71
- * Default: `false` */
72
- excludeFromDomainCalculation?: boolean;
73
- /** Force set bar width in pixels. Default: `undefined` */
74
- barWidth?: number;
75
- /** Maximum bar width for dynamic sizing. Default: `undefined` */
76
- barMaxWidth?: number;
77
- /** Expected step between the bars in the X axis units.
78
- * Needed to correctly calculate the width of the bars when there are gaps in the data.
79
- * Default: `undefined` */
80
- dataStep?: number;
81
- /** Fractional padding between the bars in the range of [0,1). Default: `0` */
82
- barPadding?: number;
83
- /** Rounded corners for top bars. Boolean or number (to set the radius in pixels). Default: `2` */
84
- roundedCorners?: number | boolean;
85
- /** Configurable bar cursor when hovering over. Default: `null` */
86
- cursor?: StringAccessor<Datum>;
87
- /** Sets the minimum bar height to 1 pixel for better visibility of small values. Default: `false` */
88
- barMinHeight1Px?: boolean;
89
- /** Base value to test data existence when `barMinHeight1Px` is set to `true`.
90
- * Everything equal to barMinHeightZeroValue will not be rendered on the chart.
91
- * Default: `null` */
92
- barMinHeightZeroValue?: any;
93
- /** Chart orientation: `Orientation.Vertical` or `Orientation.Horizontal`. Default `Orientation.Vertical` */
94
- orientation?: Orientation | string;
95
- data: Datum[];
96
- component: StackedBar<Datum> | undefined;
97
- componentContainer: ContainerCore | undefined;
98
- ngAfterViewInit(): void;
99
- ngOnChanges(changes: SimpleChanges): void;
100
- private getConfig;
101
- static ɵfac: i0.ɵɵFactoryDeclaration<VisStackedBarComponent<any>, never>;
102
- static ɵcmp: i0.ɵɵComponentDeclaration<VisStackedBarComponent<any>, "vis-stacked-bar", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "barWidth": "barWidth"; "barMaxWidth": "barMaxWidth"; "dataStep": "dataStep"; "barPadding": "barPadding"; "roundedCorners": "roundedCorners"; "cursor": "cursor"; "barMinHeight1Px": "barMinHeight1Px"; "barMinHeightZeroValue": "barMinHeightZeroValue"; "orientation": "orientation"; "data": "data"; }, {}, never, never>;
103
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./stacked-bar.component";
3
- export declare class VisStackedBarModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisStackedBarModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisStackedBarModule, [typeof i1.VisStackedBarComponent], never, [typeof i1.VisStackedBarComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisStackedBarModule>;
7
- }
@@ -1,153 +0,0 @@
1
- import { AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { Timeline, TimelineConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, StringAccessor, GenericAccessor, Arrangement, TimelineRowLabel, TimelineRowIcon, TextAlign, TimelineArrow, TimelineLineRenderState } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisTimelineComponent<Datum> implements TimelineConfigInterface<Datum>, AfterViewInit {
5
- /** Animation duration of the data update transitions in milliseconds. Default: `600` */
6
- duration?: number;
7
- /** Events configuration. An object containing properties in the following format:
8
- *
9
- * ```
10
- * {
11
- * \[selectorString]: {
12
- * \[eventType]: callbackFunction
13
- * }
14
- * }
15
- * ```
16
- * e.g.:
17
- * ```
18
- * {
19
- * \[Area.selectors.area]: {
20
- * click: (d) => console.log("Clicked Area", d)
21
- * }
22
- * }
23
- * ``` */
24
- events?: {
25
- [selector: string]: {
26
- [eventType in VisEventType]?: VisEventCallback;
27
- };
28
- };
29
- /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
30
- * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
31
- *
32
- * ```
33
- * {
34
- * \[selectorString]: {
35
- * \[attributeName]: attribute constant value or accessor function
36
- * }
37
- * }
38
- * ```
39
- * e.g.:
40
- * ```
41
- * {
42
- * \[Area.selectors.area]: {
43
- * "test-value": d => d.value
44
- * }
45
- * }
46
- * ``` */
47
- attributes?: {
48
- [selector: string]: {
49
- [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
50
- };
51
- };
52
- /** Accessor function for getting the values along the X axis. Default: `undefined` */
53
- x: NumericAccessor<Datum>;
54
- /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
55
- id?: ((d: Datum, i: number, ...rest: any[]) => string);
56
- /** Timeline item color accessor function. Default: `d => d.color` */
57
- color?: ColorAccessor<Datum>;
58
- /** Scale for X dimension, e.g. Scale.scaleLinear(). If you set xScale you'll be responsible for setting it's `domain` and `range` as well.
59
- * Only continuous scales are supported.
60
- * Default: `undefined` */
61
- xScale?: ContinuousScale;
62
- /** Scale for Y dimension, e.g. Scale.scaleLinear(). If you set yScale you'll be responsible for setting it's `domain` and `range` as well.
63
- * Only continuous scales are supported.
64
- * Default: `undefined` */
65
- yScale?: ContinuousScale;
66
- /** Identifies whether the component should be excluded from overall X and Y domain calculations or not.
67
- * This property can be useful when you want pass individual data to a component and you don't want it to affect
68
- * the scales of the chart.
69
- * Default: `false` */
70
- excludeFromDomainCalculation?: boolean;
71
- /** */
72
- type?: StringAccessor<Datum>;
73
- /** */
74
- length?: NumericAccessor<Datum>;
75
- /** */
76
- cursor?: StringAccessor<Datum>;
77
- /** Timeline item row accessor function. Records with the `lineRow` will be plotted in one row. Default: `undefined` */
78
- lineRow?: StringAccessor<Datum>;
79
- /** Timeline item duration accessor function. Default: `undefined`. Falls back to the deprecated `length` property */
80
- lineDuration?: NumericAccessor<Datum>;
81
- /** Width of the timeline items. Default: `8` */
82
- lineWidth?: NumericAccessor<Datum>;
83
- /** Display rounded ends for timeline items. Default: `true` */
84
- lineCap?: boolean;
85
- /** Provide a href to an SVG defined in container's `svgDefs` to display an icon at the start of the line. Default: undefined */
86
- lineStartIcon?: StringAccessor<Datum>;
87
- /** Line start icon color accessor function. Default: `undefined` */
88
- lineStartIconColor?: StringAccessor<Datum>;
89
- /** Line start icon size accessor function. Default: `undefined` */
90
- lineStartIconSize?: NumericAccessor<Datum>;
91
- /** Line start icon arrangement configuration. Controls how the icon is positioned relative to the line.
92
- * Accepts values from the Arrangement enum: `Arrangement.Start`, `Arrangement.Middle`, `Arrangement.End` or a string equivalent.
93
- * Default: `Arrangement.Inside` */
94
- lineStartIconArrangement?: GenericAccessor<Arrangement | any, Datum>;
95
- /** Provide a href to an SVG defined in container's `svgDefs` to display an icon at the end of the line. Default: undefined */
96
- lineEndIcon?: StringAccessor<Datum>;
97
- /** Line end icon color accessor function. Default: `undefined` */
98
- lineEndIconColor?: StringAccessor<Datum>;
99
- /** Line end icon size accessor function. Default: `undefined` */
100
- lineEndIconSize?: NumericAccessor<Datum>;
101
- /** Line end icon arrangement configuration. Controls how the icon is positioned relative to the line.
102
- * Accepts values from the Arrangement enum: `Arrangement.Start`, `Arrangement.Middle`, `Arrangement.End` or a string equivalent.
103
- * Default: `Arrangement.Inside` */
104
- lineEndIconArrangement?: GenericAccessor<Arrangement | any, Datum>;
105
- /** Configurable Timeline item cursor when hovering over. Default: `undefined` */
106
- lineCursor?: StringAccessor<Datum>;
107
- /** Sets the minimum line length to 1 pixel for better visibility of small values.
108
- * When `lineCap` is set to `true`, the segment will be rendered as a circle.
109
- * Default: `false` */
110
- showEmptySegments?: boolean;
111
- /** Center small segments when `showEmptySegments` and `lineCap` are set to `true`.
112
- * Default: `true` */
113
- showEmptySegmentsCorrectPosition?: boolean;
114
- /** Timeline row height. Default: `22` */
115
- rowHeight?: number;
116
- /** Alternating row colors. Default: `true` */
117
- alternatingRowColors?: boolean;
118
- /** */
119
- showLabels?: boolean;
120
- /** */
121
- labelWidth?: number;
122
- /** */
123
- maxLabelWidth?: number;
124
- /** Show row labels when set to `true`. Default: `false`. Falls back to deprecated `showLabels` */
125
- showRowLabels?: boolean;
126
- /** Row label style as an object with the `{ [property-name]: value }` format. Default: `undefined` */
127
- rowLabelStyle?: GenericAccessor<Record<string, string>, TimelineRowLabel<Datum>>;
128
- /** Row label formatter function. Default: `undefined` */
129
- rowLabelFormatter?: (key: string, items: Datum[], i: number) => string;
130
- /** Provide an icon href to be displayed before the row label. Default: `undefined` */
131
- rowIcon?: (key: string, items: Datum[], i: number) => TimelineRowIcon | undefined;
132
- /** Fixed label width in pixels. Labels longer than the specified value will be trimmed. Default: `undefined`. Falls back to deprecated `labelWidth`. */
133
- rowLabelWidth?: number;
134
- /** Maximum label width in pixels. Labels longer than the specified value will be trimmed. Default: `undefined`. Falls back to deprecated `maxLabelWidth`. */
135
- rowMaxLabelWidth?: number;
136
- /** Text alignment for labels: `TextAlign.Left`, `TextAlign.Center` or `TextAlign.Right`. Default: `TextAlign.Right` */
137
- rowLabelTextAlign?: TextAlign | any;
138
- arrows?: TimelineArrow[];
139
- /** Control the animation by specify the initial position for new lines as [x, y]. Default: `undefined` */
140
- animationLineEnterPosition?: [number | undefined | null, number | undefined | null] | ((d: Datum & TimelineLineRenderState, i: number, data: (Datum & TimelineLineRenderState)[]) => [number | undefined, number | undefined]) | undefined;
141
- /** Control the animation by specify the destination position for exiting lines as [x, y]. Default: `undefined` */
142
- animationLineExitPosition?: [number | undefined | null, number | undefined | null] | ((d: Datum & TimelineLineRenderState, i: number, data: (Datum & TimelineLineRenderState)[]) => [number | undefined, number | undefined]) | undefined;
143
- /** Scrolling callback function: `(scrollTop: number) => void`. Default: `undefined` */
144
- onScroll?: (scrollTop: number) => void;
145
- data: Datum[];
146
- component: Timeline<Datum> | undefined;
147
- componentContainer: ContainerCore | undefined;
148
- ngAfterViewInit(): void;
149
- ngOnChanges(changes: SimpleChanges): void;
150
- private getConfig;
151
- static ɵfac: i0.ɵɵFactoryDeclaration<VisTimelineComponent<any>, never>;
152
- static ɵcmp: i0.ɵɵComponentDeclaration<VisTimelineComponent<any>, "vis-timeline", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "type": "type"; "length": "length"; "cursor": "cursor"; "lineRow": "lineRow"; "lineDuration": "lineDuration"; "lineWidth": "lineWidth"; "lineCap": "lineCap"; "lineStartIcon": "lineStartIcon"; "lineStartIconColor": "lineStartIconColor"; "lineStartIconSize": "lineStartIconSize"; "lineStartIconArrangement": "lineStartIconArrangement"; "lineEndIcon": "lineEndIcon"; "lineEndIconColor": "lineEndIconColor"; "lineEndIconSize": "lineEndIconSize"; "lineEndIconArrangement": "lineEndIconArrangement"; "lineCursor": "lineCursor"; "showEmptySegments": "showEmptySegments"; "showEmptySegmentsCorrectPosition": "showEmptySegmentsCorrectPosition"; "rowHeight": "rowHeight"; "alternatingRowColors": "alternatingRowColors"; "showLabels": "showLabels"; "labelWidth": "labelWidth"; "maxLabelWidth": "maxLabelWidth"; "showRowLabels": "showRowLabels"; "rowLabelStyle": "rowLabelStyle"; "rowLabelFormatter": "rowLabelFormatter"; "rowIcon": "rowIcon"; "rowLabelWidth": "rowLabelWidth"; "rowMaxLabelWidth": "rowMaxLabelWidth"; "rowLabelTextAlign": "rowLabelTextAlign"; "arrows": "arrows"; "animationLineEnterPosition": "animationLineEnterPosition"; "animationLineExitPosition": "animationLineExitPosition"; "onScroll": "onScroll"; "data": "data"; }, {}, never, never>;
153
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./timeline.component";
3
- export declare class VisTimelineModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisTimelineModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisTimelineModule, [typeof i1.VisTimelineComponent], never, [typeof i1.VisTimelineComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisTimelineModule>;
7
- }
@@ -1,73 +0,0 @@
1
- import { AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { Tooltip, TooltipConfigInterface, ContainerCore, ComponentCore, Position } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisTooltipComponent implements TooltipConfigInterface, AfterViewInit {
5
- /** An array of visualization components to interact with. Default: `[]` */
6
- components?: ComponentCore<unknown>[];
7
- /** Container to where the Tooltip component should be inserted. Default: `undefined` */
8
- container?: HTMLElement;
9
- /** Follow the mouse cursor. Default: `true` */
10
- followCursor?: boolean;
11
- /** Allow the tooltip to be hovered over and interacted with. Default: `false` */
12
- allowHover?: boolean;
13
- /** Horizontal placement of the tooltip. Default: `Position.Auto` */
14
- horizontalPlacement?: Position | string | undefined;
15
- /** Horizontal shift of the tooltip in pixels. Works only with
16
- * `horizontalPlacement` set to `Position.Left` or `Position.Right`.
17
- * Default: `0` */
18
- horizontalShift?: number;
19
- /** Vertical placement of the tooltip. Default: `Position.Top` */
20
- verticalPlacement?: Position | string | undefined;
21
- /** Vertical shift of the tooltip in pixels. Works only with
22
- * `verticalPlacement` set to `Position.Top` or `Position.Bottom`.
23
- * Default: `0` */
24
- verticalShift?: number;
25
- /** Defines the content of the tooltip and hovering over which elements should trigger it.
26
- * An object containing properties in the following format:
27
- *
28
- * ```
29
- * {
30
- * \[selectorString]: (d: unknown) => string | HTMLElement
31
- * }
32
- * ```
33
- * e.g.:
34
- * ```
35
- * {
36
- * \[Area.selectors.area]: (d: AreaDatum[]) => `<div>${d.value.toString()}</div>
37
- * }
38
- * ``` */
39
- triggers?: {
40
- [selector: string]: ((data: any, i: number, elements: (HTMLElement | SVGElement)[]) => string | HTMLElement | undefined | null | void) | undefined | null;
41
- };
42
- /** Custom DOM attributes for the tooltip. Useful when you need to refer to a specific tooltip instance
43
- * by using a CSS selector. Attributes configuration object has the following structure:
44
- *
45
- * ```
46
- * {
47
- * \[attributeName]: attribute value
48
- * }
49
- * ```
50
- * e.g.:
51
- * ```
52
- * {
53
- * \'type': 'area-tooltip',
54
- * \'value': 42
55
- * }
56
- * ``` */
57
- attributes?: {
58
- [attr: string]: string | number | boolean;
59
- };
60
- /** Custom class name for the tooltip. Default: `undefined` */
61
- className?: string;
62
- /** Hide delay in milliseconds. Default: `undefined` */
63
- hideDelay?: number;
64
- /** Show delay in milliseconds. Default: `undefined` */
65
- showDelay?: number;
66
- component: Tooltip | undefined;
67
- componentContainer: ContainerCore | undefined;
68
- ngAfterViewInit(): void;
69
- ngOnChanges(changes: SimpleChanges): void;
70
- private getConfig;
71
- static ɵfac: i0.ɵɵFactoryDeclaration<VisTooltipComponent, never>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<VisTooltipComponent, "vis-tooltip", never, { "components": "components"; "container": "container"; "followCursor": "followCursor"; "allowHover": "allowHover"; "horizontalPlacement": "horizontalPlacement"; "horizontalShift": "horizontalShift"; "verticalPlacement": "verticalPlacement"; "verticalShift": "verticalShift"; "triggers": "triggers"; "attributes": "attributes"; "className": "className"; "hideDelay": "hideDelay"; "showDelay": "showDelay"; }, {}, never, never>;
73
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./tooltip.component";
3
- export declare class VisTooltipModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisTooltipModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisTooltipModule, [typeof i1.VisTooltipComponent], never, [typeof i1.VisTooltipComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisTooltipModule>;
7
- }
@@ -1,125 +0,0 @@
1
- import { AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { TopoJSONMap, TopoJSONMapConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, StringAccessor, MapPointLabelPosition } from '@unovis/ts';
3
- import { GeoProjection } from 'd3-geo';
4
- import * as i0 from "@angular/core";
5
- export declare class VisTopoJSONMapComponent<AreaDatum, PointDatum, LinkDatum> implements TopoJSONMapConfigInterface<AreaDatum, PointDatum, LinkDatum>, AfterViewInit {
6
- /** Animation duration of the data update transitions in milliseconds. Default: `600` */
7
- duration?: number;
8
- /** Events configuration. An object containing properties in the following format:
9
- *
10
- * ```
11
- * {
12
- * \[selectorString]: {
13
- * \[eventType]: callbackFunction
14
- * }
15
- * }
16
- * ```
17
- * e.g.:
18
- * ```
19
- * {
20
- * \[Area.selectors.area]: {
21
- * click: (d) => console.log("Clicked Area", d)
22
- * }
23
- * }
24
- * ``` */
25
- events?: {
26
- [selector: string]: {
27
- [eventType in VisEventType]?: VisEventCallback;
28
- };
29
- };
30
- /** You can set every SVG and HTML visualization object to have a custom DOM attributes, which is useful
31
- * when you want to do unit or end-to-end testing. Attributes configuration object has the following structure:
32
- *
33
- * ```
34
- * {
35
- * \[selectorString]: {
36
- * \[attributeName]: attribute constant value or accessor function
37
- * }
38
- * }
39
- * ```
40
- * e.g.:
41
- * ```
42
- * {
43
- * \[Area.selectors.area]: {
44
- * "test-value": d => d.value
45
- * }
46
- * }
47
- * ``` */
48
- attributes?: {
49
- [selector: string]: {
50
- [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
51
- };
52
- };
53
- /** MapProjection (aka D3's GeoProjection) instance. Default: `MapProjection.Kavrayskiy7()` */
54
- projection?: GeoProjection;
55
- /** Map data in the TopoJSON topology format. Default: `undefined` */
56
- topojson?: TopoJSON.Topology;
57
- /** Name of the map features to be displayed, e.g. 'countries' or 'counties'. Default: `countries` */
58
- mapFeatureName?: string;
59
- /** Set initial map fit to points instead of topojson features. Default: `false` */
60
- mapFitToPoints?: boolean;
61
- /** Initial zoom level. Default: `undefined` */
62
- zoomFactor?: number;
63
- /** Disable pan / zoom interactions. Default: `false` */
64
- disableZoom?: boolean;
65
- /** Zoom extent. Default: `[0.5, 6]` */
66
- zoomExtent?: number[];
67
- /** Zoom animation duration. Default: `400` */
68
- zoomDuration?: number;
69
- /** Link width value or accessor function. Default: `d => d.width ?? 1` */
70
- linkWidth?: NumericAccessor<LinkDatum>;
71
- /** Link color value or accessor function. Default: `d => d.color ?? null` */
72
- linkColor?: ColorAccessor<LinkDatum>;
73
- /** Link cursor value or accessor function. Default: `null` */
74
- linkCursor?: StringAccessor<LinkDatum>;
75
- /** Link id accessor function. Default: `d => d.id` */
76
- linkId?: StringAccessor<LinkDatum>;
77
- /** Link source accessor function. Default: `d => d.source` */
78
- linkSource?: ((l: LinkDatum) => number | string | PointDatum);
79
- /** Link target accessor function. Default: `d => d.target` */
80
- linkTarget?: ((l: LinkDatum) => number | string | PointDatum);
81
- /** Area id accessor function corresponding to the feature id from TopoJSON. Default: `d => d.id ?? ''` */
82
- areaId?: StringAccessor<AreaDatum>;
83
- /** Area color value or accessor function. Default: `d => d.color ?? null` */
84
- areaColor?: ColorAccessor<AreaDatum>;
85
- /** Area cursor value or accessor function. Default: `null` */
86
- areaCursor?: StringAccessor<AreaDatum>;
87
- /** Point color accessor. Default: `d => d.color ?? null` */
88
- pointColor?: ColorAccessor<PointDatum>;
89
- /** Point radius accessor. Default: `d => d.radius ?? 8` */
90
- pointRadius?: NumericAccessor<PointDatum>;
91
- /** Point stroke width accessor. Default: `d => d.strokeWidth ?? null` */
92
- pointStrokeWidth?: NumericAccessor<PointDatum>;
93
- /** Point cursor constant value or accessor function. Default: `null` */
94
- pointCursor?: StringAccessor<PointDatum>;
95
- /** Point longitude accessor function. Default: `d => d.longitude ?? null` */
96
- longitude?: NumericAccessor<PointDatum>;
97
- /** Point latitude accessor function. Default: `d => d.latitude ?? null` */
98
- latitude?: NumericAccessor<PointDatum>;
99
- /** Point label accessor function. Default: `undefined` */
100
- pointLabel?: StringAccessor<PointDatum>;
101
- /** Point label position. Default: `Position.Bottom` */
102
- pointLabelPosition?: MapPointLabelPosition;
103
- /** Point color brightness ratio for switching between dark and light text label color. Default: `0.65` */
104
- pointLabelTextBrightnessRatio?: number;
105
- /** Point id accessor function. Default: `d => d.id` */
106
- pointId?: ((d: PointDatum, i: number) => string);
107
- /** Enables blur and blending between neighbouring points. Default: `false` */
108
- heatmapMode?: boolean;
109
- /** Heatmap blur filter stdDeviation value. Default: `10` */
110
- heatmapModeBlurStdDeviation?: number;
111
- /** Zoom level at which the heatmap mode will be disabled. Default: `2.5` */
112
- heatmapModeZoomLevelThreshold?: number;
113
- data: {
114
- areas?: AreaDatum[];
115
- points?: PointDatum[];
116
- links?: LinkDatum[];
117
- };
118
- component: TopoJSONMap<AreaDatum, PointDatum, LinkDatum> | undefined;
119
- componentContainer: ContainerCore | undefined;
120
- ngAfterViewInit(): void;
121
- ngOnChanges(changes: SimpleChanges): void;
122
- private getConfig;
123
- static ɵfac: i0.ɵɵFactoryDeclaration<VisTopoJSONMapComponent<any, any, any>, never>;
124
- static ɵcmp: i0.ɵɵComponentDeclaration<VisTopoJSONMapComponent<any, any, any>, "vis-topojson-map", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "projection": "projection"; "topojson": "topojson"; "mapFeatureName": "mapFeatureName"; "mapFitToPoints": "mapFitToPoints"; "zoomFactor": "zoomFactor"; "disableZoom": "disableZoom"; "zoomExtent": "zoomExtent"; "zoomDuration": "zoomDuration"; "linkWidth": "linkWidth"; "linkColor": "linkColor"; "linkCursor": "linkCursor"; "linkId": "linkId"; "linkSource": "linkSource"; "linkTarget": "linkTarget"; "areaId": "areaId"; "areaColor": "areaColor"; "areaCursor": "areaCursor"; "pointColor": "pointColor"; "pointRadius": "pointRadius"; "pointStrokeWidth": "pointStrokeWidth"; "pointCursor": "pointCursor"; "longitude": "longitude"; "latitude": "latitude"; "pointLabel": "pointLabel"; "pointLabelPosition": "pointLabelPosition"; "pointLabelTextBrightnessRatio": "pointLabelTextBrightnessRatio"; "pointId": "pointId"; "heatmapMode": "heatmapMode"; "heatmapModeBlurStdDeviation": "heatmapModeBlurStdDeviation"; "heatmapModeZoomLevelThreshold": "heatmapModeZoomLevelThreshold"; "data": "data"; }, {}, never, never>;
125
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./topojson-map.component";
3
- export declare class VisTopoJSONMapModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisTopoJSONMapModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisTopoJSONMapModule, [typeof i1.VisTopoJSONMapComponent], never, [typeof i1.VisTopoJSONMapComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisTopoJSONMapModule>;
7
- }