@evergis/charts
Advanced tools
Comparing version 2.0.9 to 2.0.10
import { PieChartDatum } from '../types'; | ||
export declare const getMidFactor: (d: PieChartDatum) => 1 | -1; | ||
export declare const getAlign: (d: PieChartDatum) => string; | ||
export declare const getAlign: (d: PieChartDatum) => 'start' | 'end'; |
import { ReactNode } from 'react'; | ||
declare type RenderLabel = (anchor: string, index: number) => ReactNode; | ||
import { RadarChartRenderLabelAnchor } from '../types'; | ||
declare type RenderLabel = (anchor: RadarChartRenderLabelAnchor, index: number) => ReactNode; | ||
export declare type DrawRadialLabels = { | ||
@@ -17,3 +18,3 @@ node: HTMLElement; | ||
export declare type LabelContainerProps = { | ||
anchor: string; | ||
anchor: RadarChartRenderLabelAnchor; | ||
translateX: number; | ||
@@ -20,0 +21,0 @@ translateY: number; |
@@ -1,2 +0,2 @@ | ||
export declare const getTextAnchor: (index: number, length: number) => string; | ||
export declare const getTextAnchor: (index: number, length: number) => 'start' | 'middle' | 'end'; | ||
export declare const getMaxWidth: (elements: SVGElement[]) => number; |
import { ReactElement, CSSProperties, ReactNode } from 'react'; | ||
import { CurveFactory, CurveFactoryLineOnly, Selection } from 'd3'; | ||
export declare type RadarChartFormatValue = (value: number, index: number) => string; | ||
export declare type RadarChartRenderLabel = (data: RadarChartData, items: RadarChartData[]) => ReactNode; | ||
export declare type RadarChartRenderLabelAnchor = 'start' | 'middle' | 'end'; | ||
export declare type RadarChartRenderLabelProps = { | ||
item: RadarChartData; | ||
items: RadarChartData[]; | ||
anchor: RadarChartRenderLabelAnchor; | ||
index: number; | ||
}; | ||
export declare type RadarChartRenderLabel = (props: RadarChartRenderLabelProps) => ReactNode; | ||
export interface RadarChartProps { | ||
@@ -33,3 +40,2 @@ data: RadarChartData[][]; | ||
value: number; | ||
properties?: Record<string, {}>; | ||
} |
export declare type LabelContainerProps = { | ||
anchor: string; | ||
anchor: 'start' | 'middle' | 'end'; | ||
translateX: number; | ||
@@ -4,0 +4,0 @@ translateY: number; |
@@ -22,1 +22,4 @@ export { Wrapper as ChartWrapper } from './common/components/Wrapper'; | ||
export * from './charts/HorizontalBarChart/types'; | ||
export { BubbleChart } from './charts/BubbleChart'; | ||
export { bubbleChartClassNames } from './charts/BubbleChart/styled'; | ||
export * from './charts/BubbleChart/types'; |
{ | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"license": "MIT", | ||
@@ -64,3 +64,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "641530fe4273aebdd82b6643bc1d721b870a7aa8" | ||
"gitHead": "e618a55e272d54688566a04959777eb33608a026" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1139413
109
8063