diff --git a/packages/swarmplot/src/SwarmPlot.tsx b/packages/swarmplot/src/SwarmPlot.tsx index c66413b38..76e18602f 100644 --- a/packages/swarmplot/src/SwarmPlot.tsx +++ b/packages/swarmplot/src/SwarmPlot.tsx @@ -212,15 +212,11 @@ export const SwarmPlot = ({ isInteractive = defaultProps.isInteractive, animate = defaultProps.animate, motionConfig = defaultProps.motionConfig, + renderWrapper, ...otherProps }: Partial, 'data' | 'groups' | 'width' | 'height'>> & Pick, 'data' | 'groups' | 'width' | 'height'>) => ( - + isInteractive={isInteractive} {...otherProps} /> ) diff --git a/packages/swarmplot/src/SwarmPlotCanvas.tsx b/packages/swarmplot/src/SwarmPlotCanvas.tsx index 27143fa92..f8dcc86cb 100644 --- a/packages/swarmplot/src/SwarmPlotCanvas.tsx +++ b/packages/swarmplot/src/SwarmPlotCanvas.tsx @@ -309,15 +309,11 @@ export const SwarmPlotCanvas = ({ isInteractive = defaultProps.isInteractive, animate = defaultProps.animate, motionConfig = defaultProps.motionConfig, + renderWrapper, ...otherProps }: Partial, 'data' | 'groups' | 'width' | 'height'>> & Pick, 'data' | 'groups' | 'width' | 'height'>) => ( - + isInteractive={isInteractive} {...otherProps} /> ) diff --git a/packages/swarmplot/src/types.ts b/packages/swarmplot/src/types.ts index 99e95f615..0a2f9952a 100644 --- a/packages/swarmplot/src/types.ts +++ b/packages/swarmplot/src/types.ts @@ -129,6 +129,7 @@ export type SwarmPlotCommonProps = { animate: boolean motionConfig: ModernMotionProps['motionConfig'] role: string + renderWrapper?: boolean } export type SwarmPlotSvgProps = SwarmPlotCommonProps &