MCPcopy Create free account
hub / github.com/bvaughn/react-resizable-panels / getLayoutElement

Function getLayoutElement

lib/workspace/utils/getDropTarget.ts:315–319  ·  view source on GitHub ↗
(rootElement: HTMLElement)

Source from the content-addressed store, hash-verified

313
314// The workspace's own layout (rather than that of a workspace nested within it)
315function getLayoutElement(rootElement: HTMLElement) {
316 return Array.from(rootElement.children).find((child): child is HTMLElement =>
317 child.hasAttribute("data-workspace-layout")
318 );
319}
320
321function getTabsetDropTarget({
322 clientX,

Callers 2

getEdgeDropTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected