@@ -23,7 +23,7 @@ import { NodeHandles } from '../node/NodeHandles'
2323import { NodeHeader } from '../node/NodeHeader'
2424import { NodePorts } from '../node/NodePorts'
2525import { useNodeMetadata } from '../node/useNodeMetadata'
26- import { ZOOM_TRESHOLD } from '../utils'
26+ import { ZOOM_THRESHOLD } from '../utils'
2727import {
2828 type ModelName as ModelNameType ,
2929 type ColumnName ,
@@ -107,25 +107,25 @@ export const ModelNode = React.memo(function ModelNode({
107107 includeFloorHeight : false ,
108108 } )
109109 const nodeDetailsHeight =
110- zoom > ZOOM_TRESHOLD
110+ zoom > ZOOM_THRESHOLD
111111 ? calculateNodeDetailsHeight ( {
112- nodeDetailsCount : 0 ,
113- } )
112+ nodeDetailsCount : 0 ,
113+ } )
114114 : 0
115115 const selectedColumnsHeight = calculateSelectedColumnsHeight (
116116 modelSelectedColumns . length ,
117117 )
118118 const columnsHeight =
119- zoom > ZOOM_TRESHOLD && shouldShowColumns
119+ zoom > ZOOM_THRESHOLD && shouldShowColumns
120120 ? calculateColumnsHeight ( {
121- columnsCount : calculateNodeColumnsCount ( columns . length ) ,
122- hasColumnsFilter,
123- } )
121+ columnsCount : calculateNodeColumnsCount ( columns . length ) ,
122+ hasColumnsFilter,
123+ } )
124124 : 0
125125
126- // If zoom is less than ZOOM_TRESHOLD , we are making node looks bigger
126+ // If zoom is less than ZOOM_THRESHOLD , we are making node looks bigger
127127 const nodeHeight =
128- ( zoom > ZOOM_TRESHOLD ? nodeBaseHeight : nodeBaseHeight * 2 ) +
128+ ( zoom > ZOOM_THRESHOLD ? nodeBaseHeight : nodeBaseHeight * 2 ) +
129129 nodeDetailsHeight +
130130 selectedColumnsHeight +
131131 columnsHeight
@@ -149,7 +149,7 @@ export const ModelNode = React.memo(function ModelNode({
149149 className = "bg-lineage-node-appendix-background"
150150 >
151151 < HorizontalContainer className = "gap-1 items-center overflow-visible h-5" >
152- { zoom > ZOOM_TRESHOLD && (
152+ { zoom > ZOOM_THRESHOLD && (
153153 < >
154154 < NodeBadge > { data . kind . toUpperCase ( ) } </ NodeBadge >
155155 < Tooltip
@@ -189,7 +189,7 @@ export const ModelNode = React.memo(function ModelNode({
189189 ) }
190190 >
191191 < NodeHeader
192- className = { cn ( zoom > ZOOM_TRESHOLD ? 'shrink-0 h-7' : 'h-full' ) }
192+ className = { cn ( zoom > ZOOM_THRESHOLD ? 'shrink-0 h-7' : 'h-full' ) }
193193 onClick = { toggleSelectedNode }
194194 >
195195 < NodeHandles
@@ -224,14 +224,14 @@ export const ModelNode = React.memo(function ModelNode({
224224 < ModelName
225225 showTooltip
226226 hideCatalog
227- hideSchema = { zoom <= ZOOM_TRESHOLD }
227+ hideSchema = { zoom <= ZOOM_THRESHOLD }
228228 hideIcon
229229 showCopy
230230 name = { data . displayName }
231231 grayscale
232232 className = { cn (
233233 'w-full overflow-hidden cursor-default truncate' ,
234- zoom > ZOOM_TRESHOLD ? ' text-xs' : 'text-2xl justify-center' ,
234+ zoom > ZOOM_THRESHOLD ? ' text-xs' : 'text-2xl justify-center' ,
235235 ) }
236236 />
237237 </ HorizontalContainer >
@@ -265,7 +265,7 @@ export const ModelNode = React.memo(function ModelNode({
265265 ) ) }
266266 </ VerticalContainer >
267267 ) }
268- { columns . length > 0 && zoom > ZOOM_TRESHOLD && (
268+ { columns . length > 0 && zoom > ZOOM_THRESHOLD && (
269269 < NodePorts < ModelColumn >
270270 ports = { columns }
271271 estimatedListItemHeight = { 24 }
@@ -309,11 +309,11 @@ export const ModelNode = React.memo(function ModelNode({
309309 < HorizontalContainer
310310 className = { cn (
311311 'gap-1 items-center overflow-visible' ,
312- zoom > ZOOM_TRESHOLD ? 'h-5' : 'h-8' ,
312+ zoom > ZOOM_THRESHOLD ? 'h-5' : 'h-8' ,
313313 ) }
314314 >
315315 < Badge
316- size = { zoom > ZOOM_TRESHOLD ? '2xs' : 'm' }
316+ size = { zoom > ZOOM_THRESHOLD ? '2xs' : 'm' }
317317 className = { cn (
318318 'text-[white] font-black' ,
319319 getNodeTypeColor ( modelType ) ,
0 commit comments