FixedLayout
Defined in: src/LayoutManager/LayoutStrategies/FixedLayout.ts:13
Layout will keep target’s initial size.
Extends
Constructors
new FixedLayout()
new FixedLayout():
FixedLayout
Returns
Inherited from
Properties
type
readonly
static
type:"fixed"
='fixed'
Defined in: src/LayoutManager/LayoutStrategies/FixedLayout.ts:14
override by subclass for persistence (TS does not support static abstract
)
Overrides
Methods
calcBoundingBox()
calcBoundingBox(
objects
,context
):undefined
|LayoutStrategyResult
Defined in: src/LayoutManager/LayoutStrategies/LayoutStrategy.ts:68
Override this method to customize layout.
Parameters
objects
context
Returns
undefined
| LayoutStrategyResult
Inherited from
LayoutStrategy
.calcBoundingBox
calcLayoutResult()
calcLayoutResult(
context
,objects
):undefined
|LayoutStrategyResult
Defined in: src/LayoutManager/LayoutStrategies/LayoutStrategy.ts:33
Used by the LayoutManager
to perform layout
@TODO/fix: if this method is calcResult, should calc unconditionally.
the condition to not calc should be evaluated by the layoutManager.
Parameters
context
objects
Returns
undefined
| LayoutStrategyResult
layout result OR undefined
to skip layout
Inherited from
LayoutStrategy
.calcLayoutResult
getInitialSize()
getInitialSize(
__namedParameters
,__namedParameters
):Point
Defined in: src/LayoutManager/LayoutStrategies/FixedLayout.ts:19
respect target’s initial size
Parameters
__namedParameters
StrictLayoutContext
& CommonLayoutContext
& object
__namedParameters
Pick
<LayoutStrategyResult
, "center"
| "size"
>
Returns
Overrides
shouldLayoutClipPath()
shouldLayoutClipPath(
__namedParameters
):undefined
|boolean
Defined in: src/LayoutManager/LayoutStrategies/LayoutStrategy.ts:50
Parameters
__namedParameters
Returns
undefined
| boolean
Inherited from
LayoutStrategy
.shouldLayoutClipPath
shouldPerformLayout()
shouldPerformLayout(
__namedParameters
):boolean
Defined in: src/LayoutManager/LayoutStrategies/LayoutStrategy.ts:42
Parameters
__namedParameters
Returns
boolean