discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

layoutOf function

HostLayout? layoutOf(
  1. WorldWall host,
  2. List<WorldWall> walls
)

host's layout among walls: one computation for the wall and for each of its openings. Null for a degenerate host.

Implementation

HostLayout? layoutOf(WorldWall host, List<WorldWall> walls) {
  final frame = hostFrameOf(host, walls);
  if (frame == null) return null;
  final obstacles = obstaclesOf(frame, host, walls);
  return (
    frame: frame,
    obstacles: obstacles,
    stretches: stretchesOf(frame, obstacles),
  );
}