Skip to content

Commit ff173aa

Browse files
getting ready for a big pr
1 parent f40d56a commit ff173aa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/src/helperFunctions/generateCode.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ const generateUnformattedCode = (
3838
return child;
3939
} else if (child.type === 'HTML Element') {
4040
const referencedHTML = HTMLTypes.find(elem => elem.id === child.typeId);
41-
console.log("ARRAY OF HTMLS: ", HTMLTypes);
42-
console.log("REF HTML: ", referencedHTML);
4341
child['tag'] = referencedHTML.tag;
4442
if (referencedHTML.tag === 'div') {
4543
child.children = getEnrichedChildren(child);

app/src/tree/TreeChart.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function TreeChart({ data }) {
1616
const svgRef = useRef();
1717
const wrapperRef = useRef();
1818
const dimensions = useResizeObserver(wrapperRef);
19+
console.log('dimensions', dimensions);
1920

2021
// we save data to see if it changed
2122
const previouslyRenderedData = usePrevious(data);
@@ -29,7 +30,9 @@ function TreeChart({ data }) {
2930
// (dimensions are null for the first render)
3031
const { width, height } =
3132
dimensions || wrapperRef.current.getBoundingClientRect();
32-
33+
34+
console.log('width', width);
35+
console.log('height', height);
3336
// transform hierarchical data
3437
const root = hierarchy(data[0]);
3538
const treeLayout = tree().size([height, width]);

0 commit comments

Comments
 (0)