whiteboard id added
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using AipsCore.Domain.Models.Shape.Enums;
|
using AipsCore.Domain.Models.Shape.Enums;
|
||||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||||
|
using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||||
|
|
||||||
namespace AipsCore.Domain.Models.Shape;
|
namespace AipsCore.Domain.Models.Shape;
|
||||||
|
|
||||||
@@ -8,16 +9,19 @@ public abstract class Shape
|
|||||||
{
|
{
|
||||||
public ShapeId Id { get; }
|
public ShapeId Id { get; }
|
||||||
|
|
||||||
|
public WhiteboardId WhiteboardId { get; private set; }
|
||||||
|
|
||||||
public abstract ShapeTypeEnum ShapeType { get; }
|
public abstract ShapeTypeEnum ShapeType { get; }
|
||||||
|
|
||||||
public Position Position { get; private set; }
|
public Position Position { get; private set; }
|
||||||
|
|
||||||
public Color Color { get; private set; }
|
public Color Color { get; private set; }
|
||||||
|
|
||||||
protected Shape(ShapeId id, Position position, Color color)
|
protected Shape(ShapeId id, WhiteboardId whiteboardId, Position position, Color color)
|
||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
Position = position;
|
Position = position;
|
||||||
Color = color;
|
Color = color;
|
||||||
|
WhiteboardId = whiteboardId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using AipsCore.Domain.Models.Shape.Enums;
|
using AipsCore.Domain.Models.Shape.Enums;
|
||||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||||
|
using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||||
|
|
||||||
namespace AipsCore.Domain.Models.Shape.Sub.Arrow;
|
namespace AipsCore.Domain.Models.Shape.Sub.Arrow;
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ public class Arrow : Shape
|
|||||||
public Position EndPosition { get; private set; }
|
public Position EndPosition { get; private set; }
|
||||||
public Thickness Thickness { get; private set; }
|
public Thickness Thickness { get; private set; }
|
||||||
|
|
||||||
public Arrow(ShapeId id, Position position, Color color, Position endPosition, Thickness thickness) : base(id, position, color)
|
public Arrow(ShapeId id, WhiteboardId whiteboardId, Position position, Color color, Position endPosition, Thickness thickness) : base(id, whiteboardId, position, color)
|
||||||
{
|
{
|
||||||
EndPosition = endPosition;
|
EndPosition = endPosition;
|
||||||
Thickness = thickness;
|
Thickness = thickness;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using AipsCore.Domain.Models.Shape.Enums;
|
using AipsCore.Domain.Models.Shape.Enums;
|
||||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||||
|
using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||||
|
|
||||||
namespace AipsCore.Domain.Models.Shape.Sub.Line;
|
namespace AipsCore.Domain.Models.Shape.Sub.Line;
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ public class Line : Shape
|
|||||||
public Position EndPosition { get; private set; }
|
public Position EndPosition { get; private set; }
|
||||||
public Thickness Thickness { get; private set; }
|
public Thickness Thickness { get; private set; }
|
||||||
|
|
||||||
public Line(ShapeId id, Position position, Color color, Position endPosition, Thickness thickness) : base(id, position, color)
|
public Line(ShapeId id, WhiteboardId whiteboardId, Position position, Color color, Position endPosition, Thickness thickness) : base(id, whiteboardId, position, color)
|
||||||
{
|
{
|
||||||
EndPosition = endPosition;
|
EndPosition = endPosition;
|
||||||
Thickness = thickness;
|
Thickness = thickness;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using AipsCore.Domain.Models.Shape.Enums;
|
using AipsCore.Domain.Models.Shape.Enums;
|
||||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||||
|
using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||||
|
|
||||||
namespace AipsCore.Domain.Models.Shape.Sub.Rectangle;
|
namespace AipsCore.Domain.Models.Shape.Sub.Rectangle;
|
||||||
|
|
||||||
@@ -12,8 +13,8 @@ public class Rectangle : Shape
|
|||||||
|
|
||||||
public Thickness BorderThickness { get; }
|
public Thickness BorderThickness { get; }
|
||||||
|
|
||||||
public Rectangle(ShapeId id, Position position, Color color, Position endPosition, Thickness borderThickness)
|
public Rectangle(ShapeId id, WhiteboardId whiteboardId, Position position, Color color, Position endPosition, Thickness borderThickness)
|
||||||
: base(id, position, color)
|
: base(id, whiteboardId, position, color)
|
||||||
{
|
{
|
||||||
EndPosition = endPosition;
|
EndPosition = endPosition;
|
||||||
BorderThickness = borderThickness;
|
BorderThickness = borderThickness;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ using System.Drawing;
|
|||||||
using AipsCore.Domain.Models.Shape.Enums;
|
using AipsCore.Domain.Models.Shape.Enums;
|
||||||
using AipsCore.Domain.Models.Shape.Sub.TextShape.ValueObjects;
|
using AipsCore.Domain.Models.Shape.Sub.TextShape.ValueObjects;
|
||||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||||
|
using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||||
|
|
||||||
namespace AipsCore.Domain.Models.Shape.Sub.TextShape;
|
namespace AipsCore.Domain.Models.Shape.Sub.TextShape;
|
||||||
|
|
||||||
@@ -11,8 +12,8 @@ public class TextShape : Shape
|
|||||||
|
|
||||||
public TextShapeSize TextShapeSize { get; private set; }
|
public TextShapeSize TextShapeSize { get; private set; }
|
||||||
|
|
||||||
public TextShape(ShapeId id, Position position, Color color, TextShapeValue textShapeValue, TextShapeSize textShapeSize)
|
public TextShape(ShapeId id, WhiteboardId whiteboardId, Position position, Color color, TextShapeValue textShapeValue, TextShapeSize textShapeSize)
|
||||||
: base(id, position, color)
|
: base(id, whiteboardId, position, color)
|
||||||
{
|
{
|
||||||
TextShapeValue = textShapeValue;
|
TextShapeValue = textShapeValue;
|
||||||
TextShapeSize = textShapeSize;
|
TextShapeSize = textShapeSize;
|
||||||
|
|||||||
Reference in New Issue
Block a user