You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fluffychat/lib/pangea/word_cloud/word_cloud_shape.dart

43 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;
}
}