Move dimension options in Dimensions class
This commit is contained in:
parent
96c3fbdf4e
commit
3d6d979389
11 changed files with 112 additions and 77 deletions
|
@ -184,7 +184,7 @@ const DEFAULT_CONTAINER_STYLE = {
|
|||
fillOpacity: 1,
|
||||
fill: 'white',
|
||||
strokeWidth: 2
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Default Main container properties
|
||||
|
@ -209,10 +209,12 @@ export const DEFAULT_MAINCONTAINER_PROPS: IContainerProperties = {
|
|||
isFlex: false,
|
||||
positionReference: PositionReference.TopLeft,
|
||||
hideChildrenInTreeview: false,
|
||||
showChildrenDimensions: [Position.Up, Position.Left],
|
||||
showSelfDimensions: [Position.Up, Position.Left],
|
||||
showDimensionWithMarks: [Position.Down, Position.Right],
|
||||
markPosition: [],
|
||||
dimensionOptions: {
|
||||
showChildrenDimensions: [Position.Up, Position.Left],
|
||||
showSelfDimensions: [Position.Up, Position.Left],
|
||||
showDimensionWithMarks: [Position.Down, Position.Right],
|
||||
markPosition: []
|
||||
},
|
||||
warning: '',
|
||||
style: DEFAULT_CONTAINER_STYLE
|
||||
};
|
||||
|
@ -256,10 +258,12 @@ export function GetDefaultContainerProps(type: string,
|
|||
minHeight: containerConfig.MinWidth ?? 1,
|
||||
maxHeight: containerConfig.MaxWidth ?? Number.MAX_SAFE_INTEGER,
|
||||
hideChildrenInTreeview: containerConfig.HideChildrenInTreeview ?? false,
|
||||
showChildrenDimensions: containerConfig.ShowChildrenDimensions ?? [],
|
||||
showSelfDimensions: containerConfig.ShowSelfDimensions ?? [],
|
||||
markPosition: containerConfig.MarkPosition ?? [],
|
||||
showDimensionWithMarks: containerConfig.ShowDimensionWithMarks ?? [],
|
||||
dimensionOptions: {
|
||||
showChildrenDimensions: containerConfig.ShowChildrenDimensions ?? [],
|
||||
showSelfDimensions: containerConfig.ShowSelfDimensions ?? [],
|
||||
markPosition: containerConfig.MarkPosition ?? [],
|
||||
showDimensionWithMarks: containerConfig.ShowDimensionWithMarks ?? []
|
||||
},
|
||||
warning: '',
|
||||
customSVG: containerConfig.CustomSVG,
|
||||
style: Object.assign(structuredClone(DEFAULT_CONTAINER_STYLE), structuredClone(containerConfig.Style)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue