@@ -44,7 +44,8 @@ const Map = (props) => {
44
44
root . descendants ( ) . forEach ( ( d , i ) => {
45
45
d . id = i ;
46
46
d . _children = d . children ;
47
- if ( d . depth === 9 ) d . children = null ;
47
+ // use to limit depth of children rendered
48
+ //if (d.depth === 5) d.children = null;
48
49
} ) ;
49
50
50
51
// Create Container for D3 Visualizations
@@ -233,29 +234,7 @@ const Map = (props) => {
233
234
. drag ( )
234
235
235
236
) ;
236
- // function dragStarted(): any {
237
- // d3.select(this).raise();
238
- // svg.attr('cursor', 'grabbing');
239
- // }
240
- // function dragged(d: any): any {
241
- // d3.select(this)
242
- // .attr('dx', (d.x = d3.event.x))
243
- // .attr('dy', (d.y = d3.event.y));
244
- // }
245
- // function dragEnded(): any {
246
- // svg.attr('cursor', 'grab');
247
- // }
248
-
249
- // Zoom Data from Canvas
250
-
251
- // let test: any = document.getElementById('canvas').children[0];
252
- // console.log('from canvas', test.transform);
253
- // let newX = test.transform.baseVal[0].matrix.e
254
- // let newY = test.transform.baseVal[0].matrix.f
255
- // let newK = test.transform.baseVal[1].matrix.a
256
- // console.log(newX)
257
- // console.log(newY)
258
- // console.log(newK)
237
+
259
238
260
239
// call update on node click
261
240
update ( root ) ;
0 commit comments