canvas-pointer-clock 一个使用 canvas 绘制的指针时间 使用方法 import PointerClock from 'canvas-pointer-clock' const clock = new PointerClock(canvasRef.current as HTMLCanvasElement, { backgroundColor: '#00000000', lineWidth: 5, lineColor: '#f42020', }) clock.anim() // 销毁时 destroyed clock.stop()