discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.
onPointerDown method
void
onPointerDown(
- ToolPointerEvent e,
- ToolContext ctx
)
Implementation
@override
void onPointerDown(ToolPointerEvent e, ToolContext ctx) {
_context = ctx;
if (e.buttons & kPrimaryButton != 0) {
_raw.setFrom(e.world);
// Rebuilt at every click (Ruling 08-13), before the press resolves:
// the change stream delivers after the current task, so an edit in
// the same synchronous task as this click would otherwise leave the
// scan, the frame and the edge snap stale.
_bands.invalidate();
}
super.onPointerDown(e, ctx);
}