Первый крутой круг

This commit is contained in:
2026-03-03 19:07:53 +03:00
parent b1177265ea
commit 4bf92356af
5 changed files with 75 additions and 47 deletions

View File

@@ -15,6 +15,8 @@ pub const Data = union(enum) {
size: Size_f,
radii: Radii_f,
/// Процент дуги эллипса: 100 — полный эллипс, 50 — полуэллипс (0..100).
arc_percent: f32,
end_point: Point2_f,
points: std.ArrayList(Point2_f),

View File

@@ -8,6 +8,7 @@ const shape_mod = @import("shape.zig");
/// Свойства фигуры по умолчанию.
pub const default_shape_properties = [_]Property{
.{ .data = .{ .radii = .{ .x = 50, .y = 50 } } },
.{ .data = .{ .arc_percent = 100.0 } },
};
/// Теги обязательных свойств.