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

Method render

packages/editor/src/components/separator.tsx:12–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11export class Separator extends React.Component<StringLiteralProps> {
12 render() {
13 const { x, y, selectorType, isSelected } = this.props
14 const className = 'separator' + (isSelected ? ' selected' : '')
15 const nodeClassname = 'svgsplootnode' + (isSelected ? ' selected' : '')
16 return (
17 <g>
18 <rect className={nodeClassname} x={x} y={y} height={NODE_BLOCK_HEIGHT} width={8} rx="4" />
19 <text x={x + 1.2} y={y + NODE_TEXT_OFFSET} className={className}>
20 {selectorType}
21 </text>
22 </g>
23 )
24 }
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected