@neo4j-ndl/react 3.0.26 → 3.0.28

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 (80) hide show
  1. package/lib/cjs/index.js +0 -1
  2. package/lib/cjs/index.js.map +1 -1
  3. package/lib/cjs/loading-spinner/LoadingSpinner.js +2 -2
  4. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  5. package/lib/esm/index.js +0 -1
  6. package/lib/esm/index.js.map +1 -1
  7. package/lib/esm/loading-spinner/LoadingSpinner.js +2 -2
  8. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  9. package/lib/types/index.d.ts +0 -1
  10. package/package.json +1 -5
  11. package/lib/cjs/charts/CartesianGrid.js +0 -107
  12. package/lib/cjs/charts/CartesianGrid.js.map +0 -1
  13. package/lib/cjs/charts/Chart.js +0 -761
  14. package/lib/cjs/charts/Chart.js.map +0 -1
  15. package/lib/cjs/charts/ChartTooltip.js +0 -60
  16. package/lib/cjs/charts/ChartTooltip.js.map +0 -1
  17. package/lib/cjs/charts/Charts.js +0 -124
  18. package/lib/cjs/charts/Charts.js.map +0 -1
  19. package/lib/cjs/charts/Dot.js +0 -31
  20. package/lib/cjs/charts/Dot.js.map +0 -1
  21. package/lib/cjs/charts/HollowDot.js +0 -54
  22. package/lib/cjs/charts/HollowDot.js.map +0 -1
  23. package/lib/cjs/charts/Legend.js +0 -180
  24. package/lib/cjs/charts/Legend.js.map +0 -1
  25. package/lib/cjs/charts/Line.js +0 -132
  26. package/lib/cjs/charts/Line.js.map +0 -1
  27. package/lib/cjs/charts/axis/XAxis.js +0 -205
  28. package/lib/cjs/charts/axis/XAxis.js.map +0 -1
  29. package/lib/cjs/charts/axis/YAxis.js +0 -170
  30. package/lib/cjs/charts/axis/YAxis.js.map +0 -1
  31. package/lib/cjs/charts/axis/chart-axis-utils.js +0 -42
  32. package/lib/cjs/charts/axis/chart-axis-utils.js.map +0 -1
  33. package/lib/cjs/charts/axis/chart-tick-generation.js +0 -245
  34. package/lib/cjs/charts/axis/chart-tick-generation.js.map +0 -1
  35. package/lib/cjs/charts/index.js +0 -38
  36. package/lib/cjs/charts/index.js.map +0 -1
  37. package/lib/cjs/charts/utils.js +0 -40
  38. package/lib/cjs/charts/utils.js.map +0 -1
  39. package/lib/esm/charts/CartesianGrid.js +0 -100
  40. package/lib/esm/charts/CartesianGrid.js.map +0 -1
  41. package/lib/esm/charts/Chart.js +0 -734
  42. package/lib/esm/charts/Chart.js.map +0 -1
  43. package/lib/esm/charts/ChartTooltip.js +0 -54
  44. package/lib/esm/charts/ChartTooltip.js.map +0 -1
  45. package/lib/esm/charts/Charts.js +0 -121
  46. package/lib/esm/charts/Charts.js.map +0 -1
  47. package/lib/esm/charts/Dot.js +0 -28
  48. package/lib/esm/charts/Dot.js.map +0 -1
  49. package/lib/esm/charts/HollowDot.js +0 -28
  50. package/lib/esm/charts/HollowDot.js.map +0 -1
  51. package/lib/esm/charts/Legend.js +0 -174
  52. package/lib/esm/charts/Legend.js.map +0 -1
  53. package/lib/esm/charts/Line.js +0 -106
  54. package/lib/esm/charts/Line.js.map +0 -1
  55. package/lib/esm/charts/axis/XAxis.js +0 -176
  56. package/lib/esm/charts/axis/XAxis.js.map +0 -1
  57. package/lib/esm/charts/axis/YAxis.js +0 -164
  58. package/lib/esm/charts/axis/YAxis.js.map +0 -1
  59. package/lib/esm/charts/axis/chart-axis-utils.js +0 -38
  60. package/lib/esm/charts/axis/chart-axis-utils.js.map +0 -1
  61. package/lib/esm/charts/axis/chart-tick-generation.js +0 -217
  62. package/lib/esm/charts/axis/chart-tick-generation.js.map +0 -1
  63. package/lib/esm/charts/index.js +0 -22
  64. package/lib/esm/charts/index.js.map +0 -1
  65. package/lib/esm/charts/utils.js +0 -37
  66. package/lib/esm/charts/utils.js.map +0 -1
  67. package/lib/types/charts/CartesianGrid.d.ts +0 -32
  68. package/lib/types/charts/Chart.d.ts +0 -109
  69. package/lib/types/charts/ChartTooltip.d.ts +0 -69
  70. package/lib/types/charts/Charts.d.ts +0 -104
  71. package/lib/types/charts/Dot.d.ts +0 -27
  72. package/lib/types/charts/HollowDot.d.ts +0 -28
  73. package/lib/types/charts/Legend.d.ts +0 -25
  74. package/lib/types/charts/Line.d.ts +0 -44
  75. package/lib/types/charts/axis/XAxis.d.ts +0 -28
  76. package/lib/types/charts/axis/YAxis.d.ts +0 -28
  77. package/lib/types/charts/axis/chart-axis-utils.d.ts +0 -33
  78. package/lib/types/charts/axis/chart-tick-generation.d.ts +0 -33
  79. package/lib/types/charts/index.d.ts +0 -21
  80. package/lib/types/charts/utils.d.ts +0 -23
@@ -1,22 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- export * from './Charts';
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/charts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,UAAU,CAAC"}
@@ -1,37 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- import { useCallback, useRef } from 'react';
22
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
- const useThrottle = (callback, limit) => {
24
- const lastCallRef = useRef(0);
25
- const throttledCallback = useCallback(
26
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
- (...args) => {
28
- const now = Date.now();
29
- if (now - lastCallRef.current >= limit) {
30
- lastCallRef.current = now;
31
- callback(...args);
32
- }
33
- }, [callback, limit]);
34
- return throttledCallback;
35
- };
36
- export { useThrottle };
37
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/charts/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE5C,8DAA8D;AAC9D,MAAM,WAAW,GAAG,CAAC,QAAqC,EAAE,KAAa,EAAE,EAAE;IAC3E,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9B,MAAM,iBAAiB,GAAG,WAAW;IACnC,8DAA8D;IAC9D,CAAC,GAAG,IAAW,EAAE,EAAE;QACjB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,IAAI,GAAG,GAAG,WAAW,CAAC,OAAO,IAAI,KAAK,EAAE,CAAC;YACvC,WAAW,CAAC,OAAO,GAAG,GAAG,CAAC;YAC1B,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,KAAK,CAAC,CAClB,CAAC;IACF,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,32 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
-
22
- import React from 'react';
23
- type CartesianGridProps = {
24
- scaleXAxis?: string;
25
- scaleYAxis?: string;
26
- className?: string;
27
- xAxisFill?: 'none' | 'zebra' | 'filled';
28
- yAxisFill?: 'none' | 'zebra' | 'filled';
29
- htmlAttributes?: React.HTMLAttributes<HTMLDivElement>;
30
- };
31
- export declare const CartesianGrid: ({ className, htmlAttributes, scaleXAxis: scaleXAxisId, scaleYAxis: scaleYAxisId, xAxisFill, yAxisFill, }: CartesianGridProps) => import("react/jsx-runtime").JSX.Element | null;
32
- export {};
@@ -1,109 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- import React, { type ReactNode } from 'react';
22
- import * as d3 from 'd3';
23
- import { type LineProps } from './Line';
24
- export type ScaleTypes = 'linear' | 'log' | 'time' | 'utc';
25
- export type ScaleFunctionDates = d3.ScaleTime<number, number, never>;
26
- export type ScaleFunctionNumbers = d3.ScaleLinear<number, number, never> | d3.ScaleLogarithmic<number, number, never>;
27
- export type ScaleFunction = ScaleFunctionDates | ScaleFunctionNumbers;
28
- export type LinePoint = {
29
- key: number;
30
- dataId: string;
31
- pointIndex: number;
32
- accessorXAxis: string;
33
- accessorYAxis: string;
34
- accessorHollowDot?: string;
35
- scaleYAxisId: string;
36
- scaleXAxisId: string;
37
- selectionGroup: number | null;
38
- [linePointAttribute: string]: unknown;
39
- };
40
- export type DataPointArray = unknown[];
41
- export type LinePointArray = LinePoint[];
42
- export type LinePointArrayMetadataHolder = {
43
- [LinePointArrayMetadataDataId: string]: LinePointArrayMetadata;
44
- };
45
- export type LinePointArrayMetadata = {
46
- x?: ScaleFunction;
47
- y?: ScaleFunction;
48
- xRange?: number[];
49
- yRange?: number[];
50
- points?: (string | number)[][];
51
- [linePointArrayMetadataAttribute: string]: unknown;
52
- };
53
- export type ScaleProps = {
54
- [scaleKey: string]: {
55
- type: ScaleTypes;
56
- domain?: [number, number] | [Date, Date];
57
- };
58
- };
59
- export type Scale = {
60
- function: ScaleFunctionDates;
61
- functionWithContentWidthAsRange: ScaleFunctionDates;
62
- functionWithContentHeightAsRange: ScaleFunctionDates;
63
- originalDomain: [Date, Date] | null;
64
- } | {
65
- function: ScaleFunctionNumbers;
66
- functionWithContentWidthAsRange: ScaleFunctionNumbers;
67
- functionWithContentHeightAsRange: ScaleFunctionNumbers;
68
- originalDomain: [number, number] | null;
69
- };
70
- export interface Scales {
71
- [scale: string]: Scale;
72
- }
73
- export interface ChartsChartContext {
74
- chartRef: React.Ref<HTMLElement>;
75
- contentRef: React.Ref<SVGElement>;
76
- contentSize: ContentSize;
77
- scales: Scales;
78
- linePointArray: LinePointArray;
79
- mousePositionRef?: React.MutableRefObject<{
80
- x: number;
81
- y: number;
82
- }>;
83
- }
84
- export type ContentSize = {
85
- width: number | undefined;
86
- height: number | undefined;
87
- } | undefined;
88
- export interface ChartProps {
89
- children?: ReactNode;
90
- className?: string;
91
- scales: ScaleProps;
92
- pointSelectionType?: 'single' | 'x-axis';
93
- }
94
- export type Points = {
95
- data?: LinePoint;
96
- x?: number;
97
- y?: number;
98
- }[];
99
- export declare const canvasLeftPadding = 0;
100
- export declare const canvasRightPadding = 0;
101
- export declare const ChartsChartContext: React.Context<ChartsChartContext>;
102
- export declare function getPointPixels(linePoint: LinePoint, scales: Scales): {
103
- pointPixelX: number | undefined;
104
- pointPixelY: number | undefined;
105
- };
106
- declare const Chart: React.ForwardRefExoticComponent<ChartProps & React.RefAttributes<unknown>> & {
107
- Line: React.MemoExoticComponent<React.ForwardRefExoticComponent<LineProps & React.RefAttributes<SVGPathElement>>>;
108
- };
109
- export { Chart };
@@ -1,69 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
-
22
- import React from 'react';
23
- export interface ChartTooltipProps {
24
- children: React.ReactNode;
25
- className?: string;
26
- isOpen?: boolean;
27
- style?: React.CSSProperties;
28
- anchorPosition?: {
29
- x: number;
30
- y: number;
31
- };
32
- }
33
- export declare const ChartTooltipComponent: React.ForwardRefExoticComponent<ChartTooltipProps & {
34
- as?: React.ElementType<any> | undefined;
35
- htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
36
- className?: string;
37
- style?: React.CSSProperties;
38
- } & React.RefAttributes<unknown>>;
39
- type ChartTooltipTitleProps = {
40
- children: React.ReactNode;
41
- };
42
- export type ChartTooltipContentProps = {
43
- leftElement?: React.ReactNode;
44
- rightElement?: React.ReactNode;
45
- indentSquareColor?: string;
46
- notification?: {
47
- leftElement: React.ReactNode;
48
- rightElement: React.ReactNode;
49
- type: 'warning' | 'danger';
50
- };
51
- };
52
- declare const ChartTooltip: React.ForwardRefExoticComponent<ChartTooltipProps & {
53
- as?: React.ElementType<any> | undefined;
54
- htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
55
- className?: string;
56
- style?: React.CSSProperties;
57
- } & React.RefAttributes<unknown>> & {
58
- Title: React.ForwardRefExoticComponent<ChartTooltipTitleProps & React.RefAttributes<HTMLSpanElement>>;
59
- Content: React.ForwardRefExoticComponent<ChartTooltipContentProps & React.RefAttributes<HTMLDivElement>>;
60
- Link: React.ForwardRefExoticComponent<Omit<import("../text-link").TextLinkProps & {
61
- as?: React.ElementType<any> | undefined;
62
- htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
63
- className?: string;
64
- style?: React.CSSProperties;
65
- } & {
66
- ref?: any;
67
- }, "ref"> & React.RefAttributes<unknown>>;
68
- };
69
- export { ChartTooltip };
@@ -1,104 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- export type DataBase = {
22
- id?: string;
23
- };
24
- export type SingleData = {
25
- id?: string;
26
- data: unknown;
27
- } & DataBase;
28
- export type SeriesData = {
29
- id?: string;
30
- data: unknown[];
31
- } & DataBase;
32
- export type MultiDimensionalData = {
33
- id?: string;
34
- metadata: string[];
35
- data: unknown[][];
36
- } & DataBase;
37
- export type DataPoint = SingleData | SeriesData | MultiDimensionalData;
38
- export type DataArray = (SingleData | SeriesData | MultiDimensionalData)[] | [];
39
- export type Metadata = {
40
- [dataId: string]: {
41
- label: string;
42
- color: string;
43
- isVisible: boolean;
44
- };
45
- };
46
- type MetadataProp = {
47
- [dataId: string]: {
48
- label: string;
49
- color: string;
50
- isVisible?: boolean;
51
- };
52
- };
53
- export interface ChartsContextType {
54
- colors?: string[];
55
- data?: DataArray;
56
- metadata: Metadata;
57
- setIsVisible: (dataId: string, isVisible: boolean) => void;
58
- chartsSize: ChartSize;
59
- scalerGridLines: Record<string, (number | Date)[]>;
60
- setScalerGridLines: (scaleId: string, ticks: (number | Date)[]) => void;
61
- }
62
- export type ChartSize = {
63
- width: number;
64
- height: number;
65
- };
66
- export interface ChartsProps {
67
- children?: React.ReactNode;
68
- className?: string;
69
- colors?: string[];
70
- data: DataArray;
71
- metadata?: MetadataProp;
72
- /** Width of the chart container, defaults to 100%, can also be overridden via CSS. */
73
- width?: number;
74
- /** Height of the chart container, defaults to 100%, can also be overridden via CSS. */
75
- height?: number;
76
- }
77
- export declare const ChartsContext: import("react").Context<ChartsContextType>;
78
- declare const Charts: import("react").ForwardRefExoticComponent<ChartsProps & {
79
- as?: import("react").ElementType<any> | undefined;
80
- htmlAttributes?: import("../_common/types").HtmlAttributes<import("react").ElementType<any>> | undefined;
81
- className?: string;
82
- style?: import("react").CSSProperties;
83
- } & import("react").RefAttributes<unknown>> & {
84
- Chart: import("react").ForwardRefExoticComponent<import("./Chart").ChartProps & import("react").RefAttributes<unknown>> & {
85
- Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Line").LineProps & import("react").RefAttributes<SVGPathElement>>>;
86
- };
87
- Legend: import("react").ForwardRefExoticComponent<import("./Legend").LegendProps & import("react").RefAttributes<HTMLDivElement>>;
88
- Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Line").LineProps & import("react").RefAttributes<SVGPathElement>>>;
89
- XAxis: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
90
- position: "top" | "bottom";
91
- } & import("./axis/chart-axis-utils").AxisBaseProps & import("react").RefAttributes<unknown>>>;
92
- YAxis: import("react").ForwardRefExoticComponent<{
93
- position: "left" | "right";
94
- } & import("./axis/chart-axis-utils").AxisBaseProps & import("react").RefAttributes<unknown>>;
95
- CartesianGrid: ({ className, htmlAttributes, scaleXAxis: scaleXAxisId, scaleYAxis: scaleYAxisId, xAxisFill, yAxisFill, }: {
96
- scaleXAxis?: string;
97
- scaleYAxis?: string;
98
- className?: string;
99
- xAxisFill?: "none" | "zebra" | "filled";
100
- yAxisFill?: "none" | "zebra" | "filled";
101
- htmlAttributes?: React.HTMLAttributes<HTMLDivElement>;
102
- }) => import("react/jsx-runtime").JSX.Element | null;
103
- };
104
- export { Charts };
@@ -1,27 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- type DotProps = {
22
- color: string;
23
- x: number;
24
- y: number;
25
- };
26
- declare const Dot: import("react").ForwardRefExoticComponent<DotProps & import("react").RefAttributes<SVGSVGElement>>;
27
- export { Dot };
@@ -1,28 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- import React from 'react';
22
- type HollowDotProps = {
23
- color: string;
24
- x: number;
25
- y: number;
26
- };
27
- export declare const HollowDot: React.MemoExoticComponent<React.ForwardRefExoticComponent<HollowDotProps & React.RefAttributes<SVGSVGElement>>>;
28
- export {};
@@ -1,25 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- import React from 'react';
22
- export interface LegendProps extends React.HTMLAttributes<HTMLDivElement> {
23
- wrappingType?: 'wrapping' | 'truncation' | 'overflow';
24
- }
25
- export declare const Legend: React.ForwardRefExoticComponent<LegendProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,44 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- import { type DataPoint } from './Charts';
22
- export interface BaseLineProps {
23
- dataId: string;
24
- scaleXAxis: string;
25
- scaleYAxis: string;
26
- accessorHollowDot?: string;
27
- valueFunction?: (data: unknown) => unknown;
28
- onClick?: (dataPoint: DataPoint) => void;
29
- labelFormat?: (data: unknown) => string;
30
- }
31
- export interface NonSeriesLineProps extends BaseLineProps {
32
- seriesInterval?: never;
33
- seriesIntervalStartValue?: never;
34
- accessorXAxis: string;
35
- accessorYAxis: string;
36
- }
37
- export interface SeriesLineProps extends BaseLineProps {
38
- seriesInterval: number;
39
- seriesIntervalStartValue: number;
40
- accessorXAxis?: never;
41
- accessorYAxis?: never;
42
- }
43
- export type LineProps = NonSeriesLineProps | SeriesLineProps;
44
- export declare const Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<LineProps & import("react").RefAttributes<SVGPathElement>>>;
@@ -1,28 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- import React from 'react';
22
- import { AxisBaseProps } from './chart-axis-utils';
23
- export type XAxisProps = {
24
- position: 'top' | 'bottom';
25
- } & AxisBaseProps;
26
- export declare const XAxis: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
27
- position: "top" | "bottom";
28
- } & AxisBaseProps & React.RefAttributes<unknown>>>;
@@ -1,28 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
-
22
- import { AxisBaseProps } from './chart-axis-utils';
23
- export type YAxisProps = {
24
- position: 'left' | 'right';
25
- } & AxisBaseProps;
26
- export declare const YAxis: import("react").ForwardRefExoticComponent<{
27
- position: "left" | "right";
28
- } & AxisBaseProps & import("react").RefAttributes<unknown>>;
@@ -1,33 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- import { ScaleFunctionDates, ScaleFunctionNumbers } from '../Chart';
22
- export type AxisBaseProps = {
23
- labelFormat?: (dataPoint: unknown) => string;
24
- ticks?: number;
25
- title?: string;
26
- scale: string;
27
- shouldRotateTicks?: boolean;
28
- };
29
- export declare const generateAxisTicks: ({ scale, pixelsAvailable, largestTickSize, }: {
30
- scale: ScaleFunctionDates | ScaleFunctionNumbers;
31
- pixelsAvailable: number;
32
- largestTickSize: number;
33
- }) => Date[] | number[];
@@ -1,33 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- interface WilkinsonResult {
22
- score: number;
23
- lmin?: number;
24
- lmax?: number;
25
- lstep?: number;
26
- ticks?: number[];
27
- }
28
- export declare function ExtendedWilkinson([dmin, dmax]: [number, number], m: number, onlyLoose?: boolean, Q?: number[], w?: number[], nice?: boolean): WilkinsonResult;
29
- export declare function ExtendedWilkinsonDate([dminDate, dmaxDate]: [Date, Date], m: number, onlyLoose?: boolean, Q?: number[], w?: number[], nice?: boolean): Omit<WilkinsonResult, 'ticks'> & {
30
- ticks: Date[];
31
- };
32
- export declare function getTickLabelFormatterForDate(minDate: Date, maxDate: Date): (date: Date) => string;
33
- export {};
@@ -1,21 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- export * from './Charts';