API / geotoolkit / scene / KeepAspectRatioRestrictedAnchoredStrategy / KeepAspectRatioRestrictedAnchoredStrategy
scene.KeepAspectRatioRestrictedAnchoredStrategy.KeepAspectRatioRestrictedAnchoredStrategy
KeepAspectRatioRestrictedAnchoredStrategy input transformation adjustment.
This keeps aspect ratio based on the options supplied and also aligns the model bounds.
AnchoredTransformationAdjustmentStrategy↳
KeepAspectRatioRestrictedAnchoredStrategy
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 KeepAspectRatioRestrictedAnchoredStrategy(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): KeepAspectRatioRestrictedAnchoredStrategy
Set enable state
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets the enabled state |
KeepAspectRatioRestrictedAnchoredStrategy
this
AnchoredTransformationAdjustmentStrategy.setEnabled
▸ setProperties(properties): KeepAspectRatioRestrictedAnchoredStrategy
Sets the projection properties
| Name | Type | Description |
|---|---|---|
properties | Options | properties |
KeepAspectRatioRestrictedAnchoredStrategy
this
AnchoredTransformationAdjustmentStrategy.setProperties
▸ Static getClassName(): string
string