Merged PR 308: #8224/#7571 Margins cotation and Colors
Related work items: #8224
This commit is contained in:
parent
4e8f465405
commit
a7feebdcd1
18 changed files with 425 additions and 150 deletions
|
@ -7,7 +7,6 @@ import { IContainerProperties } from '../Interfaces/IContainerProperties';
|
|||
import { IEditorState } from '../Interfaces/IEditorState';
|
||||
import { ISymbolModel } from '../Interfaces/ISymbolModel';
|
||||
import { Orientation } from '../Enums/Orientation';
|
||||
import { Position } from '../Enums/Position';
|
||||
import { AppState } from '../Enums/AppState';
|
||||
|
||||
/// EDITOR DEFAULTS ///
|
||||
|
@ -63,6 +62,7 @@ export const DEFAULTCHILDTYPE_MAX_DEPTH = 10;
|
|||
/// DIMENSIONS DEFAULTS ///
|
||||
|
||||
export const SHOW_SELF_DIMENSIONS = true;
|
||||
export const SHOW_SELF_MARGINS_DIMENSIONS = true;
|
||||
export const SHOW_CHILDREN_DIMENSIONS = true;
|
||||
export const SHOW_BORROWER_DIMENSIONS = true;
|
||||
export const SHOW_DIMENSIONS_PER_DEPTH = false;
|
||||
|
@ -211,10 +211,23 @@ export const DEFAULT_MAINCONTAINER_PROPS: IContainerProperties = {
|
|||
positionReference: PositionReference.TopLeft,
|
||||
hideChildrenInTreeview: false,
|
||||
dimensionOptions: {
|
||||
showChildrenDimensions: [Position.Up, Position.Left],
|
||||
showSelfDimensions: [Position.Up, Position.Left],
|
||||
showDimensionWithMarks: [Position.Down, Position.Right],
|
||||
markPosition: []
|
||||
childrenDimensions: {
|
||||
color: '#000000',
|
||||
positions: []
|
||||
},
|
||||
selfDimensions: {
|
||||
color: '#000000',
|
||||
positions: []
|
||||
},
|
||||
selfMarginsDimensions: {
|
||||
color: '#000000',
|
||||
positions: []
|
||||
},
|
||||
markPosition: [],
|
||||
dimensionWithMarks: {
|
||||
color: '#000000',
|
||||
positions: []
|
||||
}
|
||||
},
|
||||
warning: '',
|
||||
style: DEFAULT_CONTAINER_STYLE
|
||||
|
@ -262,10 +275,23 @@ export function GetDefaultContainerProps(type: string,
|
|||
maxHeight: containerConfig.MaxWidth ?? Number.MAX_SAFE_INTEGER,
|
||||
hideChildrenInTreeview: containerConfig.HideChildrenInTreeview ?? false,
|
||||
dimensionOptions: {
|
||||
showChildrenDimensions: containerConfig.ShowChildrenDimensions ?? [],
|
||||
showSelfDimensions: containerConfig.ShowSelfDimensions ?? [],
|
||||
markPosition: containerConfig.MarkPosition ?? [],
|
||||
showDimensionWithMarks: containerConfig.ShowDimensionWithMarks ?? []
|
||||
childrenDimensions: {
|
||||
color: containerConfig.DimensionOptions?.childrenDimensions.color ?? '#000000',
|
||||
positions: containerConfig.DimensionOptions?.childrenDimensions.positions ?? []
|
||||
},
|
||||
selfDimensions: {
|
||||
color: containerConfig.DimensionOptions?.selfDimensions.color ?? '#000000',
|
||||
positions: containerConfig.DimensionOptions?.selfDimensions.positions ?? []
|
||||
},
|
||||
selfMarginsDimensions: {
|
||||
color: containerConfig.DimensionOptions?.selfMarginsDimensions.color ?? '#000000',
|
||||
positions: containerConfig.DimensionOptions?.selfMarginsDimensions.positions ?? []
|
||||
},
|
||||
markPosition: containerConfig.DimensionOptions?.markPosition ?? [],
|
||||
dimensionWithMarks: {
|
||||
color: containerConfig.DimensionOptions?.dimensionWithMarks.color ?? '#000000',
|
||||
positions: containerConfig.DimensionOptions?.dimensionWithMarks.positions ?? []
|
||||
}
|
||||
},
|
||||
warning: '',
|
||||
customSVG: containerConfig.CustomSVG,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue