discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

attach method

WallAttachment? attach(
  1. DraftDocument doc,
  2. SymbolBox box,
  3. Vector2 p,
  4. double captureWorld, {
  5. required bool mirrored,
  6. required double edgeCaptureWorld,
  7. Handle? exclude,
  8. Transform2? keep,
})

attachToWall over doc's cached runs and neighbours, exclude (the instance a move carries, D8) not a neighbour, keeping keep's linear part when given (F-7).

Implementation

WallAttachment? attach(
  DraftDocument doc,
  SymbolBox box,
  Vector2 p,
  double captureWorld, {
  required bool mirrored,
  required double edgeCaptureWorld,
  Handle? exclude,
  Transform2? keep,
}) {
  _refresh(doc);
  return attachToWall(_runs, box, p, captureWorld,
      mirrored: mirrored,
      neighbours: _neighbours,
      edgeCaptureWorld: edgeCaptureWorld,
      exclude: exclude,
      keep: keep);
}