File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- /* 说明 V 0.3.0
1
+ /* 说明 V 0.3.1
2
2
* 该组件提供了 canvas 的图片绘制与文本绘制功能,使用同步的语法完成异步绘制,简化原生 canvas 绘制语法。
3
3
* API:https://github.com/NalvyBoo/create-picture
4
4
* npm:https://www.npmjs.com/package/create-picture
5
5
* */
6
6
7
7
let saidHello = false ;
8
- const VERSION = '0.3.0 ' ;
8
+ const VERSION = '0.3.1 ' ;
9
9
const defaultProp = {
10
10
width : 750 ,
11
11
height : 1448 ,
@@ -123,7 +123,7 @@ export default class CreatePicture{
123
123
resolve ( imageArr )
124
124
} ;
125
125
image . crossOrigin = 'anonymous' ;
126
- image . src = assetsArr [ index ] + '?corp' ;
126
+ image . src = assetsArr [ index ] . indexOf ( 'data:' ) > - 1 ? assetsArr [ index ] : assetsArr [ index ] + '?corp' ;
127
127
}
128
128
} ) ) ;
129
129
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " create-picture" ,
3
- "version" : " 0.3.0 " ,
3
+ "version" : " 0.3.1 " ,
4
4
"description" : " 该组件提供了 Canvas 的图片绘制与文本绘制功能,使用同步的语法完成异步绘制,简化原生 canvas 绘制语法。" ,
5
5
"main" : " lib/create-picture.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments