Esempio n. 1
0
 public Drawing(DrawingSettings settings)
     : this(settings, new ReadOnlyTree <string, Layer>().Insert("0", new Layer("0")))
 {
 }
Esempio n. 2
0
 /// <summary>
 /// Formats the specified angle as the appropriate format.
 /// </summary>
 public static string FormatAngle(this Drawing drawing, double value) => DrawingSettings.FormatAngle(value, drawing.Settings.AnglePrecision);
Esempio n. 3
0
 /// <summary>
 /// Formats the specified scalar value as the appropriate format.
 /// </summary>
 public static string FormatScalar(this Drawing drawing, double value) => DrawingSettings.FormatUnits(value, UnitFormat.Metric, drawing.Settings.UnitPrecision);
Esempio n. 4
0
 /// <summary>
 /// Formats the specified unit as the appropriate format.
 /// </summary>
 public static string FormatUnits(this Drawing drawing, double value) => DrawingSettings.FormatUnits(value, drawing.Settings.UnitFormat, drawing.Settings.UnitPrecision);