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

usb-paint

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

usb-paint - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "usb-paint",
"version": "1.0.3",
"version": "1.0.4",
"description": "A universal, simple, and beautiful hand-drawn style painting tool, USB-Paint. It can be introduced and used in any front-end framework or page.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/goodlovess/USB-Paint.git",

@@ -165,8 +165,9 @@ [English](./README_EN.md) | 简体中文

| 事件名 | 说明 | 返回数据 |
| ------------- | ------------ | -------- |
| exportToImage | 导出图片数据 | base64 |
| eraserTool | 橡皮擦 | - |
| freeDrawTool | 绘画 | - |
| clearTool | 清除 | - |
| 事件名 | 说明 | 返回数据 |
| ------------- | ----------------------------------------------------------------------------- | -------- |
| exportToImage | 导出图片数据 | base64 |
| eraserTool | 橡皮擦 | - |
| freeDrawTool | 绘画 | - |
| clearTool | 清除 | - |
| isPaint | 是否已经绘画了(clearTool后为未绘画状态,只要动过笔eraserTool后也是绘画了状态) | boolean |

@@ -187,2 +188,4 @@ ## 事件调用案例

usbPaint.clearTool();
// 主动获取是否已经绘画了功能
usbPaint.isPaint();
```
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