commit
7180c0cac2
16
painter.js
16
painter.js
@ -569,22 +569,22 @@ Component({
|
|||||||
this.bottomContext || (this.bottomContext = wx.createCanvasContext('bottom', this));
|
this.bottomContext || (this.bottomContext = wx.createCanvasContext('bottom', this));
|
||||||
this.topContext || (this.topContext = wx.createCanvasContext('top', this));
|
this.topContext || (this.topContext = wx.createCanvasContext('top', this));
|
||||||
this.globalContext || (this.globalContext = wx.createCanvasContext('k-canvas', this));
|
this.globalContext || (this.globalContext = wx.createCanvasContext('k-canvas', this));
|
||||||
new Pen(this.globalContext, palette).paint();
|
new Pen(this.bottomContext, palette).paint();
|
||||||
|
new Pen(this.globalContext, {
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
views: []
|
||||||
|
}).paint();
|
||||||
new Pen(this.frontContext, {
|
new Pen(this.frontContext, {
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
views: []
|
views: []
|
||||||
}).paint()
|
}).paint();
|
||||||
new Pen(this.bottomContext, {
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
views: []
|
|
||||||
}).paint()
|
|
||||||
new Pen(this.topContext, {
|
new Pen(this.topContext, {
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
views: []
|
views: []
|
||||||
}).paint()
|
}).paint();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user