提交 036ae27a 编写于 作者: D DCloud_LXH

fix: canvas createPattern

上级 536b285c
...@@ -231,8 +231,9 @@ function checkColor (e) { ...@@ -231,8 +231,9 @@ function checkColor (e) {
} }
function Pattern (image, repetition) { function Pattern (image, repetition) {
this.image = image this.type = 'pattern'
this.repetition = repetition this.data = image
this.colorStop = repetition
} }
class CanvasGradient { class CanvasGradient {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册