Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Xml.Linq;
using System.Drawing;
using static System.Net.Mime.MediaTypeNames;
using AXOpen.VisualComposer.Types;

namespace AXOpen.VisualComposer
{
Expand Down Expand Up @@ -153,6 +154,12 @@ public async Task AddChildrenAsync(ITwinElement item)
await SaveAsync();
}

public void AddChildren(ITwinElement item, double left, double top, TransformType transform, string presentation, double width, double height, int zIndex, double scale, string roles, string? presentationTemplate, bool background, string backgroundColor)
{
_children.Add(new VisualComposerItemData( EventCallback.Factory.Create(this, StateHasChanged),EventCallback.Factory.Create(this, SaveAsync), item, item.Symbol.ModalIdHelper(),
Guid.NewGuid(), left, top, transform, presentation, width, height, zIndex, scale, roles, presentationTemplate, background, backgroundColor));
}

public async Task RemoveChildrenAsync(VisualComposerItemData item)
{
_children.Remove(item);
Expand Down