MCPcopy
hub / github.com/react-designer/react-designer / render

Method render

src/objects/Text.js:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 render() {
42 let {object, index} = this.props;
43 WebFont.load({
44 google: {
45 families: [object.fontFamily]
46 }
47 });
48 const {rotate, ... restOfAttributes} = this.getObjectAttributes()
49 return (
50 <text style={this.getStyle()}
51 {...restOfAttributes}
52 textAnchor="right"
53 fontSize={object.fontSize}
54 fontFamily={object.fontFamily}>

Callers

nothing calls this directly

Calls 1

getObjectAttributesMethod · 0.80

Tested by

no test coverage detected