Merged PR 199: Add more Position for the dimensions + rename isDimensionBorrower and MarkPosition... + Refactor components in ContainerForm with Checkboxes and Selector + Add more docs

Add more Position for the dimensions

Rename isDimensionBorrower and MarkPosition...

Refactor components in ContainerForm with Checkboxes and Selector

Add more docs
This commit is contained in:
Eric Nguyen 2022-09-30 09:28:08 +00:00
parent 38666af314
commit b88539e34d
13 changed files with 494 additions and 314 deletions

View file

@ -5,6 +5,7 @@ import { PositionReference } from '../Enums/PositionReference';
import { IAction } from './IAction';
import { IMargin } from './IMargin';
import { Orientation } from '../Enums/Orientation';
import { Position } from '../Enums/Position';
/** Model of available container used in application configuration */
export interface IAvailableContainer {
@ -112,21 +113,21 @@ export interface IAvailableContainer {
HideChildrenInTreeview?: boolean
/** if true, show the dimension of the container */
ShowSelfDimensions?: boolean
ShowSelfDimensions?: Position[]
/** if true show the overall dimensions of its children */
ShowChildrenDimensions?: boolean
ShowChildrenDimensions?: Position[]
/**
* if true, allows a parent dimension borrower to uses its x coordinate for as a reference point for a dimension
*/
MarkPositionToDimensionBorrower?: Orientation[]
MarkPosition?: Orientation[]
/**
* if true, show a dimension from the edge of the container to end
* and insert dimensions marks at lift up children (see liftDimensionToBorrower)
* and insert dimensions marks at lift up children (see MarkPosition)
*/
IsDimensionBorrower?: boolean
ShowDimensionWithMarks?: Position[]
/**
* if true, hide the entry in the sidebar (default: false)

View file

@ -2,6 +2,7 @@ import * as React from 'react';
import { PositionReference } from '../Enums/PositionReference';
import { IMargin } from './IMargin';
import { Orientation } from '../Enums/Orientation';
import { Position } from '../Enums/Position';
/**
* Properties of a container
@ -73,22 +74,22 @@ export interface IContainerProperties {
hideChildrenInTreeview: boolean
/** if true, show the dimension of the container */
showSelfDimensions: boolean
showSelfDimensions: Position[]
/** if true show the overall dimensions of its children */
showChildrenDimensions: boolean
showChildrenDimensions: Position[]
/**
* if true, allows a parent dimension borrower to borrow its x coordinate
* as a reference point for a dimension
*/
markPositionToDimensionBorrower: Orientation[]
markPosition: Orientation[]
/**
* if true, show a dimension from the edge of the container to end
* and insert dimensions marks at lift up children (see liftDimensionToBorrower)
*/
isDimensionBorrower: boolean
showDimensionWithMarks: Position[]
/**
* Warnings of a container