import React, { Component } from 'react'; import { Svg, Circle, Ellipse, G, Text, TSpan, TextPath, Path, Polygon, Polyline, Line, Rect, Use, Image, Symbol, Defs, LinearGradient, RadialGradient, Stop, ClipPath, Pattern, Mask, Marker, } from '../Svg'; class TextExample extends Component { static title = 'Text'; render() { return ( I love SVG! ); } } class TextRotate extends Component { static title = 'Transform the text'; render() { return ( I love SVG I love SVG I love SVG ); } } class TextStroke extends Component { static title = 'Stroke the text'; render() { return ( {['STROKE TEXT']} ); } } class TextFill extends Component { static title = 'Fill the text with LinearGradient'; render() { return ( FILL TEXT ); } } const path = ` M 10 20 C 40 10 60 0 80 10 C 100 20 120 30 140 20 C 160 10 180 10 180 10 `; class TextPathExample extends Component { static title = 'Draw text along path'; render() { return ( We go up and down, then up again ); } } class TSpanExample extends Component { static title = 'TSpan nest'; render() { return ( tspan line 1 tspan line 2 tspan line 3 12345 6 7 89a delta on text ); } } const icon = ( 字 ); const samples = [ TextExample, TextRotate, TextStroke, TextFill, TextPathExample, TSpanExample, ]; export { icon, samples };