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

Function getRightCapShape

packages/editor/src/components/string_node.tsx:32–45  ·  view source on GitHub ↗
(className: string, x: number, y: number, height: number)

Source from the content-addressed store, hash-verified

30}
31
32function 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">&apos;</text>
42 </g>
43 </>
44 )
45}
46
47@observer
48export class StringNode extends React.Component<StringNodeProps> {

Callers 1

renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected