From 1777cbf69766da8f20354b5644cffdb6d49acc15 Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Thu, 27 Apr 2023 07:28:41 -0700 Subject: [PATCH] Remove coordinate update Summary: This is no longer needed or sent by the client given our new approach to frames Reviewed By: antonk52 Differential Revision: D44872566 fbshipit-source-id: 9ec340a5cc68605f730cf6677fb89778bf77a3a1 --- desktop/plugins/public/ui-debugger/index.tsx | 18 ------------------ desktop/plugins/public/ui-debugger/types.tsx | 7 ------- 2 files changed, 25 deletions(-) diff --git a/desktop/plugins/public/ui-debugger/index.tsx b/desktop/plugins/public/ui-debugger/index.tsx index 34900edfa..72f51a18f 100644 --- a/desktop/plugins/public/ui-debugger/index.tsx +++ b/desktop/plugins/public/ui-debugger/index.tsx @@ -138,24 +138,6 @@ export function plugin(client: PluginClient) { expandedNodes: createState>(new Set()), }; - client.onMessage('coordinateUpdate', (event) => { - liveClientData = produce(liveClientData, (draft) => { - const node = draft.nodes.get(event.nodeId); - if (!node) { - console.warn(`Coordinate update for non existing node `, event); - } else { - node.bounds.x = event.coordinate.x; - node.bounds.y = event.coordinate.y; - } - }); - - if (uiState.isPaused.get()) { - return; - } - - nodes.set(liveClientData.nodes); - }); - const setPlayPause = (isPaused: boolean) => { uiState.isPaused.set(isPaused); if (!isPaused) { diff --git a/desktop/plugins/public/ui-debugger/types.tsx b/desktop/plugins/public/ui-debugger/types.tsx index 89d504ac6..556fcfe69 100644 --- a/desktop/plugins/public/ui-debugger/types.tsx +++ b/desktop/plugins/public/ui-debugger/types.tsx @@ -10,18 +10,11 @@ export type Events = { init: InitEvent; subtreeUpdate: SubtreeUpdateEvent; - coordinateUpdate: CoordinateUpdateEvent; perfStats: PerfStatsEvent; performanceStats: PerformanceStatsEvent; metadataUpdate: UpdateMetadataEvent; }; -export type CoordinateUpdateEvent = { - observerType: String; - nodeId: Id; - coordinate: Coordinate; -}; - export type SubtreeUpdateEvent = { txId: number; rootId: Id;