npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

aiyingsitan-vue3-signature

v1.0.1

Published

aiyingsitan-vue3-signature 是一个基于 vue3 和 canvas 实现的签名工具

Downloads

14

Readme

aiyingsitan-vue3-signature 是一个基于 vue3 和 canvas 实现的签名工具

# 安装

npm i aiyingsitan-vue3-signature
# 引入

import AiyingsitanVue3Signature from 'aiyingsitan-vue3-signature'
import 'aiyingsitan-vue3-signature/lib/style.css'

const app = createApp(App)
app.use(AiyingsitanVue3Signature)
# 使用

<AiyingsitanVue3Signature></AiyingsitanVue3Signature>

特性

  • 兼容性强:适配移动端和PC端
  • 流畅准确:签名时流畅不卡顿,鼠标和手指所到之处便是笔迹所在之处

功能

  • 签名:像在本子上签名一样在屏幕上签名
  • 清空:清除画布上的签名
  • 橡皮:像橡皮擦一样擦除我们写错的签名
  • 保存:将签名保存为图片

整体

signature_01.png

签名

signature_02.png

保存为图片

signature_03.png

安装npm包体验更多......

属性

  • width(number):画布的宽度(默认 520)
  • height(number):画布的高度(默认 320)
  • background(string):画布的背景颜色(默认 #fff)
# 示例

<AiyingsitanVue3Signature :width="520" :height="320" background="#fff"></AiyingsitanVue3Signature>

事件

  • save:result(value: boolean):保存签名为照片时的结果
# 示例

<AiyingsitanVue3Signature @save:result="picSaveResult"></AiyingsitanVue3Signature>

const picSaveResult = (value: boolean) => {
  // 处理代码
}

方法

  • clear:清空画布(可在保存签名后调用)
# 示例

<AiyingsitanVue3Signature ref="signatureRef"></AiyingsitanVue3Signature>

signatureRef.value.clear()