@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
@@ -1,42 +0,0 @@
1
- import { AfterViewInit, SimpleChanges, ElementRef } from '@angular/core';
2
- import { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface, GenericAccessor, BulletShape, BulletLegendOrientation } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisBulletLegendComponent implements BulletLegendConfigInterface, AfterViewInit {
5
- containerRef: ElementRef;
6
- /** Legend items. Array of `BulletLegendItemInterface`:
7
- * ```
8
- * {
9
- * name: string | number;
10
- * color?: string;
11
- * shape?: BulletShape;
12
- * inactive?: boolean;
13
- * hidden?: boolean;
14
- * pointer?: boolean;
15
- * }
16
- * ```
17
- * Default: `[]` */
18
- items: BulletLegendItemInterface[];
19
- /** Apply a specific class to the labels. Default: `''` */
20
- labelClassName?: string;
21
- /** Callback function for the legend item click. Default: `undefined` */
22
- onLegendItemClick?: ((d: BulletLegendItemInterface, i: number) => void);
23
- /** Label text (<span> element) font-size CSS. Default: `null` */
24
- labelFontSize?: string | null;
25
- /** Label text (<span> element) max-width CSS property. Default: `null` */
26
- labelMaxWidth?: string | null;
27
- /** Bullet shape size, mapped to the width and height CSS properties. Default: `null` */
28
- bulletSize?: string | null;
29
- /** Spacing between multiple bullet symbols in pixels. Default: `4` */
30
- bulletSpacing?: number;
31
- /** Bullet shape enum value or accessor function. Default: `d => d.shape ?? BulletShape.Circle */
32
- bulletShape?: GenericAccessor<BulletShape, BulletLegendItemInterface>;
33
- /** Legend orientation. When set to `BulletLegendOrientation.Vertical`, each legend item will
34
- * start on a new line. Default: `BulletLegendOrientation.Horizontal` */
35
- orientation?: BulletLegendOrientation | string;
36
- component: BulletLegend | undefined;
37
- ngAfterViewInit(): void;
38
- ngOnChanges(changes: SimpleChanges): void;
39
- private getConfig;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<VisBulletLegendComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<VisBulletLegendComponent, "vis-bullet-legend", never, { "items": "items"; "labelClassName": "labelClassName"; "onLegendItemClick": "onLegendItemClick"; "labelFontSize": "labelFontSize"; "labelMaxWidth": "labelMaxWidth"; "bulletSize": "bulletSize"; "bulletSpacing": "bulletSpacing"; "bulletShape": "bulletShape"; "orientation": "orientation"; }, {}, never, never>;
42
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./bullet-legend.component";
3
- export declare class VisBulletLegendModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisBulletLegendModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisBulletLegendModule, [typeof i1.VisBulletLegendComponent], never, [typeof i1.VisBulletLegendComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisBulletLegendModule>;
7
- }
@@ -1,212 +0,0 @@
1
- import { AfterViewInit, SimpleChanges, ElementRef } from '@angular/core';
2
- import { LeafletFlowMap, LeafletFlowMapConfigInterface, GenericDataRecord, VisEventType, VisEventCallback, Bounds, MapLibreStyleSpecs, LeafletMapRenderer, MapZoomState, NumericAccessor, StringAccessor, GenericAccessor, LeafletMapPointShape, ColorAccessor, LeafletMapPointDatum, LeafletMapClusterDatum, LeafletMapPointStyles, Tooltip } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisLeafletFlowMapComponent<PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord> implements LeafletFlowMapConfigInterface<PointDatum, FlowDatum>, AfterViewInit {
5
- containerRef: ElementRef;
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
- /** Width in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
54
- width?: number | string;
55
- /** Height in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
56
- height?: number | string;
57
- /** Animation duration when the map is automatically panning or zooming to a point or area. Default: `1500` ms */
58
- flyToDuration?: number;
59
- /** Padding to be used when the `fitView` function has been called. The value is in pixels, [topLeft, bottomRight]. Default: `[150, 150]` */
60
- fitViewPadding?: [number, number];
61
- /** Animation duration for the `setZoom` function. Default: `800` ms */
62
- zoomDuration?: number;
63
- /** Default bounds that will be applied on the first map render if the bounds property is not set. Default: `undefined` */
64
- initialBounds?: Bounds;
65
- /** Force set map bounds on config and data updates. Default: `undefined` */
66
- fitBoundsOnUpdate?: Bounds;
67
- /** Fit the view to contain the data points on map initialization. Default: `true` */
68
- fitViewOnInit?: boolean;
69
- /** Fit the view to contain the data points on map config and data updates. Default: `false` */
70
- fitViewOnUpdate?: boolean;
71
- /** MapLibre `StyleSpecification` settings, or a URL to it. When renderer is set to`LeafletMapRenderer.Raster`, provide a template URL. Default: `undefined` */
72
- style: MapLibreStyleSpecs | string | undefined;
73
- /** MapLibre `StyleSpecification` settings or URL for dark theme. Default: `undefined` */
74
- styleDarkTheme?: MapLibreStyleSpecs | string | undefined;
75
- /** Tile server access token or API key. Default: `''` */
76
- accessToken?: string;
77
- /** Array of attribution labels. Default: `['<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap contributors</a>']` */
78
- attribution?: string[];
79
- /** Rendering mode for map's tile layer. For raster files, use `LeafletMapRenderer.Raster`. Default: `LeafletMapRenderer.MapLibre` */
80
- renderer?: LeafletMapRenderer | string;
81
- /** Function to be called after the map's async initialization is done. Default: `undefined` */
82
- onMapInitialized?: (() => void);
83
- /** Map Move / Zoom unified callback function. Default: `undefined` */
84
- onMapMoveZoom?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
85
- /** Map Move Start callback function. Default: `undefined` */
86
- onMapMoveStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
87
- /** Map Move End callback function. Default: `undefined` */
88
- onMapMoveEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
89
- /** Map Zoom Start callback function. Default: `undefined` */
90
- onMapZoomStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
91
- /** Map Zoom End callback function. Default: `undefined` */
92
- onMapZoomEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
93
- /** Map Zoom Click callback function. Default: `undefined` */
94
- onMapClick?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
95
- /** Point longitude accessor function. Default: `d => d.longitude` */
96
- pointLongitude?: NumericAccessor<PointDatum>;
97
- /** Point latitude accessor function. Default: `d => d.latitude` */
98
- pointLatitude?: NumericAccessor<PointDatum>;
99
- /** Point id accessor function or constant value. Default: `d => d.id` */
100
- pointId?: StringAccessor<PointDatum>;
101
- /** Point shape accessor function or constant value. Default: `d => d.shape` */
102
- pointShape?: GenericAccessor<LeafletMapPointShape | string, PointDatum>;
103
- /** Point color accessor function or constant value. Default: `d => d.color` */
104
- pointColor?: ColorAccessor<LeafletMapPointDatum<PointDatum>>;
105
- /** Point radius accessor function or constant value. Default: `undefined` */
106
- pointRadius?: NumericAccessor<LeafletMapPointDatum<PointDatum>>;
107
- /** Point inner label accessor function. Default: `undefined` */
108
- pointLabel?: StringAccessor<LeafletMapPointDatum<PointDatum>>;
109
- /** Point inner label color accessor function or constant value.
110
- * By default, the label color will be set, depending on the point brightness, either to
111
- * `--vis-map-point-inner-label-text-color-light` or to `--vis-map-point-inner-label-text-color-dark` CSS variable.
112
- * Default: `undefined` */
113
- pointLabelColor?: StringAccessor<LeafletMapPointDatum<PointDatum>>;
114
- /** Point bottom label accessor function. Default: `''` */
115
- pointBottomLabel?: StringAccessor<LeafletMapPointDatum<PointDatum>>;
116
- /** Point cursor value or accessor function. Default: `null` */
117
- pointCursor?: StringAccessor<LeafletMapPointDatum<PointDatum>>;
118
- /** The width of the ring when a point has a `LeafletMapPointShape.Ring` shape. Default: `1.25` */
119
- pointRingWidth?: number;
120
- /** Set selected point by its unique id. Default: `undefined` */
121
- selectedPointId?: string;
122
- /** Cluster color accessor function or constant value. Default: `undefined` */
123
- clusterColor?: ColorAccessor<LeafletMapClusterDatum<PointDatum>>;
124
- /** Cluster radius accessor function or constant value. Default: `undefined` */
125
- clusterRadius?: NumericAccessor<LeafletMapClusterDatum<PointDatum>>;
126
- /** Cluster inner label accessor function. Default: `d => d.point_count` */
127
- clusterLabel?: StringAccessor<LeafletMapClusterDatum<PointDatum>>;
128
- /** Cluster inner label color accessor function or constant value.
129
- * By default, the label color will be set, depending on the point brightness, either to
130
- * `--vis-map-cluster-inner-label-text-color-light` or to `--vis-map-cluster-inner-label-text-color-dark` CSS variable.
131
- * Default: `undefined` */
132
- clusterLabelColor?: StringAccessor<LeafletMapClusterDatum<PointDatum>>;
133
- /** Cluster bottom label accessor function. Default: `''` */
134
- clusterBottomLabel?: StringAccessor<LeafletMapClusterDatum<PointDatum>>;
135
- /** The width of the cluster point ring. Default: `1.25` */
136
- clusterRingWidth?: number;
137
- /** When cluster is expanded, show a background circle to better separate points from the base map. Default: `true` */
138
- clusterBackground?: boolean;
139
- /** Defines whether the cluster should expand on click or not. Default: `true` */
140
- clusterExpandOnClick?: boolean;
141
- /** Clustering distance in pixels. This value will be passed to Supercluster as the `radius` property https://github.com/mapbox/supercluster. Default: `55` */
142
- clusteringDistance?: number;
143
- /** A single map point can have multiple properties displayed as a small pie chart (or a donut chart for a cluster of points).
144
- * By setting the colorMap configuration you can specify data properties that should be mapped to various pie / donut segments.
145
- *
146
- * ```
147
- * {
148
- * \[key in keyof Datum]?: { color: string, className?: string }
149
- * }
150
- * ```
151
- * e.g.:
152
- * ```
153
- * {
154
- * \healthy: { color: 'green' },
155
- * \warning: { color: 'orange' },
156
- * \danger: { color: 'red' }
157
- * }
158
- * ```
159
- * where every data point has the `healthy`, `warning` and `danger` numerical or boolean property. */
160
- colorMap?: LeafletMapPointStyles<PointDatum>;
161
- /** A TopoJSON Geometry layer to be displayed on top of the map. Supports fill and stroke */
162
- topoJSONLayer?: {
163
- sources: any;
164
- featureName?: string;
165
- fillProperty?: string;
166
- strokeProperty?: string;
167
- fillOpacity?: number;
168
- strokeOpacity?: number;
169
- strokeWidth?: number;
170
- };
171
- /** Tooltip component. Default: `undefined` */
172
- tooltip?: Tooltip;
173
- /** Alternative text description of the chart for accessibility purposes. It will be applied as an
174
- * `aria-label` attribute to the div element containing your chart. Default: `undefined`. */
175
- ariaLabel?: string | null | undefined;
176
- /** Flow source point longitude accessor function or value. Default:.`f => f.sourceLongitude` */
177
- sourceLongitude?: NumericAccessor<FlowDatum>;
178
- /** Flow source point latitude accessor function or value. Default: `f => f.sourceLatitude` */
179
- sourceLatitude?: NumericAccessor<FlowDatum>;
180
- /** Flow target point longitude accessor function or value. Default: `f => f.targetLongitude` */
181
- targetLongitude?: NumericAccessor<FlowDatum>;
182
- /** Flow target point latitude accessor function or value. Default: `f => f.targetLatitude` */
183
- targetLatitude?: NumericAccessor<FlowDatum>;
184
- /** Flow source point radius accessor function or value. Default: `3` */
185
- sourcePointRadius?: NumericAccessor<FlowDatum>;
186
- /** Source point color accessor function or value. Default: `'#88919f'` */
187
- sourcePointColor?: ColorAccessor<FlowDatum>;
188
- /** Flow particle color accessor function or value. Default: `'#949dad'` */
189
- flowParticleColor?: ColorAccessor<FlowDatum>;
190
- /** Flow particle radius accessor function or value. Default: `1.1` */
191
- flowParticleRadius?: NumericAccessor<FlowDatum>;
192
- /** Flow particle speed accessor function or value. The unit is arbitrary, recommended range is 0 – 0.2. Default: `0.07` */
193
- flowParticleSpeed?: NumericAccessor<FlowDatum>;
194
- /** Flow particle density accessor function or value on the range of [0, 1]. Default: `0.6` */
195
- flowParticleDensity?: NumericAccessor<FlowDatum>;
196
- /** Flow source point click callback function. Default: `undefined` */
197
- onSourcePointClick?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
198
- /** Flow source point mouse over callback function. Default: `undefined` */
199
- onSourcePointMouseEnter?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
200
- /** Flow source point mouse leave callback function. Default: `undefined` */
201
- onSourcePointMouseLeave?: (f: FlowDatum, event: MouseEvent) => void;
202
- data: {
203
- points: PointDatum[];
204
- flows?: FlowDatum[];
205
- };
206
- component: LeafletFlowMap<PointDatum, FlowDatum> | undefined;
207
- ngAfterViewInit(): void;
208
- ngOnChanges(changes: SimpleChanges): void;
209
- private getConfig;
210
- static ɵfac: i0.ɵɵFactoryDeclaration<VisLeafletFlowMapComponent<any, any>, never>;
211
- static ɵcmp: i0.ɵɵComponentDeclaration<VisLeafletFlowMapComponent<any, any>, "vis-leaflet-flow-map", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "width": "width"; "height": "height"; "flyToDuration": "flyToDuration"; "fitViewPadding": "fitViewPadding"; "zoomDuration": "zoomDuration"; "initialBounds": "initialBounds"; "fitBoundsOnUpdate": "fitBoundsOnUpdate"; "fitViewOnInit": "fitViewOnInit"; "fitViewOnUpdate": "fitViewOnUpdate"; "style": "style"; "styleDarkTheme": "styleDarkTheme"; "accessToken": "accessToken"; "attribution": "attribution"; "renderer": "renderer"; "onMapInitialized": "onMapInitialized"; "onMapMoveZoom": "onMapMoveZoom"; "onMapMoveStart": "onMapMoveStart"; "onMapMoveEnd": "onMapMoveEnd"; "onMapZoomStart": "onMapZoomStart"; "onMapZoomEnd": "onMapZoomEnd"; "onMapClick": "onMapClick"; "pointLongitude": "pointLongitude"; "pointLatitude": "pointLatitude"; "pointId": "pointId"; "pointShape": "pointShape"; "pointColor": "pointColor"; "pointRadius": "pointRadius"; "pointLabel": "pointLabel"; "pointLabelColor": "pointLabelColor"; "pointBottomLabel": "pointBottomLabel"; "pointCursor": "pointCursor"; "pointRingWidth": "pointRingWidth"; "selectedPointId": "selectedPointId"; "clusterColor": "clusterColor"; "clusterRadius": "clusterRadius"; "clusterLabel": "clusterLabel"; "clusterLabelColor": "clusterLabelColor"; "clusterBottomLabel": "clusterBottomLabel"; "clusterRingWidth": "clusterRingWidth"; "clusterBackground": "clusterBackground"; "clusterExpandOnClick": "clusterExpandOnClick"; "clusteringDistance": "clusteringDistance"; "colorMap": "colorMap"; "topoJSONLayer": "topoJSONLayer"; "tooltip": "tooltip"; "ariaLabel": "ariaLabel"; "sourceLongitude": "sourceLongitude"; "sourceLatitude": "sourceLatitude"; "targetLongitude": "targetLongitude"; "targetLatitude": "targetLatitude"; "sourcePointRadius": "sourcePointRadius"; "sourcePointColor": "sourcePointColor"; "flowParticleColor": "flowParticleColor"; "flowParticleRadius": "flowParticleRadius"; "flowParticleSpeed": "flowParticleSpeed"; "flowParticleDensity": "flowParticleDensity"; "onSourcePointClick": "onSourcePointClick"; "onSourcePointMouseEnter": "onSourcePointMouseEnter"; "onSourcePointMouseLeave": "onSourcePointMouseLeave"; "data": "data"; }, {}, never, never>;
212
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./leaflet-flow-map.component";
3
- export declare class VisLeafletFlowMapModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisLeafletFlowMapModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisLeafletFlowMapModule, [typeof i1.VisLeafletFlowMapComponent], never, [typeof i1.VisLeafletFlowMapComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisLeafletFlowMapModule>;
7
- }
@@ -1,183 +0,0 @@
1
- import { AfterViewInit, SimpleChanges, ElementRef } from '@angular/core';
2
- import { LeafletMap, LeafletMapConfigInterface, GenericDataRecord, VisEventType, VisEventCallback, Bounds, MapLibreStyleSpecs, LeafletMapRenderer, MapZoomState, NumericAccessor, StringAccessor, GenericAccessor, LeafletMapPointShape, ColorAccessor, LeafletMapPointDatum, LeafletMapClusterDatum, LeafletMapPointStyles, Tooltip } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisLeafletMapComponent<Datum extends GenericDataRecord> implements LeafletMapConfigInterface<Datum>, AfterViewInit {
5
- containerRef: ElementRef;
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
- /** Width in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
54
- width?: number | string;
55
- /** Height in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
56
- height?: number | string;
57
- /** Animation duration when the map is automatically panning or zooming to a point or area. Default: `1500` ms */
58
- flyToDuration?: number;
59
- /** Padding to be used when the `fitView` function has been called. The value is in pixels, [topLeft, bottomRight]. Default: `[150, 150]` */
60
- fitViewPadding?: [number, number];
61
- /** Animation duration for the `setZoom` function. Default: `800` ms */
62
- zoomDuration?: number;
63
- /** Default bounds that will be applied on the first map render if the bounds property is not set. Default: `undefined` */
64
- initialBounds?: Bounds;
65
- /** Force set map bounds on config and data updates. Default: `undefined` */
66
- fitBoundsOnUpdate?: Bounds;
67
- /** Fit the view to contain the data points on map initialization. Default: `true` */
68
- fitViewOnInit?: boolean;
69
- /** Fit the view to contain the data points on map config and data updates. Default: `false` */
70
- fitViewOnUpdate?: boolean;
71
- /** MapLibre `StyleSpecification` settings, or a URL to it. When renderer is set to`LeafletMapRenderer.Raster`, provide a template URL. Default: `undefined` */
72
- style: MapLibreStyleSpecs | string | undefined;
73
- /** MapLibre `StyleSpecification` settings or URL for dark theme. Default: `undefined` */
74
- styleDarkTheme?: MapLibreStyleSpecs | string | undefined;
75
- /** Tile server access token or API key. Default: `''` */
76
- accessToken?: string;
77
- /** Array of attribution labels. Default: `['<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap contributors</a>']` */
78
- attribution?: string[];
79
- /** Rendering mode for map's tile layer. For raster files, use `LeafletMapRenderer.Raster`. Default: `LeafletMapRenderer.MapLibre` */
80
- renderer?: LeafletMapRenderer | string;
81
- /** Function to be called after the map's async initialization is done. Default: `undefined` */
82
- onMapInitialized?: (() => void);
83
- /** Map Move / Zoom unified callback function. Default: `undefined` */
84
- onMapMoveZoom?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
85
- /** Map Move Start callback function. Default: `undefined` */
86
- onMapMoveStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
87
- /** Map Move End callback function. Default: `undefined` */
88
- onMapMoveEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
89
- /** Map Zoom Start callback function. Default: `undefined` */
90
- onMapZoomStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
91
- /** Map Zoom End callback function. Default: `undefined` */
92
- onMapZoomEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
93
- /** Map Zoom Click callback function. Default: `undefined` */
94
- onMapClick?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
95
- /** Point longitude accessor function. Default: `d => d.longitude` */
96
- pointLongitude?: NumericAccessor<Datum>;
97
- /** Point latitude accessor function. Default: `d => d.latitude` */
98
- pointLatitude?: NumericAccessor<Datum>;
99
- /** Point id accessor function or constant value. Default: `d => d.id` */
100
- pointId?: StringAccessor<Datum>;
101
- /** Point shape accessor function or constant value. Default: `d => d.shape` */
102
- pointShape?: GenericAccessor<LeafletMapPointShape | string, Datum>;
103
- /** Point color accessor function or constant value. Default: `d => d.color` */
104
- pointColor?: ColorAccessor<LeafletMapPointDatum<Datum>>;
105
- /** Point radius accessor function or constant value. Default: `undefined` */
106
- pointRadius?: NumericAccessor<LeafletMapPointDatum<Datum>>;
107
- /** Point inner label accessor function. Default: `undefined` */
108
- pointLabel?: StringAccessor<LeafletMapPointDatum<Datum>>;
109
- /** Point inner label color accessor function or constant value.
110
- * By default, the label color will be set, depending on the point brightness, either to
111
- * `--vis-map-point-inner-label-text-color-light` or to `--vis-map-point-inner-label-text-color-dark` CSS variable.
112
- * Default: `undefined` */
113
- pointLabelColor?: StringAccessor<LeafletMapPointDatum<Datum>>;
114
- /** Point bottom label accessor function. Default: `''` */
115
- pointBottomLabel?: StringAccessor<LeafletMapPointDatum<Datum>>;
116
- /** Point cursor value or accessor function. Default: `null` */
117
- pointCursor?: StringAccessor<LeafletMapPointDatum<Datum>>;
118
- /** The width of the ring when a point has a `LeafletMapPointShape.Ring` shape. Default: `1.25` */
119
- pointRingWidth?: number;
120
- /** Set selected point by its unique id. Default: `undefined` */
121
- selectedPointId?: string;
122
- /** Cluster color accessor function or constant value. Default: `undefined` */
123
- clusterColor?: ColorAccessor<LeafletMapClusterDatum<Datum>>;
124
- /** Cluster radius accessor function or constant value. Default: `undefined` */
125
- clusterRadius?: NumericAccessor<LeafletMapClusterDatum<Datum>>;
126
- /** Cluster inner label accessor function. Default: `d => d.point_count` */
127
- clusterLabel?: StringAccessor<LeafletMapClusterDatum<Datum>>;
128
- /** Cluster inner label color accessor function or constant value.
129
- * By default, the label color will be set, depending on the point brightness, either to
130
- * `--vis-map-cluster-inner-label-text-color-light` or to `--vis-map-cluster-inner-label-text-color-dark` CSS variable.
131
- * Default: `undefined` */
132
- clusterLabelColor?: StringAccessor<LeafletMapClusterDatum<Datum>>;
133
- /** Cluster bottom label accessor function. Default: `''` */
134
- clusterBottomLabel?: StringAccessor<LeafletMapClusterDatum<Datum>>;
135
- /** The width of the cluster point ring. Default: `1.25` */
136
- clusterRingWidth?: number;
137
- /** When cluster is expanded, show a background circle to better separate points from the base map. Default: `true` */
138
- clusterBackground?: boolean;
139
- /** Defines whether the cluster should expand on click or not. Default: `true` */
140
- clusterExpandOnClick?: boolean;
141
- /** Clustering distance in pixels. This value will be passed to Supercluster as the `radius` property https://github.com/mapbox/supercluster. Default: `55` */
142
- clusteringDistance?: number;
143
- /** A single map point can have multiple properties displayed as a small pie chart (or a donut chart for a cluster of points).
144
- * By setting the colorMap configuration you can specify data properties that should be mapped to various pie / donut segments.
145
- *
146
- * ```
147
- * {
148
- * \[key in keyof Datum]?: { color: string, className?: string }
149
- * }
150
- * ```
151
- * e.g.:
152
- * ```
153
- * {
154
- * \healthy: { color: 'green' },
155
- * \warning: { color: 'orange' },
156
- * \danger: { color: 'red' }
157
- * }
158
- * ```
159
- * where every data point has the `healthy`, `warning` and `danger` numerical or boolean property. */
160
- colorMap?: LeafletMapPointStyles<Datum>;
161
- /** A TopoJSON Geometry layer to be displayed on top of the map. Supports fill and stroke */
162
- topoJSONLayer?: {
163
- sources: any;
164
- featureName?: string;
165
- fillProperty?: string;
166
- strokeProperty?: string;
167
- fillOpacity?: number;
168
- strokeOpacity?: number;
169
- strokeWidth?: number;
170
- };
171
- /** Tooltip component. Default: `undefined` */
172
- tooltip?: Tooltip;
173
- /** Alternative text description of the chart for accessibility purposes. It will be applied as an
174
- * `aria-label` attribute to the div element containing your chart. Default: `undefined`. */
175
- ariaLabel?: string | null | undefined;
176
- data: Datum[];
177
- component: LeafletMap<Datum> | undefined;
178
- ngAfterViewInit(): void;
179
- ngOnChanges(changes: SimpleChanges): void;
180
- private getConfig;
181
- static ɵfac: i0.ɵɵFactoryDeclaration<VisLeafletMapComponent<any>, never>;
182
- static ɵcmp: i0.ɵɵComponentDeclaration<VisLeafletMapComponent<any>, "vis-leaflet-map", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "width": "width"; "height": "height"; "flyToDuration": "flyToDuration"; "fitViewPadding": "fitViewPadding"; "zoomDuration": "zoomDuration"; "initialBounds": "initialBounds"; "fitBoundsOnUpdate": "fitBoundsOnUpdate"; "fitViewOnInit": "fitViewOnInit"; "fitViewOnUpdate": "fitViewOnUpdate"; "style": "style"; "styleDarkTheme": "styleDarkTheme"; "accessToken": "accessToken"; "attribution": "attribution"; "renderer": "renderer"; "onMapInitialized": "onMapInitialized"; "onMapMoveZoom": "onMapMoveZoom"; "onMapMoveStart": "onMapMoveStart"; "onMapMoveEnd": "onMapMoveEnd"; "onMapZoomStart": "onMapZoomStart"; "onMapZoomEnd": "onMapZoomEnd"; "onMapClick": "onMapClick"; "pointLongitude": "pointLongitude"; "pointLatitude": "pointLatitude"; "pointId": "pointId"; "pointShape": "pointShape"; "pointColor": "pointColor"; "pointRadius": "pointRadius"; "pointLabel": "pointLabel"; "pointLabelColor": "pointLabelColor"; "pointBottomLabel": "pointBottomLabel"; "pointCursor": "pointCursor"; "pointRingWidth": "pointRingWidth"; "selectedPointId": "selectedPointId"; "clusterColor": "clusterColor"; "clusterRadius": "clusterRadius"; "clusterLabel": "clusterLabel"; "clusterLabelColor": "clusterLabelColor"; "clusterBottomLabel": "clusterBottomLabel"; "clusterRingWidth": "clusterRingWidth"; "clusterBackground": "clusterBackground"; "clusterExpandOnClick": "clusterExpandOnClick"; "clusteringDistance": "clusteringDistance"; "colorMap": "colorMap"; "topoJSONLayer": "topoJSONLayer"; "tooltip": "tooltip"; "ariaLabel": "ariaLabel"; "data": "data"; }, {}, never, never>;
183
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./leaflet-map.component";
3
- export declare class VisLeafletMapModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisLeafletMapModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisLeafletMapModule, [typeof i1.VisLeafletMapComponent], never, [typeof i1.VisLeafletMapComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisLeafletMapModule>;
7
- }
@@ -1,24 +0,0 @@
1
- import { AfterViewInit, SimpleChanges, ElementRef } from '@angular/core';
2
- import { RollingPinLegend, RollingPinLegendConfigInterface, RollingPinLegendItem } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisRollingPinLegendComponent implements RollingPinLegendConfigInterface, AfterViewInit {
5
- containerRef: ElementRef;
6
- /** Rects forming a legend. Array of `string`, representing colors.
7
- *
8
- * Default: `[]` */
9
- rects: RollingPinLegendItem[];
10
- /** Label on the left side of the legend. Default: `undefined` */
11
- leftLabelText?: string;
12
- /** Label on the right side of the legend. Default: `undefined` */
13
- rightLabelText?: string;
14
- /** Apply a specific class to the labels. Default: `''` */
15
- labelClassName?: string;
16
- /** Label text (<span> element) font-size CSS. Default: `null` */
17
- labelFontSize?: string | null;
18
- component: RollingPinLegend | undefined;
19
- ngAfterViewInit(): void;
20
- ngOnChanges(changes: SimpleChanges): void;
21
- private getConfig;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<VisRollingPinLegendComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<VisRollingPinLegendComponent, "vis-rolling-pin-legend", never, { "rects": "rects"; "leftLabelText": "leftLabelText"; "rightLabelText": "rightLabelText"; "labelClassName": "labelClassName"; "labelFontSize": "labelFontSize"; }, {}, never, never>;
24
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./rolling-pin-legend.component";
3
- export declare class VisRollingPinLegendModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisRollingPinLegendModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisRollingPinLegendModule, [typeof i1.VisRollingPinLegendComponent], never, [typeof i1.VisRollingPinLegendComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisRollingPinLegendModule>;
7
- }
@@ -1,53 +0,0 @@
1
- {
2
- "name": "@unovis/angular",
3
- "description": "Modular data visualization framework for React, Angular, Svelte, Vue, Solid, and vanilla TypeScript or JavaScript",
4
- "version": "1.7.0-Phoenix.0",
5
- "packageManager": "npm@10.9.1",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/f5/unovis.git",
9
- "directory": "packages/angular"
10
- },
11
- "homepage": "https://unovis.dev",
12
- "bugs": {
13
- "url": "https://github.com/f5/unovis/issues"
14
- },
15
- "keywords": [
16
- "angular",
17
- "data visualization",
18
- "maps",
19
- "charts",
20
- "graphs"
21
- ],
22
- "author": "Nikita Rokotyan, F5 Inc. <nikita@f5.com> (https://rokotyan.com)",
23
- "maintainers": [
24
- "Nikita Rokotyan <nikita@f5.com> (https://rokotyan.com)",
25
- "Qian Liu <qi.liu@f5.com>",
26
- "Surya Hanumandla <s.hanumandla@f5.com>"
27
- ],
28
- "license": "Apache-2.0",
29
- "main": "bundles/unovis-angular.umd.js",
30
- "module": "fesm2015/unovis-angular.js",
31
- "typings": "unovis-angular.d.ts",
32
- "type": "module",
33
- "sideEffects": false,
34
- "files": [
35
- "dist"
36
- ],
37
- "dependencies": {
38
- "tslib": "^2.3.1"
39
- },
40
- "peerDependencies": {
41
- "@unovis/ts": "1.7.0-Phoenix.0",
42
- "@angular/common": "12 - 19",
43
- "@angular/compiler": "12 - 19",
44
- "@angular/core": "12 - 19"
45
- },
46
- "overrides": {
47
- "minimatch": "3.0.5",
48
- "webpack": "5.76.0"
49
- },
50
- "es2015": "fesm2015/unovis-angular.js",
51
- "esm2015": "esm2015/unovis-angular.js",
52
- "fesm2015": "fesm2015/unovis-angular.js"
53
- }
@@ -1,2 +0,0 @@
1
- export * from './containers';
2
- export * from './components';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@unovis/angular" />
5
- export * from './public-api';