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

Method render

packages/editor/src/components/property.tsx:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17export class InlineProperty extends React.Component<PropertyProps> {
18 render() {
19 const { block, leftPos, topPos, propertyName } = this.props
20 const { node } = this.props.block
21
22 return (
23 <text x={leftPos} y={topPos + NODE_TEXT_OFFSET} style={{ fill: block.textColor }}>
24 {node.getProperty(propertyName)}
25 </text>
26 )
27 }
28}

Callers

nothing calls this directly

Calls 1

getPropertyMethod · 0.80

Tested by

no test coverage detected