import numpy as np from PySide6.QtCore import QPointF, Qt # CanvasInteractionMixin: class definition for ScanSlicer behavior.