discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

openingsInDocument function

List<(Handle, OpeningParams)> openingsInDocument(
  1. DraftDocument doc,
  2. Handle host
)

host's openings in doc: the live openings (the engine's object rule, asked through live_objects.dart) whose host is host, ascending by handle, with their parameters, as openingsInView reads them in a regeneration.

Implementation

List<(Handle, OpeningParams)> openingsInDocument(
        DraftDocument doc, Handle host) =>
    [
      for (final h in liveObjectsOf<OpeningParams>(doc))
        if (doc.components.get<OpeningParams>(h)! case final o
            when o.host == host)
          (h, o),
    ];