utils_addFlexLayout_flex_layout.YogaLayout
perfect-graph / Modules / utils/addFlexLayout/flex-layout / YogaLayout
#
Class: YogaLayoututils/addFlexLayout/flex-layout.YogaLayout
#
Table of contents#
Constructors#
Properties- _animation
- _aspectRatio
- _cachedLayout
- _gap
- _height
- _lastLayout
- _lastRecalculationDuration
- _marginLeft
- _marginTop
- _needUpdateAsRoot
- _width
- animationConfig
- children
- keepAspectRatio
- node
- parent
- rescaleToYoga
- target
- AFTER_LAYOUT_UPDATED_EVENT
- LAYOUT_UPDATED_EVENT
- NEED_LAYOUT_UPDATE
- isRendering
- roots
#
Accessors- alignContent
- alignItems
- alignSelf
- animationState
- aspectRatio
- border
- borderAll
- borderBottom
- borderLeft
- borderRight
- borderTop
- bottom
- calculatedHeight
- calculatedWidth
- config
- display
- flexBasis
- flexDirection
- flexGrow
- flexShrink
- flexWrap
- gap
- hasContantDeclaredSize
- height
- isHeightCalculatedFromPixi
- isRoot
- isWidthCalculatedFromPixi
- justifyContent
- left
- margin
- marginAll
- marginBottom
- marginLeft
- marginRight
- marginTop
- maxHeight
- maxWidth
- minHeight
- minWidth
- padding
- paddingAll
- paddingBottom
- paddingLeft
- paddingRight
- paddingTop
- position
- right
- root
- top
- width
#
Methods- _parseValue
- addChild
- copy
- fillDefaults
- fromConfig
- getComputedLayout
- recalculateLayout
- removeChild
- requestLayoutUpdate
- update
- updateGap
- willLayoutWillBeRecomputed
#
Constructors#
constructor• new YogaLayout(pixiObject?
)
#
ParametersName | Type |
---|---|
pixiObject | any |
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:116
#
Properties#
_animation• Private
_animation: IAnimationState
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:95
#
_aspectRatio• Private
_aspectRatio: number
Used instead of Yoga.AspectRatio because of Yoga issue https://github.com/facebook/yoga/issues/677
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:105
#
_cachedLayout• Private
_cachedLayout: any
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:89
#
_gap• Private
_gap: number
= 0
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:107
#
_height• Private
_height: YogaSize
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:87
#
_lastLayout• Private
_lastLayout: any
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:91
#
_lastRecalculationDuration• Private
_lastRecalculationDuration: number
= 0
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:93
#
_marginLeft• Private
_marginLeft: number
= 0
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:114
#
_marginTop• Private
_marginTop: number
= 0
Internal values stored to reduce calls to nbind
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:112
#
_needUpdateAsRoot• Private
_needUpdateAsRoot: boolean
= false
Will be recalculated in next frame
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:100
#
_width• Private
_width: YogaSize
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:85
#
animationConfig• animationConfig: IYogaAnimationConfig
If set, position transitions will be animated
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:72
#
children• children: YogaLayout
[] = []
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:65
#
keepAspectRatio• keepAspectRatio: undefined
| boolean
If true and rescaleToYoga===true, resizing will keep aspect ratio of obejct. Defaults to true on PIXI.Text and PIXI.Sprite.
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:83
#
node• Readonly
node: YogaNode
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:63
#
parent• Optional
parent: YogaLayout
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:67
#
rescaleToYoga• rescaleToYoga: boolean
= false
True if Yoga should manage PIXI objects width/height
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:77
#
target• Readonly
target: any
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:61
#
AFTER_LAYOUT_UPDATED_EVENTâ–ª Static
Readonly
AFTER_LAYOUT_UPDATED_EVENT: "AFTER_LAYOUT_UPDATED_EVENT"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:57
#
LAYOUT_UPDATED_EVENTâ–ª Static
Readonly
LAYOUT_UPDATED_EVENT: "LAYOUT_UPDATED_EVENT"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:55
#
NEED_LAYOUT_UPDATEâ–ª Static
Readonly
NEED_LAYOUT_UPDATE: "NEED_LAYOUT_UPDATE"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:59
#
isRenderingâ–ª Static
isRendering: boolean
= true
Internal value. True if we are currently in WebGLRenderer.render() (based on 'prerender' and 'postrender' events). Used to skip some updateTransform calls.
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:48
#
rootsâ–ª Static
roots: Map
<string
, YogaLayout
>
Experimental feature for building layouts independent of pixi tree
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:53
#
Accessors#
alignContent• get
alignContent(): "auto"
| "baseline"
| "center"
| "flex-start"
| "flex-end"
| "space-between"
| "space-around"
| "stretch"
#
Returns"auto"
| "baseline"
| "center"
| "flex-start"
| "flex-end"
| "space-between"
| "space-around"
| "stretch"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:423
• set
alignContent(align
): void
#
ParametersName | Type |
---|---|
align | "auto" | "baseline" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "stretch" |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:417
#
alignItems• get
alignItems(): "auto"
| "baseline"
| "center"
| "flex-start"
| "flex-end"
| "space-between"
| "space-around"
| "stretch"
#
Returns"auto"
| "baseline"
| "center"
| "flex-start"
| "flex-end"
| "space-between"
| "space-around"
| "stretch"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:434
• set
alignItems(align
): void
#
ParametersName | Type |
---|---|
align | "auto" | "baseline" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "stretch" |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:428
#
alignSelf• get
alignSelf(): "auto"
| "baseline"
| "center"
| "flex-start"
| "flex-end"
| "space-between"
| "space-around"
| "stretch"
#
Returns"auto"
| "baseline"
| "center"
| "flex-start"
| "flex-end"
| "space-between"
| "space-around"
| "stretch"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:446
• set
alignSelf(align
): void
#
ParametersName | Type |
---|---|
align | "auto" | "baseline" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "stretch" |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:440
#
animationState• get
animationState(): Readonly
<IAnimationState
>
#
ReturnsReadonly
<IAnimationState
>
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:148
#
aspectRatio• get
aspectRatio(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:320
• set
aspectRatio(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:312
#
border• get
border(): number
[]
#
Returnsnumber
[]
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:620
• set
border(margin
): void
#
ParametersName | Type |
---|---|
margin | number [] |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:612
#
borderAll• set
borderAll(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:624
#
borderBottom• get
borderBottom(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:642
• set
borderBottom(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:637
#
borderLeft• get
borderLeft(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:651
• set
borderLeft(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:646
#
borderRight• get
borderRight(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:660
• set
borderRight(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:655
#
borderTop• get
borderTop(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:633
• set
borderTop(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:628
#
bottom• get
bottom(): PixelsOrPercentage
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:678
• set
bottom(value
): void
#
ParametersName | Type |
---|---|
value | PixelsOrPercentage |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:673
#
calculatedHeight• get
calculatedHeight(): number
Returns computed height in pixels
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:342
#
calculatedWidth• get
calculatedWidth(): number
Returns computed width in pixels
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:335
#
config• set
config(config
): void
Same as 'fromConfig()'
#
ParametersName | Type |
---|---|
config | Partial <YogaLayout > |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:171
#
display• get
display(): "flex"
| "none"
#
Returns"flex"
| "none"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:743
• set
display(value
): void
#
ParametersName | Type |
---|---|
value | "flex" | "none" |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:737
#
flexBasis• get
flexBasis(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:486
• set
flexBasis(basis
): void
#
ParametersName | Type |
---|---|
basis | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:481
#
flexDirection• get
flexDirection(): "row"
| "column"
| "column-reverse"
| "row-reverse"
#
Returns"row"
| "column"
| "column-reverse"
| "row-reverse"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:401
• set
flexDirection(direction
): void
#
ParametersName | Type |
---|---|
direction | "row" | "column" | "column-reverse" | "row-reverse" |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:393
#
flexGrow• get
flexGrow(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:468
• set
flexGrow(grow
): void
#
ParametersName | Type |
---|---|
grow | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:463
#
flexShrink• get
flexShrink(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:477
• set
flexShrink(shrink
): void
#
ParametersName | Type |
---|---|
shrink | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:472
#
flexWrap• get
flexWrap(): "wrap"
| "no-wrap"
| "wrap-reverse"
#
Returns"wrap"
| "no-wrap"
| "wrap-reverse"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:458
• set
flexWrap(wrap
): void
#
ParametersName | Type |
---|---|
wrap | "wrap" | "no-wrap" | "wrap-reverse" |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:452
#
gap• get
gap(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:757
• set
gap(val
): void
#
ParametersName | Type |
---|---|
val | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:748
#
hasContantDeclaredSize• get
hasContantDeclaredSize(): boolean
Returns true if object size is independent of its children sizes.
#
Returnsboolean
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:248
#
height• get
height(): YogaSize
Can handle:
- pixels (eg 150)
- percents ("50%")
- "auto" to use values from yoga
- "pixi" to use DisplayObject.width/height
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:388
• set
height(value
): void
Can handle:
- pixels (eg 150)
- percents ("50%")
- "auto" to use values from yoga
- "pixi" to use DisplayObject.width/height
#
ParametersName | Type |
---|---|
value | YogaSize |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:377
#
isHeightCalculatedFromPixi• get
isHeightCalculatedFromPixi(): boolean
#
Returnsboolean
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:328
#
isRoot• get
isRoot(): boolean
#
Returnsboolean
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:241
#
isWidthCalculatedFromPixi• get
isWidthCalculatedFromPixi(): boolean
#
Returnsboolean
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:324
#
justifyContent• get
justifyContent(): "center"
| "flex-start"
| "flex-end"
| "space-between"
| "space-around"
#
Returns"center"
| "flex-start"
| "flex-end"
| "space-between"
| "space-around"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:412
• set
justifyContent(just
): void
#
ParametersName | Type |
---|---|
just | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:406
#
left• get
left(): PixelsOrPercentage
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:687
• set
left(value
): void
#
ParametersName | Type |
---|---|
value | PixelsOrPercentage |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:682
#
margin• get
margin(): number
[]
#
Returnsnumber
[]
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:566
• set
margin(margin
): void
#
ParametersName | Type |
---|---|
margin | number [] |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:554
#
marginAll• set
marginAll(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:562
#
marginBottom• get
marginBottom(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:587
• set
marginBottom(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:582
#
marginLeft• get
marginLeft(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:599
• set
marginLeft(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:591
#
marginRight• get
marginRight(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:608
• set
marginRight(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:603
#
marginTop• get
marginTop(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:578
• set
marginTop(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:570
#
maxHeight• get
maxHeight(): PixelsOrPercentage
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:732
• set
maxHeight(value
): void
#
ParametersName | Type |
---|---|
value | PixelsOrPercentage |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:727
#
maxWidth• get
maxWidth(): PixelsOrPercentage
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:723
• set
maxWidth(value
): void
#
ParametersName | Type |
---|---|
value | PixelsOrPercentage |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:718
#
minHeight• get
minHeight(): PixelsOrPercentage
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:714
• set
minHeight(value
): void
#
ParametersName | Type |
---|---|
value | PixelsOrPercentage |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:709
#
minWidth• get
minWidth(): PixelsOrPercentage
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:705
• set
minWidth(value
): void
#
ParametersName | Type |
---|---|
value | PixelsOrPercentage |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:700
#
padding• get
padding(): number
[]
#
Returnsnumber
[]
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:510
• set
padding(margin
): void
#
ParametersName | Type |
---|---|
margin | number [] |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:502
#
paddingAll• set
paddingAll(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:514
#
paddingBottom• get
paddingBottom(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:532
• set
paddingBottom(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:527
#
paddingLeft• get
paddingLeft(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:541
• set
paddingLeft(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:536
#
paddingRight• get
paddingRight(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:550
• set
paddingRight(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:545
#
paddingTop• get
paddingTop(): number
#
Returnsnumber
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:523
• set
paddingTop(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:518
#
position• get
position(): "relative"
| "absolute"
#
Returns"relative"
| "absolute"
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:497
• set
position(type
): void
#
ParametersName | Type |
---|---|
type | "relative" | "absolute" |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:491
#
right• get
right(): PixelsOrPercentage
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:696
• set
right(value
): void
#
ParametersName | Type |
---|---|
value | PixelsOrPercentage |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:691
#
root• set
root(val
): void
#
ParametersName | Type |
---|---|
val | string |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:152
#
top• get
top(): PixelsOrPercentage
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:669
• set
top(value
): void
#
ParametersName | Type |
---|---|
value | PixelsOrPercentage |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:664
#
width• get
width(): YogaSize
Can handle:
- pixels (eg 150)
- percents ("50%")
- "auto" to use values from yoga
- "pixi" to use DisplayObject.width/height
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:365
• set
width(value
): void
Can handle:
- pixels (eg 150)
- percents ("50%")
- "auto" to use values from yoga
- "pixi" to use DisplayObject.width/height
#
ParametersName | Type |
---|---|
value | YogaSize |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:354
#
Methods#
_parseValueâ–¸ Private
_parseValue(value
): PixelsOrPercentage
#
ParametersName | Type |
---|---|
value | Object |
value.unit | any |
value.value | any |
#
Returns#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:778
#
addChildâ–¸ addChild(yoga
, index?
): void
#
ParametersName | Type |
---|---|
yoga | YogaLayout |
index | number |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:196
#
copyâ–¸ copy(layout
): void
Copies all properties (styles, size, rescaleToYoga etc) from other YogaLayout objects
#
ParametersName | Type |
---|---|
layout | YogaLayout |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:179
#
fillDefaultsâ–¸ fillDefaults(): void
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:188
#
fromConfigâ–¸ fromConfig(config
): void
Assigns given properties to this yoga layout
#
ParametersName | Type |
---|---|
config | Partial <YogaLayout > |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:163
#
getComputedLayoutâ–¸ getComputedLayout(): any
#
Returnsany
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:258
#
recalculateLayoutâ–¸ recalculateLayout(): void
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:222
#
removeChildâ–¸ removeChild(yoga
): void
#
ParametersName | Type |
---|---|
yoga | YogaLayout |
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:206
#
requestLayoutUpdateâ–¸ requestLayoutUpdate(): void
Mark object as dirty and request layout recalculation
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:218
#
updateâ–¸ update(): void
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:229
#
updateGapâ–¸ updateGap(): void
#
Returnsvoid
#
Defined inutils/addFlexLayout/flex-layout/YogaLayout.ts:761
#
willLayoutWillBeRecomputedâ–¸ willLayoutWillBeRecomputed(): boolean
#
Returnsboolean