@unovis/angular 1.6.8-stellar-beta.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 (139) 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 +28 -43
  7. package/dist/lib/bundles/unovis-angular.umd.js +0 -3928
  8. package/dist/lib/bundles/unovis-angular.umd.js.map +0 -1
  9. package/dist/lib/components/annotations/annotations.component.d.ts +0 -75
  10. package/dist/lib/components/annotations/annotations.module.d.ts +0 -7
  11. package/dist/lib/components/area/area.component.d.ts +0 -106
  12. package/dist/lib/components/area/area.module.d.ts +0 -7
  13. package/dist/lib/components/axis/axis.component.d.ts +0 -126
  14. package/dist/lib/components/axis/axis.module.d.ts +0 -7
  15. package/dist/lib/components/brush/brush.component.d.ts +0 -86
  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 -132
  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 -302
  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 -194
  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 -159
  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 -215
  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 -53
  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 -45
  62. package/dist/lib/esm2015/components/annotations/annotations.module.js +0 -18
  63. package/dist/lib/esm2015/components/area/area.component.js +0 -87
  64. package/dist/lib/esm2015/components/area/area.module.js +0 -18
  65. package/dist/lib/esm2015/components/axis/axis.component.js +0 -111
  66. package/dist/lib/esm2015/components/axis/axis.module.js +0 -18
  67. package/dist/lib/esm2015/components/brush/brush.component.js +0 -71
  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 -95
  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 -237
  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 -165
  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 -137
  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 -173
  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 -57
  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/flow-legend/flow-legend.component.js +0 -60
  116. package/dist/lib/esm2015/html-components/flow-legend/flow-legend.module.js +0 -18
  117. package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.component.js +0 -170
  118. package/dist/lib/esm2015/html-components/leaflet-flow-map/leaflet-flow-map.module.js +0 -18
  119. package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.component.js +0 -144
  120. package/dist/lib/esm2015/html-components/leaflet-map/leaflet-map.module.js +0 -18
  121. package/dist/lib/esm2015/html-components/rolling-pin-legend/rolling-pin-legend.component.js +0 -48
  122. package/dist/lib/esm2015/html-components/rolling-pin-legend/rolling-pin-legend.module.js +0 -18
  123. package/dist/lib/esm2015/public-api.js +0 -3
  124. package/dist/lib/esm2015/unovis-angular.js +0 -5
  125. package/dist/lib/fesm2015/unovis-angular.js +0 -3113
  126. package/dist/lib/fesm2015/unovis-angular.js.map +0 -1
  127. package/dist/lib/html-components/bullet-legend/bullet-legend.component.d.ts +0 -42
  128. package/dist/lib/html-components/bullet-legend/bullet-legend.module.d.ts +0 -7
  129. package/dist/lib/html-components/flow-legend/flow-legend.component.d.ts +0 -34
  130. package/dist/lib/html-components/flow-legend/flow-legend.module.d.ts +0 -7
  131. package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.component.d.ts +0 -212
  132. package/dist/lib/html-components/leaflet-flow-map/leaflet-flow-map.module.d.ts +0 -7
  133. package/dist/lib/html-components/leaflet-map/leaflet-map.component.d.ts +0 -183
  134. package/dist/lib/html-components/leaflet-map/leaflet-map.module.d.ts +0 -7
  135. package/dist/lib/html-components/rolling-pin-legend/rolling-pin-legend.component.d.ts +0 -24
  136. package/dist/lib/html-components/rolling-pin-legend/rolling-pin-legend.module.d.ts +0 -7
  137. package/dist/lib/package.json +0 -52
  138. package/dist/lib/public-api.d.ts +0 -2
  139. package/dist/lib/unovis-angular.d.ts +0 -5
@@ -1,132 +0,0 @@
1
- import { AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { Crosshair, CrosshairConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor, ContinuousScale, Tooltip, CrosshairCircle } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisCrosshairComponent<Datum> implements CrosshairConfigInterface<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
- /** Optional accessor function for getting the values along the X axis. Default: `undefined` */
53
- x?: NumericAccessor<Datum>;
54
- /** Optional 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
- /** Optional color array or color accessor function for crosshair circles. 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
- /** Optional stroke color accessor function for crosshair circles. Default: `undefined` */
74
- strokeColor?: ColorAccessor<Datum>;
75
- /** Optional stroke width for crosshair circles. Default: `undefined` */
76
- strokeWidth?: NumericAccessor<Datum>;
77
- /** Radius of crosshair circles in pixels. Default: `3` */
78
- circleRadius?: number;
79
- /** Separate array of accessors for stacked components (eg StackedBar, Area). Default: `undefined` */
80
- yStacked?: NumericAccessor<Datum>[];
81
- /** Baseline accessor function for stacked values, useful with stacked areas. Default: `null` */
82
- baseline?: NumericAccessor<Datum>;
83
- /** An instance of the Tooltip component to be used with Crosshair. Default: `undefined` */
84
- tooltip?: Tooltip | undefined;
85
- /** Tooltip template accessor. The function is supposed to return either a valid HTML string or an HTMLElement.
86
- * When `snapToData` is `false`, `datum` will be `undefined` but `data` and `leftNearestDatumIndex` will be provided.
87
- * Default: `d => ''` */
88
- template?: (datum: Datum, x: number | Date, data: Datum[], leftNearestDatumIndex?: number) => string | HTMLElement;
89
- /** Hide Crosshair when the corresponding datum element is far from mouse pointer. Default: `true` */
90
- hideWhenFarFromPointer?: boolean;
91
- /** Distance in pixels to check in the hideWhenFarFromPointer condition. Default: `100` */
92
- hideWhenFarFromPointerDistance?: number;
93
- /** Snap to the nearest data point.
94
- * If disabled, the tooltip template will receive only the horizontal position of the crosshair and you'll be responsible
95
- * for getting the underlying data records and crosshair circles (see the `getCircles` configuration option).
96
- * Default: `true` */
97
- snapToData?: boolean;
98
- /** Custom function for setting up the crosshair circles, usually needed when `snapToData` is set to `false`.
99
- * The function receives the horizontal position of the crosshair (in the data space, not in pixels), the data array,
100
- * the `yScale` instance to help you calculate the correct vertical position of the circles, and the nearest datum index.
101
- * It has to return an array of the `CrosshairCircle` objects: `{ y: number; color: string; opacity?: number }[]`.
102
- * Default: `undefined` */
103
- getCircles?: (x: number | Date, data: Datum[], yScale: ContinuousScale, leftNearestDatumIndex?: number) => CrosshairCircle[];
104
- /** Callback function that is called when the crosshair is moved:
105
- * - `x` is the horizontal position of the crosshair in the data space;
106
- * - `datum` is the nearest datum to the crosshair;
107
- * - `datumIndex` is the index of the nearest datum.
108
- * - `event` is the event that triggered the crosshair move (mouse or wheel).
109
- *
110
- * When the mouse goes out of the container and on wheel events, all the arguments are `undefined` except for `event`.
111
- * Default: `undefined` */
112
- onCrosshairMove?: (x?: number | Date, datum?: Datum, datumIndex?: number, event?: MouseEvent | WheelEvent) => void;
113
- /** Force the crosshair to show at a specific position. Default: `undefined` */
114
- forceShowAt?: number | Date;
115
- /** Skip range checks for crosshair visibility. When true, crosshair will show regardless of position within chart bounds. Default: `false`
116
- * This is useful for testing, especially when you only triggers mousemove event but does not have real mouse event. */
117
- skipRangeCheck?: boolean;
118
- /** Minimum fraction (`0` to `1`) of the container's area that must be visible in the
119
- * viewport for the Crosshair (and its Tooltip) to be displayed. This prevents the
120
- * Crosshair from showing when the chart is mostly scrolled out of view. Charts that are
121
- * wider or taller than the viewport may never reach the default ratio, so lower this
122
- * value (or set it to `0` to always show the Crosshair) for large charts. Default: `0.35` */
123
- visibilityThreshold?: number;
124
- data: Datum[];
125
- component: Crosshair<Datum> | undefined;
126
- componentContainer: ContainerCore | undefined;
127
- ngAfterViewInit(): void;
128
- ngOnChanges(changes: SimpleChanges): void;
129
- private getConfig;
130
- static ɵfac: i0.ɵɵFactoryDeclaration<VisCrosshairComponent<any>, never>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<VisCrosshairComponent<any>, "vis-crosshair", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "x": "x"; "y": "y"; "id": "id"; "color": "color"; "xScale": "xScale"; "yScale": "yScale"; "excludeFromDomainCalculation": "excludeFromDomainCalculation"; "strokeColor": "strokeColor"; "strokeWidth": "strokeWidth"; "circleRadius": "circleRadius"; "yStacked": "yStacked"; "baseline": "baseline"; "tooltip": "tooltip"; "template": "template"; "hideWhenFarFromPointer": "hideWhenFarFromPointer"; "hideWhenFarFromPointerDistance": "hideWhenFarFromPointerDistance"; "snapToData": "snapToData"; "getCircles": "getCircles"; "onCrosshairMove": "onCrosshairMove"; "forceShowAt": "forceShowAt"; "skipRangeCheck": "skipRangeCheck"; "visibilityThreshold": "visibilityThreshold"; "data": "data"; }, {}, never, never>;
132
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./crosshair.component";
3
- export declare class VisCrosshairModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisCrosshairModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisCrosshairModule, [typeof i1.VisCrosshairComponent], never, [typeof i1.VisCrosshairComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisCrosshairModule>;
7
- }
@@ -1,99 +0,0 @@
1
- import { AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { Donut, DonutConfigInterface, ContainerCore, VisEventType, VisEventCallback, NumericAccessor, ColorAccessor } from '@unovis/ts';
3
- import * as i0 from "@angular/core";
4
- export declare class VisDonutComponent<Datum> implements DonutConfigInterface<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 unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */
53
- id?: ((d: Datum, i: number, ...rest: any[]) => string | number);
54
- /** Value accessor function. Default: `undefined` */
55
- value: NumericAccessor<Datum>;
56
- /** Diagram angle range. Default: `[0, 2 * Math.PI]` */
57
- angleRange?: [number, number];
58
- /** Pad angle. Default: `0` */
59
- padAngle?: number;
60
- /** Custom sort function. Default: `undefined` */
61
- sortFunction?: (a: Datum, b: Datum) => number;
62
- /** Corner Radius. Default: `0` */
63
- cornerRadius?: number;
64
- /** Color accessor function. Default: `undefined` */
65
- color?: ColorAccessor<Datum>;
66
- /** Explicitly set the donut outer radius. Default: `undefined` */
67
- radius?: number;
68
- /** Arc width in pixels. Set to `0` if you want to have a pie chart. Default: `20` */
69
- arcWidth?: number;
70
- /** Central label accessor function or text. Default: `undefined` */
71
- centralLabel?: string;
72
- /** Central sub-label accessor function or text. Default: `undefined` */
73
- centralSubLabel?: string;
74
- /** Enables wrapping for the sub-label. Default: `true` */
75
- centralSubLabelWrap?: boolean;
76
- /** When true, the component will display empty segments (the ones that have `0` values) as tiny slices.
77
- * Default: `false` */
78
- showEmptySegments?: boolean;
79
- /** Angular size for empty segments in radians. Default: `0.5 * Math.PI / 180` */
80
- emptySegmentAngle?: number;
81
- /** Show donut background. The color is configurable via
82
- * the `--vis-donut-background-color` and `--vis-dark-donut-background-color` CSS variables.
83
- * Default: `true` */
84
- showBackground?: boolean;
85
- /** Background angle range. When undefined, the value will be taken from `angleRange`. Default: `undefined` */
86
- backgroundAngleRange?: [number, number];
87
- /** Central label and sub-label horizontal offset in pixels. Default: `undefined` */
88
- centralLabelOffsetX?: number;
89
- /** Central label and sub-label vertical offset in pixels. Default: `undefined` */
90
- centralLabelOffsetY?: number;
91
- data: Datum[];
92
- component: Donut<Datum> | undefined;
93
- componentContainer: ContainerCore | undefined;
94
- ngAfterViewInit(): void;
95
- ngOnChanges(changes: SimpleChanges): void;
96
- private getConfig;
97
- static ɵfac: i0.ɵɵFactoryDeclaration<VisDonutComponent<any>, never>;
98
- static ɵcmp: i0.ɵɵComponentDeclaration<VisDonutComponent<any>, "vis-donut", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "id": "id"; "value": "value"; "angleRange": "angleRange"; "padAngle": "padAngle"; "sortFunction": "sortFunction"; "cornerRadius": "cornerRadius"; "color": "color"; "radius": "radius"; "arcWidth": "arcWidth"; "centralLabel": "centralLabel"; "centralSubLabel": "centralSubLabel"; "centralSubLabelWrap": "centralSubLabelWrap"; "showEmptySegments": "showEmptySegments"; "emptySegmentAngle": "emptySegmentAngle"; "showBackground": "showBackground"; "backgroundAngleRange": "backgroundAngleRange"; "centralLabelOffsetX": "centralLabelOffsetX"; "centralLabelOffsetY": "centralLabelOffsetY"; "data": "data"; }, {}, never, never>;
99
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./donut.component";
3
- export declare class VisDonutModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<VisDonutModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<VisDonutModule, [typeof i1.VisDonutComponent], never, [typeof i1.VisDonutComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<VisDonutModule>;
7
- }
@@ -1,85 +0,0 @@
1
- import { AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { FreeBrush, FreeBrushConfigInterface, ContainerCore, VisEventType, VisEventCallback, 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
- /** Brush selection mode. X - horizontal, Y - vertical, XY - both. Default: `FreeBrushMode.X` */
54
- mode?: FreeBrushMode;
55
- /** Callback function to be called on any Brush event.
56
- * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<Datum>, userDriven: boolean): void => {}` */
57
- onBrush?: ((selection: FreeBrushSelection | undefined, event: D3BrushEvent<unknown>, userDriven: boolean) => void);
58
- /** Callback function to be called on the Brush start event.
59
- * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<unknown>, userDriven: boolean): void => {}` */
60
- onBrushStart?: ((selection: FreeBrushSelection | undefined, event: D3BrushEvent<unknown>, userDriven: boolean) => void);
61
- /** Callback function to be called on the Brush move event.
62
- * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<unknown>, userDriven: boolean): void => {}` */
63
- onBrushMove?: ((selection: FreeBrushSelection | undefined, event: D3BrushEvent<unknown>, userDriven: boolean) => void);
64
- /** Callback function to be called on the Brush end event.
65
- * Default: `(selection: FreeBrushSelection, event: D3BrushEvent<unknown>, userDriven: boolean)L void => {}` */
66
- onBrushEnd?: ((selection: FreeBrushSelection | undefined, event: D3BrushEvent<unknown>, userDriven: boolean) => void);
67
- /** Width of the Brush handle. Default: `1` */
68
- handleWidth?: number;
69
- /** Brush selection in data space, can be used to force set the selection from outside.
70
- * In case of two dimensional mode, the selection has the following format: `[[xMin, xMax], [yMin, yMax]]`.
71
- * This config property gets updated on internal brush events. Default: `undefined` */
72
- selection?: FreeBrushSelection | null | undefined;
73
- /** Constraint Brush selection to a minimal length in data units. Default: `undefined` */
74
- selectionMinLength?: number | [number, number];
75
- /** Automatically hide the brush after selection. Default: `true` */
76
- autoHide?: boolean;
77
- data: Datum[];
78
- component: FreeBrush<Datum> | undefined;
79
- componentContainer: ContainerCore | undefined;
80
- ngAfterViewInit(): void;
81
- ngOnChanges(changes: SimpleChanges): void;
82
- private getConfig;
83
- static ɵfac: i0.ɵɵFactoryDeclaration<VisFreeBrushComponent<any>, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<VisFreeBrushComponent<any>, "vis-free-brush", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "mode": "mode"; "onBrush": "onBrush"; "onBrushStart": "onBrushStart"; "onBrushMove": "onBrushMove"; "onBrushEnd": "onBrushEnd"; "handleWidth": "handleWidth"; "selection": "selection"; "selectionMinLength": "selectionMinLength"; "autoHide": "autoHide"; "data": "data"; }, {}, never, never>;
85
- }
@@ -1,7 +0,0 @@
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
- }