MCPcopy
hub / github.com/plouc/nivo / IcicleNodesProps

Interface IcicleNodesProps

packages/icicle/src/IcicleNodes.tsx:13–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11import { IcicleSvgPropsWithDefaults, IcicleNode, IcicleInteractionHandlers } from './types'
12
13export interface IcicleNodesProps<Datum> extends IcicleInteractionHandlers<Datum> {
14 nodeRefs: MutableRefObject<NodeRefMap>
15 nodes: IcicleNode<Datum>[]
16 component: RectNodeComponent<IcicleNode<Datum>>
17 borderRadius: IcicleSvgPropsWithDefaults<Datum>['borderRadius']
18 borderWidth: IcicleSvgPropsWithDefaults<Datum>['borderWidth']
19 borderColor: IcicleSvgPropsWithDefaults<Datum>['borderColor']
20 isInteractive: IcicleSvgPropsWithDefaults<Datum>['isInteractive']
21 enableZooming: IcicleSvgPropsWithDefaults<Datum>['enableZooming']
22 zoom: (path: string | null) => void
23 tooltip: IcicleSvgPropsWithDefaults<Datum>['tooltip']
24 isFocusable: IcicleSvgPropsWithDefaults<Datum>['isFocusable']
25 nav: {
26 moveUp: (path: string) => void
27 movePrev: (path: string) => void
28 moveNext: (path: string) => void
29 moveDown: (path: string) => void
30 }
31 animateOnMount: IcicleSvgPropsWithDefaults<Datum>['animateOnMount']
32 transitionMode: IcicleSvgPropsWithDefaults<Datum>['rectsTransitionMode']
33}
34
35export const IcicleNodes = <Datum,>({
36 nodeRefs,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected