@@ -14,7 +14,6 @@ import {
14
14
import { IconAdd , IconSubtract } from 'sentry/icons' ;
15
15
import { t } from 'sentry/locale' ;
16
16
import { space } from 'sentry/styles/space' ;
17
- import type { Project } from 'sentry/types/project' ;
18
17
import { getCenterScaleMatrixFromConfigPosition } from 'sentry/utils/profiling/gl/utils' ;
19
18
import type { Rect } from 'sentry/utils/profiling/speedscope' ;
20
19
@@ -29,11 +28,11 @@ export interface ViewNode {
29
28
type WireframeProps = {
30
29
hierarchy : ViewHierarchyWindow [ ] ;
31
30
onNodeSelect : ( node ?: ViewHierarchyWindow ) => void ;
32
- project : Project ;
31
+ system : string ;
33
32
selectedNode ?: ViewHierarchyWindow ;
34
33
} ;
35
34
36
- function Wireframe ( { hierarchy, selectedNode, onNodeSelect, project } : WireframeProps ) {
35
+ function Wireframe ( { hierarchy, selectedNode, onNodeSelect, system } : WireframeProps ) {
37
36
const theme = useTheme ( ) ;
38
37
const [ canvasRef , setCanvasRef ] = useState < HTMLCanvasElement | null > ( null ) ;
39
38
const [ overlayRef , setOverlayRef ] = useState < HTMLCanvasElement | null > ( null ) ;
@@ -50,9 +49,9 @@ function Wireframe({hierarchy, selectedNode, onNodeSelect, project}: WireframePr
50
49
( ) =>
51
50
getHierarchyDimensions (
52
51
hierarchy ,
53
- [ 'flutter' , 'dart- flutter'] . includes ( project ?. platform ?? ' ')
52
+ system === ' flutter' || system . includes ( 'absolute ')
54
53
) ,
55
- [ hierarchy , project . platform ]
54
+ [ hierarchy , system ]
56
55
) ;
57
56
const nodeLookupMap = useMemo ( ( ) => {
58
57
const map = new Map < ViewHierarchyWindow , ViewNode > ( ) ;
0 commit comments