Move dimension options in Dimensions class
This commit is contained in:
parent
96c3fbdf4e
commit
3d6d979389
11 changed files with 112 additions and 77 deletions
|
@ -88,32 +88,14 @@ namespace SVGLDLibs.Models
|
|||
/** Horizontal alignment, also determines the visual location of x {Left = 0, Center, Right } */
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public PositionReferenceEnumModel positionReference;
|
||||
|
||||
|
||||
/** Hide the children in the treeview */
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public bool hideChildrenInTreeview;
|
||||
|
||||
/** if true, show the dimension of the container */
|
||||
/** Dimension options */
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Position[] showSelfDimensions;
|
||||
|
||||
/** if true show the overall dimensions of its children */
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Position[] showChildrenDimensions;
|
||||
|
||||
/**
|
||||
* if true, allows a parent dimension borrower to borrow its x coordinate
|
||||
* as a reference point for a dimension
|
||||
*/
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Orientation[] markPosition;
|
||||
|
||||
/**
|
||||
* if true, show a dimension from the edge of the container to end
|
||||
* and insert dimensions marks at lift up children (see liftDimensionToBorrower)
|
||||
*/
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Position[] showDimensionWithMarks;
|
||||
public Dimensions dimensionOptions;
|
||||
|
||||
/**
|
||||
* Warnings of a container
|
||||
|
|
32
csharp/SVGLDLibs/SVGLDLibs/Models/Dimensions.cs
Normal file
32
csharp/SVGLDLibs/SVGLDLibs/Models/Dimensions.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class Dimensions
|
||||
{
|
||||
|
||||
/** if true, show the dimension of the container */
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Position[] showSelfDimensions;
|
||||
|
||||
/** if true show the overall dimensions of its children */
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Position[] showChildrenDimensions;
|
||||
|
||||
/**
|
||||
* if true, allows a parent dimension borrower to borrow its x coordinate
|
||||
* as a reference point for a dimension
|
||||
*/
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Orientation[] markPosition;
|
||||
|
||||
/**
|
||||
* if true, show a dimension from the edge of the container to end
|
||||
* and insert dimensions marks at lift up children (see liftDimensionToBorrower)
|
||||
*/
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Position[] showDimensionWithMarks;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue