@@ -166,11 +166,13 @@ export type LinkTypesProps = {
166166export default function AxTree ( props ) {
167167 const { currLocation, axSnapshots, width, height } = props ;
168168
169+
170+
169171 let margin = defaultMargin ;
170172 let totalWidth = width ;
171173 let totalHeight = height ;
172174
173-
175+ if ( axSnapshots [ currLocation . index ] === 'emptyAxSnap' ) return ;
174176
175177 const toolTipTimeoutID = useRef ( null ) ; //useRef stores stateful data that’s not needed for rendering.
176178 const {
@@ -181,7 +183,7 @@ export default function AxTree(props) {
181183 showTooltip, // function to set tooltip state
182184 hideTooltip, // function to close a tooltip
183185 } = useTooltip ( ) ; // returns an object with several properties that you can use to manage the tooltip state of your component
184- console . log ( 'tool tip data: ' , tooltipData ) ;
186+
185187 // let nameVal = JSON.stringify(tooltipData)
186188 // console.log('nameVal', nameVal);
187189 const {
@@ -244,12 +246,9 @@ export default function AxTree(props) {
244246 }
245247 }
246248
247- console . log ( 'size width height ax: ' , sizeWidth , sizeHeight ) ;
248-
249249 const LinkComponent = getLinkComponent ( { layout, linkType, orientation } ) ;
250250
251251 const currAxSnapshot = JSON . parse ( JSON . stringify ( axSnapshots [ currLocation . index ] ) ) ;
252- console . log ( 'currAxSnapshot: ' , currAxSnapshot ) ;
253252
254253 // root node of currAxSnapshot
255254 const rootAxNode = JSON . parse ( JSON . stringify ( currAxSnapshot [ 0 ] ) ) ;
@@ -295,8 +294,6 @@ export default function AxTree(props) {
295294
296295 organizeAxTree ( rootAxNode , currAxSnapshot ) ;
297296
298- console . log ( 'rootAxNode: ' , rootAxNode ) ;
299-
300297 // store each individual node, now with children property in nodeAxArr
301298 // need to consider order, iterate through the children property first?
302299 const populateNodeAxArr = ( currNode ) => {
@@ -316,7 +313,6 @@ export default function AxTree(props) {
316313 } ;
317314
318315 populateNodeAxArr ( rootAxNode ) ;
319- console . log ( 'nodeAxArr: ' , nodeAxArr ) ;
320316
321317 // ax Legend
322318 const { axLegendButtonClicked } = useSelector ( ( state : RootState ) => state . axLegend ) ;
@@ -468,7 +464,6 @@ export default function AxTree(props) {
468464 const handleMouseAndClickOver = ( event ) : void => {
469465 const coords = localPoint ( event . target . ownerSVGElement , event ) ;
470466 const tooltipObj = { ...node . data } ;
471- console . log ( "tooltipobj: " , tooltipObj ) ;
472467
473468 showTooltip ( {
474469 tooltipLeft : coords . x ,
0 commit comments