@fabwcie/free-drawing / utils/frame / findFrameAt
Function: findFrameAt()
findFrameAt(
shape,frames):Frame|null
Defined in: packages/free-drawing/src/utils/frame.ts:191
Frame whose box contains the center of a shape (top one), null if none
Parameters
shape
shape to place (drawn, dragged, transformed...)
frames
Frame[]
frames of the drawing, bottom first (hidden ones ignored)
Returns
Frame | null
topmost visible frame containing the shape center (absolute coordinates), null if none