监听 canvas 的鼠标事件(mousedown、mousemove、mouseup、click)。 通过坐标判断点击/拖拽的是哪个组件(hit test)。 选区、拖拽、缩放等操作都要用 canvas 的坐标系统实现。