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

Method renderGraphic

src/Icon.js:8–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 };
7
8 renderGraphic() {
9 switch (this.props.icon) {
10 case 'image':
11 return (
12 <g><path d="M21 19v-14c0-1.1-.9-2-2-2h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zm-12.5-5.5l2.5 3.01 3.5-4.51 4.5 6h-14l3.5-4.5z"></path></g>
13 );
14 case 'my-icon':
15 return (
16 <g><path d="M7.41 7.84l4.59 4.58 4.59-4.58 1.41 1.41-6 6-6-6z"/></g>
17 );
18 case 'another-icon':
19 return (
20 <g><path d="M7.41 15.41l4.59-4.58 4.59 4.58 1.41-1.41-6-6-6 6z"/></g>
21 );
22 case 'format-bold':
23 return (
24 <g><path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4h-6.25v14h7.04c2.09
25 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zm-5.6-4.29h3c.83 0 1.5.67 1.5 1.5s-.67
26 1.5-1.5 1.5h-3v-3zm3.5 9h-3.5v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"></path></g>
27 );
28 case 'format-italic':
29 return (
30 <g><path d="M10 4v3h2.21l-3.42 8h-2.79v3h8v-3h-2.21l3.42-8h2.79v-3z"></path></g>
31 );
32 case 'format-underline':
33 return (
34 <g><path d="M12 17c3.31 0 6-2.69 6-6v-8h-2.5v8c0 1.93-1.57 3.5-3.5
35 3.5s-3.5-1.57-3.5-3.5v-8h-2.5v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2h-14z"></path></g>
36 );
37 case 'format-align-left':
38 return (
39 <g><path d="M15 15h-12v2h12v-2zm0-8h-12v2h12v-2zm-12
40 6h18v-2h-18v2zm0 8h18v-2h-18v2zm0-18v2h18v-2h-18z"></path></g>
41 );
42 case 'format-align-center':
43 return (
44 <g><path d="M7 15v2h10v-2h-10zm-4 6h18v-2h-18v2zm0-8h18v-2h-18v2zm4-6v2h10v-2h-10zm-4-4v2h18v-2h-18z"></path></g>
45 );
46 case 'format-align-right':
47 return (
48 <g><path d="M3 21h18v-2h-18v2zm6-4h12v-2h-12v2zm-6-4h18v-2h-18v2zm6-4h12v-2h-12v2zm-6-6v2h18v-2h-18z"></path></g>
49 );
50 case 'add-box':
51 return (
52 <g><path d="M19 3h-14c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2zm-2
53 10h-4v4h-2v-4h-4v-2h4v-4h2v4h4v2z"></path></g>
54 );
55 case 'add':
56 return (
57 <g><path d="M19 13h-6v6h-2v-6h-6v-2h6v-6h2v6h6v2z"></path></g>
58 );
59 case 'text-format':
60 return (
61 <g><path d="M5 17v2h14v-2h-14zm4.5-4.2h5l.9 2.2h2.1l-4.75-11h-1.5l-4.75
62 11h2.1l.9-2.2zm2.5-6.82l1.87 5.02h-3.74l1.87-5.02z"></path></g>
63 );
64 case 'text':
65 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected