update
This commit is contained in:
@@ -38,8 +38,7 @@
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Delete"
|
||||
Color="Color.Error"
|
||||
Size="Size.Small"
|
||||
OnClick="@(() => RemoveEdgeAsync(edge))"
|
||||
StopPropagation="true" />
|
||||
OnClick="@(() => RemoveEdgeAsync(edge))" />
|
||||
</div>
|
||||
</TitleContent>
|
||||
|
||||
@@ -88,47 +87,6 @@
|
||||
}
|
||||
</MudSelect>
|
||||
</MudItem>
|
||||
|
||||
@* <!-- Radius -->
|
||||
<MudItem xs="6">
|
||||
<MudNumericField T="double"
|
||||
Value="@edge.Radius"
|
||||
ValueChanged="@((double v) => SetValue(() => edge.Radius = v))"
|
||||
Immediate="true"
|
||||
Min="0"
|
||||
Step="0.1"
|
||||
Label="Radius (0 = straight line)" />
|
||||
</MudItem>
|
||||
|
||||
<!-- Quadrant -->
|
||||
@if (edge.Radius > 0)
|
||||
{
|
||||
<MudItem xs="6">
|
||||
<MudSelect T="Quadrant"
|
||||
Value="@edge.Quadrant"
|
||||
ValueChanged="@((Quadrant v) => SetValue(() => edge.Quadrant = v))"
|
||||
Label="Quadrant">
|
||||
<MudSelectItem Value="Quadrant.I">I</MudSelectItem>
|
||||
<MudSelectItem Value="Quadrant.II">II</MudSelectItem>
|
||||
<MudSelectItem Value="Quadrant.III">III</MudSelectItem>
|
||||
<MudSelectItem Value="Quadrant.IV">IV</MudSelectItem>
|
||||
</MudSelect>
|
||||
</MudItem>
|
||||
}
|
||||
|
||||
<!-- Apply Curve -->
|
||||
@if (!edge.HasTrajectory && edge.Radius > 0 && !edge.Expanded)
|
||||
{
|
||||
<MudItem xs="12">
|
||||
<MudButton Color="Color.Primary"
|
||||
Variant="Variant.Outlined"
|
||||
StartIcon="@Icons.Material.Filled.Merge"
|
||||
OnClick="@(() => ApplyCurveAsync(edge))">
|
||||
Apply Curve (generate node)
|
||||
</MudButton>
|
||||
</MudItem>
|
||||
} *@
|
||||
|
||||
</MudGrid>
|
||||
</ChildContent>
|
||||
</MudExpansionPanel>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<MudPaper Class="pa-4 h-100 d-flex flex-column overflow-hidden" Elevation="2">
|
||||
<MudStack Row AlignItems="AlignItems.Center" Justify="Justify.SpaceBetween"
|
||||
Class="mb-4 flex-shrink-0">
|
||||
<MudText Typo="Typo.h6">📄 JSON Output (/order)</MudText>
|
||||
<MudText Typo="Typo.h6">Output (/order)</MudText>
|
||||
|
||||
<div class="d-flex gap-2">
|
||||
|
||||
|
||||
@@ -86,6 +86,7 @@
|
||||
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
|
||||
});
|
||||
}
|
||||
|
||||
private async Task OpenImportDialog()
|
||||
{
|
||||
var dialog = await DialogService.ShowAsync<ImportOrderDialog>(
|
||||
@@ -177,22 +178,19 @@
|
||||
|
||||
void RemoveAction(Node node, VDA5050.InstantAction.Action action)
|
||||
{
|
||||
node.Actions = node.Actions?.Where(a => a != action).ToArray()
|
||||
?? Array.Empty<VDA5050.InstantAction.Action>();
|
||||
node.Actions = node.Actions?.Where(a => a != action).ToArray() ?? [];
|
||||
}
|
||||
|
||||
void AddActionParameter(VDA5050.InstantAction.Action act)
|
||||
{
|
||||
var list = (act.ActionParameters ?? Array.Empty<ActionParameter>()).ToList();
|
||||
var list = (act.ActionParameters ?? []).ToList();
|
||||
list.Add(new UiActionParameter());
|
||||
act.ActionParameters = list.ToArray();
|
||||
}
|
||||
|
||||
void RemoveActionParameter(VDA5050.InstantAction.Action act, ActionParameter param)
|
||||
{
|
||||
act.ActionParameters =
|
||||
act.ActionParameters?.Where(p => p != param).ToArray()
|
||||
?? Array.Empty<ActionParameter>();
|
||||
act.ActionParameters = act.ActionParameters?.Where(p => p != param).ToArray() ?? [];
|
||||
}
|
||||
|
||||
// ================= SEND / COPY =================
|
||||
@@ -302,7 +300,7 @@
|
||||
_copyCts?.Cancel();
|
||||
_copyCts = new();
|
||||
|
||||
await JS.InvokeVoidAsync("navigator.clipboard.writeText", OrderJson);
|
||||
await JS.InvokeVoidAsync("copyToClipboardFallback", OrderJson);
|
||||
|
||||
copied = true;
|
||||
StateHasChanged();
|
||||
|
||||
Reference in New Issue
Block a user