Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cieaf_esign

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cieaf_esign

create a canvas for touch signature

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

cieaf_esign

create a canvas for touch signature

安装

> npm i cieaf_esign

使用

import { create } from 'cieaf_esign'

// default
create();

// common
create({
    // 笔刷颜色
    color: '#333',

    // 背景颜色
    background: '#aaa',

    // 笔刷宽度
    lineWidth: 5,

    // 左上角标题
    title: 'DEMO',

    // 父容器,会根据宽和高填充画布
    parent: document.body,

    // 确认回调函数
    ok(dataUrl) {
        const img = new Image();
        img.src = dataUrl;
        document.body.appendChild(img)
    },
})

FAQs

Package last updated on 07 Oct 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc