LayoutElementsStore.cs 524 B

123456789101112131415161718
  1. using PixiEditor.Extensions.CommonApi.LayoutBuilding;
  2. namespace PixiEditor.Extensions.Wasm.Api.LayoutBuilding;
  3. internal static class LayoutElementsStore
  4. {
  5. public static Dictionary<int, ILayoutElement<CompiledControl>> LayoutElements { get; } = new();
  6. public static void AddElement(int internalId, ILayoutElement<CompiledControl> element)
  7. {
  8. LayoutElements.Add(internalId, element);
  9. }
  10. public static void RemoveElement(int internalId)
  11. {
  12. LayoutElements.Remove(internalId);
  13. }
  14. }