Add refactor TODOs in ContainerProperties and IAvailableContainer

This commit is contained in:
Eric NGUYEN 2022-11-07 10:08:36 +01:00
parent 4ff2e0b7fb
commit 80b83dcec7
2 changed files with 9 additions and 0 deletions

View file

@ -22,12 +22,14 @@ export interface IAvailableContainer {
/** orientation */
Orientation?: Orientation
// TODO: Refactor x, y in IPoint interface
/** horizontal offset */
X?: number
/** vertical offset */
Y?: number
// TODO: Refactor width, height, minWidth... in ISize interface
/** width */
Width?: number
@ -57,6 +59,7 @@ export interface IAvailableContainer {
/** margin */
Margin?: IMargin
// TODO: Refactor isAnchor, isFlex in IBehaviors interface
/** true if anchor, false otherwise */
IsAnchor?: boolean
@ -110,6 +113,7 @@ export interface IAvailableContainer {
*/
Pattern?: string
// TODO: Refactor showSelf., showChildren., markPosition, showDimensionWithMarks in IDimensionOptions interface
/** Hide the children in the treeview */
HideChildrenInTreeview?: boolean

View file

@ -27,6 +27,7 @@ export interface IContainerProperties {
/** orientation */
orientation: Orientation
// TODO: Refactor x, y in IPoint interface
/** horizontal offset */
x: number
@ -36,6 +37,7 @@ export interface IContainerProperties {
/** margin */
margin: IMargin
// TODO: Refactor width, height, minWidth... in ISize interface
/** width */
width: number
@ -62,6 +64,7 @@ export interface IContainerProperties {
*/
maxHeight: number
// TODO: Refactor isAnchor, isFlex in IBehaviors interface
/** true if anchor, false otherwise */
isAnchor: boolean
@ -71,9 +74,11 @@ export interface IContainerProperties {
/** Horizontal alignment, also determines the visual location of x {Left = 0, Center, Right } */
positionReference: PositionReference
// TODO: Refactor hideChildrenInTreeview in IUserInterface interface
/** Hide the children in the treeview */
hideChildrenInTreeview: boolean
// TODO: Refactor showSelf., showChildren., markPosition, showDimensionWithMarks in IDimensionOptions interface
/** if true, show the dimension of the container */
showSelfDimensions: Position[]