MCPcopy Create free account
hub / github.com/SplootCode/splootcode / render

Method render

packages/editor/src/components/cursor.tsx:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13@observer
14export 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}

Callers

nothing calls this directly

Calls 1

getCursorXYPositionMethod · 0.80

Tested by

no test coverage detected