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

mp-painter

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mp-painter - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

dist/lib/painter-element/index.d.ts

6

dist/lib/painter-element/paint-image.js

@@ -125,5 +125,5 @@ "use strict";

// base64 图片
BASE64_URL_REG.test(image.src);
// 支付宝中需要先下载图片再绘制
platform == "mp-alipay" && ALIPAY_LOCAL_RESOURCE_URL_REG.test(image.src) ||
BASE64_URL_REG.test(image.src) ||
// 支付宝中需要先下载图片再绘制
platform == "mp-alipay" && ALIPAY_LOCAL_RESOURCE_URL_REG.test(image.src) ||
// 微信小程序开发者工具中不需要先下载再绘制, 但在手机中预览时需要

@@ -130,0 +130,0 @@ platform == "mp-weixin" && WEIXIN_LOCAL_RESOURCE_URL_REG.test(image.src) ||

{
"name": "mp-painter",
"version": "0.1.1",
"version": "0.1.2",
"description": "A declarative canvas lib using with mini-program, espacially with uniapp.",

@@ -5,0 +5,0 @@ "main": "dist/lib/painter.js",

@@ -110,9 +110,10 @@ 功能介绍

---
rect 用于绘制矩形,暂不支持投影及圆角
rect 用于绘制矩形,暂不支持投影
字段名|类型|默认值|描述
---|---|---|---
width|number|-|矩形的宽
height|number|-|矩形的高
background|string|-|填充的颜色
width|number|100|矩形的宽
height|number|100|矩形的高
background|string|#000|填充的颜色
borderRadius|number/[number,number,number,number]|0|圆角

@@ -119,0 +120,0 @@ line

@@ -79,3 +79,3 @@ import Painter, { PainterElementBaseOption } from "../painter";

// base64 图片
BASE64_URL_REG.test(image.src)
BASE64_URL_REG.test(image.src) ||
// 支付宝中需要先下载图片再绘制

@@ -82,0 +82,0 @@ platform == "mp-alipay" && ALIPAY_LOCAL_RESOURCE_URL_REG.test(image.src) ||

Sorry, the diff of this file is not supported yet

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