mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-04 20:31:44 -05:00
Document and Undo/ (ChangeScope, NestFingerprint, NestUndoState) use only Core, Data, IO and Engine, so they move into the toolkit-neutral library both desktop front ends share. Namespaces are unchanged, so the WinForms app compiles as before; it keeps using the internal scope factories and fingerprint through InternalsVisibleTo. The scope, fingerprint and SaveAs/save-point rules now have Linux tests in OpenNest.Desktop.Tests; before, only the Windows-only WinForms suite covered them.
12 lines
291 B
C#
12 lines
291 B
C#
using OpenNest.Data;
|
|
using OpenNest.IO;
|
|
|
|
namespace OpenNest.Undo
|
|
{
|
|
/// <summary>One whole-nest state in a document's undo history.</summary>
|
|
public sealed record NestUndoState(NestSnapshot Snapshot) : IUndoState
|
|
{
|
|
public long SizeInBytes => Snapshot.SizeInBytes;
|
|
}
|
|
}
|