mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-26 22:01:06 -04:00
refactor(core): drop System.Drawing.Common and fix CutParameters namespace
Core only uses System.Drawing.Color, which ships in the shared framework, so the System.Drawing.Common package (Windows-only beyond primitives) was an unneeded dependency of the cross-platform domain library. The desktop app keeps its own reference. CutParameters lives in OpenNest.Core but declared namespace OpenNest.Api, forcing Core and desktop files to import the Api namespace for a Core type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19adfbcfbd
commit
90a6d9e4d2
8 files changed
+1
-9
No files matched your search
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace OpenNest.Api;
|
||||
namespace OpenNest;
|
||||
|
||||
public class CutParameters
|
||||
{
|
||||
|
||||
@@ -10,6 +10,5 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Clipper2" Version="2.0.0" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using OpenNest.Api;
|
||||
using OpenNest.CNC;
|
||||
using OpenNest.Converters;
|
||||
using OpenNest.Geometry;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using OpenNest.Api;
|
||||
|
||||
namespace OpenNest.Tests.Api;
|
||||
|
||||
public class CutParametersTests
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using OpenNest.Api;
|
||||
using OpenNest.Geometry;
|
||||
|
||||
namespace OpenNest.Tests;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using OpenNest.Api;
|
||||
|
||||
namespace OpenNest.Forms
|
||||
{
|
||||
|
||||
@@ -6,7 +6,6 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using OpenNest.Actions;
|
||||
using OpenNest.Api;
|
||||
using OpenNest.CNC.CuttingStrategy;
|
||||
using OpenNest.Collections;
|
||||
using OpenNest.Controls;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using OpenNest.Api;
|
||||
|
||||
namespace OpenNest.Forms
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user