File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -217,8 +217,8 @@ export default class Tree extends React.Component {
217
217
[ nodeSize . x , nodeSize . y ]
218
218
)
219
219
. separation ( ( a , b ) => deepEqual ( a . parent , b . parent ) ?
220
- separation . node :
221
- separation . leafNode
220
+ separation . siblings :
221
+ separation . nonSiblings
222
222
)
223
223
. children ( ( d ) => d . _collapsed ? null : d . _children ) ;
224
224
@@ -250,7 +250,7 @@ export default class Tree extends React.Component {
250
250
} = this . props ;
251
251
252
252
return (
253
- < div className = { `rd3t-tree-container ${ zoomable ? 'grabbable' : undefined } ` } >
253
+ < div className = { `rd3t-tree-container ${ zoomable ? 'rd3t- grabbable' : undefined } ` } >
254
254
< svg className = "rd3t-svg" width = "100%" height = "100%" >
255
255
< TransitionGroup
256
256
component = "g"
@@ -345,8 +345,8 @@ Tree.propTypes = {
345
345
y : PropTypes . number ,
346
346
} ) ,
347
347
separation : PropTypes . shape ( {
348
- node : PropTypes . number ,
349
- leafNode : PropTypes . number ,
348
+ siblings : PropTypes . number ,
349
+ nonSiblings : PropTypes . number ,
350
350
} ) ,
351
351
styles : PropTypes . shape ( {
352
352
nodes : PropTypes . object ,
Original file line number Diff line number Diff line change 3
3
height : 100% ;
4
4
}
5
5
6
- .grabbable {
6
+ .rd3t- grabbable {
7
7
cursor : move; /* fallback if grab cursor is unsupported */
8
8
cursor : grab;
9
9
cursor : -moz-grab;
10
10
cursor : -webkit-grab;
11
11
}
12
- .grabbable : active {
12
+ .rd3t- grabbable: active {
13
13
cursor : grabbing;
14
14
cursor : -moz-grabbing;
15
15
cursor : -webkit-grabbing;
You can’t perform that action at this time.
0 commit comments