Merged PR 308: #8224/#7571 Margins cotation and Colors

Related work items: #8224
This commit is contained in:
Carl Fuchs 2023-01-30 14:59:55 +00:00
parent 4e8f465405
commit a7feebdcd1
18 changed files with 425 additions and 150 deletions

View file

@ -11,8 +11,10 @@ import { Orientation } from '../../../Enums/Orientation';
/**
* Select a container
* @param container Selected container
* @returns New history
* @param containerId
* @param fullHistory
* @param historyCurrentStep
*/
export function SelectContainer(
containerId: string,
@ -135,6 +137,7 @@ function GetSelectedContainerOnDelete(
/**
* Unlink a container and its children to symbols
* (used when deleting a container)
* @param containers
* @param symbols Symbols to update
* @param container Container to unlink
*/
@ -318,6 +321,18 @@ function AssignProperty(container: IContainerModel, key: string, value: string |
case PropertyType.Margin:
SetMargin();
break;
case PropertyType.SelfDimension:
(container.properties.dimensionOptions.selfDimensions as any)[key] = value;
break;
case PropertyType.SelfMarginDimension:
(container.properties.dimensionOptions.selfMarginsDimensions as any)[key] = value;
break;
case PropertyType.ChildrenDimensions:
(container.properties.dimensionOptions.childrenDimensions as any)[key] = value;
break;
case PropertyType.DimensionWithMarks:
(container.properties.dimensionOptions.dimensionWithMarks as any)[key] = value;
break;
case PropertyType.DimensionOptions:
(container.properties.dimensionOptions as any)[key] = value;
break;