@octanejs/visx 0.1.31 → 0.1.33
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 +4 -4
- package/src/annotation/components/CircleSubject.tsrx +2 -2
- package/src/annotation/components/CircleSubject.tsrx.d.ts +2 -2
- package/src/annotation/components/Connector.tsrx +2 -2
- package/src/annotation/components/Connector.tsrx.d.ts +2 -2
- package/src/annotation/components/EditableAnnotation.tsrx +4 -3
- package/src/annotation/components/EditableAnnotation.tsrx.d.ts +4 -3
- package/src/annotation/components/Label.tsrx +3 -2
- package/src/annotation/components/Label.tsrx.d.ts +2 -2
- package/src/annotation/components/LineSubject.tsrx +2 -2
- package/src/annotation/components/LineSubject.tsrx.d.ts +2 -2
- package/src/axis/types.ts +3 -2
- package/src/brush/BaseBrush.tsrx +3 -2
- package/src/brush/BaseBrush.tsrx.d.ts +3 -2
- package/src/brush/Brush.tsrx +2 -2
- package/src/brush/Brush.tsrx.d.ts +2 -2
- package/src/brush/BrushSelection.tsrx +3 -2
- package/src/brush/BrushSelection.tsrx.d.ts +3 -2
- package/src/chord/Ribbon.tsrx +2 -2
- package/src/chord/Ribbon.tsrx.d.ts +2 -2
- package/src/clip-path/clip-paths/CircleClipPath.tsrx +2 -2
- package/src/clip-path/clip-paths/CircleClipPath.tsrx.d.ts +2 -2
- package/src/clip-path/clip-paths/ClipPath.tsrx +2 -2
- package/src/clip-path/clip-paths/ClipPath.tsrx.d.ts +2 -2
- package/src/clip-path/clip-paths/RectClipPath.tsrx +2 -2
- package/src/clip-path/clip-paths/RectClipPath.tsrx.d.ts +2 -2
- package/src/delaunay/components/Polygon.tsrx +2 -2
- package/src/delaunay/components/Polygon.tsrx.d.ts +2 -2
- package/src/external.d.ts +12 -0
- package/src/geo/graticule/Graticule.tsrx +2 -2
- package/src/geo/graticule/Graticule.tsrx.d.ts +2 -2
- package/src/geo/projections/Projection.tsrx +3 -2
- package/src/geo/projections/Projection.tsrx.d.ts +3 -2
- package/src/glyph/glyphs/GlyphCircle.tsrx +2 -2
- package/src/glyph/glyphs/GlyphCircle.tsrx.d.ts +2 -2
- package/src/glyph/glyphs/GlyphCross.tsrx +2 -2
- package/src/glyph/glyphs/GlyphCross.tsrx.d.ts +2 -2
- package/src/glyph/glyphs/GlyphDiamond.tsrx +2 -2
- package/src/glyph/glyphs/GlyphDiamond.tsrx.d.ts +2 -2
- package/src/glyph/glyphs/GlyphDot.tsrx +2 -2
- package/src/glyph/glyphs/GlyphDot.tsrx.d.ts +2 -2
- package/src/glyph/glyphs/GlyphSquare.tsrx +2 -2
- package/src/glyph/glyphs/GlyphSquare.tsrx.d.ts +2 -2
- package/src/glyph/glyphs/GlyphStar.tsrx +2 -2
- package/src/glyph/glyphs/GlyphStar.tsrx.d.ts +2 -2
- package/src/glyph/glyphs/GlyphTriangle.tsrx +2 -2
- package/src/glyph/glyphs/GlyphTriangle.tsrx.d.ts +2 -2
- package/src/glyph/glyphs/GlyphWye.tsrx +2 -2
- package/src/glyph/glyphs/GlyphWye.tsrx.d.ts +2 -2
- package/src/gradient/gradients/LinearGradient.tsrx +2 -2
- package/src/gradient/gradients/LinearGradient.tsrx.d.ts +2 -2
- package/src/gradient/gradients/RadialGradient.tsrx +2 -2
- package/src/gradient/gradients/RadialGradient.tsrx.d.ts +2 -2
- package/src/heatmap/heatmaps/HeatmapCircle.tsrx +2 -2
- package/src/heatmap/heatmaps/HeatmapCircle.tsrx.d.ts +2 -2
- package/src/heatmap/heatmaps/HeatmapRect.tsrx +2 -2
- package/src/heatmap/heatmaps/HeatmapRect.tsrx.d.ts +2 -2
- package/src/hierarchy/hierarchies/Cluster.tsrx +7 -3
- package/src/hierarchy/hierarchies/Pack.tsrx +5 -2
- package/src/hierarchy/hierarchies/Partition.tsrx +5 -2
- package/src/hierarchy/hierarchies/Tree.tsrx +7 -3
- package/src/hierarchy/hierarchies/Treemap.tsrx +5 -2
- package/src/marker/markers/Marker.tsrx +2 -2
- package/src/marker/markers/Marker.tsrx.d.ts +2 -2
- package/src/network/DefaultNode.tsrx +2 -2
- package/src/network/DefaultNode.tsrx.d.ts +2 -2
- package/src/network/Links.tsrx +5 -2
- package/src/network/Nodes.tsrx +5 -2
- package/src/react-spring/grid/AnimatedGridLines.tsrx +2 -2
- package/src/react-spring/grid/AnimatedGridLines.tsrx.d.ts +2 -2
- package/src/stats/BoxPlot.tsrx +7 -7
- package/src/stats/BoxPlot.tsrx.d.ts +7 -7
- package/src/stats/ViolinPlot.tsrx +2 -2
- package/src/stats/ViolinPlot.tsrx.d.ts +2 -2
- package/src/threshold/Threshold.tsrx +2 -2
- package/src/threshold/Threshold.tsrx.d.ts +2 -2
- package/src/tooltip/context/TooltipPositionContext.tsrx +15 -1
- package/src/tooltip/context/TooltipPositionContext.tsrx.d.ts +10 -1
- package/src/voronoi/components/VoronoiPolygon.tsrx +2 -2
- package/src/voronoi/components/VoronoiPolygon.tsrx.d.ts +2 -2
- package/src/xychart/components/Tooltip.tsrx +6 -5
- package/src/xychart/components/Tooltip.tsrx.d.ts +5 -5
- package/src/xychart/components/annotation/AnnotationLineSubject.tsrx +2 -2
- package/src/xychart/components/annotation/AnnotationLineSubject.tsrx.d.ts +2 -2
- package/src/xychart/components/series/private/AnimatedPath.tsrx +2 -3
- package/src/xychart/components/series/private/AnimatedPath.tsrx.d.ts +2 -2
- package/src/xychart/components/series/private/BaseAreaSeries.tsrx +5 -4
- package/src/xychart/components/series/private/BaseAreaSeries.tsrx.d.ts +5 -4
- package/src/xychart/components/series/private/BaseAreaStack.tsrx +4 -3
- package/src/xychart/components/series/private/BaseAreaStack.tsrx.d.ts +3 -2
- package/src/xychart/components/series/private/BaseLineSeries.tsrx +4 -3
- package/src/xychart/components/series/private/BaseLineSeries.tsrx.d.ts +4 -3
- package/src/xychart/types/series.ts +3 -2
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
5
5
|
export type GlyphDiamondProps<Datum> = {
|
|
@@ -16,4 +16,4 @@ export type GlyphDiamondProps<Datum> = {
|
|
|
16
16
|
/** Size of diamond in px, or an accessor which takes Datum as input and returns a size. */
|
|
17
17
|
size?: number | ((d: Datum) => number);
|
|
18
18
|
};
|
|
19
|
-
export default function GlyphDiamond<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphDiamondProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphDiamondProps<Datum>>): import("react").JSX.Element;
|
|
19
|
+
export default function GlyphDiamond<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphDiamondProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphDiamondProps<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 Glyph from './Glyph.tsrx';
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ export default function GlyphDot({
|
|
|
22
22
|
left = 0,
|
|
23
23
|
className,
|
|
24
24
|
...restProps
|
|
25
|
-
}: GlyphDotProps & Omit<SVGProps<SVGCircleElement>, keyof GlyphDotProps>) {
|
|
25
|
+
}: GlyphDotProps & Omit<Octane.SVGProps<SVGCircleElement>, keyof GlyphDotProps>) {
|
|
26
26
|
return <Glyph top={top} left={left}>
|
|
27
27
|
<circle className={cx('visx-glyph-dot', className)} {...restProps} />
|
|
28
28
|
</Glyph>;
|
|
@@ -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
|
export type GlyphDotProps = {
|
|
4
4
|
/** classname to apply to glyph path element. */
|
|
5
5
|
className?: string;
|
|
@@ -14,4 +14,4 @@ export type GlyphDotProps = {
|
|
|
14
14
|
/** y coordinate of the center of the dot. */
|
|
15
15
|
cy?: number;
|
|
16
16
|
};
|
|
17
|
-
export default function GlyphDot({ top, left, className, ...restProps }: GlyphDotProps & Omit<SVGProps<SVGCircleElement>, keyof GlyphDotProps>): import("react").JSX.Element;
|
|
17
|
+
export default function GlyphDot({ top, left, className, ...restProps }: GlyphDotProps & Omit<Octane.SVGProps<SVGCircleElement>, keyof GlyphDotProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
@@ -29,7 +29,7 @@ export default function GlyphSquare<Datum = unknown>({
|
|
|
29
29
|
left,
|
|
30
30
|
size,
|
|
31
31
|
...restProps
|
|
32
|
-
}: GlyphSquareProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphSquareProps<Datum>>) {
|
|
32
|
+
}: GlyphSquareProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphSquareProps<Datum>>) {
|
|
33
33
|
const path = symbol<Datum>();
|
|
34
34
|
path.type(symbolSquare);
|
|
35
35
|
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
5
5
|
export type GlyphSquareProps<Datum> = {
|
|
@@ -16,4 +16,4 @@ export type GlyphSquareProps<Datum> = {
|
|
|
16
16
|
/** Size of square in px, or an accessor which takes Datum as input and returns a size. */
|
|
17
17
|
size?: number | ((d: Datum) => number);
|
|
18
18
|
};
|
|
19
|
-
export default function GlyphSquare<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphSquareProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphSquareProps<Datum>>): import("react").JSX.Element;
|
|
19
|
+
export default function GlyphSquare<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphSquareProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphSquareProps<Datum>>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
@@ -29,7 +29,7 @@ export default function GlyphStar<Datum = unknown>({
|
|
|
29
29
|
left,
|
|
30
30
|
size,
|
|
31
31
|
...restProps
|
|
32
|
-
}: GlyphStarProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphStarProps<Datum>>) {
|
|
32
|
+
}: GlyphStarProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphStarProps<Datum>>) {
|
|
33
33
|
const path = symbol<Datum>();
|
|
34
34
|
path.type(symbolStar);
|
|
35
35
|
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
5
5
|
export type GlyphStarProps<Datum> = {
|
|
@@ -16,4 +16,4 @@ export type GlyphStarProps<Datum> = {
|
|
|
16
16
|
/** Size of star in px, or an accessor which takes Datum as input and returns a size. */
|
|
17
17
|
size?: number | ((d: Datum) => number);
|
|
18
18
|
};
|
|
19
|
-
export default function GlyphStar<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphStarProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphStarProps<Datum>>): import("react").JSX.Element;
|
|
19
|
+
export default function GlyphStar<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphStarProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphStarProps<Datum>>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
@@ -29,7 +29,7 @@ export default function GlyphTriangle<Datum = unknown>({
|
|
|
29
29
|
left,
|
|
30
30
|
size,
|
|
31
31
|
...restProps
|
|
32
|
-
}: GlyphTriangleProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphTriangleProps<Datum>>) {
|
|
32
|
+
}: GlyphTriangleProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphTriangleProps<Datum>>) {
|
|
33
33
|
const path = symbol<Datum>();
|
|
34
34
|
path.type(symbolTriangle);
|
|
35
35
|
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
5
5
|
export type GlyphTriangleProps<Datum> = {
|
|
@@ -16,4 +16,4 @@ export type GlyphTriangleProps<Datum> = {
|
|
|
16
16
|
/** Size of triangle in px, or an accessor which takes Datum as input and returns a size. */
|
|
17
17
|
size?: number | ((d: Datum) => number);
|
|
18
18
|
};
|
|
19
|
-
export default function GlyphTriangle<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphTriangleProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphTriangleProps<Datum>>): import("react").JSX.Element;
|
|
19
|
+
export default function GlyphTriangle<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphTriangleProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphTriangleProps<Datum>>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
@@ -29,7 +29,7 @@ export default function GlyphWye<Datum = unknown>({
|
|
|
29
29
|
left,
|
|
30
30
|
size,
|
|
31
31
|
...restProps
|
|
32
|
-
}: GlyphWyeProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphWyeProps<Datum>>) {
|
|
32
|
+
}: GlyphWyeProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphWyeProps<Datum>>) {
|
|
33
33
|
const path = symbol<Datum>();
|
|
34
34
|
path.type(symbolWye);
|
|
35
35
|
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
import type { Symbol } from 'd3-shape';
|
|
5
5
|
export type GlyphWyeProps<Datum> = {
|
|
@@ -16,4 +16,4 @@ export type GlyphWyeProps<Datum> = {
|
|
|
16
16
|
/** Size of wye glyph in px, or an accessor which takes Datum as input and returns a size. */
|
|
17
17
|
size?: number | ((d: Datum) => number);
|
|
18
18
|
};
|
|
19
|
-
export default function GlyphWye<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphWyeProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphWyeProps<Datum>>): import("react").JSX.Element;
|
|
19
|
+
export default function GlyphWye<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphWyeProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphWyeProps<Datum>>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import useStableId from '../../kernel/ids/useStableId.tsrx';
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ type LinearGradientOwnProps = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export type LinearGradientProps =
|
|
39
|
-
LinearGradientOwnProps & Omit<SVGProps<SVGLinearGradientElement>, keyof LinearGradientOwnProps>;
|
|
39
|
+
LinearGradientOwnProps & Omit<Octane.SVGProps<SVGLinearGradientElement>, keyof LinearGradientOwnProps>;
|
|
40
40
|
|
|
41
41
|
export default function LinearGradient({
|
|
42
42
|
children,
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
type LinearGradientOwnProps = {
|
|
5
5
|
/** Unique id for the gradient. Should be unique across all page elements. */
|
|
@@ -33,6 +33,6 @@ type LinearGradientOwnProps = {
|
|
|
33
33
|
/** (When no x or y values are passed), will orient the gradient vertically instead of horizontally. */
|
|
34
34
|
vertical?: boolean;
|
|
35
35
|
};
|
|
36
|
-
export type LinearGradientProps = LinearGradientOwnProps & Omit<SVGProps<SVGLinearGradientElement>, keyof LinearGradientOwnProps>;
|
|
36
|
+
export type LinearGradientProps = LinearGradientOwnProps & Omit<Octane.SVGProps<SVGLinearGradientElement>, keyof LinearGradientOwnProps>;
|
|
37
37
|
export default function LinearGradient({ children, id, from, to, x1: _x1, y1: _y1, x2: _x2, y2: _y2, fromOffset, fromOpacity, toOffset, toOpacity, rotate, transform, vertical, ...restProps }: LinearGradientProps): import("react").JSX.Element;
|
|
38
38
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { LinearGradientProps } from './LinearGradient.tsrx';
|
|
3
3
|
import useStableId from '../../kernel/ids/useStableId.tsrx';
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ export type RadialGradientProps =
|
|
|
12
12
|
| 'toOpacity'
|
|
13
13
|
| 'rotate'
|
|
14
14
|
| 'transform'
|
|
15
|
-
| 'children'> & SVGProps<SVGRadialGradientElement>; // passed as rest props to radialGradient
|
|
15
|
+
| 'children'> & Octane.SVGProps<SVGRadialGradientElement>; // passed as rest props to radialGradient
|
|
16
16
|
|
|
17
17
|
export default function RadialGradient({
|
|
18
18
|
children,
|
|
@@ -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 { LinearGradientProps } from './LinearGradient.tsrx';
|
|
4
|
-
export type RadialGradientProps = Pick<LinearGradientProps, 'id' | 'from' | 'to' | 'fromOffset' | 'fromOpacity' | 'toOffset' | 'toOpacity' | 'rotate' | 'transform' | 'children'> & SVGProps<SVGRadialGradientElement>;
|
|
4
|
+
export type RadialGradientProps = Pick<LinearGradientProps, 'id' | 'from' | 'to' | 'fromOffset' | 'fromOpacity' | 'toOffset' | 'toOpacity' | 'rotate' | 'transform' | 'children'> & Octane.SVGProps<SVGRadialGradientElement>;
|
|
5
5
|
export default function RadialGradient({ children, id, from, to, fromOffset, fromOpacity, toOffset, toOpacity, rotate, transform, ...restProps }: RadialGradientProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import { Group } from '@octanejs/visx/group';
|
|
@@ -59,7 +59,7 @@ export default function HeatmapCircle<ColumnDatum, BinDatum>({
|
|
|
59
59
|
count = (cell: any) => cell?.count, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
60
60
|
children,
|
|
61
61
|
...restProps
|
|
62
|
-
}: HeatmapCircleProps<ColumnDatum, BinDatum> & Omit<SVGProps<SVGCircleElement>, | keyof HeatmapCircleProps<ColumnDatum, BinDatum>
|
|
62
|
+
}: HeatmapCircleProps<ColumnDatum, BinDatum> & Omit<Octane.SVGProps<SVGCircleElement>, | keyof HeatmapCircleProps<ColumnDatum, BinDatum>
|
|
63
63
|
| 'r'
|
|
64
64
|
| 'cx'
|
|
65
65
|
| 'cy'
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
import type { GenericCell, ColorScale, OpacityScale } from '../types';
|
|
5
5
|
export type HeatmapCircleProps<ColumnDatum, BinDatum> = {
|
|
@@ -42,4 +42,4 @@ export type CircleCell<ColumnDatum, BinDatum> = GenericCell<ColumnDatum, BinDatu
|
|
|
42
42
|
};
|
|
43
43
|
export default function HeatmapCircle<ColumnDatum, BinDatum>({ className, top, left, data, gap, radius, xScale, yScale, colorScale, opacityScale, bins, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
44
44
|
count, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
45
|
-
children, ...restProps }: HeatmapCircleProps<ColumnDatum, BinDatum> & Omit<SVGProps<SVGCircleElement>, keyof HeatmapCircleProps<ColumnDatum, BinDatum> | 'r' | 'cx' | 'cy' | 'fill' | 'fillOpacity'>): import("react").JSX.Element;
|
|
45
|
+
children, ...restProps }: HeatmapCircleProps<ColumnDatum, BinDatum> & Omit<Octane.SVGProps<SVGCircleElement>, keyof HeatmapCircleProps<ColumnDatum, BinDatum> | 'r' | 'cx' | 'cy' | 'fill' | 'fillOpacity'>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import { Group } from '@octanejs/visx/group';
|
|
@@ -49,7 +49,7 @@ export type RectCell<ColumnDatum, BinDatum> = GenericCell<ColumnDatum, BinDatum>
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
export type ComponentProps<ColumnDatum, BinDatum> =
|
|
52
|
-
HeatmapRectProps<ColumnDatum, BinDatum> & Omit<SVGProps<SVGRectElement>, | keyof HeatmapRectProps<ColumnDatum, BinDatum>
|
|
52
|
+
HeatmapRectProps<ColumnDatum, BinDatum> & Omit<Octane.SVGProps<SVGRectElement>, | keyof HeatmapRectProps<ColumnDatum, BinDatum>
|
|
53
53
|
| 'width'
|
|
54
54
|
| 'height'
|
|
55
55
|
| 'x'
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
import type { GenericCell, ColorScale, OpacityScale } from '../types';
|
|
5
5
|
export type HeatmapRectProps<ColumnDatum, BinDatum> = {
|
|
@@ -44,7 +44,7 @@ export type RectCell<ColumnDatum, BinDatum> = GenericCell<ColumnDatum, BinDatum>
|
|
|
44
44
|
/** y position of the cell rect. */
|
|
45
45
|
y: number;
|
|
46
46
|
};
|
|
47
|
-
export type ComponentProps<ColumnDatum, BinDatum> = HeatmapRectProps<ColumnDatum, BinDatum> & Omit<SVGProps<SVGRectElement>, keyof HeatmapRectProps<ColumnDatum, BinDatum> | 'width' | 'height' | 'x' | 'y' | 'fill' | 'fillOpacity'>;
|
|
47
|
+
export type ComponentProps<ColumnDatum, BinDatum> = HeatmapRectProps<ColumnDatum, BinDatum> & Omit<Octane.SVGProps<SVGRectElement>, keyof HeatmapRectProps<ColumnDatum, BinDatum> | 'width' | 'height' | 'x' | 'y' | 'fill' | 'fillOpacity'>;
|
|
48
48
|
export default function HeatmapRect<ColumnDatum, BinDatum>({ className, top, left, data, binWidth, binHeight, x0, gap, xScale, yScale, colorScale, opacityScale, bins, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
49
49
|
count, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
50
50
|
children, ...restProps }: ComponentProps<ColumnDatum, BinDatum>): import("react").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from 'octane';
|
|
2
1
|
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
2
|
import type { OctaneNode } from 'octane';
|
|
4
3
|
import cx from 'classnames';
|
|
@@ -56,6 +55,11 @@ export default function Cluster<Datum>({
|
|
|
56
55
|
linkComponent = DefaultLink,
|
|
57
56
|
nodeComponent = DefaultNode,
|
|
58
57
|
}: ClusterProps<Datum>) {
|
|
58
|
+
// Octane renders a component VALUE through a capitalized JSX tag; the prop
|
|
59
|
+
// keeps upstream's React component union for type parity.
|
|
60
|
+
const LinkComponent = linkComponent;
|
|
61
|
+
const NodeComponent = nodeComponent;
|
|
62
|
+
|
|
59
63
|
const cluster = d3cluster<Datum>();
|
|
60
64
|
if (size) cluster.size(size);
|
|
61
65
|
if (nodeSize !== undefined) cluster.nodeSize(nodeSize);
|
|
@@ -71,12 +75,12 @@ export default function Cluster<Datum>({
|
|
|
71
75
|
{linkComponent &&
|
|
72
76
|
data.links().map(
|
|
73
77
|
(link, i) =>
|
|
74
|
-
<Group key={`cluster-link-${i}`}
|
|
78
|
+
<Group key={`cluster-link-${i}`}><LinkComponent link={link} /></Group>,
|
|
75
79
|
)}
|
|
76
80
|
{nodeComponent &&
|
|
77
81
|
data.descendants().map(
|
|
78
82
|
(node, i) =>
|
|
79
|
-
<Group key={`cluster-node-${i}`}
|
|
83
|
+
<Group key={`cluster-node-${i}`}><NodeComponent node={node} /></Group>,
|
|
80
84
|
)}
|
|
81
85
|
</Group>;
|
|
82
86
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from 'octane';
|
|
2
1
|
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
2
|
import type { OctaneNode } from 'octane';
|
|
4
3
|
import cx from 'classnames';
|
|
@@ -50,6 +49,10 @@ export default function Pack<Datum>({
|
|
|
50
49
|
children,
|
|
51
50
|
nodeComponent = DefaultNode,
|
|
52
51
|
}: PackProps<Datum>) {
|
|
52
|
+
// Octane renders a component VALUE through a capitalized JSX tag; the prop
|
|
53
|
+
// keeps upstream's React component union for type parity.
|
|
54
|
+
const NodeComponent = nodeComponent;
|
|
55
|
+
|
|
53
56
|
const pack = d3pack<Datum>();
|
|
54
57
|
if (size) pack.size(size);
|
|
55
58
|
if (radius !== undefined) pack.radius(radius);
|
|
@@ -64,7 +67,7 @@ export default function Pack<Datum>({
|
|
|
64
67
|
return <Group top={top} left={left} className={cx('visx-pack', className)}>
|
|
65
68
|
{nodeComponent &&
|
|
66
69
|
data.descendants().map(
|
|
67
|
-
(node, i) => <Group key={`pack-node-${i}`}
|
|
70
|
+
(node, i) => <Group key={`pack-node-${i}`}><NodeComponent node={node} /></Group>,
|
|
68
71
|
)}
|
|
69
72
|
</Group>;
|
|
70
73
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from 'octane';
|
|
2
1
|
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
2
|
import type { OctaneNode } from 'octane';
|
|
4
3
|
import cx from 'classnames';
|
|
@@ -42,6 +41,10 @@ export default function Partition<Datum>({
|
|
|
42
41
|
children,
|
|
43
42
|
nodeComponent = DefaultNode,
|
|
44
43
|
}: PartitionProps<Datum>) {
|
|
44
|
+
// Octane renders a component VALUE through a capitalized JSX tag; the prop
|
|
45
|
+
// keeps upstream's React component union for type parity.
|
|
46
|
+
const NodeComponent = nodeComponent;
|
|
47
|
+
|
|
45
48
|
const partition = d3partition<Datum>();
|
|
46
49
|
if (size) partition.size(size);
|
|
47
50
|
if (round) partition.round(round);
|
|
@@ -57,7 +60,7 @@ export default function Partition<Datum>({
|
|
|
57
60
|
{nodeComponent &&
|
|
58
61
|
data.descendants().map(
|
|
59
62
|
(node, i) =>
|
|
60
|
-
<Group key={`partition-node-${i}`}
|
|
63
|
+
<Group key={`partition-node-${i}`}><NodeComponent node={node} /></Group>,
|
|
61
64
|
)}
|
|
62
65
|
</Group>;
|
|
63
66
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from 'octane';
|
|
2
1
|
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
2
|
import type { OctaneNode } from 'octane';
|
|
4
3
|
import cx from 'classnames';
|
|
@@ -59,6 +58,11 @@ export default function Tree<Datum>({
|
|
|
59
58
|
linkComponent = DefaultLink,
|
|
60
59
|
nodeComponent = DefaultNode,
|
|
61
60
|
}: TreeProps<Datum>) {
|
|
61
|
+
// Octane renders a component VALUE through a capitalized JSX tag; the prop
|
|
62
|
+
// keeps upstream's React component union for type parity.
|
|
63
|
+
const LinkComponent = linkComponent;
|
|
64
|
+
const NodeComponent = nodeComponent;
|
|
65
|
+
|
|
62
66
|
const tree = d3tree<Datum>();
|
|
63
67
|
if (size) tree.size(size);
|
|
64
68
|
if (nodeSize) tree.nodeSize(nodeSize);
|
|
@@ -73,11 +77,11 @@ export default function Tree<Datum>({
|
|
|
73
77
|
return <Group top={top} left={left} className={cx('visx-tree', className)}>
|
|
74
78
|
{linkComponent &&
|
|
75
79
|
data.links().map(
|
|
76
|
-
(link, i) => <Group key={`tree-link-${i}`}
|
|
80
|
+
(link, i) => <Group key={`tree-link-${i}`}><LinkComponent link={link} /></Group>,
|
|
77
81
|
)}
|
|
78
82
|
{nodeComponent &&
|
|
79
83
|
data.descendants().map(
|
|
80
|
-
(node, i) => <Group key={`tree-node-${i}`}
|
|
84
|
+
(node, i) => <Group key={`tree-node-${i}`}><NodeComponent node={node} /></Group>,
|
|
81
85
|
)}
|
|
82
86
|
</Group>;
|
|
83
87
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from 'octane';
|
|
2
1
|
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
2
|
import type { OctaneNode } from 'octane';
|
|
4
3
|
import cx from 'classnames';
|
|
@@ -70,6 +69,10 @@ export default function Treemap<Datum>({
|
|
|
70
69
|
children,
|
|
71
70
|
nodeComponent = HierarchyDefaultRectNode,
|
|
72
71
|
}: TreemapProps<Datum>) {
|
|
72
|
+
// Octane renders a component VALUE through a capitalized JSX tag; the prop
|
|
73
|
+
// keeps upstream's React component union for type parity.
|
|
74
|
+
const NodeComponent = nodeComponent;
|
|
75
|
+
|
|
73
76
|
const treemap = d3treemap<Datum>();
|
|
74
77
|
if (tile) treemap.tile(tile);
|
|
75
78
|
if (size) treemap.size(size);
|
|
@@ -92,7 +95,7 @@ export default function Treemap<Datum>({
|
|
|
92
95
|
{nodeComponent &&
|
|
93
96
|
data.descendants().map(
|
|
94
97
|
(node, i) =>
|
|
95
|
-
<Group key={`treemap-node-${i}`}
|
|
98
|
+
<Group key={`treemap-node-${i}`}><NodeComponent node={node} /></Group>,
|
|
96
99
|
)}
|
|
97
100
|
</Group>;
|
|
98
101
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import useStableId from '../../kernel/ids/useStableId.tsrx';
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ export interface Props {
|
|
|
23
23
|
children: OctaneNode;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export type MarkerProps = Props & Omit<SVGProps<SVGMarkerElement>, keyof Props>;
|
|
26
|
+
export type MarkerProps = Props & Omit<Octane.SVGProps<SVGMarkerElement>, keyof Props>;
|
|
27
27
|
export type MarkerComponentProps = Omit<MarkerProps, 'children'>;
|
|
28
28
|
|
|
29
29
|
export default function Marker({
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
export interface Props {
|
|
5
5
|
/** Unique id for the `<marker>`. Should be unique across all page elements. */
|
|
@@ -21,6 +21,6 @@ export interface Props {
|
|
|
21
21
|
/** The <marker> contents. Typically one of: `<path>`, `<line>`, `<polyline>`, or `<polygon>` */
|
|
22
22
|
children: OctaneNode;
|
|
23
23
|
}
|
|
24
|
-
export type MarkerProps = Props & Omit<SVGProps<SVGMarkerElement>, keyof Props>;
|
|
24
|
+
export type MarkerProps = Props & Omit<Octane.SVGProps<SVGMarkerElement>, keyof Props>;
|
|
25
25
|
export type MarkerComponentProps = Omit<MarkerProps, 'children'>;
|
|
26
26
|
export default function Marker({ id, markerWidth, markerHeight, markerUnits, children, ...restProps }: MarkerProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
export type NodeProps = {
|
|
4
4
|
cx?: number;
|
|
@@ -11,6 +11,6 @@ export default function DefaultNode({
|
|
|
11
11
|
fill = '#21D4FD',
|
|
12
12
|
node, // Accept but don't use the node prop
|
|
13
13
|
...rest
|
|
14
|
-
}: NodeProps & Omit<SVGProps<SVGCircleElement>, keyof NodeProps>) {
|
|
14
|
+
}: NodeProps & Omit<Octane.SVGProps<SVGCircleElement>, keyof NodeProps>) {
|
|
15
15
|
return <circle r={r} fill={fill} {...rest} />;
|
|
16
16
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
export type NodeProps = {
|
|
4
4
|
cx?: number;
|
|
5
5
|
cy?: number;
|
|
6
6
|
node?: unknown;
|
|
7
7
|
};
|
|
8
8
|
export default function DefaultNode({ r, fill, node, // Accept but don't use the node prop
|
|
9
|
-
...rest }: NodeProps & Omit<SVGProps<SVGCircleElement>, keyof NodeProps>): import("react").JSX.Element;
|
|
9
|
+
...rest }: NodeProps & Omit<Octane.SVGProps<SVGCircleElement>, keyof NodeProps>): import("react").JSX.Element;
|
package/src/network/Links.tsrx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from 'octane';
|
|
2
1
|
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
2
|
import cx from 'classnames';
|
|
4
3
|
import { Group } from '@octanejs/visx/group';
|
|
@@ -15,13 +14,17 @@ export type LinkProps<Link> = {
|
|
|
15
14
|
};
|
|
16
15
|
|
|
17
16
|
export default function Links<Link>({ links = [], linkComponent, className }: LinkProps<Link>) {
|
|
17
|
+
// Octane renders a component VALUE through a capitalized JSX tag; the prop
|
|
18
|
+
// keeps upstream's React component union for type parity.
|
|
19
|
+
const LinkComponent = linkComponent;
|
|
20
|
+
|
|
18
21
|
return <>
|
|
19
22
|
{links.map(
|
|
20
23
|
(link, i) =>
|
|
21
24
|
<Group
|
|
22
25
|
key={`network-link-${i}`}
|
|
23
26
|
className={cx('visx-network-link', className)}
|
|
24
|
-
|
|
27
|
+
><LinkComponent link={link} /></Group>,
|
|
25
28
|
)}
|
|
26
29
|
</>;
|
|
27
30
|
}
|
package/src/network/Nodes.tsrx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createElement } from 'octane';
|
|
2
1
|
import type { FunctionComponent, ComponentClass } from 'react';
|
|
3
2
|
import cx from 'classnames';
|
|
4
3
|
import { Group } from '@octanejs/visx/group';
|
|
@@ -27,6 +26,10 @@ export default function Nodes<Node>({
|
|
|
27
26
|
x = (d: any) => d?.x || 0, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
28
27
|
y = (d: any) => d?.y || 0, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
29
28
|
}: NodeProps<Node>) {
|
|
29
|
+
// Octane renders a component VALUE through a capitalized JSX tag; the prop
|
|
30
|
+
// keeps upstream's React component union for type parity.
|
|
31
|
+
const NodeComponent = nodeComponent;
|
|
32
|
+
|
|
30
33
|
return <>
|
|
31
34
|
{nodes.map(
|
|
32
35
|
(node, i) =>
|
|
@@ -35,7 +38,7 @@ export default function Nodes<Node>({
|
|
|
35
38
|
className={cx('visx-network-node', className)}
|
|
36
39
|
left={x(node)}
|
|
37
40
|
top={y(node)}
|
|
38
|
-
|
|
41
|
+
><NodeComponent node={node} /></Group>,
|
|
39
42
|
)}
|
|
40
43
|
</>;
|
|
41
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import { animated, useTransition as useSpringTransition } from '../../internal/spring.tsrx';
|
|
3
3
|
import type { GridScale, GridLines, CommonGridProps } from '@octanejs/visx/grid';
|
|
4
4
|
import type { TransitionConfig } from '../spring-configs/useLineTransitionConfig.tsrx';
|
|
@@ -8,7 +8,7 @@ export type AnimatedGridLinesProps<Scale extends GridScale> = {
|
|
|
8
8
|
lines: GridLines;
|
|
9
9
|
lineKey: (line: GridLines[number]) => string;
|
|
10
10
|
scale: Scale;
|
|
11
|
-
} & Omit<SVGProps<SVGLineElement>, 'ref' | 'scale'> & Pick<TransitionConfig<Scale>, 'animationTrajectory' | 'animateXOrY'> & Pick<CommonGridProps, 'stroke' | 'strokeWidth' | 'lineStyle' | 'strokeDasharray'>;
|
|
11
|
+
} & Omit<Octane.SVGProps<SVGLineElement>, 'ref' | 'scale'> & Pick<TransitionConfig<Scale>, 'animationTrajectory' | 'animateXOrY'> & Pick<CommonGridProps, 'stroke' | 'strokeWidth' | 'lineStyle' | 'strokeDasharray'>;
|
|
12
12
|
|
|
13
13
|
export default function AnimatedGridLines<Scale extends GridScale>({
|
|
14
14
|
scale,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
import type { GridScale, GridLines, CommonGridProps } from '@octanejs/visx/grid';
|
|
4
4
|
import type { TransitionConfig } from '../spring-configs/useLineTransitionConfig.tsrx';
|
|
5
5
|
export type AnimatedGridLinesProps<Scale extends GridScale> = {
|
|
6
6
|
lines: GridLines;
|
|
7
7
|
lineKey: (line: GridLines[number]) => string;
|
|
8
8
|
scale: Scale;
|
|
9
|
-
} & Omit<SVGProps<SVGLineElement>, 'ref' | 'scale'> & Pick<TransitionConfig<Scale>, 'animationTrajectory' | 'animateXOrY'> & Pick<CommonGridProps, 'stroke' | 'strokeWidth' | 'lineStyle' | 'strokeDasharray'>;
|
|
9
|
+
} & Omit<Octane.SVGProps<SVGLineElement>, 'ref' | 'scale'> & Pick<TransitionConfig<Scale>, 'animationTrajectory' | 'animateXOrY'> & Pick<CommonGridProps, 'stroke' | 'strokeWidth' | 'lineStyle' | 'strokeDasharray'>;
|
|
10
10
|
export default function AnimatedGridLines<Scale extends GridScale>({ scale, lines, animationTrajectory, animateXOrY, lineKey, lineStyle, ...lineProps }: AnimatedGridLinesProps<Scale>): import("react").JSX.Element;
|
package/src/stats/BoxPlot.tsrx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import type { OctaneNode } from 'octane';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Group } from '@octanejs/visx/group';
|
|
@@ -44,19 +44,19 @@ export type BoxPlotProps = SharedProps & {
|
|
|
44
44
|
/** Array of outlier values to be rendered. */
|
|
45
45
|
outliers?: number[];
|
|
46
46
|
/** Props to pass to the median glyph line. */
|
|
47
|
-
medianProps?: SVGProps<SVGLineElement>;
|
|
47
|
+
medianProps?: Octane.SVGProps<SVGLineElement>;
|
|
48
48
|
/** Props to pass to the maximum glyph line. */
|
|
49
|
-
maxProps?: SVGProps<SVGLineElement>;
|
|
49
|
+
maxProps?: Octane.SVGProps<SVGLineElement>;
|
|
50
50
|
/** Props to pass to the minimum glyph line. */
|
|
51
|
-
minProps?: SVGProps<SVGLineElement>;
|
|
51
|
+
minProps?: Octane.SVGProps<SVGLineElement>;
|
|
52
52
|
/** Props to pass to the box glyph rect. */
|
|
53
|
-
boxProps?: SVGProps<SVGRectElement>;
|
|
53
|
+
boxProps?: Octane.SVGProps<SVGRectElement>;
|
|
54
54
|
/** Props to pass to the outlier glyph circles. */
|
|
55
|
-
outlierProps?: SVGProps<SVGCircleElement>;
|
|
55
|
+
outlierProps?: Octane.SVGProps<SVGCircleElement>;
|
|
56
56
|
/** Whether to render a container rect element (e.g., to capture mouse events). */
|
|
57
57
|
container?: boolean;
|
|
58
58
|
/** Props to pass to the container glyph rect if rendered. */
|
|
59
|
-
containerProps?: SVGProps<SVGRectElement>;
|
|
59
|
+
containerProps?: Octane.SVGProps<SVGRectElement>;
|
|
60
60
|
/** Override render function to fully control the rendering of the BoxPlot glyph. */
|
|
61
61
|
children?: (childRenderProps: ChildRenderProps) => OctaneNode;
|
|
62
62
|
};
|
|
@@ -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 { OctaneNode } from 'octane';
|
|
4
4
|
import type { PickD3Scale, ContinuousDomainScaleType } from '@octanejs/visx/scale';
|
|
5
5
|
import type { SharedProps, ChildRenderProps } from './types';
|
|
@@ -33,19 +33,19 @@ export type BoxPlotProps = SharedProps & {
|
|
|
33
33
|
/** Array of outlier values to be rendered. */
|
|
34
34
|
outliers?: number[];
|
|
35
35
|
/** Props to pass to the median glyph line. */
|
|
36
|
-
medianProps?: SVGProps<SVGLineElement>;
|
|
36
|
+
medianProps?: Octane.SVGProps<SVGLineElement>;
|
|
37
37
|
/** Props to pass to the maximum glyph line. */
|
|
38
|
-
maxProps?: SVGProps<SVGLineElement>;
|
|
38
|
+
maxProps?: Octane.SVGProps<SVGLineElement>;
|
|
39
39
|
/** Props to pass to the minimum glyph line. */
|
|
40
|
-
minProps?: SVGProps<SVGLineElement>;
|
|
40
|
+
minProps?: Octane.SVGProps<SVGLineElement>;
|
|
41
41
|
/** Props to pass to the box glyph rect. */
|
|
42
|
-
boxProps?: SVGProps<SVGRectElement>;
|
|
42
|
+
boxProps?: Octane.SVGProps<SVGRectElement>;
|
|
43
43
|
/** Props to pass to the outlier glyph circles. */
|
|
44
|
-
outlierProps?: SVGProps<SVGCircleElement>;
|
|
44
|
+
outlierProps?: Octane.SVGProps<SVGCircleElement>;
|
|
45
45
|
/** Whether to render a container rect element (e.g., to capture mouse events). */
|
|
46
46
|
container?: boolean;
|
|
47
47
|
/** Props to pass to the container glyph rect if rendered. */
|
|
48
|
-
containerProps?: SVGProps<SVGRectElement>;
|
|
48
|
+
containerProps?: Octane.SVGProps<SVGRectElement>;
|
|
49
49
|
/** Override render function to fully control the rendering of the BoxPlot glyph. */
|
|
50
50
|
children?: (childRenderProps: ChildRenderProps) => OctaneNode;
|
|
51
51
|
};
|