@semcore/d3-chart 2.4.2 → 2.4.4
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.
- package/CHANGELOG.md +12 -0
- package/lib/cjs/Area.js +9 -9
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +8 -8
- package/lib/cjs/Bubble.js +10 -10
- package/lib/cjs/Donut.js +7 -7
- package/lib/cjs/Dots.js +9 -9
- package/lib/cjs/HorizontalBar.js +8 -8
- package/lib/cjs/Hover.js +4 -4
- package/lib/cjs/Line.js +8 -8
- package/lib/cjs/Plot.js +4 -4
- package/lib/cjs/RadialTree.js +11 -11
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/ReferenceLine.js +10 -10
- package/lib/cjs/ScatterPlot.js +7 -7
- package/lib/cjs/Tooltip.js +8 -8
- package/lib/cjs/Venn.js +7 -7
- package/lib/cjs/a11y/PlotA11yModule.js +3 -3
- package/lib/cjs/a11y/PlotA11yView.js +4 -4
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- package/lib/cjs/types/ClipPath.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/GroupBar.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Plot.d.js +2 -0
- package/lib/cjs/types/Plot.d.js.map +1 -1
- package/lib/cjs/types/ReferenceLine.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/lib/cjs/types/StackBar.d.js.map +1 -1
- package/lib/cjs/types/StackedArea.d.js.map +1 -1
- package/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/es6/Area.js +9 -9
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +8 -8
- package/lib/es6/Bubble.js +10 -10
- package/lib/es6/Donut.js +7 -7
- package/lib/es6/Dots.js +9 -9
- package/lib/es6/HorizontalBar.js +8 -8
- package/lib/es6/Hover.js +4 -4
- package/lib/es6/Line.js +8 -8
- package/lib/es6/Plot.js +4 -4
- package/lib/es6/RadialTree.js +11 -11
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/ReferenceLine.js +10 -10
- package/lib/es6/ScatterPlot.js +7 -7
- package/lib/es6/Tooltip.js +8 -8
- package/lib/es6/Venn.js +7 -7
- package/lib/es6/a11y/PlotA11yModule.js +3 -3
- package/lib/es6/a11y/PlotA11yView.js +4 -4
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/es6/types/ClipPath.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/GroupBar.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Plot.d.js +1 -1
- package/lib/es6/types/Plot.d.js.map +1 -1
- package/lib/es6/types/ReferenceLine.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/lib/es6/types/StackBar.d.js.map +1 -1
- package/lib/es6/types/StackedArea.d.js.map +1 -1
- package/lib/es6/types/Tooltip.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/types/Area.d.ts +6 -5
- package/lib/types/Axis.d.ts +10 -9
- package/lib/types/Bar.d.ts +4 -3
- package/lib/types/Bubble.d.ts +3 -2
- package/lib/types/ClipPath.d.ts +3 -2
- package/lib/types/Donut.d.ts +6 -5
- package/lib/types/GroupBar.d.ts +5 -4
- package/lib/types/HorizontalBar.d.ts +4 -3
- package/lib/types/Hover.d.ts +4 -3
- package/lib/types/Line.d.ts +5 -4
- package/lib/types/Plot.d.ts +9 -2
- package/lib/types/RadialTree.d.ts +9 -8
- package/lib/types/ReferenceLine.d.ts +5 -4
- package/lib/types/ResponsiveContainer.d.ts +3 -2
- package/lib/types/ScatterPlot.d.ts +3 -2
- package/lib/types/StackBar.d.ts +5 -4
- package/lib/types/StackedArea.d.ts +3 -2
- package/lib/types/Tooltip.d.ts +8 -7
- package/lib/types/Venn.d.ts +5 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { IBarContext, IBackgroundProps } from './Bar';\n\nexport interface IHorizontalBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of curvature\n * @default 2\n */\n r?: number | number[];\n}\n\ndeclare const HorizontalBar: (<T>(\n props: MapProps<IHorizontalBarProps & T, IBarContext>,\n) => ReturnEl) & {\n Background: <T>(props: MapProps<IBackgroundProps & T>) => ReturnEl;\n};\n\nexport default HorizontalBar;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hover.d.js","names":[],"sources":["../../../src/types/Hover.d.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Hover.d.js","names":[],"sources":["../../../src/types/Hover.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IHoverProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n}\n\ndeclare const HoverLine: <T>(props: MapProps<IHoverProps & T>) => ReturnEl;\n\ndeclare const HoverRect: <T>(props: MapProps<IHoverProps & T>) => ReturnEl;\n\nexport { HoverLine, HoverRect };\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport interface ILineProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface ILineDotsProps extends IContext, IFadeInOutProps {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n}\n\nexport interface ILineDotsContext {\n /** Value element of data */\n value?: any;\n /** Index element of data */\n index?: number;\n}\n\nexport interface ILineNullProps extends IContext {\n /** Hide property */\n hide?: boolean;\n}\n\ndeclare const Line: (<T>(props: MapProps<ILineProps & T>) => ReturnEl) & {\n Dots: <T>(props: MapProps<ILineDotsProps & T, ILineDotsContext>) => ReturnEl;\n Null: <T>(props: MapProps<ILineNullProps & T>) => ReturnEl;\n};\n\nexport default Line;\n"],"mappings":""}
|
package/lib/es6/types/Plot.d.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { MapProps } from './Plot';
|
|
2
2
|
//# sourceMappingURL=Plot.d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { IBoxProps } from '@semcore/flex-box';\nimport {
|
|
1
|
+
{"version":3,"file":"Plot.d.js","names":["MapProps"],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { IBoxProps } from '@semcore/flex-box';\nimport { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IPlotProps extends IContext, IBoxProps {\n /** Width of the svg element\n * @default 0*/\n width?: number;\n /** Height of the svg element\n * @default 0*/\n height?: number;\n /** Human readable chart name (e.g \"Last market trends\") */\n label?: string;\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /** Optional prop to tune up alt text generating for charts */\n a11yAltTextConfig?: PlotSummarizerConfig;\n}\n\nexport type PlotSummarizerConfig = {\n /** Totally disable automatic data summarization */\n disable?: boolean;\n /** Disable automatic data summarization and use provided text */\n override?: string;\n /** Tuning up time series trends analyzing. Represents angle tangens of time series change of different strength */\n trendTangens?: {\n /** Angle tangens of time series that have meaningful trending change\n * @default 1/15\n */\n static?: number;\n /** Angle tangens of time series that have weak trending change\n * @default 1/10\n */\n weak?: number;\n /** Angle tangens of time series that have medium trending change\n * @default 1/5\n */\n medium?: number;\n /** Angle tangens of time series that have strong trending change\n * @default Infinity\n */\n strong?: number;\n };\n /** Tuning up time series local trends detection based on moving averages */\n movingAverage?: {\n /** Frame size of long moving average\n * @default Math.sqrt(data.length)\n */\n longSize?: number;\n /** Frame size of short moving average\n * @default Math.sqrt(data.length)/2\n */\n shortSize?: number;\n /** Absolute difference between values on moving averages crossing to\n * be handled as local trend change.\n * @default StandardDeviation/10\n */\n notableDiff?: number;\n };\n /** The way data to be interpreted as. By default is based on used used Plot elements and data structure.\n */\n dataType?: 'time-series' | 'points-cloud' | 'values-set';\n /** Grid size to split data of point clouds into clusters.\n */\n clustersGridSize?: number;\n /** Limits some output lists in chart alt text\n * @default 100\n * **/\n maxListSymbols?: number;\n /** Always add time to dates in chart alt text **/\n datesWithTime?: boolean;\n /** Described clusters count before text \"and X more\"\n * @default false\n * **/\n clustersLimit?: number;\n /** Described values count before text \"and X more\"\n * @default false\n * **/\n valuesLimit?: number;\n /** Described grouped value groups count before text \"and X more\"\n * @default false\n * **/\n groupsLimit?: number;\n};\n\nexport type MapProps<Props, Ctx = {}, UCProps = {}> = Props & {\n children?:\n | ((props: Props & Ctx, handlers: UCProps) => Props | React.PropsWithChildren)\n | React.ReactNode;\n};\n\ndeclare const Plot: <T>(props: MapProps<IPlotProps & T>) => ReturnEl;\n\nexport default Plot;\n"],"mappings":"AAEA,SAASA,QAAT,QAAyB,QAAzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IReferenceLineProps extends IContext {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n}\n\nexport interface IReferenceLineTitleProps extends IContext {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n}\n\nexport interface IReferenceLineBackgroundProps extends IContext {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n}\n\ndeclare const ReferenceLine: (<T>(props: MapProps<IReferenceLineProps & T>) => ReturnEl) & {\n Title: <T>(props: MapProps<IReferenceLineTitleProps & T>) => ReturnEl;\n Background: <T>(props: MapProps<IReferenceLineBackgroundProps & T>) => ReturnEl;\n};\n\nexport default ReferenceLine;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveContainer.d.js","names":[],"sources":["../../../src/types/ResponsiveContainer.d.ts"],"sourcesContent":["import { IBoxProps } from '@semcore/flex-box';\nimport {
|
|
1
|
+
{"version":3,"file":"ResponsiveContainer.d.js","names":[],"sources":["../../../src/types/ResponsiveContainer.d.ts"],"sourcesContent":["import { IBoxProps } from '@semcore/flex-box';\nimport { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\n\nexport interface IResponsiveContainerProps extends IBoxProps {\n /** Relation between height and width dimensions block */\n aspect?: number;\n /** Callback which will be called after changing the block size */\n onResize?: (size: [number, number], entries: ResizeObserverEntry[]) => void;\n}\n\nexport interface IResponsiveContainerContext {\n width?: number;\n height?: number;\n}\n\ndeclare const ResponsiveContainer: <T>(\n props: MapProps<IResponsiveContainerProps & T, IResponsiveContainerContext>,\n) => ReturnEl;\n\nexport default ResponsiveContainer;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IScatterPlotProps extends IContext {\n /** Field from data for XAxis */\n x: string;\n /** Field from data for YAxis */\n y: string;\n /** Field from data for circle value */\n value?: string;\n /** Circle color */\n color?: string;\n /** Circle value color */\n valueColor?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of circles\n * @default 5.5 or 12 with value\n */\n r?: number;\n}\n\ndeclare const ScatterPlot: <T>(props: MapProps<IScatterPlotProps & T>) => ReturnEl;\n\nexport default ScatterPlot;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackBar.d.js","names":[],"sources":["../../../src/types/StackBar.d.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"StackBar.d.js","names":[],"sources":["../../../src/types/StackBar.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { IBarContext, IBarProps } from './Bar';\nimport { IHorizontalBarProps } from './HorizontalBar';\n\nexport interface IStackBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n stack?: any;\n}\n\nexport interface IStackBarContext {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n series: any[];\n}\n\ndeclare const StackBar: (<T>(props: MapProps<IStackBarProps & T, IStackBarContext>) => ReturnEl) & {\n Bar: <T>(props: MapProps<IBarProps & T, IBarContext>) => ReturnEl;\n HorizontalBar: <T>(props: MapProps<IHorizontalBarProps & T, IBarContext>) => ReturnEl;\n};\n\nexport default StackBar;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackedArea.d.js","names":[],"sources":["../../../src/types/StackedArea.d.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"StackedArea.d.js","names":[],"sources":["../../../src/types/StackedArea.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport Area from './Area';\n\nexport interface IStackedAreaProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n stack?: any;\n}\n\nexport interface IStackedAreaContext {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n series: any[];\n}\n\ndeclare const StackedArea: (<T>(\n props: MapProps<IStackedAreaProps & T, IStackedAreaContext>,\n) => ReturnEl) & {\n Area: typeof Area;\n};\n\nexport default StackedArea;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.js","names":[],"sources":["../../../src/types/Tooltip.d.ts"],"sourcesContent":["import { ComponentProps } from 'react';\nimport Popper, { IPopperProps, IPopperTriggerProps } from '@semcore/popper';\nimport {
|
|
1
|
+
{"version":3,"file":"Tooltip.d.js","names":[],"sources":["../../../src/types/Tooltip.d.ts"],"sourcesContent":["import { ComponentProps } from 'react';\nimport Popper, { IPopperProps, IPopperTriggerProps } from '@semcore/popper';\nimport { PropGetterFn, ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport { IBoxProps } from '@semcore/flex-box';\nimport IContext from './context';\n\nexport interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n}\n\nexport interface ITooltipChartContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n /** Index active value for Axis x */\n xIndex: number | null;\n /** Index active value for Axis y */\n yIndex: number | null;\n}\n\ndeclare const Tooltip: (<T>(\n props: MapProps<ITooltipChartProps & T, ITooltipChartContext>,\n) => ReturnEl) & {\n Trigger: <T>(props: MapProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;\n Popper: <T>(props: MapProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;\n Title: <T>(props: MapProps<IBoxProps & T>) => ReturnEl;\n Dot: <T>(props: MapProps<IBoxProps & { color?: string } & T>) => ReturnEl;\n Footer: <T>(props: MapProps<T>) => null;\n};\n\nexport default Tooltip;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport interface IVennProps extends IContext, IFadeInOutProps {\n /**\n * Rotate sets in the chart\n * @default Math.PI / 2\n */\n orientation?: number;\n /**\n * The function for sorting sets inside the chart\n * @default (circle1, circle2) => circle2.radius - circle1.radius\n */\n orientationOrder?: (c1: number, c2: number) => number;\n}\n\nexport interface ICircleProps extends IContext {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /** Color circle\n @default #3AB011\n **/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IIntersectionProps extends IContext, IFadeInOutProps {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n}\n\ndeclare const Venn: (<T>(props: MapProps<IVennProps & T>) => ReturnEl) & {\n Circle: <T>(props: MapProps<ICircleProps & T>) => ReturnEl;\n Intersection: <T>(props: MapProps<IIntersectionProps & T>) => ReturnEl;\n};\n\nexport default Venn;\n"],"mappings":""}
|
package/lib/types/Area.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
import { CurveFactory } from 'd3-shape';
|
|
4
5
|
|
|
@@ -39,10 +40,10 @@ export interface IAreaNullProps extends IContext {
|
|
|
39
40
|
hide?: boolean;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
declare const Area: (<T>(props:
|
|
43
|
-
Dots: <T>(props:
|
|
44
|
-
Null: <T>(props:
|
|
45
|
-
Line: <T>(props:
|
|
43
|
+
declare const Area: (<T>(props: MapProps<IAreaProps & T>) => ReturnEl) & {
|
|
44
|
+
Dots: <T>(props: MapProps<IAreaDotsProps & T, IAreaDotsContext>) => ReturnEl;
|
|
45
|
+
Null: <T>(props: MapProps<IAreaNullProps & T>) => ReturnEl;
|
|
46
|
+
Line: <T>(props: MapProps<IContext & T>) => ReturnEl;
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
export default Area;
|
package/lib/types/Axis.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
|
|
4
5
|
export interface IXAxisProps extends IContext {
|
|
@@ -49,16 +50,16 @@ export interface IAxisTicksContext {
|
|
|
49
50
|
index: number;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
declare const XAxis: (<T>(props:
|
|
53
|
-
Ticks: <T>(props:
|
|
54
|
-
Grid: <T>(props:
|
|
55
|
-
Title: <T>(props:
|
|
53
|
+
declare const XAxis: (<T>(props: MapProps<IXAxisProps & T>) => ReturnEl) & {
|
|
54
|
+
Ticks: <T>(props: MapProps<IAxisTicksProps & T, IAxisTicksContext>) => ReturnEl;
|
|
55
|
+
Grid: <T>(props: MapProps<IAxisGridProps & T>) => ReturnEl;
|
|
56
|
+
Title: <T>(props: MapProps<IAxisTitleProps & T>) => ReturnEl;
|
|
56
57
|
};
|
|
57
58
|
|
|
58
|
-
declare const YAxis: (<T>(props:
|
|
59
|
-
Ticks: <T>(props:
|
|
60
|
-
Grid: <T>(props:
|
|
61
|
-
Title: <T>(props:
|
|
59
|
+
declare const YAxis: (<T>(props: MapProps<IYAxisProps & T>) => ReturnEl) & {
|
|
60
|
+
Ticks: <T>(props: MapProps<IAxisTicksProps & T, IAxisTicksContext>) => ReturnEl;
|
|
61
|
+
Grid: <T>(props: MapProps<IAxisGridProps & T>) => ReturnEl;
|
|
62
|
+
Title: <T>(props: MapProps<IAxisTitleProps & T>) => ReturnEl;
|
|
62
63
|
};
|
|
63
64
|
|
|
64
65
|
export { XAxis, YAxis };
|
package/lib/types/Bar.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
|
|
4
5
|
export interface IBarProps extends IContext {
|
|
@@ -45,8 +46,8 @@ export interface IBackgroundProps extends IContext {
|
|
|
45
46
|
height?: number | string;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
declare const Bar: (<T>(props:
|
|
49
|
-
Background: <T>(props:
|
|
49
|
+
declare const Bar: (<T>(props: MapProps<IBarProps & T, IBarContext>) => ReturnEl) & {
|
|
50
|
+
Background: <T>(props: MapProps<IBackgroundProps & T>) => ReturnEl;
|
|
50
51
|
};
|
|
51
52
|
|
|
52
53
|
export default Bar;
|
package/lib/types/Bubble.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
|
|
4
5
|
export interface IBubbleProps extends IContext {
|
|
@@ -27,6 +28,6 @@ export interface IBubbleContext {
|
|
|
27
28
|
index: number;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
declare const Bubble: <T>(props:
|
|
31
|
+
declare const Bubble: <T>(props: MapProps<IBubbleProps & T, IBubbleContext>) => ReturnEl;
|
|
31
32
|
|
|
32
33
|
export default Bubble;
|
package/lib/types/ClipPath.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MapProps } from './Plot';
|
|
3
|
+
import { ReturnEl } from '@semcore/core';
|
|
3
4
|
|
|
4
5
|
export interface IClipPath {
|
|
5
6
|
/**
|
|
@@ -21,6 +22,6 @@ export interface IClipPath {
|
|
|
21
22
|
setAttributeTag?: (rect: React.ReactNode) => void;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
declare const ClipPath: <T>(props:
|
|
25
|
+
declare const ClipPath: <T>(props: MapProps<IClipPath & T>) => ReturnEl;
|
|
25
26
|
|
|
26
27
|
export default ClipPath;
|
package/lib/types/Donut.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
|
|
4
5
|
export interface IDonutProps extends IContext {
|
|
@@ -37,10 +38,10 @@ export interface IEmptyDataProps extends IContext {}
|
|
|
37
38
|
|
|
38
39
|
export interface ILabelProps extends IContext {}
|
|
39
40
|
|
|
40
|
-
declare const Donut: (<T>(props:
|
|
41
|
-
Pie: <T>(props:
|
|
42
|
-
EmptyData: <T>(props:
|
|
43
|
-
Label: <T>(props:
|
|
41
|
+
declare const Donut: (<T>(props: MapProps<IDonutProps & T>) => ReturnEl) & {
|
|
42
|
+
Pie: <T>(props: MapProps<IPieProps & T>) => ReturnEl;
|
|
43
|
+
EmptyData: <T>(props: MapProps<IEmptyDataProps & T>) => ReturnEl;
|
|
44
|
+
Label: <T>(props: MapProps<ILabelProps & T>) => ReturnEl;
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
export default Donut;
|
package/lib/types/GroupBar.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import { IBarContext, IBarProps } from './Bar';
|
|
3
4
|
import { IHorizontalBarProps } from './HorizontalBar';
|
|
4
5
|
import IContext from './context';
|
|
@@ -12,9 +13,9 @@ export interface IGroupBarProps extends IContext {
|
|
|
12
13
|
scaleGroup?: any;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
declare const GroupBar: (<T>(props:
|
|
16
|
-
Bar: <T>(props:
|
|
17
|
-
HorizontalBar: <T>(props:
|
|
16
|
+
declare const GroupBar: (<T>(props: MapProps<IGroupBarProps & T>) => ReturnEl) & {
|
|
17
|
+
Bar: <T>(props: MapProps<IBarProps & T, IBarContext>) => ReturnEl;
|
|
18
|
+
HorizontalBar: <T>(props: MapProps<IHorizontalBarProps & T, IBarContext>) => ReturnEl;
|
|
18
19
|
};
|
|
19
20
|
|
|
20
21
|
export default GroupBar;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
import { IBarContext, IBackgroundProps } from './Bar';
|
|
4
5
|
|
|
@@ -21,9 +22,9 @@ export interface IHorizontalBarProps extends IContext {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
declare const HorizontalBar: (<T>(
|
|
24
|
-
props:
|
|
25
|
+
props: MapProps<IHorizontalBarProps & T, IBarContext>,
|
|
25
26
|
) => ReturnEl) & {
|
|
26
|
-
Background: <T>(props:
|
|
27
|
+
Background: <T>(props: MapProps<IBackgroundProps & T>) => ReturnEl;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
export default HorizontalBar;
|
package/lib/types/Hover.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
|
|
4
5
|
export interface IHoverProps extends IContext {
|
|
@@ -8,8 +9,8 @@ export interface IHoverProps extends IContext {
|
|
|
8
9
|
y?: string;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
declare const HoverLine: <T>(props:
|
|
12
|
+
declare const HoverLine: <T>(props: MapProps<IHoverProps & T>) => ReturnEl;
|
|
12
13
|
|
|
13
|
-
declare const HoverRect: <T>(props:
|
|
14
|
+
declare const HoverRect: <T>(props: MapProps<IHoverProps & T>) => ReturnEl;
|
|
14
15
|
|
|
15
16
|
export { HoverLine, HoverRect };
|
package/lib/types/Line.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
import { CurveFactory } from 'd3-shape';
|
|
4
5
|
import { IFadeInOutProps } from '@semcore/animation';
|
|
@@ -42,9 +43,9 @@ export interface ILineNullProps extends IContext {
|
|
|
42
43
|
hide?: boolean;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
declare const Line: (<T>(props:
|
|
46
|
-
Dots: <T>(props:
|
|
47
|
-
Null: <T>(props:
|
|
46
|
+
declare const Line: (<T>(props: MapProps<ILineProps & T>) => ReturnEl) & {
|
|
47
|
+
Dots: <T>(props: MapProps<ILineDotsProps & T, ILineDotsContext>) => ReturnEl;
|
|
48
|
+
Null: <T>(props: MapProps<ILineNullProps & T>) => ReturnEl;
|
|
48
49
|
};
|
|
49
50
|
|
|
50
51
|
export default Line;
|
package/lib/types/Plot.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IBoxProps } from '@semcore/flex-box';
|
|
2
|
-
import {
|
|
2
|
+
import { ReturnEl } from '@semcore/core';
|
|
3
|
+
import { MapProps } from './Plot';
|
|
3
4
|
import IContext from './context';
|
|
4
5
|
|
|
5
6
|
export interface IPlotProps extends IContext, IBoxProps {
|
|
@@ -86,6 +87,12 @@ export type PlotSummarizerConfig = {
|
|
|
86
87
|
groupsLimit?: number;
|
|
87
88
|
};
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
export type MapProps<Props, Ctx = {}, UCProps = {}> = Props & {
|
|
91
|
+
children?:
|
|
92
|
+
| ((props: Props & Ctx, handlers: UCProps) => Props | React.PropsWithChildren)
|
|
93
|
+
| React.ReactNode;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
declare const Plot: <T>(props: MapProps<IPlotProps & T>) => ReturnEl;
|
|
90
97
|
|
|
91
98
|
export default Plot;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ReturnEl } from '@semcore/core';
|
|
3
|
+
import type { MapProps } from './types';
|
|
3
4
|
declare type RadianData = {
|
|
4
5
|
/**
|
|
5
6
|
* Text label on the end of radian.
|
|
@@ -190,13 +191,13 @@ export interface IRadialTreeTitleProps {
|
|
|
190
191
|
['data-radial-animation']?: `${string}-label`;
|
|
191
192
|
color?: string;
|
|
192
193
|
}
|
|
193
|
-
declare const RadialTree: (<T>(props:
|
|
194
|
-
Title: <T_1>(props:
|
|
195
|
-
Radian: (<T_2>(props:
|
|
196
|
-
Line: <T_3>(props:
|
|
197
|
-
Cap: <T_4>(props:
|
|
198
|
-
Icon: <T_5>(props:
|
|
199
|
-
Label: <T_6>(props:
|
|
194
|
+
declare const RadialTree: (<T>(props: MapProps<IRadialTreeProps & T, {}, {}>) => ReturnEl) & {
|
|
195
|
+
Title: <T_1>(props: MapProps<IRadialTreeTitleProps & T_1, {}, {}>) => ReturnEl;
|
|
196
|
+
Radian: (<T_2>(props: MapProps<IRadialTreeRadianProps & T_2, {}, {}>) => ReturnEl) & {
|
|
197
|
+
Line: <T_3>(props: MapProps<IRadialTreeRadianLineProps & T_3, {}, {}>) => ReturnEl;
|
|
198
|
+
Cap: <T_4>(props: MapProps<IRadialTreeRadianCapProps & T_4, {}, {}>) => ReturnEl;
|
|
199
|
+
Icon: <T_5>(props: MapProps<IRadialTreeRadianIconProps & T_5, {}, {}>) => ReturnEl;
|
|
200
|
+
Label: <T_6>(props: MapProps<IRadialTreeRadianLabelProps & T_6, {}, {}>) => ReturnEl;
|
|
200
201
|
};
|
|
201
202
|
};
|
|
202
203
|
export default RadialTree;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
|
|
4
5
|
export interface IReferenceLineProps extends IContext {
|
|
@@ -23,9 +24,9 @@ export interface IReferenceLineBackgroundProps extends IContext {
|
|
|
23
24
|
value: any;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
declare const ReferenceLine: (<T>(props:
|
|
27
|
-
Title: <T>(props:
|
|
28
|
-
Background: <T>(props:
|
|
27
|
+
declare const ReferenceLine: (<T>(props: MapProps<IReferenceLineProps & T>) => ReturnEl) & {
|
|
28
|
+
Title: <T>(props: MapProps<IReferenceLineTitleProps & T>) => ReturnEl;
|
|
29
|
+
Background: <T>(props: MapProps<IReferenceLineBackgroundProps & T>) => ReturnEl;
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
export default ReferenceLine;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IBoxProps } from '@semcore/flex-box';
|
|
2
|
-
import {
|
|
2
|
+
import { ReturnEl } from '@semcore/core';
|
|
3
|
+
import { MapProps } from './Plot';
|
|
3
4
|
|
|
4
5
|
export interface IResponsiveContainerProps extends IBoxProps {
|
|
5
6
|
/** Relation between height and width dimensions block */
|
|
@@ -14,7 +15,7 @@ export interface IResponsiveContainerContext {
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
declare const ResponsiveContainer: <T>(
|
|
17
|
-
props:
|
|
18
|
+
props: MapProps<IResponsiveContainerProps & T, IResponsiveContainerContext>,
|
|
18
19
|
) => ReturnEl;
|
|
19
20
|
|
|
20
21
|
export default ResponsiveContainer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
|
|
4
5
|
export interface IScatterPlotProps extends IContext {
|
|
@@ -22,6 +23,6 @@ export interface IScatterPlotProps extends IContext {
|
|
|
22
23
|
r?: number;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
declare const ScatterPlot: <T>(props:
|
|
26
|
+
declare const ScatterPlot: <T>(props: MapProps<IScatterPlotProps & T>) => ReturnEl;
|
|
26
27
|
|
|
27
28
|
export default ScatterPlot;
|
package/lib/types/StackBar.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
import { IBarContext, IBarProps } from './Bar';
|
|
4
5
|
import { IHorizontalBarProps } from './HorizontalBar';
|
|
@@ -18,9 +19,9 @@ export interface IStackBarContext {
|
|
|
18
19
|
series: any[];
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
declare const StackBar: (<T>(props:
|
|
22
|
-
Bar: <T>(props:
|
|
23
|
-
HorizontalBar: <T>(props:
|
|
22
|
+
declare const StackBar: (<T>(props: MapProps<IStackBarProps & T, IStackBarContext>) => ReturnEl) & {
|
|
23
|
+
Bar: <T>(props: MapProps<IBarProps & T, IBarContext>) => ReturnEl;
|
|
24
|
+
HorizontalBar: <T>(props: MapProps<IHorizontalBarProps & T, IBarContext>) => ReturnEl;
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export default StackBar;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
import Area from './Area';
|
|
4
5
|
|
|
@@ -18,7 +19,7 @@ export interface IStackedAreaContext {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
declare const StackedArea: (<T>(
|
|
21
|
-
props:
|
|
22
|
+
props: MapProps<IStackedAreaProps & T, IStackedAreaContext>,
|
|
22
23
|
) => ReturnEl) & {
|
|
23
24
|
Area: typeof Area;
|
|
24
25
|
};
|
package/lib/types/Tooltip.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import Popper, { IPopperProps, IPopperTriggerProps } from '@semcore/popper';
|
|
3
|
-
import {
|
|
3
|
+
import { PropGetterFn, ReturnEl } from '@semcore/core';
|
|
4
|
+
import { MapProps } from './Plot';
|
|
4
5
|
import { IBoxProps } from '@semcore/flex-box';
|
|
5
6
|
import IContext from './context';
|
|
6
7
|
|
|
@@ -21,13 +22,13 @@ export interface ITooltipChartContext {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
declare const Tooltip: (<T>(
|
|
24
|
-
props:
|
|
25
|
+
props: MapProps<ITooltipChartProps & T, ITooltipChartContext>,
|
|
25
26
|
) => ReturnEl) & {
|
|
26
|
-
Trigger: <T>(props:
|
|
27
|
-
Popper: <T>(props:
|
|
28
|
-
Title: <T>(props:
|
|
29
|
-
Dot: <T>(props:
|
|
30
|
-
Footer: <T>(props:
|
|
27
|
+
Trigger: <T>(props: MapProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
|
|
28
|
+
Popper: <T>(props: MapProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
|
|
29
|
+
Title: <T>(props: MapProps<IBoxProps & T>) => ReturnEl;
|
|
30
|
+
Dot: <T>(props: MapProps<IBoxProps & { color?: string } & T>) => ReturnEl;
|
|
31
|
+
Footer: <T>(props: MapProps<T>) => null;
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
export default Tooltip;
|
package/lib/types/Venn.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReturnEl } from '@semcore/core';
|
|
2
|
+
import { MapProps } from './Plot';
|
|
2
3
|
import IContext from './context';
|
|
3
4
|
import { IFadeInOutProps } from '@semcore/animation';
|
|
4
5
|
|
|
@@ -37,9 +38,9 @@ export interface IIntersectionProps extends IContext, IFadeInOutProps {
|
|
|
37
38
|
dataKey: string;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
declare const Venn: (<T>(props:
|
|
41
|
-
Circle: <T>(props:
|
|
42
|
-
Intersection: <T>(props:
|
|
41
|
+
declare const Venn: (<T>(props: MapProps<IVennProps & T>) => ReturnEl) & {
|
|
42
|
+
Circle: <T>(props: MapProps<ICircleProps & T>) => ReturnEl;
|
|
43
|
+
Intersection: <T>(props: MapProps<IIntersectionProps & T>) => ReturnEl;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
export default Venn;
|