修复一些问题
This commit is contained in:
parent
ecf99a6adf
commit
6caffeb998
@ -456,7 +456,6 @@ export default class Painter {
|
|||||||
} else {
|
} else {
|
||||||
this.ctx.fillText(text, x, y, measuredWith);
|
this.ctx.fillText(text, x, y, measuredWith);
|
||||||
}
|
}
|
||||||
const fontSize = view.css.fontSize.toPx();
|
|
||||||
if (view.css.textDecoration) {
|
if (view.css.textDecoration) {
|
||||||
this.ctx.beginPath();
|
this.ctx.beginPath();
|
||||||
this.ctx.moveTo(...this.callbackInfo.textDecoration.moveTo);
|
this.ctx.moveTo(...this.callbackInfo.textDecoration.moveTo);
|
||||||
|
|||||||
13
painter.js
13
painter.js
@ -279,7 +279,8 @@ Component({
|
|||||||
if (isDelete) {
|
if (isDelete) {
|
||||||
this.triggerEvent('touchEnd', {
|
this.triggerEvent('touchEnd', {
|
||||||
view: this.currentPalette.views[deleteIndex],
|
view: this.currentPalette.views[deleteIndex],
|
||||||
index: deleteIndex
|
index: deleteIndex,
|
||||||
|
type: 'delete'
|
||||||
})
|
})
|
||||||
this.doAction()
|
this.doAction()
|
||||||
} else if (this.findedIndex < 0) {
|
} else if (this.findedIndex < 0) {
|
||||||
@ -461,6 +462,16 @@ Component({
|
|||||||
height,
|
height,
|
||||||
views: []
|
views: []
|
||||||
}).paint()
|
}).paint()
|
||||||
|
new Pen(this.bottomContext, {
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
views: []
|
||||||
|
}).paint()
|
||||||
|
new Pen(this.topContext, {
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
views: []
|
||||||
|
}).paint()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user