Fix serialization + bug undefined Dimension
This commit is contained in:
parent
a9744a8860
commit
6792d5e105
4 changed files with 3157 additions and 1753 deletions
|
@ -12,10 +12,13 @@ namespace SVGLDLibs.Models
|
|||
public ImageModel Image { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public double X { get; set; }
|
||||
public double offset { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public double Y { get; set; }
|
||||
public bool isVertical { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public string DisplayedText { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public double Width { get; set; }
|
||||
|
|
|
@ -12,11 +12,17 @@ namespace SVGLDLibs.Models
|
|||
[DataMember(EmitDefaultValue = false)]
|
||||
public string type { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public string displayedText { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public AvailableSymbolModel config { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public double x { get; set; }
|
||||
public double offset { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public bool isVertical { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public double width { get; set; }
|
||||
|
@ -28,6 +34,6 @@ namespace SVGLDLibs.Models
|
|||
public List<string> linkedContainers { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public List<bool> showDimension { get; set; }
|
||||
public bool showDimension { get; set; }
|
||||
}
|
||||
}
|
4885
package-lock.json
generated
4885
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -279,20 +279,20 @@ export function GetDefaultContainerProps(
|
|||
dimensionOptions: {
|
||||
childrenDimensions: {
|
||||
...containerConfig.DimensionOptions?.childrenDimensions,
|
||||
positions: containerConfig.DimensionOptions?.childrenDimensions.positions ?? []
|
||||
positions: containerConfig.DimensionOptions?.childrenDimensions?.positions ?? []
|
||||
},
|
||||
selfDimensions: {
|
||||
...containerConfig.DimensionOptions?.selfDimensions,
|
||||
positions: containerConfig.DimensionOptions?.selfDimensions.positions ?? []
|
||||
positions: containerConfig.DimensionOptions?.selfDimensions?.positions ?? []
|
||||
},
|
||||
selfMarginsDimensions: {
|
||||
...containerConfig.DimensionOptions?.selfMarginsDimensions,
|
||||
positions: containerConfig.DimensionOptions?.selfMarginsDimensions.positions ?? []
|
||||
positions: containerConfig.DimensionOptions?.selfMarginsDimensions?.positions ?? []
|
||||
},
|
||||
markPosition: containerConfig.DimensionOptions?.markPosition ?? [],
|
||||
dimensionWithMarks: {
|
||||
...containerConfig.DimensionOptions?.dimensionWithMarks,
|
||||
positions: containerConfig.DimensionOptions?.dimensionWithMarks.positions ?? []
|
||||
positions: containerConfig.DimensionOptions?.dimensionWithMarks?.positions ?? []
|
||||
}
|
||||
},
|
||||
warning: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue