public static double GetTagOrder(this TagRuleEngine tagEngine, string tag) { var value = tagEngine.GetPropertyValue(tag, "order")?.Trim(); if (string.IsNullOrEmpty(value) || !double.TryParse(value, out var order) || double.IsNaN(order)) { return(100); } return(order); }
public static Color?GetTagColor(this TagRuleEngine tagEngine, string tag) => ColorService.ParseColor(tagEngine.GetPropertyValue(tag, "color"));