File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ const generateUnformattedCode = (
38
38
return child ;
39
39
} else if ( child . type === 'HTML Element' ) {
40
40
const referencedHTML = HTMLTypes . find ( elem => elem . id === child . typeId ) ;
41
- console . log ( "ARRAY OF HTMLS: " , HTMLTypes ) ;
42
- console . log ( "REF HTML: " , referencedHTML ) ;
43
41
child [ 'tag' ] = referencedHTML . tag ;
44
42
if ( referencedHTML . tag === 'div' ) {
45
43
child . children = getEnrichedChildren ( child ) ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ function TreeChart({ data }) {
16
16
const svgRef = useRef ( ) ;
17
17
const wrapperRef = useRef ( ) ;
18
18
const dimensions = useResizeObserver ( wrapperRef ) ;
19
+ console . log ( 'dimensions' , dimensions ) ;
19
20
20
21
// we save data to see if it changed
21
22
const previouslyRenderedData = usePrevious ( data ) ;
@@ -29,7 +30,9 @@ function TreeChart({ data }) {
29
30
// (dimensions are null for the first render)
30
31
const { width, height } =
31
32
dimensions || wrapperRef . current . getBoundingClientRect ( ) ;
32
-
33
+
34
+ console . log ( 'width' , width ) ;
35
+ console . log ( 'height' , height ) ;
33
36
// transform hierarchical data
34
37
const root = hierarchy ( data [ 0 ] ) ;
35
38
const treeLayout = tree ( ) . size ( [ height , width ] ) ;
You can’t perform that action at this time.
0 commit comments