API / geotoolkit / scene / KeepAspectRestrictVisibleStrategy / KeepAspectRestrictVisibleStrategy
scene.KeepAspectRestrictVisibleStrategy.KeepAspectRestrictVisibleStrategy
KeepAspectRestrictVisibleStrategy input transformation adjustment. This is same as "RestrictVisibleModelLimitsStrategy + KeepAspectRatioRestrictedAnchoredStrategy"
KeepAspectRatioRestrictedAnchoredStrategy↳
KeepAspectRestrictVisibleStrategy
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 KeepAspectRestrictVisibleStrategy(options?)
| Name | Type |
|---|---|
Optional options | Options |
KeepAspectRatioRestrictedAnchoredStrategy.constructor
Methods
▸ adjustTransformation(model, newLocalTr): Transformation
Adjusts input transformation
| Name | Type | Description |
|---|---|---|
model | Group<Node> | model |
newLocalTr | Transformation | transformation to adjust |
adjusted transformation
KeepAspectRatioRestrictedAnchoredStrategy.adjustTransformation
▸ getClassName(): string
string
KeepAspectRatioRestrictedAnchoredStrategy.getClassName
▸ getProperties(): OptionsOut
Gets properties
properties
KeepAspectRatioRestrictedAnchoredStrategy.getProperties
▸ isEnabled(): boolean
Returns enable state
boolean
enable state
KeepAspectRatioRestrictedAnchoredStrategy.isEnabled
▸ setEnabled(enabled): KeepAspectRestrictVisibleStrategy
Set enable state
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets the enabled state |
KeepAspectRestrictVisibleStrategy
this
KeepAspectRatioRestrictedAnchoredStrategy.setEnabled
▸ setProperties(properties): KeepAspectRestrictVisibleStrategy
Sets the projection properties
| Name | Type | Description |
|---|---|---|
properties | Options | properties |
KeepAspectRestrictVisibleStrategy
this
KeepAspectRatioRestrictedAnchoredStrategy.setProperties
▸ Static getClassName(): string
string