|
@@ -5,7 +5,7 @@ use diff::Diff;
|
|
|
|
|
|
use crate::{
|
|
|
field_of::FieldOf,
|
|
|
- types::{Field, Point, F64},
|
|
|
+ types::{Field, Point, F64, ObjectType},
|
|
|
};
|
|
|
|
|
|
use super::ObjectCore;
|
|
@@ -46,7 +46,11 @@ impl Debug for Rectangle {
|
|
|
impl Default for Rectangle {
|
|
|
fn default() -> Self {
|
|
|
Self {
|
|
|
- core: Default::default(),
|
|
|
+ core: ObjectCore {
|
|
|
+ obj_type: ObjectType::Rectangle.into(),
|
|
|
+ ..Default::default()
|
|
|
+
|
|
|
+ },
|
|
|
corner_a: Point { x: 0.0, y: 0.0 }.into(),
|
|
|
corner_b: Point { x: 0.0, y: 0.0 }.into(),
|
|
|
round_bottom_left: 0.0.into(),
|