Add visual template coordinate editor
This commit is contained in:
@@ -99,7 +99,7 @@ public sealed class LayoutParser
|
||||
private static float Number(string value) => float.TryParse(value, NumberStyles.Float,
|
||||
CultureInfo.InvariantCulture, out var result) ? result : throw new FormatException($"„{value}“ ist keine Zahl.");
|
||||
|
||||
internal static float Percentage(string value)
|
||||
public static float Percentage(string value)
|
||||
{
|
||||
var normalized = value.EndsWith('%') ? value[..^1] : value;
|
||||
var result = Number(normalized);
|
||||
|
||||
Reference in New Issue
Block a user