discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

paintWorldOverlay method

  1. @override
void paintWorldOverlay(
  1. Canvas canvas,
  2. Vector2 origin,
  3. double scale,
  4. PaperPalette paper,
)
inherited

Paints under the overlay's rebased world matrix, worldToScreen ∘ translate(origin), so coordinates handed to canvas must be world − origin (Ruling 03-3). scale is the camera's, for stroke widths. Colours come from paper, as in paintOverlay.

Implementation

@override
void paintWorldOverlay(
    Canvas canvas, Vector2 origin, double scale, PaperPalette paper) {
  bandPaint.color = paper.preview;
  bandPaint.strokeWidth = kPreviewStrokePixels / scale;
  paintRubberBand(canvas, origin, scale);
}