canvas-pointer-clock
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

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()

Readme

Keywords

Package Sidebar

Install

npm i canvas-pointer-clock

Weekly Downloads

9

Version

1.0.10

License

ISC

Unpacked Size

25.6 kB

Total Files

14

Last publish

Collaborators

  • jianwei_chen