+14
-7
@@ -379,9 +379,16 @@ import { h } from "../h"; | ||
| } | ||
| const left = | ||
| this.offset > 0 | ||
| ? 0 + this.lineOptions.textWidth! | ||
| : -this.offset + this.lineOptions.textWidth!; | ||
| if (this.x < left) { | ||
| this.x = left; | ||
| if (this.data) { | ||
| const left = | ||
| this.offset >= 0 | ||
| ? 0 + this.lineOptions.textWidth! | ||
| : -this.offset + this.lineOptions.textWidth!; | ||
| if (this.x < left) { | ||
| this.x = left; | ||
| } | ||
| } else { | ||
| console.log(this.offset, this.x, this.lineOptions.textWidth); | ||
| const left = this.lineOptions.textWidth!; | ||
| if (this.x < left) { | ||
| this.x = left; | ||
| } | ||
| } | ||
@@ -388,0 +395,0 @@ if ( |
+1
-1
| { | ||
| "name": "glibline", | ||
| "version": "0.0.8", | ||
| "version": "0.0.9", | ||
| "description": "时间轴(timeline),用于实现根据时间对数据事件操作。", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
33535
0.75%885
0.91%