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';
1616console . log ( 'Demo React version: ' , React . version ) ;
1717
1818const 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- } ,
3419 svg : {
3520 description : 'Default - Pure SVG node & label (IE11 compatible)' ,
3621 fn : ( rd3tProps , appState ) => (
@@ -55,7 +40,22 @@ const customNodeFnMapping = {
5540 } }
5641 />
5742 ) ,
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+ } ,
5959} ;
6060
6161const countNodes = ( count = 0 , n ) => {
You can’t perform that action at this time.
0 commit comments