Code/UI/Nodes/Display.razor
@inherits NodePanel
@implements IGraphStyle
@namespace Nodebox.UI
<root>
<Basic
Node=@Node
@ref=Basic>
<Center>
<div class="text">
@Text
</div>
</Center>
</Basic>
</root>
@code {
public string Text => Nodebox.Execution.DisplayImplementation.GetValue(Node)?.ToString() ?? "null";
public Basic Basic { get; protected set; }
public override Panel GetPin(Flow flow, PinIndex pinIndex) => Basic?.GetPin(flow, pinIndex);
protected override int BuildHash() =>
HashCode.Combine(
base.BuildHash()
);
}