File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -16,21 +16,6 @@ import reactTree from './examples/reactRepoTree';
16
16
console . log ( 'Demo React version: ' , React . version ) ;
17
17
18
18
const customNodeFnMapping = {
19
- input : {
20
- description : 'MixedNodeElement - With input elements' ,
21
- fn : ( { nodeDatum, toggleNode } , appState ) => (
22
- < MixedNodeInputElement
23
- nodeData = { nodeDatum }
24
- triggerNodeToggle = { toggleNode }
25
- foreignObjectProps = { {
26
- width : appState . nodeSize . x ,
27
- height : appState . nodeSize . y ,
28
- x : - 50 ,
29
- y : 50 ,
30
- } }
31
- />
32
- ) ,
33
- } ,
34
19
svg : {
35
20
description : 'Default - Pure SVG node & label (IE11 compatible)' ,
36
21
fn : ( rd3tProps , appState ) => (
@@ -55,7 +40,22 @@ const customNodeFnMapping = {
55
40
} }
56
41
/>
57
42
) ,
58
- }
43
+ } ,
44
+ input : {
45
+ description : 'MixedNodeElement - Interactive nodes with inputs' ,
46
+ fn : ( { nodeDatum, toggleNode } , appState ) => (
47
+ < MixedNodeInputElement
48
+ nodeData = { nodeDatum }
49
+ triggerNodeToggle = { toggleNode }
50
+ foreignObjectProps = { {
51
+ width : appState . nodeSize . x ,
52
+ height : appState . nodeSize . y ,
53
+ x : - 50 ,
54
+ y : 50 ,
55
+ } }
56
+ />
57
+ ) ,
58
+ } ,
59
59
} ;
60
60
61
61
const countNodes = ( count = 0 , n ) => {
You can’t perform that action at this time.
0 commit comments