diff --git a/lib/pen.js b/lib/pen.js index 0cc725d..9de321e 100644 --- a/lib/pen.js +++ b/lib/pen.js @@ -456,7 +456,6 @@ export default class Painter { } else { this.ctx.fillText(text, x, y, measuredWith); } - const fontSize = view.css.fontSize.toPx(); if (view.css.textDecoration) { this.ctx.beginPath(); this.ctx.moveTo(...this.callbackInfo.textDecoration.moveTo); diff --git a/painter.js b/painter.js index 0a770b1..0d87bd7 100644 --- a/painter.js +++ b/painter.js @@ -279,7 +279,8 @@ Component({ if (isDelete) { this.triggerEvent('touchEnd', { view: this.currentPalette.views[deleteIndex], - index: deleteIndex + index: deleteIndex, + type: 'delete' }) this.doAction() } else if (this.findedIndex < 0) { @@ -461,6 +462,16 @@ Component({ height, views: [] }).paint() + new Pen(this.bottomContext, { + width, + height, + views: [] + }).paint() + new Pen(this.topContext, { + width, + height, + views: [] + }).paint() }); },