()
| 13 | @observer |
| 14 | export class ActiveCursor extends React.Component<ActiveCursorProps> { |
| 15 | render() { |
| 16 | const selection = this.props.selection |
| 17 | if (selection.state !== SelectionState.Cursor || selection.isHidden) { |
| 18 | return null |
| 19 | } |
| 20 | |
| 21 | const [x, y] = selection.getCursorXYPosition() |
| 22 | return <line className="active-inline-cursor" x1={x} y1={y} x2={x} y2={y + NODE_BLOCK_HEIGHT} /> |
| 23 | } |
| 24 | } |
nothing calls this directly
no test coverage detected