New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

scratch-card-canvas

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scratch-card-canvas

刮刮卡

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

scratch-card 基于canvas刮刮卡

安装

npm install scratch-card-canvas
or
yarn add scratch-card-canvas

引用

import ScratchCard from 'scratch-card-canvas';
new ScratchCard({
  canvas: dom,
});

参数

参数类型说明必填默认
canvasHTMLCanvasElementcanvas实例true-
showAllPercentnumber开启随机绘制比例false80
radiusnumber绘制图片圆角度数false20
coverColorstring蒙层颜色false#666
coverImgstring蒙层图片false-
callbackfunction绘制完成回调函数falsevoid

更新日志

链接

FAQs

Package last updated on 29 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts