pyz-clock
v1.0.2
Published
> Canvas Clock Runtime
Downloads
1
Readme
Clock
Canvas Clock Runtime
Installation
npm install pyz-clock
:warning: Bower please do down it;
// index.js
export var Pyz;
// please not use type module
var Pyz
Usage
import * as Pyz from 'pyz-clock';
let clock = Pyz.Clock({
canvas: document.querySelector('CanvasID'),
centerPointer: CenterPointer; // 始终中心点 默认 2/1
R: number; // 半径
textConfig: TextConifg; // text textColor textFont
})
interface TextConifg {
text: string;
textColor: string;
textFont: string;
}
Bower CDN
- wait