Skip to content

Commit 9cadbc4

Browse files
committed
refactor(node): changes default node radius to 15
BREAKING CHANGE: v1 default radius is `10`, meaning this qualifies as a breaking change for v2.
1 parent 680d267 commit 9cadbc4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Node/DefaultNodeElement.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import React, { SyntheticEvent } from 'react';
2-
import { CustomNodeElementProps, TreeNodeDatum, SyntheticEventHandler } from '../types/common';
1+
import React from 'react';
2+
import { CustomNodeElementProps, SyntheticEventHandler } from '../types/common';
3+
4+
const DEFAULT_NODE_CIRCLE_RADIUS = 15;
35

46
const textLayout = {
57
title: {
@@ -27,7 +29,7 @@ const DefaultNodeElement: React.FunctionComponent<DefaultNodeElementProps> = ({
2729
}) => (
2830
<>
2931
<circle
30-
r={20}
32+
r={DEFAULT_NODE_CIRCLE_RADIUS}
3133
onClick={evt => {
3234
toggleNode();
3335
onNodeClick(evt);

0 commit comments

Comments
 (0)