Skip to content

Кроткая Александра#279

Open
Krotkaya wants to merge 4 commits intokontur-courses:masterfrom
Krotkaya:master
Open

Кроткая Александра#279
Krotkaya wants to merge 4 commits intokontur-courses:masterfrom
Krotkaya:master

Conversation

@Krotkaya
Copy link

No description provided.

Реализован алгоритм расположения прямоугольников, написаны тесты
Визуализировала алгоритм с помощью SkiaSharp
Вынесла логику построения Архимедовой спирали

namespace TagCloud;

public class ArchimedeanSpiralPointGenerator(Point center, double angleStep = 0.1, double radiusStep = 0.5)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

стоит выделить интерфейс и в layouterе его исползовать, так как мы можем менять алгоритмы отписовки

using System.Drawing;

namespace TagCloud;
public class CircularCloudLayouter(Point center)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

по хорошему выделить интерфейс - ICreator, который будет уметь создавать объекты, в нашем случае будет реализация для Rectangle, но в будующем можем менять на круги и так далее

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

То есть задача этого класса должна быть только в том, что мы вызываем нужные интерфейсы в нужном порядке

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants