Socket
Socket
Sign inDemoInstall

cieaf_esign

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cieaf_esign

create a canvas for touch signature


Version published
Weekly downloads
4
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 07 Oct 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc