API / geotoolkit / scene / KeepAspectFitBothDimensionsStrategy / KeepAspectFitBothDimensionsStrategy
scene.KeepAspectFitBothDimensionsStrategy.KeepAspectFitBothDimensionsStrategy
KeepAspectFitBothDimensionsStrategy input transformation adjustment.
This keeps aspect ratio based on the options supplied, anchors to given coordinates and transforms visible model limits fit both dimensions.
By default, anchors to the center horizontally and vertically.
AnchoredTransformationAdjustmentStrategy↳
KeepAspectFitBothDimensionsStrategy
Constructors
Css Properties
| Name | Type | Description |
|---|---|---|
alignment | AnchorType | Alignment |
aspectratio | number | Y-scale to x-scale ratio |
enabled | boolean | Enable flag |
keepaspectratio | boolean | Keep aspect ratio flag |
mode | ScalingMode | Scaling mode |
Constructors
• new KeepAspectFitBothDimensionsStrategy(options?)
| Name | Type |
|---|---|
Optional options | Options |
AnchoredTransformationAdjustmentStrategy.constructor
Methods
▸ adjustTransformation(model, newLocalTr): Transformation
Adjusts input transformation
| Name | Type | Description |
|---|---|---|
model | Group<Node> | model |
newLocalTr | Transformation | transformation to adjust |
adjusted transformation
AnchoredTransformationAdjustmentStrategy.adjustTransformation
▸ getClassName(): string
string
AnchoredTransformationAdjustmentStrategy.getClassName
▸ getProperties(): OptionsOut
Gets properties
properties
AnchoredTransformationAdjustmentStrategy.getProperties
▸ isEnabled(): boolean
Returns enable state
boolean
enable state
AnchoredTransformationAdjustmentStrategy.isEnabled
▸ setEnabled(enabled): KeepAspectFitBothDimensionsStrategy
Set enable state
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets the enabled state |
KeepAspectFitBothDimensionsStrategy
this
AnchoredTransformationAdjustmentStrategy.setEnabled
▸ setProperties(properties): KeepAspectFitBothDimensionsStrategy
Sets the projection properties
| Name | Type | Description |
|---|---|---|
properties | Options | properties |
KeepAspectFitBothDimensionsStrategy
this
AnchoredTransformationAdjustmentStrategy.setProperties
▸ Static getClassName(): string
string