discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

hostFrameInDocument function

HostFrame? hostFrameInDocument(
  1. DraftDocument doc,
  2. Handle host
)

host's frame through the document adapter (wallsInDocument). Null when host is not a live wall or is degenerate.

Implementation

HostFrame? hostFrameInDocument(DraftDocument doc, Handle host) {
  final w = wallsInDocument(doc, host);
  return w == null ? null : hostFrameOf(w.host, w.walls);
}