Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using JetBrains.Annotations;
using OpenScadGraphEditor.Nodes;
using OpenScadGraphEditor.Utils;
namespace OpenScadGraphEditor.Widgets
{
[UsedImplicitly]
public class NumberEdit : LineEditBase<NumberLiteral>
{
protected override string LiteralValue => Literal.Value.SafeToString();
protected override void OnFocusExited()
{
EmitValueChange(new NumberLiteral(!Control.Text.SafeTryParse(out var result) ? 0d : result));
}
}
}7192f5216This file is pinned to the selected release. Download the original to open it in your design tool.