mp-painter
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222366
110
3427
152
1