Skip to content

Commit

Permalink
shapeDetection
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGumpIT committed Mar 16, 2024
1 parent dce4ea4 commit a13217c
Show file tree
Hide file tree
Showing 12 changed files with 815 additions and 64 deletions.
104 changes: 90 additions & 14 deletions api/lib/src/models/element.freezed.dart

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions api/lib/src/models/element.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/lib/src/models/property.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ sealed class PathShape with _$PathShape {
@Default(0) double bottomLeftCornerRadius,
@Default(0) double bottomRightCornerRadius}) = RectangleShape;
const factory PathShape.line() = LineShape;
const factory PathShape.triangle({
@Default(BasicColors.transparent) int fillColor,}) = TriangleShape;

factory PathShape.fromJson(Map<String, dynamic> json) =>
_$PathShapeFromJson(json);
Expand Down

0 comments on commit a13217c

Please sign in to comment.