Skip to main content

utils_addFlexLayout_flex_layout

perfect-graph / Modules / utils/addFlexLayout/flex-layout

Module: utils/addFlexLayout/flex-layout#

Table of contents#

Namespaces#

Classes#

Type aliases#

Variables#

Functions#

Type aliases#

ComputedLayout#

Ƭ ComputedLayout: Object

Type declaration#

NameType
bottomnumber
heightnumber
leftnumber
rightnumber
topnumber
widthnumber

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:54


IFlexLayoutOptions#

Ƭ IFlexLayoutOptions: Object

Type declaration#

NameType
usePixiSharedTickerboolean

Defined in#

utils/addFlexLayout/flex-layout/index.ts:13


IYogaAnimationConfig#

Ƭ IYogaAnimationConfig: Object

Type declaration#

NameType
timenumber
easing(progress: number) => number
shouldRunAnimation?(yoga: YogaLayout, prev: any, newLayout: any) => boolean

Defined in#

utils/addFlexLayout/flex-layout/YogaLayout.ts:35


YogaLayoutConfig#

Ƭ YogaLayoutConfig: Partial<YogaLayout>

Defined in#

utils/addFlexLayout/flex-layout/YogaLayoutConfig.ts:4

Variables#

Align#

• Align: Object

Type declaration#

NameType
auto0
baseline5
center2
flex-end3
flex-start1
space-around7
space-between6
stretch4

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:25


Display#

• Display: Object

Type declaration#

NameType
flex0
none1

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:41


FlexDirection#

• FlexDirection: Object

Type declaration#

NameType
column0
column-reverse1
row2
row-reverse3

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:4


FlexWrap#

• FlexWrap: Object

Type declaration#

NameType
no-wrap0
wrap1
wrap-reverse2

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:19


JustifyContent#

• JustifyContent: Object

Type declaration#

NameType
center1
flex-end2
flex-start0
space-around4
space-between3

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:11


PositionType#

• PositionType: Object

Type declaration#

NameType
absolute1
relative0

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:36


YogaConstants#

• YogaConstants: Object

Type declaration#

NameType
AlignObject
Align.auto0
Align.baseline5
Align.center2
Align.flex-end3
Align.flex-start1
Align.space-around7
Align.space-between6
Align.stretch4
DisplayObject
Display.flex0
Display.none1
FlexDirectionObject
FlexDirection.column0
FlexDirection.column-reverse1
FlexDirection.row2
FlexDirection.row-reverse3
FlexWrapObject
FlexWrap.no-wrap0
FlexWrap.wrap1
FlexWrap.wrap-reverse2
JustifyContentObject
JustifyContent.center1
JustifyContent.flex-end2
JustifyContent.flex-start0
JustifyContent.space-around4
JustifyContent.space-between3
PositionTypeObject
PositionType.absolute1
PositionType.relative0
YogaCustomSizeConfigObject
YogaCustomSizeConfig.AUTO"auto"
YogaCustomSizeConfig.SCREEN_SIZE"screen"
YogaCustomSizeConfig.WINDOW_SIZE"window"
YogaEdges(0 | 1 | 2 | 3)[]

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:64


YogaCustomSizeConfig#

• YogaCustomSizeConfig: Object

Type declaration#

NameType
AUTO"auto"
SCREEN_SIZE"screen"
WINDOW_SIZE"window"

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:46


YogaEdges#

• YogaEdges: (0 | 1 | 2 | 3)[]

Defined in#

utils/addFlexLayout/flex-layout/YogaContants.ts:52

Functions#

initializeYogaLayout#

â–¸ initializeYogaLayout(options?): void

Polyfills PIXI.DisplayObject and PIXI.Container

Parameters#

NameType
optionsIFlexLayoutOptions

Returns#

void

Defined in#

utils/addFlexLayout/flex-layout/index.ts:21


yogaSetRenderer#

â–¸ yogaSetRenderer(renderer): void

Can be used to optimize Yoga update calls. If renderer is set yoga boundBoxCheck/layotutUpdate in updateTransform will be called ONLY when rendering.

Parameters#

NameType
rendererRenderer

Returns#

void

Defined in#

utils/addFlexLayout/flex-layout/index.ts:34