@octanejs/visx 0.1.4 → 0.1.5
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/package.json +5 -5
- package/src/a11y/components/ChartA11yAnnouncer.tsrx +4 -3
- package/src/a11y/components/ChartA11yAnnouncer.tsrx.d.ts +4 -3
- package/src/annotation/components/Annotation.tsrx +2 -2
- package/src/annotation/components/Annotation.tsrx.d.ts +2 -2
- package/src/annotation/components/EditableAnnotation.tsrx +3 -2
- package/src/annotation/components/EditableAnnotation.tsrx.d.ts +3 -2
- package/src/annotation/components/HtmlLabel.tsrx +3 -2
- package/src/annotation/components/HtmlLabel.tsrx.d.ts +3 -2
- package/src/axis/types.ts +5 -4
- package/src/brush/BaseBrush.tsrx +3 -2
- package/src/brush/BaseBrush.tsrx.d.ts +3 -2
- package/src/brush/Brush.tsrx +3 -2
- package/src/brush/Brush.tsrx.d.ts +3 -2
- package/src/brush/BrushHandle.tsrx +2 -2
- package/src/brush/BrushHandle.tsrx.d.ts +2 -2
- package/src/brush/utils.ts +0 -1
- package/src/chord/Chord.tsrx +2 -2
- package/src/chord/Chord.tsrx.d.ts +2 -2
- package/src/clip-path/clip-paths/ClipPath.tsrx +3 -2
- package/src/clip-path/clip-paths/ClipPath.tsrx.d.ts +3 -2
- package/src/delaunay/components/Polygon.tsrx +3 -2
- package/src/delaunay/components/Polygon.tsrx.d.ts +3 -2
- package/src/drag/Drag.tsrx +2 -2
- package/src/drag/Drag.tsrx.d.ts +2 -2
- package/src/drag/useDrag.tsrx +2 -7
- package/src/drag/useDrag.tsrx.d.ts +0 -1
- package/src/geo/graticule/Graticule.tsrx +3 -2
- package/src/geo/graticule/Graticule.tsrx.d.ts +3 -2
- package/src/geo/projections/Projection.tsrx +5 -4
- package/src/geo/projections/Projection.tsrx.d.ts +5 -4
- package/src/glyph/glyphs/Glyph.tsrx +2 -2
- package/src/glyph/glyphs/Glyph.tsrx.d.ts +2 -2
- package/src/glyph/glyphs/GlyphCircle.tsrx +3 -2
- package/src/glyph/glyphs/GlyphCircle.tsrx.d.ts +3 -2
- package/src/glyph/glyphs/GlyphCross.tsrx +3 -2
- package/src/glyph/glyphs/GlyphCross.tsrx.d.ts +3 -2
- package/src/glyph/glyphs/GlyphDiamond.tsrx +3 -2
- package/src/glyph/glyphs/GlyphDiamond.tsrx.d.ts +3 -2
- package/src/glyph/glyphs/GlyphSquare.tsrx +3 -2
- package/src/glyph/glyphs/GlyphSquare.tsrx.d.ts +3 -2
- package/src/glyph/glyphs/GlyphStar.tsrx +3 -2
- package/src/glyph/glyphs/GlyphStar.tsrx.d.ts +3 -2
- package/src/glyph/glyphs/GlyphTriangle.tsrx +3 -2
- package/src/glyph/glyphs/GlyphTriangle.tsrx.d.ts +3 -2
- package/src/glyph/glyphs/GlyphWye.tsrx +3 -2
- package/src/glyph/glyphs/GlyphWye.tsrx.d.ts +3 -2
- package/src/gradient/gradients/LinearGradient.tsrx +3 -2
- package/src/gradient/gradients/LinearGradient.tsrx.d.ts +3 -2
- package/src/grid/grids/GridAngle.tsrx +2 -2
- package/src/grid/grids/GridAngle.tsrx.d.ts +2 -2
- package/src/grid/grids/GridColumns.tsrx +2 -2
- package/src/grid/grids/GridColumns.tsrx.d.ts +2 -2
- package/src/grid/grids/GridPolar.tsrx +4 -3
- package/src/grid/grids/GridPolar.tsrx.d.ts +4 -3
- package/src/grid/grids/GridRadial.tsrx +4 -3
- package/src/grid/grids/GridRadial.tsrx.d.ts +4 -3
- package/src/grid/grids/GridRows.tsrx +2 -2
- package/src/grid/grids/GridRows.tsrx.d.ts +2 -2
- package/src/grid/types.ts +3 -2
- package/src/group/Group.tsrx +5 -3
- package/src/group/Group.tsrx.d.ts +5 -3
- package/src/heatmap/heatmaps/HeatmapCircle.tsrx +3 -2
- package/src/heatmap/heatmaps/HeatmapCircle.tsrx.d.ts +3 -2
- package/src/heatmap/heatmaps/HeatmapRect.tsrx +3 -2
- package/src/heatmap/heatmaps/HeatmapRect.tsrx.d.ts +3 -2
- package/src/hierarchy/hierarchies/Cluster.tsrx +3 -2
- package/src/hierarchy/hierarchies/Cluster.tsrx.d.ts +3 -2
- package/src/hierarchy/hierarchies/Pack.tsrx +3 -2
- package/src/hierarchy/hierarchies/Pack.tsrx.d.ts +3 -2
- package/src/hierarchy/hierarchies/Partition.tsrx +3 -2
- package/src/hierarchy/hierarchies/Partition.tsrx.d.ts +3 -2
- package/src/hierarchy/hierarchies/Tree.tsrx +3 -2
- package/src/hierarchy/hierarchies/Tree.tsrx.d.ts +3 -2
- package/src/hierarchy/hierarchies/Treemap.tsrx +3 -2
- package/src/hierarchy/hierarchies/Treemap.tsrx.d.ts +3 -2
- package/src/legend/legends/Legend/LegendItem.tsrx +3 -2
- package/src/legend/legends/Legend/LegendItem.tsrx.d.ts +3 -2
- package/src/legend/legends/Legend/LegendLabel.tsrx +4 -3
- package/src/legend/legends/Legend/LegendLabel.tsrx.d.ts +4 -3
- package/src/legend/legends/Legend/index.tsrx +3 -2
- package/src/legend/legends/Legend/index.tsrx.d.ts +3 -2
- package/src/marker/markers/Marker.tsrx +3 -2
- package/src/marker/markers/Marker.tsrx.d.ts +3 -2
- package/src/pattern/patterns/Pattern.tsrx +2 -2
- package/src/pattern/patterns/Pattern.tsrx.d.ts +2 -2
- package/src/responsive/components/ParentSize.tsrx +10 -4
- package/src/responsive/components/ParentSize.tsrx.d.ts +9 -4
- package/src/responsive/components/ScaleSVG.tsrx +3 -2
- package/src/responsive/components/ScaleSVG.tsrx.d.ts +3 -2
- package/src/sankey/Sankey.tsrx +3 -2
- package/src/sankey/Sankey.tsrx.d.ts +3 -2
- package/src/shape/shapes/Arc.tsrx +3 -2
- package/src/shape/shapes/Arc.tsrx.d.ts +3 -2
- package/src/shape/shapes/BarGroup.tsrx +2 -2
- package/src/shape/shapes/BarGroup.tsrx.d.ts +2 -2
- package/src/shape/shapes/BarGroupHorizontal.tsrx +2 -2
- package/src/shape/shapes/BarGroupHorizontal.tsrx.d.ts +2 -2
- package/src/shape/shapes/BarRounded.tsrx +3 -2
- package/src/shape/shapes/BarRounded.tsrx.d.ts +3 -2
- package/src/shape/shapes/LinePath.tsrx +3 -2
- package/src/shape/shapes/LinePath.tsrx.d.ts +3 -2
- package/src/shape/shapes/LineRadial.tsrx +2 -2
- package/src/shape/shapes/LineRadial.tsrx.d.ts +2 -2
- package/src/shape/shapes/Pie.tsrx +3 -3
- package/src/shape/shapes/Pie.tsrx.d.ts +3 -3
- package/src/shape/shapes/Polygon.tsrx +3 -2
- package/src/shape/shapes/Polygon.tsrx.d.ts +3 -2
- package/src/shape/shapes/SplitLinePath.tsrx +15 -4
- package/src/shape/shapes/SplitLinePath.tsrx.d.ts +14 -4
- package/src/shape/shapes/Stack.tsrx +2 -2
- package/src/shape/shapes/Stack.tsrx.d.ts +2 -2
- package/src/shape/types/area.ts +3 -2
- package/src/shape/types/barStack.ts +2 -2
- package/src/shape/types/base.ts +8 -5
- package/src/shape/types/link.ts +3 -2
- package/src/stats/BoxPlot.tsrx +3 -2
- package/src/stats/BoxPlot.tsrx.d.ts +3 -2
- package/src/stats/ViolinPlot.tsrx +3 -2
- package/src/stats/ViolinPlot.tsrx.d.ts +3 -2
- package/src/theme/provider/ThemeScope.tsrx +3 -2
- package/src/theme/provider/ThemeScope.tsrx.d.ts +3 -2
- package/src/tooltip/Portal.tsrx +2 -2
- package/src/tooltip/Portal.tsrx.d.ts +2 -2
- package/src/tooltip/floating/ChartTooltip.tsrx +3 -2
- package/src/tooltip/floating/ChartTooltip.tsrx.d.ts +3 -2
- package/src/tooltip/floating/ChartTooltipContent.tsrx +13 -12
- package/src/tooltip/floating/ChartTooltipContent.tsrx.d.ts +13 -12
- package/src/tooltip/floating/FloatingTooltip.tsrx.d.ts +1 -1
- package/src/tooltip/floating/context.tsrx +2 -1
- package/src/tooltip/floating/context.tsrx.d.ts +2 -1
- package/src/tooltip/floating/types.ts +4 -3
- package/src/tooltip/tooltips/Tooltip.tsrx +3 -2
- package/src/tooltip/tooltips/Tooltip.tsrx.d.ts +3 -2
- package/src/voronoi/components/VoronoiPolygon.tsrx +3 -2
- package/src/voronoi/components/VoronoiPolygon.tsrx.d.ts +3 -2
- package/src/wordcloud/Wordcloud.tsrx +2 -2
- package/src/wordcloud/Wordcloud.tsrx.d.ts +2 -2
- package/src/xychart/components/Tooltip.tsrx +4 -3
- package/src/xychart/components/Tooltip.tsrx.d.ts +4 -3
- package/src/xychart/components/XYChart.tsrx +3 -2
- package/src/xychart/components/XYChart.tsrx.d.ts +3 -2
- package/src/xychart/components/series/GlyphSeries.tsrx +3 -2
- package/src/xychart/components/series/private/AnimatedGlyphs.tsrx +3 -2
- package/src/xychart/components/series/private/BaseBarGroup.tsrx +3 -2
- package/src/xychart/components/series/private/BaseBarGroup.tsrx.d.ts +3 -2
- package/src/xychart/components/series/private/BaseGlyphSeries.tsrx +2 -2
- package/src/xychart/components/series/private/BaseGlyphSeries.tsrx.d.ts +2 -2
- package/src/xychart/hooks/useStackedData.tsrx +2 -2
- package/src/xychart/hooks/useStackedData.tsrx.d.ts +2 -2
- package/src/xychart/providers/DataProvider.tsrx +2 -2
- package/src/xychart/providers/DataProvider.tsrx.d.ts +2 -2
- package/src/xychart/providers/EventEmitterProvider.tsrx +2 -2
- package/src/xychart/providers/EventEmitterProvider.tsrx.d.ts +2 -2
- package/src/xychart/providers/ThemeProvider.tsrx +2 -2
- package/src/xychart/providers/ThemeProvider.tsrx.d.ts +2 -2
- package/src/xychart/providers/TooltipProvider.tsrx +2 -2
- package/src/xychart/providers/TooltipProvider.tsrx.d.ts +2 -2
- package/src/xychart/utils/collectDataRegistryEntries.ts +2 -2
- package/src/xychart/utils/getChildrenAndGrandchildrenWithProps.ts +6 -5
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
export type GlyphCircleProps<Datum> = {
|
|
5
6
|
/** Render function override which is passed the configured path generator. */
|
|
6
7
|
children?: ({ path, }: {
|
|
7
8
|
path: Symbol<unknown, Datum>;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => OctaneNode;
|
|
9
10
|
/** classname to apply to glyph path element. */
|
|
10
11
|
className?: string;
|
|
11
12
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
import { symbol, symbolCross } from 'd3-shape';
|
|
@@ -10,7 +11,7 @@ export type GlyphCrossProps<Datum> = {
|
|
|
10
11
|
path,
|
|
11
12
|
}: {
|
|
12
13
|
path: Symbol<unknown, Datum>;
|
|
13
|
-
}) =>
|
|
14
|
+
}) => OctaneNode;
|
|
14
15
|
/** classname to apply to glyph path element. */
|
|
15
16
|
className?: string;
|
|
16
17
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
export type GlyphCrossProps<Datum> = {
|
|
5
6
|
/** Render function override which is passed the configured path generator. */
|
|
6
7
|
children?: ({ path, }: {
|
|
7
8
|
path: Symbol<unknown, Datum>;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => OctaneNode;
|
|
9
10
|
/** classname to apply to glyph path element. */
|
|
10
11
|
className?: string;
|
|
11
12
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
import { symbol, symbolDiamond } from 'd3-shape';
|
|
@@ -10,7 +11,7 @@ export type GlyphDiamondProps<Datum> = {
|
|
|
10
11
|
path,
|
|
11
12
|
}: {
|
|
12
13
|
path: Symbol<unknown, Datum>;
|
|
13
|
-
}) =>
|
|
14
|
+
}) => OctaneNode;
|
|
14
15
|
/** classname to apply to glyph path element. */
|
|
15
16
|
className?: string;
|
|
16
17
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
export type GlyphDiamondProps<Datum> = {
|
|
5
6
|
/** Render function override which is passed the configured path generator. */
|
|
6
7
|
children?: ({ path, }: {
|
|
7
8
|
path: Symbol<unknown, Datum>;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => OctaneNode;
|
|
9
10
|
/** classname to apply to glyph path element. */
|
|
10
11
|
className?: string;
|
|
11
12
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
import { symbol, symbolSquare } from 'd3-shape';
|
|
@@ -10,7 +11,7 @@ export type GlyphSquareProps<Datum> = {
|
|
|
10
11
|
path,
|
|
11
12
|
}: {
|
|
12
13
|
path: Symbol<unknown, Datum>;
|
|
13
|
-
}) =>
|
|
14
|
+
}) => OctaneNode;
|
|
14
15
|
/** classname to apply to glyph path element. */
|
|
15
16
|
className?: string;
|
|
16
17
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
export type GlyphSquareProps<Datum> = {
|
|
5
6
|
/** Render function override which is passed the configured path generator. */
|
|
6
7
|
children?: ({ path, }: {
|
|
7
8
|
path: Symbol<unknown, Datum>;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => OctaneNode;
|
|
9
10
|
/** classname to apply to glyph path element. */
|
|
10
11
|
className?: string;
|
|
11
12
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
import { symbol, symbolStar } from 'd3-shape';
|
|
@@ -10,7 +11,7 @@ export type GlyphStarProps<Datum> = {
|
|
|
10
11
|
path,
|
|
11
12
|
}: {
|
|
12
13
|
path: Symbol<unknown, Datum>;
|
|
13
|
-
}) =>
|
|
14
|
+
}) => OctaneNode;
|
|
14
15
|
/** classname to apply to glyph path element. */
|
|
15
16
|
className?: string;
|
|
16
17
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
export type GlyphStarProps<Datum> = {
|
|
5
6
|
/** Render function override which is passed the configured path generator. */
|
|
6
7
|
children?: ({ path, }: {
|
|
7
8
|
path: Symbol<unknown, Datum>;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => OctaneNode;
|
|
9
10
|
/** classname to apply to glyph path element. */
|
|
10
11
|
className?: string;
|
|
11
12
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
import { symbol, symbolTriangle } from 'd3-shape';
|
|
@@ -10,7 +11,7 @@ export type GlyphTriangleProps<Datum> = {
|
|
|
10
11
|
path,
|
|
11
12
|
}: {
|
|
12
13
|
path: Symbol<unknown, Datum>;
|
|
13
|
-
}) =>
|
|
14
|
+
}) => OctaneNode;
|
|
14
15
|
/** classname to apply to glyph path element. */
|
|
15
16
|
className?: string;
|
|
16
17
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
export type GlyphTriangleProps<Datum> = {
|
|
5
6
|
/** Render function override which is passed the configured path generator. */
|
|
6
7
|
children?: ({ path, }: {
|
|
7
8
|
path: Symbol<unknown, Datum>;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => OctaneNode;
|
|
9
10
|
/** classname to apply to glyph path element. */
|
|
10
11
|
className?: string;
|
|
11
12
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
import { symbol, symbolWye } from 'd3-shape';
|
|
@@ -10,7 +11,7 @@ export type GlyphWyeProps<Datum> = {
|
|
|
10
11
|
path,
|
|
11
12
|
}: {
|
|
12
13
|
path: Symbol<unknown, Datum>;
|
|
13
|
-
}) =>
|
|
14
|
+
}) => OctaneNode;
|
|
14
15
|
/** classname to apply to glyph path element. */
|
|
15
16
|
className?: string;
|
|
16
17
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { Symbol } from 'd3-shape';
|
|
4
5
|
export type GlyphWyeProps<Datum> = {
|
|
5
6
|
/** Render function override which is passed the configured path generator. */
|
|
6
7
|
children?: ({ path, }: {
|
|
7
8
|
path: Symbol<unknown, Datum>;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => OctaneNode;
|
|
9
10
|
/** classname to apply to glyph path element. */
|
|
10
11
|
className?: string;
|
|
11
12
|
/** Top offset to apply to glyph g element container. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import useStableId from '../../kernel/ids/useStableId.tsrx';
|
|
3
4
|
|
|
4
5
|
type LinearGradientOwnProps = {
|
|
@@ -29,7 +30,7 @@ type LinearGradientOwnProps = {
|
|
|
29
30
|
/** Transform to apply to linearGradient, overrides rotate. */
|
|
30
31
|
transform?: string;
|
|
31
32
|
/** Override of linearGradient children. */
|
|
32
|
-
children?:
|
|
33
|
+
children?: OctaneNode;
|
|
33
34
|
/** (When no x or y values are passed), will orient the gradient vertically instead of horizontally. */
|
|
34
35
|
vertical?: boolean;
|
|
35
36
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
type LinearGradientOwnProps = {
|
|
4
5
|
/** Unique id for the gradient. Should be unique across all page elements. */
|
|
5
6
|
id?: string;
|
|
@@ -28,7 +29,7 @@ type LinearGradientOwnProps = {
|
|
|
28
29
|
/** Transform to apply to linearGradient, overrides rotate. */
|
|
29
30
|
transform?: string;
|
|
30
31
|
/** Override of linearGradient children. */
|
|
31
|
-
children?:
|
|
32
|
+
children?: OctaneNode;
|
|
32
33
|
/** (When no x or y values are passed), will orient the gradient vertically instead of horizontally. */
|
|
33
34
|
vertical?: boolean;
|
|
34
35
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
import type { LineProps } from '@octanejs/visx/shape';
|
|
4
4
|
import { Line } from '@octanejs/visx/shape';
|
|
@@ -33,7 +33,7 @@ export type GridAngleProps<Scale extends GridScale> = CommonGridProps & {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export type AllGridAngleProps<Scale extends GridScale> =
|
|
36
|
-
GridAngleProps<Scale> & Omit<LineProps & Omit<SVGProps<SVGLineElement>, | keyof LineProps
|
|
36
|
+
GridAngleProps<Scale> & Omit<LineProps & Omit<Octane.SVGProps<SVGLineElement>, | keyof LineProps
|
|
37
37
|
| 'children'>, keyof GridAngleProps<Scale>>;
|
|
38
38
|
|
|
39
39
|
export default function GridAngle<Scale extends GridScale>({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
import type { LineProps } from '@octanejs/visx/shape';
|
|
4
4
|
import type { ScaleInput } from '@octanejs/visx/scale';
|
|
5
5
|
import type { CommonGridProps, GridScale } from '../types';
|
|
@@ -24,6 +24,6 @@ export type GridAngleProps<Scale extends GridScale> = CommonGridProps & {
|
|
|
24
24
|
*/
|
|
25
25
|
lineClassName?: string;
|
|
26
26
|
};
|
|
27
|
-
export type AllGridAngleProps<Scale extends GridScale> = GridAngleProps<Scale> & Omit<LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps | 'children'>, keyof GridAngleProps<Scale>>;
|
|
27
|
+
export type AllGridAngleProps<Scale extends GridScale> = GridAngleProps<Scale> & Omit<LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps | 'children'>, keyof GridAngleProps<Scale>>;
|
|
28
28
|
export default function GridAngle<Scale extends GridScale>({ className, innerRadius, left, lineClassName, lineStyle, numTicks, outerRadius, scale, stroke, strokeDasharray, strokeWidth, tickValues, top, children, // Explicitly extract children so it doesn't get spread to Line
|
|
29
29
|
...restProps }: AllGridAngleProps<Scale>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
import { Line } from '@octanejs/visx/shape';
|
|
4
4
|
import type { LineProps } from '@octanejs/visx/shape';
|
|
@@ -22,7 +22,7 @@ export type GridColumnsProps<Scale extends GridScale> = CommonGridProps & {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export type AllGridColumnsProps<Scale extends GridScale> =
|
|
25
|
-
GridColumnsProps<Scale> & Omit<LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps>, keyof GridColumnsProps<Scale>>;
|
|
25
|
+
GridColumnsProps<Scale> & Omit<LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps>, keyof GridColumnsProps<Scale>>;
|
|
26
26
|
|
|
27
27
|
export default function GridColumns<Scale extends GridScale>({
|
|
28
28
|
top = 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
import type { LineProps } from '@octanejs/visx/shape';
|
|
4
4
|
import type { ScaleInput } from '@octanejs/visx/scale';
|
|
5
5
|
import type { CommonGridProps, GridScale } from '../types';
|
|
@@ -14,5 +14,5 @@ export type GridColumnsProps<Scale extends GridScale> = CommonGridProps & {
|
|
|
14
14
|
/** Total height of each grid column line. */
|
|
15
15
|
height: number;
|
|
16
16
|
};
|
|
17
|
-
export type AllGridColumnsProps<Scale extends GridScale> = GridColumnsProps<Scale> & Omit<LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps>, keyof GridColumnsProps<Scale>>;
|
|
17
|
+
export type AllGridColumnsProps<Scale extends GridScale> = GridColumnsProps<Scale> & Omit<LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps>, keyof GridColumnsProps<Scale>>;
|
|
18
18
|
export default function GridColumns<Scale extends GridScale>({ top, left, scale, height, stroke, strokeWidth, strokeDasharray, className, numTicks, lineStyle, offset, tickValues, children, ...restProps }: AllGridColumnsProps<Scale>): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CSSProperties
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import { Group } from '@octanejs/visx/group';
|
|
4
5
|
import type { ScaleInput } from '@octanejs/visx/scale';
|
|
@@ -54,11 +55,11 @@ export type GridPolarProps<AngleScale extends GridScale, RadialScale extends Gri
|
|
|
54
55
|
/**
|
|
55
56
|
* Style object set as the angle line path style attribute.
|
|
56
57
|
*/
|
|
57
|
-
lineStyleAngle?: CSSProperties & LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps>;
|
|
58
|
+
lineStyleAngle?: CSSProperties & LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps>;
|
|
58
59
|
/**
|
|
59
60
|
* Style object set as the radius line path style attribute.
|
|
60
61
|
*/
|
|
61
|
-
lineStyleRadial?: CSSProperties & LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps>;
|
|
62
|
+
lineStyleRadial?: CSSProperties & LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps>;
|
|
62
63
|
/**
|
|
63
64
|
* The number of angle ticks wanted for the grid. Note this is approximate due to d3's algorithm,
|
|
64
65
|
* you can use tickValues for greater control
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type { CSSProperties
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
4
|
import type { ScaleInput } from '@octanejs/visx/scale';
|
|
4
5
|
import type { LineProps } from '@octanejs/visx/shape';
|
|
5
6
|
import type { CommonGridProps, GridScale } from '../types';
|
|
@@ -48,11 +49,11 @@ export type GridPolarProps<AngleScale extends GridScale, RadialScale extends Gri
|
|
|
48
49
|
/**
|
|
49
50
|
* Style object set as the angle line path style attribute.
|
|
50
51
|
*/
|
|
51
|
-
lineStyleAngle?: CSSProperties & LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps>;
|
|
52
|
+
lineStyleAngle?: CSSProperties & LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps>;
|
|
52
53
|
/**
|
|
53
54
|
* Style object set as the radius line path style attribute.
|
|
54
55
|
*/
|
|
55
|
-
lineStyleRadial?: CSSProperties & LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps>;
|
|
56
|
+
lineStyleRadial?: CSSProperties & LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps>;
|
|
56
57
|
/**
|
|
57
58
|
* The number of angle ticks wanted for the grid. Note this is approximate due to d3's algorithm,
|
|
58
59
|
* you can use tickValues for greater control
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import { Arc } from '@octanejs/visx/shape';
|
|
4
5
|
import type { ArcProps } from '@octanejs/visx/shape';
|
|
@@ -43,11 +44,11 @@ export type GridRadialProps<Scale extends GridScale> = CommonGridProps & {
|
|
|
43
44
|
/**
|
|
44
45
|
* Child components to the Arc.
|
|
45
46
|
*/
|
|
46
|
-
children?: () =>
|
|
47
|
+
children?: () => OctaneNode;
|
|
47
48
|
};
|
|
48
49
|
|
|
49
50
|
export type AllGridRadialProps<Scale extends GridScale, Datum> =
|
|
50
|
-
GridRadialProps<Scale> & Omit<ArcProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof ArcProps<Datum>>, keyof GridRadialProps<Scale>>;
|
|
51
|
+
GridRadialProps<Scale> & Omit<ArcProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof ArcProps<Datum>>, keyof GridRadialProps<Scale>>;
|
|
51
52
|
|
|
52
53
|
export default function GridRadial<Scale extends GridScale, Datum>({
|
|
53
54
|
arcThickness,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { ArcProps } from '@octanejs/visx/shape';
|
|
4
5
|
import type { ScaleInput } from '@octanejs/visx/scale';
|
|
5
6
|
import type { CommonGridProps, GridScale } from '../types';
|
|
@@ -38,7 +39,7 @@ export type GridRadialProps<Scale extends GridScale> = CommonGridProps & {
|
|
|
38
39
|
/**
|
|
39
40
|
* Child components to the Arc.
|
|
40
41
|
*/
|
|
41
|
-
children?: () =>
|
|
42
|
+
children?: () => OctaneNode;
|
|
42
43
|
};
|
|
43
|
-
export type AllGridRadialProps<Scale extends GridScale, Datum> = GridRadialProps<Scale> & Omit<ArcProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof ArcProps<Datum>>, keyof GridRadialProps<Scale>>;
|
|
44
|
+
export type AllGridRadialProps<Scale extends GridScale, Datum> = GridRadialProps<Scale> & Omit<ArcProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof ArcProps<Datum>>, keyof GridRadialProps<Scale>>;
|
|
44
45
|
export default function GridRadial<Scale extends GridScale, Datum>({ arcThickness, className, endAngle, fill, fillOpacity, left, lineClassName, lineStyle, numTicks, scale, startAngle, stroke, strokeWidth, strokeDasharray, tickValues, top, ...restProps }: AllGridRadialProps<Scale, Datum>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
import { Line } from '@octanejs/visx/shape';
|
|
4
4
|
import type { LineProps } from '@octanejs/visx/shape';
|
|
@@ -22,7 +22,7 @@ export type GridRowsProps<Scale extends GridScale> = CommonGridProps & {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export type AllGridRowsProps<Scale extends GridScale> =
|
|
25
|
-
GridRowsProps<Scale> & Omit<LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps>, keyof GridRowsProps<Scale>>;
|
|
25
|
+
GridRowsProps<Scale> & Omit<LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps>, keyof GridRowsProps<Scale>>;
|
|
26
26
|
|
|
27
27
|
export default function GridRows<Scale extends GridScale>({
|
|
28
28
|
top = 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
import type { LineProps } from '@octanejs/visx/shape';
|
|
4
4
|
import type { ScaleInput } from '@octanejs/visx/scale';
|
|
5
5
|
import type { CommonGridProps, GridScale } from '../types';
|
|
@@ -14,5 +14,5 @@ export type GridRowsProps<Scale extends GridScale> = CommonGridProps & {
|
|
|
14
14
|
/** Total width of each grid row line. */
|
|
15
15
|
width: number;
|
|
16
16
|
};
|
|
17
|
-
export type AllGridRowsProps<Scale extends GridScale> = GridRowsProps<Scale> & Omit<LineProps & Omit<SVGProps<SVGLineElement>, keyof LineProps>, keyof GridRowsProps<Scale>>;
|
|
17
|
+
export type AllGridRowsProps<Scale extends GridScale> = GridRowsProps<Scale> & Omit<LineProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineProps>, keyof GridRowsProps<Scale>>;
|
|
18
18
|
export default function GridRows<Scale extends GridScale>({ top, left, scale, width, stroke, strokeWidth, strokeDasharray, className, children, numTicks, lineStyle, offset, tickValues, ...restProps }: AllGridRowsProps<Scale>): import("react").JSX.Element;
|
package/src/grid/types.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CSSProperties
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import type { D3Scale, NumberLike } from '@octanejs/visx/scale';
|
|
3
4
|
|
|
4
5
|
// In order to plot values on an axis, output of the scale must be number.
|
|
@@ -20,7 +21,7 @@ export type CommonGridProps = {
|
|
|
20
21
|
/** classname to apply to line group element. */
|
|
21
22
|
className?: string;
|
|
22
23
|
/** Optionally override rendering of grid lines. */
|
|
23
|
-
children?: (props: { lines: GridLines }) =>
|
|
24
|
+
children?: (props: { lines: GridLines }) => OctaneNode;
|
|
24
25
|
/** Top offset to apply to glyph g element container. */
|
|
25
26
|
top?: number;
|
|
26
27
|
/** Left offset to apply to glyph g element container. */
|
package/src/group/Group.tsrx
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Ref } from 'react';
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
2
4
|
import cx from 'classnames';
|
|
3
5
|
|
|
4
6
|
export type GroupProps = {
|
|
@@ -10,7 +12,7 @@ export type GroupProps = {
|
|
|
10
12
|
transform?: string;
|
|
11
13
|
/** className to apply to `<g/>`. */
|
|
12
14
|
className?: string;
|
|
13
|
-
children?:
|
|
15
|
+
children?: OctaneNode;
|
|
14
16
|
/** ref to underlying `<g/>`. */
|
|
15
17
|
innerRef?: Ref<SVGGElement>;
|
|
16
18
|
};
|
|
@@ -23,7 +25,7 @@ export default function Group({
|
|
|
23
25
|
children,
|
|
24
26
|
innerRef,
|
|
25
27
|
...restProps
|
|
26
|
-
}: GroupProps & Omit<SVGProps<SVGGElement>, keyof GroupProps>) {
|
|
28
|
+
}: GroupProps & Omit<Octane.SVGProps<SVGGElement>, keyof GroupProps>) {
|
|
27
29
|
return <g
|
|
28
30
|
ref={innerRef}
|
|
29
31
|
className={cx('visx-group', className)}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { Ref } from 'react';
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
4
|
+
import type { OctaneNode } from 'octane';
|
|
3
5
|
export type GroupProps = {
|
|
4
6
|
/** Top offset applied to `<g/>`. */
|
|
5
7
|
top?: number;
|
|
@@ -9,8 +11,8 @@ export type GroupProps = {
|
|
|
9
11
|
transform?: string;
|
|
10
12
|
/** className to apply to `<g/>`. */
|
|
11
13
|
className?: string;
|
|
12
|
-
children?:
|
|
14
|
+
children?: OctaneNode;
|
|
13
15
|
/** ref to underlying `<g/>`. */
|
|
14
16
|
innerRef?: Ref<SVGGElement>;
|
|
15
17
|
};
|
|
16
|
-
export default function Group({ top, left, transform, className, children, innerRef, ...restProps }: GroupProps & Omit<SVGProps<SVGGElement>, keyof GroupProps>): import("react").JSX.Element;
|
|
18
|
+
export default function Group({ top, left, transform, className, children, innerRef, ...restProps }: GroupProps & Omit<Octane.SVGProps<SVGGElement>, keyof GroupProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import { Group } from '@octanejs/visx/group';
|
|
4
5
|
import type { GenericCell, ColorScale, OpacityScale } from '../types';
|
|
@@ -29,7 +30,7 @@ export type HeatmapCircleProps<ColumnDatum, BinDatum> = {
|
|
|
29
30
|
/** className to apply to each heatmap circle element. */
|
|
30
31
|
className?: string;
|
|
31
32
|
/** Render function override, provided with heatmap. */
|
|
32
|
-
children?: (cells: CircleCell<ColumnDatum, BinDatum>[][]) =>
|
|
33
|
+
children?: (cells: CircleCell<ColumnDatum, BinDatum>[][]) => OctaneNode;
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
export type CircleCell<ColumnDatum, BinDatum> = GenericCell<ColumnDatum, BinDatum> & {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { GenericCell, ColorScale, OpacityScale } from '../types';
|
|
4
5
|
export type HeatmapCircleProps<ColumnDatum, BinDatum> = {
|
|
5
6
|
/** Array of column data (one per column desired) for the heatmap. */
|
|
@@ -27,7 +28,7 @@ export type HeatmapCircleProps<ColumnDatum, BinDatum> = {
|
|
|
27
28
|
/** className to apply to each heatmap circle element. */
|
|
28
29
|
className?: string;
|
|
29
30
|
/** Render function override, provided with heatmap. */
|
|
30
|
-
children?: (cells: CircleCell<ColumnDatum, BinDatum>[][]) =>
|
|
31
|
+
children?: (cells: CircleCell<ColumnDatum, BinDatum>[][]) => OctaneNode;
|
|
31
32
|
};
|
|
32
33
|
export type CircleCell<ColumnDatum, BinDatum> = GenericCell<ColumnDatum, BinDatum> & {
|
|
33
34
|
/** Computed radius for the circle (radius - gap). */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { OctaneNode } from 'octane';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import { Group } from '@octanejs/visx/group';
|
|
4
5
|
import type { GenericCell, ColorScale, OpacityScale } from '../types';
|
|
@@ -33,7 +34,7 @@ export type HeatmapRectProps<ColumnDatum, BinDatum> = {
|
|
|
33
34
|
/** className to apply to each heatmap rect element. */
|
|
34
35
|
className?: string;
|
|
35
36
|
/** Render function override, provided with heatmap. */
|
|
36
|
-
children?: (cells: RectCell<ColumnDatum, BinDatum>[][]) =>
|
|
37
|
+
children?: (cells: RectCell<ColumnDatum, BinDatum>[][]) => OctaneNode;
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
export type RectCell<ColumnDatum, BinDatum> = GenericCell<ColumnDatum, BinDatum> & {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { GenericCell, ColorScale, OpacityScale } from '../types';
|
|
4
5
|
export type HeatmapRectProps<ColumnDatum, BinDatum> = {
|
|
5
6
|
/** Array of column data (one per column desired) for the heatmap. */
|
|
@@ -31,7 +32,7 @@ export type HeatmapRectProps<ColumnDatum, BinDatum> = {
|
|
|
31
32
|
/** className to apply to each heatmap rect element. */
|
|
32
33
|
className?: string;
|
|
33
34
|
/** Render function override, provided with heatmap. */
|
|
34
|
-
children?: (cells: RectCell<ColumnDatum, BinDatum>[][]) =>
|
|
35
|
+
children?: (cells: RectCell<ColumnDatum, BinDatum>[][]) => OctaneNode;
|
|
35
36
|
};
|
|
36
37
|
export type RectCell<ColumnDatum, BinDatum> = GenericCell<ColumnDatum, BinDatum> & {
|
|
37
38
|
/** binWidth less grid gap (effective width). */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createElement } from 'octane';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import cx from 'classnames';
|
|
4
5
|
import { Group } from '@octanejs/visx/group';
|
|
5
6
|
import type { HierarchyNode, HierarchyPointNode, HierarchyPointLink } from 'd3-hierarchy';
|
|
@@ -14,7 +15,7 @@ export type ClusterProps<Datum> = {
|
|
|
14
15
|
/** The root hierarchy node from which to derive the treemap layout. */
|
|
15
16
|
root: HierarchyNode<Datum>;
|
|
16
17
|
/** Render override function which is passed the computed cluster layout data. */
|
|
17
|
-
children?: (pack: HierarchyPointNode<Datum>) =>
|
|
18
|
+
children?: (pack: HierarchyPointNode<Datum>) => OctaneNode;
|
|
18
19
|
/** top offset applied to the g element container. */
|
|
19
20
|
top?: number;
|
|
20
21
|
/** left offset applied to the g element container. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { HierarchyNode, HierarchyPointNode, HierarchyPointLink } from 'd3-hierarchy';
|
|
4
5
|
export type NodeComponentProps<Datum> = {
|
|
5
6
|
node: HierarchyPointNode<Datum>;
|
|
@@ -11,7 +12,7 @@ export type ClusterProps<Datum> = {
|
|
|
11
12
|
/** The root hierarchy node from which to derive the treemap layout. */
|
|
12
13
|
root: HierarchyNode<Datum>;
|
|
13
14
|
/** Render override function which is passed the computed cluster layout data. */
|
|
14
|
-
children?: (pack: HierarchyPointNode<Datum>) =>
|
|
15
|
+
children?: (pack: HierarchyPointNode<Datum>) => OctaneNode;
|
|
15
16
|
/** top offset applied to the g element container. */
|
|
16
17
|
top?: number;
|
|
17
18
|
/** left offset applied to the g element container. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createElement } from 'octane';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import cx from 'classnames';
|
|
4
5
|
import { Group } from '@octanejs/visx/group';
|
|
5
6
|
import type { HierarchyNode, HierarchyCircularNode } from 'd3-hierarchy';
|
|
@@ -10,7 +11,7 @@ export type PackProps<Datum> = {
|
|
|
10
11
|
/** The root hierarchy node from which to derive the pack layout. */
|
|
11
12
|
root: HierarchyNode<Datum>;
|
|
12
13
|
/** Render override function which is passed the computed pack layout data. */
|
|
13
|
-
children?: (pack: HierarchyCircularNode<Datum>) =>
|
|
14
|
+
children?: (pack: HierarchyCircularNode<Datum>) => OctaneNode;
|
|
14
15
|
/** top offset applied to the g element container. */
|
|
15
16
|
top?: number;
|
|
16
17
|
/** left offset applied to the g element container. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
|
+
import type { OctaneNode } from 'octane';
|
|
3
4
|
import type { HierarchyNode, HierarchyCircularNode } from 'd3-hierarchy';
|
|
4
5
|
export type PackProps<Datum> = {
|
|
5
6
|
/** The root hierarchy node from which to derive the pack layout. */
|
|
6
7
|
root: HierarchyNode<Datum>;
|
|
7
8
|
/** Render override function which is passed the computed pack layout data. */
|
|
8
|
-
children?: (pack: HierarchyCircularNode<Datum>) =>
|
|
9
|
+
children?: (pack: HierarchyCircularNode<Datum>) => OctaneNode;
|
|
9
10
|
/** top offset applied to the g element container. */
|
|
10
11
|
top?: number;
|
|
11
12
|
/** left offset applied to the g element container. */
|