fluffychat/lib/pangea/word_cloud/word_cloud_shape.dart
Brord van Wierst c98b76e8fc
format
2023-11-27 20:06:46 +01:00

42 lines
699 B
Dart

class WordCloudShape {
double boundaryStartX = 0;
double boundaryEndX = 0;
double boundaryStartY = 0;
double boundaryEndY = 0;
String type = 'normal';
String getType() {
return type;
}
}
class WordCloudCircle extends WordCloudShape {
double radius;
WordCloudCircle({required this.radius}) {
type = 'circle';
}
double getRadius() {
return radius;
}
}
class WordCloudEllipse extends WordCloudShape {
double majoraxis;
double minoraxis;
WordCloudEllipse({
required this.majoraxis,
required this.minoraxis,
}) {
type = 'ellipse';
}
double getMajorAxis() {
return majoraxis;
}
double getMinorAxis() {
return minoraxis;
}
}