+17
-0
@@ -374,2 +374,3 @@ import { h } from "../h"; | ||
| if (this.x) { | ||
| console.log(this.x, this.offset); | ||
| let index = 0; | ||
@@ -379,2 +380,18 @@ if (this.data) { | ||
| } | ||
| const left = | ||
| this.offset > 0 | ||
| ? 0 + this.lineOptions.textWidth! | ||
| : -this.offset + this.lineOptions.textWidth!; | ||
| if (this.x < left) { | ||
| this.x = left; | ||
| } | ||
| if ( | ||
| this.x > | ||
| this.timeline.clientWidth * this.zoomLevel + this.lineOptions.textWidth! | ||
| ) { | ||
| this.x = | ||
| this.timeline.clientWidth * this.zoomLevel + | ||
| this.lineOptions.textWidth!; | ||
| } | ||
| this.tipDiv = h( | ||
@@ -381,0 +398,0 @@ "div", |
+1
-1
| { | ||
| "name": "glibline", | ||
| "version": "0.0.7", | ||
| "version": "0.0.8", | ||
| "description": "时间轴(timeline),用于实现根据时间对数据事件操作。", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
33284
1.52%877
1.86%