アンカー座標をプロジェクトへ保存する状態を追加

このコミットが含まれているのは:
routersys committed 2026-07-01 17:35:56 +09:00
1 親 a8a91103e1
コミット 9c6167d224
1ファイル変更
+15
+15
ファイルの表示
@@ -1,7 +1,9 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Windows.Media;
using LuaScript.Anchor;
using LuaScript.Compat;
using Newtonsoft.Json;
using YukkuriMovieMaker.Commons;
@@ -293,6 +295,19 @@ namespace LuaScript
return Color.FromRgb(r, g, b);
}
public ImmutableList<LuaAnchorPoint> Anchors
{
get => _anchors;
set { if (Set(ref _anchors, value ?? ImmutableList<LuaAnchorPoint>.Empty)) AnchorVersion++; }
}
ImmutableList<LuaAnchorPoint> _anchors = ImmutableList<LuaAnchorPoint>.Empty;
[JsonIgnore]
internal int AnchorVersion { get; private set; }
internal void ApplyAnchorDrag(string group, int index, double dx, double dy, double dz)
=> Anchors = AnchorSupport.ApplyDrag(Anchors, group, index, dx, dy, dz);
public override IEnumerable<string> CreateExoVideoFilters(int keyFrameIndex, ExoOutputDescription exoOutputDescription) => [];
public override IVideoEffectProcessor CreateVideoEffect(IGraphicsDevicesAndContext devices)