Function
getRightCapShape
(className: string, x: number, y: number, height: number)
Source from the content-addressed store, hash-verified
| 30 | } |
| 31 | |
| 32 | function getRightCapShape(className: string, x: number, y: number, height: number) { |
| 33 | return ( |
| 34 | <> |
| 35 | <path |
| 36 | tabIndex={0} |
| 37 | className={className} |
| 38 | d={`M ${x} ${y} v ${height} h ${STRING_CAP_WIDTH - 7} q 4,0 4,-4 v ${-height + 8} q 0,-4 -4,-4 z`} |
| 39 | /> |
| 40 | <g transform={`translate(${x} ${y + 14})`}> |
| 41 | <text className="string-node-cap-text">'</text> |
| 42 | </g> |
| 43 | </> |
| 44 | ) |
| 45 | } |
| 46 | |
| 47 | @observer |
| 48 | export class StringNode extends React.Component<StringNodeProps> { |
Tested by
no test coverage detected