Skip to content

Commit

Permalink
feat: 图片跨域
Browse files Browse the repository at this point in the history
  • Loading branch information
Fi committed Aug 25, 2022
1 parent b626e71 commit 5d42630
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/easy-canvas.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/easy-canvas.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/canvas-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ export default class CanvasRender {
}
} else {
image = new Image();
image.crossOrigin = 'anonymous';
}

if (src) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easy-canvas-layout",
"version": "0.1.18",
"version": "0.1.19",
"description": "A canvas lib help to easy layout in canvas.",
"miniprogram": "lib",
"main": "./lib/index.js",
Expand Down

0 comments on commit 5d42630

Please sign in to comment.