mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-22 04:21:36 -04:00
Repo-wide sweep with the pinned CSharpier 1.3.0 tool. Whitespace and line-wrapping only; OpenNest.Engine.Tests (109) and OpenNest.IO.Tests pass after reformat, full solution builds 0 errors. Added .csharpierignore so csproj/config XML keeps its existing layout (CSharpier's XML wrapping churns attributes with zero benefit). Formatting is now enforceable: dotnet csharpier check . passes.
29 lines
835 B
C#
29 lines
835 B
C#
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using OpenNest.Bending;
|
|
using OpenNest.Geometry;
|
|
|
|
namespace OpenNest.Controls
|
|
{
|
|
public class CadText
|
|
{
|
|
public ulong? SourceHandle { get; set; }
|
|
|
|
public bool IsReplacedByBendNote(IEnumerable<Bend> bends) =>
|
|
SourceHandle.HasValue
|
|
&& bends != null
|
|
&& bends.Any(b =>
|
|
b.SourceNoteHandle == SourceHandle && !string.IsNullOrEmpty(b.NoteText)
|
|
);
|
|
|
|
public Vector Position { get; set; }
|
|
public string Value { get; set; }
|
|
public double Height { get; set; }
|
|
public double Rotation { get; set; }
|
|
public string LayerName { get; set; }
|
|
public StringAlignment HAlign { get; set; }
|
|
public StringAlignment VAlign { get; set; }
|
|
}
|
|
}
|