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

View file

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