暴露 viewUpdate
This commit is contained in:
parent
6baedf5ba1
commit
606256c6d2
10
painter.js
10
painter.js
@ -299,9 +299,15 @@ Component({
|
|||||||
|
|
||||||
const pen = new Pen(this.globalContext, draw);
|
const pen = new Pen(this.globalContext, draw);
|
||||||
if (isMoving && doView.type === 'text') {
|
if (isMoving && doView.type === 'text') {
|
||||||
pen.paint(callback, true, this.movingCache);
|
pen.paint((callbackInfo) => {
|
||||||
|
callback && callback(callbackInfo);
|
||||||
|
this.triggerEvent('viewUpdate', this.touchedView);
|
||||||
|
}, true, this.movingCache);
|
||||||
} else {
|
} else {
|
||||||
pen.paint(callback)
|
pen.paint((callbackInfo) => {
|
||||||
|
callback && callback(callbackInfo);
|
||||||
|
this.triggerEvent('viewUpdate', this.touchedView);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
const {
|
const {
|
||||||
rect,
|
rect,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user