1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150" version="1.1">
<defs>
<filter id="dropShadow" x="0" y="0" width="150" height="150">
<feOffset in="SourceGraphic" dx="0" dy="0" result="topCopy"/>
<feGaussianBlur in="SourceAlpha" stdDeviation="2" result="shadow"/>
<feOffset in="shadow" dx="3" dy="3" result="movedShadow"/>
<feMerge>
<feMergeNode in="topCopy"/>
<feMergeNode in="movedShadow"/>
</feMerge>
</filter>
</defs>
<g filter="url(#dropShadow)" >
<text x="10" y="45"
style="font-family:Verdana; font-size: 20pt; fill:green;">Shadows</text>
<text x="10" y="65"
style="font-family:Verdana; font-size: 20pt; fill:green;">and</text>
<text x="10" y="85"
style="font-family:Verdana; font-size: 20pt; fill:green;">Tall Trees</text>
</g>
</svg>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
export default class GeneratedComponent extends Component {
linkAs = (key, attrs) => (
(this.__cb4r3fs || (this.__cb4r3fs = new Map())).get(key) || this
.__cb4r3fs.set(key, node => (
this.refs[key] !== node && (this.refs = Object.assign({}, this
.refs, { [key]: node })),
node && Object.keys(attrs).forEach(attr => node.setAttributeNS
(null, attr, attrs[attr]))
)).get(key)
)
render () {
return (
<svg width={ 150 } height={ 150 } >
<defs>
<filter ref={ this.linkAs("dropShadow", { }) } id="dropShadow
" x={ 0 } y={ 0 } width={ 150 } height={ 150 } >
<feoffset ref={ this.linkAs('feoff0', { 'in': "SourceGraphic
", 'result': "topCopy" }) } />
<fegaussianblur ref={ this.linkAs('fegau1', { 'in':
"SourceAlpha", 'stdDeviation': 2, 'result': "shadow" }) } />
<feoffset ref={ this.linkAs('feoff2', { 'in': "shadow",
'result': "movedShadow" }) } dx={ 3 } dy={ 3 } />
<femerge>
<femergenode ref={ this.linkAs('femer3', { 'in': "topCopy"
}) } />
<femergenode ref={ this.linkAs('femer4', { 'in': "movedSha
dow" }) } />
</femerge>
</filter>
</defs>
<g ref={ this.linkAs('g5', { 'filter': "url(#dropShadow)" }) }
>
<text x={ 10 } y={ 45 } style={{ fontFamily: 'Verdana',
fontSize: '20pt', fill: 'green' }} >
Shadows
</text>
<text x={ 10 } y={ 65 } style={{ fontFamily: 'Verdana',
fontSize: '20pt', fill: 'green' }} >
and
</text>
<text x={ 10 } y={ 85 } style={{ fontFamily: 'Verdana',
fontSize: '20pt', fill: 'green' }} >
Tall Trees
</text>
</g>
</svg>
)
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX