discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

ObjectGrips constructor

ObjectGrips({
  1. required double? edgeAperture(),
  2. double labelAperture()?,
  3. RoomInputs? roomInputs,
  4. SpatialIndex? index,
  5. bool objectSnap()?,
})

edgeAperture is the slide grip's edge-snap aperture in world, or null with object snap off (Ruling 08-15).

labelAperture is the world radius about a room's pole within which its label grip returns the label to auto, whatever F3 says (Ruling 10-17); by default 0, a drop exactly on the pole.

roomInputs and objectSnap drive the separator grips' band trimming (spec 10 D20, D21); without roomInputs a separator has no grips. objectSnap defaults to on.

index and objectSnap drive a dimension's end grips, which attach by position while F3 is on (spec 11 D13, D10); without index a dimension has no grips.

Implementation

ObjectGrips(
    {required double? Function() edgeAperture,
    double Function()? labelAperture,
    RoomInputs? roomInputs,
    SpatialIndex? index,
    bool Function()? objectSnap})
    : openings = OpeningGrips(edgeAperture: edgeAperture),
      rooms = RoomGrips(aperture: labelAperture ?? _noAperture),
      separators = roomInputs == null
          ? null
          : SeparatorGrips(
              inputs: roomInputs, objectSnap: objectSnap ?? _snapOn),
      dimensions = index == null
          ? null
          : DimensionGrips(index: index, objectSnap: objectSnap ?? _snapOn);