(group)
| 6 | } |
| 7 | |
| 8 | init(group) { |
| 9 | this._group = group; |
| 10 | |
| 11 | // Vertical Line - create with default y and points, the real values |
| 12 | // are set in fitToView(). |
| 13 | this._line = new Line({ |
| 14 | x: 0, |
| 15 | y: 0, |
| 16 | stroke: this._options.color, |
| 17 | strokeWidth: 1 |
| 18 | }); |
| 19 | |
| 20 | group.add(this._line); |
| 21 | |
| 22 | this.fitToView(); |
| 23 | } |
| 24 | |
| 25 | fitToView() { |
| 26 | const height = this._options.layer.getHeight(); |
no test coverage detected