MCPcopy
hub / github.com/opentrace/opentrace / observe

Method observe

ui/src/components/__tests__/setup.ts:24–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 this.callback = callback;
23 }
24 observe() {
25 // Immediately fire with a fake entry so react-window gets dimensions
26 this.callback(
27 [
28 {
29 contentRect: { width: 300, height: 600 } as DOMRectReadOnly,
30 target: document.createElement('div'),
31 borderBoxSize: [],
32 contentBoxSize: [],
33 devicePixelContentBoxSize: [],
34 },
35 ],
36 this,
37 );
38 }
39 unobserve() {}
40 disconnect() {}
41 };

Callers 5

AppInnerFunction · 0.95
useResizablePanelFunction · 0.95
useResizablePanelHeightFunction · 0.95
useThemeKeyFunction · 0.80
OpenTraceLogoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected