(position: CursorPosition)
| 250 | } |
| 251 | |
| 252 | getCoordinates(position: CursorPosition): [number, number] { |
| 253 | const entries = this.getEntryListForLineIndex(position.lineIndex) |
| 254 | const line = this.lines[position.lineIndex] |
| 255 | const cursorEntry = entries[position.entryIndex] |
| 256 | if (cursorEntry.isCursor) { |
| 257 | return [cursorEntry.xCoord + 3, line.yCoord + line.marginTop] |
| 258 | } |
| 259 | return [cursorEntry.xCoord, line.yCoord + line.marginTop] |
| 260 | } |
| 261 | |
| 262 | getBoundingBoxForNodeCursor(position: CursorPosition): [number, number, number, number] { |
| 263 | const entries = this.getEntryListForLineIndex(position.lineIndex) |
no test coverage detected