@octanejs/visx 0.1.30 → 0.1.32
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/visx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -123,10 +123,10 @@
|
|
|
123
123
|
"mitt": "^2.1.0",
|
|
124
124
|
"reduce-css-calc": "^1.3.0",
|
|
125
125
|
"svg-path-properties": "2.0.2",
|
|
126
|
-
"@octanejs/floating-ui": "0.1.
|
|
126
|
+
"@octanejs/floating-ui": "0.1.37"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"octane": "0.1.
|
|
129
|
+
"octane": "0.1.38"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@juggle/resize-observer": "^3.4.0",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"react-dom": "^19.2.7",
|
|
150
150
|
"typescript": "^5.9.3",
|
|
151
151
|
"vitest": "^4.1.10",
|
|
152
|
-
"octane": "0.1.
|
|
152
|
+
"octane": "0.1.38"
|
|
153
153
|
},
|
|
154
154
|
"scripts": {
|
|
155
155
|
"compile:check": "node scripts/check-tsrx-compile.mjs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from 'octane';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import type { AnnotationContextType } from '../types';
|
|
5
5
|
import AnnotationContext from '../context/AnnotationContext.tsrx';
|
|
@@ -20,7 +20,7 @@ export default function CircleSubject({
|
|
|
20
20
|
stroke = '#222',
|
|
21
21
|
radius = 16,
|
|
22
22
|
...restProps
|
|
23
|
-
}: CircleSubjectProps & Omit<SVGProps<SVGCircleElement>, keyof CircleSubjectProps>) {
|
|
23
|
+
}: CircleSubjectProps & Omit<Octane.SVGProps<SVGCircleElement>, keyof CircleSubjectProps>) {
|
|
24
24
|
// if props are provided, they take precedence over context
|
|
25
25
|
const annotationContext = useContext(AnnotationContext);
|
|
26
26
|
|
|
@@ -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 { AnnotationContextType } from '../types';
|
|
4
4
|
export type CircleSubjectProps = Pick<AnnotationContextType, 'x' | 'y'> & {
|
|
5
5
|
/** Optional className to apply to CircleSubject in addition to 'visx-annotation-subject'. */
|
|
@@ -9,4 +9,4 @@ export type CircleSubjectProps = Pick<AnnotationContextType, 'x' | 'y'> & {
|
|
|
9
9
|
/** Radius of CircleSubject. */
|
|
10
10
|
radius?: number;
|
|
11
11
|
};
|
|
12
|
-
export default function CircleSubject({ className, x: propsX, y: propsY, stroke, radius, ...restProps }: CircleSubjectProps & Omit<SVGProps<SVGCircleElement>, keyof CircleSubjectProps>): import("react").JSX.Element;
|
|
12
|
+
export default function CircleSubject({ className, x: propsX, y: propsY, stroke, radius, ...restProps }: CircleSubjectProps & Omit<Octane.SVGProps<SVGCircleElement>, keyof CircleSubjectProps>): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from 'octane';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import type { AnnotationContextType } from '../types';
|
|
5
5
|
import AnnotationContext from '../context/AnnotationContext.tsrx';
|
|
@@ -15,7 +15,7 @@ export type ConnectorProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'
|
|
|
15
15
|
/** Color of the connector line. */
|
|
16
16
|
stroke?: string;
|
|
17
17
|
/** Optional additional props. */
|
|
18
|
-
pathProps?: SVGProps<SVGPathElement>;
|
|
18
|
+
pathProps?: Octane.SVGProps<SVGPathElement>;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export default function Connector({
|
|
@@ -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 { AnnotationContextType } from '../types';
|
|
4
4
|
export type ConnectorProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'> & {
|
|
5
5
|
/** Optional className to apply to container in addition to 'visx-annotation-connector'. */
|
|
@@ -9,6 +9,6 @@ export type ConnectorProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'
|
|
|
9
9
|
/** Color of the connector line. */
|
|
10
10
|
stroke?: string;
|
|
11
11
|
/** Optional additional props. */
|
|
12
|
-
pathProps?: SVGProps<SVGPathElement>;
|
|
12
|
+
pathProps?: Octane.SVGProps<SVGPathElement>;
|
|
13
13
|
};
|
|
14
14
|
export default function Connector({ className, x: propsX, y: propsY, dx: propsDx, dy: propsDy, type, stroke, pathProps, }: ConnectorProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-handler-names */
|
|
2
2
|
import { useCallback, useRef } from 'octane';
|
|
3
|
-
import type {
|
|
3
|
+
import type { MouseEvent, TouchEvent } from 'react';
|
|
4
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
4
5
|
import type { OctaneNode } from 'octane';
|
|
5
6
|
import type { UseDrag, HandlerArgs as DragHandlerArgs } from '@octanejs/visx/drag';
|
|
6
7
|
import { useDrag } from '@octanejs/visx/drag';
|
|
@@ -19,9 +20,9 @@ export type EditableAnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'd
|
|
|
19
20
|
/** Whether the Subject position (x, y) is editable. */
|
|
20
21
|
canEditSubject?: boolean;
|
|
21
22
|
/** Optional circle props to set on the subject drag handle. */
|
|
22
|
-
subjectDragHandleProps?: SVGProps<SVGCircleElement>;
|
|
23
|
+
subjectDragHandleProps?: Octane.SVGProps<SVGCircleElement>;
|
|
23
24
|
/** Optional circle props to set on the label drag handle. */
|
|
24
|
-
labelDragHandleProps?: SVGProps<SVGCircleElement>;
|
|
25
|
+
labelDragHandleProps?: Octane.SVGProps<SVGCircleElement>;
|
|
25
26
|
/** Callback invoked on drag start. */
|
|
26
27
|
onDragStart?: ({ x, y, dx, dy, event }: HandlerArgs) => void;
|
|
27
28
|
/** Callback invoked on drag move. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { MouseEvent, TouchEvent } from 'react';
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
4
|
import type { OctaneNode } from 'octane';
|
|
4
5
|
import type { AnnotationContextType } from '../types';
|
|
5
6
|
export type EditableAnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'> & {
|
|
@@ -14,9 +15,9 @@ export type EditableAnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'd
|
|
|
14
15
|
/** Whether the Subject position (x, y) is editable. */
|
|
15
16
|
canEditSubject?: boolean;
|
|
16
17
|
/** Optional circle props to set on the subject drag handle. */
|
|
17
|
-
subjectDragHandleProps?: SVGProps<SVGCircleElement>;
|
|
18
|
+
subjectDragHandleProps?: Octane.SVGProps<SVGCircleElement>;
|
|
18
19
|
/** Optional circle props to set on the label drag handle. */
|
|
19
|
-
labelDragHandleProps?: SVGProps<SVGCircleElement>;
|
|
20
|
+
labelDragHandleProps?: Octane.SVGProps<SVGCircleElement>;
|
|
20
21
|
/** Callback invoked on drag start. */
|
|
21
22
|
onDragStart?: ({ x, y, dx, dy, event }: HandlerArgs) => void;
|
|
22
23
|
/** Callback invoked on drag move. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useContext, useMemo } from 'octane';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
4
|
import cx from 'classnames';
|
|
4
5
|
import { Group } from '@octanejs/visx/group';
|
|
5
6
|
import type { TextProps } from '@octanejs/visx/text';
|
|
@@ -16,7 +17,7 @@ export type LabelProps = {
|
|
|
16
17
|
/** Padding of text from background. */
|
|
17
18
|
backgroundPadding?: number | { top?: number; right?: number; bottom?: number; left?: number };
|
|
18
19
|
/** Additional props to be passed to background SVGRectElement. */
|
|
19
|
-
backgroundProps?: SVGProps<SVGRectElement>;
|
|
20
|
+
backgroundProps?: Octane.SVGProps<SVGRectElement>;
|
|
20
21
|
/** Optional className to apply to container in addition to 'visx-annotation-label'. */
|
|
21
22
|
className?: string;
|
|
22
23
|
/** Color of title and subtitle text. */
|
|
@@ -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 { TextProps } from '@octanejs/visx/text';
|
|
4
4
|
import type { Options as UseMeasureOptions } from '../../internal/useMeasure.tsrx';
|
|
5
5
|
export type LabelProps = {
|
|
@@ -15,7 +15,7 @@ export type LabelProps = {
|
|
|
15
15
|
left?: number;
|
|
16
16
|
};
|
|
17
17
|
/** Additional props to be passed to background SVGRectElement. */
|
|
18
|
-
backgroundProps?: SVGProps<SVGRectElement>;
|
|
18
|
+
backgroundProps?: Octane.SVGProps<SVGRectElement>;
|
|
19
19
|
/** Optional className to apply to container in addition to 'visx-annotation-label'. */
|
|
20
20
|
className?: string;
|
|
21
21
|
/** Color of title and subtitle text. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from 'octane';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import AnnotationContext from '../context/AnnotationContext.tsrx';
|
|
5
5
|
|
|
@@ -31,7 +31,7 @@ export default function LineSubject({
|
|
|
31
31
|
max,
|
|
32
32
|
stroke = '#222',
|
|
33
33
|
...restProps
|
|
34
|
-
}: LineSubjectProps & Omit<SVGProps<SVGLineElement>, keyof LineSubjectProps>) {
|
|
34
|
+
}: LineSubjectProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineSubjectProps>) {
|
|
35
35
|
// if props are provided, they take precedence over context
|
|
36
36
|
const annotationContext = useContext(AnnotationContext);
|
|
37
37
|
const lineIsVertical = orientation === 'vertical';
|
|
@@ -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 LineSubjectProps = {
|
|
4
4
|
/** Optional className to apply to LineSubject in addition to 'visx-annotation-subject'. */
|
|
5
5
|
className?: string;
|
|
@@ -18,4 +18,4 @@ export type LineSubjectProps = {
|
|
|
18
18
|
/** The maximum coordinate of the line. */
|
|
19
19
|
max: number;
|
|
20
20
|
};
|
|
21
|
-
export default function LineSubject({ className, x: propsX, y: propsY, orientation, min, max, stroke, ...restProps }: LineSubjectProps & Omit<SVGProps<SVGLineElement>, keyof LineSubjectProps>): import("react").JSX.Element;
|
|
21
|
+
export default function LineSubject({ className, x: propsX, y: propsY, orientation, min, max, stroke, ...restProps }: LineSubjectProps & Omit<Octane.SVGProps<SVGLineElement>, keyof LineSubjectProps>): import("react").JSX.Element;
|
package/src/axis/types.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { D3Scale, NumberLike, ScaleInput, ValueOf } from '@octanejs/visx/scale';
|
|
2
2
|
import type { TextProps } from '@octanejs/visx/text';
|
|
3
|
-
import type { Ref
|
|
3
|
+
import type { Ref } from 'react';
|
|
4
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
4
5
|
import type { OctaneNode } from 'octane';
|
|
5
6
|
import type Orientation from './constants/orientation';
|
|
6
7
|
|
|
@@ -12,7 +13,7 @@ export type AxisScaleOutput = number | NumberLike | undefined;
|
|
|
12
13
|
export type AxisScale<Output extends AxisScaleOutput = AxisScaleOutput> =
|
|
13
14
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
15
|
D3Scale<Output, any, any>;
|
|
15
|
-
type LineProps = Omit<SVGProps<SVGLineElement>, 'to' | 'from' | 'ref'>;
|
|
16
|
+
type LineProps = Omit<Octane.SVGProps<SVGLineElement>, 'to' | 'from' | 'ref'>;
|
|
16
17
|
|
|
17
18
|
type FormattedValue = string | undefined;
|
|
18
19
|
|
package/src/brush/BaseBrush.tsrx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'octane';
|
|
2
|
-
import type { PointerEvent
|
|
2
|
+
import type { PointerEvent } from 'react';
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
4
|
import type { OctaneNode } from 'octane';
|
|
4
5
|
import { Group } from '@octanejs/visx/group';
|
|
5
6
|
import type { HandlerArgs as DragArgs } from '@octanejs/visx/drag';
|
|
@@ -39,7 +40,7 @@ export type BaseBrushProps = {
|
|
|
39
40
|
resizeTriggerAreas?: ResizeTriggerAreas[];
|
|
40
41
|
onBrushStart?: (start: BaseBrushState['start']) => void;
|
|
41
42
|
onBrushEnd?: (state: BaseBrushState) => void;
|
|
42
|
-
selectedBoxStyle: SVGProps<SVGRectElement>;
|
|
43
|
+
selectedBoxStyle: Octane.SVGProps<SVGRectElement>;
|
|
43
44
|
onMouseLeave?: (event: PointerHandlerEvent) => void;
|
|
44
45
|
onMouseUp?: (event: PointerHandlerEvent) => void;
|
|
45
46
|
onMouseMove?: (event: PointerHandlerEvent) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type { PointerEvent
|
|
2
|
+
import type { PointerEvent } from 'react';
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
4
|
import type { OctaneNode } from 'octane';
|
|
4
5
|
import type { BrushHandleRenderProps } from './BrushHandle.tsrx';
|
|
5
6
|
import type { MarginShape, BrushShape, ResizeTriggerAreas, PartialBrushStartEnd, BrushingType, BrushPageOffset } from './types';
|
|
@@ -17,7 +18,7 @@ export type BaseBrushProps = {
|
|
|
17
18
|
resizeTriggerAreas?: ResizeTriggerAreas[];
|
|
18
19
|
onBrushStart?: (start: BaseBrushState['start']) => void;
|
|
19
20
|
onBrushEnd?: (state: BaseBrushState) => void;
|
|
20
|
-
selectedBoxStyle: SVGProps<SVGRectElement>;
|
|
21
|
+
selectedBoxStyle: Octane.SVGProps<SVGRectElement>;
|
|
21
22
|
onMouseLeave?: (event: PointerHandlerEvent) => void;
|
|
22
23
|
onMouseUp?: (event: PointerHandlerEvent) => void;
|
|
23
24
|
onMouseMove?: (event: PointerHandlerEvent) => void;
|
package/src/brush/Brush.tsrx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// OCTANE DIVERGENCE[visx-functional-controllers-no-class-refs][differential:visx-functional-controllers]:
|
|
2
2
|
// Brush is a functional TSRX controller and intentionally omits upstream's legacy class-instance innerRef handle.
|
|
3
|
-
import type {
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
4
4
|
import type { OctaneNode } from 'octane';
|
|
5
5
|
import BaseBrush from './BaseBrush.tsrx';
|
|
6
6
|
import type { BaseBrushProps, BaseBrushState } from './BaseBrush.tsrx';
|
|
@@ -29,7 +29,7 @@ const DEFAULT_SELECTED_BOX_STYLE = {
|
|
|
29
29
|
|
|
30
30
|
export type BrushProps = {
|
|
31
31
|
/** Style object for the Brush selection rect. */
|
|
32
|
-
selectedBoxStyle: SVGProps<SVGRectElement>;
|
|
32
|
+
selectedBoxStyle: Octane.SVGProps<SVGRectElement>;
|
|
33
33
|
/** x-coordinate scale. */
|
|
34
34
|
xScale: Scale;
|
|
35
35
|
/** y-coordinate scale. */
|
|
@@ -1,12 +1,12 @@
|
|
|
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 { BaseBrushProps } from './BaseBrush.tsrx';
|
|
5
5
|
import type { BrushHandleRenderProps } from './BrushHandle.tsrx';
|
|
6
6
|
import type { Bounds, PartialBrushStartEnd, MarginShape, ResizeTriggerAreas, Scale } from './types';
|
|
7
7
|
export type BrushProps = {
|
|
8
8
|
/** Style object for the Brush selection rect. */
|
|
9
|
-
selectedBoxStyle: SVGProps<SVGRectElement>;
|
|
9
|
+
selectedBoxStyle: Octane.SVGProps<SVGRectElement>;
|
|
10
10
|
/** x-coordinate scale. */
|
|
11
11
|
xScale: Scale;
|
|
12
12
|
/** y-coordinate scale. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint react/jsx-handler-names: 0 */
|
|
2
|
-
import type {
|
|
2
|
+
import type { PointerEvent } from 'react';
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
4
|
import type { HandlerArgs as DragArgs } from '@octanejs/visx/drag';
|
|
4
5
|
import { Drag } from '@octanejs/visx/drag';
|
|
5
6
|
|
|
@@ -26,7 +27,7 @@ export type BrushSelectionProps = {
|
|
|
26
27
|
onMouseMove?: PointerHandler;
|
|
27
28
|
onMouseUp?: PointerHandler;
|
|
28
29
|
onClick?: PointerHandler;
|
|
29
|
-
selectedBoxStyle: SVGProps<SVGRectElement>;
|
|
30
|
+
selectedBoxStyle: Octane.SVGProps<SVGRectElement>;
|
|
30
31
|
isControlled?: boolean;
|
|
31
32
|
isDragInProgress?: boolean;
|
|
32
33
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate-tsrx-types.mjs.
|
|
2
|
-
import type {
|
|
2
|
+
import type { PointerEvent } from 'react';
|
|
3
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
3
4
|
import type { HandlerArgs as DragArgs } from '@octanejs/visx/drag';
|
|
4
5
|
import type { BaseBrushState as BrushState, UpdateBrush } from './BaseBrush.tsrx';
|
|
5
6
|
import type { BrushPageOffset, BrushingType } from './types';
|
|
@@ -19,7 +20,7 @@ export type BrushSelectionProps = {
|
|
|
19
20
|
onMouseMove?: PointerHandler;
|
|
20
21
|
onMouseUp?: PointerHandler;
|
|
21
22
|
onClick?: PointerHandler;
|
|
22
|
-
selectedBoxStyle: SVGProps<SVGRectElement>;
|
|
23
|
+
selectedBoxStyle: Octane.SVGProps<SVGRectElement>;
|
|
23
24
|
isControlled?: boolean;
|
|
24
25
|
isDragInProgress?: boolean;
|
|
25
26
|
};
|
package/src/chord/Ribbon.tsrx
CHANGED
|
@@ -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 { Chord, ChordSubgroup } from 'd3-chord';
|
|
4
4
|
import { ribbon as d3ribbon } from 'd3-chord';
|
|
@@ -47,7 +47,7 @@ export default function Ribbon({
|
|
|
47
47
|
children,
|
|
48
48
|
className,
|
|
49
49
|
...restProps
|
|
50
|
-
}: Omit<SVGProps<SVGPathElement>, keyof RibbonProps> & RibbonProps) {
|
|
50
|
+
}: Omit<Octane.SVGProps<SVGPathElement>, keyof RibbonProps> & RibbonProps) {
|
|
51
51
|
const ribbon = d3ribbon<unknown, Chord, ChordSubgroup>();
|
|
52
52
|
if (source) ribbon.source(source);
|
|
53
53
|
if (target) ribbon.target(target);
|
|
@@ -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 { Chord, ChordSubgroup } from 'd3-chord';
|
|
4
4
|
type NumAccessor = (d: ChordSubgroup) => number;
|
|
5
5
|
export type RibbonProps = {
|
|
@@ -22,5 +22,5 @@ export type RibbonProps = {
|
|
|
22
22
|
/** Classname to apply to the rendered `<path />`. */
|
|
23
23
|
className?: string;
|
|
24
24
|
};
|
|
25
|
-
export default function Ribbon({ chord, source, target, radius, startAngle, endAngle, children, className, ...restProps }: Omit<SVGProps<SVGPathElement>, keyof RibbonProps> & RibbonProps): import("react").JSX.Element;
|
|
25
|
+
export default function Ribbon({ chord, source, target, radius, startAngle, endAngle, children, className, ...restProps }: Omit<Octane.SVGProps<SVGPathElement>, keyof RibbonProps> & RibbonProps): import("react").JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import ClipPath from './ClipPath.tsrx';
|
|
3
3
|
|
|
4
4
|
export type CircleClipPathProps = {
|
|
@@ -19,7 +19,7 @@ export default function CircleClipPath({
|
|
|
19
19
|
cy,
|
|
20
20
|
r,
|
|
21
21
|
...restProps
|
|
22
|
-
}: CircleClipPathProps & Omit<SVGProps<SVGCircleElement>, keyof CircleClipPathProps>) {
|
|
22
|
+
}: CircleClipPathProps & Omit<Octane.SVGProps<SVGCircleElement>, keyof CircleClipPathProps>) {
|
|
23
23
|
return <ClipPath id={id}>
|
|
24
24
|
<circle cx={cx} cy={cy} r={r} {...restProps} />
|
|
25
25
|
</ClipPath>;
|
|
@@ -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 CircleClipPathProps = {
|
|
4
4
|
/** Unique id for the clipPath. */
|
|
5
5
|
id?: string;
|
|
@@ -11,4 +11,4 @@ export type CircleClipPathProps = {
|
|
|
11
11
|
r?: string | number;
|
|
12
12
|
};
|
|
13
13
|
/** ClipPath for clipping to the shape of a `<circle />`, pass any `<circle />` props you want. */
|
|
14
|
-
export default function CircleClipPath({ id, cx, cy, r, ...restProps }: CircleClipPathProps & Omit<SVGProps<SVGCircleElement>, keyof CircleClipPathProps>): import("react").JSX.Element;
|
|
14
|
+
export default function CircleClipPath({ id, cx, cy, r, ...restProps }: CircleClipPathProps & Omit<Octane.SVGProps<SVGCircleElement>, keyof CircleClipPathProps>): 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
|
|
|
@@ -14,7 +14,7 @@ export default function ClipPath({
|
|
|
14
14
|
id,
|
|
15
15
|
children,
|
|
16
16
|
...restProps
|
|
17
|
-
}: ClipPathProps & Omit<SVGProps<SVGClipPathElement>, keyof ClipPathProps>) {
|
|
17
|
+
}: ClipPathProps & Omit<Octane.SVGProps<SVGClipPathElement>, keyof ClipPathProps>) {
|
|
18
18
|
const generatedId = useStableId('visx-clip');
|
|
19
19
|
return <defs>
|
|
20
20
|
<clipPath id={id ?? generatedId} {...restProps}>{children}</clipPath>
|
|
@@ -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 type ClipPathProps = {
|
|
5
5
|
/** Unique id for the clipPath. */
|
|
@@ -8,4 +8,4 @@ export type ClipPathProps = {
|
|
|
8
8
|
children?: OctaneNode;
|
|
9
9
|
};
|
|
10
10
|
/** Handles rendering of <defs> and <clipPath> elements for you, with any children you want. */
|
|
11
|
-
export default function ClipPath({ id, children, ...restProps }: ClipPathProps & Omit<SVGProps<SVGClipPathElement>, keyof ClipPathProps>): import("react").JSX.Element;
|
|
11
|
+
export default function ClipPath({ id, children, ...restProps }: ClipPathProps & Omit<Octane.SVGProps<SVGClipPathElement>, keyof ClipPathProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
2
|
import ClipPath from './ClipPath.tsrx';
|
|
3
3
|
|
|
4
4
|
export type RectClipPathProps = {
|
|
@@ -21,7 +21,7 @@ export default function RectClipPath({
|
|
|
21
21
|
width = 1,
|
|
22
22
|
height = 1,
|
|
23
23
|
...restProps
|
|
24
|
-
}: RectClipPathProps & Omit<SVGProps<SVGRectElement>, keyof RectClipPathProps>) {
|
|
24
|
+
}: RectClipPathProps & Omit<Octane.SVGProps<SVGRectElement>, keyof RectClipPathProps>) {
|
|
25
25
|
return <ClipPath id={id}>
|
|
26
26
|
<rect x={x} y={y} width={width} height={height} {...restProps} />
|
|
27
27
|
</ClipPath>;
|
|
@@ -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 RectClipPathProps = {
|
|
4
4
|
/** Unique id for the clipPath. */
|
|
5
5
|
id?: string;
|
|
@@ -12,4 +12,4 @@ export type RectClipPathProps = {
|
|
|
12
12
|
/** height of the ClipPath rect. */
|
|
13
13
|
height?: string | number;
|
|
14
14
|
};
|
|
15
|
-
export default function RectClipPath({ id, x, y, width, height, ...restProps }: RectClipPathProps & Omit<SVGProps<SVGRectElement>, keyof RectClipPathProps>): import("react").JSX.Element;
|
|
15
|
+
export default function RectClipPath({ id, x, y, width, height, ...restProps }: RectClipPathProps & Omit<Octane.SVGProps<SVGRectElement>, keyof RectClipPathProps>): 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
|
|
|
@@ -22,7 +22,7 @@ export default function Polygon({
|
|
|
22
22
|
className,
|
|
23
23
|
children,
|
|
24
24
|
...restProps
|
|
25
|
-
}: PolygonProps & Omit<SVGProps<SVGPathElement>, keyof PolygonProps>) {
|
|
25
|
+
}: PolygonProps & Omit<Octane.SVGProps<SVGPathElement>, keyof PolygonProps>) {
|
|
26
26
|
if (!polygon) return null;
|
|
27
27
|
const path = `M${polygon.join('L')}Z`;
|
|
28
28
|
if (children) return <>
|
|
@@ -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 type PolygonProps = {
|
|
5
5
|
/** Override render function which is provided polygon and generated path. */
|
|
@@ -12,4 +12,4 @@ export type PolygonProps = {
|
|
|
12
12
|
/** Array of coordinate arrays for the polygon (e.g., [[x,y], [x1,y1], ...]), used to generate polygon path. */
|
|
13
13
|
polygon?: [number, number][];
|
|
14
14
|
};
|
|
15
|
-
export default function Polygon({ polygon, className, children, ...restProps }: PolygonProps & Omit<SVGProps<SVGPathElement>, keyof PolygonProps>): import("react").JSX.Element | null;
|
|
15
|
+
export default function Polygon({ polygon, className, children, ...restProps }: PolygonProps & Omit<Octane.SVGProps<SVGPathElement>, keyof PolygonProps>): import("react").JSX.Element | null;
|
package/src/external.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
declare module 'reduce-css-calc' {
|
|
2
2
|
export default function reduceCssCalc(expression: string): string;
|
|
3
3
|
}
|
|
4
|
+
|
|
5
|
+
declare module 'd3-interpolate-path' {
|
|
6
|
+
/**
|
|
7
|
+
* Interpolates between two SVG path `d` strings, tolerating a differing
|
|
8
|
+
* number of points on each side.
|
|
9
|
+
*/
|
|
10
|
+
export function interpolatePath(
|
|
11
|
+
a: string | null | undefined,
|
|
12
|
+
b: string | null | undefined,
|
|
13
|
+
excludeSegment?: (a: unknown, b: unknown) => boolean,
|
|
14
|
+
): (t: number) => string;
|
|
15
|
+
}
|
|
@@ -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 { Group } from '@octanejs/visx/group';
|
|
4
4
|
import type { GeoGraticuleGenerator } from 'd3-geo';
|
|
@@ -69,7 +69,7 @@ export default function Graticule({
|
|
|
69
69
|
precision,
|
|
70
70
|
children,
|
|
71
71
|
...restProps
|
|
72
|
-
}: GraticuleProps & Omit<SVGProps<SVGPathElement>, keyof GraticuleProps>) {
|
|
72
|
+
}: GraticuleProps & Omit<Octane.SVGProps<SVGPathElement>, keyof GraticuleProps>) {
|
|
73
73
|
const currGraticule = geoGraticule();
|
|
74
74
|
|
|
75
75
|
if (extent) currGraticule.extent(extent);
|
|
@@ -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 { GeoGraticuleGenerator } from 'd3-geo';
|
|
5
5
|
import type { LineString, MultiLineString, Polygon } from 'geojson';
|
|
@@ -50,4 +50,4 @@ export type GraticuleProps = {
|
|
|
50
50
|
/** Sets the precision of the graticule generator, which defaults to 2.5°. */
|
|
51
51
|
precision?: number;
|
|
52
52
|
};
|
|
53
|
-
export default function Graticule({ graticule, lines, outline, extent, extentMajor, extentMinor, step, stepMajor, stepMinor, precision, children, ...restProps }: GraticuleProps & Omit<SVGProps<SVGPathElement>, keyof GraticuleProps>): import("react").JSX.Element;
|
|
53
|
+
export default function Graticule({ graticule, lines, outline, extent, extentMajor, extentMinor, step, stepMajor, stepMinor, precision, children, ...restProps }: GraticuleProps & Omit<Octane.SVGProps<SVGPathElement>, keyof GraticuleProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Ref } from 'react';
|
|
2
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
3
|
import type { OctaneNode } from 'octane';
|
|
3
4
|
import cx from 'classnames';
|
|
4
5
|
import { Group } from '@octanejs/visx/group';
|
|
@@ -132,7 +133,7 @@ export default function Projection<Datum extends GeoPermissibleObjects>({
|
|
|
132
133
|
pointRadius,
|
|
133
134
|
children,
|
|
134
135
|
...restProps
|
|
135
|
-
}: ProjectionProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof ProjectionProps<Datum>>) {
|
|
136
|
+
}: ProjectionProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof ProjectionProps<Datum>>) {
|
|
136
137
|
const maybeCustomProjection =
|
|
137
138
|
typeof projection === 'string' ? projectionMapping[projection] : projection;
|
|
138
139
|
|
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import type { OctaneNode } from 'octane';
|
|
4
5
|
import type { GeoPath, GeoProjection, ExtendedFeature } from 'd3-geo';
|
|
5
6
|
import type { GraticuleProps } from '../graticule/Graticule.tsrx';
|
|
@@ -84,4 +85,4 @@ export interface ParsedFeature<Datum> {
|
|
|
84
85
|
/**
|
|
85
86
|
* Component for all projections.
|
|
86
87
|
*/
|
|
87
|
-
export default function Projection<Datum extends GeoPermissibleObjects>({ data, projection, projectionFunc, clipAngle, clipExtent, scale, translate, center, rotate, precision, fitExtent, fitSize, centroid, graticule, graticuleLines, graticuleOutline, className, innerRef, digits, pointRadius, children, ...restProps }: ProjectionProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof ProjectionProps<Datum>>): import("react").JSX.Element;
|
|
88
|
+
export default function Projection<Datum extends GeoPermissibleObjects>({ data, projection, projectionFunc, clipAngle, clipExtent, scale, translate, center, rotate, precision, fitExtent, fitSize, centroid, graticule, graticuleLines, graticuleOutline, className, innerRef, digits, pointRadius, children, ...restProps }: ProjectionProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof ProjectionProps<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 GlyphCircle<Datum = unknown>({
|
|
|
29
29
|
left,
|
|
30
30
|
size,
|
|
31
31
|
...restProps
|
|
32
|
-
}: GlyphCircleProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphCircleProps<Datum>>) {
|
|
32
|
+
}: GlyphCircleProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphCircleProps<Datum>>) {
|
|
33
33
|
const path = symbol<Datum>();
|
|
34
34
|
path.type(symbolCircle);
|
|
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 GlyphCircleProps<Datum> = {
|
|
@@ -16,4 +16,4 @@ export type GlyphCircleProps<Datum> = {
|
|
|
16
16
|
/** Size of circle 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 GlyphCircle<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphCircleProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphCircleProps<Datum>>): import("react").JSX.Element;
|
|
19
|
+
export default function GlyphCircle<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphCircleProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphCircleProps<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 GlyphCross<Datum = unknown>({
|
|
|
29
29
|
left,
|
|
30
30
|
size,
|
|
31
31
|
...restProps
|
|
32
|
-
}: GlyphCrossProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphCrossProps<Datum>>) {
|
|
32
|
+
}: GlyphCrossProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphCrossProps<Datum>>) {
|
|
33
33
|
const path = symbol<Datum>();
|
|
34
34
|
path.type(symbolCross);
|
|
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 GlyphCrossProps<Datum> = {
|
|
@@ -16,4 +16,4 @@ export type GlyphCrossProps<Datum> = {
|
|
|
16
16
|
/** Size of cross 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 GlyphCross<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphCrossProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphCrossProps<Datum>>): import("react").JSX.Element;
|
|
19
|
+
export default function GlyphCross<Datum = unknown>({ children, className, top, left, size, ...restProps }: GlyphCrossProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphCrossProps<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 GlyphDiamond<Datum = unknown>({
|
|
|
29
29
|
left,
|
|
30
30
|
size,
|
|
31
31
|
...restProps
|
|
32
|
-
}: GlyphDiamondProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof GlyphDiamondProps<Datum>>) {
|
|
32
|
+
}: GlyphDiamondProps<Datum> & Omit<Octane.SVGProps<SVGPathElement>, keyof GlyphDiamondProps<Datum>>) {
|
|
33
33
|
const path = symbol<Datum>();
|
|
34
34
|
path.type(symbolDiamond);
|
|
35
35
|
|