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 (
);
}
}
class TextRotate extends Component {
static title = 'Transform the text';
render() {
return (
);
}
}
class TextStroke extends Component {
static title = 'Stroke the text';
render() {
return (
);
}
}
class TextFill extends Component {
static title = 'Fill the text with LinearGradient';
render() {
return (
);
}
}
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 (
);
}
}
class TSpanExample extends Component {
static title = 'TSpan nest';
render() {
return (
);
}
}
const icon = (
);
const samples = [
TextExample,
TextRotate,
TextStroke,
TextFill,
TextPathExample,
TSpanExample,
];
export { icon, samples };