discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

tableLabelPayload function

GeometryPayload tableLabelPayload({
  1. required Vector2 anchor,
  2. required double height,
  3. required Transform2 placement,
})

The label payload: anchor, [height, rotation, widthFactor] stamped for placement.

Implementation

GeometryPayload tableLabelPayload(
    {required Vector2 anchor,
    required double height,
    required Transform2 placement}) {
  final s = tableLabelStamp(placement);
  return GeometryPayload(
    coords: Float64List.fromList([anchor.x, anchor.y]),
    scalars: Float64List.fromList([height, s.rotation, s.widthFactor]),
  );
}