discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

isServableInstance function

bool isServableInstance(
  1. DraftDocument doc,
  2. Handle instance
)

instance's definition carries a SeatingComponent: a table (V-4, as TableSurvey reads it).

Implementation

bool isServableInstance(DraftDocument doc, Handle instance) {
  final node = doc.tree[instance];
  return node is InstanceNode &&
      doc.components.get<SeatingComponent>(node.definition) != null;
}